pyccl.halos.profiles.hernquist module
- class pyccl.halos.profiles.hernquist.HaloProfileHernquist(self, *, mass_def, concentration, truncated=True, fourier_analytic=False, projected_analytic=False, cumul2d_analytic=False)[source]
Bases:
HaloProfileMatter
Hernquist 1990 profile.
\[\rho(r) = \frac{\rho_0} {\frac{r}{r_s}\left(1+\frac{r}{r_s}\right)^3}\]where \(r_s\) is related to the comoving spherical overdensity halo radius \(r_\Delta(M)\) through the concentration parameter \(c(M)\) as
\[r_\Delta(M) = c(M)\,r_s\]and the normalization \(\rho_0\) is
\[\rho_0 = \frac{M}{2\pi\,r_s^3}\left(\frac{1+c}{c}\right)^2\]By default, this profile is truncated at \(r = r_\Delta(M)\).
- Parameters:
mass_def (
MassDef
orstr
) – a mass definition object, or a name string.concentration (
Concentration
) – concentration-mass relation to use with this profile.fourier_analytic (
bool
) – set toTrue
if you want to compute the Fourier profile analytically (and not through FFTLog).projected_analytic (
bool
) – set toTrue
if you want to compute the 2D projected profile analytically (and not through FFTLog).cumul2d_analytic (
bool
) – set toTrue
if you want to compute the 2D cumulative surface density analytically (and not through FFTLog).truncated (
bool
) – set toTrue
if the profile should be truncated at \(r = r_\Delta\).