pgkyl mom_multispecies_energetics

Usage: pgkyl mom_multispecies_energetics [OPTIONS]

  Decompose energy (kinetic, thermal, EM) for a two-species plasma.

  Splits the plasma energy into its constituent parts for a two-species (electron/ion)
  plasma plus an EM field. The result carries the EM field's grid and metadata and has
  seven components, in order:

  0. electron thermal energy 1. electron kinetic energy 2. ion thermal energy 3. ion
  kinetic energy 4. electric field energy (``|E|^2 / 2``) 5. magnetic field energy
  (``|B|^2 / 2``) 6. total energy (sum of the above)

  Thermal energy is ``p/(gas_gamma-1)`` for five moments and half the pressure-tensor
  trace for ten moments, independent of ``gas_gamma``.

Options:
  -e, --elc TEXT          Electron fluid moments (used to compute internal and kinetic
                          energy); must contain physical point values.  [required]
  -i, --ion TEXT          Ion fluid moments (used to compute internal and kinetic
                          energy); must contain physical point values.  [required]
  -f, --field TEXT        EM field whose components 0:3 are the electric field and 3:6
                          are the magnetic field; its grid/metadata are carried to the
                          output. Must contain physical point values.  [required]
  -g, --gas_gamma FLOAT   Adiabatic index, forwarded to the pressure/kinetic-energy
                          calculation for both species.  [default: 1.6666666666666667]
  -n, --num_moms INTEGER  Number of moments (5 or 10) for both species; inferred from
                          the component count when ``None``.
  --inplace [BOOLEAN]     mutate and return ``field`` instead of a new dataset.
                          [default: False]
  -t, --tag TEXT          optional tag for the returned dataset.
  -l, --label TEXT        optional label for the returned dataset.
  --help                  Show this message and exit.

Python API