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.

Difference between mf2.Bx/y/z and mf2.normB

Sanchayan Rajeetharan

Please login with a confirmed email address before reporting spam

Hi.

Im working on building 3D gradient coil. When im plotting magnetic flux density im confused with mf2.Bx/y/z and mf2.normB. I need to plot resultant magnetic flux density on X & Y & Z axis. can anyone help.


2 Replies Last Post Feb 11, 2020, 4:52 p.m. EST
Lars Dammann COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Jan 30, 2020, 10:22 a.m. EST

Hi,

mf.Bx, mf.By and mf.Bz are the x-, y,- and z-component of the magnetic flux density vector. mf.normB is the norm of that vector, which (simply speaking) is sqrt(mf.Bx^2+mf.By^2+mf.Bz^2).

If you are working in the frequency domain, it is actually the complex norm of the vector, which is more like:

sqrt(mf.Bx*conj(mf.Bx)+mf.By*conj(mf.By)+mf.Bz*conj(mf.Bz))

but you probably don't need to worry about that difference.

Hope that helps, Lars

Hi, mf.Bx, mf.By and mf.Bz are the x-, y,- and z-component of the magnetic flux density vector. mf.normB is the norm of that vector, which (simply speaking) is sqrt(mf.Bx^2+mf.By^2+mf.Bz^2). If you are working in the frequency domain, it is actually the complex norm of the vector, which is more like: sqrt(mf.Bx*conj(mf.Bx)+mf.By*conj(mf.By)+mf.Bz*conj(mf.Bz)) but you probably don't need to worry about that difference. Hope that helps, Lars

Sanchayan Rajeetharan

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Feb 11, 2020, 4:52 p.m. EST

Hi,

mf.Bx, mf.By and mf.Bz are the x-, y,- and z-component of the magnetic flux density vector. mf.normB is the norm of that vector, which (simply speaking) is sqrt(mf.Bx^2+mf.By^2+mf.Bz^2).

If you are working in the frequency domain, it is actually the complex norm of the vector, which is more like:

sqrt(mf.Bxconj(mf.Bx)+mf.Byconj(mf.By)+mf.Bz*conj(mf.Bz))

but you probably don't need to worry about that difference.

Hope that helps, Lars

Now I understood. Thanks

>Hi, > >mf.Bx, mf.By and mf.Bz are the x-, y,- and z-component of the magnetic flux density vector. mf.normB is the norm of that vector, which (simply speaking) is sqrt(mf.Bx^2+mf.By^2+mf.Bz^2). > >If you are working in the frequency domain, it is actually the complex norm of the vector, which is more like: > > sqrt(mf.Bx*conj(mf.Bx)+mf.By*conj(mf.By)+mf.Bz*conj(mf.Bz)) > >but you probably don't need to worry about that difference. > >Hope that helps, >Lars Now I understood. Thanks

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.