postgkyl.diagnostics.mom.mhd.pressure

postgkyl.diagnostics.mom.mhd.pressure(data, *, gas_gamma=1.6666666666666667, mu_0=1.0, inplace=False, tag=None, label=None)

Thermal (gas) pressure p = (gas_gamma - 1) * (E - 0.5*rho*|v|**2 - p_B).

Parameters:
  • data – MHD conserved variables; must contain point values.

  • gas_gamma – Adiabatic index.

  • mu_0 – Vacuum permeability used in the magnetic energy.

  • inplace – Mutate and return data instead 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 thermal pressure.

Raises:

ValueError – if data is modal DG coefficients.

CLI: mom_mhd_pressure