Export citation

Export citation

Choose format for download:

Download Citation

    Modern, infrastructure-agnostic, extensible library for GRMHD simulations

    Samuel Cupp1,*,†, Leonardo R. Werneck1,*,‡, Terrence Pierre Jacques2,3,§, Samuel Tootle1,∥, and Zachariah B. Etienne1,2,3,¶

    • *These authors contributed equally to this work.
    • Contact author: scupp1@my.apsu.edu
    • Contact author: leonardo@uidaho.edu
    • §Contact author: tp0052@mix.wvu.edu
    • Contact author: sdtootle@gmail.com
    • Contact author: zetienne@uidaho.edu

    Phys. Rev. D 113, 043045 – Published 23 February, 2026

    DOI: https://doi.org/10.1103/bbtm-31r5

    Abstract

    Interpreting multimessenger signals from neutron stars and black holes requires reliable general relativistic magnetohydrodynamics (GRMHD) simulations across rapidly evolving high-performance computing platforms, yet key algorithms are routinely rewritten within infrastructure-specific numerical relativity codes, hindering verification and reuse. We present the General Relativistic Hydrodynamics Library (grhayl), a modular, infrastructure-agnostic GR(M)HD library providing conservative-to-primitive recovery, reconstruction, flux/source and induction operators, equations of state, and neutrino leakage through an intuitive interface. grhayl refactors and extends the mature illinoisgrmhd code into reusable point- and stencilwise kernels, enabling rapid development and cross-code validation in diverse frameworks, while easing adoption of new microphysics and future accelerators. We implement the same kernels in the einstein toolkit (carpet and carpetx) and blackholes@home, demonstrating portability with minimal duplication. Validation combines continuous-integration unit tests with cross-infrastructure comparisons of analytic GRMHD Riemann problems, dynamical Tolman-Oppenheimer-Volkoff evolutions, and binary neutron star mergers, showing comparable or improved behavior over legacy illinoisgrmhd and established einstein toolkit codes.

    Physics Subject Headings (PhySH)

    Authorization Required

    We need you to provide your credentials before accessing this content.

    References (Subscription Required)

    Outline

    Information

    Sign In to Your Journals Account

    Filter

    Filter

    Article Lookup

    Enter a citation