Page MenuHomec4science

C_PyGadget.html
No OneTemporary

File Metadata

Created
Wed, Apr 30, 23:40

C_PyGadget.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 C PyGadget 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 C pygsl module" href="C_pygsl.html" />
<link rel="prev" title="the C ptreelib module (obsolete)" href="C_ptreelib.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="C_pygsl.html" title="the C pygsl module"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="C_ptreelib.html" title="the C ptreelib module (obsolete)"
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="the-c-pygadget-module">
<h1>the C PyGadget module<a class="headerlink" href="#the-c-pygadget-module" title="Permalink to this headline">¶</a></h1>
<p>This mpdule is currently not completely integrated to <strong>pNbody</strong>.
It is part of the <strong>pNbody</strong> package but must be compiled
separately.
For mpi, use:</p>
<div class="highlight-python"><pre>export CC=mpirun</pre>
</div>
<span class="target" id="module-PyGadget.gadget"></span><dl class="function">
<dt id="PyGadget.gadget.Acceleration">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">Acceleration</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.Acceleration" title="Permalink to this definition">¶</a></dt>
<dd><p>get the acceleration for a givent sample of points</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.AllAcceleration">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">AllAcceleration</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.AllAcceleration" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the gravitational acceleration for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.AllPotential">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">AllPotential</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.AllPotential" title="Permalink to this definition">¶</a></dt>
<dd><p>Computes the potential for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.Density">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">Density</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.Density" title="Permalink to this definition">¶</a></dt>
<dd><p>compute Density based on the three for a given number of points</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllAcceleration">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllAcceleration</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllAcceleration" title="Permalink to this definition">¶</a></dt>
<dd><p>get the gravitational acceleration for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllDensities">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllDensities</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllDensities" title="Permalink to this definition">¶</a></dt>
<dd><p>get the densities for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllHsml">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllHsml</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllHsml" title="Permalink to this definition">¶</a></dt>
<dd><p>get the sph smoothing length for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllID">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllID</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllID" title="Permalink to this definition">¶</a></dt>
<dd><p>get the ID for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllIDQ">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllIDQ</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllIDQ" title="Permalink to this definition">¶</a></dt>
<dd><p>get the ID for each particle Q</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllMasses">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllMasses</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllMasses" title="Permalink to this definition">¶</a></dt>
<dd><p>get the mass for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllMassesQ">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllMassesQ</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllMassesQ" title="Permalink to this definition">¶</a></dt>
<dd><p>get the mass for each particle Q</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllPositions">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllPositions</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllPositions" title="Permalink to this definition">¶</a></dt>
<dd><p>get the position for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllPositionsQ">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllPositionsQ</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllPositionsQ" title="Permalink to this definition">¶</a></dt>
<dd><p>get the position for each particle Q</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllPotential">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllPotential</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllPotential" title="Permalink to this definition">¶</a></dt>
<dd><p>get the potential for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllTypes">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllTypes</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllTypes" title="Permalink to this definition">¶</a></dt>
<dd><p>get the type for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllTypesQ">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllTypesQ</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllTypesQ" title="Permalink to this definition">¶</a></dt>
<dd><p>get the type for each particle Q</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllVelocities">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllVelocities</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllVelocities" title="Permalink to this definition">¶</a></dt>
<dd><p>get the velocities for each particle</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetAllVelocitiesQ">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetAllVelocitiesQ</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetAllVelocitiesQ" title="Permalink to this definition">¶</a></dt>
<dd><p>get the velocities for each particle Q</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetParameters">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetParameters</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetParameters" title="Permalink to this definition">¶</a></dt>
<dd><p>get gadget parameters</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.GetPos">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">GetPos</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.GetPos" title="Permalink to this definition">¶</a></dt>
<dd><p>get the position for each particle (no memory overhead)</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.Info">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">Info</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.Info" title="Permalink to this definition">¶</a></dt>
<dd><p>give some info</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.InitDefaultParameters">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">InitDefaultParameters</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.InitDefaultParameters" title="Permalink to this definition">¶</a></dt>
<dd><p>Init default parameters</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.InitHsml">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">InitHsml</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.InitHsml" title="Permalink to this definition">¶</a></dt>
<dd><p>Init hsml based on the three for a given number of points</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.InitMPI">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">InitMPI</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.InitMPI" title="Permalink to this definition">¶</a></dt>
<dd><p>Init MPI</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.LoadParticles">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">LoadParticles</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.LoadParticles" title="Permalink to this definition">¶</a></dt>
<dd><p>LoadParticles partilces</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.LoadParticles2">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">LoadParticles2</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.LoadParticles2" title="Permalink to this definition">¶</a></dt>
<dd><p>LoadParticles partilces</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.LoadParticlesQ">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">LoadParticlesQ</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.LoadParticlesQ" title="Permalink to this definition">¶</a></dt>
<dd><p>LoadParticles partilces Q</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.Ngbs">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">Ngbs</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.Ngbs" title="Permalink to this definition">¶</a></dt>
<dd><p>return the position of the neighbors for a given point</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.Potential">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">Potential</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.Potential" title="Permalink to this definition">¶</a></dt>
<dd><p>get the potential for a givent sample of points</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.SetParameters">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">SetParameters</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.SetParameters" title="Permalink to this definition">¶</a></dt>
<dd><p>Set gadget parameters</p>
</dd></dl>
<dl class="function">
<dt id="PyGadget.gadget.SphEvaluate">
<tt class="descclassname">PyGadget.gadget.</tt><tt class="descname">SphEvaluate</tt><big>(</big><big>)</big><a class="headerlink" href="#PyGadget.gadget.SphEvaluate" title="Permalink to this definition">¶</a></dt>
<dd><p>compute mean value based on the sph convolution for a given number of points</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="C_ptreelib.html"
title="previous chapter">the C ptreelib module (obsolete)</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="C_pygsl.html"
title="next chapter">the C pygsl module</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/rst/C_PyGadget.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="C_pygsl.html" title="the C pygsl module"
>next</a> |</li>
<li class="right" >
<a href="C_ptreelib.html" title="the C ptreelib module (obsolete)"
>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.7.
</div>
</body>
</html>

Event Timeline