Page MenuHomec4science

ProfilesModule.html
No OneTemporary

File Metadata

Created
Fri, Nov 22, 20:38

ProfilesModule.html

<!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>the profiles module &mdash; pNbody v4 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '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>
<link rel="top" title="pNbody v4 documentation" href="../index.html" />
<link rel="up" title="Reference" href="Reference.html" />
<link rel="next" title="the geometry module" href="GeometryModule.html" />
<link rel="prev" title="the Movie module" href="MovieModule.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="../np-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="GeometryModule.html" title="the geometry module"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="MovieModule.html" title="the Movie module"
accesskey="P">previous</a> |</li>
<li><a href="../index.html">pNbody v4 documentation</a> &raquo;</li>
<li><a href="Reference.html" accesskey="U">Reference</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="module-pNbody.profiles">
<span id="the-profiles-module"></span><h1>the profiles module<a class="headerlink" href="#module-pNbody.profiles" title="Permalink to this headline">¶</a></h1>
<dl class="function">
<dt id="pNbody.profiles.burkert_mr">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">burkert_mr</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.burkert_mr" title="Permalink to this definition">¶</a></dt>
<dd><p>Burkert profile
rhob = rho0 / ( ( 1 + r/rs ) * ( 1 + (r/rs)**2 ) )</p>
<ol class="upperalpha simple">
<li>Burkert, Astrophys. J. 447 (1995) L25.</li>
</ol>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.burkert_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">burkert_profile</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.burkert_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>Burkert profile
rhob = rho0 / ( ( 1 + r/rs ) * ( 1 + (r/rs)**2 ) )</p>
<ol class="upperalpha simple">
<li>Burkert, Astrophys. J. 447 (1995) L25.</li>
</ol>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.generic2c_mr">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">generic2c_mr</tt><big>(</big><em>r</em>, <em>rs</em>, <em>a</em>, <em>b</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.generic2c_mr" title="Permalink to this definition">¶</a></dt>
<dd><p>Mass in the radius r for the distribution
rho = 1/( (r/rs)**a * (1+r/rs)**(b-a) )</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.generic2c_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">generic2c_profile</tt><big>(</big><em>r</em>, <em>rs</em>, <em>a</em>, <em>b</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.generic2c_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>generic2c profile
rho = 1/( (r/rs)**a * (1+r/rs)**(b-a) )</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.hernquist_mR">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">hernquist_mR</tt><big>(</big><em>R</em>, <em>rs</em>, <em>rho0=1</em><big>)</big><a class="headerlink" href="#pNbody.profiles.hernquist_mR" title="Permalink to this definition">¶</a></dt>
<dd><p>Mass in the projected radius R for the distribution
rho = 1/( (r/rs) * (1+r/rs)**3 )</p>
<p>(Hernquist 90, Eq. 37)</p>
<p>Warning : the function diverges in r=0 and r/rs=1.
Warning : it is badly implemented for arrays</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.hernquist_mr">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">hernquist_mr</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.hernquist_mr" title="Permalink to this definition">¶</a></dt>
<dd><p>Mass in the radius r for the distribution
rho = 1/( (r/rs) * (1+r/rs)**3 )</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.hernquist_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">hernquist_profile</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.hernquist_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>hernquist profile
rho = 1/( (r/rs) * (1+r/rs)**3 )</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.jaffe_mr">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">jaffe_mr</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.jaffe_mr" title="Permalink to this definition">¶</a></dt>
<dd><p>Mass in the radius r for the distribution
rho = 1/( (r/rs)**2 * (1+r/rs)**2 )</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.jaffe_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">jaffe_profile</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.jaffe_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>jaffe profile
rho = 1/( (r/rs)**2 * (1+r/rs)**2 )</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.king_Rc">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">king_Rc</tt><big>(</big><em>rs</em>, <em>rt</em><big>)</big><a class="headerlink" href="#pNbody.profiles.king_Rc" title="Permalink to this definition">¶</a></dt>
<dd><p>Core radius
Find R such that</p>
<p>Sigma(Rc) = Sigma(0)/2.</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.king_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">king_profile</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rt</em><big>)</big><a class="headerlink" href="#pNbody.profiles.king_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>King profile
(see King 62)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.king_profile_Rz">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">king_profile_Rz</tt><big>(</big><em>R</em>, <em>z</em>, <em>rs</em>, <em>rt</em><big>)</big><a class="headerlink" href="#pNbody.profiles.king_profile_Rz" title="Permalink to this definition">¶</a></dt>
<dd><p>King profile in cyclindrical coord (needed for surface density computation)
(see King 62)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.king_surface_density">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">king_surface_density</tt><big>(</big><em>R</em>, <em>rs</em>, <em>rt</em><big>)</big><a class="headerlink" href="#pNbody.profiles.king_surface_density" title="Permalink to this definition">¶</a></dt>
<dd><p>Surface density of King profile
(see King 62)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.king_surface_density_old">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">king_surface_density_old</tt><big>(</big><em>R</em>, <em>rs</em>, <em>rt</em><big>)</big><a class="headerlink" href="#pNbody.profiles.king_surface_density_old" title="Permalink to this definition">¶</a></dt>
<dd><p>Obsolete implementation</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.nfw_mr">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">nfw_mr</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.nfw_mr" title="Permalink to this definition">¶</a></dt>
<dd><p>Mass in the radius r for the distribution
rho = rho0/((r/rs)*(1+r/rs)**2)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.nfw_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">nfw_profile</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.nfw_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>NFW profile
rho = rho0/((r/rs)*(1+r/rs)**2)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.nfwg_mr">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">nfwg_mr</tt><big>(</big><em>r</em>, <em>rs</em>, <em>gamma</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.nfwg_mr" title="Permalink to this definition">¶</a></dt>
<dd><p>Mass in the radius r for the distribution
rho = rho0/((r/rs)**(gamma)*(1+(r/rs)**2)**(0.5*(3.-gamma)))</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.nfwg_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">nfwg_profile</tt><big>(</big><em>r</em>, <em>rs</em>, <em>gamma</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.nfwg_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>NFW modified profile
rho = rho0/((r/rs)**(gamma)*(1+(r/rs)**2)**(0.5*(3.-gamma)))</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.nfws_mr">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">nfws_mr</tt><big>(</big><em>r</em>, <em>rhos</em>, <em>rs</em>, <em>r0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.nfws_mr" title="Permalink to this definition">¶</a></dt>
<dd><p>Mass in the radius r for the distribution
rho = rhos/((r/rs)*(1+r/rs)**2)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.nfws_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">nfws_profile</tt><big>(</big><em>r</em>, <em>rhos</em>, <em>rs</em>, <em>r0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.nfws_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>NFW softened profile
rho = rhos/(((r+r0)/rs)*(1+r/rs)**2)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.pisothm_mr">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">pisothm_mr</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.pisothm_mr" title="Permalink to this definition">¶</a></dt>
<dd><p>Mass in the radius r for the distribution
rho = 1/(1+(r/rs)**2)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.pisothm_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">pisothm_profile</tt><big>(</big><em>r</em>, <em>rs</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.pisothm_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>Pseudo-isothermal profile
rho = 1/(1+(r/rs)**2)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.plummer_mr">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">plummer_mr</tt><big>(</big><em>r</em>, <em>rc</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.plummer_mr" title="Permalink to this definition">¶</a></dt>
<dd><p>Mass in the radius r for the distribution
rho = 1/(1+(r/rc)**2)**(5/2)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.profiles.plummer_profile">
<tt class="descclassname">pNbody.profiles.</tt><tt class="descname">plummer_profile</tt><big>(</big><em>r</em>, <em>rc</em>, <em>rho0=1.0</em><big>)</big><a class="headerlink" href="#pNbody.profiles.plummer_profile" title="Permalink to this definition">¶</a></dt>
<dd><p>Plummer profile
rho = 1/(1+(r/rc)**2)**(5/2)</p>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../index.html">
<img class="logo" src="../_static/icon-small.jpg" alt="Logo"/>
</a></p>
<h4>Previous topic</h4>
<p class="topless"><a href="MovieModule.html"
title="previous chapter">the Movie module</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="GeometryModule.html"
title="next chapter">the geometry module</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/rst/ProfilesModule.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" size="18" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="../np-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="GeometryModule.html" title="the geometry module"
>next</a> |</li>
<li class="right" >
<a href="MovieModule.html" title="the Movie module"
>previous</a> |</li>
<li><a href="../index.html">pNbody v4 documentation</a> &raquo;</li>
<li><a href="Reference.html" >Reference</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2011, Yves Revaz.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
</div>
</body>
</html>

Event Timeline