# w0waCDM¶

class astropy.cosmology.w0waCDM(H0, Om0, Ode0, w0=-1.0, wa=0.0, Tcmb0=0, Neff=3.04, m_nu=<Quantity 0. eV>, Ob0=None, name=None)[source]

FLRW cosmology with a CPL dark energy equation of state and curvature.

The equation for the dark energy equation of state uses the CPL form as described in Chevallier & Polarski Int. J. Mod. Phys. D10, 213 (2001) and Linder PRL 90, 91301 (2003): $$w(z) = w_0 + w_a (1-a) = w_0 + w_a z / (1+z)$$.

Parameters
H0float or Quantity

Hubble constant at z = 0. If a float, must be in [km/sec/Mpc]

Om0float

Omega matter: density of non-relativistic matter in units of the critical density at z=0.

Ode0float

Omega dark energy: density of dark energy in units of the critical density at z=0.

w0float, optional

Dark energy equation of state at z=0 (a=1). This is pressure/density for dark energy in units where c=1.

wafloat, optional

Negative derivative of the dark energy equation of state with respect to the scale factor. A cosmological constant has w0=-1.0 and wa=0.0.

Tcmb0float or scalar Quantity, optional

Temperature of the CMB z=0. If a float, must be in [K]. Default: 0 [K]. Setting this to zero will turn off both photons and neutrinos (even massive ones).

Nefffloat, optional

Effective number of Neutrino species. Default 3.04.

m_nuQuantity, optional

Mass of each neutrino species. If this is a scalar Quantity, then all neutrino species are assumed to have that mass. Otherwise, the mass of each species. The actual number of neutrino species (and hence the number of elements of m_nu if it is not scalar) must be the floor of Neff. Typically this means you should provide three neutrino masses unless you are considering something like a sterile neutrino.

Ob0float or None, optional

Omega baryons: density of baryonic matter in units of the critical density at z=0. If this is set to None (the default), any computation that requires its value will raise an exception.

namestr, optional

Name for this cosmological object.

Examples

>>> from astropy.cosmology import w0waCDM
>>> cosmo = w0waCDM(H0=70, Om0=0.3, Ode0=0.7, w0=-0.9, wa=0.2)


The comoving distance in Mpc at redshift z:

>>> z = 0.5
>>> dc = cosmo.comoving_distance(z)


Attributes Summary

 w0 Dark energy equation of state at z=0 wa Negative derivative of dark energy equation of state w.r.t.

Methods Summary

 Evaluates the redshift dependence of the dark energy density. w(z) Returns dark energy equation of state at redshift z.

Attributes Documentation

w0

Dark energy equation of state at z=0

wa

Negative derivative of dark energy equation of state w.r.t. a

Methods Documentation

de_density_scale(z)[source]

Evaluates the redshift dependence of the dark energy density.

Parameters
zarray_like

Input redshifts.

Returns
Indarray, or float if input scalar

The scaling of the energy density of dark energy with redshift.

Notes

The scaling factor, I, is defined by $$\\rho(z) = \\rho_0 I$$, and in this case is given by

$I = \left(1 + z\right)^{3 \left(1 + w_0 + w_a\right)} \exp \left(-3 w_a \frac{z}{1+z}\right)$
w(z)[source]

Returns dark energy equation of state at redshift z.

Parameters
zarray_like

Input redshifts.

Returns
wndarray, or float if input scalar

The dark energy equation of state

Notes

The dark energy equation of state is defined as $$w(z) = P(z)/\rho(z)$$, where $$P(z)$$ is the pressure at redshift z and $$\rho(z)$$ is the density at redshift z, both in units where c=1. Here this is $$w(z) = w_0 + w_a (1 - a) = w_0 + w_a \frac{z}{1+z}$$.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7134528,"math_prob":0.99870354,"size":3554,"snap":"2022-27-2022-33","text_gpt3_token_len":1064,"char_repetition_ratio":0.15774648,"word_repetition_ratio":0.14457831,"special_character_ratio":0.2864378,"punctuation_ratio":0.14066853,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9997372,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-17T07:20:45Z\",\"WARC-Record-ID\":\"<urn:uuid:9b79858c-be61-4991-88fa-5e7f3e381024>\",\"Content-Length\":\"16111\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8527d6ad-20d1-4343-9c69-2e10738cd5c3>\",\"WARC-Concurrent-To\":\"<urn:uuid:b174ac70-5470-49a0-b268-9d4d0f972b31>\",\"WARC-IP-Address\":\"151.20.80.167\",\"WARC-Target-URI\":\"https://lira.no-ip.org:8443/doc/python-astropy-doc/html/api/astropy.cosmology.w0waCDM.html\",\"WARC-Payload-Digest\":\"sha1:4S7TLCYIRSYSWJP3J4NGDK5JUBXL3PLG\",\"WARC-Block-Digest\":\"sha1:XT7IHIYEQXBOI6R254TLLH2LC565YNVL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882572870.85_warc_CC-MAIN-20220817062258-20220817092258-00730.warc.gz\"}"}