git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@16053 f3b2605a-c512-4ea7-a41b...
[lammps.git] / doc / src / angle_cosine_delta.txt
blob6ab214508cbecf3e8d89866238361872d1693511
1 "LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
3 :link(lws,http://lammps.sandia.gov)
4 :link(ld,Manual.html)
5 :link(lc,Section_commands.html#comm)
7 :line
9 angle_style cosine/delta command :h3
10 angle_style cosine/delta/omp command :h3
12 [Syntax:]
14 angle_style cosine/delta :pre
16 [Examples:]
18 angle_style cosine/delta
19 angle_coeff 2*4 75.0 100.0 :pre
21 [Description:]
23 The {cosine/delta} angle style uses the potential
25 :c,image(Eqs/angle_cosine_delta.jpg)
27 where theta0 is the equilibrium value of the angle, and K is a
28 prefactor.  Note that the usual 1/2 factor is included in K.
30 The following coefficients must be defined for each angle type via the
31 "angle_coeff"_angle_coeff.html command as in the example above, or in
32 the data file or restart files read by the "read_data"_read_data.html
33 or "read_restart"_read_restart.html commands:
35 K (energy)
36 theta0 (degrees) :ul
38 Theta0 is specified in degrees, but LAMMPS converts it to radians
39 internally.
41 :line
43 Styles with a {gpu}, {intel}, {kk}, {omp}, or {opt} suffix are
44 functionally the same as the corresponding style without the suffix.
45 They have been optimized to run faster, depending on your available
46 hardware, as discussed in "Section 5"_Section_accelerate.html
47 of the manual.  The accelerated styles take the same arguments and
48 should produce the same results, except for round-off and precision
49 issues.
51 These accelerated styles are part of the GPU, USER-INTEL, KOKKOS,
52 USER-OMP and OPT packages, respectively.  They are only enabled if
53 LAMMPS was built with those packages.  See the "Making
54 LAMMPS"_Section_start.html#start_3 section for more info.
56 You can specify the accelerated styles explicitly in your input script
57 by including their suffix, or you can use the "-suffix command-line
58 switch"_Section_start.html#start_7 when you invoke LAMMPS, or you can
59 use the "suffix"_suffix.html command in your input script.
61 See "Section 5"_Section_accelerate.html of the manual for
62 more instructions on how to use the accelerated styles effectively.
64 :line
66 [Restrictions:]
68 This angle style can only be used if LAMMPS was built with the
69 MOLECULE package.  See the "Making
70 LAMMPS"_Section_start.html#start_3 section for more info on packages.
72 [Related commands:]
74 "angle_coeff"_angle_coeff.html, "angle_style
75 cosine/squared"_angle_cosine_squared.html
77 [Default:] none