diaphane is a portable, scalable, and extensible library for modelling the transport of energy by radiation or relativistic particles (in particular neutrinos). Energy transport modelling is crucial for the hydrodynamic modelling of a wide range of astrophysical phenomena such as planet and galaxy formation, supernova explosions, and cosmic structure evolution. The diaphane library provides a computational framework and functionality to incorporate energy transport modelling into hydrodynamical astrophysics simulations. The transport routines are called from, and operate independently of, the underlying hydrodynamic code of choice. It is designed to be utilized by hydrodynamic astrophysical simulations through a simplified interface layer, allowing it to operate independently of the underlying hydrodynamic code. We provide a sample interface layer to three widely-used astrophysics-focussed smoothed-particle hydrodynamic codes, gadget2, gasoline and sphynx. The initial release comprises a particle-based implementation of Flux Limited Diffusion and Starrad, a ray casting method that we have developed. diaphane development has been supported the Platform for Advanced Scientific Computing. Program summaryProgram Title: DiaphaneProgram Files doi:http://dx.doi.org/10.17632/rwyd5k5rjh.1Code Ocean capsule:https://doi.org/10.24433/CO.5068717.v1Licensing provisions: MITProgramming language: C/C++Nature of problem: The ability to model and hence understand many important astrophysical processes has often been limited by the approximations and incompleteness in the treatment of radiation and relativistic particles, even though many algorithms exist for modelling the transport of energy by radiation and relativistic particles. For many problems, multiple algorithms must be used because each algorithm is best-suited in terms of speed and accuracy only in some particular physical regime. A comprehensive library that contains multiple radiation/relativistic transport techniques is needed in order to model astrophysical problems and their wide range in physical regimes. This library framework must be able to be easily and efficiently utilized by a hydrodynamic simulation code.Solution method: We provide a framework for solving radiation and neutrino transport in a portable, scalable, and extensible library. We provide a sample interface for multiple simulation codes, at this time gadget2 [2,3], gasoline [4] and sphynx [5,6]. Community development to develop new algorithms and support new hydrodynamic codes is welcome. The library framework allows multiple energy transport methods to be used simultaneously.Additional comments: This work has been supported by the Swiss Platform for Advanced Scientific Computing (PASC, http://www.pasc-ch.org/) project DIAPHANE (DR and RC) and by the European Research Council (FP7) under ERC Advanced Grant Agreement No. 321263-FISH (RC).A more detailed description of the library and framework are described in [1].Declaration of Competing InterestThe authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.[1] D. S. Reed, T. Dykes, R. Cabezón, C. Gheller, L. Mayer, Computer Physics Communications 226 (2018) 1–9.[2] V. Springel, N. Yoshida, S. D. M. White, New Astronomy6 (2) (2001) 79–117.[3] V. Springel, Mon. Not. R. Astron. Soc. 364 (4) (2005) 1105–1134.[4] J. W. Wadsley, B. W. Keller, T. R. Quinn, Mon. Not. R. Astron. Soc. 471 (2) (2017) 2357–2369.[5] R. M. Cabezon, D. Garcia-Senz, (Sep 2017).[6] R. M. Cabezón, D. García-Senz, J. Figueira, Astronomy & Astrophysics 606 (2017) A78.
Read full abstract