KAMELpy is the Python interface for preparing, running and reading
QL-Balance and KiLCA runs, plus analysis modules from past studies. KIM has
its own package, kim (in KIM/python), which is
installed alongside KAMELpy.
Python 3.10 or newer is required. From the KAMEL repository root, create a virtual environment and install both packages in editable mode:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e ./KIM/python -e ./pythonEditable installs find the executables in build/install/bin/ of this
checkout, so build the codes first (see the main README).
The experimental dispersion modules in KIMpy and susc_functions need
plasmapy and cxroots in addition:
python -m pip install -e './python[analysis]'| Package | Purpose |
|---|---|
balance_interface |
QL_Balance_interface: write QL-Balance inputs, run ql-balance.x, read results |
KiLCA_interface |
Prepare, run and post-process KiLCA runs |
utility |
Profile helpers, e.g. parabolic test profiles around a resonant surface |
device_config |
Device parameters (ASDEX Upgrade, MAST-U) |
KIMpy |
Experimental KIM dispersion and field-solver analysis |
pyABC |
Inputs for the analytical bifurcation criterion (unfinished) |
The remaining packages hold analysis scripts from individual studies.
Tutorial 4 shows a complete QL-Balance run set up with KAMELpy.