pyccl.haloprofile module

pyccl.haloprofile.einasto_profile_3d(cosmo, concentration, halo_mass, odelta, a, r)[source]

Calculate the 3D Einasto halo profile at a given radius or an array of radii, for a halo with a given mass, mass definition, and concentration, at a given scale factor, with a cosmology dependence. The alpha parameter is calibrated using the relation with peak height in https://arxiv.org/pdf/1401.1216.pdf eqn5, assuming virial mass.

Parameters:
  • cosmo (Cosmology) – cosmological parameters.
  • concentration (float) – halo concentration.
  • halo_mass (float) – halo masses; in units of Msun.
  • odelta (float) – overdensity with respect to mean matter density.
  • a (float) – scale factor.
  • r (float or array_like) – radius or radii to calculate profile for, in units of Mpc.
Returns:

3D NFW density at r, in units of Msun/Mpc^3.

Return type:

float or array_like

pyccl.haloprofile.hernquist_profile_3d(cosmo, concentration, halo_mass, odelta, a, r)[source]

Calculate the 3D Hernquist halo profile at a given radius or an array of radii, for a halo with a given mass, mass definition, and concentration, at a given scale factor, with a cosmology dependence.

Parameters:
  • cosmo (Cosmology) – cosmological parameters.
  • concentration (float) – halo concentration.
  • halo_mass (float) – halo masses; in units of Msun.
  • odelta (float) – overdensity with respect to mean matter density.
  • a (float) – scale factor.
  • r (float or array_like) – radius or radii to calculate profile for, in units of Mpc.
Returns:

3D NFW density at r, in units of Msun/Mpc^3.

Return type:

float or array_like

pyccl.haloprofile.nfw_profile_2d(cosmo, concentration, halo_mass, odelta, a, r)[source]

Calculate the 2D projected NFW halo profile at a given radius or an array of radii, for a halo with a given mass, mass definition, and concentration, at a given scale factor, with a cosmology dependence.

Parameters:
  • cosmo (Cosmology) – cosmological parameters.
  • concentration (float) – halo concentration.
  • halo_mass (float) – halo masses; in units of Msun.
  • odelta (float) – overdensity with respect to mean matter density.
  • a (float) – scale factor.
  • r (float or array_like) – radius or radii to calculate profile for, in units of Mpc.
Returns:

2D projected NFW density at r,

in units of Msun/Mpc^2.

Return type:

float or array_like

pyccl.haloprofile.nfw_profile_3d(cosmo, concentration, halo_mass, odelta, a, r)[source]

Calculate the 3D NFW halo profile at a given radius or an array of radii, for a halo with a given mass, mass definition, and concentration, at a given scale factor, with a cosmology dependence.

Parameters:
  • cosmo (Cosmology) – cosmological parameters.
  • concentration (float) – halo concentration.
  • halo_mass (float) – halo masses; in units of Msun.
  • odelta (float) – overdensity with respect to mean matter density.
  • a (float) – scale factor.
  • r (float or array_like) – radius or radii to calculate profile for, in units of Mpc.
Returns:

3D NFW density at r, in units of Msun/Mpc^3.

Return type:

float or array_like