Overview
The development of thornado is motivated by the need for efficient and robust computational tools to model nuclear astrophysics applications, in particular core-collapse supernovae, in general relativity. A parallel driver is to develop thornado as a platform for exploring the use of discontinuous Galerkin (DG) methods to model core-collapse supernovae.
Physics: Core-collapse supernovae, the explosive evolutionary end stage of massive stars, are key sites of heavy-element production. They emit electromagnetic radiation, neutrinos, and (though not yet detected) gravitational waves, which can provide clues to the physical processes operating in these events. Computer models play an essential role in sharpening our understanding of the supernova explosion mechanism and predicting observational signatures. Core-collapse supernovae are truly multiphysics events, and their modeling involves solving coupled systems of nonlinear partial differential equations, governing the evolution of reacting fluids, gravitational and electromagnetic fields, and neutrinos, all within the framework of general relativity. Due to their weak coupling with matter, neutrinos demand a kinetic description, which contributes to the large computational cost of supernova models. In thornado we aim to balance physical fidelity with computational feasibility by implementing neutrino radiation-hydrodynamics, and radiation-magnetohydrodynamics, with spectral, two-moment neutrino transport, all within the framework of the Conformally Flat Condition (CFC) formulation — specifically the XCFC formulation — of general relativity.
Numerics: The choice of numerical methods in thornado is largely driven by the promi- nent role — both physically and computationally — played by neutrinos in core- collapse supernova models. Discontinuous Galerkin (DG) methods, a class of finite element methods that approximates solutions using discontinuous piecewise polynomials, combine elements from both spectral and finite volume methods, and are an attractive option for solving hyperbolic partial differential equations. They are locally conservative, achieve high-order accuracy on a compact stencil, are amenable to hp-adaptivity, can be applied in curvilinear coordinates, and capture the asymptotic diffusion limit without needing to resolve the particle mean free path. The mathematical formulation of DG methods makes them amenable to rigorous analysis, and they provide the flexibility needed to design methods that preserve important physical constraints — such as the simultaneous conservation of lepton number and energy — and structural properties of the underlying physical models.
High-Performance Computing: thornado leverages AMReX for distributed parallelism and adaptive mesh refinment. For node-level performance and portability of key kernels, thornado maintains a single code-base that can execute on different hardware architectures and within different software environments. thornado contains three distinct implementations of compiler directives managed with C preprocessor macros: traditional OpenMP (CPU multi-core), OpenMP offload (GPU), and OpenACC (GPU).
Follow the link to Living Reviews in Computational Astrophysics for further details on the physical, numerical, and computational challenges of modeling neutrino transport in core-collapse supernovae.