2009-12-17 01:12:09 +08:00
|
|
|
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
|
|
:link(ld,Manual.html)
|
|
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
compute property/atom command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
compute ID group-ID property/atom input1 input2 ... :pre
|
|
|
|
|
|
|
|
ID, group-ID are documented in "compute"_compute.html command :ulb,l
|
|
|
|
property/atom = style name of this compute command :l
|
|
|
|
input = one or more atom attributes :l
|
|
|
|
possible attributes = id, mol, type, mass,
|
|
|
|
x, y, z, xs, ys, zs, xu, yu, zu, ix, iy, iz,
|
|
|
|
vx, vy, vz, fx, fy, fz,
|
2011-04-14 05:39:34 +08:00
|
|
|
q, mux, muy, muz, mu,
|
2011-05-30 23:46:25 +08:00
|
|
|
radius, diameter, omegax, omegay, omegaz,
|
2011-04-14 05:39:34 +08:00
|
|
|
angmomx, angmomy, angmomz,
|
|
|
|
shapex,shapey, shapez,
|
2010-08-21 07:17:55 +08:00
|
|
|
quatw, quati, quatj, quatk, tqx, tqy, tqz,
|
2010-08-25 23:35:46 +08:00
|
|
|
spin, eradius, ervel, erforce :pre
|
2009-12-18 01:28:42 +08:00
|
|
|
|
2009-12-17 01:12:09 +08:00
|
|
|
id = atom ID
|
|
|
|
mol = molecule ID
|
|
|
|
type = atom type
|
|
|
|
mass = atom mass
|
|
|
|
x,y,z = unscaled atom coordinates
|
|
|
|
xs,ys,zs = scaled atom coordinates
|
|
|
|
xu,yu,zu = unwrapped atom coordinates
|
|
|
|
ix,iy,iz = box image that the atom is in
|
|
|
|
vx,vy,vz = atom velocities
|
|
|
|
fx,fy,fz = forces on atoms
|
|
|
|
q = atom charge
|
2011-04-14 05:39:34 +08:00
|
|
|
mux,muy,muz = orientation of dipole moment of atom
|
|
|
|
mu = magnitude of dipole moment of atom
|
2011-05-30 23:46:25 +08:00
|
|
|
radius,diameter = radius,diameter of spherical particle
|
2009-12-17 01:12:09 +08:00
|
|
|
omegax,omegay,omegaz = angular velocity of extended particle
|
|
|
|
angmomx,angmomy,angmomz = angular momentum of extended particle
|
2010-08-21 07:17:55 +08:00
|
|
|
tqx,tqy,tqz = torque on extended particles
|
|
|
|
spin = electron spin
|
|
|
|
eradius = electron radius
|
2010-08-25 23:35:46 +08:00
|
|
|
ervel = electron radial velocity
|
2011-05-30 23:46:25 +08:00
|
|
|
erforce = electron radial force
|
|
|
|
shapex,shapey,shapez = 3 diameters of aspherical particle
|
|
|
|
quatw,quati,quatj,quatk = quaternion components for aspherical particles :pre
|
2009-12-17 01:12:09 +08:00
|
|
|
:ule
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
compute 1 all property/atom xs vx fx mux
|
|
|
|
compute 2 all property/atom type
|
|
|
|
compute 1 all property/atom ix iy iz :pre
|
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
Define a computation that simply stores atom attributes for each atom
|
|
|
|
in the group. This is useful so that the values can be used by other
|
2011-08-26 01:01:01 +08:00
|
|
|
"output commands"_Section_howto.html#howto_15 that take computes as
|
2009-12-17 01:12:09 +08:00
|
|
|
inputs. See for example, the "compute reduce"_compute_reduce.html,
|
|
|
|
"fix ave/atom"_fix_ave_atom.html, "fix ave/histo"_fix_ave_histo.html,
|
|
|
|
"fix ave/spatial"_fix_ave_spatial.html, and "atom-style
|
|
|
|
variable"_variable.html commands.
|
|
|
|
|
|
|
|
The list of possible attributes is the same as that used by the "dump
|
2011-05-30 23:46:25 +08:00
|
|
|
custom"_dump.html command, which describes their meaning, with some
|
|
|
|
additional quantities that are only defined for certain "atom
|
|
|
|
styles"_atom_style.html. Basically, this list gives your input script
|
|
|
|
access to any per-atom quantity stored by LAMMPS.
|
2009-12-17 01:12:09 +08:00
|
|
|
|
|
|
|
The values are stored in a per-atom vector or array as
|
|
|
|
discussed below. Zeroes are stored for atoms not in the specified
|
|
|
|
group.
|
|
|
|
|
2011-05-30 23:46:25 +08:00
|
|
|
The additional quantities only accessible via this command (and not
|
|
|
|
directly via the "dump custom"_dump.html command are as follows.
|
|
|
|
|
|
|
|
{Shapex}, {shapey}, and {shapez} are defined for ellipsoidal particles
|
|
|
|
and define the 3d shape of each particle. {Quatw}, {quati}, {quatj},
|
|
|
|
and {quatk} are also defined for ellipsoidal particles and store the
|
|
|
|
4-vector quaternion representing the orientation of each particle.
|
|
|
|
See the "set"_set.html command for an explanation of the quaternion
|
|
|
|
vector.
|
|
|
|
|
2009-12-17 01:12:09 +08:00
|
|
|
[Output info:]
|
|
|
|
|
|
|
|
This compute calculates a per-atom vector or per-atom array depending
|
|
|
|
on the number of input values. If a single input is specified, a
|
|
|
|
per-atom vector is produced. If two or more inputs are specified, a
|
|
|
|
per-atom array is produced where the number of columns = the number of
|
|
|
|
inputs. The vector or array can be accessed by any command that uses
|
|
|
|
per-atom values from a compute as input. See "this
|
2011-08-26 01:01:01 +08:00
|
|
|
section"_Section_howto.html#howto_15 for an overview of LAMMPS output
|
2009-12-17 01:12:09 +08:00
|
|
|
options.
|
|
|
|
|
2010-01-24 07:20:05 +08:00
|
|
|
The vector or array values will be in whatever "units"_units.html the
|
|
|
|
corresponding attribute is in, e.g. velocity units for vx, charge
|
|
|
|
units for q, etc.
|
|
|
|
|
2009-12-17 01:12:09 +08:00
|
|
|
[Restrictions:] none
|
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"dump custom"_dump.html, "compute reduce"_compute_reduce.html, "fix
|
|
|
|
ave/atom"_fix_ave_atom.html, "fix ave/spatial"_fix_ave_spatial.html
|
|
|
|
|
|
|
|
[Default:] none
|