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.

get_all_parameter_names()

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.

quantities_available()

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

Dv_Mead

Overdensity \(\Delta_{\rm v}\) fitting function from Mead et al. 2021 (2009.01858), eq A.2.

K

Sets the c(M) normalisations to the one used in HMCode.

Mmax

Maximum halo mass (for hmf).

Mmin

Minimum halo mass (for hmf).

Neff

Effective number of neutrino species.

bias_model

Halo bias model (for halomod).

conc_cen

Return the concentration for matter/central galaxies.

conc_sat

Return the concentration for satellite galaxies.

cosmo_model

Return the astropy cosmology object assuming Flatw0waCDM model.

dc_Mead

The critical overdensity for collapse \(\delta_c\) fitting function from Mead et al. 2021 (2009.01858).

delta_c

Critical density threshold for collapse \(\delta_c\).

disable_mass_conversion

Dissables the mass conversion for the mass definitions defined in HMCode.

dlnk

Spacing in natural log of wavenumber (for hmf).

dlog10m

Spacing in log10 of halo mass (for hmf).

dndlnm

Return the differential mass function.

eta_cen

Bloating parameter for central galaxies.

eta_sat

float Bloating parameter for satellite galaxies.

fnu

Return the neutrino density fraction.

get_mead_accumulated_growth

Calculates the accumulated growth at scale factor 'a'.

get_mead_growth

Return the Mead growth factor at the scale factors.

get_mead_growth_fnc

Solve the linear growth ODE and returns an interpolating function for the solution.

growth_factor

Return the growth factor.

growth_model

Growth function model (for hmf).

growth_params

Parameters for the growth function (for hmf).

h0

Hubble parameter (small h).

halo_bias

Return the halo bias.

halo_concentration_model_dm

Halo concentration model of dark matter / central galaxies (for halomod).

halo_concentration_model_sat

Halo concentration model of satellite galaxies (for halomod).

halo_overdensity_mean

Return the mean halo overdensity.

halo_profile_model_dm

Halo profile model of dark matter / central galaxies (for halomod).

halo_profile_model_sat

Halo profile model of satellite galaxies (for halomod).

halo_profile_params

Packs the cosmology to a dictionary to be passed to the hmf.

hmf_model

Halo mass function model (for hmf).

k_vec

Array of wavenumbers.

kh

Return the k vector defined using lnk in hmf.

lnk_max

Maximum natural log of wavenumber (for hmf).

lnk_min

Minimum natural log of wavenumber (for hmf).

log10T_AGN

Log10 of AGN temperature.

m_nu

Neutrino mass.

mass

Return the masses.

mdef_model

Mass definition model (for hmf).

mdef_params

Sets the overdensity parameter to the one used in HMCode or to the one for virial collapse.

mead_correction

Correction model from Mead et al.

mean_density0

Return the mean density at redshift zero.

mean_density_z

Return the mean density at the given redshifts.

n_s

Spectral index.

neff

Return the effective spectral index.

nfw_cen

Return the density profile for matter/central galaxies.

nfw_sat

Return the density profile for satellite galaxies.

nonlinear_power

Return the non-linear power spectrum at z (if options passed).

norm_cen

Normalization of c(M) relation for central galaxies.

norm_sat

Normalization of c(M) relation for satellite galaxies.

nu

Return the peak height parameter.

omega_b

Baryon density parameter.

omega_c

Cold dark matter density parameter.

omega_m

Matter density parameter.

overdensity

Overdensity parameter.

parameter_values

Dictionary of all parameters and their current values

power

Return the linear power spectrum at z.

r_s_cen

Return the scale radius for matter/central galaxies.

r_s_sat

Return the scale radius for satellite galaxies.

rho_halo

Return the halo density.

rvir_cen

Return the virial radius for matter/central galaxies.

rvir_sat

Return the virial radius for satellite galaxies.

scale_factor

Return the scale factor.

sigma8_z

Return the amplitude of matter fluctuations on 8 Mpc scales at the given redshifts.

sigma_8

Amplitude of matter fluctuations on 8 Mpc scales.

tcmb

Temperature of the CMB.

transfer_model

Transfer function model (for hmf).

transfer_params

Parameters for the transfer function (for hmf).

u_dm

Return the normalized density profile for dark matter.

u_sat

Return the normalized density profile for satellite galaxies.

w0

Dark energy equation of state parameter.

wa

Dark energy equation of state parameter.

z_vec

Array of redshifts.