<span id="index-0"></span><h1>compute dihedral command<a class="headerlink" href="#compute-dihedral-command" title="Permalink to this headline">¶</a></h1>
<div class="section" id="syntax">
<h2>Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><div class="highlight"><pre>compute ID group-ID dihedral
</pre></div>
</div>
<ul class="simple">
<li>ID, group-ID are documented in <a class="reference internal" href="compute.html"><em>compute</em></a> command</li>
<li>dihedral = style name of this compute command</li>
</ul>
</div>
<div class="section" id="examples">
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><div class="highlight"><pre>compute 1 all dihedral
</pre></div>
</div>
</div>
<div class="section" id="description">
<h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
<p>Define a computation that extracts the dihedral energy calculated by
each of the dihedral sub-styles used in the <a class="reference internal" href="dihedral_hybrid.html"><em>dihedral_style hybrid</em></a> command. These values are made
accessible for output or further processing by other commands. The
group specified for this command is ignored.</p>
<p>This compute is useful when using <a class="reference internal" href="dihedral_hybrid.html"><em>dihedral_style hybrid</em></a> if you want to know the portion of the
total energy contributed by one or more of the hybrid sub-styles.</p>
<p><strong>Output info:</strong></p>
<p>This compute calculates a global vector of length N where N is the
number of sub_styles defined by the <a class="reference internal" href="dihedral_style.html"><em>dihedral_style hybrid</em></a> command. which can be accessed by indices
1-N. These values can be used by any command that uses global scalar
or vector values from a compute as input. See <a class="reference internal" href="Section_howto.html#howto-15"><span>this section</span></a> for an overview of LAMMPS output
options.</p>
<p>The vector values are “extensive” and will be in energy
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.