hmf.alternatives.wdm.WDM

class hmf.alternatives.wdm.WDM(mx, cosmo=FlatLambdaCDM(name="Planck15", H0=67.7 km / (Mpc s), Om0=0.307, Tcmb0=2.725 K, Neff=3.05, m_nu=[0.   0.   0.06] eV, Ob0=0.0486), z=0, **model_params)[source]

Base class for all WDM components.

Do not use this class directly. The primary purpose of the WDM Component is to modify the transfer function. Thus, the only requisite method to define in any given subclass is transfer(), which calculates this quantity in the proposed WDM model.

Parameters
  • mx (float) – Mass of the particle in keV

  • cosmo (hmf.cosmo.Cosmology instance) – A cosmology.

  • z (float) – Redshift.

  • **model_parameters (unpack-dict) – Parameters specific to a model. To see the default values, check the _defaults class attribute.

Methods

__init__(mx[, cosmo, Om0, Tcmb0, Neff, …])

Initialize self.

get_models()

Get a dictionary of all implemented models for this component.

transfer(lnk)

Transfer function for WDM models