postgkyl.diagnostics.mom.plasma.beta

postgkyl.diagnostics.mom.plasma.beta(species, field, *, gas_gamma=1.6666666666666667, num_moms=None, mass=1.0, mu_0=1.0, no_sqrt2=False, inplace=False, tag=None, label=None)

Plasma beta v_th**2 / v_A**2.

Parameters:
  • species – Fluid moment data used for thermal velocity and density; must be NumPy-backed.

  • field – EM field data used for Alfven velocity; must contain point values.

  • gas_gamma – Adiabatic index used to compute thermal velocity.

  • num_moms – Number of fluid moments (5 or 10); inferred when None.

  • mass – Particle mass.

  • mu_0 – Vacuum permeability.

  • no_sqrt2 – Use sqrt(T/m) internally; the result is normalized to the sqrt(2*T/m) convention either way.

  • inplace – Mutate and return species 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 plasma beta.

Raises:

ValueError – if either input is modal DG coefficients.

CLI: mom_plasma_beta