Usage¶
Build executable¶
-
Navigate to
source/directory. -
Source (execute in the current shell):
# OpenPMD install directory export LD_LIBRARY_PATH=$HOME/openpmd/lib:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=$HOME/openpmd/lib/pkgconfig:$PKG_CONFIG_PATH # change path to your python MAJOR.MINOR version export PYTHONPATH=$HOME/openpmd/lib/python3.13/site-packages:$PYTHONPATH # HYPRE install directory export LD_LIBRARY_PATH="$HOME/hypre/install/lib:${LD_LIBRARY_PATH}" make clean # optional make
Create HEXAPIC input file¶
-
Navigate to
picmidirectory. -
Modify
create_input_file.pyaccording to your simulation needs. -
Run:
to createinput_file.inp.
Run the simulation¶
-
Copy the previously created input file into the directory where you want to run the simulation, e.g.
test/. -
Run the HEXAPIC executable:
NOTE: If-steps Nstepsis not provided, the simulation will run for 100 steps.
Visualise code output¶
-
Install required Python modules: numpy, scipy, pyqtgraph, pyside6, opengl
-
Run:
This will bring up the GUI:
-
Click on the fields to the left to switch between the physical quantities to visualise.
GUI field description:
- nx : Particle density of specie x in m−3
- Tx: Temperature of specie x in eV
- vx: Velocity of specie x in m/s
- V : Space potential in V