<li>style = one of the styles from the list below</li>
<li>args = arguments used by a particular style</li>
</ul>
</div>
<divclass="section"id="examples">
<h2>Examples</h2>
<preclass="literal-block">
pair_style lj/cut 2.5
pair_style eam/alloy
pair_style hybrid lj/charmm/coul/long 10.0 eam
pair_style table linear 1000
pair_style none
</pre>
</div>
<divclass="section"id="description">
<h2>Description</h2>
<p>Set the formula(s) LAMMPS uses to compute pairwise interactions. In
LAMMPS, pair potentials are defined between pairs of atoms that are
within a cutoff distance and the set of active interactions typically
changes over time. See the <aclass="reference internal"href="bond_style.html"><spanclass="doc">bond_style</span></a> command to
define potentials between pairs of bonded atoms, which typically
remain in place for the duration of a simulation.</p>
<p>In LAMMPS, pairwise force fields encompass a variety of interactions,
some of which include many-body effects, e.g. EAM, Stillinger-Weber,
Tersoff, REBO potentials. They are still classified as “pairwise”
potentials because the set of interacting atoms changes with time
(unlike molecular bonds) and thus a neighbor list is used to find
nearby interacting atoms.</p>
<p>Hybrid models where specified pairs of atom types interact via
different pair potentials can be setup using the <em>hybrid</em> pair style.</p>
<p>The coefficients associated with a pair style are typically set for
each pair of atom types, and are specified by the
<aclass="reference internal"href="pair_coeff.html"><spanclass="doc">pair_coeff</span></a> command or read from a file by the
<aclass="reference internal"href="read_data.html"><spanclass="doc">read_data</span></a> or <aclass="reference internal"href="read_restart.html"><spanclass="doc">read_restart</span></a>
commands.</p>
<p>The <aclass="reference internal"href="pair_modify.html"><spanclass="doc">pair_modify</span></a> command sets options for mixing of
type I-J interaction coefficients and adding energy offsets or tail
corrections to Lennard-Jones potentials. Details on these options as
they pertain to individual potentials are described on the doc page
for the potential. Likewise, info on whether the potential
information is stored in a <aclass="reference internal"href="write_restart.html"><spanclass="doc">restart file</span></a> is listed
on the potential doc page.</p>
<p>In the formulas listed for each pair style, <em>E</em> is the energy of a
pairwise interaction between two atoms separated by a distance <em>r</em>.
The force between the atoms is the negative derivative of this
expression.</p>
<p>If the pair_style command has a cutoff argument, it sets global
cutoffs for all pairs of atom types. The distance(s) can be smaller
or larger than the dimensions of the simulation box.</p>
<p>Typically, the global cutoff value can be overridden for a specific
pair of atom types by the <aclass="reference internal"href="pair_coeff.html"><spanclass="doc">pair_coeff</span></a> command. The
pair style settings (including global cutoffs) can be changed by a
subsequent pair_style command using the same style. This will reset
the cutoffs for all atom type pairs, including those previously set
explicitly by a <aclass="reference internal"href="pair_coeff.html"><spanclass="doc">pair_coeff</span></a> command. The exceptions
to this are that pair_style <em>table</em> and <em>hybrid</em> settings cannot be
reset. A new pair_style command for these styles will wipe out all
previously specified pair_coeff values.</p>
<hrclass="docutils"/>
<p>Here is an alphabetic list of pair styles defined in LAMMPS. They are
also given in more compact form in the pair section of <aclass="reference internal"href="Section_commands.html#cmd-5"><spanclass="std std-ref">this page</span></a>.</p>
<p>Click on the style to display the formula it computes, arguments
specified in the pair_style command, and coefficients specified by the
<li><aclass="reference internal"href="pair_born.html"><spanclass="doc">pair_style born/coul/long</span></a> - Born-Mayer-Huggins with long-range Coulombics</li>
<li><aclass="reference internal"href="pair_born.html"><spanclass="doc">pair_style born/coul/long/cs</span></a> - Born-Mayer-Huggins with long-range Coulombics and core/shell</li>
<li><aclass="reference internal"href="pair_born.html"><spanclass="doc">pair_style born/coul/msm</span></a> - Born-Mayer-Huggins with long-range MSM Coulombics</li>
<li><aclass="reference internal"href="pair_born.html"><spanclass="doc">pair_style born/coul/wolf</span></a> - Born-Mayer-Huggins with Coulombics via Wolf potential</li>
<li><aclass="reference internal"href="pair_brownian.html"><spanclass="doc">pair_style brownian</span></a> - Brownian potential for Fast Lubrication Dynamics</li>
<li><aclass="reference internal"href="pair_brownian.html"><spanclass="doc">pair_style brownian/poly</span></a> - Brownian potential for Fast Lubrication Dynamics with polydispersity</li>
<li><aclass="reference internal"href="pair_buck.html"><spanclass="doc">pair_style buck/coul/cut</span></a> - Buckingham with cutoff Coulomb</li>
<li><aclass="reference internal"href="pair_buck.html"><spanclass="doc">pair_style buck/coul/long</span></a> - Buckingham with long-range Coulombics</li>
<li><aclass="reference internal"href="pair_buck.html"><spanclass="doc">pair_style buck/coul/long/cs</span></a> - Buckingham with long-range Coulombics and core/shell</li>
<li><aclass="reference internal"href="pair_gran.html"><spanclass="doc">pair_style gran/hertz/history</span></a> - granular potential with Hertzian interactions</li>
<li><aclass="reference internal"href="pair_gran.html"><spanclass="doc">pair_style gran/hooke</span></a> - granular potential with history effects</li>
<li><aclass="reference internal"href="pair_gran.html"><spanclass="doc">pair_style gran/hooke/history</span></a> - granular potential without history effects</li>
<li><aclass="reference internal"href="pair_line_lj.html"><spanclass="doc">pair_style line/lj</span></a> - LJ potential between line segments</li>
<li><aclass="reference internal"href="pair_charmm.html"><spanclass="doc">pair_style lj/charmm/coul/charmm</span></a> - CHARMM potential with cutoff Coulomb</li>
<li><aclass="reference internal"href="pair_charmm.html"><spanclass="doc">pair_style lj/charmm/coul/charmm/implicit</span></a> - CHARMM for implicit solvent</li>
<li><aclass="reference internal"href="pair_charmm.html"><spanclass="doc">pair_style lj/charmm/coul/long</span></a> - CHARMM with long-range Coulomb</li>
<li><aclass="reference internal"href="pair_charmm.html"><spanclass="doc">pair_style lj/charmm/coul/msm</span></a> - CHARMM with long-range MSM Coulombics</li>
<li><aclass="reference internal"href="pair_class2.html"><spanclass="doc">pair_style lj/class2</span></a> - COMPASS (class 2) force field with no Coulomb</li>
<li><aclass="reference internal"href="pair_class2.html"><spanclass="doc">pair_style lj/class2/coul/cut</span></a> - COMPASS with cutoff Coulomb</li>
<li><aclass="reference internal"href="pair_class2.html"><spanclass="doc">pair_style lj/class2/coul/long</span></a> - COMPASS with long-range Coulomb</li>
<li><aclass="reference internal"href="pair_lj_cubic.html"><spanclass="doc">pair_style lj/cubic</span></a> - LJ with cubic after inflection point</li>
<li><aclass="reference internal"href="pair_lj.html"><spanclass="doc">pair_style lj/cut</span></a> - cutoff Lennard-Jones potential with no Coulomb</li>
<li><aclass="reference internal"href="pair_lj.html"><spanclass="doc">pair_style lj/cut/coul/cut</span></a> - LJ with cutoff Coulomb</li>
<li><aclass="reference internal"href="pair_lj.html"><spanclass="doc">pair_style lj/cut/coul/debye</span></a> - LJ with Debye screening added to Coulomb</li>
<li><aclass="reference internal"href="pair_lj.html"><spanclass="doc">pair_style lj/cut/coul/dsf</span></a> - LJ with Coulombics via damped shifted forces</li>
<li><aclass="reference internal"href="pair_lj.html"><spanclass="doc">pair_style lj/cut/coul/long</span></a> - LJ with long-range Coulombics</li>
<li><aclass="reference internal"href="pair_lj.html"><spanclass="doc">pair_style lj/cut/coul/long/cs</span></a> - LJ with long-range Coulombics and core/shell</li>
<li><aclass="reference internal"href="pair_lj.html"><spanclass="doc">pair_style lj/cut/coul/msm</span></a> - LJ with long-range MSM Coulombics</li>
<li><aclass="reference internal"href="pair_dipole.html"><spanclass="doc">pair_style lj/cut/dipole/cut</span></a> - point dipoles with cutoff</li>
<li><aclass="reference internal"href="pair_dipole.html"><spanclass="doc">pair_style lj/cut/dipole/long</span></a> - point dipoles with long-range Ewald</li>
<li><aclass="reference internal"href="pair_lj.html"><spanclass="doc">pair_style lj/cut/tip4p/cut</span></a> - LJ with cutoff Coulomb for TIP4P water</li>
<li><aclass="reference internal"href="pair_lj.html"><spanclass="doc">pair_style lj/cut/tip4p/long</span></a> - LJ with long-range Coulomb for TIP4P water</li>
<li><aclass="reference internal"href="pair_lj_expand.html"><spanclass="doc">pair_style lj/expand</span></a> - Lennard-Jones for variable size particles</li>
<li><aclass="reference internal"href="pair_gromacs.html"><spanclass="doc">pair_style lj/gromacs/coul/gromacs</span></a> - GROMACS-style LJ and Coulombic potential</li>
<li><aclass="reference internal"href="pair_lj_long.html"><spanclass="doc">pair_style lj/long/coul/long</span></a> - long-range LJ and long-range Coulombics</li>
<li><aclass="reference internal"href="pair_dipole.html"><spanclass="doc">pair_style lj/long/dipole/long</span></a> - long-range LJ and long-range point dipoles</li>
<li><aclass="reference internal"href="pair_lj_long.html"><spanclass="doc">pair_style lj/long/tip4p/long</span></a> - long-range LJ and long-range Coulomb for TIP4P water</li>
<li><aclass="reference internal"href="pair_lubricate.html"><spanclass="doc">pair_style lubricate/poly</span></a> - hydrodynamic lubrication forces with polydispersity</li>
<li><aclass="reference internal"href="pair_lubricateU.html"><spanclass="doc">pair_style lubricateU</span></a> - hydrodynamic lubrication forces for Fast Lubrication Dynamics</li>
<li><aclass="reference internal"href="pair_lubricateU.html"><spanclass="doc">pair_style lubricateU/poly</span></a> - hydrodynamic lubrication forces for Fast Lubrication with polydispersity</li>
<li><aclass="reference internal"href="pair_meam.html"><spanclass="doc">pair_style meam</span></a> - modified embedded atom method (MEAM)</li>
<p>This command must be used before any coefficients are set by the
<aclass="reference internal"href="pair_coeff.html"><spanclass="doc">pair_coeff</span></a>, <aclass="reference internal"href="read_data.html"><spanclass="doc">read_data</span></a>, or
<p>Some pair styles are part of specific packages. They are 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 on packages.
The doc pages for individual pair potentials tell if it is part of a
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>.