CAMB

class hmf.density_field.transfer_models.CAMB(*args, **kwargs)[source]

Transfer function computed by CAMB.

Parameters:
  • cosmo (astropy.cosmology.FLRW instance) – The cosmology used in the calculation

  • **model_parameters (unpack-dict) –

    Parameters specific to this model.

    camb_params: An instantiated CAMBparams object, pre-set with desired

    accuracy options etc.

    dark_energy_params: A dictionary of values passed to CAMB’s `

    set_dark_energy` method. Values include sound_speed and dark_energy_model.

    extrapolate_with_eh: Whether to extrapolate past the intrinsic CAMB

    kmax by using an EH model. Can cause some problems if kmax is high, since CAMB diverges from the EH approximation.

Notes

Neutrino masses are passed to CAMB via the mnu parameter (sum of neutrino masses in eV) and CAMB internally computes the neutrino physical density omnuh2. The cold dark matter density omch2 is set from astropy’s Odm0 attribute (i.e. cosmo.Odm0 * cosmo.h**2), which represents CDM-only density (excluding neutrinos and baryons). In astropy, Om0 represents the sum of CDM and baryonic matter only (not massive neutrinos), so Odm0 = Om0 - Ob0. The neutrino contribution to the matter budget is accounted for separately by CAMB from the mnu parameter, ensuring the total matter density (CDM + baryons + neutrinos) is correctly captured.

Methods

__init__(*args, **kwargs)[source]
classmethod get_models() dict[str, type]

Get a dictionary of all implemented models for this component.

lnt(lnk)[source]

Natural log of the transfer function.

Parameters:

lnk (array_like) – Wavenumbers [Mpc/h]

Returns:

lnt – The log of the transfer function at lnk.

Return type:

array_like