onepower.hmi.HaloModelIngredients#
- class onepower.hmi.HaloModelIngredients(*args, **kwargs)[source]#
A class to compute various ingredients for the halo model. This includes halo mass functions, bias models, halo profiles, and concentration models. Based on the hmf and halomod packages.
Methods
Tk_cold_ratio
(k, g, ommh2, h, f_nu, N_nu[, ...])Ratio of cold to matter transfer function from Eisenstein & Hu (1999).
__init__
([k_vec, lnk_min, lnk_max, dlnk, ...])clone
(**kwargs)Create and return an updated clone of the current object.
f_Mead
(x, y, p0, p1, p2, p3)Fitting function from Mead et al. 2021 (2009.01858), eq A3, used in \(\delta_c\) and \(\Delta_{\rm v}\) calculations.
get_all_parameter_defaults
([recursive])Dictionary of all parameters and defaults.
Yield all parameter names in the class.
get_dependencies
(*q)Determine all parameter dependencies of the quantities in q.
get_halo_collapse_redshifts
(M, z, dc, g, ...)Calculate halo collapse redshifts according to the Bullock et al. (2001) prescription.
parameter_info
([names])Prints information about each parameter in the class.
Obtain a list of all available output quantities.
sigmaR_cc
(power, k, r)Calculate the variance of the cold matter density field smoothed on scale R.
update
(**kwargs)Update parameters of the framework with kwargs.
validate
()Perform validation of the input parameters as they relate to each other.
Attributes
Overdensity \(\Delta_{\rm v}\) fitting function from Mead et al. 2021 (2009.01858), eq A.2.
Sets the c(M) normalisations to the one used in HMCode.
Maximum halo mass (for hmf).
Minimum halo mass (for hmf).
Effective number of neutrino species.
Halo bias model (for halomod).
Return the concentration for matter/central galaxies.
Return the concentration for satellite galaxies.
Return the astropy cosmology object assuming Flatw0waCDM model.
The critical overdensity for collapse \(\delta_c\) fitting function from Mead et al. 2021 (2009.01858).
Critical density threshold for collapse \(\delta_c\).
Dissables the mass conversion for the mass definitions defined in HMCode.
Spacing in natural log of wavenumber (for hmf).
Spacing in log10 of halo mass (for hmf).
Return the differential mass function.
Bloating parameter for central galaxies.
float Bloating parameter for satellite galaxies.
Return the neutrino density fraction.
Calculates the accumulated growth at scale factor 'a'.
Return the Mead growth factor at the scale factors.
Solve the linear growth ODE and returns an interpolating function for the solution.
Return the growth factor.
Growth function model (for hmf).
Parameters for the growth function (for hmf).
Hubble parameter (small h).
Return the halo bias.
Halo concentration model of dark matter / central galaxies (for halomod).
Halo concentration model of satellite galaxies (for halomod).
Return the mean halo overdensity.
Halo profile model of dark matter / central galaxies (for halomod).
Halo profile model of satellite galaxies (for halomod).
Packs the cosmology to a dictionary to be passed to the hmf.
Halo mass function model (for hmf).
Array of wavenumbers.
Return the k vector defined using lnk in hmf.
Maximum natural log of wavenumber (for hmf).
Minimum natural log of wavenumber (for hmf).
Log10 of AGN temperature.
Neutrino mass.
Return the masses.
Mass definition model (for hmf).
Sets the overdensity parameter to the one used in HMCode or to the one for virial collapse.
Correction model from Mead et al.
Return the mean density at redshift zero.
Return the mean density at the given redshifts.
Spectral index.
Return the effective spectral index.
Return the density profile for matter/central galaxies.
Return the density profile for satellite galaxies.
Return the non-linear power spectrum at z (if options passed).
Normalization of c(M) relation for central galaxies.
Normalization of c(M) relation for satellite galaxies.
Return the peak height parameter.
Baryon density parameter.
Cold dark matter density parameter.
Matter density parameter.
Overdensity parameter.
Dictionary of all parameters and their current values
Return the linear power spectrum at z.
Return the scale radius for matter/central galaxies.
Return the scale radius for satellite galaxies.
Return the halo density.
Return the virial radius for matter/central galaxies.
Return the virial radius for satellite galaxies.
Return the scale factor.
Return the amplitude of matter fluctuations on 8 Mpc scales at the given redshifts.
Amplitude of matter fluctuations on 8 Mpc scales.
Temperature of the CMB.
Transfer function model (for hmf).
Parameters for the transfer function (for hmf).
Return the normalized density profile for dark matter.
Return the normalized density profile for satellite galaxies.
Dark energy equation of state parameter.
Dark energy equation of state parameter.
Array of redshifts.