Asymptotic-Preserving Plasma Modelling (APPM) is a project for simulating plasma under both non-neutral and quasi-neutral regimes. Spcecifically, the (rescaled) Euler-Maxwell system parametrized by scaled Deybe length is solved for both regimes in a unified code.
For details, check Master_thesis_TianweiYu.pdf
A quick visulization of the result (E-field lambda = 0.5)
- Eigen 3.3.7
- hdf5 1.10.9
-
On Windows (with MinGW)
mkdir build cd build cmake .. -G "MinGW Makefiles" cmake --build . -
On Linux (with gcc)
mkdir build cd build cmake .. make
The simulation parameters are inputed through AppmSolverParams.txt where you can set the following:
maxIterations: max iteration timesmaxTime: end time of simulationlambda: rescaled Debye lengthitersPerWrite: iteration interval to store snapshots
The mesh parameters are inputed through primalMeshParams.txt where you can set the following:
axialLayers: cell number along z-axis (axial axis)refinements: refinement level of the cross section of the plasma region (mesh size is halved per +1)outerLayers: refinement level of the outer non-conducting region (mesh size is haved per +1)zMax: length of the cylindrical region (=5 by default)electrodeRadius: radius of the contact boundary, e.g. radius of the plasma region (=1 be default)
These two files locate at the source directory.
To run the code,
-
on windows, use command:
appm -
on Linux, use command:
./appm
The solutions are stored in solutions_<meshType>_<entityType>.xdmf which rely on snapshot-<iteration>.h5 generated during the simulation.
For instance,
solutions_dual_cell.xdmfrepresents the quantities associated on dual cells, i.e. fluid quantities (density, momentum, energy) and reconstructed E-field and B-field.
To visualize the solutions, use Paraview (5.10.0):
- open
solutions_dual_cell.xdmf- select Xdmf3ReaderT
- apply and add filter Cell Data to Point Data
- apply and add filer Glyph
- select the variable to visualize
- adjust visualization parameters and apply
