postgkyl.diagnostics.mom.plasma.vt¶
- postgkyl.diagnostics.mom.plasma.vt(species, *, gas_gamma=1.6666666666666667, num_moms=None, mass=1.0, mu_0=1.0, no_sqrt2=False, mhd=False, inplace=False, tag=None, label=None)¶
Thermal velocity
v_th = sqrt(2 T/m)of a species.- Parameters:
species – Species moment data (5- or 10-moment, or MHD when
mhd=True); must contain point values.gas_gamma – Adiabatic index used when computing the temperature/pressure.
num_moms – Number of moments (5 or 10); inferred when
None.mass – Particle mass.
mu_0 – Vacuum permeability, forwarded to the MHD temperature when
mhd=True.no_sqrt2 – Omit the conventional
sqrt(2)scale factor.mhd – If
True, compute the temperature from MHD moments; otherwise use the fluid moments.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 thermal velocity.
- Raises:
ValueError – if
speciesis modal DG coefficients.