LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands

create_atoms command

Syntax:

create_atoms type args ... 

Examples:

create_atoms 1 reg1 reg2
create_atoms 3 

Description:

This command creates atoms on a lattice as an alternative to reading in their coordinates via a read_data or read_restart command. A simulation box must already exist, which is created with the create_box command.

Before using this command, a lattice must be defined using the lattice command. If no regions are specified, the create_atoms command fills the entire simulation box with atoms on the lattice. If regions are specified, then the geometric volume is filled that is inside the simulation box and is also consistent with each of the regions. Thus if 2 regions interior to the simulation box are specified, only the volume of their intersection will be filled.

The create_atoms command can be used multiple times with different lattice orientations to create grain boundaries. Used in conjunction with the delete_atoms command, reasonably complex geometries can be created. The create_atoms command can also be used to add atoms to a system previously read in from a data or restart file. In all these cases, care should be taken to insure that new atoms do not overlap existing atoms inappropriately.

Created atoms are assigned the specified atom type and a velocity of 0.0.

Restrictions:

An atom_style and lattice must be previously defined to use this command.

Related commands:

lattice, orient, origin, region, create_box, read_data, read_restart

Default: none