PHARE
Parallel hybrid particle-in-cell code with adaptive mesh refinement
PHARE is an open-source hybrid particle-in-cell code for collisionless plasmas. Ions are followed as macro-particles; electrons are a massless, isothermal fluid whose momentum equation gives the electric field. Patch-based adaptive mesh refinement (SAMRAI) refines the grid in user-defined boxes or where the magnetic field varies sharply. PHARE runs in 1D, 2D and 3D with MPI and is driven from Python.
1D · 2D · 3Dinterpolation orders 1 to 3
AMRpatch-based (SAMRAI), refinement ratio 2
MPIoptional dynamic load balancing
Pythoninput scripts and post-processing
GPLv3licence
News
- Adaptive time stepping for the MHD solver. #1231
- A standalone finite-volume MHD solver, configured from Python, with 1D, 2D and 3D test cases. #1218
- 3D hybrid simulations, including 3D particle splitting for refined levels. #1158
- VTK-HDF output, readable directly by ParaView. #1141
- Optional dynamic load balancing across MPI ranks. #807
- The PHARE method paper is published in Computer Physics Communications.
- Automatic refinement in 2D. #678
- Checkpoint and restart. #649
- 2D hybrid simulations with mesh refinement. #551
- Automatic refinement in 1D: cells are tagged where the magnetic field varies sharply. #399
- First 1D run with self-consistent refinement.
- Smets et al., on particle splitting for refined levels, is published in Computer Physics Communications.
- Simulations can be initialised and advanced from Python. #286
- First 1D run on two levels: an Alfvén wave crossing a fixed refined patch.
- HDF5 diagnostics for electromagnetic fields, ion moments and particles. #69
Work in progress
to validate- in review Physical boundary conditions #1318
- in review Higher-order field refinement at level boundaries #1278
- in review Prescribed external fields #1327
- draft MHD and hybrid levels in one simulation #1309
- draft Multithreading #1324
Week-by-week development activity: activity reports.