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
|
|
|
|
|
|
|
|
delete_atoms command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2010-08-04 07:38:55 +08:00
|
|
|
delete_atoms style args keyword value ... :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2008-12-05 00:15:03 +08:00
|
|
|
style = {group} or {region} or {overlap} or {porosity} :ulb,l
|
2006-09-22 00:22:34 +08:00
|
|
|
{group} args = group-ID
|
|
|
|
{region} args = region-ID
|
2008-01-25 06:33:02 +08:00
|
|
|
{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
|
2008-12-05 00:15:03 +08:00
|
|
|
{porosity} args = region-ID fraction seed
|
|
|
|
region-ID = region within which to perform deletions
|
|
|
|
fraction = delete this fraction of atoms
|
|
|
|
seed = random number seed (positive integer) :pre
|
2010-08-04 07:38:55 +08:00
|
|
|
zero or more keyword/value pairs may be appended :l
|
2013-05-24 06:50:14 +08:00
|
|
|
keyword = {compress} or {mol} :l
|
|
|
|
{compress} value = {no} or {yes}
|
|
|
|
{mol} value = {no} or {yes} :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
:ule
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
delete_atoms group edge
|
2010-08-04 07:38:55 +08:00
|
|
|
delete_atoms region sphere compress no
|
2008-01-25 06:33:02 +08:00
|
|
|
delete_atoms overlap 0.3 all all
|
2008-12-05 00:15:03 +08:00
|
|
|
delete_atoms overlap 0.5 solvent colloid
|
2011-06-20 22:11:32 +08:00
|
|
|
delete_atoms porosity cube 0.1 482793 :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2006-09-29 03:55:36 +08:00
|
|
|
Delete the specified atoms. This command can be used to carve out
|
2006-09-22 00:22:34 +08:00
|
|
|
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.
|
2013-05-24 06:50:14 +08:00
|
|
|
Additional atoms can be deleted if they are in a molecule for which
|
|
|
|
one or more atoms were deleted within the region; see the {mol}
|
|
|
|
keyword discussion below.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2008-01-25 06:33:02 +08:00
|
|
|
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.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2008-12-05 00:15:03 +08:00
|
|
|
For style {porosity} a specified {fraction} of atoms are deleted
|
|
|
|
within the specified region. For example, if fraction is 0.1, then
|
|
|
|
10% of the atoms will be deleted. The atoms to delete are chosen
|
|
|
|
randomly. There is no guarantee that the exact fraction of atoms will
|
|
|
|
be deleted, or that the same atoms will be deleted when running on
|
|
|
|
different numbers of processors.
|
|
|
|
|
2010-08-04 07:38:55 +08:00
|
|
|
If the {compress} keyword is set to {yes}, then after atoms are
|
|
|
|
deleted, 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
|
|
|
|
(see the "atom_style"_atom_style.html command), regardless of the
|
|
|
|
{compress} setting, since it would foul up the bond connectivity that
|
|
|
|
has already been assigned.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2013-05-24 06:50:14 +08:00
|
|
|
It the {mol} keyword is set to {yes}, then for every atom that is
|
2014-06-28 07:44:32 +08:00
|
|
|
deleted, all other atoms in the same molecule (with the same molecule
|
|
|
|
ID) will also be deleted. This is not done for atoms with molecule ID
|
|
|
|
= 0, since it is assumed to flag isolated atoms that are not part of
|
|
|
|
molecules. This is a way to insure that entire molecules are deleted
|
|
|
|
instead of only a subset of atoms in the molecule which will typically
|
|
|
|
lead to errors because of bond, angle, or dihedral interactions stored
|
|
|
|
by remaining atoms which reference deleted atoms.
|
2014-05-01 04:58:58 +08:00
|
|
|
|
|
|
|
IMPORTANT NOTE: The molecule deletion operation in invoked after all
|
|
|
|
individual atoms have been deleted using the rules described above for
|
|
|
|
each style. This means additional atoms may be deleted that are not
|
|
|
|
in the group or region, that are not required by the overlap cutoff
|
|
|
|
criterion, or that will create a higher fraction of porosity than was
|
|
|
|
requested.
|
2013-05-24 06:50:14 +08:00
|
|
|
|
2006-09-22 00:22:34 +08:00
|
|
|
[Restrictions:]
|
|
|
|
|
2008-01-25 06:33:02 +08:00
|
|
|
The {overlap} styles requires inter-processor communication to acquire
|
|
|
|
ghost atoms and build a neighbor list. This means that your system
|
2006-09-22 00:22:34 +08:00
|
|
|
must be ready to perform a simulation before using this command (force
|
2008-08-21 21:53:06 +08:00
|
|
|
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.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
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
|
2008-01-25 06:33:02 +08:00
|
|
|
deletion by the {overlap} styles. You probably don't want to be
|
2006-09-22 00:22:34 +08:00
|
|
|
deleting one atom in a bonded pair anyway.
|
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"create_atoms"_create_atoms.html
|
|
|
|
|
2010-08-04 07:38:55 +08:00
|
|
|
[Default:]
|
|
|
|
|
2013-05-24 06:50:14 +08:00
|
|
|
The option defaults are compress = yes and mol = no.
|