Python code for solving the micro-macro decomposition of the Vlasov-Poisson-Lenard-Bernstein system.
This code was used to generate the results presented in Endeve & Hauck (2022), JCP, 462, 111227.
In the micro-macro decomposition, the kinetic distribution function is decomposed as
The micro-macro method solves for a coupled system of equations for the moments
All python source code is located under the Source directory.
Drivers for the Relaxation, Riemann, and Collisional Landau Damping problems are named RelaxationMM.py, RiemannProblemMM.py, and CollisionalLandauDampingMM.py, respectively.
Corresponding drivers using the direct method (solving for the kinetic distribution
As an example, to run the Relaxation problem with the micro-macro method, invoke the following command in a terminal window from the Source directory
python RelaxationMM.py
During execution, select time slices are written to HDF5 files (named RelaxationMM_00000000.h5, etc.).
The MatLab function ReadData.m can be used to read data from an HDF5 file for plotting.