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/



Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.