postgkyl.diagnostics.mom.five_moment.mach¶
- postgkyl.diagnostics.mom.five_moment.mach(data, *, gas_gamma=1.6666666666666667, num_moms=None, inplace=False, tag=None, label=None)¶
Sonic Mach number
M = |v| / c_s.- Parameters:
data – Fluid moment data at physical points (interpolated, nodal, or quadrature).
gas_gamma – Adiabatic index used to compute the sound speed.
num_moms – Number of moments (5 or 10); inferred from component count when
None.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 Mach number.
- Raises:
ValueError – if
datacontains unevaluated modal coefficients, ornum_momsisNoneand cannot be inferred.