Particle-in-cell code for plasma modelling: a version of the TRISTAN code by O. Buneman (1993) implemented in Cython and C.
- python 3
- cython 3
- optional (parallelization): MPI (tested with OpenMPI and Intel MPI) + mpi4py
- optional (output file format): HDF5 + h5py, necessary with MPI
- See available compilation options:
python setup.py --help
- Compile:
python setup.py build_ext --inplace --problem=problem_name [options]
problem_name
corresponds to the name of the chosen problem generator found in the src/problem
directory
- Create a user directory in the root folder:
mkdir user_dir
- Place a configuration file (example provided in the root folder) in the user folder:
cp config.cfg user_dir
- Run:
python main.py ./user_dir
- Output is written to
user_dir/out
, restart files saved inuser_dir/rst
.