postgkyl.diagnostics.mom.ten_moment.p_par

postgkyl.diagnostics.mom.ten_moment.p_par(ptensor, bfield, *, inplace=False, tag=None, label=None)

Pressure parallel to the magnetic field: (b . P . b) / |B|**2.

Parameters:
  • ptensor – Six-component symmetric pressure tensor (Pxx, Pxy, Pxz, Pyy, Pyz, Pzz); must contain point values.

  • bfield – Magnetic field whose first three components are (Bx, By, Bz); must contain point values.

  • inplace – mutate and return ptensor 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 parallel pressure.

Raises:

ValueError – if either input is modal DG coefficients.

CLI: mom_ten_moment_p_par