2006-09-22 00:22:34 +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
|
|
|
|
|
|
|
|
atom_style command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
atom_style style args :pre
|
|
|
|
|
2013-02-01 00:39:48 +08:00
|
|
|
style = {angle} or {atomic} or {body} or {bond} or {charge} or {dipole} or \
|
2011-10-20 23:01:56 +08:00
|
|
|
{electron} or {ellipsoid} or {full} or {line} or {meso} or \
|
|
|
|
{molecular} or {peri} or {sphere} or {tri} or {hybrid} :ul
|
2013-02-01 00:39:48 +08:00
|
|
|
args = none for any style except {body} and {hybrid}
|
|
|
|
{body} args = Bstyle
|
|
|
|
Bstyle = style of body particles
|
|
|
|
{hybrid} args = list of one or more sub-styles, each with their args :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
atom_style atomic
|
2006-09-22 00:22:34 +08:00
|
|
|
atom_style bond
|
|
|
|
atom_style full
|
2013-02-01 00:39:48 +08:00
|
|
|
atom_style body nparticle
|
|
|
|
atom_style hybrid charge bond
|
|
|
|
atom_style hybrid charge body nparticle :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
Define what style of atoms to use in a simulation. This determines
|
|
|
|
what attributes are associated with the atoms. This command must be
|
|
|
|
used before a simulation is setup via a "read_data"_read_data.html,
|
|
|
|
"read_restart"_read_restart.html, or "create_box"_create_box.html
|
|
|
|
command.
|
|
|
|
|
|
|
|
Once a style is assigned, it cannot be changed, so use a style general
|
|
|
|
enough to encompass all attributes. E.g. with style {bond}, angular
|
|
|
|
terms cannot be used or added later to the model. It is OK to use a
|
|
|
|
style more general than needed, though it may be slightly inefficient.
|
|
|
|
|
|
|
|
The choice of style affects what quantities are stored by each atom,
|
|
|
|
what quantities are communicated between processors to enable forces
|
|
|
|
to be computed, and what quantities are listed in the data file read
|
|
|
|
by the "read_data"_read_data.html command.
|
|
|
|
|
2009-01-20 01:17:01 +08:00
|
|
|
These are the additional attributes of each style and the typical
|
|
|
|
kinds of physical systems they are used to model. All styles store
|
|
|
|
coordinates, velocities, atom IDs and types. See the
|
|
|
|
"read_data"_read_data.html, "create_atoms"_create_atoms.html, and
|
|
|
|
"set"_set.html commands for info on how to set these various
|
|
|
|
quantities.
|
|
|
|
|
2009-03-04 23:25:43 +08:00
|
|
|
{angle} | bonds and angles | bead-spring polymers with stiffness |
|
|
|
|
{atomic} | only the default values | coarse-grain liquids, solids, metals |
|
2013-02-01 00:39:48 +08:00
|
|
|
{body} | mass, inertia moments, quaternion, angular momentum | arbitrary bodies |
|
2009-03-04 23:25:43 +08:00
|
|
|
{bond} | bonds | bead-spring polymers |
|
|
|
|
{charge} | charge | atomic system with charges |
|
2011-04-14 05:39:34 +08:00
|
|
|
{dipole} | charge and dipole moment | system with dipolar particles |
|
2010-08-25 23:39:16 +08:00
|
|
|
{electron} | charge and spin and eradius | electronic force field |
|
2013-02-01 00:39:48 +08:00
|
|
|
{ellipsoid} | shape, quaternion, angular momentum | extended aspherical particles |
|
2009-03-04 23:25:43 +08:00
|
|
|
{full} | molecular + charge | bio-molecules |
|
2011-10-20 23:01:56 +08:00
|
|
|
{line} | end points, angular velocity | rigid bodies |
|
2011-08-28 04:35:24 +08:00
|
|
|
{meso} | rho, e, cv | SPH particles |
|
2009-03-04 23:25:43 +08:00
|
|
|
{molecular} | bonds, angles, dihedrals, impropers | uncharged molecules |
|
2011-04-14 05:39:34 +08:00
|
|
|
{peri} | mass, volume | mesocopic Peridynamic models |
|
2011-06-14 07:18:49 +08:00
|
|
|
{sphere} | diameter, mass, angular velocity | granular models |
|
2011-10-20 23:01:56 +08:00
|
|
|
{tri} | corner points, angular momentum | rigid bodies |
|
2011-06-14 07:18:49 +08:00
|
|
|
{wavepacket} | charge, spin, eradius, etag, cs_re, cs_im | AWPMD :tb(c=3,s=|)
|
2009-06-30 22:49:39 +08:00
|
|
|
|
2013-02-01 00:39:48 +08:00
|
|
|
All of the styles define point particles, except the {sphere},
|
|
|
|
{ellipsoid}, {electron}, {peri}, {wavepacket}, {line}, {tri}, and
|
|
|
|
{body} styles, which define finite-size particles.
|
|
|
|
|
2009-06-30 22:49:39 +08:00
|
|
|
All of the styles assign mass to particles on a per-type basis, using
|
2011-04-14 05:39:34 +08:00
|
|
|
the "mass"_mass.html command, except for the finite-size particle
|
2013-02-01 00:39:48 +08:00
|
|
|
styles. They assign mass to individual particles on a per-particle
|
|
|
|
basis.
|
2011-04-14 05:39:34 +08:00
|
|
|
|
|
|
|
For the {sphere} style, the particles are spheres and each stores a
|
2011-04-16 06:57:52 +08:00
|
|
|
per-particle diameter and mass. If the diameter > 0.0, the particle
|
|
|
|
is a finite-size sphere. If the diameter = 0.0, it is a point
|
|
|
|
particle.
|
|
|
|
|
|
|
|
For the {ellipsoid} style, the particles are ellipsoids and each
|
|
|
|
stores a flag which indicates whether it is a finite-size ellipsoid or
|
|
|
|
a point particle. If it is an ellipsoid, it also stores a shape
|
|
|
|
vector with the 3 diamters of the ellipsoid and a quaternion 4-vector
|
|
|
|
with its orientation.
|
|
|
|
|
|
|
|
For the {electron} style, the particles representing electrons are 3d
|
|
|
|
Gaussians with a specified position and bandwidth or uncertainty in
|
|
|
|
position, which is represented by the eradius = electron size.
|
|
|
|
|
|
|
|
For the {peri} style, the particles are spherical and each stores a
|
|
|
|
per-particle mass and volume.
|
2009-11-07 05:01:28 +08:00
|
|
|
|
2011-08-28 04:35:24 +08:00
|
|
|
The {meso} style is for smoothed particle hydrodynamics (SPH)
|
|
|
|
particles which store a density (rho), energy (e), and heat capacity
|
|
|
|
(cv).
|
|
|
|
|
2011-06-14 07:18:49 +08:00
|
|
|
The {wavepacket} style is similar to {electron}, but the electrons may
|
|
|
|
consist of several Gaussian wave packets, summed up with coefficients
|
|
|
|
cs= (cs_re,cs_im). Each of the wave packets is treated as a separate
|
|
|
|
particle in LAMMPS, wave packets belonging to the same electron must
|
|
|
|
have identical {etag} values.
|
|
|
|
|
2011-10-20 23:01:56 +08:00
|
|
|
For the {line} style, the particles are idealized line segments and
|
|
|
|
each stores a per-particle mass and length and orientation (i.e. the
|
|
|
|
end points of the line segment).
|
|
|
|
|
|
|
|
For the {tri} style, the particles are planar triangles and each
|
|
|
|
stores a per-particle mass and size and orientation (i.e. the corner
|
|
|
|
points of the triangle).
|
|
|
|
|
2013-02-01 00:39:48 +08:00
|
|
|
For the {body} style, the particles are arbitrary bodies with internal
|
|
|
|
attributes defined by the "style" of the bodies, which is specified by
|
|
|
|
the {Bstyle} argument. Each body particle stores moments of inertia
|
|
|
|
and a quaternion 4-vector, so that its orientation can be time
|
|
|
|
integrated. This atom style enables LAMMPS to work with particles
|
|
|
|
that represent complex entities, such as surface meshes of discrete
|
|
|
|
points, collections of sub-particles, deformable objects, etc. Of
|
|
|
|
course, the interactions between pairs of bodies will need to be
|
|
|
|
encoded in an appropriate pair style.
|
|
|
|
|
|
|
|
These are the body styles that LAMMPS currently supports. The name in
|
|
|
|
the first column is used as the {Bstyle} argument for atom_style body:
|
|
|
|
|
|
|
|
{nparticle} | body with N sub-particles :tb(c=2,s=|)
|
|
|
|
|
2009-06-30 22:49:39 +08:00
|
|
|
:line
|
|
|
|
|
2007-04-20 07:25:27 +08:00
|
|
|
Typically, simulations require only a single (non-hybrid) atom style.
|
|
|
|
If some atoms in the simulation do not have all the properties defined
|
|
|
|
by a particular style, use the simplest style that defines all the
|
|
|
|
needed properties by any atom. For example, if some atoms in a
|
|
|
|
simulation are charged, but others are not, use the {charge} style.
|
|
|
|
If some atoms have bonds, but others do not, use the {bond} style.
|
2009-01-20 01:17:01 +08:00
|
|
|
|
2007-04-20 07:25:27 +08:00
|
|
|
The only scenario where the {hybrid} style is needed is if there is no
|
2009-06-30 22:49:39 +08:00
|
|
|
single style which defines all needed properties of all atoms. For
|
2013-02-01 00:39:48 +08:00
|
|
|
example, if you want dipolar particles which will rotate due to
|
|
|
|
torque, you would need to use "atom_style hybrid sphere dipole". When
|
2011-04-14 05:39:34 +08:00
|
|
|
a hybrid style is used, atoms store and communicate the union of all
|
|
|
|
quantities implied by the individual styles.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2013-02-01 00:39:48 +08:00
|
|
|
LAMMPS can be extended with new atom styles as well as new body
|
|
|
|
styles; see "this section"_Section_modify.html.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Restrictions:]
|
|
|
|
|
|
|
|
This command cannot be used after the simulation box is defined by a
|
|
|
|
"read_data"_read_data.html or "create_box"_create_box.html command.
|
|
|
|
|
|
|
|
The {angle}, {bond}, {full}, and {molecular} styles are part of the
|
2013-02-01 00:39:48 +08:00
|
|
|
MOLECULAR package. The {line}, {tri}, and {body} styles are part of
|
|
|
|
the ASPHERE pacakge. The {dipole} style is part of the DIPOLE
|
2011-10-20 23:09:12 +08:00
|
|
|
package. The {peri} style is part of the PERI package for
|
2011-10-20 23:01:56 +08:00
|
|
|
Peridynamics. The {electron} style is part of the USER-EFF package
|
|
|
|
for "electronic force fields"_pair_eff.html. The {meso} style is part
|
|
|
|
of the USER-SPH package for smoothed particle hydrodyanmics (SPH).
|
|
|
|
See "this PDF guide"_USER/sph/SPH_LAMMPS_userguide.pdf to using SPH in
|
|
|
|
LAMMPS. The {wavepacket} style is part of the USER-AWPMD package for
|
|
|
|
the "antisymmetrized wave packet MD method"_pair_awpmd.html. They are
|
2011-08-28 04:35:24 +08:00
|
|
|
only enabled if LAMMPS was built with that package. See the "Making
|
|
|
|
LAMMPS"_Section_start.html#start_3 section for more info.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"read_data"_read_data.html, "pair_style"_pair_style.html
|
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
[Default:]
|
|
|
|
|
|
|
|
atom_style atomic
|