Understanding how WPIT’s modules relate to one another makes it much easier to build a simulation or extract individual routines for a custom workflow. This page describes the architecture at a conceptual level — for the detailed function signatures and physics, follow the links to each module’s dedicated page.Documentation 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.
The Four Modules
WPIT is structured as a single Python package (WPIT) with four top-level sub-packages, each corresponding to a distinct layer of a wave-particle interaction simulation:
Data Flow
A standard WPIT simulation follows this pipeline:Environment_mod and the same wave-theory functions as WaveProperties_mod.
Module Dependencies
| Module | Depends on |
|---|---|
Environment_mod | numpy only (plus const.py for physical constants) |
WaveProperties_mod | Environment_mod (for const) |
WPI_mod (all sub-modules) | Environment_mod (for const), WaveProperties_mod (for wave fields) |
LandauDamp_mod | Environment_mod, WaveProperties_mod, pandas, scipy |
LandauDamp_mod also imports from LandauDamp_mod.RayUtils_mod, a sub-package that handles reading, appending, and plotting ray-tracing files. RayUtils_mod is not imported automatically by the parent __init__.py and must be used explicitly.Standalone vs. Library Use
Standalone simulation — Clone the repository, open one of theModule_descriptions/ or WPIT_tests/ Jupyter Notebooks, and run it. All imports are relative to the repository root, and plots are displayed inline.
Library use — Add the WPIT root to sys.path and import individual functions:
multiprocessing).
Concept Pages
Environment
Dipole field, density models, characteristic frequencies, and particle orbital parameters.
Wave Properties
Stix parameters, refractive index, dispersion relations, wave amplitudes, and resonance angles.
Wave-Particle Interactions
Gyro-averaged equations of motion, nonlinearity parameters, and the three WPI sub-modules.
Landau Damping
Spatial damping rate, distribution function models, ray-file integration, and enhancement factor.