PHARE

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.

Three panels of ion density from a 2D PHARE run: the full domain, the refined patches in a zoomed region, and the density in that region.
Ion density in a 2D PHARE simulation at t = 424.66, in units of the inverse ion cyclotron frequency. Top: full domain. Middle: boundaries of the refined patches in the boxed region. Bottom: density in that region. to validate
1D · 2D · 3Dinterpolation orders 1 to 3
AMRpatch-based (SAMRAI), refinement ratio 2
MPIoptional dynamic load balancing
Pythoninput scripts and post-processing
GPLv3licence

News

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.