yt.frontends.enzo.simulation_handling.EnzoCosmology.hubble_time

EnzoCosmology.hubble_time(z, z_inf=1000000.0)

The age of the Universe at a given redshift.

Parameters:

z : float

Redshift.

z_inf : float

The upper bound of the integral of the age integrand. Default: 1e6.

See also

t_from_z

Examples

>>> co = Cosmology()
>>> print co.hubble_time(0.).in_units("Gyr")