<spanid="the-libgrid-module"></span><h1>the libgrid module<aclass="headerlink"href="#module-pNbody.libgrid"title="Permalink to this headline">¶</a></h1>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="descname">get_Accumulation_Along_Axis</tt><big>(</big><em>mat</em>, <em>axis=0</em><big>)</big><aclass="headerlink"href="#pNbody.libgrid.get_Accumulation_Along_Axis"title="Permalink to this definition">¶</a></dt>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<dlclass="function">
<dtid="pNbody.libgrid.get_First_Derivative">
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="descname">get_First_Derivative</tt><big>(</big><em>f</em>, <em>x</em>, <em>s=None</em>, <em>k=2</em><big>)</big><aclass="headerlink"href="#pNbody.libgrid.get_First_Derivative"title="Permalink to this definition">¶</a></dt>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<dlclass="function">
<dtid="pNbody.libgrid.get_Integral">
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="descname">get_Integral</tt><big>(</big><em>v</em>, <em>dr</em>, <em>ia</em>, <em>ib</em><big>)</big><aclass="headerlink"href="#pNbody.libgrid.get_Integral"title="Permalink to this definition">¶</a></dt>
<dd><p>Integrate the vector v, between ia and ib.</p>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="descname">get_MassMap_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>rmax</em><big>)</big><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="descname">get_NumberMap_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>rmax</em><big>)</big><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="descname">get_SurfaceDensityMap_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>rmax</em><big>)</big><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="descname">get_SurfaceMap_On_Cylindrical_2dh_Grid</tt><big>(</big><em>nb</em>, <em>nr</em>, <em>nt</em>, <em>rmax</em><big>)</big><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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)
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="descname">get_Symetrisation_Along_Axis</tt><big>(</big><em>mat</em>, <em>axis=1</em><big>)</big><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="descname">get_Symetrisation_Along_Axis_Old</tt><big>(</big><em>mat</em>, <em>axis=1</em><big>)</big><aclass="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
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>
<ttclass="descclassname">pNbody.libgrid.</tt><ttclass="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><aclass="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>