hmf.density_field.transfer.Transfer

class hmf.density_field.transfer.Transfer(*args, **kwargs)[source]

A transfer function framework.

The purpose of this hmf._frameworks.Framework is to calculate transfer functions, power spectra and several tightly associated quantities given a basic model for the transfer function.

As in all frameworks, to update parameters optimally, use the update() method. All output quantities are calculated only when needed (but stored after first calculation for quick access).

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 Transfer.parameter_info(). If you want to just see the plain list of available parameters, use Transfer.get_all_parameters().To see the actual defaults for each parameter, use Transfer.get_all_parameter_defaults().

By default, the growth_model is GrowthFactor. However, if using a wCDM cosmology and camb is installed, it will default to CambGrowth.

Methods

__init__([sigma_8, n, z, lnk_min, lnk_max, …])

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.

get_all_parameter_names()

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.

quantities_available()

update(**kwargs)

Update parameters of the framework with kwargs.

validate()

Attributes

cosmo

Cosmographic object (astropy.cosmology.FLRW object), with custom cosmology from cosmo_params applied.

cosmo_model

The basis for the cosmology – see astropy documentation.

cosmo_params

Parameters for the cosmology that deviate from the base cosmology passed.

delta_k

Dimensionless power spectrum, \(\Delta_k = \frac{k^3 P(k)}{2\pi^2}\).

dlnk

Step-size of log wave-numbers

growth

The instantiated growth model.

growth_factor

The growth factor.

growth_model

The model to use to calculate the growth function/growth rate.

growth_params

Relevant parameters of the growth_model.

k

Wavenumbers, [h/Mpc]

lnk_max

Maximum (natural) log wave-number, k [h/Mpc].

lnk_min

Minimum (natural) log wave-number, k [h/Mpc].

mean_density0

Mean density of universe at z=0, [Msun h^2 / Mpc**3]

n

Spectral index of fluctuations

nonlinear_delta_k

Dimensionless nonlinear power spectrum.

nonlinear_power

Non-linear log power [units \(Mpc^3/h^3\)].

parameter_values

Dictionary of all parameters and their current values

power

Normalised log power spectrum [units \(Mpc^3/h^3\)].

sigma_8

RMS linear density fluctuations in spheres of radius 8 Mpc/h

takahashi

Whether to use updated HALOFIT coefficients from Takahashi+12

transfer

The instantiated transfer model

transfer_function

Normalised CDM log transfer function.

transfer_model

Defines which transfer function model to use.

transfer_params

Relevant parameters of the transfer_model.

z

Redshift.