magritte, a modern software library for 3D radiative transfer – II. Adaptive ray-tracing, mesh construction, and reduction
- 16 October 2020
- journal article
- research article
- Published by Oxford University Press (OUP) in Monthly Notices of the Royal Astronomical Society
- Vol. 499 (4) , 5194-5204
Abstract
Radiative transfer is a notoriously difficult and computationally demanding problem. Yet, it is an indispensable ingredient in nearly all astrophysical and cosmological simulations. Choosing an appropriate discretization scheme is a crucial part of the simulation, since it not only determines the direct memory cost of the model but also largely determines the computational cost and the achievable accuracy. In this paper, we show how an appropriate choice of directional discretization scheme as well as spatial model mesh can help alleviate the computational cost, while largely retaining the accuracy. First, we discuss the adaptive ray-tracing scheme implemented in our 3D radiative transfer library magritte, that adapts the rays to the spatial mesh and uses a hierarchical directional discretization based on healpix. Second, we demonstrate how the free and open-source software library gmsh can be used to generate high-quality meshes that can be easily tailored for magritte. In particular, we show how the local element size distribution of the mesh can be used to optimize the sampling of both analytically and numerically defined models. Furthermore, we show that when using the output of hydrodynamics simulations as input for a radiative transfer simulation, the number of elements in the input model can often be reduced by an order of magnitude, without significant loss of accuracy in the radiation field. We demonstrate this for two models based on a hierarchical octree mesh resulting from adaptive mesh refinement, as well as two models based on smoothed particle hydrodynamics data.Keywords
All Related Versions
Funding Information
- Engineering and Physical Sciences Research Council
- Intel Corporation
- ERC (646758)
- STFC (ST/P002307/1, ST/R002452/1, ST/R00689X/1)
This publication has 24 references indexed in Scilit:
- Using hierarchical octrees in Monte Carlo radiative transfer simulationsAstronomy & Astrophysics, 2013
- 3d-pdr: a new three-dimensional astrochemistry code for treating photodissociation regionsMonthly Notices of the Royal Astronomical Society, 2012
- E pur si muove:Galilean-invariant cosmological hydrodynamical simulations on a moving meshMonthly Notices of the Royal Astronomical Society, 2010
- Gmsh: A 3‐D finite element mesh generator with built‐in pre‐ and post‐processing facilitiesInternational Journal for Numerical Methods in Engineering, 2009
- Transport on adaptive random latticesPhysical Review E, 2006
- HEALPix: A Framework for High‐Resolution Discretization and Fast Analysis of Data Distributed on the SphereThe Astrophysical Journal, 2005
- Local adaptive mesh refinement for shock hydrodynamicsJournal of Computational Physics, 1989
- A numerical approach to the testing of the fission hypothesisThe Astronomical Journal, 1977
- An Hermitian method for the solution of radiative transfer problemsJournal of Quantitative Spectroscopy and Radiative Transfer, 1976
- Improved Boundary Conditions for the Feautrier MethodThe Astrophysical Journal, 1967