postgkyl.diagnostics.mom.mhd.mag_pressure¶
- postgkyl.diagnostics.mom.mhd.mag_pressure(data, *, mu_0=1.0, inplace=False, tag=None, label=None)¶
Magnetic pressure
p_B = 0.5 * (Bx**2 + By**2 + Bz**2) / mu_0.- Parameters:
data – MHD conserved variables; must contain point values.
mu_0 – Vacuum permeability.
inplace – Mutate and return
datainstead of a new dataset.tag – Optional tag for the returned dataset.
label – Optional label for the returned dataset.
- Returns:
A single-component dataset of the magnetic pressure.
- Raises:
ValueError – if
datais modal DG coefficients.