2007-06-20 21:15:18 +08:00
|
|
|
<HTML>
|
|
|
|
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
|
|
|
|
</CENTER>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
<H3>pair_style dipole/cut command
|
|
|
|
</H3>
|
2011-08-09 05:51:11 +08:00
|
|
|
<H3>pair_style dipole/sf command
|
|
|
|
</H3>
|
2007-06-20 21:15:18 +08:00
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>pair_style dipole/cut cutoff (cutoff2)
|
|
|
|
</PRE>
|
2011-08-09 05:51:11 +08:00
|
|
|
<PRE>pair_style dipole/sf cutoff (cutoff2)
|
|
|
|
</PRE>
|
2007-06-20 21:15:18 +08:00
|
|
|
<UL><LI>cutoff = global cutoff LJ (and Coulombic if only 1 arg) (distance units)
|
|
|
|
<LI>cutoff2 = global cutoff for Coulombic (optional) (distance units)
|
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>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
|
|
|
<PRE>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
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
2008-02-20 05:47:37 +08:00
|
|
|
<P>Style <I>dipole/cut</I> 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.
|
|
|
|
</P>
|
|
|
|
<CENTER><IMG SRC = "Eqs/pair_dipole.jpg">
|
|
|
|
</CENTER>
|
|
|
|
<P>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
|
|
|
|
<A HREF = "#Allen">(Allen)</A> and in <A HREF = "#Toukmaji">(Toukmaji)</A>.
|
|
|
|
</P>
|
2011-08-09 05:51:11 +08:00
|
|
|
<P>Style <I>dipole/sf</I> 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 <A HREF = "#Allen">(Allen)</A>. 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:
|
|
|
|
</P>
|
|
|
|
<CENTER><IMG SRC = "Eqs/pair_dipole_sf.jpg">
|
|
|
|
</CENTER>
|
2011-08-17 07:39:57 +08:00
|
|
|
<CENTER><IMG SRC = "Eqs/pair_dipole_sf2.jpg">
|
|
|
|
</CENTER>
|
|
|
|
<P>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 <A HREF = "#Stoddard">(Stoddard)</A>. The
|
|
|
|
original (unshifted) formulas for the electrostatic potentials, forces
|
|
|
|
and torques can be found in <A HREF = "#Price">(Price)</A>. The shifted-force
|
|
|
|
electrostatic potentials have been obtained by applying equation 5.13
|
|
|
|
of <A HREF = "#Allen">(Allen)</A>. The formulas for the corresponding forces and
|
|
|
|
torques have been obtained by applying the 'chain rule' as in appendix
|
|
|
|
C.3 of <A HREF = "#Allen">(Allen)</A>.
|
|
|
|
</P>
|
2007-06-20 21:15:18 +08:00
|
|
|
<P>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.
|
|
|
|
</P>
|
2009-03-16 22:46:18 +08:00
|
|
|
<P>Atoms with dipole moments should be integrated using the <A HREF = "fix_nve_sphere.html">fix
|
|
|
|
nve/sphere update dipole</A> command to rotate the
|
|
|
|
dipole moments. The <A HREF = "compute_temp_sphere.html">compute temp/sphere</A>
|
|
|
|
command can be used to monitor the temperature, since it includes
|
|
|
|
rotational degrees of freedom. The <A HREF = "atom_style.html">atom_style
|
|
|
|
dipole</A> 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
|
|
|
|
<A HREF = "dipole.html">dipole</A> command or in the "Dipoles" section of the data
|
|
|
|
file read in by the <A HREF = "read_data.html">read_data</A> command. Their initial
|
|
|
|
orientation can be defined by the <A HREF = "set.html">set dipole</A> command or in
|
|
|
|
the "Atoms" section of the data file.
|
2007-06-20 21:15:18 +08:00
|
|
|
</P>
|
|
|
|
<P>The following coefficients must be defined for each pair of atoms
|
|
|
|
types via the <A HREF = "pair_coeff.html">pair_coeff</A> command as in the examples
|
|
|
|
above, or in the data file or restart files read by the
|
|
|
|
<A HREF = "read_data.html">read_data</A> or <A HREF = "read_restart.html">read_restart</A>
|
2007-06-25 22:36:36 +08:00
|
|
|
commands, or by mixing as described below:
|
2007-06-20 21:15:18 +08:00
|
|
|
</P>
|
|
|
|
<UL><LI>epsilon (energy units)
|
|
|
|
<LI>sigma (distance units)
|
|
|
|
<LI>cutoff1 (distance units)
|
|
|
|
<LI>cutoff2 (distance units)
|
|
|
|
</UL>
|
|
|
|
<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.
|
|
|
|
</P>
|
2007-06-25 22:36:36 +08:00
|
|
|
<HR>
|
|
|
|
|
2008-01-22 02:12:34 +08:00
|
|
|
<P><B>Mixing, shift, table, tail correction, restart, rRESPA info</B>:
|
2007-06-25 22:36:36 +08:00
|
|
|
</P>
|
|
|
|
<P>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 <I>geometric</I>. See the "pair_modify" command for details.
|
|
|
|
</P>
|
|
|
|
<P>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
|
|
|
|
<I>geometric</I>. See the "pair_modify" command for details.
|
|
|
|
</P>
|
2011-08-09 05:51:11 +08:00
|
|
|
<P>This pair style does not support the <A HREF = "pair_modify.html">pair_modify</A>
|
|
|
|
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
|
|
|
</P>
|
2007-06-25 22:36:36 +08:00
|
|
|
<P>The <A HREF = "pair_modify.html">pair_modify</A> table option is not relevant
|
|
|
|
for this pair style.
|
|
|
|
</P>
|
|
|
|
<P>This pair style does not support the <A HREF = "pair_modify.html">pair_modify</A>
|
|
|
|
tail option for adding long-range tail corrections to energy and
|
|
|
|
pressure.
|
|
|
|
</P>
|
|
|
|
<P>This pair style writes its information to <A HREF = "restart.html">binary restart
|
|
|
|
files</A>, so pair_style and pair_coeff commands do not need
|
|
|
|
to be specified in an input script that reads a restart file.
|
|
|
|
</P>
|
2007-10-04 08:21:14 +08:00
|
|
|
<P>This pair style can only be used via the <I>pair</I> keyword of the
|
|
|
|
<A HREF = "run_style.html">run_style respa</A> command. It does not support the
|
2007-10-12 07:09:49 +08:00
|
|
|
<I>inner</I>, <I>middle</I>, <I>outer</I> keywords.
|
2007-10-04 08:21:14 +08:00
|
|
|
</P>
|
2007-06-25 22:36:36 +08:00
|
|
|
<P><B>Restrictions:</B>
|
2007-06-20 21:15:18 +08:00
|
|
|
</P>
|
2011-08-09 05:51:11 +08:00
|
|
|
<P>The <I>dipole/cut</I> style is part of the "dipole" package. It is only
|
2011-08-26 00:46:23 +08:00
|
|
|
enabled if LAMMPS was built with that package. See the <A HREF = "Section_start.html#start_3">Making
|
2011-08-09 05:51:11 +08:00
|
|
|
LAMMPS</A> section for more info.
|
|
|
|
</P>
|
|
|
|
<P>The <I>dipole/sf</I> style is part of the "user-misc" package. It is only
|
2011-08-26 00:46:23 +08:00
|
|
|
enabled if LAMMPS was built with that package. See the <A HREF = "Section_start.html#start_3">Making
|
2007-06-25 22:36:36 +08:00
|
|
|
LAMMPS</A> section for more info.
|
2007-06-20 21:15:18 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B>
|
|
|
|
</P>
|
2010-05-07 23:11:21 +08:00
|
|
|
<P><A HREF = "pair_coeff.html">pair_coeff</A>
|
2007-06-20 21:15:18 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Default:</B> none
|
|
|
|
</P>
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
<A NAME = "Allen"></A>
|
|
|
|
|
|
|
|
<P><B>(Allen)</B> Allen and Tildesley, Computer Simulation of Liquids,
|
|
|
|
Clarendon Press, Oxford, 1987.
|
|
|
|
</P>
|
|
|
|
<A NAME = "Toukmaji"></A>
|
|
|
|
|
|
|
|
<P><B>(Toukmaji)</B> Toukmaji, Sagui, Board, and Darden, J Chem Phys, 113,
|
|
|
|
10913 (2000).
|
|
|
|
</P>
|
2011-08-09 05:51:11 +08:00
|
|
|
<A NAME = "Stoddard"></A>
|
|
|
|
|
|
|
|
<P><B>(Stoddard)</B> Stoddard and Ford, Phys Rev A, 8, 1504 (1973).
|
|
|
|
</P>
|
|
|
|
<A NAME = "Price"></A>
|
|
|
|
|
|
|
|
<P><B>(Price)</B> Price, Stone and Alderton, Mol Phys, 52, 987 (1984).
|
|
|
|
</P>
|
2007-06-20 21:15:18 +08:00
|
|
|
</HTML>
|