<spanid="index-0"></span><h1>compute_modify command<aclass="headerlink"href="#compute-modify-command"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="syntax">
<h2>Syntax<aclass="headerlink"href="#syntax"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-python"><divclass="highlight"><pre>compute_modify compute-ID keyword value ...
</pre></div>
</div>
<ulclass="simple">
<li>compute-ID = ID of the compute to modify</li>
<li>one or more keyword/value pairs may be listed</li>
<li>keyword = <em>extra</em> or <em>dynamic</em></li>
</ul>
<preclass="literal-block">
<em>extra</em> value = N
N = # of extra degrees of freedom to subtract
<em>dynamic</em> value = <em>yes</em> or <em>no</em>
yes/no = do or do not recompute the number of atoms contributing to the temperature
<em>thermo</em> value = <em>yes</em> or <em>no</em>
yes/no = do or do not add contributions from fixes to the potential energy
</pre>
</div>
<divclass="section"id="examples">
<h2>Examples<aclass="headerlink"href="#examples"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-python"><divclass="highlight"><pre>compute_modify myTemp extra 0
compute_modify newtemp dynamic yes extra 600
</pre></div>
</div>
</div>
<divclass="section"id="description">
<h2>Description<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>Modify one or more parameters of a previously defined compute. Not
all compute styles support all parameters.</p>
<p>The <em>extra</em> keyword refers to how many degrees-of-freedom are
subtracted (typically from 3N) as a normalizing factor in a
temperature computation. Only computes that compute a temperature use
this option. The default is 2 or 3 for <aclass="reference internal"href="dimension.html"><em>2d or 3d systems</em></a> which is a correction factor for an ensemble
of velocities with zero total linear momentum. You can use a negative
number for the <em>extra</em> parameter if you need to add
degrees-of-freedom. See the <aclass="reference internal"href="compute_temp_asphere.html"><em>compute temp/asphere</em></a> command for an example.</p>
<p>The <em>dynamic</em> keyword determines whether the number of atoms N in the
compute group is re-computed each time a temperature is computed.
Only compute styles that compute a temperature use this option. By
default, N is assumed to be constant. If you are adding atoms to the
system (see the <aclass="reference internal"href="fix_pour.html"><em>fix pour</em></a> or <aclass="reference internal"href="fix_deposit.html"><em>fix deposit</em></a> commands) or expect atoms to be lost
(e.g. due to evaporation), then this option should be used to insure
the temperature is correctly normalized.</p>
<p>The <em>thermo</em> keyword determines whether the potential energy
contribution calculated by some <aclass="reference internal"href="fix.html"><em>fixes</em></a> is added to the
potential energy calculated by the compute. Currently, only the
compute of style <em>pe</em> uses this option. See the doc pages for
<aclass="reference internal"href="fix.html"><em>individual fixes</em></a> for details.</p>
</div>
<divclass="section"id="restrictions">
<h2>Restrictions<aclass="headerlink"href="#restrictions"title="Permalink to this headline">¶</a></h2>
<blockquote>
<div>none</div></blockquote>
</div>
<divclass="section"id="related-commands">
<h2>Related commands<aclass="headerlink"href="#related-commands"title="Permalink to this headline">¶</a></h2>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.