postgkyl.diagnostics.mom.plasma.rho¶
- postgkyl.diagnostics.mom.plasma.rho(species, field, *, gas_gamma=1.6666666666666667, num_moms=None, mass=1.0, charge=1.0, mu_0=1.0, no_sqrt2=False, inplace=False, tag=None, label=None)¶
Gyroradius (Larmor radius)
rho = v_th / omega_c.- Parameters:
species – Fluid moment data used for thermal velocity; must be NumPy-backed.
field – EM field data used for cyclotron frequency; must contain point values.
gas_gamma – Adiabatic index used to compute thermal velocity.
num_moms – Number of fluid moments (5 or 10); inferred when
None.mass – Particle mass.
charge – Particle charge.
mu_0 – Vacuum permeability forwarded to thermal-velocity calculation.
no_sqrt2 – Use
sqrt(T/m)internally; the result is normalized to thesqrt(2*T/m)convention either way.inplace – Mutate and return
speciesinstead of a new dataset.tag – Optional tag for the returned dataset.
label – Optional label for the returned dataset.
- Returns:
A single-component dataset of the gyroradius.
- Raises:
ValueError – if either input is modal DG coefficients.