marius311 / Cosmology.jl

Compute cosmological quantities in Julia
13 stars 0 forks source link
cosmology julia

Cosmology.jl

Note: this is a alpha software.

Cosmology.jl is a code written in Julia to compute various cosmological quantities like angular diameter distances, (WIP:) matter power spectra, or (TODO:) the CMB anisotropy spectra.

Requirements:

Installation (from the package prompt):

pkg> add https://github.com/marius311/Cosmology.jl

Example:

julia> using Cosmology

julia> p = new_params(H0=67, ωb=0.0225, ωc=0.12, mν=0.06eV, Nν_massive=1, Nν_massless=2.046, reltol=1e-4);

julia> rs(p,zdrag(p))/Mpc # sound horizon at baryon drag redshift
146.94167579179634

# etc..

Things currently handled correctly:

Motivation

The field of Cosmology already has some pretty mature and widely used codes which perform these calculations, CAMB and CLASS. So why Cosmology.jl?