<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Flatw0waCDM — Astropy v0.2.4</title> <link rel="stylesheet" href="../_static/bootstrap-astropy.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '0.2.4', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/sidebar.js"></script> <link rel="shortcut icon" href="../_static/astropy_logo.ico"/> <link rel="top" title="Astropy v0.2.4" href="../index.html" /> <link rel="up" title="Cosmological Calculations (astropy.cosmology)" href="../cosmology/index.html" /> <link rel="next" title="FlatwCDM" href="astropy.cosmology.core.FlatwCDM.html" /> <link rel="prev" title="FlatLambdaCDM" href="astropy.cosmology.core.FlatLambdaCDM.html" /> </head> <body> <div class="topbar"> <a class="brand" title="Documentation Home" href="../index.html"></a> <ul> <li><a class="homelink" title="AstroPy Homepage" href="http://www.astropy.org"></a></li> <li><a title="General Index" href="../genindex.html">Index</a></li> <li><a title="Python Module Index" href="../py-modindex.html">Modules</a></li> <li> <form action="../search.html" method="get"> <input type="text" name="q" placeholder="Search" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </li> </ul> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right"> <a href="astropy.cosmology.core.FlatwCDM.html" title="FlatwCDM"> next » </a> </li> <li class="right"> <a href="astropy.cosmology.core.FlatLambdaCDM.html" title="FlatLambdaCDM"> « previous </a> | </li> <li> <a href="../index.html">Astropy v0.2.4</a> » </li> <li><a href="../cosmology/index.html" accesskey="U">Cosmological Calculations (<tt class="docutils literal"><span class="pre">astropy.cosmology</span></tt>)</a> »</li> <li>Flatw0waCDM</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="flatw0wacdm"> <h1>Flatw0waCDM<a class="headerlink" href="#flatw0wacdm" title="Permalink to this headline">¶</a></h1> <dl class="class"> <dt id="astropy.cosmology.core.Flatw0waCDM"> <em class="property">class </em><tt class="descclassname">astropy.cosmology.core.</tt><tt class="descname">Flatw0waCDM</tt><big>(</big><em>H0</em>, <em>Om0</em>, <em>w0=-1.0</em>, <em>wa=0.0</em>, <em>Tcmb0=2.725</em>, <em>Neff=3.04</em>, <em>name='Flatw0waCDM'</em><big>)</big><a class="reference external" href="http://github.com/astropy/astropy/tree/v0.2.4/astropy/cosmology/core.py#L1607" title="Push the Edit button on the next page"><span class="edit-on-github viewcode-link"> [edit on github]</span></a><a class="reference internal" href="../_modules/astropy/cosmology/core.html#Flatw0waCDM"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#astropy.cosmology.core.Flatw0waCDM" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="astropy.cosmology.core.w0waCDM.html#astropy.cosmology.core.w0waCDM" title="astropy.cosmology.core.w0waCDM"><tt class="xref py py-class docutils literal"><span class="pre">astropy.cosmology.core.w0waCDM</span></tt></a></p> <p>FLRW cosmology with a CPL dark energy equation of state and no curvature.</p> <p>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): <span class="math">w(z) = w_0 + w_a (1-a) = w_0 + w_a z / (1+z)</span>.</p> <p class="rubric">Examples</p> <div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="kn">from</span> <span class="nn">astro.cosmology</span> <span class="kn">import</span> <span class="n">Flatw0waCDM</span> <span class="gp">>>> </span><span class="n">cosmo</span> <span class="o">=</span> <span class="n">Flatw0waCDM</span><span class="p">(</span><span class="n">H0</span><span class="o">=</span><span class="mi">70</span><span class="p">,</span> <span class="n">Om0</span><span class="o">=</span><span class="mf">0.3</span><span class="p">,</span> <span class="n">w0</span><span class="o">=-</span><span class="mf">0.9</span><span class="p">,</span> <span class="n">wa</span><span class="o">=</span><span class="mf">0.2</span><span class="p">)</span> </pre></div> </div> <p>The comoving distance in Mpc at redshift z:</p> <div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">dc</span> <span class="o">=</span> <span class="n">cosmo</span><span class="o">.</span><span class="n">comoving_distance</span><span class="p">(</span><span class="n">z</span><span class="p">)</span> </pre></div> </div> </dd></dl> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"><h3>Page Contents</h3> <ul> <li><a class="reference internal" href="#">Flatw0waCDM</a></li> </ul> </div> </div> <div class="clearer"></div> </div> <footer class="footer"> <p class="pull-right"> <a href="../_sources/_generated/astropy.cosmology.core.Flatw0waCDM.txt" rel="nofollow">Page Source</a> <a href="#">Back to Top</a></p> <p> © Copyright 2011-2013, The Astropy Developers.<br/> Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. Last built 22 Oct 2013. <br/> </p> </footer> </body> </html>