<p>Define a calculation that “slices” one or more vector inputs into
smaller vectors, one per listed input. The inputs can be global
quantities; they cannot be per-atom or local quantities.
<aclass="reference internal"href="compute.html"><spanclass="doc">Computes</span></a> and <aclass="reference internal"href="fix.html"><spanclass="doc">fixes</span></a> and vector-style
<aclass="reference internal"href="variable.html"><spanclass="doc">variables</span></a> can generate such global quantities. The
group specified with this command is ignored.</p>
<p>The values extracted from the input vector(s) are determined by the
<em>Nstart</em>, <em>Nstop</em>, and <em>Nskip</em> parameters. The elements of an input
vector of length N are indexed from 1 to N. Starting at element
<em>Nstart</em>, every Mth element is extracted, where M = <em>Nskip</em>, until
element <em>Nstop</em> is reached. The extracted quantities are stored as a
vector, which is typically shorter than the input vector.</p>
<p>Each listed input is operated on independently to produce one output
vector. Each listed input must be a global vector or column of a
global array calculated by another <aclass="reference internal"href="compute.html"><spanclass="doc">compute</span></a> or
<p>If an input value begins with “<ahref="#id1"><spanclass="problematic"id="id2">c_</span></a>”, a compute ID must follow which has
been previously defined in the input script and which generates a
global vector or array. See the individual <aclass="reference internal"href="compute.html"><spanclass="doc">compute</span></a> doc
page for details. If no bracketed integer is appended, the vector
calculated by the compute is used. If a bracketed integer is
appended, the Ith column of the array calculated by the compute is
used. Users can also write code for their own compute styles and <aclass="reference internal"href="Section_modify.html"><spanclass="doc">add them to LAMMPS</span></a>.</p>
<p>If a value begins with “<ahref="#id3"><spanclass="problematic"id="id4">f_</span></a>”, a fix ID must follow which has been
previously defined in the input script and which generates a global
vector or array. See the individual <aclass="reference internal"href="fix.html"><spanclass="doc">fix</span></a> doc page for
details. Note that some fixes only produce their values on certain
timesteps, which must be compatible with when compute slice references
the values, else an error results. If no bracketed integer is
appended, the vector calculated by the fix is used. If a bracketed
integer is appended, the Ith column of the array calculated by the fix
is used. Users can also write code for their own fix style and <aclass="reference internal"href="Section_modify.html"><spanclass="doc">add them to LAMMPS</span></a>.</p>
<p>If an input value begins with “<ahref="#id5"><spanclass="problematic"id="id6">v_</span></a>”, a variable name must follow which
has been previously defined in the input script. Only vector-style
variables can be referenced. See the <aclass="reference internal"href="variable.html"><spanclass="doc">variable</span></a> command
for details. Note that variables of style <em>vector</em> define a formula
which can reference individual atom properties or thermodynamic
keywords, or they can invoke other computes, fixes, or variables when
they are evaluated, so this is a very general means of specifying
quantities to slice.</p>
<p>If a single input is specified this compute produces a global vector,
even if the length of the vector is 1. If multiple inputs are
specified, then a global array of values is produced, with the number
of columns equal to the number of inputs specified.</p>
<hrclass="docutils"/>
<p><strong>Output info:</strong></p>
<p>This compute calculates a global vector if a single input value is
specified or a global array with N columns where N is the number of
inputs. The length of the vector or the number of rows in the array
is equal to the number of values extracted from each input vector.
These values can be used by any command that uses global vector or
array values from a compute as input. See <aclass="reference internal"href="Section_howto.html#howto-15"><spanclass="std std-ref">this section</span></a> for an overview of LAMMPS output
options.</p>
<p>The vector or array values calculated by this compute are simply
copies of values generated by computes or fixes or variables that are
input vectors to this compute. If there is a single input vector of
intensive and/or extensive values, then each value in the vector of
values calculated by this compute will be “intensive” or “extensive”,
depending on the corresponding input value. If there are multiple
input vectors, and all the values in them are intensive, then the
array values calculated by this compute are “intensive”. If there are
multiple input vectors, and any value in them is extensive, then the
array values calculated by this compute are “extensive”. Values
produced by a variable are treated as intensive.</p>
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>.