English

Mahakala: a Python-based Modular Ray-tracing and Radiative Transfer Algorithm for Curved Space-times

High Energy Astrophysical Phenomena 2025-05-20 v2 General Relativity and Quantum Cosmology

Abstract

We introduce Mahakala, a Python-based, modular, radiative ray-tracing code for curved space-times. We employ Google's JAX framework for accelerated automatic differentiation, which can efficiently compute Christoffel symbols directly from the metric, allowing the user to easily and quickly simulate photon trajectories through non-Kerr spacetimes. JAX also enables Mahakala to run in parallel on both CPUs and GPUs. Mahakala natively uses the Cartesian Kerr-Schild coordinate system, which avoids numerical issues caused by the pole in spherical coordinate systems. We demonstrate Mahakala's capabilities by simulating 1.3 mm wavelength images (the wavelength of Event Horizon Telescope observations) of general relativistic magnetohydrodynamic simulations of low-accretion rate supermassive black holes. The modular nature of Mahakala allows us to quantitatively explore how different regions of the flow influence different image features. We show that most of the emission seen in 1.3 mm images originates close to the black hole and peaks near the photon orbit. We also quantify the relative contribution of the disk, forward jet, and counter jet to 1.3 mm images.

Cite

@article{arxiv.2304.03804,
  title  = {Mahakala: a Python-based Modular Ray-tracing and Radiative Transfer Algorithm for Curved Space-times},
  author = {Aniket Sharma and Lia Medeiros and Chi-kwan Chan and Goni Halevi and Patrick D. Mullen and James M. Stone and George N. Wong},
  journal= {arXiv preprint arXiv:2304.03804},
  year   = {2025}
}

Comments

15 pages, 12 figures

R2 v1 2026-06-28T09:54:53.180Z