<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
conjunction with the <a class="reference internal" href="prd.html"><span class="doc">prd</span></a> and <a class="reference internal" href="tad.html"><span class="doc">tad</span></a> commands,
to detect if a transition
to a new minimum energy basin has occurred.</p>
<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.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">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.”</p>
</div>
<p><strong>Output info:</strong></p>
<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
input. See <a class="reference internal" href="Section_howto.html#howto-15"><span class="std std-ref">Section_howto 15</span></a> for an
overview of LAMMPS output options.</p>
<p>The scalar value calculated by this compute is “intensive”. The
scalar value will be a 0 or 1 as explained above.</p>
</div>
<div class="section" id="restrictions">
<h2>Restrictions</h2>
<p>This command can only be used if LAMMPS was built with the REPLICA
package. See the <a class="reference internal" href="Section_start.html#start-3"><span class="std std-ref">Making LAMMPS</span></a> section
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.