sfof
|
Class containing basic functions required for Cosmology. More...
#include <cosmo.hpp>
Public Member Functions | |
void | set_up (double, double) |
This function sets the cosmological parameter values for the Cosmo functions. More... | |
double | angdidis (double) |
This function calculates the angular diameter distance d_A as a function of z, Omega_M and Omega_L in a matter-dominated universe, using the function propmotdis(). More... | |
double | angdidis2 (double, double) |
This function calculates the angular diameter distance d_A from z1 to z2 as a function of Omega_M and Omega_L in a matter-dominated universe, using the function propmotdis(). More... | |
double | comdis (double) |
This function calculates the line-of-sight comoving distance d_C as a function of z, Omega_M and Omega_L in a matter-dominated universe, using dcomdisdz(). More... | |
double | comvol (double) |
This function calculates the all-sky comoving volume V as a function of z, Omega_M and Omega_L in a matter-dominated universe. More... | |
double | dcomdisdz (double) |
This function calculates the differential line-of-sight comoving distance dD_c/dz as a function of z, Omega_M and Omega_L in a matter-dominated universe. More... | |
double | dcomvoldz (double) |
This function calculates the one-steradian differential comoving volume dV/dz as a function of z, Omega_M and Omega_L in a matter-dominated universe. More... | |
double | dlookbackdz (double) |
This function calculates the change in lookback time dt/dz with redshift z as a function of z, Omega_M and Omega_L in a matter-dominated universe. More... | |
double | doptdepthdz (double) |
This function calculates the change in optical depth dtau/dz with redshift z as a function of z, Omega_M and Omega_L in a matter-dominated universe. More... | |
double | dpropmotdisdz (double) |
This function calculates the derivative of the proper motion distance d_M with respect to redshift z as a function of z, Omega_M and Omega_L in a matter-dominated universe. More... | |
double | intcomvol (double) |
This function calculates the all-sky comoving volume V as a function of z, Omega_M and Omega_L in a matter-dominated universe by integrating dcomvoldz(). More... | |
double | lookback (double) |
This function calculates the lookback time t(0)-t(z) as a function of z, OmegaM and OmegaL by integrating the output of dlookbackdz. More... | |
double | lumdis (double) |
This function calculates the luminosity distance d_L as a function of z, Omega_M and Omega_L in a matter-dominated universe, using the function propmotdis(). More... | |
double | optdepth (double) |
This function calculates the optical depth tau as a function of z, OmegaM and OmegaL by integrating the output of doptdepthdz. More... | |
double | propmotdis (double) |
This function calculates the proper motion distance d_M as a function of z, Omega_M and Omega_L in a matter-dominated universe. More... | |
Public Attributes | |
double | OmegaM |
Matter density parameter value. More... | |
double | OmegaL |
Dark energy density parameter value. More... | |
Class containing basic functions required for Cosmology.
This class encompasses a selection of functions that perform some basic calculations required for cosmology.
double Cosmo::angdidis | ( | double | z | ) |
This function calculates the angular diameter distance d_A as a function of z, Omega_M and Omega_L in a matter-dominated universe, using the function propmotdis().
H0=c=1.
double Cosmo::angdidis2 | ( | double | z1, |
double | z2 | ||
) |
This function calculates the angular diameter distance d_A from z1 to z2 as a function of Omega_M and Omega_L in a matter-dominated universe, using the function propmotdis().
H0=c=1.
double Cosmo::comdis | ( | double | z | ) |
This function calculates the line-of-sight comoving distance d_C as a function of z, Omega_M and Omega_L in a matter-dominated universe, using dcomdisdz().
H0=c=1.
double Cosmo::comvol | ( | double | z | ) |
This function calculates the all-sky comoving volume V as a function of z, Omega_M and Omega_L in a matter-dominated universe.
Formulae from Carrol, Press & Turner, 1992, and my own calculation.
double Cosmo::dcomdisdz | ( | double | z | ) |
This function calculates the differential line-of-sight comoving distance dD_c/dz as a function of z, Omega_M and Omega_L in a matter-dominated universe.
H0=c=1.
double Cosmo::dcomvoldz | ( | double | z | ) |
This function calculates the one-steradian differential comoving volume dV/dz as a function of z, Omega_M and Omega_L in a matter-dominated universe.
Formulae from Carrol, Press & Turner, 1992, Kolb & Turner, 1990, and my own calculation. H0=c=1.
double Cosmo::dlookbackdz | ( | double | z | ) |
This function calculates the change in lookback time dt/dz with redshift z as a function of z, Omega_M and Omega_L in a matter-dominated universe.
Formula from Carrol, Press & Turner,
double Cosmo::doptdepthdz | ( | double | z | ) |
This function calculates the change in optical depth dtau/dz with redshift z as a function of z, Omega_M and Omega_L in a matter-dominated universe.
Formula from Peebles, 1993. H0=c=sigma=n=1.
double Cosmo::dpropmotdisdz | ( | double | z | ) |
This function calculates the derivative of the proper motion distance d_M with respect to redshift z as a function of z, Omega_M and Omega_L in a matter-dominated universe.
Formula from Carrol, Press & Turner, 1992. This function also requires the function propmotdis(). H0=c=1.
double Cosmo::intcomvol | ( | double | z | ) |
This function calculates the all-sky comoving volume V as a function of z, Omega_M and Omega_L in a matter-dominated universe by integrating dcomvoldz().
It was written to test comvol().
double Cosmo::lookback | ( | double | z | ) |
This function calculates the lookback time t(0)-t(z) as a function of z, OmegaM and OmegaL by integrating the output of dlookbackdz.
double Cosmo::lumdis | ( | double | z | ) |
This function calculates the luminosity distance d_L as a function of z, Omega_M and Omega_L in a matter-dominated universe, using the function propmotdis().
H0=c=1.
double Cosmo::optdepth | ( | double | z | ) |
This function calculates the optical depth tau as a function of z, OmegaM and OmegaL by integrating the output of doptdepthdz.
Again, H0=c=sigma=n=1.
double Cosmo::propmotdis | ( | double | z | ) |
This function calculates the proper motion distance d_M as a function of z, Omega_M and Omega_L in a matter-dominated universe.
Formulae from Carrol, Press & Turner, 1992, Kolb & Turner, 1990, and my own derivation. Makes use of comdis(). H0=c=1.
void Cosmo::set_up | ( | double | OmegaM_val, |
double | OmegaL_val | ||
) |
This function sets the cosmological parameter values for the Cosmo functions.
double Cosmo::OmegaL |
Dark energy density parameter value.
double Cosmo::OmegaM |
Matter density parameter value.