2006-09-22 00:22:34 +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 buck command :h3
|
2011-06-09 05:46:03 +08:00
|
|
|
pair_style buck/cuda command :h3
|
2012-01-25 23:33:51 +08:00
|
|
|
pair_style buck/gpu command :h3
|
2011-10-07 01:32:51 +08:00
|
|
|
pair_style buck/omp command :h3
|
2006-09-22 00:22:34 +08:00
|
|
|
pair_style buck/coul/cut command :h3
|
2011-06-09 05:46:03 +08:00
|
|
|
pair_style buck/coul/cut/cuda command :h3
|
2012-01-25 23:33:51 +08:00
|
|
|
pair_style buck/coul/cut/gpu command :h3
|
2011-10-07 01:32:51 +08:00
|
|
|
pair_style buck/coul/cut/omp command :h3
|
2006-09-22 00:22:34 +08:00
|
|
|
pair_style buck/coul/long command :h3
|
2011-06-09 05:46:03 +08:00
|
|
|
pair_style buck/coul/long/cuda command :h3
|
2012-01-25 23:33:51 +08:00
|
|
|
pair_style buck/coul/long/gpu command :h3
|
2011-10-07 01:32:51 +08:00
|
|
|
pair_style buck/coul/long/omp command :h3
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
pair_style style args :pre
|
|
|
|
|
|
|
|
style = {buck} or {buck/coul/cut} or {buck/coul/long}
|
|
|
|
args = list of arguments for a particular style :ul
|
|
|
|
{buck} args = cutoff
|
|
|
|
cutoff = global cutoff for Buckingham interactions (distance units)
|
|
|
|
{buck/coul/cut} args = cutoff (cutoff2)
|
|
|
|
cutoff = global cutoff for Buckingham (and Coulombic if only 1 arg) (distance units)
|
|
|
|
cutoff2 = global cutoff for Coulombic (optional) (distance units)
|
|
|
|
{buck/coul/long} args = cutoff (cutoff2)
|
|
|
|
cutoff = global cutoff for Buckingham (and Coulombic if only 1 arg) (distance units)
|
|
|
|
cutoff2 = global cutoff for Coulombic (optional) (distance units) :pre
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
pair_style buck 2.5
|
|
|
|
pair_coeff * * 100.0 1.5 200.0
|
|
|
|
pair_coeff * * 100.0 1.5 200.0 3.0 :pre
|
|
|
|
|
|
|
|
pair_style buck/coul/cut 10.0
|
|
|
|
pair_style buck/coul/cut 10.0 8.0
|
|
|
|
pair_coeff * * 100.0 1.5 200.0
|
|
|
|
pair_coeff 1 1 100.0 1.5 200.0 9.0
|
|
|
|
pair_coeff 1 1 100.0 1.5 200.0 9.0 8.0 :pre
|
|
|
|
|
|
|
|
pair_style buck/coul/long 10.0
|
|
|
|
pair_style buck/coul/long 10.0 8.0
|
|
|
|
pair_coeff * * 100.0 1.5 200.0
|
|
|
|
pair_coeff 1 1 100.0 1.5 200.0 9.0 :pre
|
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
The {buck} style computes a Buckingham potential (exp/6 instead of
|
|
|
|
Lennard-Jones 12/6) given by
|
|
|
|
|
|
|
|
:c,image(Eqs/pair_buck.jpg)
|
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
where rho is an ionic-pair dependent length parameter, and Rc is the
|
|
|
|
cutoff.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
The {buck/coul/cut} and {buck/coul/long} styles add a Coulombic term
|
2010-10-08 05:20:45 +08:00
|
|
|
as described for the "lj/cut"_pair_lj.html pair styles. For
|
|
|
|
{buck/coul/long}, an additional damping factor is applied to the
|
|
|
|
Coulombic term so it can be used in conjunction with the
|
|
|
|
"kspace_style"_kspace_style.html command and its {ewald} or {pppm}
|
|
|
|
option. The Coulombic cutoff specified for this style means that
|
|
|
|
pairwise interactions within this distance are computed directly;
|
|
|
|
interactions outside that distance are computed in reciprocal space.
|
|
|
|
|
|
|
|
If one cutoff is specified for the {born/coul/cut} and
|
|
|
|
{born/coulk/long} styles, it is used for both the A,C and Coulombic
|
|
|
|
terms. If two cutoffs are specified, the first is used as the cutoff
|
|
|
|
for the A,C terms, and the second is the cutoff for the Coulombic
|
|
|
|
term.
|
|
|
|
|
|
|
|
Note that these potentials are related to the "Born-Mayer-Huggins
|
2009-06-05 00:55:20 +08:00
|
|
|
potential"_pair_born.html.
|
|
|
|
|
2006-09-22 00:22:34 +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
|
|
|
|
commands:
|
|
|
|
|
|
|
|
A (energy units)
|
|
|
|
rho (distance units)
|
|
|
|
C (energy-distance^6 units)
|
|
|
|
cutoff (distance units)
|
|
|
|
cutoff2 (distance units) :ul
|
|
|
|
|
2007-10-04 08:21:14 +08:00
|
|
|
The second coefficient, rho, must be greater than zero.
|
|
|
|
|
2006-09-22 00:22:34 +08:00
|
|
|
The latter 2 coefficients are optional. If not specified, the global
|
2010-10-08 06:00:41 +08:00
|
|
|
A,C and Coulombic cutoffs are used. If only one cutoff is specified,
|
|
|
|
it is used as the cutoff for both A,C and Coulombic interactions for
|
2006-09-22 00:22:34 +08:00
|
|
|
this type pair. If both coefficients are specified, they are used as
|
2010-10-08 06:00:41 +08:00
|
|
|
the A,C and Coulombic cutoffs for this type pair. You cannot specify
|
|
|
|
2 cutoffs for style {buck}, since it has no Coulombic terms.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
For {buck/coul/long} only the LJ cutoff can be specified 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-06-26 08:03:39 +08:00
|
|
|
:line
|
2007-06-25 22:36:36 +08:00
|
|
|
|
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-06-09 05:46:03 +08:00
|
|
|
|
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
|
2011-08-26 00:46:23 +08:00
|
|
|
those packages. See the "Making LAMMPS"_Section_start.html#start_3
|
2011-06-09 05:46:03 +08:00
|
|
|
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-08-26 00:46:23 +08:00
|
|
|
use the "suffix"_suffix.html command in your input script.
|
2011-06-09 05:46:03 +08:00
|
|
|
|
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-06-09 05:46:03 +08:00
|
|
|
|
|
|
|
:line
|
|
|
|
|
2008-01-22 02:12:34 +08:00
|
|
|
[Mixing, shift, table, tail correction, restart, rRESPA info]:
|
2007-06-25 23:17:40 +08:00
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
These pair styles do not support mixing. Thus, coefficients for all
|
|
|
|
I,J pairs must be specified explicitly.
|
2007-06-26 08:03:39 +08:00
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
These styles support the "pair_modify"_pair_modify.html shift option
|
|
|
|
for the energy of the exp() and 1/r^6 portion of the pair interaction.
|
2007-06-26 08:03:39 +08:00
|
|
|
|
|
|
|
The {buck/coul/long} pair style does not support the
|
|
|
|
"pair_modify"_pair_modify.html table option since a tabulation
|
|
|
|
capability has not yet been added to this potential.
|
|
|
|
|
2010-12-02 00:56:36 +08:00
|
|
|
These styles support the pair_modify tail option for adding long-range
|
|
|
|
tail corrections to energy and pressure for the A,C terms in the
|
|
|
|
pair interaction.
|
2007-06-25 23:17:40 +08:00
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
These styles write their 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-06-26 08:03:39 +08:00
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
These styles can only be used via the {pair} keyword of the "run_style
|
|
|
|
respa"_run_style.html command. They do not support the {inner},
|
|
|
|
{middle}, {outer} keywords.
|
2007-10-04 08:21:14 +08:00
|
|
|
|
2007-06-26 08:03:39 +08:00
|
|
|
[Restrictions:]
|
|
|
|
|
2011-08-27 02:53:00 +08:00
|
|
|
The {buck/coul/long} style is part of the KSPACE package. It is only
|
|
|
|
enabled if LAMMPS was built with that package (which it is by
|
2011-08-26 00:46:23 +08:00
|
|
|
default). See the "Making LAMMPS"_Section_start.html#start_3 section
|
|
|
|
for more info.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
2009-06-05 00:55:20 +08:00
|
|
|
"pair_coeff"_pair_coeff.html, "pair_style born"_pair_born.html
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Default:] none
|