Module

Cosmology

Methods

# static exports.getAngularSizeDistance(H0, omegaMat, omegaVac, z) → {MegaParsec}

Angular size distance
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number Omega Matter
omegaVac number Omega Vacuum
z number The redshift

View Source cosmology/distances.ts, line 52

MegaParsec

# static exports.getAngularSizeScale(H0, omegaMat, omegaVac, z) → {number}

Angular size scale
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number Omega Matter
omegaVac number Omega Vacuum
z number The redshift

View Source cosmology/distances.ts, line 66

Megaparsec / arcsecond
number

# static exports.getComovingRadialDistance(H0, omegaMat, omegaVac, z) → {MegaParsec}

Comoving radial distance
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number Omega Matter
omegaVac number Omega Vacuum
z number The redshift

View Source cosmology/distances.ts, line 14

MegaParsec

# static exports.getComovingVolume(omegaK, DCMR) → {GigaParsec3}

Comoving volume
Parameters:
Name Type Description
omegaK number Omega Curvature (= 1 - Omega Total)
DCMR number

View Source cosmology/volumes.ts, line 12

GigaParsec3

# static exports.getComovingVolumeWithinRedshift(H0, omegaMat, omegaVac, z) → {GigaParsec3}

Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number Omega Matter
omegaVac number Omega Vacuum
z number The redshift

View Source cosmology/volumes.ts, line 36

GigaParsec3

# static exports.getLightTravelTime(H0, omegaMat, omegaVac, z) → {GYr}

The light travel time
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number Omega Matter
omegaVac number Omega Vacuum
z number The redshift

View Source cosmology/ages.ts, line 87

GYr

# static exports.getLuminosityDistance(H0, omegaMat, omegaVac, z) → {MegaParsec}

Luminosity distance
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number Omega Matter
omegaVac number Omega Vacuum
z number The redshift

View Source cosmology/distances.ts, line 79

MegaParsec

# static exports.getOmegaK(H0, omegaMat, omegaVac) → {number}

Omega K (curvature) = 1-Omega(total)
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number Omega M (matter)
omegaVac number Omega Vac (vacuum)

View Source cosmology/omegas.ts, line 20

number

# static exports.getOmegaR(H0) → {number}

Omega R (radiation), the ratio of the density of the Universe to the critical density.
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant

View Source cosmology/omegas.ts, line 8

number

# static exports.getTangentialComovingDistance(H0, omegaMat, omegaVac, z) → {number}

Tangential comoving distance
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number Omega Matter
omegaVac number Omega Vacuum
z number The redshift

View Source cosmology/distances.ts, line 27

number

# static exports.getUniverseAge(H0, omegaMat, omegaVac) → {GYr}

The age of the universe
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number
omegaVac number

View Source cosmology/ages.ts, line 12

GYr

# static exports.getUniverseAgeAtRedshift(H0, omegaMat, omegaVac, z) → {GYr}

The age of the universe at a given redshift
Parameters:
Name Type Description
H0 KilometerPerSecondPerMegaParsec The Hubble constant
omegaMat number Omega Matter
omegaVac number Omega Vacuum
z number The redshift

View Source cosmology/ages.ts, line 34

GYr