LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands

delete_atoms command

Syntax:

delete_atoms style args 

Examples:

delete_atoms group edge
delete_atoms region reg1 reg2
delete_atoms overlap 0.3 

Description:

Delete the specfied atoms. For style group, it is all atoms belonging to the group. For style region, it is any atom that is in all of the listed regions. For style overlap, pairs of atoms within the specified distance are searched for, and one of the 2 atoms is deleted. See the units command for a discussion of distance units.

This command can be used to carve out voids from a block of material.

After atoms are deleted, if the system is not molecular (no bonds), then atom IDs are re-assigned so that they run from 1 to the number of atoms in the system. This is not done for molecular systems, since it would foul up the bond connectivity that has already been assigned.

Restrictions: none

Related commands:

create_atoms

Default: none