2007-06-20 21:15:18 +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
|
|
|
|
|
|
|
|
pair_style dipole/cut command :h3
|
2012-08-21 21:54:09 +08:00
|
|
|
pair_style dipole/cut/gpu command :h3
|
2011-10-07 01:32:51 +08:00
|
|
|
pair_style dipole/cut/omp command :h3
|
2011-08-09 05:51:11 +08:00
|
|
|
pair_style dipole/sf command :h3
|
2012-08-21 21:54:09 +08:00
|
|
|
pair_style dipole/sf/gpu command :h3
|
2011-10-07 01:32:51 +08:00
|
|
|
pair_style dipole/sf/omp command :h3
|
2007-06-20 21:15:18 +08:00
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
pair_style dipole/cut cutoff (cutoff2) :pre
|
2011-08-09 05:51:11 +08:00
|
|
|
pair_style dipole/sf cutoff (cutoff2) :pre
|
2007-06-20 21:15:18 +08:00
|
|
|
|
|
|
|
cutoff = global cutoff LJ (and Coulombic if only 1 arg) (distance units)
|
|
|
|
cutoff2 = global cutoff for Coulombic (optional) (distance units) :ul
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
pair_style dipole/cut 10.0
|
|
|
|
pair_coeff * * 1.0 1.0
|
|
|
|
pair_coeff 2 3 1.0 1.0 2.5 4.0 :pre
|
|
|
|
|
2011-08-09 05:51:11 +08:00
|
|
|
pair_style dipole/sf 9.0
|
|
|
|
pair_coeff * * 1.0 1.0
|
|
|
|
pair_coeff 2 3 1.0 1.0 2.5 4.0 :pre
|
|
|
|
|
2007-06-20 21:15:18 +08:00
|
|
|
[Description:]
|
|
|
|
|
2008-02-20 05:47:37 +08:00
|
|
|
Style {dipole/cut} computes interactions between pairs of particles
|
2007-06-20 21:15:18 +08:00
|
|
|
that each have a charge and/or a point dipole moment. In addition to
|
|
|
|
the usual Lennard-Jones interaction between the particles (Elj) the
|
|
|
|
charge-charge (Eqq), charge-dipole (Eqp), and dipole-dipole (Epp)
|
|
|
|
interactions are computed by these formulas for the energy (E), force
|
|
|
|
(F), and torque (T) between particles I and J.
|
|
|
|
|
|
|
|
:c,image(Eqs/pair_dipole.jpg)
|
|
|
|
|
|
|
|
where qi and qj are the charges on the two particles, pi and pj are
|
|
|
|
the dipole moment vectors of the two particles, r is their separation
|
|
|
|
distance, and the vector r = Ri - Rj is the separation vector between
|
|
|
|
the two particles. Note that Eqq and Fqq are simply Coulombic energy
|
|
|
|
and force, Fij = -Fji as symmetric forces, and Tij != -Tji since the
|
|
|
|
torques do not act symmetrically. These formulas are discussed in
|
|
|
|
"(Allen)"_#Allen and in "(Toukmaji)"_#Toukmaji.
|
|
|
|
|
2011-08-09 05:51:11 +08:00
|
|
|
Style {dipole/sf} computes "shifted-force" interactions between pairs
|
|
|
|
of particles that each have a charge and/or a point dipole moment. In
|
|
|
|
general, a shifted-force potential is a (sligthly) modified potential
|
|
|
|
containing extra terms that make both the energy and its derivative go
|
|
|
|
to zero at the cutoff distance; this removes (cutoff-related) problems
|
|
|
|
in energy conservation and any numerical instability in the equations
|
|
|
|
of motion "(Allen)"_#Allen. Shifted-force interactions for the
|
|
|
|
Lennard-Jones (E_LJ), charge-charge (Eqq), charge-dipole (Eqp),
|
|
|
|
dipole-charge (Epq) and dipole-dipole (Epp) potentials are computed by
|
|
|
|
these formulas for the energy (E), force (F), and torque (T) between
|
|
|
|
particles I and J:
|
|
|
|
|
|
|
|
:c,image(Eqs/pair_dipole_sf.jpg)
|
2011-08-17 07:39:57 +08:00
|
|
|
:c,image(Eqs/pair_dipole_sf2.jpg)
|
2011-08-09 05:51:11 +08:00
|
|
|
|
2011-08-17 07:39:57 +08:00
|
|
|
where epsilon and sigma are the standard LJ parameters, r_c is the
|
|
|
|
cutoff, qi and qj are the charges on the two particles, pi and pj are
|
2011-08-09 05:51:11 +08:00
|
|
|
the dipole moment vectors of the two particles, r is their separation
|
|
|
|
distance, and the vector r = Ri - Rj is the separation vector between
|
|
|
|
the two particles. Note that Eqq and Fqq are simply Coulombic energy
|
|
|
|
and force, Fij = -Fji as symmetric forces, and Tij != -Tji since the
|
|
|
|
torques do not act symmetrically. The shifted-force formula for the
|
|
|
|
Lennard-Jones potential is reported in "(Stoddard)"_#Stoddard. The
|
|
|
|
original (unshifted) formulas for the electrostatic potentials, forces
|
|
|
|
and torques can be found in "(Price)"_#Price. The shifted-force
|
|
|
|
electrostatic potentials have been obtained by applying equation 5.13
|
|
|
|
of "(Allen)"_#Allen. The formulas for the corresponding forces and
|
|
|
|
torques have been obtained by applying the 'chain rule' as in appendix
|
|
|
|
C.3 of "(Allen)"_#Allen.
|
|
|
|
|
2007-06-20 21:15:18 +08:00
|
|
|
If one cutoff is specified in the pair_style command, it is used for
|
|
|
|
both the LJ and Coulombic (q,p) terms. If two cutoffs are specified,
|
|
|
|
they are used as cutoffs for the LJ and Coulombic (q,p) terms
|
|
|
|
respectively.
|
|
|
|
|
2009-03-16 22:46:18 +08:00
|
|
|
Atoms with dipole moments should be integrated using the "fix
|
|
|
|
nve/sphere update dipole"_fix_nve_sphere.html command to rotate the
|
|
|
|
dipole moments. The "compute temp/sphere"_compute_temp_sphere.html
|
|
|
|
command can be used to monitor the temperature, since it includes
|
|
|
|
rotational degrees of freedom. The "atom_style
|
|
|
|
dipole"_atom_style.html command should be used since it defines the
|
|
|
|
point dipoles and their rotational state. The magnitude of the dipole
|
|
|
|
moment for each type of particle can be defined by the
|
|
|
|
"dipole"_dipole.html command or in the "Dipoles" section of the data
|
|
|
|
file read in by the "read_data"_read_data.html command. Their initial
|
|
|
|
orientation can be defined by the "set dipole"_set.html command or in
|
|
|
|
the "Atoms" section of the data file.
|
2007-06-20 21:15:18 +08:00
|
|
|
|
|
|
|
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
|
2007-06-26 08:03:39 +08:00
|
|
|
commands, or by mixing as described below:
|
2007-06-20 21:15:18 +08:00
|
|
|
|
|
|
|
epsilon (energy units)
|
|
|
|
sigma (distance units)
|
|
|
|
cutoff1 (distance units)
|
|
|
|
cutoff2 (distance units) :ul
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2007-06-26 08:03:39 +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-06-26 08:03:39 +08:00
|
|
|
|
|
|
|
For atom type pairs I,J and I != J, the epsilon and sigma coefficients
|
|
|
|
and cutoff distances for this pair style can be mixed. The default
|
|
|
|
mix value is {geometric}. See the "pair_modify" command for details.
|
|
|
|
|
|
|
|
For atom type pairs I,J and I != J, the A, sigma, d1, and d2
|
|
|
|
coefficients and cutoff distance for this pair style can be mixed. A
|
|
|
|
is an energy value mixed like a LJ epsilon. D1 and d2 are distance
|
|
|
|
values and are mixed like sigma. The default mix value is
|
|
|
|
{geometric}. See the "pair_modify" command for details.
|
|
|
|
|
2011-08-09 05:51:11 +08:00
|
|
|
This pair style does not support the "pair_modify"_pair_modify.html
|
|
|
|
shift option for the energy of the Lennard-Jones portion of the pair
|
|
|
|
interaction; such energy goes to zero at the cutoff by construction.
|
2007-06-20 21:15:18 +08:00
|
|
|
|
2007-06-26 08:03:39 +08:00
|
|
|
The "pair_modify"_pair_modify.html table option is not relevant
|
|
|
|
for this pair style.
|
|
|
|
|
|
|
|
This pair style does not support the "pair_modify"_pair_modify.html
|
|
|
|
tail option for adding long-range tail corrections to energy and
|
|
|
|
pressure.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2007-10-04 08:21:14 +08:00
|
|
|
This pair style can only be used via the {pair} keyword of the
|
|
|
|
"run_style respa"_run_style.html command. It does not support the
|
2007-10-12 07:09:49 +08:00
|
|
|
{inner}, {middle}, {outer} keywords.
|
2007-10-04 08:21:14 +08:00
|
|
|
|
2007-06-26 08:03:39 +08:00
|
|
|
[Restrictions:]
|
2007-06-25 23:17:40 +08:00
|
|
|
|
2011-08-27 02:53:00 +08:00
|
|
|
The {dipole/cut} style is part of the DIPOLE package. It is only
|
2011-08-09 05:51:11 +08:00
|
|
|
enabled if LAMMPS was built with that package. See the "Making
|
2011-08-26 00:46:23 +08:00
|
|
|
LAMMPS"_Section_start.html#start_3 section for more info.
|
2011-08-09 05:51:11 +08:00
|
|
|
|
2011-08-27 02:53:00 +08:00
|
|
|
The {dipole/sf} style is part of the USER-MISC package. It is only
|
2011-08-09 05:51:11 +08:00
|
|
|
enabled if LAMMPS was built with that package. See the "Making
|
2011-08-26 00:46:23 +08:00
|
|
|
LAMMPS"_Section_start.html#start_3 section for more info.
|
2007-06-20 21:15:18 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
2010-05-07 23:11:21 +08:00
|
|
|
"pair_coeff"_pair_coeff.html
|
2007-06-20 21:15:18 +08:00
|
|
|
|
|
|
|
[Default:] none
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
:link(Allen)
|
|
|
|
[(Allen)] Allen and Tildesley, Computer Simulation of Liquids,
|
|
|
|
Clarendon Press, Oxford, 1987.
|
|
|
|
|
|
|
|
:link(Toukmaji)
|
|
|
|
[(Toukmaji)] Toukmaji, Sagui, Board, and Darden, J Chem Phys, 113,
|
|
|
|
10913 (2000).
|
2011-08-09 05:51:11 +08:00
|
|
|
|
|
|
|
:link(Stoddard)
|
|
|
|
[(Stoddard)] Stoddard and Ford, Phys Rev A, 8, 1504 (1973).
|
|
|
|
|
|
|
|
:link(Price)
|
|
|
|
[(Price)] Price, Stone and Alderton, Mol Phys, 52, 987 (1984).
|