postgkyl.diagnostics.mom.five_moment.pressure

postgkyl.diagnostics.mom.five_moment.pressure(data, *, gas_gamma=1.6666666666666667, num_moms=None, inplace=False, tag=None, label=None)

Scalar pressure from fluid moment data (5- or 10-moment).

Parameters:
  • data – Fluid moment data (5- or 10-moment) at physical points.

  • gas_gamma – Adiabatic index, used only for 5-moment data.

  • num_moms – Number of moments (5 or 10); inferred from the component count when None.

  • 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 scalar pressure.

Raises:

ValueError – if data contains unevaluated modal coefficients, or num_moms is None and cannot be inferred.

CLI: mom_five_moment_pressure