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.

diametric magnet simulation

Please login with a confirmed email address before reporting spam

I need to simulate a diametric magnet and I'm having a hard time understanding how to setup. How do I set up the magnetic fields? What domain do I use? Should I split the disk in half and use the inside "wall" for that?



1 Reply Last Post 20 avr. 2023, 03:36 UTC−4

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 20 avr. 2023, 03:36 UTC−4
Updated: 2 years ago 20 avr. 2023, 03:45 UTC−4

You just need to add a Magnet node to your physics, and then use a user defined magnetisation, as shown in the attached file (v6.1), where I have defined the magnetisation with a unit vecor (1,0,0).

If your a plan on looking at how the field changes as the magnet rotates about it's axis, you can use a trigonometric function in the magnetisation definition based on a rotation angle that you can parameterise, for example a unit vector defined as (sin(theta), cos(theta),0). A parametric sweep in this instance will simply rotate the magnetisation and will not require re-meshing for each solution, (much quicker than physically rotating your domain, which would require the mesh to be generated for each solution).

In theory, as your geometry is symmetric, the on axis field would rotate exactly with the magnetisation rotation, and deviation from the ideal can be considered as a model error, which you could minimise by refining your mesh. If your point of interest is slightly off axis, then you would see the "real" error. You want to make sure that the model error is sufficiently smaller than the real error you are looking to determine.

You just need to add a Magnet node to your physics, and then use a user defined magnetisation, as shown in the attached file (v6.1), where I have defined the magnetisation with a unit vecor (1,0,0). If your a plan on looking at how the field changes as the magnet rotates about it's axis, you can use a trigonometric function in the magnetisation definition based on a rotation angle that you can parameterise, for example a unit vector defined as (sin(theta), cos(theta),0). A parametric sweep in this instance will simply rotate the magnetisation and will not require re-meshing for each solution, (much quicker than physically rotating your domain, which would require the mesh to be generated for each solution). In theory, as your geometry is symmetric, the on axis field would rotate exactly with the magnetisation rotation, and deviation from the ideal can be considered as a model error, which you could minimise by refining your mesh. If your point of interest is slightly off axis, then you would see the "real" error. You want to make sure that the model error is sufficiently smaller than the real error you are looking to determine.

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.