pgkyl vm_kinetic_transform_frame

Usage: pgkyl vm_kinetic_transform_frame [OPTIONS]

  Shift a distribution function to a moving frame of reference.

  Shifts the velocity-space grid of ``distribution`` by the local ``bulk`` velocity so
  the distribution is expressed in the frame co-moving with the bulk flow. The values
  are unchanged; only the velocity coordinates are offset. Supports 1, 2, or 3
  configuration-space dimensions.

Options:
  -d, --distribution TEXT  The particle distribution function to shift; must be NumPy-
                           backed.  [required]
  -b, --bulk TEXT          The bulk (drift) velocity field; one component per velocity
                           dimension. Must contain point values.  [required]
  -c, --cdim INTEGER       Number of configuration-space dimensions. The remaining grid
                           axes are treated as velocity-space dimensions.  [required]
  -i, --inplace [BOOLEAN]  mutate and return ``distribution`` 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