Demos

PyPIC3D includes runnable demos in demos/ that cover common workflows. Run commands below from the repository root.

Two-Stream Instability

PyPIC3D --config demos/two_stream/two_stream.toml

Weibel Instability

PyPIC3D --config demos/weibel/weibel.toml

Orszag-Tang Vortex

cd demos/ot_vortex
python initial_conditions.py
PyPIC3D --config orszag_tang.toml

Harris Sheet Reconnection

cd demos/reconnection_2d
python initial_conditions.py
PyPIC3D --config harris_current.toml

Convergence Scripts

python demos/convergence_testing/interpolation_convergence_test.py
python demos/convergence_testing/solver_convergence_test.py

Notes

  • Some demos read external .npy initial conditions.

  • Output files are written to each demo’s configured output_dir.