2007-02-10 05:40:32 +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>
|
|
|
|
|
|
|
|
<H3>compute ke/atom command
|
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>compute ID group-ID ke/atom
|
|
|
|
</PRE>
|
|
|
|
<UL><LI>ID, group-ID are documented in <A HREF = "compute.html">compute</A> command
|
|
|
|
<LI>ke/atom = style name of this compute command
|
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>compute 1 all ke/atom
|
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
2008-03-19 05:49:24 +08:00
|
|
|
<P>Define a computation that calculates the per-atom translational
|
|
|
|
kinetic energy for each atom in a group.
|
2007-11-20 23:37:16 +08:00
|
|
|
</P>
|
2007-02-10 05:40:32 +08:00
|
|
|
<P>The kinetic energy is simply 1/2 m v^2, where m is the mass and v is
|
|
|
|
the velocity of each atom.
|
|
|
|
</P>
|
2008-03-19 05:49:24 +08:00
|
|
|
<P>The value of the kinetic energy will be 0.0 for atoms not in the
|
|
|
|
specified compute group.
|
|
|
|
</P>
|
2008-01-04 08:56:10 +08:00
|
|
|
<P><B>Output info:</B>
|
|
|
|
</P>
|
|
|
|
<P>This compute calculates a scalar quantity for each atom, which can be
|
2009-12-04 07:58:11 +08:00
|
|
|
accessed by any command that uses per-atom values from a compute as
|
|
|
|
input. See <A HREF = "Section_howto.html#4_15">this section</A> for an overview of
|
|
|
|
LAMMPS output options.
|
2008-01-04 08:56:10 +08:00
|
|
|
</P>
|
2007-02-10 05:40:32 +08:00
|
|
|
<P><B>Restrictions:</B> none
|
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B>
|
|
|
|
</P>
|
|
|
|
<P><A HREF = "dump.html">dump custom</A>
|
|
|
|
</P>
|
|
|
|
<P><B>Default:</B> none
|
|
|
|
</P>
|
|
|
|
</HTML>
|