The refractive-index functions inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/stourgai/WPIT/llms.txt
Use this file to discover all available pages before exploring further.
WaveProperties_mod convert plasma parameters and wave geometry into the electromagnetic phase and group velocities needed for ray tracing and wave–particle interaction calculations. Four approaches are available: the classic two-fluid Appleton-Hartree formula; the complete cold-plasma Stix formalism via refr_index_full; a warm-plasma cubic-root solver in refr_index_warm; and a parallel-propagation specialisation for EMIC waves in refr_index_parallel_EMIC. All functions except refr_index_parallel_EMIC return the refractive index η together with the full and component wave numbers κ, κ‖, and κ⊥.
refr_index_appleton
Implements the Appleton-Hartree dispersion formula for a two-component (electron + background ions) magnetised plasma. Returns both roots (plus and minus) of the quadratic dispersion equation; physically the two roots correspond to the ordinary (O) and extra-ordinary (X) modes for transverse propagation, or to the R and L modes for parallel propagation.
Reference: Appleton, E. V. (1932). Wireless studies of the ionosphere. Proceedings of the Wireless Section of the IEE 7, 257–265.
Parameters
Wave angular frequency [rad s⁻¹].
Electron plasma angular frequency [rad s⁻¹].
Electron cyclotron angular frequency [rad s⁻¹].
Wave normal angle θ with respect to the background magnetic field B₀ [rad].
0 corresponds to parallel propagation; π/2 to perpendicular propagation.Returns
The plus root of the Appleton-Hartree equation. At θ = 0 this corresponds
to the R-mode (right-hand circularly polarised).
The minus root. At θ = 0 this corresponds to the L-mode (left-hand circularly
polarised). At θ = π/2 the two roots map to the O and X modes.
Refractive index η = sqrt(eta_sq_plus) if eta_sq_plus is positive, else sqrt(eta_sq_minus).
Selects the first positive-definite root (dimensionless).
Total wave number κ = η ω / c [m⁻¹].
Field-aligned (parallel) wave number κ‖ = κ cos θ [m⁻¹].
Perpendicular wave number κ⊥ = κ sin θ [m⁻¹].
Example
The Appleton-Hartree formula assumes a single electron species against a stationary
ion background and neglects ion dynamics entirely. For frequencies near or below the
ion cyclotron frequency, use
refr_index_full (multi-species Stix) or
refr_index_parallel_EMIC instead.refr_index_full
Computes the refractive index from the full cold-plasma Stix dispersion relation using precomputed S, P, R, and L parameters. This formulation correctly accounts for all four species (e⁻, H⁺, He⁺, O⁺) and is valid across the entire frequency range from DC to above the electron plasma frequency. The quadratic coefficients A, B, C in η⁴ involve the wave normal angle θ explicitly.
Reference: Kimura, I. (1966). Effects of ions on whistler-mode ray tracing. Radio Science 1, 269–283.
Parameters
Wave normal angle θ with respect to B₀ [rad].
Wave angular frequency [rad s⁻¹].
Stix S parameter (from
stix_parameters or stix_parameters_warm).Stix P parameter.
Stix R parameter.
Stix L parameter.
Returns
Larger root — (B + F) / (2A) of the Stix biquadratic, where
F = sqrt(B² − 4AC) and A, B, C are angle-dependent coefficients built from S, P, R, L.
Smaller root — (B − F) / (2A). For whistler-mode waves this is typically the
physical root (slow mode); the larger root corresponds to the fast/light branch.
Refractive index η = sqrt(eta_sq_minus) (always uses the minus root). Dimensionless.
Total wave number κ [m⁻¹].
Field-aligned wave number κ‖ = κ cos θ [m⁻¹].
Perpendicular wave number κ⊥ = κ sin θ [m⁻¹].
Example
The minus root is hardcoded in
refr_index_full to select the whistler/slow branch.
If you need the fast branch, extract it directly from the eta_sq_plus return value.refr_index_warm
Solves the warm-plasma dispersion relation — a cubic polynomial in η² — for the physical (positive, real) root. Warm corrections introduce finite-temperature effects via the dimensionless thermal ratio τₛ = (k_B Tₛ) / (mₛ c²) × η² for each species. The cubic is assembled from cold tensor components K110, K220, K330, K120 and the warm correction arrays returned by warm_dielectric_tensor.
Reference: Kulkarni, P., Gołkowski, M., Inan, U., and Bell, T. (2015). JGR: Space Physics 120, 581–591.
Parameters
9-element list of electron warm dielectric tensor components
(from
warm_dielectric_tensor).9-element list of H⁺ warm dielectric tensor components.
9-element list of He⁺ warm dielectric tensor components.
9-element list of O⁺ warm dielectric tensor components.
Wave normal angle ψ with respect to B₀ [rad].
Electron temperature [eV].
Ion temperature [eV] (applied uniformly to all ion species).
K11 component of the cold dielectric tensor (from
cold_dielectric_tensor).K22 component of the cold dielectric tensor. Equal to K11 for a cold plasma.
K33 component of the cold dielectric tensor.
K12 component of the cold dielectric tensor (purely imaginary).
Wave angular frequency [rad s⁻¹].
Returns
Warm-plasma refractive index η (real part of the positive root) (dimensionless).
Total wave number κ = η ω / c [m⁻¹].
Field-aligned wave number κ‖ = κ cos ψ [m⁻¹].
Perpendicular wave number κ⊥ = κ sin ψ [m⁻¹].
Example
The solver uses
numpy.roots on the cubic and returns the first positive-real root.
In strongly anisotropic conditions near a resonance there may be multiple positive
roots; inspect eta_sq_plus / eta_sq_minus from refr_index_full to verify
the physical branch.refr_index_parallel_EMIC
Computes the squared refractive index for parallel-propagating electromagnetic ion cyclotron (EMIC) waves in a multi-species cold plasma. The function evaluates the L-mode dispersion relation relevant for EMIC wave propagation studies, where the wave is left-hand polarised at the frequency of the ions. Returns η² directly (not η).
Reference: Summers, D. and Thorne, R. M. (2003). Relativistic electron pitch-angle scattering by electromagnetic ion cyclotron waves during geomagnetic storms. JGR: Space Physics 108.
Parameters
Wave angular frequency [rad s⁻¹].
Electron plasma angular frequency [rad s⁻¹].
Electron cyclotron angular frequency [rad s⁻¹].
H⁺ plasma angular frequency [rad s⁻¹].
H⁺ cyclotron angular frequency [rad s⁻¹].
O⁺ plasma angular frequency [rad s⁻¹]. Pass
0 to exclude O⁺.O⁺ cyclotron angular frequency [rad s⁻¹]. Pass
0 to exclude O⁺.He⁺ plasma angular frequency [rad s⁻¹]. Pass
0 to exclude He⁺.He⁺ cyclotron angular frequency [rad s⁻¹]. Pass
0 to exclude He⁺.Returns
Squared refractive index η² for the parallel L-mode EMIC wave (dimensionless).
A positive value indicates propagation; a negative value indicates evanescence
between the L-cutoff and an ion cyclotron frequency.
Example
This function returns η² (not η). The EMIC L-mode branch becomes evanescent when
the wave frequency approaches wcH, wcHe, or wcO from below — the denominator
factors change sign, making η² negative. Guard against this with
a frequency range check before calling the function.