postgkyl.diagnostics.pkpm.load_pkpm

postgkyl.diagnostics.pkpm.load_pkpm(name, species, idx, poly_order, *, tag=None, label=None)

Load, interpolate, and frame-transform Gkeyll PKPM data.

Loads the PKPM distribution (its two Laguerre coefficients F0/G) and its companion pkpm_vars file (whose component 3 is T/m and components 0:3 are the bulk velocity (ux, uy, uz)), interpolates both, composes the full distribution function (laguerre_compose()), and shifts it into the bulk-flow frame (transform_frame()).

Parameters:
  • name – Root name (file prefix) of the simulation.

  • species – Species name.

  • idx – Frame/file number.

  • poly_order – Polynomial order of the DG representation.

  • tag – Optional tag for the resulting dataset.

  • label – Optional label for the resulting dataset.

Returns:

A populated, interpolated, frame-transformed GData.

CLI: pkpm_load_pkpm