postgkyl.diagnostics.mom.mhd.sound

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

Sound speed c_s = sqrt(gas_gamma * p / rho).

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

  • gas_gamma – Adiabatic index.

  • mu_0 – Vacuum permeability used to compute the pressure.

  • 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 sound speed.

Raises:

ValueError – if data is modal DG coefficients.

CLI: mom_mhd_sound