<p>In each case, the single, double, or triple quotes are removed when
the single argument they enclose is stored internally.</p>
<p>See the <aclass="reference internal"href="dump_modify.html"><em>dump modify format</em></a>, <aclass="reference internal"href="print.html"><em>print</em></a>,
<aclass="reference internal"href="if.html"><em>if</em></a>, and <aclass="reference internal"href="python.html"><em>python</em></a> commands for examples.</p>
<p>A “#” or “$” character that is between quotes will not be treated as a
comment indicator in (2) or substituted for as a variable in (3).</p>
<divclass="admonition note">
<pclass="first admonition-title">Note</p>
<pclass="last">If the argument is itself a command that requires a quoted
argument (e.g. using a <aclass="reference internal"href="print.html"><em>print</em></a> command as part of an
<aclass="reference internal"href="if.html"><em>if</em></a> or <aclass="reference internal"href="run.html"><em>run every</em></a> command), then single, double, or
triple quotes can be nested in the usual manner. See the doc pages
for those commands for examples. Only one of level of nesting is
allowed, but that should be sufficient for most use cases.</p>
</div>
<hrclass="docutils"/>
</div>
<divclass="section"id="input-script-structure">
<spanid="cmd-3"></span><h2>3.3. Input script structure<aclass="headerlink"href="#input-script-structure"title="Permalink to this headline">¶</a></h2>
<p>This section describes the structure of a typical LAMMPS input script.
The “examples” directory in the LAMMPS distribution contains many
sample input scripts; the corresponding problems are discussed in
<aclass="reference internal"href="Section_example.html"><em>Section_example</em></a>, and animated on the <aclass="reference external"href="http://lammps.sandia.gov">LAMMPS WWW Site</a>.</p>
<p>A LAMMPS input script typically has 4 parts:</p>
<olclass="arabic simple">
<li>Initialization</li>
<li>Atom definition</li>
<li>Settings</li>
<li>Run a simulation</li>
</ol>
<p>The last 2 parts can be repeated as many times as desired. I.e. run a
simulation, change some settings, run some more, etc. Each of the 4
parts is now described in more detail. Remember that almost all the
commands need only be used if a non-default value is desired.</p>
<olclass="arabic simple">
<li>Initialization</li>
</ol>
<p>Set parameters that need to be defined before atoms are created or
read-in from a file.</p>
<p>The relevant commands are <aclass="reference internal"href="units.html"><em>units</em></a>,
<p>Fixes impose a variety of boundary conditions, time integration, and
diagnostic options. The <aclass="reference internal"href="fix.html"><em>fix</em></a> command comes in many flavors.</p>
<p>Various computations can be specified for execution during a
simulation using the <aclass="reference internal"href="compute.html"><em>compute</em></a>,
<aclass="reference internal"href="compute_modify.html"><em>compute_modify</em></a>, and <aclass="reference internal"href="variable.html"><em>variable</em></a>
commands.</p>
<p>Output options are set by the <aclass="reference internal"href="thermo.html"><em>thermo</em></a>, <aclass="reference internal"href="dump.html"><em>dump</em></a>,
and <aclass="reference internal"href="restart.html"><em>restart</em></a> commands.</p>
<olclass="arabic simple"start="4">
<li>Run a simulation</li>
</ol>
<p>A molecular dynamics simulation is run using the <aclass="reference internal"href="run.html"><em>run</em></a>
command. Energy minimization (molecular statics) is performed using
the <aclass="reference internal"href="minimize.html"><em>minimize</em></a> command. A parallel tempering
(replica-exchange) simulation can be run using the
<spanid="cmd-4"></span><h2>3.4. Commands listed by category<aclass="headerlink"href="#commands-listed-by-category"title="Permalink to this headline">¶</a></h2>
<p>This section lists all LAMMPS commands, grouped by category. The
<aclass="reference internal"href="#cmd-5"><span>next section</span></a> lists the same commands alphabetically. Note
that some style options for some commands are part of specific LAMMPS
packages, which means they cannot be used unless the package was
included when LAMMPS was built. Not all packages are included in a
default LAMMPS build. These dependencies are listed as Restrictions
<spanid="comm"></span><spanid="cmd-5"></span><h2>3.5. Individual commands<aclass="headerlink"href="#individual-commands"title="Permalink to this headline">¶</a></h2>
<p>This section lists all LAMMPS commands alphabetically, with a separate
listing below of styles within certain commands. The <aclass="reference internal"href="#cmd-4"><span>previous section</span></a> lists the same commands, grouped by category. Note
that some style options for some commands are part of specific LAMMPS
packages, which means they cannot be used unless the package was
included when LAMMPS was built. Not all packages are included in a
default LAMMPS build. These dependencies are listed as Restrictions
<h2>3.7. Compute styles<aclass="headerlink"href="#compute-styles"title="Permalink to this headline">¶</a></h2>
<p>See the <aclass="reference internal"href="compute.html"><em>compute</em></a> command for one-line descriptions of
each style or click on the style itself for a full description. Some
of the styles have accelerated versions, which can be used if LAMMPS
is built with the <aclass="reference internal"href="Section_accelerate.html"><em>appropriate accelerated package</em></a>. This is indicated by additional
letters in parenthesis: c = USER-CUDA, g = GPU, i = USER-INTEL, k =
<h2>3.8. Pair_style potentials<aclass="headerlink"href="#pair-style-potentials"title="Permalink to this headline">¶</a></h2>
<p>See the <aclass="reference internal"href="pair_style.html"><em>pair_style</em></a> command for an overview of pair
potentials. Click on the style itself for a full description. Many
of the styles have accelerated versions, which can be used if LAMMPS
is built with the <aclass="reference internal"href="Section_accelerate.html"><em>appropriate accelerated package</em></a>. This is indicated by additional
letters in parenthesis: c = USER-CUDA, g = GPU, i = USER-INTEL, k =
<h2>3.9. Bond_style potentials<aclass="headerlink"href="#bond-style-potentials"title="Permalink to this headline">¶</a></h2>
<p>See the <aclass="reference internal"href="bond_style.html"><em>bond_style</em></a> command for an overview of bond
potentials. Click on the style itself for a full description. Some
of the styles have accelerated versions, which can be used if LAMMPS
is built with the <aclass="reference internal"href="Section_accelerate.html"><em>appropriate accelerated package</em></a>. This is indicated by additional
letters in parenthesis: c = USER-CUDA, g = GPU, i = USER-INTEL, k =
<h2>3.10. Angle_style potentials<aclass="headerlink"href="#angle-style-potentials"title="Permalink to this headline">¶</a></h2>
<p>See the <aclass="reference internal"href="angle_style.html"><em>angle_style</em></a> command for an overview of
angle potentials. Click on the style itself for a full description.
Some of the styles have accelerated versions, which can be used if
LAMMPS is built with the <aclass="reference internal"href="Section_accelerate.html"><em>appropriate accelerated package</em></a>. This is indicated by additional
letters in parenthesis: c = USER-CUDA, g = GPU, i = USER-INTEL, k =
<h2>3.11. Dihedral_style potentials<aclass="headerlink"href="#dihedral-style-potentials"title="Permalink to this headline">¶</a></h2>
<p>See the <aclass="reference internal"href="dihedral_style.html"><em>dihedral_style</em></a> command for an overview
of dihedral potentials. Click on the style itself for a full
description. Some of the styles have accelerated versions, which can
be used if LAMMPS is built with the <aclass="reference internal"href="Section_accelerate.html"><em>appropriate accelerated package</em></a>. This is indicated by additional
letters in parenthesis: c = USER-CUDA, g = GPU, i = USER-INTEL, k =
<h2>3.12. Improper_style potentials<aclass="headerlink"href="#improper-style-potentials"title="Permalink to this headline">¶</a></h2>
<p>See the <aclass="reference internal"href="improper_style.html"><em>improper_style</em></a> command for an overview
of improper potentials. Click on the style itself for a full
description. Some of the styles have accelerated versions, which can
be used if LAMMPS is built with the <aclass="reference internal"href="Section_accelerate.html"><em>appropriate accelerated package</em></a>. This is indicated by additional
letters in parenthesis: c = USER-CUDA, g = GPU, i = USER-INTEL, k =
<h2>3.13. Kspace solvers<aclass="headerlink"href="#kspace-solvers"title="Permalink to this headline">¶</a></h2>
<p>See the <aclass="reference internal"href="kspace_style.html"><em>kspace_style</em></a> command for an overview of
Kspace solvers. Click on the style itself for a full description.
Some of the styles have accelerated versions, which can be used if
LAMMPS is built with the <aclass="reference internal"href="Section_accelerate.html"><em>appropriate accelerated package</em></a>. This is indicated by additional
letters in parenthesis: c = USER-CUDA, g = GPU, i = USER-INTEL, k =
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>.