1 "LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
3 :link(lws,http://lammps.sandia.gov)
5 :link(lc,Section_commands.html#comm)
9 angle_style cosine/squared command :h3
10 angle_style cosine/squared/omp command :h3
14 angle_style cosine/squared :pre
18 angle_style cosine/squared
19 angle_coeff 2*4 75.0 100.0 :pre
23 The {cosine/squared} angle style uses the potential
25 :c,image(Eqs/angle_cosine_squared.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:
38 Theta0 is specified in degrees, but LAMMPS converts it to radians
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
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.
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.
74 "angle_coeff"_angle_coeff.html