2007-10-04 08:21:28 +08:00
|
|
|
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
|
|
:link(ld,Manual.html)
|
|
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
2012-10-03 23:40:18 +08:00
|
|
|
pair_style lj/long/coul/long command :h3
|
|
|
|
pair_style lj/long/coul/long/omp command :h3
|
2012-10-09 22:51:20 +08:00
|
|
|
pair_style lj/long/tip4p/long command :h3
|
2007-10-04 08:21:28 +08:00
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2012-10-03 07:18:29 +08:00
|
|
|
pair_style style args :pre
|
|
|
|
|
2012-10-09 22:51:20 +08:00
|
|
|
style = {lj/long/coul/long} or {lj/long/tip4p/long}
|
2012-10-03 07:18:29 +08:00
|
|
|
args = list of arguments for a particular style :ul
|
2012-10-03 23:40:18 +08:00
|
|
|
{lj/long/coul/long} args = flag_lj flag_coul cutoff (cutoff2)
|
2012-10-03 07:18:29 +08:00
|
|
|
flag_lj = {long} or {cut}
|
|
|
|
{long} = use Kspace long-range summation for dispersion 1/r^6 term
|
|
|
|
{cut} = use a cutoff
|
|
|
|
flag_coul = {long} or {off}
|
|
|
|
{long} = use Kspace long-range summation for Coulombic 1/r term
|
|
|
|
{off} = omit Coulombic term
|
|
|
|
cutoff = global cutoff for LJ (and Coulombic if only 1 arg) (distance units)
|
|
|
|
cutoff2 = global cutoff for Coulombic (optional) (distance units)
|
2012-10-09 22:51:20 +08:00
|
|
|
{lj/cut/tip4p/long} args = flag_lj flag_coul otype htype btype atype qdist cutoff (cutoff2)
|
2012-10-03 07:18:29 +08:00
|
|
|
flag_lj = {long} or {cut}
|
|
|
|
{long} = use Kspace long-range summation for dispersion 1/r^6 term
|
|
|
|
{cut} = use a cutoff
|
|
|
|
flag_coul = {long} or {off}
|
|
|
|
{long} = use Kspace long-range summation for Coulombic 1/r term
|
|
|
|
{off} = omit Coulombic term
|
|
|
|
otype,htype = atom types for TIP4P O and H
|
|
|
|
btype,atype = bond and angle types for TIP4P waters
|
|
|
|
qdist = distance from O atom to massless charge (distance units)
|
|
|
|
cutoff = global cutoff for LJ (and Coulombic if only 1 arg) (distance units)
|
|
|
|
cutoff2 = global cutoff for Coulombic (optional) (distance units) :pre
|
2007-10-04 08:21:28 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2012-10-03 23:40:18 +08:00
|
|
|
pair_style lj/long/coul/long cut off 2.5
|
|
|
|
pair_style lj/long/coul/long cut long 2.5 4.0
|
|
|
|
pair_style lj/long/coul/long long long 2.5 4.0
|
2007-10-04 08:21:28 +08:00
|
|
|
pair_coeff * * 1 1
|
|
|
|
pair_coeff 1 1 1 3 4 :pre
|
|
|
|
|
2012-10-09 22:51:20 +08:00
|
|
|
pair_style lj/long/tip4p/long long long 1 2 7 8 0.15 12.0
|
|
|
|
pair_style lj/long/tip4p/long long long 1 2 7 8 0.15 12.0 10.0
|
2012-10-03 07:18:29 +08:00
|
|
|
pair_coeff * * 100.0 3.0
|
|
|
|
pair_coeff 1 1 100.0 3.5 9.0 :pre
|
|
|
|
|
2007-10-04 08:21:28 +08:00
|
|
|
[Description:]
|
|
|
|
|
2012-10-03 23:40:18 +08:00
|
|
|
Style {lj/long/coul/long} computes the standard 12/6 Lennard-Jones and
|
2007-10-04 08:21:28 +08:00
|
|
|
Coulombic potentials, given by
|
|
|
|
|
|
|
|
:c,image(Eqs/pair_lj.jpg)
|
|
|
|
|
|
|
|
:c,image(Eqs/pair_coulomb.jpg)
|
|
|
|
|
|
|
|
where C is an energy-conversion constant, Qi and Qj are the charges on
|
|
|
|
the 2 atoms, epsilon is the dielectric constant which can be set by
|
|
|
|
the "dielectric"_dielectric.html command, and Rc is the cutoff. If
|
|
|
|
one cutoff is specified in the pair_style command, it is used for both
|
|
|
|
the LJ and Coulombic terms. If two cutoffs are specified, they are
|
|
|
|
used as cutoffs for the LJ and Coulombic terms respectively.
|
|
|
|
|
|
|
|
The purpose of this pair style is to capture long-range interactions
|
|
|
|
resulting from both attractive 1/r^6 Lennard-Jones and Coulombic 1/r
|
|
|
|
interactions. This is done by use of the {flag_lj} and {flag_coul}
|
|
|
|
settings. The "In 't Veld"_#Veld paper has more details on when it is
|
|
|
|
appropriate to include long-range 1/r^6 interactions, using this
|
|
|
|
potential.
|
|
|
|
|
2012-10-09 22:51:20 +08:00
|
|
|
Style {lj/cut/tip4p/long} implements the TIP4P water model of
|
2012-10-03 07:18:29 +08:00
|
|
|
"(Jorgensen)"_#Jorgensen, 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.
|
|
|
|
|
|
|
|
IMPORTANT NOTE: 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.
|
|
|
|
|
|
|
|
See the "howto section"_Section_howto.html#howto_8 for more
|
|
|
|
information on how to use the TIP4P pair style. 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.
|
|
|
|
|
2007-10-04 08:21:28 +08:00
|
|
|
If {flag_lj} is set to {long}, no cutoff is used on the LJ 1/r^6
|
|
|
|
dispersion term. The long-range portion is calculated by using the
|
|
|
|
"kspace_style ewald/n"_kspace_style.html command. The specified LJ
|
|
|
|
cutoff then determines which portion of the LJ interactions are
|
|
|
|
computed directly by the pair potential versus which part is computed
|
|
|
|
in reciprocal space via the Kspace style. If {flag_lj} is set to
|
|
|
|
{cut}, the LJ interactions are simply cutoff, as with "pair_style
|
|
|
|
lj/cut"_pair_lj.html.
|
|
|
|
|
|
|
|
If {flag_coul} is set to {long}, no cutoff is used on the Coulombic
|
|
|
|
interactions. The long-range portion is calculated by using any
|
|
|
|
style, including {ewald/n} of the "kspace_style"_kspace_style.html
|
|
|
|
command. Note that if {flag_lj} is also set to long, then only the
|
|
|
|
{ewald/n} Kspace style can perform the long-range calculations for
|
|
|
|
both the LJ and Coulombic interactions. If {flag_coul} is set to
|
|
|
|
{off}, Coulombic interactions are not computed.
|
|
|
|
|
|
|
|
The following coefficients must be defined for each pair of atoms
|
|
|
|
types via the "pair_coeff"_pair_coeff.html command as in the examples
|
|
|
|
above, or in the data file or restart files read by the
|
|
|
|
"read_data"_read_data.html or "read_restart"_read_restart.html
|
|
|
|
commands, or by mixing as described below:
|
|
|
|
|
|
|
|
epsilon (energy units)
|
|
|
|
sigma (distance units)
|
|
|
|
cutoff1 (distance units)
|
|
|
|
cutoff2 (distance units) :ul
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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
|
2012-10-03 07:18:29 +08:00
|
|
|
type pair.
|
|
|
|
|
|
|
|
Note that if you are using {flag_lj} set to {long}, you
|
2007-10-04 08:21:28 +08:00
|
|
|
cannot specify a LJ cutoff for an atom type pair, since only one
|
|
|
|
global LJ cutoff is allowed. Similarly, if you are using {flag_coul}
|
|
|
|
set to {long}, you cannot specify a Coulombic cutoff for an atom type
|
|
|
|
pair, since only one global Coulombic cutoff is allowed.
|
|
|
|
|
2012-10-09 22:51:20 +08:00
|
|
|
For {lj/long/tip4p/long} only the LJ cutoff can be specified
|
2012-10-03 07:18:29 +08:00
|
|
|
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.
|
|
|
|
|
2007-10-04 08:21:28 +08:00
|
|
|
:line
|
|
|
|
|
2011-12-14 04:35:35 +08:00
|
|
|
Styles with a {cuda}, {gpu}, {omp}, or {opt} 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 "Section_accelerate"_Section_accelerate.html of the
|
|
|
|
manual. The accelerated styles take the same arguments and should
|
|
|
|
produce the same results, except for round-off and precision issues.
|
2011-10-07 01:32:51 +08:00
|
|
|
|
|
|
|
These accelerated styles are part of the USER-CUDA, GPU, USER-OMP and OPT
|
|
|
|
packages, respectively. They are only enabled if LAMMPS was built with
|
|
|
|
those packages. See the "Making LAMMPS"_Section_start.html#start_3
|
|
|
|
section for more info.
|
|
|
|
|
|
|
|
You can specify the accelerated styles explicitly in your input script
|
|
|
|
by including their suffix, or you can use the "-suffix command-line
|
2012-01-28 07:39:14 +08:00
|
|
|
switch"_Section_start.html#start_7 when you invoke LAMMPS, or you can
|
2011-10-07 01:32:51 +08:00
|
|
|
use the "suffix"_suffix.html command in your input script.
|
|
|
|
|
2011-12-14 04:35:35 +08:00
|
|
|
See "Section_accelerate"_Section_accelerate.html of the manual for
|
|
|
|
more instructions on how to use the accelerated styles effectively.
|
2011-10-07 01:32:51 +08:00
|
|
|
|
|
|
|
:line
|
|
|
|
|
2008-01-22 02:12:34 +08:00
|
|
|
[Mixing, shift, table, tail correction, restart, rRESPA info]:
|
2007-10-04 08:21:28 +08:00
|
|
|
|
|
|
|
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 {geometric}. See the "pair_modify" command
|
|
|
|
for details.
|
|
|
|
|
|
|
|
This pair style supports the "pair_modify"_pair_modify.html shift
|
|
|
|
option for the energy of the Lennard-Jones portion of the pair
|
|
|
|
interaction, assuming {flag_lj} is {cut}.
|
|
|
|
|
|
|
|
This pair style supports the "pair_modify"_pair_modify.html table
|
|
|
|
option since it can tabulate the short-range portion of the long-range
|
|
|
|
Coulombic interaction.
|
|
|
|
|
2010-07-13 08:14:09 +08:00
|
|
|
This pair style does not support the "pair_modify"_pair_modify.html
|
|
|
|
tail option for adding a long-range tail correction to the
|
|
|
|
Lennard-Jones portion of the energy and pressure.
|
2007-10-04 08:21:28 +08:00
|
|
|
|
|
|
|
This pair style writes its information to "binary restart
|
|
|
|
files"_restart.html, so pair_style and pair_coeff commands do not need
|
|
|
|
to be specified in an input script that reads a restart file.
|
|
|
|
|
|
|
|
This pair style supports the use of the {inner}, {middle}, and {outer}
|
|
|
|
keywords of the "run_style respa"_run_style.html command, meaning the
|
|
|
|
pairwise forces can be partitioned by distance at different levels of
|
|
|
|
the rRESPA hierarchy. See the "run_style"_run_style.html command for
|
|
|
|
details.
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
[Restrictions:]
|
|
|
|
|
2012-10-03 07:18:29 +08:00
|
|
|
These styles are part of the KSPACE package. They are only enabled if
|
2011-08-27 02:53:00 +08:00
|
|
|
LAMMPS was built with that package. See the "Making
|
2012-10-03 06:54:29 +08:00
|
|
|
LAMMPS"_Section_start.html#start_3 section for more info. Note that
|
|
|
|
the KSPACE package is installed by default.
|
2007-10-04 08:21:28 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"pair_coeff"_pair_coeff.html
|
|
|
|
|
|
|
|
[Default:] none
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
:link(Veld)
|
|
|
|
[(In 't Veld)] In 't Veld, Ismail, Grest, J Chem Phys (accepted) (2007).
|