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 coefficientsF0andG(stored as the two components ofdistribution) together with the PKPM temperature-over-mass field carried invariables.- Parameters:
distribution – The two-component PKPM Laguerre expansion coefficients
F0(x, v_par)andG(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
distributioninstead 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.