The frequency 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.
Environment_mod compute the fundamental characteristic frequencies that govern wave propagation and wave-particle interactions in a magnetised plasma. All functions return angular frequencies in rad/s. These frequencies define the boundaries of wave mode existence (e.g. whistler-mode chorus, hiss, EMIC waves) and appear throughout the wave dispersion relations used in WPIT’s wave module. The dwc_ds function additionally provides the spatial gradient of the cyclotron frequency along a dipole field line, required for wave-normal angle evolution in ray-tracing calculations.
omega_cyclotron
Calculates the angular gyrofrequency (cyclotron frequency) of a charged particle in a magnetic field. The cyclotron frequency is the fundamental frequency at which a particle gyrates around a magnetic field line and determines the upper boundary of whistler-mode propagation.
Reference: Parks, G. K. (1991). Physics of Space Plasmas: An Introduction. Addison-Wesley.
Parameters
Magnetic field strength in Tesla (T). Typically obtained from
Bmag_dipole.Particle charge in Coulombs (C). Use
env.const.qe for electrons, env.const.qi for protons. The absolute value is taken internally so sign does not matter.Particle mass in kg. Use
env.const.me for electrons, env.const.mH for protons, env.const.mHe for He⁺, env.const.mO for O⁺.Returns
Particle gyrofrequency in rad/s.
Example
This function computes the non-relativistic cyclotron frequency. For relativistic particles, divide by the Lorentz factor :
omega_rel = omega_cyclotron(B, q, m) / gamma.omega_plasma
Calculates the angular plasma frequency for a given particle species. The plasma frequency is the natural oscillation frequency of a plasma and sets the lower cut-off for certain wave modes. The electron plasma frequency in particular controls the refractive index of whistler-mode waves.
Reference: Parks, G. K. (1991). Physics of Space Plasmas: An Introduction. Addison-Wesley.
Parameters
Particle number density in m⁻³ (SI). Note: density models such as
density_equ_sheeley return values in cm⁻³; multiply by before passing to this function.Particle charge in Coulombs (C). Use
env.const.qe for electrons or env.const.qi for ions.Particle mass in kg. Use species constants from
env.const (e.g. env.const.me, env.const.mH).Returns
Plasma frequency in rad/s.
Example
Density must be in m⁻³ (SI). Density model outputs in cm⁻³ must be converted by multiplying by .
omega_lhr
Calculates the lower hybrid resonance (LHR) angular frequency. The lower hybrid resonance frequency marks the lower boundary of the frequency band in which whistler-mode waves can propagate obliquely. It is also important for electron acceleration by lower hybrid waves.
The formula used is:
Reference: Parks, G. K. (1991). Physics of Space Plasmas: An Introduction. Addison-Wesley.
Parameters
Electron gyrofrequency in rad/s. Obtain from
omega_cyclotron(B, qe, me).Electron plasma frequency in rad/s. Obtain from
omega_plasma(ne, qe, me).Ion gyrofrequency in rad/s. Obtain from
omega_cyclotron(B, qi, mi). For a hydrogen plasma use mH; for a mixed plasma use the dominant ion species.Ion plasma frequency in rad/s. Obtain from
omega_plasma(ni, qi, mi).Returns
Lower hybrid resonance frequency in rad/s.
Example
omega_uhr
Calculates the upper hybrid resonance (UHR) angular frequency. The upper hybrid resonance frequency marks the high-frequency electrostatic resonance driven by both the magnetic field and the plasma density, and appears as a distinctive feature in plasma wave spectra.
Reference: Parks, G. K. (1991). Physics of Space Plasmas: An Introduction. Addison-Wesley.
Parameters
Electron gyrofrequency in rad/s. Obtain from
omega_cyclotron(B, qe, me).Electron plasma frequency in rad/s. Obtain from
omega_plasma(ne, qe, me).Returns
Upper hybrid resonance frequency in rad/s.
Example
dwc_ds
Calculates the gradient of the cyclotron frequency with respect to arc length along the magnetic field line, . This gradient is directly proportional to the gradient of B and drives the inhomogeneity term in wave-particle resonance overlap calculations and non-linear trapping widths.
Since , the gradient is:
Parameters
Cyclotron frequency at the point of interest in rad/s. Typically computed as
omega_cyclotron(Bmag_dipole(L, lamda), q, m).Magnetic latitude in radians at the same point where
wc_arg was evaluated.L-shell value (dimensionless).
Returns
Gradient of the cyclotron frequency along the field line in rad/s per metre (rad s⁻¹ m⁻¹).
Example
The gradient is zero at the magnetic equator () and increases with latitude. It applies to any species — pass the appropriate gyrofrequency computed for that species. The formula is equivalent to
(q/m) * dB_ds and the two functions should give consistent results.