<spanid="index-0"></span><h1>pair_style lj/cut command<aclass="headerlink"href="#pair-style-lj-cut-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/cut/cuda command<aclass="headerlink"href="#pair-style-lj-cut-coul-cut-cuda-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/cut/gpu command<aclass="headerlink"href="#pair-style-lj-cut-coul-cut-gpu-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/cut/omp command<aclass="headerlink"href="#pair-style-lj-cut-coul-cut-omp-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/debye/cuda command<aclass="headerlink"href="#pair-style-lj-cut-coul-debye-cuda-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/debye/gpu command<aclass="headerlink"href="#pair-style-lj-cut-coul-debye-gpu-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/debye/kk command<aclass="headerlink"href="#pair-style-lj-cut-coul-debye-kk-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/debye/omp command<aclass="headerlink"href="#pair-style-lj-cut-coul-debye-omp-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/dsf/gpu command<aclass="headerlink"href="#pair-style-lj-cut-coul-dsf-gpu-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/dsf/kk command<aclass="headerlink"href="#pair-style-lj-cut-coul-dsf-kk-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/dsf/omp command<aclass="headerlink"href="#pair-style-lj-cut-coul-dsf-omp-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/long/cs command<aclass="headerlink"href="#pair-style-lj-cut-coul-long-cs-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/long/cuda command<aclass="headerlink"href="#pair-style-lj-cut-coul-long-cuda-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/long/gpu command<aclass="headerlink"href="#pair-style-lj-cut-coul-long-gpu-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/long/intel command<aclass="headerlink"href="#pair-style-lj-cut-coul-long-intel-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/long/opt command<aclass="headerlink"href="#pair-style-lj-cut-coul-long-opt-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/long/omp command<aclass="headerlink"href="#pair-style-lj-cut-coul-long-omp-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/msm/gpu command<aclass="headerlink"href="#pair-style-lj-cut-coul-msm-gpu-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/coul/msm/omp command<aclass="headerlink"href="#pair-style-lj-cut-coul-msm-omp-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/tip4p/cut/omp command<aclass="headerlink"href="#pair-style-lj-cut-tip4p-cut-omp-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/tip4p/long/omp command<aclass="headerlink"href="#pair-style-lj-cut-tip4p-long-omp-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style lj/cut/tip4p/long/opt command<aclass="headerlink"href="#pair-style-lj-cut-tip4p-long-opt-command"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="syntax">
<h2>Syntax<aclass="headerlink"href="#syntax"title="Permalink to this headline">¶</a></h2>
<li>style = <em>lj/cut</em> or <em>lj/cut/coul/cut</em> or <em>lj/cut/coul/debye</em> or <em>lj/cut/coul/dsf</em> or <em>lj/cut/coul/long</em> or <em>lj/cut/coul/long/cs</em> or <em>lj/cut/coul/msm</em> or <em>lj/cut/tip4p/long</em></li>
<li>args = list of arguments for a particular style</li>
</ul>
<preclass="literal-block">
<em>lj/cut</em> args = cutoff
cutoff = global cutoff for Lennard Jones interactions (distance units)
<em>lj/cut/coul/cut</em> args = cutoff (cutoff2)
cutoff = global cutoff for LJ (and Coulombic if only 1 arg) (distance units)
cutoff2 = global cutoff for Coulombic (optional) (distance units)
summation. The potential is based on Wolf summation, proposed as an
alternative to Ewald summation for condensed phase systems where
charge screening causes electrostatic interactions to become
effectively short-ranged. In order for the electrostatic sum to be
absolutely convergent, charge neutralization within the cutoff radius
is enforced by shifting the potential through placement of image
charges on the cutoff sphere. Convergence can often be improved by
setting <em>alpha</em> to a small non-zero value.</p>
<p>Styles <em>lj/cut/coul/long</em> and <em>lj/cut/coul/msm</em> compute the same
Coulombic interactions as style <em>lj/cut/coul/cut</em> except that an
additional damping factor is applied to the Coulombic term so it can
be used in conjunction with the <aclass="reference internal"href="kspace_style.html"><em>kspace_style</em></a>
command and its <em>ewald</em> or <em>pppm</em> option. The Coulombic cutoff
specified for this style means that pairwise interactions within this
distance are computed directly; interactions outside that distance are
computed in reciprocal space.</p>
<p>Style <em>lj/cut/coul/long/cs</em> is identical to <em>lj/cut/coul/long</em> except
that a term is added for the <aclass="reference internal"href="Section_howto.html#howto-25"><span>core/shell model</span></a> to allow charges on core and shell
particles to be separated by r = 0.0.</p>
<p>Styles <em>lj/cut/tip4p/cut</em> and <em>lj/cut/tip4p/long</em> implement the TIP4P
water model of <aclass="reference internal"href="#jorgensen"><span>(Jorgensen)</span></a>, which introduces a massless
site located a short distance away from the oxygen atom along the
bisector of the HOH angle. The atomic types of the oxygen and
hydrogen atoms, the bond and angle types for OH and HOH interactions,
and the distance to the massless charge site are specified as
pair_style arguments. Style <em>lj/cut/tip4p/cut</em> uses a cutoff for
Coulomb interactions; style <em>lj/cut/tip4p/long</em> is for use with a
long-range Coulombic solver (Ewald or PPPM).</p>
<divclass="admonition note">
<pclass="first admonition-title">Note</p>
<pclass="last">For each TIP4P water molecule in your system, the atom IDs for
the O and 2 H atoms must be consecutive, with the O atom first. This
is to enable LAMMPS to “find” the 2 H atoms associated with each O
atom. For example, if the atom ID of an O atom in a TIP4P water
molecule is 500, then its 2 H atoms must have IDs 501 and 502.</p>
</div>
<p>See the <aclass="reference internal"href="Section_howto.html#howto-8"><span>howto section</span></a> for more
information on how to use the TIP4P pair styles and lists of
parameters to set. Note that the neighobr list cutoff for Coulomb
interactions is effectively extended by a distance 2*qdist when using
the TIP4P pair style, to account for the offset distance of the
fictitious charges on O atoms in water molecules. Thus it is
typically best in an efficiency sense to use a LJ cutoff >= Coulomb
cutoff + 2*qdist, to shrink the size of the neighbor list. This leads
to slightly larger cost for the long-range calculation, so you can
test the trade-off for your model.</p>
<p>For all of the <em>lj/cut</em> pair styles, the following coefficients must
be defined for each pair of atoms types via the
<aclass="reference internal"href="pair_coeff.html"><em>pair_coeff</em></a> command as in the examples above, or in
the data file or restart files read by the <aclass="reference internal"href="read_data.html"><em>read_data</em></a>
or <aclass="reference internal"href="read_restart.html"><em>read_restart</em></a> commands, or by mixing as
described below:</p>
<ulclass="simple">
<li>epsilon (energy units)</li>
<li>sigma (distance units)</li>
<li>cutoff1 (distance units)</li>
<li>cutoff2 (distance units)</li>
</ul>
<p>Note that sigma is defined in the LJ formula as the zero-crossing
distance for the potential, not as the energy minimum at 2^(1/6)
sigma.</p>
<p>The latter 2 coefficients are optional. If not specified, the global
LJ and Coulombic cutoffs specified in the pair_style command are used.
If only one cutoff is specified, it is used as the cutoff for both LJ
and Coulombic interactions for this type pair. If both coefficients
are specified, they are used as the LJ and Coulombic cutoffs for this
type pair. You cannot specify 2 cutoffs for style <em>lj/cut</em>, since it
has no Coulombic terms.</p>
<p>For <em>lj/cut/coul/long</em> and <em>lj/cut/coul/msm</em> and <em>lj/cut/tip4p/cut</em>
and <em>lj/cut/tip4p/long</em> only the LJ cutoff can be specified since a
Coulombic cutoff cannot be specified for an individual I,J type pair.
All type pairs use the same global Coulombic cutoff specified in the
pair_style command.</p>
<hrclass="docutils"/>
<p>Styles with a <em>cuda</em>, <em>gpu</em>, <em>intel</em>, <em>kk</em>, <em>omp</em>, or <em>opt</em> suffix are
functionally the same as the corresponding style without the suffix.
They have been optimized to run faster, depending on your available
hardware, as discussed in <aclass="reference internal"href="Section_accelerate.html"><em>Section_accelerate</em></a>
of the manual. The accelerated styles take the same arguments and
should produce the same results, except for round-off and precision
issues.</p>
<p>These accelerated styles are part of the USER-CUDA, GPU, USER-INTEL,
KOKKOS, USER-OMP and OPT packages, respectively. They are only
enabled if LAMMPS was built with those packages. See the <aclass="reference internal"href="Section_start.html#start-3"><span>Making LAMMPS</span></a> section for more info.</p>
<p>You can specify the accelerated styles explicitly in your input script
by including their suffix, or you can use the <aclass="reference internal"href="Section_start.html#start-7"><span>-suffix command-line switch</span></a> when you invoke LAMMPS, or you can
use the <aclass="reference internal"href="suffix.html"><em>suffix</em></a> command in your input script.</p>
<p>See <aclass="reference internal"href="Section_accelerate.html"><em>Section_accelerate</em></a> of the manual for
more instructions on how to use the accelerated styles effectively.</p>
<p>For atom type pairs I,J and I != J, the epsilon and sigma coefficients
and cutoff distance for all of the lj/cut pair styles can be mixed.
The default mix value is <em>geometric</em>. See the “pair_modify” command
for details.</p>
<p>All of the <em>lj/cut</em> pair styles support the
<aclass="reference internal"href="pair_modify.html"><em>pair_modify</em></a> shift option for the energy of the
Lennard-Jones portion of the pair interaction.</p>
<p>The <em>lj/cut/coul/long</em> and <em>lj/cut/tip4p/long</em> pair styles support the
<aclass="reference internal"href="pair_modify.html"><em>pair_modify</em></a> table option since they can tabulate
the short-range portion of the long-range Coulombic interaction.</p>
<p>All of the <em>lj/cut</em> pair styles support the
<aclass="reference internal"href="pair_modify.html"><em>pair_modify</em></a> tail option for adding a long-range
tail correction to the energy and pressure for the Lennard-Jones
portion of the pair interaction.</p>
<p>All of the <em>lj/cut</em> pair styles write their information to <aclass="reference internal"href="restart.html"><em>binary restart files</em></a>, so pair_style and pair_coeff commands do
not need to be specified in an input script that reads a restart file.</p>
<p>The <em>lj/cut</em> and <em>lj/cut/coul/long</em> pair styles support the use of the
<em>inner</em>, <em>middle</em>, and <em>outer</em> keywords of the <aclass="reference internal"href="run_style.html"><em>run_style respa</em></a> command, meaning the pairwise forces can be
partitioned by distance at different levels of the rRESPA hierarchy.
The other styles only support the <em>pair</em> keyword of run_style respa.
See the <aclass="reference internal"href="run_style.html"><em>run_style</em></a> command for details.</p>
</div>
<hrclass="docutils"/>
<divclass="section"id="restrictions">
<h2>Restrictions<aclass="headerlink"href="#restrictions"title="Permalink to this headline">¶</a></h2>
<p>The <em>lj/cut/coul/long</em> and <em>lj/cut/tip4p/long</em> styles are part of the
KSPACE package. The <em>lj/cut/tip4p/cut</em> style is part of the MOLECULE
package. These styles are only enabled if LAMMPS was built with those
packages. See the <aclass="reference internal"href="Section_start.html#start-3"><span>Making LAMMPS</span></a> section
for more info. Note that the KSPACE and MOLECULE packages are
installed by default.</p>
</div>
<divclass="section"id="related-commands">
<h2>Related commands<aclass="headerlink"href="#related-commands"title="Permalink to this headline">¶</a></h2>
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>.