Syntax:
atom_style style
Examples:
atom_style bond atom_style eam
Description:
Define what style of atoms to use in a simulation. This determines determines what attributes are associated with particles in the simulation. This command must be used before a simulation is setup via a read_data, read_restart, or create_box command.
Once a style is assigned, it cannot be changed, so a style general enough to encompass all attributes should be selected. 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.
These are the attributes of the available styles:
LAMMPS can be extended with new atom styles; see this section.
Restrictions:
This command cannot be used after the simulation box is defined by a read_data or create_box command.
The bond, angle, and full styles are part of the "molecular" package. The granular style is part of the "granular" package. The eam style is part of the "metal" package. They are only enabled if LAMMPS was built with that package. See the Making LAMMPS section for more info.
Related commands: none
Default: none