ir_res.c File Reference

Documented IR_res module. More...

#include "header.h"
Include dependency graph for ir_res.c:

Functions

double pm_IR_LO (struct Cosmology *Cx, double k, double z, long SPLIT)
 Compute the leading-order IR-resummed matter power spectrum, ala Ivanovic et al. More...
 
double pm_IR_NLO (struct Cosmology *Cx, double k, double z, long SPLIT)
 Compute the next-to-leading-order IR-resummed matter power spectrum, ala Ivanovic et al. More...
 
double IR_Sigma2_integrand (double x, void *par)
 Integrand to compute the suppression factor IR_sigma2. More...
 
double IR_Sigma2 (struct Cosmology *Cx, double z, double k0, long SPLIT)
 Compute the suppression factor IR_sigma2. More...
 
double pm_nowiggle (struct Cosmology *Cx, double k, double z, double k0, int cleanup, long SPLIT)
 Compute the no-wiggle componenet of the matter power spectrum. More...
 
double pm_nowiggle_bspline (struct Cosmology *Cx, double k, double z, int cleanup)
 Compute the no-wiggle componenet of the matter power spectrum, reading in and interpolating the output of apython code which computed the broadband by fitting families of Bsplines (see Vlah et al 2015) More...
 
double pm_nowiggle_gfilter (struct Cosmology *Cx, double k, double z, int cleanup)
 Compute the no-wiggle componenet of the matter power spectrum, using Gaussian filter (see Vlah et al 2015) More...
 
double pm_nowiggle_dst (struct Cosmology *Cx, double k, double z, int cleanup)
 Compute the no-wiggle componenet of the matter power spectrum, reading in and interpolating the output of apython code which computed the broadband by discrete sin-transform, See Hamann et al 2010. More...
 

Detailed Description

Documented IR_res module.

Azadeh Moradinezhad Dizgah, November 4th 2021

This module is computes the leading and next-to-leading IR-resummed matter power spectrum The wiggle-nowiggle seperation is performed in wnw_split.c module.

In summary, the following functions can be called from other modules:

  1. pm_IR_LO()
  2. pm_IR_NLO()
  3. IR_Sigma2()
  4. pm_nowiggle()
  5. pm_nowiggle_gfilter()
  6. pm_nowiggle_bspline()
  7. pm_nowiggle_dst()

Function Documentation

◆ IR_Sigma2()

double IR_Sigma2 ( struct Cosmology Cx,
double  z,
double  k0,
long  SPLIT 
)

Compute the suppression factor IR_sigma2.

Parameters
CxInput: pointer to cosmology structure
zInput: redshift
k0Input: first element of the k-array, used in normalization of EH no-wiggle spectrum
SPLITInput: switch to set the method of wiggle-nowiggle split
Returns
value of IR resummation suppression factor
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IR_Sigma2_integrand()

double IR_Sigma2_integrand ( double  x,
void *  par 
)

Integrand to compute the suppression factor IR_sigma2.

Parameters
xInput: integration variable, k-values
parInput: integration parameters
Returns
integrand to be used in IR_sigma2() function
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pm_IR_LO()

double pm_IR_LO ( struct Cosmology Cx,
double  k,
double  z,
long  SPLIT 
)

Compute the leading-order IR-resummed matter power spectrum, ala Ivanovic et al.

Parameters
CxInput: pointer to cosmology structure
kInput: wavenumber in unit of 1/Mpc.
zInput: redshift
SPLITInput: switch to set the method of wiggle-nowiggle split
Returns
value of leading IR-ressumed power spectrum
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pm_IR_NLO()

double pm_IR_NLO ( struct Cosmology Cx,
double  k,
double  z,
long  SPLIT 
)

Compute the next-to-leading-order IR-resummed matter power spectrum, ala Ivanovic et al.

Parameters
CxInput: pointer to cosmology structure
kInput: wavenumber in unit of 1/Mpc.
zInput: redshift
SPLITInput: switch to set the method of wiggle-nowiggle split
Returns
value of NL IR-ressumed power spectrum
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pm_nowiggle()

double pm_nowiggle ( struct Cosmology Cx,
double  k,
double  z,
double  k0,
int  cleanup,
long  SPLIT 
)

Compute the no-wiggle componenet of the matter power spectrum.

Parameters
CxInput: pointer to cosmology structure
kInput: wavenumber in unit of h/Mpc.
zInput: redshift
k0Input: first element of the k-array, used in normalization of EH no-wiggle spectrum
cleanupInput: switch to set whether to free the memory allocated to no-wiggle interpolators
SPLITInput: switch to set the method of wiggle-nowiggle split
Returns
value of no-wiggle power spectrum
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pm_nowiggle_bspline()

double pm_nowiggle_bspline ( struct Cosmology Cx,
double  k,
double  z,
int  cleanup 
)

Compute the no-wiggle componenet of the matter power spectrum, reading in and interpolating the output of apython code which computed the broadband by fitting families of Bsplines (see Vlah et al 2015)

Parameters
CxInput: pointer to cosmology structure
kInput: wavenumber in unit of h/Mpc.
zInput: redshift
cleanupInput: switch to set whether to free the memory allocated to no-wiggle interpolators
Returns
value of no-wiggle power spectrum
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pm_nowiggle_dst()

double pm_nowiggle_dst ( struct Cosmology Cx,
double  k,
double  z,
int  cleanup 
)

Compute the no-wiggle componenet of the matter power spectrum, reading in and interpolating the output of apython code which computed the broadband by discrete sin-transform, See Hamann et al 2010.

Parameters
CxInput: pointer to cosmology structure
kInput: wavenumber in unit of h/Mpc.
zInput: redshift
cleanupInput: switch to set whether to free the memory allocated to no-wiggle interpolators
Returns
value of no-wiggle power spectrum
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pm_nowiggle_gfilter()

double pm_nowiggle_gfilter ( struct Cosmology Cx,
double  k,
double  z,
int  cleanup 
)

Compute the no-wiggle componenet of the matter power spectrum, using Gaussian filter (see Vlah et al 2015)

Parameters
CxInput: pointer to cosmology structure
kInput: wavenumber in unit of h/Mpc.
zInput: redshift
cleanupInput: switch to set whether to free the memory allocated to no-wiggle interpolators
Returns
value of no-wiggle power spectrum
Here is the call graph for this function:
Here is the caller graph for this function: