GitPedia

PHARE

๐Ÿ’ซ Parallel Hybrid Particle In Cell code with Adaptive mesh REfinement

From PHAREHUBยทUpdated June 17, 2026ยทView on GitHubยท

PHARE is a Hybrid Particle-In-Cell (PIC) code. It solves the evolution of the Vlasov equation of an arbitrary number of ion populations in a Lagrangian way. Electrons are modeled as a single fluid. Their momentum equation is used to compute the electric field, assuming quasineutrality. The project is written primarily in C++, distributed under the GNU General Public License v3.0 license, first published in 2018. Key topics include: c-plus-plus-20, computational-physics, hpc, hybrid, lpp.

<div align="center"> <img src="https://github.com/user-attachments/assets/5e330ec4-99c7-4872-a5d4-73c618aaba07" alt="PHARE snapshot"> <p align="center"> <a href="https://www.gnu.org/licenses/gpl-3.0"> <img src="https://img.shields.io/badge/PHARE-GPL%20v3-blue.svg" alt="License: GPL v3" /> </a> <a href=""> <img src="https://img.shields.io/badge/Language-C++20-blue.svg" alt="CPP20" /> </a> <a href="https://phare.readthedocs.io/en/latest/?badge=latest"> <img src="https://readthedocs.org/projects/phare/badge/?version=latest" alt="Documentation Status" /> </a> <a href="https://doi.org/10.1016/j.cpc.2023.108966"> <img src="https://img.shields.io/badge/DOI%20(paper)-10.1016/j.cpc.2023.108966-blue.svg" </a> <a href="https://arxiv.org/abs/2210.14580"> <img src="https://img.shields.io/badge/DOI%20(arXiv)-https://arxiv.org/abs/2210.14580-blue.svg" </a> </p> </div>

PHARE: Parallel Hybrid PIC code with Adaptive mesh REfinement

PHARE is a Hybrid Particle-In-Cell (PIC) code. It solves the evolution of the Vlasov equation
of an arbitrary number of ion populations in a Lagrangian way. Electrons are modeled as a single fluid.
Their momentum equation is used to compute the electric field, assuming quasineutrality.

Using Adaptive Mesh Refinement, provided by the library SAMRAI,
PHARE aims at filling the gap between sub-ion scales and large "MHD" scales by increasing the mesh
resolution wherever the solution needs it.

WARNING - PHARE is under development ;-)

Software Licence

PHARE is an open-source projet licenced under the GPLv3. Please refer to LICENCE.TXT

Building the code

Basic tools and library requirements:

- git
- cmake
- make/ninja
- C++ and Fortran compiler
- MPI
- Parallel HDF5
- Python 3.x devel package

PHARE input and post-processing scripts are in python. Install dependencies with:

  python3 -m pip install -r requirements.txt

PHARE depends on SAMRAI to manage the adaptive mesh refinement. You can either

  • build PHARE with the latest version of SAMRAI:
  mkdir build; cd build; cmake ..; make
  • build PHARE with a pre-installed version of SAMRAI:
  mkdir build; cd build; cmake .. -DSAMRAI_ROOT=/path/to/SAMRAI/install; make

Documentation

Developers

Contributing

All contributions are welcome. If you are interested in participating to the project for an internship, PhD, PostDoc, contact us.

Development environnment

For system library requirements see the following Docker File

Active core team

Former collaborators

Publications

To cite PHARE :

bib
@article{AUNAI2024108966, title = {PHARE: Parallel hybrid particle-in-cell code with patch-based adaptive mesh refinement}, journal = {Computer Physics Communications}, volume = {295}, pages = {108966}, year = {2024}, issn = {0010-4655}, doi = {https://doi.org/10.1016/j.cpc.2023.108966}, url = {https://www.sciencedirect.com/science/article/pii/S0010465523003119}, author = {Nicolas Aunai and Roch Smets and Andrea Ciardi and Philip Deegan and Alexis Jeandet and Thibault Payet and Nathan Guyot and Loic Darrieumerlou}, keywords = {Particle in cell, Adaptive mesh refinement, Collisionless plasmas}, }

More

Acknowledgments

We acknowledge support from:

Contributors

Showing top 8 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from PHAREHUB/PHARE via the GitHub API.Last fetched: 6/27/2026