/PHARE

Parallel Hybrid particle in cell code with Adaptive mesh REfinement

Primary LanguageC++GNU General Public License v3.0GPL-3.0

License: GPL v3 CPP17 LGTM Total alerts codefactor

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.

PHARE is still under development.

Software Licence

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

Install

For system library requirements see the following Docker File

For Python API, install dependencies:

  python3 -m pip install -r requirements.txt

Build with CMake and latest SAMRAI:

  mkdir build; cd build; cmake ..; make

Build with CMake and specific SAMRAI:

  mkdir build; cd build; cmake .. -DSAMRAI_ROOT=/path/to/SAMRAI/install; make

Developers

Contributing

All contributions are welcome, although the code is still at an early phase of its development. If you are interested in participating to the project for an internship, PhD, PostDoc, contact us.

Active core team

Former collaborators

Publications

  • Smets R., Aunai, N., Ciardi, A., Drouin M., Campos-Pinto M., Deegan P., A new method to dispatch split particles in Particle-In-Cell codes, Computer Physics Communications, https://doi.org/10.1016/j.cpc.2020.107666

Acknowledgments

The project PHARE is supported by: