git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7257 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2011-12-01 14:58:26 +00:00
parent 70a85bddfd
commit 750c4b07bb
6 changed files with 185 additions and 50 deletions

View File

@ -211,28 +211,38 @@ have questions.
<H4>USER-CG-CMM package <H4>USER-CG-CMM package
</H4> </H4>
<P>This package implements 4 commands which can be used in a LAMMPS input <P>This package implements 3 commands which can be used in a LAMMPS input
script: script:
</P> </P>
<UL><LI>pair_style cg/cmm <UL><LI>pair_style lj/sdk
<LI>pair_style cg/cmm/coul/cut <LI>pair_style lj/sdk/coul/long
<LI>pair_style cg/cmm/coul/long <LI>angle_style sdk
<LI>angle_style cg/cmm
</UL> </UL>
<P>These styles allow coarse grained MD simulations with the <P>These styles allow coarse grained MD simulations with the
parametrization of Shinoda, DeVane, Klein, Mol Sim, 33, 27 (2007) parametrization of Shinoda, DeVane, Klein, Mol Sim, 33, 27 (2007)
(cg/cmm), with extensions to simulate ionic liquids, electrolytes, (SDK), with extensions to simulate ionic liquids, electrolytes,
lipids and charged amino acids (to be published soon). lipids and charged amino acids.
</P> </P>
<P>See the doc pages for these commands for details. <P>See the doc pages for these commands for details.
</P> </P>
<P>There are example scripts for using this package in <P>There are example scripts for using this package in
examples/USER/cg-cmm. examples/USER/cg-cmm.
</P> </P>
<P>This is the second generation implementation reducing the the clutter
of the previous version. For many systems with long range
electrostatics, it will be faster to use pair_style hybrid/overlay
with lj/sdk and coul/long instead of the combined lj/sdk/coul/long
style, since the number of charged atom types is usually small. To
exploit this property, the use of the kspace_style pppm/cg is
recommended over regular pppm. For all new styles, input file backward
compatibility is provided. The old implementation is still available
through appending the /old suffix. These will be discontinued and
removed after the new implementation has been fully validated.
</P>
<P>The current version of this package should be considered beta <P>The current version of this package should be considered beta
quality. The CG potentials work correctly and well, but there will be quality. The CG potentials work correctly for "normal" situations, but
optimizations, cleanups and additional tools to aid in setting up and have not been testing with all kinds of potential parameters and
analyzing simulations with this package added in the next months. simuation systems.
</P> </P>
<P>The person who created this package is Axel Kohlmeyer at Temple U <P>The person who created this package is Axel Kohlmeyer at Temple U
(akohlmey at gmail.com). Contact him directly if you have questions. (akohlmey at gmail.com). Contact him directly if you have questions.

View File

@ -199,28 +199,38 @@ have questions.
USER-CG-CMM package :h4 USER-CG-CMM package :h4
This package implements 4 commands which can be used in a LAMMPS input This package implements 3 commands which can be used in a LAMMPS input
script: script:
pair_style cg/cmm pair_style lj/sdk
pair_style cg/cmm/coul/cut pair_style lj/sdk/coul/long
pair_style cg/cmm/coul/long angle_style sdk :ul
angle_style cg/cmm :ul
These styles allow coarse grained MD simulations with the These styles allow coarse grained MD simulations with the
parametrization of Shinoda, DeVane, Klein, Mol Sim, 33, 27 (2007) parametrization of Shinoda, DeVane, Klein, Mol Sim, 33, 27 (2007)
(cg/cmm), with extensions to simulate ionic liquids, electrolytes, (SDK), with extensions to simulate ionic liquids, electrolytes,
lipids and charged amino acids (to be published soon). lipids and charged amino acids.
See the doc pages for these commands for details. See the doc pages for these commands for details.
There are example scripts for using this package in There are example scripts for using this package in
examples/USER/cg-cmm. examples/USER/cg-cmm.
This is the second generation implementation reducing the the clutter
of the previous version. For many systems with long range
electrostatics, it will be faster to use pair_style hybrid/overlay
with lj/sdk and coul/long instead of the combined lj/sdk/coul/long
style, since the number of charged atom types is usually small. To
exploit this property, the use of the kspace_style pppm/cg is
recommended over regular pppm. For all new styles, input file backward
compatibility is provided. The old implementation is still available
through appending the /old suffix. These will be discontinued and
removed after the new implementation has been fully validated.
The current version of this package should be considered beta The current version of this package should be considered beta
quality. The CG potentials work correctly and well, but there will be quality. The CG potentials work correctly for "normal" situations, but
optimizations, cleanups and additional tools to aid in setting up and have not been testing with all kinds of potential parameters and
analyzing simulations with this package added in the next months. simuation systems.
The person who created this package is Axel Kohlmeyer at Temple U The person who created this package is Axel Kohlmeyer at Temple U
(akohlmey at gmail.com). Contact him directly if you have questions. (akohlmey at gmail.com). Contact him directly if you have questions.

View File

@ -13,9 +13,14 @@
</H3> </H3>
<H3>pair_style gauss/omp command <H3>pair_style gauss/omp command
</H3> </H3>
<H3>pair_style gauss/cut command
</H3>
<H3>pair_style gauss/cut/omp command
</H3>
<P><B>Syntax:</B> <P><B>Syntax:</B>
</P> </P>
<PRE>pair_style gauss cutoff <PRE>pair_style gauss cutoff
pair_style gauss/cut cutoff
</PRE> </PRE>
<UL><LI>cutoff = global cutoff for Gauss interactions (distance units) <UL><LI>cutoff = global cutoff for Gauss interactions (distance units)
</UL> </UL>
@ -25,6 +30,9 @@
pair_coeff * * 1.0 0.9 pair_coeff * * 1.0 0.9
pair_coeff 1 4 1.0 0.9 10.0 pair_coeff 1 4 1.0 0.9 10.0
</PRE> </PRE>
<PRE>pair_style gauss/cut 3.5
pair_coeff 1 4 0.2805 1.45 0.112
</PRE>
<P><B>Description:</B> <P><B>Description:</B>
</P> </P>
<P>Style <I>gauss</I> computes a tethering potential of the form <P>Style <I>gauss</I> computes a tethering potential of the form
@ -47,12 +55,38 @@ commands:
<P>The last coefficient is optional. If not specified, the global cutoff <P>The last coefficient is optional. If not specified, the global cutoff
is used. is used.
</P> </P>
<P>Style <I>gauss/cut</I> computes a generalized Gaussian interaction potential
between pairs of particles:
</P>
<CENTER><IMG SRC = "Eqs/pair_gauss_cut.jpg">
</CENTER>
<P>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 <A HREF = "#Lenart">(Lenart)</A> and of surfactants
<A HREF = "#Jusufi">(Jusufi)</A>. 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.
</P>
<P>The following coefficients must be defined for each pair of atom types
via the <A HREF = "pair_coeff.html">pair_coeff</A> command as in the example 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:
</P>
<UL><LI>H (energy * distance units)
<LI>r_mh (distance units)
<LI>sigma_h (distance units)
</UL>
<P>The global cutoff (r_c) specified in the pair_style command is used.
</P>
<HR> <HR>
<P>Styles with a <I>cuda</I>, <I>gpu</I>, <I>omp</I>, or <I>opt</I> suffix are functionally <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 the same as the corresponding style without the suffix. They have
been optimized to run faster, depending on your available hardware, been optimized to run faster, depending on your available hardware, as
as discussed in <A HREF = "Section_accelerate.html">this section</A> of the manual. discussed in <A HREF = "Section_accelerate.html">this section</A> of the manual.
The accelerated styles take the same arguments and should produce the The accelerated styles take the same arguments and should produce the
same results, except for round-off and precision issues. same results, except for round-off and precision issues.
</P> </P>
@ -73,13 +107,17 @@ instructions on how to use the accelerated styles effectively.
<P><B>Mixing, shift, table, tail correction, restart, rRESPA info</B>: <P><B>Mixing, shift, table, tail correction, restart, rRESPA info</B>:
</P> </P>
<P>This pair style does not support mixing. Thus, coefficients for all <P>These pair style do not support mixing. Thus, coefficients for all
I,J pairs must be specified explicitly. I,J pairs must be specified explicitly.
</P> </P>
<P>This pair style does not support the <A HREF = "pair_modify.html">pair_modify</A> <P>The <I>gauss</I> style does not support the <A HREF = "pair_modify.html">pair_modify</A>
shift option. There is no effect due to the Gaussian well beyond the shift option. There is no effect due to the Gaussian well beyond the
cutoff; hence reasonable cutoffs need to be specified. cutoff; hence reasonable cutoffs need to be specified.
</P> </P>
<P>The <I>gauss/cut</I> style supports the <A HREF = "pair_modify.html">pair_modify</A> shift
option for the energy of the Gauss-potential portion of the pair
interaction.
</P>
<P>The <A HREF = "pair_modify.html">pair_modify</A> table and tail options are not <P>The <A HREF = "pair_modify.html">pair_modify</A> table and tail options are not
relevant for this pair style. relevant for this pair style.
</P> </P>
@ -95,7 +133,7 @@ to be specified in an input script that reads a restart file.
<A HREF = "run_style.html">run_style respa</A> command. It does not support the <A HREF = "run_style.html">run_style respa</A> command. It does not support the
<I>inner</I>, <I>middle</I>, <I>outer</I> keywords. <I>inner</I>, <I>middle</I>, <I>outer</I> keywords.
</P> </P>
<P>This pair style tallies an "occupancy" count of how many Gaussian-well <P>Thes <I>gauss</I> pair style tallies an "occupancy" count of how many Gaussian-well
sites have an atom within the distance at which the force is a maximum 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 <A HREF = "compute_pair.html">compute = sqrt(0.5/b). This quantity can be accessed via the <A HREF = "compute_pair.html">compute
pair</A> command as a vector of values of length 1. pair</A> command as a vector of values of length 1.
@ -109,11 +147,16 @@ thermo_style custom step temp epair v_occ
</PRE> </PRE>
<HR> <HR>
<P><B>Restrictions:</B> none <P><B>Restrictions:</B>
</P>
<P>The <I>gauss/cut</I> style is part of the "user-misc" package. It is only enabled
if LAMMPS is build with that package. See the <A HREF = "Section_start.html#3">Making of LAMMPS</A>
section for more info.
</P> </P>
<P><B>Related commands:</B> <P><B>Related commands:</B>
</P> </P>
<P><A HREF = "pair_coeff.html">pair_coeff</A> <P><A HREF = "pair_coeff.html">pair_coeff</A>,
<A HREF = "pair_coul_diel.html">pair_style coul/diel</A>
</P> </P>
<P><B>Default:</B> none <P><B>Default:</B> none
</P> </P>

View File

@ -8,10 +8,13 @@
pair_style gauss command :h3 pair_style gauss command :h3
pair_style gauss/omp command :h3 pair_style gauss/omp command :h3
pair_style gauss/cut command :h3
pair_style gauss/cut/omp command :h3
[Syntax:] [Syntax:]
pair_style gauss cutoff :pre pair_style gauss cutoff
pair_style gauss/cut cutoff :pre
cutoff = global cutoff for Gauss interactions (distance units) :ul cutoff = global cutoff for Gauss interactions (distance units) :ul
@ -21,6 +24,10 @@ pair_style gauss 12.0
pair_coeff * * 1.0 0.9 pair_coeff * * 1.0 0.9
pair_coeff 1 4 1.0 0.9 10.0 :pre pair_coeff 1 4 1.0 0.9 10.0 :pre
pair_style gauss/cut 3.5
pair_coeff 1 4 0.2805 1.45 0.112 :pre
[Description:] [Description:]
Style {gauss} computes a tethering potential of the form Style {gauss} computes a tethering potential of the form
@ -43,12 +50,38 @@ cutoff (distance units) :ul
The last coefficient is optional. If not specified, the global cutoff The last coefficient is optional. If not specified, the global cutoff
is used. is used.
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.
:line :line
Styles with a {cuda}, {gpu}, {omp}, or {opt} suffix are functionally Styles with a {cuda}, {gpu}, {omp}, or {opt} suffix are functionally
the same as the corresponding style without the suffix. They have the same as the corresponding style without the suffix. They have
been optimized to run faster, depending on your available hardware, been optimized to run faster, depending on your available hardware, as
as discussed in "this section"_Section_accelerate.html of the manual. discussed in "this section"_Section_accelerate.html of the manual.
The accelerated styles take the same arguments and should produce the The accelerated styles take the same arguments and should produce the
same results, except for round-off and precision issues. same results, except for round-off and precision issues.
@ -69,13 +102,17 @@ instructions on how to use the accelerated styles effectively.
[Mixing, shift, table, tail correction, restart, rRESPA info]: [Mixing, shift, table, tail correction, restart, rRESPA info]:
This pair style does not support mixing. Thus, coefficients for all These pair style do not support mixing. Thus, coefficients for all
I,J pairs must be specified explicitly. I,J pairs must be specified explicitly.
This pair style does not support the "pair_modify"_pair_modify.html The {gauss} style does not support the "pair_modify"_pair_modify.html
shift option. There is no effect due to the Gaussian well beyond the shift option. There is no effect due to the Gaussian well beyond the
cutoff; hence reasonable cutoffs need to be specified. cutoff; hence reasonable cutoffs need to be specified.
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.
The "pair_modify"_pair_modify.html table and tail options are not The "pair_modify"_pair_modify.html table and tail options are not
relevant for this pair style. relevant for this pair style.
@ -91,7 +128,7 @@ 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 "run_style respa"_run_style.html command. It does not support the
{inner}, {middle}, {outer} keywords. {inner}, {middle}, {outer} keywords.
This pair style tallies an "occupancy" count of how many Gaussian-well Thes {gauss} pair style tallies an "occupancy" count of how many Gaussian-well
sites have an atom within the distance at which the force is a maximum 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 = 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. pair"_compute_pair.html command as a vector of values of length 1.
@ -105,10 +142,15 @@ thermo_style custom step temp epair v_occ :pre
:line :line
[Restrictions:] none [Restrictions:]
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.
[Related commands:] [Related commands:]
"pair_coeff"_pair_coeff.html "pair_coeff"_pair_coeff.html,
"pair_style coul/diel"_pair_coul_diel.html
[Default:] none [Default:] none

View File

@ -11,20 +11,29 @@
<H3>pair_style tersoff command <H3>pair_style tersoff command
</H3> </H3>
<H3>pair_style tersoff/table command
</H3>
<H3>pair_style tersoff/cuda
</H3>
<H3>pair_style tersoff/omp
</H3>
<H3>pair_style tersoff/table/omp command
</H3>
<P><B>Syntax:</B> <P><B>Syntax:</B>
</P> </P>
<PRE>pair_style tersoff <PRE>pair_style style
</PRE>
<PRE>pair_style tersoff/cuda
</PRE>
<PRE>pair_style tersoff/omp
</PRE> </PRE>
<P>style = <I>tersoff</I> or <I>tersoff/table</I> or <I>tersoff/cuda</I> or <I>tersoff/omp</I> or <I>tersoff/table/omp</I>
</P>
<P><B>Examples:</B> <P><B>Examples:</B>
</P> </P>
<PRE>pair_style tersoff <PRE>pair_style tersoff
pair_coeff * * Si.tersoff Si pair_coeff * * Si.tersoff Si
pair_coeff * * SiC.tersoff Si C Si pair_coeff * * SiC.tersoff Si C Si
</PRE> </PRE>
<PRE>pair_style tersoff/table
pair_coeff * * SiCGe.tersoff Si(D)
</PRE>
<P><B>Description:</B> <P><B>Description:</B>
</P> </P>
<P>The <I>tersoff</I> style computes a 3-body Tersoff potential <P>The <I>tersoff</I> style computes a 3-body Tersoff potential
@ -36,6 +45,12 @@ pair_coeff * * SiC.tersoff Si C Si
The summations in the formula are over all neighbors J and K of atom I The summations in the formula are over all neighbors J and K of atom I
within a cutoff distance = R + D. within a cutoff distance = R + D.
</P> </P>
<P>The <I>tersoff/table</I> style uses tabulated forms for the two-body,
environment and angular functions. Linear interpolation is performed
between adjacent table entries. The table length is chosen to be
accurate within 10^-6 with respect to the <I>tersoff</I> style energy.
The <I>tersoff/table</I> should give better performance in terms of speed.
</P>
<P>Only a single pair_coeff command is used with the <I>tersoff</I> style <P>Only a single pair_coeff command is used with the <I>tersoff</I> style
which specifies a Tersoff potential file with parameters for all which specifies a Tersoff potential file with parameters for all
needed elements. These are mapped to LAMMPS atom types by specifying needed elements. These are mapped to LAMMPS atom types by specifying
@ -132,7 +147,8 @@ it reduces to the form of <A HREF = "#Albe">Albe et al.</A> when beta = 1 and m
Note that in the current Tersoff implementation in LAMMPS, m must be Note that in the current Tersoff implementation in LAMMPS, m must be
specified as either 3 or 1. Tersoff used a slightly different but specified as either 3 or 1. Tersoff used a slightly different but
equivalent form for alloys, which we will refer to as Tersoff_2 equivalent form for alloys, which we will refer to as Tersoff_2
potential <A HREF = "#Tersoff_2">(Tersoff_2)</A>. potential <A HREF = "#Tersoff_2">(Tersoff_2)</A>. The <I>tersoff/table</I> style implements
Teroff_2 parameterization only.
</P> </P>
<P>LAMMPS parameter values for Tersoff_2 can be obtained as follows: <P>LAMMPS parameter values for Tersoff_2 can be obtained as follows:
gamma_ijk = omega_ik, lambda3 = 0 and the value of gamma_ijk = omega_ik, lambda3 = 0 and the value of

View File

@ -7,12 +7,16 @@
:line :line
pair_style tersoff command :h3 pair_style tersoff command :h3
pair_style tersoff/table command :h3
pair_style tersoff/cuda :h3
pair_style tersoff/omp :h3
pair_style tersoff/table/omp command :h3
[Syntax:] [Syntax:]
pair_style tersoff :pre pair_style style :pre
pair_style tersoff/cuda :pre
pair_style tersoff/omp :pre style = {tersoff} or {tersoff/table} or {tersoff/cuda} or {tersoff/omp} or {tersoff/table/omp}
[Examples:] [Examples:]
@ -20,6 +24,9 @@ pair_style tersoff
pair_coeff * * Si.tersoff Si pair_coeff * * Si.tersoff Si
pair_coeff * * SiC.tersoff Si C Si :pre pair_coeff * * SiC.tersoff Si C Si :pre
pair_style tersoff/table
pair_coeff * * SiCGe.tersoff Si(D) :pre
[Description:] [Description:]
The {tersoff} style computes a 3-body Tersoff potential The {tersoff} style computes a 3-body Tersoff potential
@ -31,6 +38,12 @@ where f_R is a two-body term and f_A includes three-body interactions.
The summations in the formula are over all neighbors J and K of atom I The summations in the formula are over all neighbors J and K of atom I
within a cutoff distance = R + D. within a cutoff distance = R + D.
The {tersoff/table} style uses tabulated forms for the two-body,
environment and angular functions. Linear interpolation is performed
between adjacent table entries. The table length is chosen to be
accurate within 10^-6 with respect to the {tersoff} style energy.
The {tersoff/table} should give better performance in terms of speed.
Only a single pair_coeff command is used with the {tersoff} style Only a single pair_coeff command is used with the {tersoff} style
which specifies a Tersoff potential file with parameters for all which specifies a Tersoff potential file with parameters for all
needed elements. These are mapped to LAMMPS atom types by specifying needed elements. These are mapped to LAMMPS atom types by specifying
@ -127,7 +140,8 @@ it reduces to the form of "Albe et al."_#Albe when beta = 1 and m = 1.
Note that in the current Tersoff implementation in LAMMPS, m must be Note that in the current Tersoff implementation in LAMMPS, m must be
specified as either 3 or 1. Tersoff used a slightly different but specified as either 3 or 1. Tersoff used a slightly different but
equivalent form for alloys, which we will refer to as Tersoff_2 equivalent form for alloys, which we will refer to as Tersoff_2
potential "(Tersoff_2)"_#Tersoff_2. potential "(Tersoff_2)"_#Tersoff_2. The {tersoff/table} style implements
Teroff_2 parameterization only.
LAMMPS parameter values for Tersoff_2 can be obtained as follows: LAMMPS parameter values for Tersoff_2 can be obtained as follows:
gamma_ijk = omega_ik, lambda3 = 0 and the value of gamma_ijk = omega_ik, lambda3 = 0 and the value of