postgkyl.diagnostics.mom.ten_moment.agyro

postgkyl.diagnostics.mom.ten_moment.agyro(ptensor, bfield, *, measure='frobenius', inplace=False, tag=None, label=None)

Agyrotropy from a pressure tensor and an EM field.

Measures how far the pressure tensor departs from gyrotropy about the local magnetic field. The field’s first three components are used as the magnetic field direction.

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.

  • measure – ‘frobenius’ (Frobenius norm of the agyrotropic part of the pressure tensor) or ‘swisdak’ (the Q measure of Swisdak 2015). Case-insensitive.

  • 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 agyrotropy.

Raises:

ValueError – if either input is modal DG coefficients, or measure is not ‘frobenius’ or ‘swisdak’.

CLI: mom_ten_moment_agyro