CAMB¶
- class hmf.density_field.transfer_models.CAMB(*args, **kwargs)[source]¶
Transfer function computed by CAMB.
- Parameters:
cosmo (
astropy.cosmology.FLRWinstance) – The cosmology used in the calculation**model_parameters (unpack-dict) –
Parameters specific to this model.
- camb_params: An instantiated
CAMBparamsobject, 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.
- camb_params: An instantiated
Notes
Neutrino masses are passed to CAMB via the
mnuparameter (sum of neutrino masses in eV) and CAMB internally computes the neutrino physical densityomnuh2. The cold dark matter densityomch2is set from astropy’sOdm0attribute (i.e.cosmo.Odm0 * cosmo.h**2), which represents CDM-only density (excluding neutrinos and baryons). In astropy,Om0represents the sum of CDM and baryonic matter only (not massive neutrinos), soOdm0 = Om0 - Ob0. The neutrino contribution to the matter budget is accounted for separately by CAMB from themnuparameter, 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