model.HydrostaticEquilibrium.set_magnetic_field_from_beta#
- HydrostaticEquilibrium.set_magnetic_field_from_beta(beta, gaussian=True)#
Set a magnetic field radial profile from a plasma beta parameter, assuming beta = p_th/p_B. The field can be set in Gaussian or Lorentz-Heaviside (dimensionless) units.
- Parameters:
beta (
float
) – The ratio of the thermal pressure to the magnetic pressure.gaussian (
boolean
, optional) – Set the field in Gaussian units such that p_B = B^2/(8*pi), otherwise p_B = B^2/2. Default: True