hmf.alternatives.wdm.MassFunctionWDM¶
- class hmf.alternatives.wdm.MassFunctionWDM(*args, **kwargs)[source]¶
A subclass of
hmf.MassFunction
that mixes in WDM capabilities.This replaces the standard CDM quantities with WDM-derived ones, where relevant.
In addition to the parameters directly passed to this class, others are available which are passed on to its superclass. To read a standard documented list of (all) parameters, use
MassFunctionWDM.parameter_info()
. If you want to just see the plain list of available parameters, useMassFunctionWDM.get_all_parameters()
. To see the actual defaults for each parameter, useMassFunctionWDM.get_all_parameter_defaults()
.Methods
__init__
([alter_model, alter_params])Initialize self.
clone
(**kwargs)Create and return an updated clone of the current object.
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.
parameter_info
([names])Prints information about each parameter in the class.
update
(**kwargs)Update parameters of the framework with kwargs.
validate
()Attributes
Maximum mass at which to perform analysis [units \(\log_{10}M_\odot h^{-1}\)].
Minimum mass at which to perform analysis [units \(\log_{10}M_\odot h^{-1}\)].
A model for empirical recalibration of the HMF.
Model parameters for alter_model.
Cosmographic object (
astropy.cosmology.FLRW
object), with custom cosmology fromcosmo_params
applied.The basis for the cosmology – see astropy documentation.
Parameters for the cosmology that deviate from the base cosmology passed.
The critical overdensity for collapse, \(\delta_c\).
Dimensionless power spectrum, \(\Delta_k = \frac{k^3 P(k)}{2\pi^2}\).
Disable converting mass function from builtin definition to that provided.
Step-size of log wave-numbers
log10 interval between mass bins
The differential mass function in terms of natural log of m,
len=len(m)
[units \(h^3 Mpc^{-3}\)]The differential mass function in terms of log of m,
len=len(m)
[units \(h^3 Mpc^{-3}\)]The number density of haloes in WDM,
len=len(m)
.Instantiated model for filter/window functions.
A model for the window/filter function.
Model parameters for filter_model.
The multiplicity function, \(f(\sigma)\), for hmf_model.
The instantiated growth model.
The growth factor.
The model to use to calculate the growth function/growth rate.
Relevant parameters of the
growth_model
.The halo overdensity with respect to the critical density.
The halo overdensity with respect to the mean background.
Instantiated model for the hmf fitting function.
A model to use as the fitting function \(f(\sigma)\)
Model parameters for hmf_model.
Size of simulation volume in which to expect one halo of mass m (with 95% probability), ` len=len(m)` [units \(Mpch^{-1}\)]
Wavenumbers, [h/Mpc]
Maximum (natural) log wave-number,
k
[h/Mpc].Minimum (natural) log wave-number,
k
[h/Mpc].Natural log of inverse mass variance,
len=len(m)
.Halo masses (defined via
mdef
).The nonlinear mass, nu(Mstar) = 1.
The halo mass-definition model instance.
A model to use as the mass definition.
Model parameters for mdef_model.
Mean density of universe at redshift z.
Mean density of universe at z=0, [Msun h^2 / Mpc**3]
Spectral index of fluctuations
Effective spectral index at scale of halo radius,
len=len(m)
The cumulative mass function above m,
len=len(m)
[units \(h^3 Mpc^{-3}\)]Dimensionless nonlinear power spectrum.
Non-linear log power [units \(Mpc^3/h^3\)].
A normalised filter, such that filter.sigma(8) == sigma8
The parameter \(\nu = \left(\frac{\delta_c}{\sigma}\right)^2\),
len=len(m)
Dictionary of all parameters and their current values
Normalised log power spectrum [units \(Mpc^3/h^3\)].
The radii corresponding to the masses m.
Mass density in haloes >m,
len=len(m)
[units \(M_\odot h^2 Mpc^{-3}\)]Mass density in haloes <m,
len=len(m)
[units \(M_\odot h^2 Mpc^{-3}\)]The sqrt of the mass variance at z,
len=len(m)
.RMS linear density fluctuations in spheres of radius 8 Mpc/h
Whether to use updated HALOFIT coefficients from Takahashi+12
The instantiated transfer model
Normalised CDM log transfer function.
Defines which transfer function model to use.
Relevant parameters of the transfer_model.
The instantiated WDM model.
Mass of the WDM particle.
A model for the WDM effect on the transfer function.
Parameters of the WDM model.
Redshift.