2010-10-08 05:20:45 +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 gauss command :h3
|
2012-08-21 21:54:09 +08:00
|
|
|
pair_style gauss/gpu command :h3
|
2011-10-07 01:32:51 +08:00
|
|
|
pair_style gauss/omp command :h3
|
2011-12-01 22:58:26 +08:00
|
|
|
pair_style gauss/cut command :h3
|
|
|
|
pair_style gauss/cut/omp command :h3
|
2010-10-08 05:20:45 +08:00
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2011-12-01 22:58:26 +08:00
|
|
|
pair_style gauss cutoff
|
|
|
|
pair_style gauss/cut cutoff :pre
|
2010-10-08 05:20:45 +08:00
|
|
|
|
|
|
|
cutoff = global cutoff for Gauss interactions (distance units) :ul
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
pair_style gauss 12.0
|
|
|
|
pair_coeff * * 1.0 0.9
|
|
|
|
pair_coeff 1 4 1.0 0.9 10.0 :pre
|
|
|
|
|
2011-12-01 22:58:26 +08:00
|
|
|
pair_style gauss/cut 3.5
|
|
|
|
pair_coeff 1 4 0.2805 1.45 0.112 :pre
|
|
|
|
|
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
[Description:]
|
|
|
|
|
|
|
|
Style {gauss} computes a tethering potential of the form
|
|
|
|
|
|
|
|
:c,image(Eqs/pair_gauss.jpg)
|
|
|
|
|
|
|
|
between an atom and its corresponding tether site which will typically
|
|
|
|
be a frozen atom in the simulation. Rc is the cutoff.
|
|
|
|
|
|
|
|
The following coefficients must be defined for each pair of atom 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)
|
|
|
|
B (1/distance^2 units)
|
|
|
|
cutoff (distance units) :ul
|
|
|
|
|
|
|
|
The last coefficient is optional. If not specified, the global cutoff
|
|
|
|
is used.
|
|
|
|
|
2011-12-01 22:58:26 +08:00
|
|
|
Style {gauss/cut} computes a generalized Gaussian interaction potential
|
|
|
|
between pairs of particles:
|
|
|
|
|
|
|
|
:c,image(Eqs/pair_gauss_cut.jpg)
|
|
|
|
|
|
|
|
where H determines together with the standard deviation sigma_h the
|
|
|
|
peak height of the Gaussian function, and r_mh the peak position.
|
|
|
|
Examples of the use of the Gaussian potentials include implicit
|
|
|
|
solvent simulations of salt ions "(Lenart)"_#Lenart and of surfactants
|
|
|
|
"(Jusufi)"_#Jusufi. In these instances the Gaussian potential mimics
|
|
|
|
the hydration barrier between a pair of particles. The hydration
|
|
|
|
barrier is located at r_mh and has a width of sigma_h. The prefactor
|
|
|
|
determines the hight of the potential barrier.
|
|
|
|
|
|
|
|
The following coefficients must be defined for each pair of atom types
|
|
|
|
via the "pair_coeff"_pair_coeff.html command as in the example above,
|
|
|
|
or in the data file or restart files read by the
|
|
|
|
"read_data"_read_data.html or "read_restart"_read_restart.html
|
|
|
|
commands:
|
|
|
|
|
|
|
|
H (energy * distance units)
|
|
|
|
r_mh (distance units)
|
|
|
|
sigma_h (distance units) :ul
|
|
|
|
|
|
|
|
The global cutoff (r_c) specified in the pair_style command is used.
|
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
:line
|
|
|
|
|
2014-08-15 00:30:25 +08:00
|
|
|
Styles with a {cuda}, {gpu}, {intel}, {kk}, {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.
|
|
|
|
|
|
|
|
These accelerated styles are part of the USER-CUDA, GPU, USER-INTEL,
|
|
|
|
KOKKOS, 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.
|
2011-10-07 01:32:51 +08:00
|
|
|
|
|
|
|
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
|
|
|
switch7_Section_start.html#start_6 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
|
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
[Mixing, shift, table, tail correction, restart, rRESPA info]:
|
|
|
|
|
2013-05-31 23:40:10 +08:00
|
|
|
These pair styles do not support mixing. Thus, coefficients for all
|
2010-10-08 05:20:45 +08:00
|
|
|
I,J pairs must be specified explicitly.
|
|
|
|
|
2011-12-01 22:58:26 +08:00
|
|
|
The {gauss} style does not support the "pair_modify"_pair_modify.html
|
2010-10-08 05:20:45 +08:00
|
|
|
shift option. There is no effect due to the Gaussian well beyond the
|
|
|
|
cutoff; hence reasonable cutoffs need to be specified.
|
|
|
|
|
2011-12-01 22:58:26 +08:00
|
|
|
The {gauss/cut} style supports the "pair_modify"_pair_modify.html shift
|
|
|
|
option for the energy of the Gauss-potential portion of the pair
|
|
|
|
interaction.
|
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
The "pair_modify"_pair_modify.html table and tail options are not
|
2013-05-31 23:40:10 +08:00
|
|
|
relevant for these pair styles.
|
2010-10-08 05:20:45 +08:00
|
|
|
|
2013-05-31 23:40:10 +08:00
|
|
|
These pair styles write their information to "binary restart
|
2010-10-08 05:20:45 +08:00
|
|
|
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.
|
|
|
|
|
2013-05-31 23:40:10 +08:00
|
|
|
These pair styles can only be used via the {pair} keyword of the
|
|
|
|
"run_style respa"_run_style.html command. They do not support the
|
2010-10-08 05:20:45 +08:00
|
|
|
{inner}, {middle}, {outer} keywords.
|
|
|
|
|
2013-05-31 23:40:10 +08:00
|
|
|
The {gauss} pair style tallies an "occupancy" count of how many Gaussian-well
|
2010-10-23 05:24:33 +08:00
|
|
|
sites have an atom within the distance at which the force is a maximum
|
|
|
|
= sqrt(0.5/b). This quantity can be accessed via the "compute
|
|
|
|
pair"_compute_pair.html command as a vector of values of length 1.
|
|
|
|
|
|
|
|
To print this quantity to the log file (with a descriptive column
|
|
|
|
heading) the following commands could be included in an input script:
|
|
|
|
|
|
|
|
compute gauss all pair gauss
|
|
|
|
variable occ equal c_gauss\[1\]
|
|
|
|
thermo_style custom step temp epair v_occ :pre
|
|
|
|
|
2010-10-08 05:20:45 +08:00
|
|
|
:line
|
|
|
|
|
2011-12-01 22:58:26 +08:00
|
|
|
[Restrictions:]
|
|
|
|
|
2012-10-02 00:51:12 +08:00
|
|
|
The {gauss/cut} style is part of the "user-misc" package. It is only
|
|
|
|
enabled if LAMMPS is build with that package. See the "Making of
|
|
|
|
LAMMPS"_Section_start.html#3 section for more info.
|
2010-10-08 05:20:45 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
2011-12-01 22:58:26 +08:00
|
|
|
"pair_coeff"_pair_coeff.html,
|
|
|
|
"pair_style coul/diel"_pair_coul_diel.html
|
2010-10-08 05:20:45 +08:00
|
|
|
|
|
|
|
[Default:] none
|
2013-05-31 23:40:10 +08:00
|
|
|
|
|
|
|
:link(Lenart)
|
|
|
|
[(Lenart)] Lenart , Jusufi, and Panagiotopoulos, J Chem Phys, 126,
|
|
|
|
044509 (2007).
|
|
|
|
|
|
|
|
:link(Jusufi)
|
|
|
|
[(Jusufi)] Jusufi, Hynninen, and Panagiotopoulos, J Phys Chem B, 112,
|
|
|
|
13783 (2008).
|
|
|
|
|