postgkyl.diagnostics.mom.ten_moment.p_perp

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

Pressure perpendicular to the magnetic field: (P_xx + P_yy + P_zz - p_par) / 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 perpendicular pressure.

Raises:

ValueError – if either input is modal DG coefficients.

CLI: mom_ten_moment_p_perp