git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14711 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -143,13 +143,14 @@
|
||||
c_ID[I] = Ith column of global array calculated by a compute with ID
|
||||
f_ID = global vector calculated by a fix with ID
|
||||
f_ID[I] = Ith column of global array calculated by a fix with ID
|
||||
v_name = vector calculated by an vector-style variable with name
|
||||
</pre></div>
|
||||
</div>
|
||||
</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 slice 1 100 10 c_msdmol[4]
|
||||
compute 1 all slice 301 400 1 c_msdmol[4]
|
||||
compute 1 all slice 301 400 1 c_msdmol[4] v_myVec
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@ -158,9 +159,9 @@ compute 1 all slice 301 400 1 c_msdmol[4]
|
||||
<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.
|
||||
<a class="reference internal" href="compute.html"><em>Computes</em></a> and <a class="reference internal" href="fix.html"><em>fixes</em></a> may generate any of the
|
||||
three kinds of quantities. <a class="reference internal" href="variable.html"><em>Variables</em></a> do not generate
|
||||
global vectors. The group specified with this command is ignored.</p>
|
||||
<a class="reference internal" href="compute.html"><em>Computes</em></a> and <a class="reference internal" href="fix.html"><em>fixes</em></a> and vector-style
|
||||
<a class="reference internal" href="variable.html"><em>variables</em></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
|
||||
@ -187,6 +188,14 @@ 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 <a class="reference internal" href="Section_modify.html"><em>add them to LAMMPS</em></a>.</p>
|
||||
<p>If an input value begins with “<a href="#id5"><span class="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 <a class="reference internal" href="variable.html"><em>variable</em></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
|
||||
@ -201,15 +210,16 @@ These values can be used by any command that uses global vector or
|
||||
array 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 or array values calculated by this compute are simply
|
||||
copies of values generated by computes or fixes 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”,
|
||||
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”.</p>
|
||||
array values calculated by this compute are “extensive”. Values
|
||||
produced by a variable are treated as intensive.</p>
|
||||
<p>The vector or array values will be in whatever <a class="reference internal" href="units.html"><em>units</em></a> the
|
||||
input quantities are in.</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user