2008-03-18 08:24:08 +08:00
|
|
|
<HTML>
|
|
|
|
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
|
|
|
|
</CENTER>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
|
2008-03-19 05:02:30 +08:00
|
|
|
<H3>compute erotate/sphere command
|
2008-03-18 08:24:08 +08:00
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
2008-03-19 05:02:30 +08:00
|
|
|
<PRE>compute ID group-ID erotate/sphere
|
2008-03-18 08:24:08 +08:00
|
|
|
</PRE>
|
|
|
|
<UL><LI>ID, group-ID are documented in <A HREF = "compute.html">compute</A> command
|
2008-03-19 05:02:30 +08:00
|
|
|
<LI>erotate/sphere = style name of this compute command
|
2008-03-18 08:24:08 +08:00
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
2008-03-19 05:02:30 +08:00
|
|
|
<PRE>compute 1 all erotate/sphere
|
2008-03-18 08:24:08 +08:00
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
2008-03-19 05:02:30 +08:00
|
|
|
<P>Define a computation that calculates the rotational kinetic energy of
|
|
|
|
a group of spherical particles.
|
2008-03-18 08:24:08 +08:00
|
|
|
</P>
|
2008-03-19 05:02:30 +08:00
|
|
|
<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>
|
|
|
|
<P>IMPORTANT NOTE: For <A HREF = "dimension.html">2d models</A>, particles are treated
|
|
|
|
as spheres, not disks, meaning their moment of inertia will be the
|
|
|
|
same as in 3d.
|
2008-03-18 08:24:08 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Output info:</B>
|
|
|
|
</P>
|
|
|
|
<P>The scalar value calculated by this compute is "extensive", meaning it
|
|
|
|
it scales with the number of atoms in the simulation.
|
|
|
|
</P>
|
2008-03-19 05:02:30 +08:00
|
|
|
<P><B>Restrictions:</B>
|
|
|
|
</P>
|
|
|
|
<P>This compute requires that particles be represented as extended
|
|
|
|
spheres and not point particles. This means they will have an angular
|
|
|
|
velocity and a diameter which is determined either by the
|
|
|
|
<A HREF = "shape.html">shape</A> command or by each particle being assigned an
|
|
|
|
individual radius, e.g. for <A HREF = "atom_style.html">atom_style granular</A>.
|
2008-03-18 08:24:08 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B> none
|
|
|
|
</P>
|
|
|
|
<P><B>Default:</B> none
|
|
|
|
</P>
|
|
|
|
</HTML>
|