2024/08/02 by Cora Prather, Ben Prather, Prather, Ben S. · 5 citations
Medicine · Physics and Astronomy · #Astrophysical Phenomena and Observations #Geology #Medical Imaging Techniques and Applications #Particle Detector Development and Performance
paper · pdf · doi:10.1007/978-981-97-8522-3_5
published in Springer Series in Astrophysics and Cosmology, 167-201
openalex publication_date 2025/01/01 · openalex created_date 2025/10/10 · openalex updated_date 2026/06/28
KHARMA (an acronym for "Kokkos-based High-Accuracy Relativistic Magnetohydrodynamics with Adaptive mesh refinement") is a new open-source code for conducting general-relativistic magnetohydrodynamic simulations in stationary spacetimes, primarily of accretion systems. It implements among other options the High-Accuracy Relativistic Magnetohydrodynamics (HARM) scheme, but is written from scratch in C++ with the Kokkos programming model in order to run efficiently on both CPUs and GPUs. In addition to being fast, KHARMA is written to be readable, modular, and extensible, separating functionality into "packages," representing, e.g., algorithmic components or physics extensions. Components of the core ideal GRMHD scheme can be swapped at runtime, and additional packages are included to simulate electron temperature evolution, viscous hydrodynamics, and for designing chained multi-scale "bridged" simulations. This chapter presents the computational environment and requirements for KHARMA, features and design which meet these requirements, and finally, validation and performance data.