postgkyl.diagnostics.pkpm.laguerre_compose

postgkyl.diagnostics.pkpm.laguerre_compose(distribution, variables, *, inplace=False, tag=None, label=None)

Compose PKPM Laguerre coefficients into a full distribution function.

Reconstructs the full distribution function f(x, v_par, v_perp) from the PKPM Laguerre expansion coefficients F0 and G (stored as the two components of distribution) together with the PKPM temperature-over-mass field carried in variables.

Parameters:
  • distribution – The two-component PKPM Laguerre expansion coefficients F0(x, v_par) and G(x, v_par); must contain point values.

  • variables – The PKPM variables dataset providing T/m(x) (used as the first component); must contain point values.

  • inplace – mutate and return distribution instead of a new dataset.

  • tag – optional tag for the returned dataset.

  • label – optional label for the returned dataset.

Returns:

A dataset holding the composed f(x, v_par, v_perp).

Raises:

ValueError – if either input is modal DG coefficients.

CLI: pkpm_laguerre_compose