Skip to content
Preprint

KROME-X: a GPU-ready library for chemistry and microphysics in astrophysical simulations

Oct 2026 · 0 citations · 9 references
Physics

TL;DR

KROME-X is introduced, a complete rewrite of KROME in modern C++, which incorporates updated physics and provides a portable, extensible framework for astrochemical kinetics on both CPUs and GPUs for future hydrodynamic simulations.

Abstract

KROME is a Python pre-processor that writes a complete Fortran solver of chemistry and microphysics for each chemical network, widely used in astrophysical simulations. We introduce here KROME-X, a complete rewrite of KROME in modern C++, which incorporates updated physics. A code generator translates a declarative network description into a compact core (rates, right-hand side, analytic Jacobian, thermal terms, and tables), which a fixed, header-only runtime integrates with a C++ port of the `backward differentiation formula'method of CVODE (SUNDIALS). The physics is validated against legacy KROME and independent references. On the legacy test cases KROME-X reproduces legacy KROME to the accuracy of the solvers, wherever the physics is the same, and is up to 13.5 times faster at equal tolerance. On NVIDIA A100 GPUs, it can outperform its share of a computing node from a few thousand cells per call, with the highest throughput (5 to 30) obtained for $10^5$ cells per batch. Networks of hundreds of species still run faster on the CPU due to the GPU's limited memory capacity. The new version also includes, among other changes, on-the-fly co-evolution of a photon field alongside chemistry, which conserves photons exactly; the secondary ionizations using the photoelectron energy of each absorption; dust evolution in size and temperature with a true grain energy equation; line cooling rates rebuilt from current atomic and molecular data, and incorporating optical thickness effects. KROME-X therefore represents the natural successor of KROME and provides a portable, extensible framework for astrochemical kinetics on both CPUs and GPUs for future hydrodynamic simulations.

View source

Similar papers

Preprint Oct 2026

Chana: A GPU-Accelerated Adaptive-Mesh Code for General Relativistic Magnetohydrodynamics with Multigroup M1 Neutrino Transport

This paper presents Chana, a GPU-accelerated, block-structured adaptive-mesh code for general relativistic magnetohydrodynamics, multigroup M1 neutrino transport, and dynamical spacetime evolution using the Z4c formulation. Each physical module uses independently selected spatial discretizations and ghost-zone widths t...

Tian-Shu Wang · 0 citations
Preprint Sep 2026

Differentiable astrophysics at scale: solving and differentiating ODE ensembles on the GPU

Astronomers increasingly fit their models with gradient-based methods, such as Hamiltonian Monte Carlo, which need the derivatives of the model with respect to its parameters. In many analyses a prediction requires solving a small system of ordinary differential equations (ODEs) for thousands to millions of parameter s...

A. Spurio Mancini · 1 citation
Preprint Nov 2026

Heterogeneous Acceleration of TRIMEG++ code using OpenMP for Gyrokinetic Simulations

Turbulent transport largely determines the performance of magnetic-confinement fusion devices such as tokamaks, and gyrokinetic particle-in-cell (PIC) simulations are a principal tool to predict it. Advancing up to hundreds of millions of markers and solving large sparse field systems at every time step makes whole-dev...

Nicola Noventa, Giorgio Daneri, Z. Lu et al. · 0 citations
Preprint Sep 2026

Performance-portable GPU acceleration of the hybrid particle-in-cell code dHybridR

Hybrid particle-in-cell simulations are widely used to study kinetic processes in collisionless astrophysical and space plasmas, yet the high computational cost of large-scale three-dimensional runs has largely confined production studies to two dimensions or restricted domains. To address this challenge, we present a...

Bricker Ostler, Miha Cernetic, D. Caprioli · 0 citations
Preprint Oct 2026

OPALX: A performance-portable framework for particle accelerator simulations

OPALX, a performance-portable accelerator simulation framework that builds on the beam-dynamics capabilities of OPAL, is presented, providing a common foundation for extending accelerator models and numerical methods across heterogeneous computing platforms.

M. Zampetakis, Ryan Sean Ammann, Y. Bi et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.