Hi Lionel,
I think you can do the analysis you want also with 3.5a version of Comsol without using Matlab.
Clearly with 4.0 version everything will be easier.
In 3.5a version, you have to use the Comsol module Deformed Mesh/Moving Mesh (ALE)/static analysis togheter with the module for your magnetic problem.
Just add first in the model navigator the Moving Mesh module and then the magnetic module.
In this way the magnetic module will be referred to the frame "ale".
Then go in the subdomain settings of the deformed mesh application mode and set your displacement function (dx, dy, dz components if you are in 3D) in the field "prescribed displacement".
Suppose that you want to parametrize the distance between the two magnets.
In the field prescribed displacement you have to set a function of the X Y Z coordinates that scales the distance. This same function should also depend on a parameter (let's call it "my_pam") which has to be used to run the parametric analysis.
Once you set up your function, go in "solver parameters" and choose the parametric solver. Set "my_pam" in paramters name and the range you desire in parameters values.
Then run your analysis.
You will obtain the results as function of "my_pam". In this particulare case you will have the results for different values of the distance between the 2 magnets.
I don't know it my explanation is clear or not.... I hope it is...!
Tomorrow, if you want, I can upload a model to showing how to set up such an analysis.
Hi!
Alessandro
I think you can do the analysis you want also with 3.5a version of Comsol without using Matlab.
Clearly with 4.0 version everything will be easier.
In 3.5a version, you have to use the Comsol module Deformed Mesh/Moving Mesh (ALE)/static analysis togheter with the module for your magnetic problem.
Just add first in the model navigator the Moving Mesh module and then the magnetic module.
In this way the magnetic module will be referred to the frame "ale".
Then go in the subdomain settings of the deformed mesh application mode and set your displacement function (dx, dy, dz components if you are in 3D) in the field "prescribed displacement".
Suppose that you want to parametrize the distance between the two magnets.
In the field prescribed displacement you have to set a function of the X Y Z coordinates that scales the distance. This same function should also depend on a parameter (let's call it "my_pam") which has to be used to run the parametric analysis.
Once you set up your function, go in "solver parameters" and choose the parametric solver. Set "my_pam" in paramters name and the range you desire in parameters values.
Then run your analysis.
You will obtain the results as function of "my_pam". In this particulare case you will have the results for different values of the distance between the 2 magnets.
I don't know it my explanation is clear or not.... I hope it is...!
Tomorrow, if you want, I can upload a model to showing how to set up such an analysis.
Hi!
Alessandro