Quokka: A code for two-moment AMR radiation hydrodynamics on GPUs

Benjamin D. Wibking, Mark R. Krumholz
10/5/2021
astro-ph.IM

Official code: quokka-astro/quokka (90 stars, MIT, last commit 2026-10-20).

Abstract

We present Quokka, a new subcycling-in-time, block-structured adaptive mesh refinement (AMR) radiation hydrodynamics code optimised for graphics processing units (GPUs). Quokka solves the equations of hydrodynamics with the piecewise parabolic method (PPM) in a method-of-lines formulation, and handles radiative transfer via the variable Eddington tensor (VET) radiation moment equations with a local closure. We use the AMReX library to handle the adaptive mesh management. In order to maximise GPU performance, we combine explicit-in-time evolution of the radiation moment equations with the reduced speed-of-light approximation. We show results for a wide range of test problems for hydrodynamics, radiation, and coupled radiation hydrodynamics. On uniform grids in 3D on a single GPU, our code achieves > 250 million hydrodynamic updates per second and almost 40 million radiation hydrodynamic updates per second. For radiation hydrodynamics problems on uniform grids in 3D, our code scales from 4 GPUs to 256 GPUs with an efficiency of 76 per cent. The code is publicly released under an open-source license on GitHub.

View on arXivView PDF

Code Implementations(1)

MIT

Two-moment AMR radiation hydrodynamics (with self-gravity, particles, chemistry, and magnetic fields) on CPUs/GPUs for astrophysics

9027C++, TeXFeb 7, 20202 days agoMIT
adaptive-mesh-refinementamrexastrochemistryastrophysicscuda+6 more

Similar Papers

Cite this paper

@article{wibking2021quokka,
  title  = {Quokka: A code for two-moment AMR radiation hydrodynamics on GPUs},
  author = {Benjamin D. Wibking and Mark R. Krumholz},
  year   = {2021},
  eprint = {2110.01792},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.01792}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.01792.svg)](https://codeofpaper.com/paper/2110.01792)

Discussion