Classes
PerturbationGrowth(cosmo[, a]) |
Perturbation Growth coefficients at several orders. |
nbodykit.cosmology.background.PerturbationGrowth(cosmo, a=None)[source]¶Perturbation Growth coefficients at several orders.
2-LPT is implemented. This implements the single fluid model of Boltamann equations. Therefore it is accurate only in a matter dominated universe. When background includes the radation contribution, the first order result is tuned to agree at sub-percent level comparing to a true multi-fluid boltzmann code under Planck15 cosmology.
All derivatives are against lna.
Note
Formulas are derived from Yin Li’s notes on 2LPT.
| Parameters: |
|
|---|
Methods
D1(a[, order]) |
Linear order growth function. |
D2(a[, order]) |
Second order growth function. |
E(a[, order]) |
Hubble function and derivatives against log a. |
Gf(a) |
FastPM growth factor function, eq, 20 |
Gp(a) |
FastPM growth factor function, eq, 19 |
Hfac(a) |
|
Om(a) |
|
f1(a) |
Linear order growth rate |
f2(a) |
Second order growth rate. |
gf(a) |
Similarly, the derivative is against ln a, so |
gp(a) |
Notice the derivative of D1 is against ln a but gp is d D1 / da, so |
ode(y, lna) |
D1(a, order=0)[source]¶Linear order growth function.
| Parameters: | |
|---|---|
| Returns: | array_like |
| Return type: | linear order growth function. |
D2(a, order=0)[source]¶Second order growth function.
| Parameters: | |
|---|---|
| Returns: | array_like |
| Return type: | second order growth function. |
f1(a)[source]¶Linear order growth rate
| Parameters: | |
|---|---|
| Returns: | array_like |
| Return type: | linear order growth rate. |