halomod.concentration.CMRelation

class halomod.concentration.CMRelation(cosmo: ~hmf.cosmology.cosmo.Cosmology = <hmf.cosmology.cosmo.Cosmology object>, filter0: ~hmf.density_field.filters.Filter | None = None, growth: ~hmf.cosmology.growth_factor.GrowthFactor | None = None, delta_c: float = 1.686, profile: ~halomod.profiles.Profile | None = None, mdef: ~hmf.halos.mass_definitions.MassDefinition | None = None, **model_parameters)[source]

Bases: Component

Base-class for Concentration-Mass relations.

Parameters:
  • filter0 (hmf.filters.Filter instance) – An instance of a filter function, with the power specified at z=0. Required for Bullock01.

  • growth (hmf.growth_factor.GrowthFactor instance) – Specifies the growth function for the cosmology. Required for Bullock01

  • delta_c (float, optional) – Critical density for collapse Used in Bullock01

  • mstar (float, optional) – The nonlinear mass at the desired redshift. If not provided, will be calculated if required.

  • **model_parameters (unpacked-dictionary) – These parameters are model-specific. For any model, list the available parameters (and their defaults) using <model>._defaults

cm(m, z=0)[source]

Return concentration parameter for mass m at z.

Parameters:
  • z (float) – Redshift. Must not be an array.

  • m (float) – Halo Mass.

classmethod get_models() Dict[str, Type]

Get a dictionary of all implemented models for this component.

mass_nonlinear(z)[source]

Return the nonlinear mass at z.

Parameters:

z (float) – Redshift. Must not be an array.

native_mdefs = ()