Skip to content

Compute the tree- and loop-level matter power spectra and matter bispectra as well as the tree-level trispectrum in Eulerian perturbation theory for fuzzy dark matter (FDM) and cold dark matter (CDM).

License

Notifications You must be signed in to change notification settings

KunkelAlexander/fdm-eulerpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eulerian perturbation code for FDM and CDM

About

This code computes the tree- and loop-level matter power spectra and matter bispectra as well as the tree-level trispectrum in Eulerian perturbation theory for fuzzy dark matter (FDM) and cold dark matter (CDM). For a wonderful review on cosmological perturbation theory, see Bernardeau, F. / Colombi, S. / Gaztanaga, E. / Scoccimarro, R.: Large-Scale Structure of the Universe and Cosmological Perturbation Theory. It expects initial spectra in the form provided by CAMB (https://github.com/cmbant/CAMB) or axionCAMB (https://github.com/dgrin1/axionCAMB), computes the growth linear growth and decay factors as well as the spectrum correction in a dark energy universe for both CDM and FDM.

Usage

The folder "c++" contains the C++-code that uses the CUBA (http://www.feynarts.de/cuba/) library for carrying out numerical integrations. The folder "python" contains python code that uses the vegas (https://vegas.readthedocs.io/en/latest/) library for carrying out numerical integrations. Both codes are largely redundant, implement mostly the same functions and features and were used for cross-checking results. The C++-code is to be preferred for performance reasons.

Compilation

C++

Set include and library paths and compile with

g++ -I/path_to_cuba -std=c++11 -O3 pt_main.cpp spectrum.cpp -o pt_main -lgsl -lgslcblas -lgslwrap -lcuba -lm

Dependencies

Python

  • numpy, scipy, matplotlib, vegas, numba

C++:

  • cuba, gsl, gslwrap, boost

About

Compute the tree- and loop-level matter power spectra and matter bispectra as well as the tree-level trispectrum in Eulerian perturbation theory for fuzzy dark matter (FDM) and cold dark matter (CDM).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published