CMB/Boltzmann Code

Michael Mortonson

Ast 321 Cosmology, Wayne Hu


This is the web site for the Cosmic Microwave Background code that I wrote as the final project for Wayne Hu's spring 2005 cosmology course Ast 321 at the University of Chicago.

First, here is the code, written in C++. Since I wrote it as one big file with all the functions and everything in it, each code listed here does everything that the previous one can do and more. The codes are explained in more detail in the relevant sections below.

cmb_rk.cpp (Runge-Kutta Integrator)
cmb_spline.cpp (Spline Interpolation)
cmb_kmode.cpp (Single k-mode evolution)
cmb_multik.cpp (Evolution of multiple k-modes)

Click the links below for the results of each of these codes. For all of the results, I assume a flat universe with matter and photons only:

Parameters

In the future I hope to add other things like neutrinos, dark energy, and so on.

Runge-Kutta Integrator

Splines

Initial Conditions

Equations Used in the Code

Single k-mode Evolution

Power Spectrum


Last updated 6/6/05