2009-10-30 06:41:53 +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 event/displace command
|
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>compute ID group-ID event/displace threshold
|
|
|
|
</PRE>
|
|
|
|
<UL><LI>ID, group-ID are documented in <A HREF = "compute.html">compute</A> command
|
|
|
|
<LI>event/displace = style name of this compute command
|
2009-10-31 02:13:57 +08:00
|
|
|
<LI>threshold = minimum distance anyparticle must move to trigger an event (distance units)
|
2009-10-30 06:41:53 +08:00
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>compute 1 all event/displace 0.5
|
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
2009-10-31 02:13:57 +08:00
|
|
|
<P>Define a computation that flags an "event" if any particle in the
|
|
|
|
group has moved a distance greater than the specified threshold
|
|
|
|
distance when compared to a previously stored reference state
|
|
|
|
(i.e. the previous event). This compute is typically used in
|
2011-01-05 07:39:13 +08:00
|
|
|
conjunction with the <A HREF = "prd.html">prd</A> and <A HREF = "tad.html">tad</A> commands,
|
|
|
|
to detect if a transition
|
2009-10-31 02:13:57 +08:00
|
|
|
to a new minimum energy basin has occurred.
|
2009-10-30 06:41:53 +08:00
|
|
|
</P>
|
2009-10-31 02:13:57 +08:00
|
|
|
<P>This value calculated by the compute is equal to 0 if no particle has
|
|
|
|
moved far enough, and equal to 1 if one or more particles have moved
|
|
|
|
further than the threshold distance.
|
2009-10-30 06:41:53 +08:00
|
|
|
</P>
|
2011-01-05 07:39:13 +08:00
|
|
|
<P>NOTE: If the system is undergoing significant center-of-mass motion,
|
|
|
|
due to thermal motion, an external force, or an initial net momentum,
|
|
|
|
then this compute will not be able to distinguish that motion from
|
|
|
|
local atom displacements and may generate "false postives."
|
2011-07-15 03:37:37 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Output info:</B>
|
2009-10-30 06:41:53 +08:00
|
|
|
</P>
|
2009-12-04 07:58:11 +08:00
|
|
|
<P>This compute calculates a global scalar (the flag). This value can be
|
|
|
|
used by any command that uses a global scalar value from a compute as
|
2011-12-14 04:43:36 +08:00
|
|
|
input. See <A HREF = "Section_howto.html#howto_15">Section_howto 15</A> for an
|
|
|
|
overview of LAMMPS output options.
|
2009-12-04 07:58:11 +08:00
|
|
|
</P>
|
2010-03-03 05:51:16 +08:00
|
|
|
<P>The scalar value calculated by this compute is "intensive". The
|
|
|
|
scalar value will be a 0 or 1 as explained above.
|
2010-01-24 07:20:05 +08:00
|
|
|
</P>
|
2009-11-03 01:41:54 +08:00
|
|
|
<P><B>Restrictions:</B>
|
|
|
|
</P>
|
2011-08-27 02:53:00 +08:00
|
|
|
<P>This command can only be used if LAMMPS was built with the REPLICA
|
2011-08-26 00:46:23 +08:00
|
|
|
package. See the <A HREF = "Section_start.html#start_3">Making LAMMPS</A> section
|
|
|
|
for more info on packages.
|
2009-10-30 06:41:53 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B>
|
|
|
|
</P>
|
2011-01-05 07:39:13 +08:00
|
|
|
<P><A HREF = "prd.html">prd</A>, <A HREF = "tad.html">tad</A>
|
2009-10-30 06:41:53 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Default:</B> none
|
|
|
|
</P>
|
|
|
|
</HTML>
|