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
|
|
|
|
|
2009-11-07 05:01:28 +08:00
|
|
|
style = {angle} or {atomic} or {bond} or {charge} or {colloid} or {dipole} or \
|
2008-07-26 04:07:45 +08:00
|
|
|
{dpd} or {ellipsoid} or {full} or {granular} or {molecular} or \
|
|
|
|
{peri} or {hybrid} :ul
|
2006-09-22 00:22:34 +08:00
|
|
|
args = none for any style except {hybrid}
|
2007-02-10 05:37:30 +08:00
|
|
|
{hybrid} args = list of one or more sub-styles :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
|
|
|
|
atom_style hybrid charge bond :pre
|
|
|
|
|
|
|
|
[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 |
|
|
|
|
{bond} | bonds | bead-spring polymers |
|
|
|
|
{charge} | charge | atomic system with charges |
|
2009-11-07 05:01:28 +08:00
|
|
|
{colloid} | angular velocity | extended spherical particles |
|
2009-03-04 23:25:43 +08:00
|
|
|
{dipole} | charge and dipole moment | atomic system with dipoles |
|
|
|
|
{dpd} | default values, also communicates velocities | DPD models |
|
2009-11-07 05:01:28 +08:00
|
|
|
{ellipsoid} | quaternion for particle orientation, angular momentum | extended aspherical particles |
|
2009-03-04 23:25:43 +08:00
|
|
|
{full} | molecular + charge | bio-molecules |
|
|
|
|
{granular} | diameter, density, angular velocity | granular models |
|
|
|
|
{molecular} | bonds, angles, dihedrals, impropers | uncharged molecules |
|
|
|
|
{peri} | density, volume | mesocopic Peridynamic models :tb(c=3,s=|)
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2009-11-07 05:01:28 +08:00
|
|
|
All of the styles define point particles, except the {colloid},
|
|
|
|
{dipole}, {ellipsoid}, {granular}, and {peri} styles. These define
|
|
|
|
finite-size particles. For {colloid}, {dipole}, and {ellipsoid}
|
|
|
|
systems, the "shape"_shape.html command is used to specify the size
|
|
|
|
and shape of particles on a per-type basis, which is spherical for
|
|
|
|
{colloid} and {dipole} particles and spherical or aspherical for
|
|
|
|
{ellipsoid} particles. For {granular} systems, the particles are
|
|
|
|
spherical and each has a per-particle specified diameter. For {peri}
|
|
|
|
systems, the particles are spherical and each has a per-particle
|
|
|
|
specified volume.
|
2009-06-30 22:49:39 +08:00
|
|
|
|
|
|
|
All of the styles assign mass to particles on a per-type basis, using
|
2009-11-07 05:01:28 +08:00
|
|
|
the "mass"_mass.html command, except the {granular} and {peri} styles
|
|
|
|
which assign mass on a per-particle basis. For {granular} systems,
|
|
|
|
the specified diameter and density are used to calculate each
|
|
|
|
particle's mass. For {peri} systems, the speficied volume and density
|
|
|
|
are used to calculate each particle's mass.
|
|
|
|
|
|
|
|
Only the {colloid}, {dpd}, and {granular} styles communicate
|
|
|
|
velocities and angular velocities (if defined) with ghost atoms; the
|
|
|
|
others do not. This is because the pairwise interactions calculated
|
|
|
|
by the pair styles that typically use these atom styles
|
|
|
|
(e.g. "pair_style dpd"_pair_dpd.html and "pair_style
|
|
|
|
granular"_pair_gran.html) require velocities of both particles.
|
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
|
|
|
|
example, if you want charged DPD particles, you would need to use
|
2007-04-20 07:25:27 +08:00
|
|
|
"atom_style hybrid dpd charge". When 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
|
|
|
|
|
|
|
LAMMPS can be extended with new atom styles; see "this
|
|
|
|
section"_Section_modify.html.
|
|
|
|
|
|
|
|
[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
|
|
|
|
"molecular" package. The {granular} style is part of the "granular"
|
2009-11-07 05:01:28 +08:00
|
|
|
package. The {dpd} style is part of the "dpd" package. The {colloid}
|
|
|
|
style is part of the "colloid" package. The {dipole} style is part of
|
|
|
|
the "dipole" package. The {ellipsoid} style is part of the "asphere"
|
|
|
|
package. The {peri} style is part of the "peri" package for
|
|
|
|
Peridynamics. They are only enabled if LAMMPS was built with that
|
|
|
|
package. See the "Making LAMMPS"_Section_start.html#2_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
|