postgkyl.diagnostics.mom.ten_moment.mom_agyro

postgkyl.diagnostics.mom.ten_moment.mom_agyro(species, field, *, measure='frobenius', inplace=False, tag=None, label=None)

Agyrotropy from raw 10-moment species data and an EM field.

Convenience wrapper that first forms the pressure tensor from raw 10-moment species data and extracts the magnetic field (components 3:6) from a Gkeyll EM field, then computes the agyrotropy.

Parameters:
  • species – Raw 10-moment fluid data for a single species (density, momentum, and the six pressure-tensor moments); must contain point values.

  • field – Gkeyll EM field whose components 3:6 are the magnetic field (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 species 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_mom_agyro