thermal_speed_coefficients
- plasmapy.formulary.speeds.thermal_speed_coefficients(method: str, ndim: int) float[source]
Get the thermal speed coefficient corresponding to the desired thermal speed definition.
See the
thermal_speedNotes section for further details of the various thermal speed definitions.- Parameters:
- Raises:
ValueError – If
methodorndimare not a valid value.
Notes
For a detailed explanation of the different coefficients used to calculate the thermal speed, then look to the Notes section for
thermal_speed. The possible return values are listed the following table:Thermal speed \(v_{th}\) coefficients. ↓ method
ndim →
123"most_probable"\[0\]\[1\]\[\sqrt{2}\]"rms"\[1\]\[\sqrt{2}\]\[\sqrt{3}\]"mean_magnitude"\[\sqrt{2/π}\]\[\sqrt{π/2}\]\[\sqrt{8/π}\]"nrl"\[1\]Examples
>>> thermal_speed_coefficients(method="most_probable", ndim=3) np.float64(1.414213...)