git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11143 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2014-01-07 00:50:03 +00:00
parent e1ebfdda1c
commit 4fba6ab25b
6 changed files with 150 additions and 52 deletions

View File

@ -27,12 +27,14 @@
<LI>one or more keyword/value pairs may be appended to args
<LI>keyword = <I>region</I> or <I>mol</I> or <I>diam</I> or <I>dens</I> or <I>vol</I> or <I>rate</I> or <I>vel</I>
<LI>keyword = <I>region</I> or <I>mol</I> or <I>rigid</I> or <I>diam</I> or <I>dens</I> or <I>vol</I> or <I>rate</I> or <I>vel</I>
<PRE> <I>region</I> value = region-ID
region-ID = ID of region to use as insertion volume
<I>mol</I> value = template-ID
template-ID = ID of molecule template specified in a separate <A HREF = "molecule.html">molecule</A> command
<I>rigid</I> value = fix-ID
fix-ID = ID of <A HREF = "fix_rigid.html">fix rigid/small</A> command
<I>diam</I> values = dstyle args
dstyle = <I>one</I> or <I>range</I> or <I>poly</I>
<I>one</I> args = D
@ -62,16 +64,17 @@
</P>
<PRE>fix 3 all pour 1000 2 29494 region myblock
fix 2 all pour 10000 1 19985583 region disk vol 0.33 100 rate 1.0 diam range 0.9 1.1
fix 2 all pour 10000 1 19985583 region disk diam poly 2 0.7 0.4 1.5 0.6
fix 2 all pour 10000 1 19985583 region disk diam poly 2 0.7 0.4 1.5 0.6
fix ins all pour 500 1 4767548 vol 0.8 10 region slab mol object rigid myRigid
</PRE>
<P><B>Description:</B>
</P>
<P>Insert finite-size particles or molecules into the simulation box
every few timesteps within a specified region until N particles have
been inserted. This is typically used to model the pouring of
granular particles into a container under the influence of gravity.
For the remainder of this doc page, a single inserted atom or molecule
is referred to as a "particle".
every few timesteps within a specified region until N particles or
molecules have been inserted. This is typically used to model the
pouring of granular particles into a container under the influence of
gravity. For the remainder of this doc page, a single inserted atom
or molecule is referred to as a "particle".
</P>
<P>If inserted particles are individual atoms, they are assigned the
specified atom type. For molecules the specified type is ignored, and
@ -98,6 +101,12 @@ molecule can be specified in the molecule file. See the
required to be in this file are the coordinates and types of atoms in
the molecule.
</P>
<P>If you wish to insert molecules via the <I>mol</I> keyword, that will be
treated as rigid bodies, you can first specify a <A HREF = "fix_rigid.html">fix
rigid/small</A> command, and then use the <I>rigid</I> keyword
with this command, specifying the ID of the fix rigid/small command as
its value.
</P>
<P>Each timestep particles are inserted, they are placed randomly inside
the insertion volume so as to mimic a stream of poured particles. If
they are molecules they are also oriented randomly. The larger the

View File

@ -18,11 +18,13 @@ N = # of atoms to insert :l
type = atom type to assign to inserted atoms :l
seed = random # seed (positive integer) :l
one or more keyword/value pairs may be appended to args :l
keyword = {region} or {mol} or {diam} or {dens} or {vol} or {rate} or {vel} :l
keyword = {region} or {mol} or {rigid} or {diam} or {dens} or {vol} or {rate} or {vel} :l
{region} value = region-ID
region-ID = ID of region to use as insertion volume
{mol} value = template-ID
template-ID = ID of molecule template specified in a separate "molecule"_molecule.html command
{rigid} value = fix-ID
fix-ID = ID of "fix rigid/small"_fix_rigid.html command
{diam} values = dstyle args
dstyle = {one} or {range} or {poly}
{one} args = D
@ -51,16 +53,17 @@ keyword = {region} or {mol} or {diam} or {dens} or {vol} or {rate} or {vel} :l
fix 3 all pour 1000 2 29494 region myblock
fix 2 all pour 10000 1 19985583 region disk vol 0.33 100 rate 1.0 diam range 0.9 1.1
fix 2 all pour 10000 1 19985583 region disk diam poly 2 0.7 0.4 1.5 0.6 :pre
fix 2 all pour 10000 1 19985583 region disk diam poly 2 0.7 0.4 1.5 0.6
fix ins all pour 500 1 4767548 vol 0.8 10 region slab mol object rigid myRigid :pre
[Description:]
Insert finite-size particles or molecules into the simulation box
every few timesteps within a specified region until N particles have
been inserted. This is typically used to model the pouring of
granular particles into a container under the influence of gravity.
For the remainder of this doc page, a single inserted atom or molecule
is referred to as a "particle".
every few timesteps within a specified region until N particles or
molecules have been inserted. This is typically used to model the
pouring of granular particles into a container under the influence of
gravity. For the remainder of this doc page, a single inserted atom
or molecule is referred to as a "particle".
If inserted particles are individual atoms, they are assigned the
specified atom type. For molecules the specified type is ignored, and
@ -87,6 +90,12 @@ molecule can be specified in the molecule file. See the
required to be in this file are the coordinates and types of atoms in
the molecule.
If you wish to insert molecules via the {mol} keyword, that will be
treated as rigid bodies, you can first specify a "fix
rigid/small"_fix_rigid.html command, and then use the {rigid} keyword
with this command, specifying the ID of the fix rigid/small command as
its value.
Each timestep particles are inserted, they are placed randomly inside
the insertion volume so as to mimic a stream of poured particles. If
they are molecules they are also oriented randomly. The larger the

View File

@ -39,7 +39,7 @@
</PRE>
<LI>zero or more keyword/value pairs may be appended
<LI>keyword = <I>langevin</I> or <I>temp</I> or <I>iso</I> or <I>aniso</I> or <I>x</I> or <I>y</I> or <I>z</I> or <I>couple</I> or <I>tparam</I> or <I>pchain</I> or <I>dilate</I> or <I>force</I> or <I>torque</I> or <I>infile</I>
<LI>keyword = <I>langevin</I> or <I>temp</I> or <I>iso</I> or <I>aniso</I> or <I>x</I> or <I>y</I> or <I>z</I> or <I>couple</I> or <I>tparam</I> or <I>pchain</I> or <I>dilate</I> or <I>force</I> or <I>torque</I> or <I>infile</I> or <I>mol</I>
<PRE> <I>langevin</I> values = Tstart Tstop Tperiod seed
Tstart,Tstop = desired temperature at start/stop of run (temperature units)
@ -70,7 +70,9 @@
M = which rigid body from 1-Nbody (see asterisk form below)
xflag,yflag,zflag = off/on if component of center-of-mass torque is active
<I>infile</I> filename
filename = file with per-body values of mass, center-of-mass, moments of inertia
filename = file with per-body values of mass, center-of-mass, moments of inertia
<I>mol</I> value = template-ID
template-ID = ID of molecule template specified in a separate <A HREF = "molecule.html">molecule</A> command
</PRE>
</UL>
@ -178,6 +180,12 @@ setforce</A> command), and integrating them as usual
most one rigid body. Which atoms are in which bodies can be defined
via several options.
</P>
<P>IMPORTANT NOTE: With fix rigid/small, which requires bodystyle
<I>molecule</I>, you can define a system that has no rigid bodies
initially. This is useful when you are adding rigid bodies on-the-fly
via commands such as <A HREF = "fix_deposit.html">fix deposit</A> or <A HREF = "fix_pour.html">fix
pour</A>.
</P>
<P>For bodystyle <I>single</I> the entire fix group of atoms is treated as one
rigid body. This option is only allowed for fix rigid and its
sub-styles.
@ -438,6 +446,22 @@ rigid bodies should then effectively thermostat the rigid body
temperature as well without use of the Langevin or Nose/Hoover options
associated with the fix rigid commands.
</P>
<HR>
<P>The <I>mol</I> keyword can only be used with fix rigid/small. It should
be used when other commands, such as <A HREF = "fix_deposit.html">fix deposit</A> or
<A HREF = "fix_pour.html">fix pour</A>, which will add rigid bodies on-the-fly
during a simulation. You specify a <I>template-ID</I> previously defined
using the <A HREF = "molecule.html">molecule</A> command, which reads a file that
defines the molecule. You must use the same <I>template-ID</I> that the
command adding rigid bodies uses. The coordinates, atom types, atom
diameters, center-of-mass, and moments of inertia can be specified in
the molecule file. See the <A HREF = "molecule.html">molecule</A> command for
details. The only settings required to be in this file are the
coordinates and types of atoms in the molecule.
</P>
<HR>
<P>The <I>infile</I> keyword allows a file of rigid body attributes to be read
in from a file, rather then having LAMMPS compute them. There are 3
such attributes: the total mass of the rigid body, its center-of-mass
@ -493,6 +517,15 @@ fix using an <I>infile</I> keyword and the appropriate filename. Note that
the auxiliary file will contain one line for every rigid body, even if
the original file only listed a subset of the rigid bodies.
</P>
<P>IMPORTANT NOTE: If you are using fix rigid/small and defining a system
that has no rigid bodies initially, because they will be added
on-the-fly by commands such as <A HREF = "fix_deposit.html">fix deposit</A> or <A HREF = "fix_pour.html">fix
pour</A>, you may still wish to use the <I>infile</I> keyword.
This is so that restart files written during the simulation will
output an auxiliary restart file as described above with information
on the new rigid bodies. In this case the initial <I>infile</I> file
should use N = 0.
</P>
<HR>
<P>If you use a <A HREF = "compute.html">temperature compute</A> with a group that

View File

@ -27,7 +27,7 @@ bodystyle = {single} or {molecule} or {group} :l
groupID1, groupID2, ... = list of N group IDs :pre
zero or more keyword/value pairs may be appended :l
keyword = {langevin} or {temp} or {iso} or {aniso} or {x} or {y} or {z} or {couple} or {tparam} or {pchain} or {dilate} or {force} or {torque} or {infile} :l
keyword = {langevin} or {temp} or {iso} or {aniso} or {x} or {y} or {z} or {couple} or {tparam} or {pchain} or {dilate} or {force} or {torque} or {infile} or {mol} :l
{langevin} values = Tstart Tstop Tperiod seed
Tstart,Tstop = desired temperature at start/stop of run (temperature units)
Tdamp = temperature damping parameter (time units)
@ -57,7 +57,9 @@ keyword = {langevin} or {temp} or {iso} or {aniso} or {x} or {y} or {z} or {coup
M = which rigid body from 1-Nbody (see asterisk form below)
xflag,yflag,zflag = off/on if component of center-of-mass torque is active
{infile} filename
filename = file with per-body values of mass, center-of-mass, moments of inertia :pre
filename = file with per-body values of mass, center-of-mass, moments of inertia
{mol} value = template-ID
template-ID = ID of molecule template specified in a separate "molecule"_molecule.html command :pre
:ule
[Examples:]
@ -164,6 +166,12 @@ Each rigid body must have two or more atoms. An atom can belong to at
most one rigid body. Which atoms are in which bodies can be defined
via several options.
IMPORTANT NOTE: With fix rigid/small, which requires bodystyle
{molecule}, you can define a system that has no rigid bodies
initially. This is useful when you are adding rigid bodies on-the-fly
via commands such as "fix deposit"_fix_deposit.html or "fix
pour"_fix_pour.html.
For bodystyle {single} the entire fix group of atoms is treated as one
rigid body. This option is only allowed for fix rigid and its
sub-styles.
@ -424,6 +432,22 @@ rigid bodies should then effectively thermostat the rigid body
temperature as well without use of the Langevin or Nose/Hoover options
associated with the fix rigid commands.
:line
The {mol} keyword can only be used with fix rigid/small. It should
be used when other commands, such as "fix deposit"_fix_deposit.html or
"fix pour"_fix_pour.html, which will add rigid bodies on-the-fly
during a simulation. You specify a {template-ID} previously defined
using the "molecule"_molecule.html command, which reads a file that
defines the molecule. You must use the same {template-ID} that the
command adding rigid bodies uses. The coordinates, atom types, atom
diameters, center-of-mass, and moments of inertia can be specified in
the molecule file. See the "molecule"_molecule.html command for
details. The only settings required to be in this file are the
coordinates and types of atoms in the molecule.
:line
The {infile} keyword allows a file of rigid body attributes to be read
in from a file, rather then having LAMMPS compute them. There are 3
such attributes: the total mass of the rigid body, its center-of-mass
@ -479,6 +503,15 @@ fix using an {infile} keyword and the appropriate filename. Note that
the auxiliary file will contain one line for every rigid body, even if
the original file only listed a subset of the rigid bodies.
IMPORTANT NOTE: If you are using fix rigid/small and defining a system
that has no rigid bodies initially, because they will be added
on-the-fly by commands such as "fix deposit"_fix_deposit.html or "fix
pour"_fix_pour.html, you may still wish to use the {infile} keyword.
This is so that restart files written during the simulation will
output an auxiliary restart file as described above with information
on the new rigid bodies. In this case the initial {infile} file
should use N = 0.
:line
If you use a "temperature compute"_compute.html with a group that

View File

@ -54,20 +54,26 @@ lines can be used between sections. Sections can appear in any order,
with a few exceptions as noted below.
</P>
<P>These are the recognized header keywords. Header lines can come in
any order. The value(s) are read from the beginning of the line.
Thus the keyword <I>atoms</I> should be in a line like "10 atoms"; the
keyword <I>ylo yhi</I> should be in a line like "-10.0 10.0 ylo yhi"; the
keyword <I>xy xz yz</I> should be in a line like "0.0 5.0 6.0 xy xz yz".
All these settings have a default value of 0, except the lo/hi box
size defaults are -0.5 and 0.5. A line need only appear if the value
is different than the default.
any order. The numeric value(s) are read from the beginning of the
line. The keyword should appear at the end of the line. All these
settings have default values, as explained below. A line need only
appear if the value(s) are different than the default.
</P>
<UL><LI><I>atoms</I> = # of atoms in molecule
<LI><I>bonds</I> = # of bonds in molecule
<LI><I>angles</I> = # of angles in molecule
<LI><I>dihedrals</I> = # of dihedrals in molecule
<LI><I>impropers</I> = # of impropers in molecule
<UL><LI>N <I>atoms</I> = # of atoms N in molecule, default = 0
<LI>Nb <I>bonds</I> = # of bonds Nb in molecule, default = 0
<LI>Na <I>angles</I> = # of angles Na in molecule, default = 0
<LI>Nd <I>dihedrals</I> = # of dihedrals Nd in molecule, default = 0
<LI>Ni <I>impropers</I> = # of impropers Ni in molecule, default = 0
<LI>Mtotal <I>mass</I> = total mass of molecule
<LI>Xc Yc Zc <I>com</I> = coordinates of center-of-mass of molecule
<LI>Ixx Iyy Izz Ixy Ixz Iyz <I>inertia</I> = 6 components of inertia tensor of molecule
</UL>
<P>For <I>mass</I>, <I>com</I>, and <I>inertia</I>, the default is for LAMMPS to
calculate this quantity itself if needed, assuming the molecules
consists of a set of point particles. You typically only need to
specify these values for a rigid body consisting of overlapping
finite-size particles.
</P>
<P>These are the allowed section keywords for the body of the file.
</P>
<UL><LI><I>Coords, Types, Charges, Diameters, Masses</I> = atom-property sections
@ -75,16 +81,17 @@ is different than the default.
<LI><I>Special Bond Counts, Special Bonds</I> = special neighbor info
</UL>
<P>IMPORTANT NOTE: Whether a section is required depends on how the
molecule definition is used by other LAMMPS commands. For example, to
molecule template is used by other LAMMPS commands. For example, to
add a molecule via the <A HREF = "fix_deposit.html">fix deposit</A> command, the
Coords and Types sections are required. To add a rigid body via the
<A HREF = "fix_pout.html">fix pour</A> command, the Bonds (Angles, etc) sections are
not required, since the molecule will be treated as a rigid body.
Some sections are optional. For example, the <A HREF = "fix_pour.html">fix pour</A>
command can add finite-size granular particles. If the Diameters
section is not specified, added particles will have a default diameter
of 1.0. See the doc pages for LAMMPS commands that use read-in
molecules for more details.
command can be used to add "molecules" which are clusters of
finite-size granular particles. If the Diameters section is not
specified, each particle in the molecule will have a default diameter
of 1.0. See the doc pages for LAMMPS commands that use molecule
templates for more details.
</P>
<P>Each section is listed below in alphabetic order. The format of each
section is described including the number of lines it must contain and

View File

@ -51,19 +51,25 @@ lines can be used between sections. Sections can appear in any order,
with a few exceptions as noted below.
These are the recognized header keywords. Header lines can come in
any order. The value(s) are read from the beginning of the line.
Thus the keyword {atoms} should be in a line like "10 atoms"; the
keyword {ylo yhi} should be in a line like "-10.0 10.0 ylo yhi"; the
keyword {xy xz yz} should be in a line like "0.0 5.0 6.0 xy xz yz".
All these settings have a default value of 0, except the lo/hi box
size defaults are -0.5 and 0.5. A line need only appear if the value
is different than the default.
any order. The numeric value(s) are read from the beginning of the
line. The keyword should appear at the end of the line. All these
settings have default values, as explained below. A line need only
appear if the value(s) are different than the default.
{atoms} = # of atoms in molecule
{bonds} = # of bonds in molecule
{angles} = # of angles in molecule
{dihedrals} = # of dihedrals in molecule
{impropers} = # of impropers in molecule :ul
N {atoms} = # of atoms N in molecule, default = 0
Nb {bonds} = # of bonds Nb in molecule, default = 0
Na {angles} = # of angles Na in molecule, default = 0
Nd {dihedrals} = # of dihedrals Nd in molecule, default = 0
Ni {impropers} = # of impropers Ni in molecule, default = 0
Mtotal {mass} = total mass of molecule
Xc Yc Zc {com} = coordinates of center-of-mass of molecule
Ixx Iyy Izz Ixy Ixz Iyz {inertia} = 6 components of inertia tensor of molecule :ul
For {mass}, {com}, and {inertia}, the default is for LAMMPS to
calculate this quantity itself if needed, assuming the molecules
consists of a set of point particles. You typically only need to
specify these values for a rigid body consisting of overlapping
finite-size particles.
These are the allowed section keywords for the body of the file.
@ -72,16 +78,17 @@ These are the allowed section keywords for the body of the file.
{Special Bond Counts, Special Bonds} = special neighbor info :ul
IMPORTANT NOTE: Whether a section is required depends on how the
molecule definition is used by other LAMMPS commands. For example, to
molecule template is used by other LAMMPS commands. For example, to
add a molecule via the "fix deposit"_fix_deposit.html command, the
Coords and Types sections are required. To add a rigid body via the
"fix pour"_fix_pout.html command, the Bonds (Angles, etc) sections are
not required, since the molecule will be treated as a rigid body.
Some sections are optional. For example, the "fix pour"_fix_pour.html
command can add finite-size granular particles. If the Diameters
section is not specified, added particles will have a default diameter
of 1.0. See the doc pages for LAMMPS commands that use read-in
molecules for more details.
command can be used to add "molecules" which are clusters of
finite-size granular particles. If the Diameters section is not
specified, each particle in the molecule will have a default diameter
of 1.0. See the doc pages for LAMMPS commands that use molecule
templates for more details.
Each section is listed below in alphabetic order. The format of each
section is described including the number of lines it must contain and