forked from lijiext/lammps
112 lines
3.9 KiB
Plaintext
112 lines
3.9 KiB
Plaintext
"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
|
|
|
|
dihedral_style command :h3
|
|
|
|
[Syntax:]
|
|
|
|
dihedral_style style :pre
|
|
|
|
style = {none} or {hybrid} or {charmm} or {class2} or {harmonic} or {helix} or \
|
|
{multi/harmonic} or {opls} :ul
|
|
|
|
[Examples:]
|
|
|
|
dihedral_style harmonic
|
|
dihedral_style multi/harmonic
|
|
dihedral_style hybrid harmonic charmm :pre
|
|
|
|
[Description:]
|
|
|
|
Set the formula(s) LAMMPS uses to compute dihedral interactions
|
|
between quadruplets of atoms, which remain in force for the duration
|
|
of the simulation. The list of dihedral quadruplets is read in by a
|
|
"read_data"_read_data.html or "read_restart"_read_restart.html command
|
|
from a data or restart file.
|
|
|
|
Hybrid models where dihedrals are computed using different dihedral
|
|
potentials can be setup using the {hybrid} dihedral style.
|
|
|
|
The coefficients associated with a dihedral style can be specified in
|
|
a data or restart file or via the "dihedral_coeff"_dihedral_coeff.html
|
|
command.
|
|
|
|
All dihedral potentials store their coefficient data in binary restart
|
|
files which means dihedral_style and
|
|
"dihedral_coeff"_dihedral_coeff.html commands do not need to be
|
|
re-specified in an input script that restarts a simulation. See the
|
|
"read_restart"_read_restart.html command for details on how to do
|
|
this. The one exception is that dihedral_style {hybrid} only stores
|
|
the list of sub-styles in the restart file; dihedral coefficients need
|
|
to be re-specified.
|
|
|
|
IMPORTANT NOTE: When both a dihedral and pair style is defined, the
|
|
"special_bonds"_special_bonds.html command often needs to be used to
|
|
turn off (or weight) the pairwise interaction that would otherwise
|
|
exist between 4 bonded atoms.
|
|
|
|
In the formulas listed for each dihedral style, {phi} is the torsional
|
|
angle defined by the quadruplet of atoms.
|
|
|
|
Here are some important points to take note of when defining the
|
|
LAMMPS dihedral coefficients in the formulas that follow so that they
|
|
are compatible with other force fields:
|
|
|
|
The LAMMPS convention is that the trans position = 180 degrees, while
|
|
in some force fields trans = 0 degrees. :ulb,l
|
|
|
|
Some force fields reverse the sign convention on {d}. :l
|
|
|
|
Some force fields divide/multiply {K} by the number of multiple
|
|
torsions that contain the j-k bond in an i-j-k-l torsion. :l
|
|
|
|
Some force fields let {n} be positive or negative which corresponds to
|
|
{d} = 1 or -1 for the harmonic style. :ule,l
|
|
|
|
:line
|
|
|
|
Here is an alphabetic list of dihedral styles defined in LAMMPS. Click on
|
|
the style to display the formula it computes and coefficients
|
|
specified by the associated "dihedral_coeff"_dihedral_coeff.html command:
|
|
|
|
"dihedral_style none"_dihedral_none.html - turn off dihedral interactions
|
|
"dihedral_style hybrid"_dihedral_hybrid.html - define multiple styles of dihedral interactions :ul
|
|
|
|
"dihedral_style charmm"_dihedral_charmm.html - CHARMM dihedral
|
|
"dihedral_style class2"_dihedral_class2.html - COMPASS (class 2) dihedral
|
|
"dihedral_style harmonic"_dihedral_harmonic.html - harmonic dihedral
|
|
"dihedral_style helix"_dihedral_helix.html - helix dihedral
|
|
"dihedral_style multi/harmonic"_dihedral_multi_harmonic.html - multi-harmonic dihedral
|
|
"dihedral_style opls"_dihedral_opls.html - OPLS dihedral :ul
|
|
|
|
There are also additional dihedral styles submitted by users which are
|
|
included in the LAMMPS distribution. The list of these with links to
|
|
the individual styles are given in the dihedral section of "this
|
|
page"_Section_commands.html#3_5.
|
|
|
|
:line
|
|
|
|
[Restrictions:]
|
|
|
|
Dihedral styles can only be set for atom styles that allow dihedrals
|
|
to be defined.
|
|
|
|
Most dihedral styles are part of the "molecular" package. They are
|
|
only enabled if LAMMPS was built with that package. See the "Making
|
|
LAMMPS"_Section_start.html#2_3 section for more info on packages. The
|
|
doc pages for individual dihedral potentials tell if it is part of a
|
|
package.
|
|
|
|
[Related commands:]
|
|
|
|
"dihedral_coeff"_dihedral_coeff.html
|
|
|
|
[Default:]
|
|
|
|
dihedral_style none
|