pyccl.power module

pyccl.power.linear_matter_power(cosmo, k, a)[source]

The linear matter power spectrum; Mpc^3.

Parameters:
  • cosmo (Cosmology) – Cosmological parameters.
  • k (float or array_like) – Wavenumber; Mpc^-1.
  • a (float) – Scale factor.
Returns:

Linear matter power spectrum; Mpc^3.

Return type:

float or array_like

pyccl.power.nonlin_matter_power(cosmo, k, a)[source]

The nonlinear matter power spectrum; Mpc^3.

Parameters:
  • cosmo (Cosmology) – Cosmological parameters.
  • k (float or array_like) – Wavenumber; Mpc^-1.
  • a (float) – Scale factor.
Returns:

Nonlinear matter power spectrum; Mpc^3.

Return type:

float or array_like

pyccl.power.sigma8(cosmo)[source]

RMS variance in a top-hat sphere of radius 8 Mpc/h.

Note

8 Mpc/h is rescaled based on the Hubble constant.

Parameters:cosmo (Cosmology) – Cosmological parameters.
Returns:RMS variance in top-hat sphere of radius 8 Mpc/h.
Return type:float
pyccl.power.sigmaR(cosmo, R, a=1.0)[source]

RMS variance in a top-hat sphere of radius R in Mpc.

Parameters:
  • cosmo (Cosmology) – Cosmological parameters.
  • R (float or array_like) – Radius; Mpc.
  • a (float) – optional scale factor; defaults to a=1
Returns:

RMS variance in the density field in top-hat

sphere; Mpc.

Return type:

float or array_like

pyccl.power.sigmaV(cosmo, R, a=1.0)[source]

RMS variance in the displacement field in a top-hat sphere of radius R. The linear displacement field is the gradient of the linear density field.

Parameters:
  • cosmo (Cosmology) – Cosmological parameters.
  • R (float or array_like) – Radius; Mpc.
  • a (float) – optional scale factor; defaults to a=1
Returns:

RMS variance in the displacement field in

top-hat sphere.

Return type:

sigmaV (float or array_like)