Power Spectrum (skypy.power_spectrum)

This module contains methods to model the matter power spectrum.

SkyPy provides wrappers to a number of external codes for calculating the matter power spectrum, including CAMB and CLASSY. Here we demonstrate calculating the linear matter power spectrum using eisenstein_hu and the non-linear corrections using halofit_smith:

cosmology: !astropy.cosmology.default_cosmology.get []
wavenumber: !numpy.logspace [-3, 1, 100]
eisenstein_hu_wiggle: !skypy.power_spectrum.eisenstein_hu
  wavenumber: $wavenumber
  A_s: 2.1982e-09
  n_s: 0.969453
  cosmology: $cosmology
  kwmap: 0.02
  wiggle: True
halofit: !skypy.power_spectrum.halofit_smith
  wavenumber: $wavenumber
  redshift: 0.0
  linear_power_spectrum: $eisenstein_hu_wiggle
  cosmology: $cosmology
../_images/index-11.png

This module contains methods that model the matter power spectrum.

Linear Power Spectrum

CAMB

CAMB linear matter power spectrum.

CLASSY

Return the CLASS computation of the linear matter power spectrum, on a two dimensional grid of wavenumber and redshift.

eisenstein_hu

Eisenstein & Hu matter power spectrum.

transfer_no_wiggles

Eisenstein & Hu transfer function without wiggles.

transfer_with_wiggles

Eisenstein & Hu transfer function with wiggles.

Nonlinear Power Spectrum

HalofitParameters

halofit

Computation of the non-linear halo power spectrum.

halofit_smith

Computation of the non-linear halo power spectrum.

halofit_takahashi

Computation of the non-linear halo power spectrum.

halofit_bird

Computation of the non-linear halo power spectrum.

Growth Functions

growth_factor

Growth factor.

growth_function

Growth function.

growth_function_carroll

Growth function.

growth_function_derivative

First derivative of the growth function.