CambGrowth¶
- class hmf.cosmology.growth_factor.CambGrowth(*args, **kwargs)[source]¶
Growth factor computed using CAMB at k/h = 1.0.
Recommended for non-LambdaCDM cosmologies (e.g., wCDM) as it correctly deals with their growth evolution. For standard LCDM, other classes are preferred since this class requires re-calculating the transfer function.
Attributes
Methods
- __init__(*args, **kwargs)[source]
- dlne_dlna(z)
Compute the derivative of ln(E(a)) with respect to ln(a).
This is useful for the growth factor, which has terms \(E'(a)/E(a) \equiv (1/a)*dlnE/dlna\) in its definition.
This implementation simply uses the exact definition from astropy of E(a) and writes down the derivative analytically.
- classmethod get_models() dict[str, type]
Get a dictionary of all implemented models for this component.
- growth_factor(z)[source]
Calculate \(d(a) = D^+(a)/D^+(a=1)\).
- growth_rate(z) float | ndarray
Compute the growth rate, \(f(a) = d\ln D^+ / d\ln a\).
- Parameters:
z (array_like) – Redshift.
- Returns:
gr – The growth rate at z.
- Return type:
array_like
- radiation_density(z)
The fractional radiation density as a function of redshift.