1.. index:: compute angle
2
3compute angle command
4=====================
5
6Syntax
7""""""
8
9.. parsed-literal::
10
11   compute ID group-ID angle
12
13* ID, group-ID are documented in :doc:`compute <compute>` command
14* angle = style name of this compute command
15
16Examples
17""""""""
18
19.. code-block:: LAMMPS
20
21   compute 1 all angle
22
23Description
24"""""""""""
25
26Define a computation that extracts the angle energy calculated by each of the
27angle sub-styles used in the :doc:`angle_style hybrid <angle_hybrid>` command.
28These values are made accessible for output or further processing by other
29commands.  The group specified for this command is ignored.
30
31This compute is useful when using :doc:`angle_style hybrid <angle_hybrid>` if
32you want to know the portion of the total energy contributed by one or more of
33the hybrid sub-styles.
34
35Output info
36"""""""""""
37
38This compute calculates a global vector of length N where N is the number of
39sub_styles defined by the :doc:`angle_style hybrid <angle_style>` command,
40which can be accessed by indices 1-N.  These values can be used by any command
41that uses global scalar or vector values from a compute as input.  See the
42:doc:`Howto output <Howto_output>` page for an overview of LAMMPS output
43options.
44
45The vector values are "extensive" and will be in energy
46:doc:`units <units>`.
47
48Restrictions
49""""""""""""
50
51none
52
53Related commands
54""""""""""""""""
55
56:doc:`compute pe <compute_pe>`, :doc:`compute pair <compute_pair>`
57
58Default
59"""""""
60
61none
62