mhd_wavesο
- plasmapy.dispersion.analytical.mhd_waves_.mhd_waves(*args, **kwargs)[source]ο
Returns a dictionary containing objects of the three magnetohydrodynamic waves with identical parameters.
- Parameters:
B (
Quantity
) β The magnetic field magnitude in units convertible to T.density (
Quantity
) β Either the ion number density \(n_i\) in units convertible to m-3 or the total mass density \(Ο\) in units convertible to kg m-3.ion (particle-like) β Representation of the ion species (e.g.,
'p+'
for protons,'D+'
for deuterium,'He-4 +1'
for singly ionized helium-4, etc.). If no charge state information is provided, then the ions are assumed to be singly ionized.T (
Quantity
, keyword-only, default: 0 K) β The plasma temperature in units of K or eV.gamma (
float
orint
, keyword-only, default: 5/3) β The adiabatic index for the plasma.mass_numb (βintβ, keyword-only, optional) β The mass number corresponding to
ion
.Z (
float
or βintβ, keyword-only, optional) β The charge number corresponding toion
.
- Returns:
mhd_waves β A named tuple of magnetohydrodynamic-wave objects. It contains three keys:
'alfven'
for the AlfvΓ©n mode,'fast'
for the fast magnetosonic mode, and'slow'
for the slow magnetosonic mode.- Return type:
namedtuple[str,
AlfvenWave
orFastMagnetosonicWave
orSlowMagnetosonicWave
]- Raises:
TypeError β If applicable arguments are not instances of
Quantity
or cannot be converted into one.TypeError β If
ion
is not particle-like.UnitTypeError β If applicable arguments do not have units convertible to the expected units.
ValueError β If any of
B
,density
, orT
is negative.ValueError β If
ion
is not of category ion or element.ValueError β If
B
,density
, orT
are not single-valuedastropy.units.Quantity
(i.e. an array).