Bases: astropy.cosmology.FLRW
FLRW cosmology with a constant dark energy equation of state and curvature.
This has one additional attribute beyond those of FLRW.
| Parameters: | H0 : float or Quantity
Om0 : float
Ode0 : float
w0 : float
Tcmb0 : float or Quantity
Neff : float
m_nu : Quantity
name : str
|
|---|
Examples
>>> from astropy.cosmology import wCDM
>>> cosmo = wCDM(H0=70, Om0=0.3, Ode0=0.7, w0=-0.9)
The comoving distance in Mpc at redshift z:
>>> z = 0.5
>>> dc = cosmo.comoving_distance(z)
Attributes Summary
| w0 | Dark energy equation of state |
Methods Summary
| de_density_scale(z) | Evaluates the redshift dependence of the dark energy density. |
| efunc(z) | Function used to calculate H(z), the Hubble parameter. |
| inv_efunc(z) | Function used to calculate . |
| w(z) | Returns dark energy equation of state at redshift z. |
Attributes Documentation
Dark energy equation of state
Methods Documentation
Evaluates the redshift dependence of the dark energy density.
| Parameters: | z : array_like
|
|---|---|
| Returns: | I : ndarray, or float if input scalar
|
Notes
The scaling factor, I, is defined by
,
and in this case is given by

Function used to calculate H(z), the Hubble parameter.
| Parameters: | z : array_like
|
|---|---|
| Returns: | E : ndarray, or float if input scalar
|
Notes
The return value, E, is defined such that
.
Function used to calculate
.
| Parameters: | z : array_like
|
|---|---|
| Returns: | E : ndarray, or float if input scalar
|
Notes
The return value, E, is defined such that
.
Returns dark energy equation of state at redshift z.
| Parameters: | z : array_like
|
|---|---|
| Returns: | w : ndarray, or float if input scalar
|
Notes
The dark energy equation of state is defined as
, where
is the
pressure at redshift z and
is the density
at redshift z, both in units where c=1. Here this is
.