The OpenGadget3 Code for Cosmological Simulations
Klaus Dolag, Geray S. Karademir, Luca Tornatore, Antonio Ragagnin, Milena Valentini, Ludwig M. Böss, Frederick Groth, Giuseppe Murante,
Key points
From the paper's conclusion- We present the public release of OpenGadget3 (OG3), a substantially extended and re-organised version of the widely used Gadget-2/3 family of cosmological simulation codes.
Abstract
We present the public release of OpenGadget3 (OG3), a substantially extended and re-organised version of the widely used Gadget-2/3 family of cosmological simulation codes. Since G2 was made publicly available, the absence of continued official development led to the creation of numerous, mutually incompatible developer versions of G3 across the community. This made it effectively impossible to track bug fixes, reproduce published results, or consistently credit the many individual contributors. OG3 addresses this by consolidating these disparate developments into a single, documented, and continuously maintained code base, released under the GNU GPLv3 through a GitLab repository (with an accompanying wiki), regularly synchronised with the active developer branch, and supported by a dedicated continuous-integration (CI) pipeline. OG3 retains the core algorithmic backbone of its predecessors, a Barnes\&Hut oct-tree combined with a Particle-Mesh method for gravity, and a choice of Smoothed Particle Hydrodynamics or Meshless-Finite-Mass solvers for gas dynamics, within a hybrid MPI/OpenMP parallelisation framework, extended with GPU offloading via OpenACC and OpenMP. The code integrates an extensive suite of sub-resolution and physical modules, including primordial chemistry, radiative cooling, star formation, stellar feedback and chemical enrichment, dust formation and evolution, black hole growth and AGN feedback, MHD, thermal conduction, physical viscosity, SIDM, and massive neutrinos. OG3 introduces new features improving robustness, reproducibility, and usability: a flexible mixed-precision framework spanning 16- to 128-bit representations; expert-level tagged parameters with restart-time change log; extensive consistency checks against invalid configurations; and FAIR-compliant reporting of all settings, parameters, and specific publications. (shortened and abridged)
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Numerical solutions for black hole feeding and feedback in cosmological simulations with OpenGADGET3Astronomy and Computing · 2026
- Octavius: A High-Performance Analysis Toolkit for Galaxy SimulationsarXiv · 2026
- The FLAMINGO simulations data releaseAstronomy and Computing · 2026
- PrimordialPy: A Python library for single-field inflation, primordial black holes, and scalar-induced gravitational wavesarXiv · 2026
- GroArnold: A Framework for Constructing Action-based Models for Triaxial Galaxies and Dark Matter HalosResearch in Astronomy and Astrophysics · 2026
- Accuracy, Convergence and Consistency of Dark Matter Evolution with the PhotoNs-3 CodearXiv · 2026