CLASS MANUAL
nonlinear.c File Reference
#include "nonlinear.h"
+ Include dependency graph for nonlinear.c:

Functions

int nonlinear_init (struct precision *ppr, struct background *pba, struct thermo *pth, struct perturbs *ppt, struct primordial *ppm, struct nonlinear *pnl)
 
int nonlinear_halofit (struct precision *ppr, struct background *pba, struct primordial *ppm, struct nonlinear *pnl, double tau, double *pk_l, double *pk_nl, double *lnk_l, double *lnpk_l, double *ddlnpk_l, double *k_nl)
 

Detailed Description

Documented nonlinear module

Julien Lesgourgues, 6.03.2014

New module replacing an older one present up to version 2.0 The new module is located in a better place in the main, allowing it to compute non-linear correction to $ C_l$'s and not just $ P(k)$. It will also be easier to generalize to new methods. The old implementation of one-loop calculations and TRG calculations has been dropped from this version, they can still be found in older versions.

Function Documentation

◆ nonlinear_init()

int nonlinear_init ( struct precision ppr,
struct background pba,
struct thermo pth,
struct perturbs ppt,
struct primordial ppm,
struct nonlinear pnl 
)

Summary

(a) First deal with the case where non non-linear corrections requested

(b) Compute for HALOFIT non-linear spectrum

  • copy list of (k,tau) from perturbation module
  • loop over time

◆ nonlinear_halofit()

int nonlinear_halofit ( struct precision ppr,
struct background pba,
struct primordial ppm,
struct nonlinear pnl,
double  tau,
double *  pk_l,
double *  pk_nl,
double *  lnk_l,
double *  lnpk_l,
double *  ddlnpk_l,
double *  k_nl 
)

Determine non linear ratios (from pk)