2007-05-15 00:14:29 +08:00
|
|
|
<HTML>
|
|
|
|
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
|
|
|
|
</CENTER>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
<H3>compute coord/atom command
|
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
2012-08-08 23:17:00 +08:00
|
|
|
<PRE>compute ID group-ID coord/atom cutoff type1 type2 ...
|
2007-05-15 00:14:29 +08:00
|
|
|
</PRE>
|
|
|
|
<UL><LI>ID, group-ID are documented in <A HREF = "compute.html">compute</A> command
|
2007-05-15 00:21:52 +08:00
|
|
|
<LI>coord/atom = style name of this compute command
|
2012-08-08 23:17:00 +08:00
|
|
|
<LI>cutoff = distance within which to count coordination neighbors (distance units)
|
|
|
|
<LI>typeN = atom type for Nth coordination count (see asterisk form below)
|
2007-05-15 00:14:29 +08:00
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
2012-08-08 23:17:00 +08:00
|
|
|
<PRE>compute 1 all coord/atom 2.0
|
|
|
|
compute 1 all coord/atom 6.0 1 2
|
|
|
|
compute 1 all coord/atom 6.0 2*4 5*8 *
|
2007-05-15 00:14:29 +08:00
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
2012-08-08 23:17:00 +08:00
|
|
|
<P>Define a computation that calculates one or more coordination numbers
|
|
|
|
for each atom in a group.
|
2007-05-15 00:14:29 +08:00
|
|
|
</P>
|
2012-08-08 23:17:00 +08:00
|
|
|
<P>A coordination number is defined as the number of neighbor atoms with
|
|
|
|
specified atom type(s) that are within the specified cutoff distance
|
|
|
|
from the central atom. Atoms not in the group are included in a
|
|
|
|
coordination number of atoms in the group.
|
|
|
|
</P>
|
|
|
|
<P>The <I>typeN</I> keywords allow you to specify which atom types contribute
|
|
|
|
to each coordination number. One coordination number is computed for
|
|
|
|
each of the <I>typeN</I> keywords listed. If no <I>typeN</I> keywords are
|
|
|
|
listed, a single coordination number is calculated, which includes
|
|
|
|
atoms of all types (same as the "*" format, see below).
|
2007-11-20 23:37:16 +08:00
|
|
|
</P>
|
2012-08-08 23:17:00 +08:00
|
|
|
<P>The <I>typeN</I> keywords can be specified in one of two ways. An explicit
|
|
|
|
numeric value can be used, as in the 2nd example above. Or a
|
|
|
|
wild-card asterisk can be used to specify a range of atom types. This
|
|
|
|
takes the form "*" or "*n" or "n*" or "m*n". If N = the number of
|
|
|
|
atom types, then an asterisk with no numeric values means all types
|
|
|
|
from 1 to N. A leading asterisk means all types from 1 to n
|
|
|
|
(inclusive). A trailing asterisk means all types from n to N
|
|
|
|
(inclusive). A middle asterisk means all types from m to n
|
|
|
|
(inclusive).
|
|
|
|
</P>
|
|
|
|
<P>The value of all coordination numbers will be 0.0 for atoms not in the
|
|
|
|
specified compute group.
|
2007-05-15 00:14:29 +08:00
|
|
|
</P>
|
|
|
|
<P>The neighbor list needed to compute this quantity is constructed each
|
|
|
|
time the calculation is performed (i.e. each time a snapshot of atoms
|
|
|
|
is dumped). Thus it can be inefficient to compute/dump this quantity
|
2012-08-08 23:17:00 +08:00
|
|
|
too frequently.
|
2007-05-15 00:14:29 +08:00
|
|
|
</P>
|
2008-01-04 08:56:10 +08:00
|
|
|
<P><B>Output info:</B>
|
|
|
|
</P>
|
2012-08-08 23:17:00 +08:00
|
|
|
<P>If single <I>type1</I> keyword is specified (or if none are specified),
|
|
|
|
this compute calculates a per-atom vector. If multiple <I>typeN</I>
|
|
|
|
keywords are specified, this compute calculates a per-atom array, with
|
|
|
|
N columns. These values can be accessed by any command that uses
|
|
|
|
per-atom values from a compute as input. See <A HREF = "Section_howto.html#howto_15">Section_howto
|
|
|
|
15</A> for an overview of LAMMPS output
|
|
|
|
options.
|
2008-01-04 08:56:10 +08:00
|
|
|
</P>
|
2012-08-08 23:17:00 +08:00
|
|
|
<P>The per-atom vector or array values will be a number >= 0.0, as
|
|
|
|
explained above.
|
2010-01-24 07:20:05 +08:00
|
|
|
</P>
|
2007-05-15 00:14:29 +08:00
|
|
|
<P><B>Restrictions:</B> none
|
|
|
|
</P>
|
2011-03-09 06:23:59 +08:00
|
|
|
<P><B>Related commands:</B>
|
|
|
|
</P>
|
|
|
|
<P><A HREF = "compute_cluster_atom.html">compute cluster/atom</A>
|
2007-05-15 00:14:29 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Default:</B> none
|
|
|
|
</P>
|
|
|
|
</HTML>
|