Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

2D Axisymmetric and 2D simulation of permanent magnet

Please login with a confirmed email address before reporting spam

Hi,


I am trying to simulate magnetic fields from a permanent magnet in simple 2D and 2D axisymmetric configuration using magnetic field no current module but COMSOL is erroring out saying that the error is greater than tolerance. The configuration in 2D is a rectangular bar magnet and configuration in 2D axisymmetric is a rectangle offset from the axis (i.e. a ring shaped magnet in 3D). However, I have tested other configurations as well and the error stays the same

3D simulations are working out perfectly for any magnet geometry. I followed the steps for setting up the magnetic field in COMOSL tutorial for a horse-shoe magnet and got perfect results in 3D but when I apply same setup in 2D and 2D axisymmetric COMSOL is erroring out. I am attaching my 2d axisymmetric case (COMSOL V 5.0).

Can anyone please point out if there needs to be a different setup for 2D and 2D axisymmetric?
Any help is greatly appreciated

Thanks and regards,
Souvik.



4 Replies Last Post 3 avr. 2017, 02:30 UTC−4

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 25 janv. 2015, 08:15 UTC−5
hi,
I am interested in your problem, however ,i do not have COMSOL 5.0, do you have 4.4 or 4.3.
hi, I am interested in your problem, however ,i do not have COMSOL 5.0, do you have 4.4 or 4.3.

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 27 janv. 2015, 02:34 UTC−5
I think you may be missing a Zero Magnetic Potential condition. You need to add this to a point on your axis of symmetry, as shown in the attached model.

I seem to remember getting the same error message before I added this condition.

I cannot check for sure, as my Comsol License Server is down at the moment.
I think you may be missing a Zero Magnetic Potential condition. You need to add this to a point on your axis of symmetry, as shown in the attached model. I seem to remember getting the same error message before I added this condition. I cannot check for sure, as my Comsol License Server is down at the moment.


Please login with a confirmed email address before reporting spam

Posted: 7 years ago 31 mars 2017, 00:19 UTC−4
Thank you very much for your suggestion of adding a Zero Magnetic Potential condition on one point.
I follow your suggestions and build a similar model of calculating force between two permanent magnets, however, the force one the small magnet is very sensitive to mesh, when I refine the mesh, the calculated force can jump from positive value to negative value?! Can you help me figure out why?? Thank you very much for your help!
I don't know why I couldn't attach files. Here is the model description:
1. Two magnets(One small, One big) surrounded by air
2. Materials: air and N52 permeability
3. BC: for two magnets, use Magnetic Flux Conservation, and use remnant flux density as constitutive law
add a Zero Magnetic Potential condition on one point.
use Force calculation to calculate the force on small magnet.
4. Mesh: I used physical controlled mesh, from normal to extremely mesh.
The calculated force varies very much for different mesh, and doesn't make any sense.
Thank you very much for your suggestion of adding a Zero Magnetic Potential condition on one point. I follow your suggestions and build a similar model of calculating force between two permanent magnets, however, the force one the small magnet is very sensitive to mesh, when I refine the mesh, the calculated force can jump from positive value to negative value?! Can you help me figure out why?? Thank you very much for your help! I don't know why I couldn't attach files. Here is the model description: 1. Two magnets(One small, One big) surrounded by air 2. Materials: air and N52 permeability 3. BC: for two magnets, use Magnetic Flux Conservation, and use remnant flux density as constitutive law add a Zero Magnetic Potential condition on one point. use Force calculation to calculate the force on small magnet. 4. Mesh: I used physical controlled mesh, from normal to extremely mesh. The calculated force varies very much for different mesh, and doesn't make any sense.

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 3 avr. 2017, 02:30 UTC−4
The Force calculation can be very sensitive to the mesh density, particularly if your magnets only have a thin airgap between them. How many layers of elements do you have in the gap between the magnets? Are your results converging on a value as you increase the mesh density?
The Force calculation can be very sensitive to the mesh density, particularly if your magnets only have a thin airgap between them. How many layers of elements do you have in the gap between the magnets? Are your results converging on a value as you increase the mesh density?

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.