<spanid="the-units-module"></span><h1>the units module<aclass="headerlink"href="#module-pNbody.units"title="Permalink to this headline">¶</a></h1>
<dlclass="class">
<dtid="pNbody.units.PhysCte">
<emclass="property">class </em><ttclass="descclassname">pNbody.units.</tt><ttclass="descname">PhysCte</tt><big>(</big><em>value</em>, <em>Unit</em><big>)</big><aclass="headerlink"href="#pNbody.units.PhysCte"title="Permalink to this definition">¶</a></dt>
<dd><p>Physical constant</p>
<pclass="rubric">Methods</p>
</dd></dl>
<dlclass="function">
<dtid="pNbody.units.Set_SystemUnits_From_Params">
<ttclass="descclassname">pNbody.units.</tt><ttclass="descname">Set_SystemUnits_From_Params</tt><big>(</big><em>params</em><big>)</big><aclass="headerlink"href="#pNbody.units.Set_SystemUnits_From_Params"title="Permalink to this definition">¶</a></dt>
<dd><p>return a system of units from given parameters</p>
<p>params is a dictionary that must constains at least</p>
<p>params[‘UnitVelocity_in_cm_per_s’]
params[‘UnitMass_in_g’]
params[‘UnitLength_in_cm’]</p>
</dd></dl>
<dlclass="class">
<dtid="pNbody.units.UnitSystem">
<emclass="property">class </em><ttclass="descclassname">pNbody.units.</tt><ttclass="descname">UnitSystem</tt><big>(</big><em>UnitSysName</em>, <em>UnitLst</em><big>)</big><aclass="headerlink"href="#pNbody.units.UnitSystem"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">convertionFactorTo</tt><big>(</big><em>newUnits</em><big>)</big><aclass="headerlink"href="#pNbody.units.UnitSystem.convertionFactorTo"title="Permalink to this definition">¶</a></dt>
<dd><p>return the conversion factor to obtain the new units</p>
</dd></dl>
<dlclass="method">
<dtid="pNbody.units.UnitSystem.info">
<ttclass="descname">info</tt><big>(</big><big>)</big><aclass="headerlink"href="#pNbody.units.UnitSystem.info"title="Permalink to this definition">¶</a></dt>
<dd><p>print some info</p>
</dd></dl>
<dlclass="method">
<dtid="pNbody.units.UnitSystem.into">
<ttclass="descname">into</tt><big>(</big><em>newUnits</em><big>)</big><aclass="headerlink"href="#pNbody.units.UnitSystem.into"title="Permalink to this definition">¶</a></dt>
<dd><p>return into the new units</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="pNbody.units.Units">
<emclass="property">class </em><ttclass="descclassname">pNbody.units.</tt><ttclass="descname">Units</tt><big>(</big><em>symbol</em>, <em>factor=1.0</em>, <em>power=1</em>, <em>ulist=</em><spanclass="optional">[</span><spanclass="optional">]</span><big>)</big><aclass="headerlink"href="#pNbody.units.Units"title="Permalink to this definition">¶</a></dt>
<dd><p>Units</p>
<pclass="rubric">Methods</p>
<dlclass="method">
<dtid="pNbody.units.Units.GatherBaseUnits">
<ttclass="descname">GatherBaseUnits</tt><big>(</big><big>)</big><aclass="headerlink"href="#pNbody.units.Units.GatherBaseUnits"title="Permalink to this definition">¶</a></dt>
<dd><p>create the self.bases list (recursively)</p>
</dd></dl>
</dd></dl>
<dlclass="data">
<dtid="pNbody.units.gal">
<ttclass="descclassname">pNbody.units.</tt><ttclass="descname">gal</tt><aclass="headerlink"href="#pNbody.units.gal"title="Permalink to this definition">¶</a></dt>