Cosmology
These helpers encode the fixed background cosmology used by the semi-analytic model and its derived distance and volume factors.
EE
EE(z)
Compute the dimensionless Hubble parameter \(E(z)\).
The cosmology used by fastropop is a fixed flat
\(\Lambda\)CDM background with
\(\Omega_{\rm m} = 0.3\), \(\Omega_\Lambda = 0.7\),
\(\Omega_k = 0\), and \(h = 0.7\). The corresponding expansion
function is
Parameters:
-
z(float or Array) –Redshift.
Returns:
-
float or Array–Dimensionless Hubble parameter \(E(z)\).
dtodz
dtodz(z)
Compute \(dt_r/dz\), the derivative of cosmic time with redshift.
This helper is used throughout the semi-analytic model when converting merger-rate densities written in redshift into time-based quantities:
Parameters:
-
z(float or Array) –Redshift.
Returns:
-
float or Array–Derivative \(dt_r/dz\) in seconds.
Dc_interp
Dc_interp(z)
Interpolate the comoving distance on a precomputed redshift grid.
Parameters:
-
z(float or Array) –Redshift.
Returns:
-
float or Array–Line-of-sight comoving distance in metres.
dVcdz
dVcdz(z)
Compute the comoving volume element \(dV_c/dz\).
The quantity returned is
with \(D_c(z)\) the comoving distance.
Parameters:
-
z(float or Array) –Redshift.
Returns:
-
float or Array–Comoving volume element in SI units.
DL
DL(z)
Compute the luminosity distance.
Parameters:
-
z(float or Array) –Redshift.
Returns:
-
float or Array–Luminosity distance \(D_L(z) = (1+z) D_c(z)\) in metres.