Nyx-RT: Adaptive Ray Tracing in the Nyx Hydrodynamical Code

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Marshak, Nathan X., Simotas, Kathlynn, Lukić, Zarija, Park, Hyunbae, Ahrens, James, Johnson, Chris R.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908708961779712
author Marshak, Nathan X.
Simotas, Kathlynn
Lukić, Zarija
Park, Hyunbae
Ahrens, James
Johnson, Chris R.
author_facet Marshak, Nathan X.
Simotas, Kathlynn
Lukić, Zarija
Park, Hyunbae
Ahrens, James
Johnson, Chris R.
contents Numerical methods for radiative transfer play a key role in modern-day astrophysics and cosmology, including study of the inhomogeneous reionization process. In this context, ray tracing methods are well-regarded for accuracy but notorious for high computational cost. In this work, we extend the capabilities of the Nyx N-body / hydrodynamics code, coupling radiation to gravitational and gas dynamics. We formulate adaptive ray tracing as a novel series of filters and transformations that can be used with AMReX particle abstractions, simplifying implementation and enabling portability across Exascale GPU architectures. To address computational cost, we present a new algorithm for merging sources, which significantly accelerates computation once reionization is well underway. Furthermore, we develop a novel prescription for geometric overlap correction with low-density neighbor cells. We perform verification and validation against standard analytic and numerical test problems. Finally, we demonstrate scaling to up to 1024 nodes and 4096 GPUs running multiphysics cosmological simulations, with 4096^3 Eulerian gas cells, 4096^3 dark matter particles, and ray tracing on a 1024^3 coarse grid. For these full cosmological simulations, we demonstrate convergence in terms of reionization history and post-ionization Lyman-alpha forest flux.
format Preprint
id arxiv_https___arxiv_org_abs_2512_12466
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Nyx-RT: Adaptive Ray Tracing in the Nyx Hydrodynamical Code
Marshak, Nathan X.
Simotas, Kathlynn
Lukić, Zarija
Park, Hyunbae
Ahrens, James
Johnson, Chris R.
Instrumentation and Methods for Astrophysics
Cosmology and Nongalactic Astrophysics
Numerical methods for radiative transfer play a key role in modern-day astrophysics and cosmology, including study of the inhomogeneous reionization process. In this context, ray tracing methods are well-regarded for accuracy but notorious for high computational cost. In this work, we extend the capabilities of the Nyx N-body / hydrodynamics code, coupling radiation to gravitational and gas dynamics. We formulate adaptive ray tracing as a novel series of filters and transformations that can be used with AMReX particle abstractions, simplifying implementation and enabling portability across Exascale GPU architectures. To address computational cost, we present a new algorithm for merging sources, which significantly accelerates computation once reionization is well underway. Furthermore, we develop a novel prescription for geometric overlap correction with low-density neighbor cells. We perform verification and validation against standard analytic and numerical test problems. Finally, we demonstrate scaling to up to 1024 nodes and 4096 GPUs running multiphysics cosmological simulations, with 4096^3 Eulerian gas cells, 4096^3 dark matter particles, and ray tracing on a 1024^3 coarse grid. For these full cosmological simulations, we demonstrate convergence in terms of reionization history and post-ionization Lyman-alpha forest flux.
title Nyx-RT: Adaptive Ray Tracing in the Nyx Hydrodynamical Code
topic Instrumentation and Methods for Astrophysics
Cosmology and Nongalactic Astrophysics
url https://arxiv.org/abs/2512.12466