<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>
<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>