<li>style = <em>none</em> or <em>hybrid</em> or <em>charmm</em> or <em>class2</em> or <em>cosine</em> or <em>cosine/squared</em> or <em>harmonic</em></li>
</ul>
</div>
<divclass="section"id="examples">
<h2>Examples</h2>
<preclass="literal-block">
angle_style harmonic
angle_style charmm
angle_style hybrid harmonic cosine
</pre>
</div>
<divclass="section"id="description">
<h2>Description</h2>
<p>Set the formula(s) LAMMPS uses to compute angle interactions between
triplets of atoms, which remain in force for the duration of the
simulation. The list of angle triplets 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 angles are computed using different angle
potentials can be setup using the <em>hybrid</em> angle style.</p>
<p>The coefficients associated with a angle style can be specified in a
data or restart file or via the <aclass="reference internal"href="angle_coeff.html"><spanclass="doc">angle_coeff</span></a> command.</p>
<p>All angle potentials store their coefficient data in binary restart
files which means angle_style and <aclass="reference internal"href="angle_coeff.html"><spanclass="doc">angle_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
angle_style <em>hybrid</em> only stores the list of sub-styles in the restart
file; angle coefficients need to be re-specified.</p>
<divclass="admonition note">
<pclass="first admonition-title">Note</p>
<pclass="last">When both an angle 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 3 bonded atoms.</p>
</div>
<p>In the formulas listed for each angle style, <em>theta</em> is the angle
between the 3 atoms in the angle.</p>
<hrclass="docutils"/>
<p>Here is an alphabetic list of angle styles defined in LAMMPS. Click on
the style to display the formula it computes and coefficients
specified by the associated <aclass="reference internal"href="angle_coeff.html"><spanclass="doc">angle_coeff</span></a> command.</p>
<p>Note that there are also additional angle 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 angle section of <aclass="reference internal"href="Section_commands.html#cmd-5"><spanclass="std std-ref">this page</span></a>.</p>
<ulclass="simple">
<li><aclass="reference internal"href="angle_none.html"><spanclass="doc">angle_style none</span></a> - turn off angle interactions</li>
<li><aclass="reference internal"href="angle_zero.html"><spanclass="doc">angle_style zero</span></a> - topology but no interactions</li>
<li><aclass="reference internal"href="angle_hybrid.html"><spanclass="doc">angle_style hybrid</span></a> - define multiple styles of angle interactions</li>
<li><aclass="reference internal"href="angle_table.html"><spanclass="doc">angle_style table</span></a> - tabulated by angle</li>
</ul>
</div>
<hrclass="docutils"/>
<divclass="section"id="restrictions">
<h2>Restrictions</h2>
<p>Angle styles can only be set for atom_styles that allow angles to be
defined.</p>
<p>Most angle 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 bond potentials tell if it is part of a
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>.