lammps/doc/angle_style.html

100 lines
3.8 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>angle_style command
</H3>
<P><B>Syntax:</B>
</P>
<PRE>angle_style style
</PRE>
<UL><LI>style = <I>none</I> or <I>hybrid</I> or <I>charmm</I> or <I>class2</I> or <I>cosine</I> or <I>cosine/squared</I> or <I>harmonic</I>
</UL>
<P><B>Examples:</B>
</P>
<PRE>angle_style harmonic
angle_style charmm
angle_style hybrid harmonic cosine
</PRE>
<P><B>Description:</B>
</P>
<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
<A HREF = "read_data.html">read_data</A> or <A HREF = "read_restart.html">read_restart</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 <I>hybrid</I> angle style.
</P>
<P>The coefficients associated with a angle style can be specified in a
data or restart file or via the <A HREF = "angle_coeff.html">angle_coeff</A> command.
</P>
<P>All angle potentials store their coefficient data in binary restart
files which means angle_style and <A HREF = "angle_coeff.html">angle_coeff</A>
commands do not need to be re-specified in an input script that
restarts a simulation. See the <A HREF = "read_restart.html">read_restart</A>
command for details on how to do this. The one exception is that
angle_style <I>hybrid</I> only stores the list of sub-styles in the restart
file; angle coefficients need to be re-specified.
</P>
<P>IMPORTANT NOTE: When both an angle and pair style is defined, the
<A HREF = "special_bonds.html">special_bonds</A> command often needs to be used to
turn off (or weight) the pairwise interaction that would otherwise
exist between 3 bonded atoms.
</P>
<P>In the formulas listed for each angle style, <I>theta</I> is the angle
between the 3 atoms in the angle.
</P>
<HR>
<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 <A HREF = "angle_coeff.html">angle_coeff</A> command:
</P>
<UL><LI><A HREF = "angle_none.html">angle_style none</A> - turn off angle interactions
<LI><A HREF = "angle_hybrid.html">angle_style hybrid</A> - define multiple styles of angle interactions
</UL>
<UL><LI><A HREF = "angle_charmm.html">angle_style charmm</A> - CHARMM angle
<LI><A HREF = "angle_class2.html">angle_style class2</A> - COMPASS (class 2) angle
<LI><A HREF = "angle_cosine.html">angle_style cosine</A> - cosine angle potential
<LI><A HREF = "angle_cosine_delta.html">angle_style cosine/delta</A> - difference of cosines angle potential
<LI><A HREF = "angle_cosine_squared.html">angle_style cosine/squared</A> - cosine squared angle potential
<LI><A HREF = "angle_harmonic.html">angle_style harmonic</A> - harmonic angle
<LI><A HREF = "angle_table.html">angle_style table</A> - tabulated by angle
</UL>
<P>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 <A HREF = "Section_commands.html#3_5">this
page</A>.
</P>
<HR>
<P><B>Restrictions:</B>
</P>
<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 "molecular" package. They are only
enabled if LAMMPS was built with that package. See the <A HREF = "Section_start.html#2_3">Making
LAMMPS</A> section for more info on packages. The
doc pages for individual bond potentials tell if it is part of a
package.
</P>
<P><B>Related commands:</B>
</P>
<P><A HREF = "angle_coeff.html">angle_coeff</A>
</P>
<P><B>Default:</B>
</P>
<PRE>angle_style none
</PRE>
</HTML>