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 (
floatorint, keyword-only, default: 5/3) β The adiabatic index for the plasma.mass_numb (βintβ, keyword-only, optional) β The mass number corresponding to
ion.Z (
floator β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,
AlfvenWaveorFastMagnetosonicWaveorSlowMagnetosonicWave]- Raises:
TypeError β If applicable arguments are not instances of
Quantityor cannot be converted into one.TypeError β If
ionis not particle-like.UnitTypeError β If applicable arguments do not have units convertible to the expected units.
ValueError β If any of
B,density, orTis negative.ValueError β If
ionis not of category ion or element.ValueError β If
B,density, orTare not single-valuedastropy.units.Quantity(i.e. an array).