postprocessing/ion/ion_NNN.hdf5
THESAN-1 has one file for each snapshot from 000 through 080. The separate global.hdf5 file contains redshift histories of photon production, escape, and escape fraction.
File Reference
For all snapshots we produce ionizing escape fraction catalogs directly mirroring the SUBFIND subhalo catalogs. These post-processing files provide supplemental data for each subhalo with at least one star particle and four gas cells within the virial radius, corresponding to identifications of dark matter halos. There is a single HDF5 file for each snapshot named ion_[file].hdf5 containing simulation attributes and subhalo datasets. Full details are given in Section 2 of Yeh et al. (2023).
We calculate the radius at which the average density reaches 200 times the density of the universe, and adopt this same definition for the halo mass , stellar mass , instantaneous star-formation rate (SFR), and other quantities. This ensures a consistent accounting of properties contributing to the escape fraction, which we define as the ratio between the number of ionizing photons that escape and are intrinsically emitted from all sources within the virial radius, i.e.
The escape fractions for star particles outside the virial radius of any halo are assumed to be maximal (i.e. the birth cloud value ) as these directly contribute to reionizing the IGM. The intrinsic photon rate for each subhalo (including stars outside ) is provided in the Lyα emission catalog (Subhalo_NoSFR HDF5 group) described in Smith et al. (2022a), which is calculated from the Binary Population and Spectral Synthesis models (BPASS; Eldridge et al. 2017) with a Chabrier initial mass function (IMF; Chabrier 2003). Passive Monte Carlo radiative transfer (MCRT) calculations were performed with the Cosmic Lyα Transfer (colt) code, with the details of the photo-ionization physics and MCRT implementation most recently described in Smith et al. (2022b).
The simulation used BPASS v2.1, as clarified in the published correction. The ionizing photon production efficiency relates the intrinsic photon rate to the UV luminosity.
Attributes
| Attribute | Dimensions | Units | Description |
|---|---|---|---|
| BoxSize | 1 | Spatial extent of the periodic box (in comoving units). | |
| EscapeFraction | 1 | - | Birth cloud escape fraction. |
| HubbleParam | 1 | Hubble constant (little in standard units). | |
| Ngroups_Total | 1 | - | Total number of FoF groups in the entire catalog. |
| Nsubgroups_Total | 1 | - | Number of SUBFIND subgroups in the entire catalog. |
| Omega0 | 1 | - | The cosmological density parameter for matter. |
| OmegaBaryon | 1 | - | The cosmological density parameter for baryonic matter. |
| OmegaLambda | 1 | - | The cosmological density parameter for the cosmological constant. |
| Redshift | 1 | - | The redshift corresponding to the current output. |
| Time | 1 | - | The scale factor corresponding to the current output. |
| UnitLength_in_cm | 1 | - | Code length units in cm. |
| UnitMass_in_g | 1 | - | Code mass units in g. |
| UnitVelocity_in_cm_per_s | 1 | - | Code velocity units in cm/s. |
Datasets
| Attribute | Dimensions | Units | Description |
|---|---|---|---|
| L_int | N | Total luminosity of stars within . | |
| M_200 | N | Halo mass within . | |
| M_gas | N | Gas mass within . | |
| M_stars | N | Stellar mass within . | |
| Ndot_int | N | Total intrinsic photon rate of stars within . | |
| R_200 | N | Radius of the halo at which its density reaches 200 times the critical density. | |
| SFR_200 | N | Sum of the instantaneous star-formation rates in gas cells within . | |
| bin_L_int | N × 3 | Total luminosity of stars within , divided into three frequency bins with energy edges at . | |
| bin_Ndot_int | N × 3 | Total intrinsic photon rate of stars within , divided into three frequency bins as above. | |
| bin_f_esc | N × 3 | - | Halo escape fraction within , divided into three frequency bins as above. |
| f_HeI | N | - | HeI absorption fraction within . |
| f_HeII | N | - | HeII absorption fraction within . |
| f_esc | N | - | Halo escape fraction within . |
| l_abs | N | Absorption distance: . | |
| subhalo_id | N | - | Subhalo ID in the SUBFIND subhalo catalog. |
Note: denotes the number of selected halos. The helium absorption fraction is simply the sum and the hydrogen absorption fraction can be calculated as .
Read the escape fraction of one halo
Paths in this example are relative to Thesan-1/postprocessing/.
import h5py
import numpy as np
with h5py.File("ion/ion_080.hdf5") as f:
row = int(np.flatnonzero(f["subhalo_id"][:] == 0)[0])
print("escape fraction:", f"{f['f_esc'][row]:.5g}")
print("three energy bins:", f["bin_f_esc"][row])
Output from THESAN-1
escape fraction: 0.12749 three energy bins: [0.12653327 0.13162208 0.02314637]