hmf.density_field.transfer_models.class_cosmology

hmf.density_field.transfer_models.class_cosmology(cosmo: FLRW) → dict[str, Any][source]

The CLASS input parameters that describe an astropy cosmology.

Neutrinos are described as astropy describes them: each of the \(\lfloor N_{\rm eff} \rfloor\) species has the standard temperature, \((4/11)^{1/3} T_{\rm CMB}\), and contributes \(N_{\rm eff} / \lfloor N_{\rm eff} \rfloor\) to \(N_{\rm eff}\). The massive species (those with non-zero m_nu) are CLASS’s non-cold dark matter species (ncdm), with that contribution as their degeneracy, and the rest are ultra-relativistic (N_ur). The density of CDM is that of cosmo.Odm0, which excludes neutrinos.

Parameters:

cosmo – The cosmology. Must be a LambdaCDM, wCDM or w0waCDM (or one of their flat versions), with the baryon density and CMB temperature set.

Returns:

CLASS input parameters.

Return type:

dict