cluster_toolkit.density module

Galaxy cluster density profiles.

cluster_toolkit.density.rho_einasto_at_r(r, M, rs, alpha, Omega_m, delta=200, rhos=-1.0)[source]

Einasto halo density profile. Distances are Mpc/h comoving.

Parameters:
  • r (float or array like) – 3d distances from halo center.
  • M (float) – Mass in Msun/h; not used if rhos is specified.
  • rhos (float) – Scale density in Msun h^2/Mpc^3 comoving; optional.
  • rs (float) – Scale radius.
  • alpha (float) – Profile exponent.
  • Omega_m (float) – Omega_matter, matter fraction of the density.
  • delta (int) – Overdensity, default is 200.
Returns:

Einasto halo density profile in Msun h^2/Mpc^3 comoving.

Return type:

float or array like

cluster_toolkit.density.rho_nfw_at_r(r, M, c, Omega_m, delta=200)[source]

NFW halo density profile.

Parameters:
  • r (float or array like) – 3d distances from halo center in Mpc/h comoving.
  • M (float) – Mass in Msun/h.
  • c (float) – Concentration.
  • Omega_m (float) – Omega_matter, matter fraction of the density.
  • delta (int; optional) – Overdensity, default is 200.
Returns:

NFW halo density profile in Msun h^2/Mpc^3 comoving.

Return type:

float or array like