Search arXivSearch

arXiv · 2609.17658

The OpenGadget3 Code for Cosmological Simulations

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)

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Klaus Dolag, Geray S. Karademir, Luca Tornatore, Antonio Ragagnin, Milena Valentini, Ludwig M. Böss, Frederick Groth, Giuseppe Murante, Stefano Borgani, Volker Springel, Cenanda Arido, Javier Badía, Tiago Castro, Alice Damiano, Laura Di Federico, Moritz S. Fischer, Gian Luigi Granato, Nitya Hariharan, David Klemmer, Umberto Maio, Tirso Marin-Gilabert, Ilaria Marini, Yashraj Patil, Margarita Egelhofer, Cinthia Ragone-Figueroa, Luca Sala, Cecilia Scannapieco, Ludwig D. Schmidt, Ulrich P. Steinwandel, Giovanni Tedeschi-Prades, Marc Wiertel. 2026-09-15. The OpenGadget3 Code for Cosmological Simulations. https://arxiv.org/abs/2609.17658

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Multi-Scale Contrastive Attention for Light-Curve Representation Learning

Current and next-generation time-domain surveys demand automated techniques capable of analyzing millions of light curves, observed in multiple filters, without relying on exhaustive human annotation or scarce spectroscopic follow-up. We present Astra-CLR, an attention-based, self-supervised contrastive learning framework which enables the representation of raw light curves into a highly discriminative latent space. Pre-trained on $\sim$2.1 million unlabeled Zwicky Transient Facility light curves, the framework utilizes partial light curves as input sequences to generate asymmetric, multi-scale temporal views (explicitly contrasting shorter sequences against longer ones) forcing the network to learn a robust "local-to-global" mapping strategy. Furthermore, we introduce a novel multi-view late fusion architecture that extends the model to efficiently handle longer light curves with larger numbers of observations while accommodating the different cadences associated with each filter. The discriminatory power of the resulting representations was evaluated by using them as input to a Multinomial Logistic Regression classifier, trained to identify 12 broad classes of variability. Final accuracy achieved $\sim 0.70$. When applying a label-efficient, partial top-layer fine-tuning strategy, the topological structure of the latent space is significantly refined, boosting results to $\sim$0.77. Astra-CLR is the first publicly available multi-filter time-series Transformer trained exclusively on real ZTF light curves. Results presented here demonstrate that it provides an ideal foundation for the development of end-to-end pipelines, taking into account color evolution and respecting the inhomogeneous nature of astronomical light curve sampling.

astro-ph.IM

Combining astrometry with pulsar timing: the first joint analysis of very low frequency gravitational waves

The pHz to sub-nHz GW regime remains largely unexplored but is crucial for mapping the early inspiral stage of SMBHBs and probing early-Universe physics. Astrometry and pulsar timing offer orthogonal and deeply complementary secular observables to investigate this frequency band. We aim to present the first joint data analysis combining real astrometric proper motions with binary pulsar timing, to search for and constrain continuous gravitational waves (CWs) sourced by SMBHBs in the ultra-low-frequency regime ($10^{-12} \le f_{GW} \le10^{-9} Hz$). We employ a Bayesian model selection and upper limit estimation framework to combine apparent proper motion displacements of $\sim 1.5 \times 10^6$ quasars from the Gaia CRF3 catalog with the line-of-sight orbital period derivatives ($\dot{P}_b$) of 11 high-precision binary pulsars. To prevent spurious detections, we heavily model instrumental and astrophysical systematics: we propagate the Galactic potential uncertainty for pulsars via Monte Carlo simulations and perform a Vector Spherical Harmonics (VSH) decomposition up to the octupole order (l=3) for quasars. We find no statistically significant evidence for a CWs signal in the joint analysis ($\ln B_{joint} = -0.42 \pm 0.03$). In the absence of detection, we set the tightest constraints to date on CW strain in the pHz band, yielding a 95% upper limit of $h_0\le6.4x10^{-11}$ at a reference frequency of $f_{ref} = 4 \times 10^{-10}$ Hz. The combined dataset achieves full sky coverage and improves single-dataset upper limits by 20%-30%. Combining orthogonal observables successfully breaks spatial degeneracies intrinsic to isolated searches. Furthermore, forecasts from inj.-rec. indicate that with the extended temporal baseline and reduced uncertainties of the upcoming Gaia DR4, this joint framework is poised to break the $h_0 < 10^{-11}$ upper limit barrier for sub-nHz CWs.

astro-ph.IM

Bayesian classification of astronomical spectra with class uncertainties

Context: We developed a probabilistic machine learning method with the aim of performing the O(10)-way classification of low- and high-resolution spectra of stellar and extragalactic targets for the upcoming 4MOST survey. In fulfilment of the survey requirements, this method should be able to express uncertainty in the input data as well as uncertainty introduced in its prediction. Aims: Four different methods are explored: (1) convolutional neural networks (CNNs), (2) the Dirichlet distribution, (3) Monte Carlo dropout (MCD), (4) Bayesian neural Networks (BNNs) + variational inference (VI). Training and validation was performed using labelled spectra from the SDSS database and a custom 4MOST mock dataset. All the methods were compared in terms of the same metrics: accuracy, area under the curve (AUC), expected calibration error (ECE), Shannon entropy, negative log-likelihood (NLL), Brier score, training time, and inference time. Methods: A CNN with simple architecture and about 20,000 parameters was trained to achieve classification accuracies of 91.5% on SDSS data and 92.8% on 4MOST mock data. The direct Dirichlet prediction and VI models tested provide uncertainties on class membership probabilities, but they confuse classes more often. The MCD on a CNN is found to be the most suitable; it boosts the point-estimate accuracies to 92.6% and 93.9%, while still providing fast training and sufficiently fast inference. Compared to a standard CNN, the method additionally provides well-calibrated uncertainties at marginal extra cost.

astro-ph.IM