SpinOctopus: A Versatile, User-Friendly, and Extensible Public Code for General-Relativistic Ray-Tracing in axisymmetric spacetime
Shiyang Hu, Dan Li, Chen Deng, Lina Zhang, Wenfu Cao
Key points
From the paper's conclusion- Benefiting from our customized adaptive step-size strategy for geodesic integration, SpinOctopus achieves an impressive processing efficiency of $\sim 800$ rays per second per thread on an Intel Core i7-14700 platform when simulating geometrically thick accretion disk images.
Abstract
Relativistic ray-tracing algorithms serve as indispensable numerical tools for investigating gravitational theories and high-energy astrophysics. In this paper, we develop and release SpinOctopus, a versatile relativistic ray-tracing code tailored for arbitrary axisymmetric spacetimes, powered by a Fortran/Python hybrid architecture and OpenMP multi-threading acceleration. This numerical toolkit is capable of simulating timelike orbits and their corresponding light curves, null geodesics, as well as black hole images illuminated by a wide array of phenomenological sources, including geometrically thin and thick accretion disks, geometrically thin tilted disks, relativistic jets, spherically symmetric accretion flows, and point sources. To execute these tasks, users are solely required to specify the covariant metric tensor of the target spacetime and the simulation parameters within a dedicated configuration file. Benefiting from our customized adaptive step-size strategy for geodesic integration, SpinOctopus achieves an impressive processing efficiency of $\sim 800$ rays per second per thread on an Intel Core i7-14700 platform when simulating geometrically thick accretion disk images. Furthermore, the code provides transparent interfaces, allowing users to seamlessly modify the geometric and kinematic properties of the light sources. Additional capabilities, such as simulating Fe K${\alpha}$ fluorescent line profiles and geometrically thick tilted accretion disk images, will be introduced in future releases of the framework.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- FOORT: Flexible Object-Oriented Ray TracingarXiv · 2026
- Particle motion and luminosity of accretion disks around rotating accelerating black holesJournal of Cosmology and Astroparticle Physics · 2026
- Raytracing Black Holes with AI AcceleratorsarXiv · 2026
- Spinning Black Holes in Modified Gravity via Spectral MethodsPhysical Review Letters · 2025
- FUGUE: A New GPU-accelerated General Relativistic Magnetohydrodynamics Code with Weak-Field Multipole Self-Gravity and Quasi-Stationary Kerr Black Hole EvolutionarXiv · 2026
- Towards ultrarelativistic scattering near the light ring: asymptotic divergence of gravitational-wave fluxesarXiv · 2026