<p>This fix interfaces LAMMPS to a “collective variables” or “colvars”
module library which allows to calculate potentials of mean force
(PMFs) for any set of colvars, using different sampling methods:
currently implemented are the Adaptive Biasing Force (ABF) method,
metadynamics, Steered Molecular Dynamics (SMD) and Umbrella Sampling
(US) via a flexible harmonic restraint bias. The colvars library is
hosted at <aclass="reference external"href="http://colvars.github.io/">http://colvars.github.io/</a></p>
<p>This documentation describes only the fix colvars command itself and
LAMMPS specific parts of the code. The full documentation of the
colvars library is available as <aclass="reference external"href="PDF/colvars-refman-lammps.pdf">this supplementary PDF document</a></p>
<p>A detailed discussion of the implementation of the portable collective
variable library is in <aclass="reference internal"href="#fiorin"><spanclass="std std-ref">(Fiorin)</span></a>. Additional information can
be found in <aclass="reference internal"href="#henin"><spanclass="std std-ref">(Henin)</span></a>.</p>
<p>There are some example scripts for using this package with LAMMPS in the
examples/USER/colvars directory.</p>
<hrclass="docutils"/>
<p>The only mandatory argument to the fix is the filename to the colvars
input file that contains the input that is independent from the MD
program in which the colvars library has been integrated.</p>
<p>The <em>group-ID</em> entry is ignored. The collective variable module will
always apply to the entire system and there can only be one instance
of the colvars fix at a time. The colvars fix will only communicate
the minimum information necessary and the colvars library supports
multiple, completely independent collective variables, so there is
no restriction to functionaliry by limiting the number of colvars fixes.</p>
<p>The <em>input</em> keyword allows to specify a state file that would contain
the restart information required in order to continue a calculation from
a prerecorded state. Fix colvars records it state in <aclass="reference internal"href="restart.html"><spanclass="doc">binary restart</span></a>
files, so when using the <aclass="reference internal"href="read_restart.html"><spanclass="doc">read_restart</span></a> command,
this is usually not needed.</p>
<p>The <em>output</em> keyword allows to specify the output prefix. All output
files generated will use this prefix followed by the ”.colvars.” and
a word like “state” or “traj”.</p>
<p>The <em>seed</em> keyword contains the seed for the random number generator
that will be used in the colvars module.</p>
<p>The <em>unwrap</em> keyword controls whether wrapped or unwrapped coordinates
are passed to the colvars library for calculation of the collective
variables and the resulting forces. The default is <em>yes</em>, i.e. to use
the image flags to reconstruct the absolute atom positions.
Setting this to <em>no</em> will use the current local coordinates that are
wrapped back into the simulation cell at each re-neighboring instead.</p>
<p>The <em>tstat</em> keyword can be either NULL or the label of a thermostating
fix that thermostats all atoms in the fix colvars group. This will be
used to provide the colvars module with the current thermostat target
temperature.</p>
<p><strong>Restart, fix_modify, output, run start/stop, minimize info:</strong></p>
<p>This fix writes the current status of the colvars module into
<aclass="reference internal"href="restart.html"><spanclass="doc">binary restart files</span></a>. This is in addition to the text
mode status file that is written by the colvars module itself and the
kind of information in both files is identical.</p>
<p>The <aclass="reference internal"href="fix_modify.html"><spanclass="doc">fix_modify</span></a><em>energy</em> option is supported by this
fix to add the energy change from the biasing force added by the fix
to the system’s potential energy as part of <aclass="reference internal"href="thermo_style.html"><spanclass="doc">thermodynamic output</span></a>.</p>
<p>This fix computes a global scalar which can be accessed by various
<aclass="reference internal"href="Section_howto.html#howto-15"><spanclass="std std-ref">output commands</span></a>. The scalar is the
cummulative energy change due to this fix. The scalar value
calculated by this fix is “extensive”.</p>
</div>
<divclass="section"id="restrictions">
<h2>Restrictions</h2>
<p>This fix is part of the USER-COLVARS package. It is only enabled if
LAMMPS was built with that package. See the <aclass="reference internal"href="Section_start.html#start-3"><spanclass="std std-ref">Making LAMMPS</span></a> section for more info.</p>
<p>There can only be one colvars fix active at a time. Since the interface
communicates only the minimum amount of information and colvars module
itself can handle an arbitrary number of collective variables, this is
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>.