forked from lijiext/lammps
155 lines
6.7 KiB
HTML
155 lines
6.7 KiB
HTML
<HTML>
|
|
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
|
|
</CENTER>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
<H3>delete_atoms command
|
|
</H3>
|
|
<P><B>Syntax:</B>
|
|
</P>
|
|
<PRE>delete_atoms style args keyword value ...
|
|
</PRE>
|
|
<UL><LI>style = <I>group</I> or <I>region</I> or <I>overlap</I> or <I>porosity</I>
|
|
|
|
<PRE> <I>group</I> args = group-ID
|
|
<I>region</I> args = region-ID
|
|
<I>overlap</I> 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
|
|
<I>porosity</I> 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>
|
|
<LI>zero or more keyword/value pairs may be appended
|
|
|
|
<LI>keyword = <I>compress</I> or <I>bond</I> or <I>mol</I>
|
|
|
|
<PRE> <I>compress</I> value = <I>no</I> or <I>yes</I>
|
|
<I>bond</I> value = <I>no</I> or <I>yes</I>
|
|
<I>mol</I> value = <I>no</I> or <I>yes</I>
|
|
</PRE>
|
|
|
|
</UL>
|
|
<P><B>Examples:</B>
|
|
</P>
|
|
<PRE>delete_atoms group edge
|
|
delete_atoms region sphere compress no
|
|
delete_atoms overlap 0.3 all all
|
|
delete_atoms overlap 0.5 solvent colloid
|
|
delete_atoms porosity cube 0.1 482793 bond yes
|
|
</PRE>
|
|
<P><B>Description:</B>
|
|
</P>
|
|
<P>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).
|
|
</P>
|
|
<P>For style <I>group</I>, all atoms belonging to the group are deleted.
|
|
</P>
|
|
<P>For style <I>region</I>, all atoms in the region volume are deleted.
|
|
Additional atoms can be deleted if they are in a molecule for which
|
|
one or more atoms were deleted within the region; see the <I>mol</I>
|
|
keyword discussion below.
|
|
</P>
|
|
<P>For style <I>overlap</I> 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.
|
|
</P>
|
|
<P>Note that it is OK for the two group IDs to be the same (e.g. group
|
|
<I>all</I>), 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.
|
|
</P>
|
|
<P>For style <I>porosity</I> a specified <I>fraction</I> 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.
|
|
</P>
|
|
<P>If the <I>compress</I> keyword is set to <I>yes</I>, 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. Note that this is not done for
|
|
molecular systems (see the <A HREF = "atom_style.html">atom_style</A> command),
|
|
regardless of the <I>compress</I> setting, since it would foul up the bond
|
|
connectivity that has already been assigned.
|
|
</P>
|
|
<P>A molecular system with fixed bonds, angles, dihedrals, or improper
|
|
interactions, is one where the topology of the interactions is
|
|
typically defined in the data file read by the
|
|
<A HREF = "read_data.html">read_data</A> command, and where the interactions
|
|
themselves are defined with the <A HREF = "bond_style.html">bond_style</A>,
|
|
<A HREF = "angle_style.html">angle_style</A>, etc commands. If you delete atoms
|
|
from such a system, you must be careful not to end up with bonded
|
|
interactions that are stored by remaining atoms but which include
|
|
deleted atoms. This will cause LAMMPS to generate a "missing atoms"
|
|
error when the bonded interaction is computed. The <I>bond</I> and <I>mol</I>
|
|
keywords offer two ways to do that.
|
|
</P>
|
|
<P>It the <I>bond</I> keyword is set to <I>yes</I> then any bond or angle or
|
|
dihedral or improper interaction that includes a deleted atom is also
|
|
removed from the lists of such interactions stored by non-deleted
|
|
atoms. Note that simply deleting interactions due to dangling bonds
|
|
(e.g. at a surface) may result in a inaccurate or invalid model for
|
|
the remaining atoms.
|
|
</P>
|
|
<P>It the <I>mol</I> keyword is set to <I>yes</I>, then for every atom that is
|
|
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 such an ID is assumed to flag isolated atoms that are not
|
|
part of molecules.
|
|
</P>
|
|
<P>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.
|
|
</P>
|
|
<P><B>Restrictions:</B>
|
|
</P>
|
|
<P>The <I>overlap</I> 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
|
|
<A HREF = "pair_style.html">pair style</A> with the minimum force cutoff distance
|
|
between any pair of atoms types (plus the <A HREF = "neighbor.html">neighbor</A>
|
|
skin) >= the specified overlap cutoff.
|
|
</P>
|
|
<P>If the <A HREF = "special_bonds.html">special_bonds</A> 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 <I>overlap</I> styles. You probably don't want to be
|
|
deleting one atom in a bonded pair anyway.
|
|
</P>
|
|
<P>The <I>bond yes</I> option cannot be used with molecular systems defined
|
|
using molecule template files via the <A HREF = "molecule.html">molecule</A> and
|
|
<A HREF = "atom_style.html">atom_style template</A> commands.
|
|
</P>
|
|
<P><B>Related commands:</B>
|
|
</P>
|
|
<P><A HREF = "create_atoms.html">create_atoms</A>
|
|
</P>
|
|
<P><B>Default:</B>
|
|
</P>
|
|
<P>The option defaults are compress = yes, bond = no, mol = no.
|
|
</P>
|
|
</HTML>
|