CambGrowth¶
- class hmf.cosmology.growth_factor.CambGrowth(*args, **kwargs)[source]¶
Growth factor computed using CAMB at \(k = 0.01\,{\rm Mpc}^{-1}\).
The growth is that of CAMB’s density contrast at the reference wavenumber
k_ref(BOLTZMANN_GROWTH_K_REF), the same as forClassGrowth.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.
With massive neutrinos the growth is scale-dependent. At this scale the neutrinos partly cluster, so the CDM+baryon (
"cb") field grows faster than in the small-scale limit computed byODEGrowthFactor, in which the neutrinos are a smooth background. Normalised to 1 at z = 0, the growth factor here is therefore lower at high redshift: by about 2.2% at z = 10 for a 0.3 eV neutrino.- Parameters:
cosmo (
astropy.cosmology.FLRWinstance) – The cosmology used in the calculation.**model_parameters (unpack-dict) –
Parameters specific to this model.
- matter_species: Which matter density field’s growth is computed:
"cb", using CAMB’sdelta_nonu(CDM+baryons only), or"tot", using CAMB’sdelta_tot(total matter, including massive neutrinos). The two are identical for massless neutrinos. Use the same value as the transfer model’smatter_species;"cb"is right for halo mass function fits calibrated on massive-neutrino simulations (Costanzi et al. 2013; Castorina et al. 2014). The default,None, means"cb", with a warning if the cosmology has massive neutrinos (earlier versions of hmf used"tot"). See Massive neutrinos: which matter field to use.
Attributes
- Or0¶
The fractional radiation density at redshift zero.
- references: ClassVar[tuple[str, ...]] = ('Lewis, A., Challinor, A., Lasenby, A., 2000. ApJ 538, 473. arXiv:astro-ph/9911177',)¶
References to cite when this model is used, each a formatted citation string. Subclasses inherit their parent’s references unless they set their own.
Methods
- 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. The dark-energy density scales as \(\rho_{\rm DE}(a) \propto \exp(-3\int (1+w)\, d\ln a)\), so its logarithmic derivative is \(-3(1+w(a))\), which vanishes only for a cosmological constant. With massive neutrinos, the radiation term is \(\Omega_\gamma (1 + N(z)) a^{-4}\), where \(N(z)\) is astropy’s
nu_relative_density. \(N\) varies with time as the neutrinos become non-relativistic, so its derivative is included, computed by central finite difference in \(\ln(1+z)\).
- classmethod get_models() Mapping[str, type]¶
Get a read-only mapping of all implemented models for this component.
The mapping is a live view of the registry, so it shows models registered later, but it can not be used to add or remove models.
- 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.