magnetic_flux_field#
- astropy.units.magnetic_flux_field(mu_r=1)[source]#
Convert magnetic field between magnetic field strength \((\mathbf{H})\) and magnetic flux density \((\mathbf{B})\) using the relationship:
\[\mathbf{B} = \mu_r \mu_0 \mathbf{H}\]- where:
\(\mu_0\) is the vacuum permeability, a physical constant.
\(\mu_r\) is the relative permeability of the medium, a dimensionless quantity.
The default setting (\(\mu_r=1\)) represents conditions in a vacuum.
- Parameters:
- mu_r
float
, optional The relative magnetic permeability of the medium. This is a dimensionless quantity and has a default value of \(\mu_r=1\) which corresponds to free space (vacuum).
- mu_r
Examples
>>> import astropy.units as u >>> H = 1 * u.Oe >>> H.to(u.G, equivalencies=u.magnetic_flux_field()) <Quantity 1. G> >>> H.to(u.G, equivalencies=u.magnetic_flux_field(mu_r=0.8)) <Quantity 0.8 G> >>> B = 1 * u.T >>> B.to(u.A / u.m, equivalencies=u.magnetic_flux_field()) <Quantity 795774.71502628 A / m> >>> B.to(u.A / u.m, equivalencies=u.magnetic_flux_field(mu_r=0.8)) <Quantity 994718.39378285 A / m>