Skip to content
DraconiticResearch
Search Sources API
181,713 studies31 sourcesUpdated 53 min ago
PreprintCC BY 4.0arXiv

KROME-X: a GPU-ready library for chemistry and microphysics in astrophysical 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 105 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.

Related

  1. Charged-current neutrino opacity within the relativistic Hartree-Fock framework for astrophysical simulations of core-collapse supernovae and binary neutron star mergers
    Kamil Sokołowski, Anil Kumar, Tobias Fischer
    arXivPreprintCC0Full textHigh-energy astrophysicsHigh-energy & particle physicsarXiv
  2. Towards a coupled activity-fallback model for comets I) 67P/Churyumov-Gerasimenko's water activity from a microphysics model with dynamic dust-depth
    Nicholas Attree, Yuri Skorov, Pedro Gutiérrez +4
    arXivPreprintarXiv licenceFull textPlanetary science & exoplanetsarXiv
  3. Towards a coupled activity-fallback model for comets I) 67P/Churyumov-Gerasimenko’s water activity from a microphysics model with dynamic dust-depth
    N Attree, Y Skorov, P Gutiérrez +4
    Monthly Notices of the Royal Astronomical SocietyPeer-reviewedCC BY 4.0Full textPlanetary science & exoplanetsCrossref
  4. Collider Probes of Dark Energy Microphysics
    Chaitanya Bashyam, Alfredo Gurrola, Andres Florez +1
    arXivPreprintarXiv licenceFull textCosmologyGravitation & general relativityarXiv
  5. Beta-Particle Transport and Thermalization in Kilonova Ejecta with Detailed Atomic Microphysics
    Zachary L. Andalman, Christopher L. Fryer, Christopher J. Fontes +2
    arXivPreprintCC BY 4.0Full text1 citedHigh-energy astrophysicsarXiv
BibTeX
@misc{lupi2026kromex,
  title = {{KROME-X: a GPU-ready library for chemistry and microphysics in astrophysical simulations}},
  author = {Alessandro Lupi and Tommaso Grassi and Stefano Bovino},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.28917},
  eprint = {2610.28917},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.28917},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - KROME-X: a GPU-ready library for chemistry and microphysics in astrophysical simulations
AU  - Alessandro Lupi
AU  - Tommaso Grassi
AU  - Stefano Bovino
PY  - 2026
DA  - 2026/10/20
PB  - arXiv
DO  - 10.48550/arxiv.2610.28917
UR  - https://arxiv.org/abs/2610.28917
AB  - 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.
ER  -