lammps/doc/pair_sdk.html

167 lines
6.4 KiB
HTML
Raw Normal View History

<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 lj/sdk command
</H3>
<H3>pair_style lj/sdk/gpu command
</H3>
<H3>pair_style lj/sdk/omp command
</H3>
<H3>pair_style lj/sdk/coul/long command
</H3>
<H3>pair_style lj/sdk/coul/long/gpu command
</H3>
<H3>pair_style lj/sdk/coul/long/omp command
</H3>
<P><B>Syntax:</B>
</P>
<PRE>pair_style style args
</PRE>
<UL><LI>style = <I>lj/sdk</I> or <I>lj/sdk/coul/long</I>
<LI>args = list of arguments for a particular style
</UL>
<PRE> <I>lj/sdk</I> args = cutoff
cutoff = global cutoff for Lennard Jones interactions (distance units)
<I>lj/sdk/coul/long</I> args = cutoff (cutoff2)
cutoff = global cutoff for LJ (and Coulombic if only 1 arg) (distance units)
cutoff2 = global cutoff for Coulombic (optional) (distance units)
</PRE>
<P><B>Examples:</B>
</P>
<PRE>pair_style lj/sdk 2.5
pair_coeff 1 1 lj12_6 1 1.1 2.8
</PRE>
<PRE>pair_style lj/sdk/coul/long 10.0
pair_style lj/sdk/coul/long 10.0 12.0
pair_coeff 1 1 lj9_6 100.0 3.5 12.0
</PRE>
<P><B>Description:</B>
</P>
<P>The <I>lj/sdk</I> styles compute a 9/6, 12/4, or 12/6 Lennard-Jones potential,
given by
</P>
<CENTER><IMG SRC = "Eqs/pair_cmm.jpg">
</CENTER>
<P>as required for the SDK Coarse-grained MD parametrization discussed in
<A HREF = "#Shinoda">(Shinoda)</A> and <A HREF = "#DeVane">(DeVane)</A>. Rc is the cutoff.
</P>
<P>Style <I>lj/sdk/coul/long</I> computes the adds Coulombic interactions
with an additional damping factor applied so it can be used in
conjunction with the <A HREF = "kspace_style.html">kspace_style</A> command and
its <I>ewald</I> or <I>pppm</I> or <I>pppm/cg</I> 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.
</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>
commands, or by mixing as described below:
</P>
<UL><LI>cg_type (lj9_6, lj12_4, or lj12_6)
<LI>epsilon (energy units)
<LI>sigma (distance units)
<LI>cutoff1 (distance units)
</UL>
<P>Note that sigma is defined in the LJ formula as the zero-crossing
distance for the potential, not as the energy minimum. The prefactors
are chosen so that the potential minimum is at -epsilon.
</P>
<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>
<P>For <I>lj/sdk/coul/long</I> 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.
</P>
<HR>
<P>Styles with a <I>cuda</I>, <I>gpu</I>, <I>omp</I> or <I>opt</I> 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 <A HREF = "Section_accelerate.html">Section_accelerate</A> of the
manual. The accelerated styles take the same arguments and should
produce the same results, except for round-off and precision issues.
</P>
<P>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 <A HREF = "Section_start.html#start_3">Making LAMMPS</A>
section for more info.
</P>
<P>You can specify the accelerated styles explicitly in your input script
by including their suffix, or you can use the <A HREF = "Section_start.html#start_7">-suffix command-line
switch</A> when you invoke LAMMPS, or you can
use the <A HREF = "suffix.html">suffix</A> command in your input script.
</P>
<P>See <A HREF = "Section_accelerate.html">Section_accelerate</A> of the manual for
more instructions on how to use the accelerated styles effectively.
</P>
<HR>
<P><B>Mixing, shift, table, tail correction, restart, and rRESPA info</B>:
</P>
<P>For atom type pairs I,J and I != J, the epsilon and sigma coefficients
and cutoff distance for all of the lj/sdk pair styles <I>cannot</I> be mixed,
since different pairs may have different exponents. So all parameters
for all pairs have to be specified explicitly through the "pair_coeff"
command. Defining then in a data file is also not supported, due to
limitations of that file format.
</P>
<P>All of the lj/sdk pair styles support the
<A HREF = "pair_modify.html">pair_modify</A> shift option for the energy of the
Lennard-Jones portion of the pair interaction.
</P>
<P>The <I>lj/sdk/coul/long</I> pair styles support the
<A HREF = "pair_modify.html">pair_modify</A> table option since they can tabulate
the short-range portion of the long-range Coulombic interaction.
</P>
<P>All of the lj/sdk pair styles write their 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>
<P>The lj/sdk and lj/cut/coul/long pair styles do not support
the use of the <I>inner</I>, <I>middle</I>, and <I>outer</I> keywords of the <A HREF = "run_style.html">run_style
respa</A> command.
</P>
<HR>
<P><B>Restrictions:</B>
</P>
<P>All of the lj/sdk pair styles are part of the USER-CG-CMM package.
The <I>lj/sdk/coul/long</I> style also requires the KSPACE package to be
built (which is enabled by default). They are only enabled if LAMMPS
was built with that package. See the <A HREF = "Section_start.html#start_3">Making
LAMMPS</A> section for more info.
</P>
<P><B>Related commands:</B>
</P>
<P><A HREF = "pair_coeff.html">pair_coeff</A>, <A HREF = "angle_sdk.html">angle_style sdk</A>
</P>
<P><B>Default:</B> none
</P>
<HR>
<A NAME = "Shinoda"></A>
<P><B>(Shinoda)</B> Shinoda, DeVane, Klein, Mol Sim, 33, 27 (2007).
</P>
<A NAME = "DeVane"></A>
<P><B>(DeVane)</B> Shinoda, DeVane, Klein, Soft Matter, 4, 2453-2462 (2008).
</P>
</HTML>