This class can be used to calculate angular diameter distances in a specific kind of cosmology.
#include <cosmology.h>
List of all members.
Public Member Functions |
| | Cosmology (double h=0.71, double Wm=0.27, double Wr=0, double Wv=0.73, double w=-1.0) |
| | Create an instance to calculate angular diameter distances in a specific kind of cosmological model.
|
| void | setH (double h) |
| | Sets the Hubble constant to H_0 = h * 100 km s^-1 Mpc^-1.
|
| void | setMatter (double Wm) |
| | Sets Omega_m to Wm.
|
| void | setRadiation (double Wr) |
| | Sets Omega_r to Wr.
|
| void | setVacuum (double Wv) |
| | Sets Omega_v to Wv.
|
| void | setVacuumEOSParameter (double w) |
| | Sets the equation of state parameter for dark matter to w.
|
| double | getAngularDiameterDistance (double z1, double z2, int integrationSteps=1000) const |
| | Returns the angular diameter distance between redshifts z1 and z2.
|
| double | getAngularDiameterDistance (double z, int integrationSteps=1000) const |
| | Returns the angular diameter distance corresponding to z.
|
Constructor & Destructor Documentation
| grale::Cosmology::Cosmology |
( |
double |
h = 0.71, |
|
|
double |
Wm = 0.27, |
|
|
double |
Wr = 0, |
|
|
double |
Wv = 0.73, |
|
|
double |
w = -1.0 |
|
) |
| |
Create an instance to calculate angular diameter distances in a specific kind of cosmological model.
- Parameters:
-
| h | Speficies the Hubble constant: H_0 = h * 100 km s^-1 Mpc^-1 |
| Wm | Omega_m |
| Wr | Omega_r |
| Wv | Omega_v |
| w | Equation of state parameter for dark matter |
Member Function Documentation
| double grale::Cosmology::getAngularDiameterDistance |
( |
double |
z1, |
|
|
double |
z2, |
|
|
int |
integrationSteps = 1000 |
|
) |
| const |
Returns the angular diameter distance between redshifts z1 and z2. The precision of the numerical integration is controlled by the value of integrationSteps.
| double grale::Cosmology::getAngularDiameterDistance |
( |
double |
z, |
|
|
int |
integrationSteps = 1000 |
|
) |
| const |
|
inline |
| void grale::Cosmology::setH |
( |
double |
h | ) |
|
|
inline |
| void grale::Cosmology::setMatter |
( |
double |
Wm | ) |
|
|
inline |
| void grale::Cosmology::setRadiation |
( |
double |
Wr | ) |
|
|
inline |
| void grale::Cosmology::setVacuum |
( |
double |
Wv | ) |
|
|
inline |
| void grale::Cosmology::setVacuumEOSParameter |
( |
double |
w | ) |
|
|
inline |
The documentation for this class was generated from the following file: