rabacus.cosmology.mass_function package¶
Submodules¶
rabacus.cosmology.mass_function.mass_function module¶
A halo mass function module. See the following reference for a discussion, http://adsabs.harvard.edu/abs/2007ApJ...671.1160L
-
class
rabacus.cosmology.mass_function.mass_function.
MassFunction
(cosmo, tf)[source]¶ A mass function class. During initialization the normalization of the power spectrum is set to match the sigma8 from cosmo.
Args:
cosmo (
Cosmology
): an instance of the cosmology class.tf (class): an instance of a transfer function class. For example,
TransferBBKS
.cosmo is an instance of Cosmology and tf is an instance of TransferFunction
-
Delta2k
(k, z)[source]¶ Dimensionless power spectrum,
Args:
k (real or array): wavenumber.
z (real): redshift
-
W2kR
(k, R)[source]¶ The square of the fourier transform of a real space spherical top hat filter.
Args:
k (real or array): wavenumber.
R (real): filter scale.
-
W2lnkR
(lnk, R)[source]¶ The square of the fourier transform of a real space spherical top hat filter as a function of the natural log of k.
Args:
lnk (real or array): natural log of wavenumber, ln( k [h/Mpc] ).
R (real): filter scale.
-
WkR
(k, R)[source]¶ The fourier transform of a real space spherical top hat filter.
Args:
k (real or array): wavenumber.
R (real): filter scale.
-
calc_mf
(z, fit='Warren06')[source]¶ Calculate mass function from high to low mass. The only redshift dependence is in f(sigma) via a rescaling of sigma
-
dsig2_dk
(k, R, z)[source]¶ Integrand for calculation of sigma^2. Inputs k and R must have units.
Args:
k (real or array): wavenumber.
R (real): filter scale.
z (real): redshift
-
dsig2_dlnk
(lnk, R, z)[source]¶ Input is ln(k) which is unitless but k must have units of h/Mpc
Args:
lnk (real or array): wavenumber, ln( k [h/Mpc] ).
R (real): filter scale.
z (real): redshift
-
dsig2_dlogk
(logk, R, z)[source]¶ Input is log10(k) which is unitless but k must have units of h/Mpc
Args:
logk (real or array): wavenumber, log10( k [h/Mpc] )
R (real): filter scale.
z (real): redshift
-
map_sig2_R
(nbins=200)[source]¶ Map out the relationship between sigma^2 and R. In this routine we map out the relationship at z=0 and assume that different redshifts can be accomodated through a simple scaling with the growth function D1(z).
-
mult_func
(sigma_in, z, fit='Warren06')[source]¶ The multiplicity function . This function determines the shape of the mass function given the variation of with scale. The variable fit determines the form of the multiplicity function. A convenient variable is . The following values for fit lead to the following multiplicity funcitons,
-
-
Jenkins01
: Jenkins 01Warren06
: Warren 06Tinker08
: Tinker 08
-
-
sigma2_M
(M, z)[source]¶ Variance of density field smoothed on scale V
Args:
V (real): filter scale.
z (real): redshift
-
Module contents¶
Mass function package.