<TR><TD><AHREF ="fix_ave_time.html">fix ave/time</A></TD><TD> global scalars/vectors</TD><TD> global scalar/vector/array, file</TD><TD></TD></TR>
<TR><TD><AHREF ="fix_ave_spatial.html">fix ave/spatial</A></TD><TD> per-atom vectors</TD><TD> global array, file</TD><TD></TD></TR>
<TR><TD><AHREF ="fix_ave_histo.html">fix ave/histo</A></TD><TD> global/per-atom/local scalars and vectors</TD><TD> global array, file</TD><TD></TD></TR>
<TR><TD><AHREF ="fix_ave_correlate.html">fix ave/correlate</A></TD><TD> global scalars</TD><TD> global array, file</TD><TD></TD></TR>
<LI>any of the <AHREF ="compute.html">compute */chunk</A> commands
</UL>
<P>Here, each of the 3 kinds of chunk-related commands is briefly
overviewed. Then some examples are given of how to compute different
properties with chunk commands.
</P>
<H5>Compute chunk/atom command:
</H5>
<P>This compute can assign atoms to chunks of various styles. Only atoms
in the specified group and optional specified region are assigned to a
chunk. Here are some possible chunk definitions:
</P>
<DIVALIGN=center><TABLEBORDER=1>
<TR><TD>atoms in same molecule </TD><TD> chunk ID = molecule ID </TD></TR>
<TR><TD>atoms of same atom type </TD><TD> chunk ID = atom type </TD></TR>
<TR><TD>all atoms with same atom property (charge, radius, etc) </TD><TD> chunk ID = output of compute property/atom </TD></TR>
<TR><TD>atoms in same cluster </TD><TD> chunk ID = output of <AHREF ="compute_cluster_atom.html">compute cluster/atom</A> command </TD></TR>
<TR><TD>atoms in same spatial bin </TD><TD> chunk ID = bin ID </TD></TR>
<TR><TD>atoms in same rigid body </TD><TD> chunk ID = molecule ID used to define rigid bodies </TD></TR>
<TR><TD>atoms with similar potential energy </TD><TD> chunk ID = output of <AHREF ="compute_pe_atom.html">compute pe/atom</A></TD></TR>
<TR><TD>atoms with same local defect structure </TD><TD> chunk ID = output of <AHREF ="compute_centro_atom.html">compute centro/atom</A> or <AHREF ="compute_coord_atom.html">compute coord/atom</A> command
</TD></TR></TABLE></DIV>
<P>Note that chunk IDs are integer values, so for atom properties or
computes that produce a floating point value, they will be truncated
to an integer. You could also use the compute in a variable that
scales the floating point value to spread it across multiple intergers.
</P>
<P>Spatial bins can be of various kinds, e.g. 1d bins = slabs, 2d bins =
pencils, 3d bins = boxes, spherical bins, cylindrical bins.
</P>
<P>This compute also calculates the number of chunks <I>Nchunk</I>, which is
used by other commands to tally per-chunk data. <I>Nchunk</I> can be a
static value or change over time (e.g. the number of clusters). The
chunk ID for an individual atom can also be static (e.g. a molecule
ID), or dynamic (e.g. what spatial bin an atom is in as it moves).
</P>
<P>Note that this compute allows the per-atom output of other
<AHREF ="compute.html">computes</A>, <AHREF ="fix.html">fixes</A>, and
<AHREF ="variable.html">variables</A> to be used to define chunk IDs for each
atom. This means you can write your own compute or fix to output a
per-atom quantity to use as chunk ID. See
<AHREF ="Section_modify.html">Section_modify</A> of the documentation for how to
do this. You can also define a <AHREF ="variable.html">per-atom variable</A> in
the input script that uses a formula to generate a chunk ID for each
atom.
</P>
<H5>Fix ave/chunk command:
</H5>
<P>This fix takes the ID of a <AHREF ="compute_chunk_atom.html">compute
chunk/atom</A> command as input. For each chunk,
it then sums one or more specified per-atom values over the atoms in
each chunk. The per-atom values can be any atom property, such as