This is the first step for moving the documentation format from *.txt to the *.rst format. In the last years we've been automatically converting txt files from Steve's markup into RST to generate the documentation pages via Sphinx. The decision has now been made to fully migrate to RST and avoid the conversion in the future. This will enable us to fully use RST and Sphinx to improve the documentation. For the intermediate period, while there are still pending PRs with documentation changes, we will keep both source files and update the RST files accordingly.
41 lines
2.5 KiB
ReStructuredText
41 lines
2.5 KiB
ReStructuredText
Pair styles
|
|
===========
|
|
|
|
Classes that compute pairwise interactions are derived from the Pair
|
|
class. In LAMMPS, pairwise calculation include many-body potentials
|
|
such as EAM or Tersoff where particles interact without a static bond
|
|
topology. New styles can be created to add new pair potentials to
|
|
LAMMPS.
|
|
|
|
Pair\_lj\_cut.cpp is a simple example of a Pair class, though it
|
|
includes some optional methods to enable its use with rRESPA.
|
|
|
|
Here is a brief description of the class methods in pair.h:
|
|
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
| compute | workhorse routine that computes pairwise interactions |
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
| settings | reads the input script line with arguments you define |
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
| coeff | set coefficients for one i,j type pair |
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
| init\_one | perform initialization for one i,j type pair |
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
| init\_style | initialization specific to this pair style |
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
| write & read\_restart | write/read i,j pair coeffs to restart files |
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
| write & read\_restart\_settings | write/read global settings to restart files |
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
| single | force and energy of a single pairwise interaction between 2 atoms |
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
| compute\_inner/middle/outer | versions of compute used by rRESPA |
|
|
+---------------------------------+-------------------------------------------------------------------+
|
|
|
|
The inner/middle/outer routines are optional.
|
|
|
|
|
|
.. _lws: http://lammps.sandia.gov
|
|
.. _ld: Manual.html
|
|
.. _lc: Commands_all.html
|