TheDocumentation 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.
WPI_mod package provides the equations of motion needed to trace a single charged particle through a magnetospheric wave field. Each sub-module targets a specific wave mode and particle species combination, supplying time-derivative functions that can be integrated with any standard ODE solver (e.g., scipy.integrate.solve_ivp). The oblique sub-modules (whistler_electron_mod and EMIC_ion_mod) include a wpi_params helper that pre-computes wave-coupling parameters from the instantaneous particle and wave state. All three sub-modules provide a family of time-derivative functions and a set of nonlinear trapping diagnostics (nonlinear_H, nonlinear_S, nonlinear_theta); parallel_EMIC_mod omits wpi_params because the parallel geometry removes the need for Bessel-function decomposition.
Package layout
Import patterns
Common usage pattern
A typical integration loop reads current particle state variables, callswpi_params once per time-step to derive wave-coupling parameters, then evaluates each time-derivative function and passes the results to the integrator.
All momentum values use SI units (kg m s⁻¹). Wave field amplitudes are in SI (T for magnetic, V m⁻¹ for electric). Angular frequencies are in rad s⁻¹. Physical constants are drawn from
WPIT.Environment_mod.const.Sub-module comparison
| Feature | whistler_electron_mod | EMIC_ion_mod | parallel_EMIC_mod |
|---|---|---|---|
| Wave mode | Oblique whistler | Oblique EMIC | Parallel EMIC |
| Species | Electrons | Ions | Ions or electrons |
| Particle mass | const.me | User-supplied mi | User-supplied m |
| Oblique geometry | ✓ (kx, kz) | ✓ (kper, kpar) | ✗ (parallel only) |
dkpardt | ✗ | ✓ (direct import only) | ✗ |
dwcdt | ✗ | ✓ | ✗ |
wpi_params helper | ✓ | ✓ | ✗ (not needed) |
Sub-module pages
Whistler–Electron
Oblique whistler-mode wave interactions with electrons, including full nonlinear trapping diagnostics.
EMIC–Ion
Oblique EMIC wave interactions with ions; adds parallel wavenumber and cyclotron frequency evolution.
Parallel EMIC
Simplified parallel-propagating EMIC geometry; Bessel-function terms collapse to unity.