lammps/doc/delete_atoms.txt

86 lines
3.2 KiB
Plaintext

"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
delete_atoms command :h3
[Syntax:]
delete_atoms style args :pre
style = {group} or {region} or {overlap} :ulb,l
{group} args = group-ID
{region} args = region-ID
{overlap} args = cutoff group1-ID group2-ID
cutoff = delete one atom from pairs of atoms within the cutoff (distance units)
group1-ID = one atom in pair must be in this group
group2-ID = other atom in pair must be in this group
:pre
:ule
[Examples:]
delete_atoms group edge
delete_atoms region sphere
delete_atoms overlap 0.3 all all
delete_atoms overlap 0.5 solvent colloid :pre
[Description:]
Delete the specified atoms. This command can be used to carve out
voids from a block of material or to delete created atoms that are too
close to each other (e.g. at a grain boundary).
For style {group}, all atoms belonging to the group are deleted.
For style {region}, all atoms in the region volume are deleted.
For style {overlap} pairs of atoms whose distance of separation is
within the specified cutoff distance are searched for, and one of the
2 atoms is deleted. Only pairs where one of the two atoms is in the
first group specified and the other atom is in the second group are
considered. The atom that is in the first group is the one that is
deleted.
Note that it is OK for the two group IDs to be the same (e.g. group
{all}), or for some atoms to be members of both groups. In these
cases, either atom in the pair may be deleted. Also note that if
there are atoms which are members of both groups, the only guarantee
is that at the end of the deletion operation, enough deletions will
have occurred that no atom pairs within the cutoff will remain
(subject to the group restriction). There is no guarantee that the
minimum number of atoms will be deleted, or that the same atoms will
be deleted when running on different numbers of processors.
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:]
The {overlap} styles requires inter-processor communication to acquire
ghost atoms and build a neighbor list. This means that your system
must be ready to perform a simulation before using this command (force
fields setup, atom masses set, etc). Since a neighbor list is used to
find overlapping atom pairs, it also means that you must define a
"pair style"_pair_style.html with force cutoffs greater than or equal
to the desired overlap cutoff between pairs of relevant atom types,
even though the pair potential will not be evaluated.
If the "special_bonds"_special_bonds.html command is used with a
setting of 0, then a pair of bonded atoms (1-2, 1-3, or 1-4) will not
appear in the neighbor list, and thus will not be considered for
deletion by the {overlap} styles. You probably don't want to be
deleting one atom in a bonded pair anyway.
[Related commands:]
"create_atoms"_create_atoms.html
[Default:] none