The Kratos Framework for Heterogeneous Astrophysical Simulations: Ray Tracing, Reacting Flow and Thermochemistry
Lile Wang
TL;DR
This work presents Kratos, a GPU-optimized framework for heterogeneous astrophysical simulations that tightly couples thermochemistry, ray tracing, and radiation-matter interactions with hydrodynamics. It introduces a stoichiometry-aware reconstruction method that preserves elemental abundances without matrix inversions, along with a GPU-friendly LU decomposition for solving stiff thermochemical ODEs in a massively parallel setting. Comprehensive verifications using advection tests, Strömgren spheres, and detonation benchmarks demonstrate high accuracy, robust conservation, and substantial performance gains over CPU-based approaches. The combination of consistent microphysics, high-order advection, and efficient radiation transport enables realistic modeling of complex environments such as star-forming regions and explosive astrophysical events. The framework’s modular design, demonstrated scalability, and plan for future enhancements (scattering, polarization, and machine-learning accelerators) position Kratos as a powerful tool for studying coupled microphysical processes across diverse astrophysical contexts.
Abstract
Thermochemistry, ray-tracing radiation, and radiation-matter interactions are important processes which are computationally difficult to model in astrophysical simulations, addressed by introducing novel algorithms optimized for heterogeneous architectures in the Kratos framework. Key innovations include a stoichiometry-compatible reconstruction scheme for consistent chemical species advection, which ensures element conservation while avoiding matrix inversions, and a LU decomposition method specifically designed for multi-thread parallelization in order to solve stiff thermochemical ordinary differential equations with high efficiency. The framework also implements efficient ray-tracing techniques for radiation transport for radiation-matter interactions. Various verification tests, spanning from chemical advection, combustion, Strömgren spheres, and detonation dynamics, are conducted to demonstrate the accuracy and robustness of Kratos, with results closely matching semi-analytic solutions and benchmarks such as Cantera and the Shock and Detonation Toolbox. The modular design and performance optimizations position it as a versatile tool for studying coupled microphysical processes in the diverse environments of contemporary astrophysical studies.
