Gyselalib++: A Portable C++ Library for Semi-Lagrangian Kinetic and Gyrokinetic Simulations
Gyselalib++ provides the mathematical building blocks to construct kinetic or gyrokinetic plasma simulation codes in C++, simulating a distribution function discretised in phase space on a fixed grid.It relies on the Discrete Domain Computation (DDC) library (Padioleau et al., 2025) to statically type the discretisation dimensions, thus preventing many common sources of errors.Via DDC, Gyselalib++ also leverages the Kokkos framework (Trott et al., 2022), ensuring performance portability across various CPU and GPU architectures.The library provides a variety of tools including semi-Lagrangian advection operators, quadrature rules, and solvers for elliptic and hyperbolic partial differential equations (PDEs).The majority of the operators are designed to work on non-orthonormal coordinate systems; those that don't use the static typing to raise compiler errors preventing their misuse.
Authors
- Philipp Krah (ORCID: https://orcid.org/0000-0001-8982-4230)
- Kévin Obrejan (ORCID: https://orcid.org/0000-0002-1906-4181)
- A. C. D. Hoffmann
- Emily Bourne
- Yuuichi Asahi (ORCID: https://orcid.org/0000-0002-9997-1274)
- Peter Donnel (ORCID: https://orcid.org/0000-0002-6669-416X)
- Yann Munschy (ORCID: https://orcid.org/0000-0002-3002-9352)
- Julien Bigot (ORCID: https://orcid.org/0000-0002-0015-4304)
- Pedro Vidal
- V. Grandgirard
- Thomas Padioleau (ORCID: https://orcid.org/0000-0001-5496-0013)
- Etienne Malaboeuf (ORCID: https://orcid.org/0009-0007-3320-1406)
- Baptiste Legouix (ORCID: https://orcid.org/0009-0006-7585-669X)
- Matthieu Protais
- Abdelhadi Kara
Institutions
- Centre National de la Recherche Scientifique (FR)
- Université de Versailles Saint-Quentin-en-Yvelines (FR)
- Commissariat à l'Énergie Atomique et aux Énergies Alternatives (FR)
- Université Paris-Saclay (FR)
- Centre Informatique National de l'Enseignement Supérieur (FR)
- CEA Cadarache (FR)
- Maison de la Simulation (FR)
- CEA Paris-Saclay (FR)
- Max Planck Institute for Plasma Physics (DE)
- École Polytechnique Fédérale de Lausanne (CH)
Publication Details
- Journal
- The Journal of Open Source Software
- Published
- 2025-09-09
- DOI
- https://doi.org/10.21105/joss.08582
- Citations
- 2
- Primary Topic
- Magnetic confinement fusion research
- Type
- article
- Field-Weighted Citation Impact
- 3.74
Funders
- EUROfusion
- European Commission
- Commissariat à l'Énergie Atomique et aux Énergies Alternatives
- Grand Équipement National De Calcul Intensif