<li>style = <em>none</em> or <em>hybrid</em> or <em>charmm</em> or <em>class2</em> or <em>harmonic</em> or <em>helix</em> or <em>multi/harmonic</em> or <em>opls</em></li>
</ul>
</div>
<divclass="section"id="examples">
<h2>Examples</h2>
<preclass="literal-block">
dihedral_style harmonic
dihedral_style multi/harmonic
dihedral_style hybrid harmonic charmm
</pre>
</div>
<divclass="section"id="description">
<h2>Description</h2>
<p>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
<aclass="reference internal"href="read_data.html"><spanclass="doc">read_data</span></a> or <aclass="reference internal"href="read_restart.html"><spanclass="doc">read_restart</span></a> command
from a data or restart file.</p>
<p>Hybrid models where dihedrals are computed using different dihedral
potentials can be setup using the <em>hybrid</em> dihedral style.</p>
<p>The coefficients associated with a dihedral style can be specified in
a data or restart file or via the <aclass="reference internal"href="dihedral_coeff.html"><spanclass="doc">dihedral_coeff</span></a>
command.</p>
<p>All dihedral potentials store their coefficient data in binary restart
files which means dihedral_style and
<aclass="reference internal"href="dihedral_coeff.html"><spanclass="doc">dihedral_coeff</span></a> commands do not need to be
re-specified in an input script that restarts a simulation. See the
<aclass="reference internal"href="read_restart.html"><spanclass="doc">read_restart</span></a> command for details on how to do
this. The one exception is that dihedral_style <em>hybrid</em> only stores
the list of sub-styles in the restart file; dihedral coefficients need
to be re-specified.</p>
<divclass="admonition note">
<pclass="first admonition-title">Note</p>
<pclass="last">When both a dihedral and pair style is defined, the
<aclass="reference internal"href="special_bonds.html"><spanclass="doc">special_bonds</span></a> command often needs to be used to
turn off (or weight) the pairwise interaction that would otherwise
exist between 4 bonded atoms.</p>
</div>
<p>In the formulas listed for each dihedral style, <em>phi</em> is the torsional
angle defined by the quadruplet of atoms. This angle has a sign
<p>Dihedral styles can only be set for atom styles that allow dihedrals
to be defined.</p>
<p>Most dihedral styles are part of the MOLECULE package. They are only
enabled if LAMMPS was built with that package. See the <aclass="reference internal"href="Section_start.html#start-3"><spanclass="std std-ref">Making LAMMPS</span></a> section for more info on packages.
The doc pages for individual dihedral potentials tell if it is part of
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.