flip.power_spectra.models#
Functions#
|
The bel_coefficients function takes in a value for sigma_8 and returns the values of the coefficients |
|
The get_bel_model function takes in the linear power spectrum, wavenumber, and sigma_8 value. |
|
The get_nonlinearbel_model function returns the nonlinear power spectra for a given linear power spectrum. |
|
The get_linearbel_model function returns the linear BEL model for a given power spectrum. |
|
Module Contents#
- flip.power_spectra.models.bel_coefficients(sigma_8)[source]#
The bel_coefficients function takes in a value for sigma_8 and returns the values of the coefficients a_i, i = 1, 2, 3 and invkdelta as well as b. These are used to calculate the non-linear power spectrum using the fitting formula from Bel et al. (2007). The function is called by Class when calculating P(k)
- Parameters:
sigma_8 – Calculate the coefficients of the bessel function
- Returns:
The coefficients a_i, i = 1,
- flip.power_spectra.models.get_bel_model(wavenumber, power_spectrum_linear, **kwargs)[source]#
The get_bel_model function takes in the linear power spectrum, wavenumber, and sigma_8 value. It then calculates the nonlinear matter-matter power spectrum using a fitting function from Bel et al. (2014). The function also returns the nonlinear matter-matter cross correlation coefficient.
- Parameters:
wavenumber – Calculate the power spectrum
power_spectrum_linear – Calculate the nonlinear power spectrum
**kwargs – Pass a variable number of keyword arguments to a function
:param : Calculate the nonlinear power spectrum
- Returns:
The nonlinear matter power spectrum and the nonlinear galaxy clustering power spectrum
- flip.power_spectra.models.get_nonlinearbel_model(wavenumber, power_spectrum_linear, **kwargs)[source]#
The get_nonlinearbel_model function returns the nonlinear power spectra for a given linear power spectrum.
- Parameters:
wavenumber – Get the wavenumber of the power spectrum
power_spectrum_linear – Calculate the power_spectrum_mt and power_spectrum_tt
**kwargs – Pass a variable number of keyword arguments to a function
:param : Get the nonlinear power spectrum
- Returns:
The nonlinear power spectrum of matter, the cross power spectrum of matter and tracers and the auto-power spectrum of tracers
- flip.power_spectra.models.get_linearbel_model(wavenumber, power_spectrum_linear, **kwargs)[source]#
The get_linearbel_model function returns the linear BEL model for a given power spectrum.
- Parameters:
wavenumber – Calculate the wavenumber in h/mpc
power_spectrum_linear – Calculate the power spectrum of the matter field
**kwargs – Pass a variable number of keyword arguments to the function
:param : Set the value of the power spectrum
- Returns:
The linear power spectrum and the