Skip to content

Fast predictions for the matter power spectrum.

License

Notifications You must be signed in to change notification settings

michaelbuehlmann/CosmicEmu

 
 

Repository files navigation

Cosmic Emu

Emu

Description

The Cosmic Emu produces predictions for the matter power spectrum based on eight cosmological parameters and redshift. These predictions, based on Gaussian process emulation, approximate the power spectra that would be obtained from large dark matter simulations. Details as follows:

We recommend using the current 2022 emulator rather than the deprecated 2017 version. Note that prior to July 2022, the only Cosmic Emu version available on this site was the 2017 Mira-Titan II version.

Getting Started

The Cosmic Emu requires the GNU Scientific Library (GSL). The makefile for both spectrum emulators includes lines to point to your installation of the GSL. The Cosmic Emu can produce predictions for the dark matter spectrum (P_cb) and the dark matter plus neutrino spectrum (P_tot). For each spectrum emulator, there are two files in addition to the makefile: emu.c and params.h. Simply type "make" at the command line to compile. The resulting program, emu.exe, is intended to be a demonstration of how to use the emu() and emuInit() functions. This program looks for a file called "xstar.dat" which should have nine space-delimited numbers on each line:

omega_m omega_b sigma_8 h n_s w_0 w_a omega_nu z

Running "emu.exe" will produce a prediction, in its own file, for each line in xstar.dat (e.g. if xstar.dat has 10 lines of inputs, the code will produce 10 output files, each with a prediction for the corresponding line).

The ranges for the parameters are

Lower Parameter Upper
0.12 omega_m 0.155
0.0215 omega_b 0.0235
0.7 sigma_8 0.9
0.55 h 0.85
0.85 n_s 1.05
-1.3 w_0 -0.7
0.3 -(w_0+w_a)^(1/4) 1.29
0.0 omega_nu 0.01
0.0 z 2.02

The code will not produce a spectrum for parameters outside these ranges. Note that the range for w_a depends on w_0.

Copyright and License

Triad National Security, LLC owns the copyright for this code. Please see LICENSE for copyright details.

About

Fast predictions for the matter power spectrum.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.7%
  • Other 0.3%