postgkyl.diagnostics.mom.five_moment.density¶
- postgkyl.diagnostics.mom.five_moment.density(data, *, inplace=False, tag=None, label=None)¶
Mass density (component 0 of fluid moment data).
- Parameters:
data – Fluid moment data at physical points (interpolated, nodal, or quadrature).
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 density.
- Raises:
ValueError – if
datacontains unevaluated modal coefficients.