<spanid="index-0"></span><h1>compute erotate/sphere command<aclass="headerlink"href="#compute-erotate-sphere-command"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="syntax">
<h2>Syntax<aclass="headerlink"href="#syntax"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-python"><divclass="highlight"><pre>compute ID group-ID erotate/sphere
</pre></div>
</div>
<ulclass="simple">
<li>ID, group-ID are documented in <aclass="reference internal"href="compute.html"><em>compute</em></a> command</li>
<li>erotate/sphere = style name of this compute command</li>
</ul>
</div>
<divclass="section"id="examples">
<h2>Examples<aclass="headerlink"href="#examples"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-python"><divclass="highlight"><pre>compute 1 all erotate/sphere
</pre></div>
</div>
</div>
<divclass="section"id="description">
<h2>Description<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>Define a computation that calculates the rotational kinetic energy of
a group of spherical particles.</p>
<p>The rotational energy is computed as 1/2 I w^2, where I is the moment
of inertia for a sphere and w is the particle’s angular velocity.</p>
<divclass="admonition note">
<pclass="first admonition-title">Note</p>
<pclass="last">For <aclass="reference internal"href="dimension.html"><em>2d models</em></a>, particles are treated as
spheres, not disks, meaning their moment of inertia will be the same
as in 3d.</p>
</div>
<p><strong>Output info:</strong></p>
<p>This compute calculates a global scalar (the KE). This value can be
used by any command that uses a global scalar value from a compute as
input. See <aclass="reference internal"href="Section_howto.html#howto-15"><span>Section_howto 15</span></a> for an
overview of LAMMPS output options.</p>
<p>The scalar value calculated by this compute is “extensive”. The
scalar value will be in energy <aclass="reference internal"href="units.html"><em>units</em></a>.</p>
</div>
<divclass="section"id="restrictions">
<h2>Restrictions<aclass="headerlink"href="#restrictions"title="Permalink to this headline">¶</a></h2>
<p>This compute requires that atoms store a radius and angular velocity
(omega) as defined by the <aclass="reference internal"href="atom_style.html"><em>atom_style sphere</em></a> command.</p>
<p>All particles in the group must be finite-size spheres or point
particles. They cannot be aspherical. Point particles will not
contribute to the rotational energy.</p>
</div>
<divclass="section"id="related-commands">
<h2>Related commands<aclass="headerlink"href="#related-commands"title="Permalink to this headline">¶</a></h2>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.