Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

How to plot or evaluate the norm of any value?

Please login with a confirmed email address before reporting spam

How do I plot or evaluate the norm of any value?
Especially, I like to plot the norm of the x, y and z component of the magnetic flux density!
Is there a predefined operator, for example norm(mf.Bx) or do I maybe have to self-define such an operator?
I'd be very thankfull if anyone can help me.

2 Replies Last Post 2013年3月7日 GMT-5 07:45
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2013年3月7日 GMT-5 07:41
Hi

which norm ? w.r.t. complex values ? what else as Bx is a scalar ? or is it the vector norm ? then you must write it out, taking into account if the value is complex

Check help functions to see all available functions, and try Help special operators for more

--
Good luck
Ivar
Hi which norm ? w.r.t. complex values ? what else as Bx is a scalar ? or is it the vector norm ? then you must write it out, taking into account if the value is complex Check help functions to see all available functions, and try Help special operators for more -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2013年3月7日 GMT-5 07:45
Thomas,

the norm of many vector quantities is readily available, e.g. mf.normB. The norm of any scalar value is the absolute value. So you can use abs(mf.Bx) for example. You find a list of operators in the documentation.

Cheers
Edgar
Thomas, the norm of many vector quantities is readily available, e.g. mf.normB. The norm of any scalar value is the absolute value. So you can use abs(mf.Bx) for example. You find a list of operators in the documentation. Cheers Edgar

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.