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.

Gradient of the magnetic field is zero

Please login with a confirmed email address before reporting spam

Hi forum,

I'm relatively new to COMSOL and am trying to plot the gradient of the magnetic field from a 2D block magnet in the Magnetic Fields, No Currents (mfnc) physics module, along with a Coefficient Form PDE module to calculate the gradient of the x,y,z components of the field --> I set my source terms to be mf.Hx, mf.Hy, and mf.Hz as the examples below recomended but they seem to be unknown varaibles - this may be the source of the issue.

I am using 2 stationary studies - the first to calculate the magnetic field, the second to calculate the coefficient form PDE and am still having no luck displaying the gradient.

I have attached my model - any help would be much appreciated! Thanks, Alex

https://www.comsol.fr/forum/thread/attachment/98701/Gradients_of_Magnetic_Field_42a-17775.pdf https://www.comsol.com/blogs/plotting-spatial-derivatives-magnetic-field/



0 Replies Last Post 22 nov 2019, 17:57 GMT-5
COMSOL Moderator

Hello Alex Hruska

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.