Page MenuHomec4science

LibgridModule.html
No OneTemporary

File Metadata

Created
Wed, Oct 2, 06:48

LibgridModule.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 libgrid 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 libdisk module" href="LibdiskModule.html" />
<link rel="prev" title="the plummer module" href="PlummerModule.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="LibdiskModule.html" title="the libdisk module"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="PlummerModule.html" title="the plummer 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.libgrid">
<span id="the-libgrid-module"></span><h1>the libgrid module<a class="headerlink" href="#module-pNbody.libgrid" title="Permalink to this headline"></a></h1>
<dl class="function">
<dt id="pNbody.libgrid.get_AccelerationMap_On_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_AccelerationMap_On_Cylindrical_2dv_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em>, <em>eps</em>, <em>Tree=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_AccelerationMap_On_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing accelerations</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_AccumulatedMassMap_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_AccumulatedMassMap_On_Spherical_1d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>rmax</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_AccumulatedMassMap_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing M(r) in each cell</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Accumulation_Along_Axis">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Accumulation_Along_Axis</tt><big>(</big><em>mat</em>, <em>axis=0</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Accumulation_Along_Axis" title="Permalink to this definition"></a></dt>
<dd><p>Accumulate values along an axis</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_DensityMap_On_Carthesian_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_DensityMap_On_Carthesian_3d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>nz</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_DensityMap_On_Carthesian_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing density in each cell</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_DensityMap_On_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_DensityMap_On_Cylindrical_2dv_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_DensityMap_On_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing density in each cell</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_DensityMap_On_Cylindrical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_DensityMap_On_Cylindrical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_DensityMap_On_Cylindrical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing density in each cell</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_DensityMap_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_DensityMap_On_Spherical_1d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>rmax</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_DensityMap_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing density in each cell</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_DensityMap_On_Spherical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_DensityMap_On_Spherical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>np</em>, <em>nt</em>, <em>rmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_DensityMap_On_Spherical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing density in each cell</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_First_Derivative">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_First_Derivative</tt><big>(</big><em>f</em>, <em>x</em>, <em>s=None</em>, <em>k=2</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_First_Derivative" title="Permalink to this definition"></a></dt>
<dd><p>First derivative of f(x)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_GenericMap_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_GenericMap_On_Spherical_1d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>rmax</em>, <em>val</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_GenericMap_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass*val</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Integral">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Integral</tt><big>(</big><em>v</em>, <em>dr</em>, <em>ia</em>, <em>ib</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Integral" title="Permalink to this definition"></a></dt>
<dd><p>Integrate the vector v, between ia and ib.</p>
<p>v : values of cells (must be 1 dimensional)
dr : corresponding physical size of cells
ia : lower real indice
ib : higher real indice</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Interpolation_On_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Interpolation_On_Cylindrical_2dv_Grid</tt><big>(</big><em>pos</em>, <em>mat</em>, <em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em>, <em>offr=0</em>, <em>offz=0</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Interpolation_On_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Interpolates continuous value of pos, using matrix mat</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Interpolation_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Interpolation_On_Spherical_1d_Grid</tt><big>(</big><em>pos</em>, <em>mat</em>, <em>nr</em>, <em>rmax</em>, <em>offr=0</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Interpolation_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Interpolates continuous value of pos, using matrix mat</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_LinearDensityMap_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_LinearDensityMap_On_Spherical_1d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>rmax</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_LinearDensityMap_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing the linear density in each cell</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_MassMap_On_Carthesian_2d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_MassMap_On_Carthesian_2d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_MassMap_On_Carthesian_2d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_MassMap_On_Carthesian_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_MassMap_On_Carthesian_3d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>nz</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_MassMap_On_Carthesian_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_MassMap_On_Cylindrical_2dh_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_MassMap_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>rmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_MassMap_On_Cylindrical_2dh_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_MassMap_On_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_MassMap_On_Cylindrical_2dv_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_MassMap_On_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_MassMap_On_Cylindrical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_MassMap_On_Cylindrical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_MassMap_On_Cylindrical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_MassMap_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_MassMap_On_Spherical_1d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>rmax</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_MassMap_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_MassMap_On_Spherical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_MassMap_On_Spherical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>np</em>, <em>nt</em>, <em>rmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_MassMap_On_Spherical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_NumberMap_On_Carthesian_2d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_NumberMap_On_Carthesian_2d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_NumberMap_On_Carthesian_2d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_NumberMap_On_Carthesian_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_NumberMap_On_Carthesian_3d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>nz</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_NumberMap_On_Carthesian_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_NumberMap_On_Cylindrical_2dh_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_NumberMap_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>rmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_NumberMap_On_Cylindrical_2dh_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_NumberMap_On_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_NumberMap_On_Cylindrical_2dv_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_NumberMap_On_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_NumberMap_On_Cylindrical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_NumberMap_On_Cylindrical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_NumberMap_On_Cylindrical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_NumberMap_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_NumberMap_On_Spherical_1d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>rmax</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_NumberMap_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing number of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_NumberMap_On_Spherical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_NumberMap_On_Spherical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>np</em>, <em>nt</em>, <em>rmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_NumberMap_On_Spherical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing mass of particles</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Points_On_Carthesian_2d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Points_On_Carthesian_2d_Grid</tt><big>(</big><em>nx</em>, <em>ny</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em>, <em>offx=0</em>, <em>offy=0</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Points_On_Carthesian_2d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points corresponding to the center of cells
af a 2d carthesian grid.</p>
<p>To get a nt X nr array from the returned vector (pos), do</p>
<p>x = copy(pos[:,0])
y = copy(pos[:,1])
z = copy(pos[:,2])</p>
<p>x.shape = (nx,ny)
y.shape = (nx,ny)
z.shape = (nx,ny)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Points_On_Carthesian_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Points_On_Carthesian_3d_Grid</tt><big>(</big><em>nx</em>, <em>ny</em>, <em>nz</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em>, <em>zmin</em>, <em>zmax</em>, <em>offx=0</em>, <em>offy=0</em>, <em>offz=0</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Points_On_Carthesian_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points corresponding to the center of cells
af a 3d carthesian grid.</p>
<p>To get a nt X nr array from the returned vector (pos), do</p>
<p>x = copy(pos[:,0])
y = copy(pos[:,1])
z = copy(pos[:,2])</p>
<p>x.shape = (nx,ny,nz)
y.shape = (nx,ny,nz)
z.shape = (nx,ny,nz)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Points_On_Cylindrical_2dh_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Points_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nr</em>, <em>nt</em>, <em>rmax</em>, <em>offr=0</em>, <em>offt=0</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Points_On_Cylindrical_2dh_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points corresponding to the nodes of
a 2d cylindrical grid</p>
<p>To get a nt X nr array from the returned vector (pos), do</p>
<p>x = copy(pos[:,0])
y = copy(pos[:,1])
z = copy(pos[:,2])</p>
<p>x.shape = (nr,nt)
y.shape = (nr,nt)
z.shape = (nr,nt)</p>
<p># to get r and theta
r = sqrt(x**2+y**2+z**2)
t = arctan2(y,x)*180/pi</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Points_On_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Points_On_Cylindrical_2dv_Grid</tt><big>(</big><em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em>, <em>offr=0</em>, <em>offz=0</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Points_On_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points corresponding to the nodes of
a 2d cylindrical grid</p>
<p>To get a nt X nr array from the returned vector (pos), do</p>
<p>x = copy(pos[:,0])
y = copy(pos[:,1])
z = copy(pos[:,2])</p>
<p>x.shape = (nr,nt)
y.shape = (nr,nt)
z.shape = (nr,nt)</p>
<p># to get r and theta
r = sqrt(x**2+y**2+z**2)
t = arctan2(y,x)*180/pi</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Points_On_Cylindrical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Points_On_Cylindrical_3d_Grid</tt><big>(</big><em>nr</em>, <em>nt</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em>, <em>offr=0</em>, <em>offt=0</em>, <em>offz=0</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Points_On_Cylindrical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points corresponding to the nodes of
a 2d cylindrical grid</p>
<p>To get a nt X nr array from the returned vector (pos), do</p>
<p>x = pos[:,0]
y = pos[:,0]
z = pos[:,0]</p>
<p>x.shape = (nr,nt,nz)
y.shape = (nr,nt,nz)
z.shape = (nr,nt,nz)</p>
<p># to get r and theta
r = sqrt(x**2+y**2+z**2)
t = arctan2(y,x)*180/pi</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Points_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Points_On_Spherical_1d_Grid</tt><big>(</big><em>nr</em>, <em>rmax</em>, <em>offr=0</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Points_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points corresponding to the nodes of
a 1d spherical grid</p>
<p>To get a nt X nr array from the returned vector (pos), do</p>
<p>x = pos[:,0]
y = pos[:,0]
z = pos[:,0]</p>
<p>x.shape = (nr,np,nt)
y.shape = (nr,np,nt)
z.shape = (nr,np,nt)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Points_On_Spherical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Points_On_Spherical_3d_Grid</tt><big>(</big><em>nr</em>, <em>np</em>, <em>nt</em>, <em>rmax</em>, <em>offr=0</em>, <em>offp=0</em>, <em>offt=0</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Points_On_Spherical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points corresponding to the nodes of
a 3d spherical grid</p>
<p>To get a nt X nr array from the returned vector (pos), do</p>
<p>x = pos[:,0]
y = pos[:,0]
z = pos[:,0]</p>
<p>x.shape = (nr,np,nt)
y.shape = (nr,np,nt)
z.shape = (nr,np,nt)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_PotentialMap_On_Carthesian_2d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_PotentialMap_On_Carthesian_2d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em>, <em>eps</em>, <em>Tree=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_PotentialMap_On_Carthesian_2d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing potential</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_PotentialMap_On_Carthesian_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_PotentialMap_On_Carthesian_3d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>nz</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em>, <em>zmin</em>, <em>zmax</em>, <em>eps</em>, <em>Tree=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_PotentialMap_On_Carthesian_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing potential</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_PotentialMap_On_Cylindrical_2dh_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_PotentialMap_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>rmax</em>, <em>eps</em>, <em>Tree=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_PotentialMap_On_Cylindrical_2dh_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing potential</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_PotentialMap_On_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_PotentialMap_On_Cylindrical_2dv_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em>, <em>eps</em>, <em>Tree=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_PotentialMap_On_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing potential</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_PotentialMap_On_Cylindrical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_PotentialMap_On_Cylindrical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em>, <em>eps</em>, <em>Tree=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_PotentialMap_On_Cylindrical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing potential</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_PotentialMap_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_PotentialMap_On_Spherical_1d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>rmax</em>, <em>eps</em>, <em>Tree=None</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_PotentialMap_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing potential</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_PotentialMap_On_Spherical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_PotentialMap_On_Spherical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>np</em>, <em>nt</em>, <em>rmax</em>, <em>eps</em>, <em>Tree=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_PotentialMap_On_Spherical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing potential</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_SurfaceDensityMap_From_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_SurfaceDensityMap_From_Cylindrical_2dv_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_SurfaceDensityMap_From_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing the surface density along r</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_SurfaceDensityMap_On_Carthesian_2d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_SurfaceDensityMap_On_Carthesian_2d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_SurfaceDensityMap_On_Carthesian_2d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing density in each cell</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_SurfaceDensityMap_On_Cylindrical_2dh_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_SurfaceDensityMap_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>rmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_SurfaceDensityMap_On_Cylindrical_2dh_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing density in each cell</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_SurfaceMap_On_Carthesian_2d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_SurfaceMap_On_Carthesian_2d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_SurfaceMap_On_Carthesian_2d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing corresponding physical
volumes of each cell (usefull to compute density)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_SurfaceMap_On_Cylindrical_2dh_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_SurfaceMap_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>rmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_SurfaceMap_On_Cylindrical_2dh_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing corresponding physical
volumes of each cell (usefull to compute density)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_SurfaceMap_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_SurfaceMap_On_Spherical_1d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>rmax</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_SurfaceMap_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing surface (volume)
of each cell.</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Symetrisation_Along_Axis">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Symetrisation_Along_Axis</tt><big>(</big><em>mat</em>, <em>axis=1</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Symetrisation_Along_Axis" title="Permalink to this definition"></a></dt>
<dd><p>Return an array where the two half are symetrized</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_Symetrisation_Along_Axis_Old">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_Symetrisation_Along_Axis_Old</tt><big>(</big><em>mat</em>, <em>axis=1</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_Symetrisation_Along_Axis_Old" title="Permalink to this definition"></a></dt>
<dd><p>Return an array where the two half are symetrized
Old but more correct than new one</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_VolumeMap_On_Carthesian_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_VolumeMap_On_Carthesian_3d_Grid</tt><big>(</big><em>nb</em>, <em>nx</em>, <em>ny</em>, <em>nz</em>, <em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_VolumeMap_On_Carthesian_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing corresponding physical
volumes of each cell (usefull to compute density)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_VolumeMap_On_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_VolumeMap_On_Cylindrical_2dv_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_VolumeMap_On_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing corresponding physical
volumes of each cell (usefull to compute density)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_VolumeMap_On_Cylindrical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_VolumeMap_On_Cylindrical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_VolumeMap_On_Cylindrical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing corresponding physical
volumes of each cell (usefull to compute density)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_VolumeMap_On_Spherical_1d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_VolumeMap_On_Spherical_1d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>rmax</em>, <em>f=None</em>, <em>fm=None</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_VolumeMap_On_Spherical_1d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing corresponding physical
volumes of each cell (usefull to compute density)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_VolumeMap_On_Spherical_3d_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_VolumeMap_On_Spherical_3d_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>np</em>, <em>nt</em>, <em>rmax</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_VolumeMap_On_Spherical_3d_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Return an array of points containing corresponding physical
volumes of each cell (usefull to compute density)</p>
</dd></dl>
<dl class="function">
<dt id="pNbody.libgrid.get_r_Interpolation_On_Cylindrical_2dv_Grid">
<tt class="descclassname">pNbody.libgrid.</tt><tt class="descname">get_r_Interpolation_On_Cylindrical_2dv_Grid</tt><big>(</big><em>pos</em>, <em>mat</em>, <em>nr</em>, <em>nz</em>, <em>rmax</em>, <em>zmin</em>, <em>zmax</em>, <em>offr=0</em><big>)</big><a class="headerlink" href="#pNbody.libgrid.get_r_Interpolation_On_Cylindrical_2dv_Grid" title="Permalink to this definition"></a></dt>
<dd><p>Interpolates continuous value of pos, using matrix mat
only along first axis.</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="PlummerModule.html"
title="previous chapter">the plummer module</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="LibdiskModule.html"
title="next chapter">the libdisk module</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/rst/LibgridModule.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="LibdiskModule.html" title="the libdisk module"
>next</a> |</li>
<li class="right" >
<a href="PlummerModule.html" title="the plummer 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