py4radiation: a framework for generating heating/cooling functions and ion fractions from custom radiation fields for astrophysical simulations
Daniel Villarruel-Yánez, Wladimir E. Banda-Barragán, Benedetta Casavecchia
Abstract
Modelling multiphase gas in and around galaxies is key to understanding the baryon cycle in galaxy evolution. Modern simulation codes rely on heating/cooling functions and ion fractions to capture the thermodynamics and chemistry of such gases, but coupling all physical factors remains challenging. We present a new Python-based, parallelised package that acts as an integration framework, connecting well-established astrophysical codes and models to produce self-consistent heating/cooling functions and ion fractions from custom ionising UV/X-ray backgrounds. The package returns multi-dimensional tables that can be readily coupled to hydrodynamic and post-processing codes to study radiative processes and extract observables, as we demonstrate with static cloud simulations. Our simulation suite studies the thermodynamic history of a static circumgalactic cloud with smoothed edges subjected to meta-galactic and starburst heating. We find that the clouds experience damped pulsations regulated by strong cooling-driven inflows and heating-driven outflows that constantly overshoot pressure equilibrium. Meta-galactic heating is weak and produces a confined and dense cloud, while starburst heating is strong and sustains large clouds only a little smaller than those obtained with the standard cooling floor. Starburst radiative heating acts as a damping agent, thereby reducing mixing. py4radiation comes with extensive documentation and a sample catalogue of heating/cooling functions and ion tables for a selected set of input meta-galactic and starburst spectral energy distributions. The code is publicly available and can be easily expanded.
Create a lesson
Metadata
- Categories
- astro-ph.GA, astro-ph.IM
- Comments
- 13 pages, 10 figures. Submitted to the Open Journal of Astrophysics. Comments are welcome. Code: https://github.com/cPhysPlus/py4radiation. Documentation: https://py4radiation.readthedocs.io. Datasets: https://github.com/cPhysPlus/heating-cooling-ion-tables
Related papers
Euclid: Quick Data Release (Q1) -- The evolution of the radio-loud AGN fraction-stellar mass relation to z\sim3 in the Euclid Deep Field North
Shared title terminologyastro-ph.GAS. Visser, H. J. A. Rottgering, L. Wang et al.
On the effect of a redshift- and metallicity-dependent top-heavy IMF on high-redshift UV luminosity functions
Shared title terminologyastro-ph.GAKeita Fukushima, Shuya Kitagawa, Akio K. Inoue et al.
Preliminary evidence for a Universal Magnetic Field Configuration in Disk-Galaxy Halos with POSSUM
Shared title terminologyastro-ph.GAIoannis Contopoulos, Ioannis Myserlis, Shane O'Sullivan et al.
The system initial mass function of Orion OB1b from probabilistic Gaia DR3 memberships
Shared title terminologyastro-ph.GARodrigo Cabral, Juan José Downes, Rafael Bertolotto-Stefanelli et al.
Resolved internal dynamics of a globular cluster candidate in a cosmological simulation at cosmic dawn
Shared title terminologyastro-ph.GARaffaele Pascale, Francesco Calura, Enrico Vesperini et al.
Nearly pristine gas and hard ionizing radiation one billion years after the Big Bang
Shared title terminologyastro-ph.GATakahiro Morishita, Massimo Stiavelli, Tommaso Treu et al.