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
|
|
|
|
|
|
|
|
fix indent command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2007-07-03 04:04:44 +08:00
|
|
|
fix ID group-ID indent k keyword values ... :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
ID, group-ID are documented in "fix"_fix.html command :ulb,l
|
|
|
|
indent = style name of this fix command :l
|
|
|
|
k = force constant for indenter surface (force/distance^2 units) :l
|
2007-07-03 04:04:44 +08:00
|
|
|
one or more keyword/value pairs may be appended :l
|
2009-07-02 04:28:51 +08:00
|
|
|
keyword = {sphere} or {cylinder} or {plane} or {vel} or {rstart} or {side} or {units} :l
|
2006-09-22 00:22:34 +08:00
|
|
|
{sphere} args = x y z R
|
2008-10-02 00:01:49 +08:00
|
|
|
x,y,z = initial position of center of indenter (distance units)
|
2006-09-22 00:22:34 +08:00
|
|
|
R = sphere radius of indenter (distance units)
|
|
|
|
{cylinder} args = dim c1 c2 R
|
2008-10-02 00:01:49 +08:00
|
|
|
dim = {x} or {y} or {z} = axis of cylinder
|
2006-09-22 00:22:34 +08:00
|
|
|
c1,c2 = coords of cylinder axis in other 2 dimensions (distance units)
|
|
|
|
R = cylinder radius of indenter (distance units)
|
2008-10-02 00:01:49 +08:00
|
|
|
{plane} args = dim pos side
|
|
|
|
dim = {x} or {y} or {z} = plane perpendicular to this dimension
|
|
|
|
pos = position of plane in dimension x, y, or z (distance units)
|
|
|
|
side = {lo} or {hi}
|
2006-09-22 00:22:34 +08:00
|
|
|
{vel} args = vx vy vz
|
|
|
|
vx,vy,vz = velocity of center of indenter (velocity units)
|
|
|
|
{rstart} value = R0
|
2006-12-13 08:37:25 +08:00
|
|
|
R0 = sphere or cylinder radius at start of run (distance units)
|
2006-09-22 00:22:34 +08:00
|
|
|
R is value at end of run, so indenter expands/contracts over time
|
2009-07-02 04:28:51 +08:00
|
|
|
{side} value = {in} or {out}
|
|
|
|
{in} = the indenter acts on particles inside the sphere or cylinder
|
|
|
|
{out} = the indenter acts on particles outside the sphere or cylinder
|
2006-09-22 00:22:34 +08:00
|
|
|
{units} value = {lattice} or {box}
|
|
|
|
lattice = the geometry is defined in lattice units
|
|
|
|
box = the geometry is defined in simulation box units :pre
|
|
|
|
:ule
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
fix 1 all indent 10.0 sphere 0.0 0.0 15.0 3.0 vel 0.0 0.0 -1.0
|
|
|
|
fix 2 flow indent 10.0 cylinder z 0.0 0.0 10.0 units box :pre
|
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
Insert an indenter within a simulation box. The indenter repels all
|
|
|
|
atoms that touch it, so it can be used to push into a material or as
|
2009-07-02 04:28:51 +08:00
|
|
|
an obstacle in a flow. Or it can be used as a constraining wall
|
|
|
|
around a simulation; see the discussion of the {side} keyword below.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2008-10-02 00:01:49 +08:00
|
|
|
The indenter can either be spherical or cylindrical or planar. You
|
|
|
|
must set one of those 3 keywords.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
A spherical indenter exerts a force of magnitude
|
|
|
|
|
|
|
|
F(r) = - k (r - R)^2 :pre
|
|
|
|
|
|
|
|
on each atom where {k} is the specified force constant, {r} is the
|
|
|
|
distance from the atom to the center of the indenter, and {R} is the
|
|
|
|
radius of the indenter. The force is repulsive and F(r) = 0 for {r} >
|
2009-08-09 02:43:01 +08:00
|
|
|
{R}. The calculation of distance to the indenter center accounts
|
|
|
|
for periodic boundaries, which means the indenter can effectively
|
|
|
|
straddle one or more periodic boundaries.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
A cylindrical indenter exerts the same force, except that {r} is the
|
|
|
|
distance from the atom to the center axis of the cylinder. The
|
2009-08-09 02:43:01 +08:00
|
|
|
cylinder extends infinitely along its axis. The calculation of
|
|
|
|
distance to the indenter axis accounts for periodic boundaries, which
|
|
|
|
means the indenter can effectively straddle one or more periodic
|
|
|
|
boundaries.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2008-10-02 00:01:49 +08:00
|
|
|
A planar indenter is really an axis-aligned infinite-extent wall
|
2008-11-13 23:34:21 +08:00
|
|
|
exerting the same force on atoms in the system, where {R} is the
|
|
|
|
position of the plane and {r-R} is the distance from the plane. If
|
|
|
|
the {side} parameter of the plane is specified as {lo} then it will
|
|
|
|
indent from the lo end of the simulation box, meaning that atoms with
|
|
|
|
a coordinate less than the plane's current position will be pushed
|
|
|
|
towards the hi end of the box and atoms with a coordinate higher than
|
|
|
|
the plane's current position will feel no force. Vice versa if {side}
|
|
|
|
is specified as {hi}.
|
2008-10-02 00:01:49 +08:00
|
|
|
|
|
|
|
If the {vel} keyword is specified, the center (or axis or position) of
|
|
|
|
the spherical (or cylindrical or planar) indenter will move during the
|
2009-08-20 01:24:02 +08:00
|
|
|
simulation, based on its initial position (x,y,z), the specified
|
|
|
|
(vx,vy,vz), and the time elapsed since the beginning of the
|
|
|
|
simulation. For periodic systems and spherical or cylindrical
|
|
|
|
indenters, the new position of the center or axis is wrapped back into
|
|
|
|
the periodic box as needed. See the note below about making the
|
|
|
|
indenter move continuously across multiple runs.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
If the {rstart} keyword is specified, then the radius of the indenter
|
2009-07-02 04:28:51 +08:00
|
|
|
is a time-dependent quantity. This only applies to spherical or
|
|
|
|
cylindrical indenters. R0 is the value assigned at the start of the
|
|
|
|
run; R is the value at the end. At intermediate times, the radius is
|
|
|
|
linearly interpolated between these two values. This option can be
|
|
|
|
used, for example, to grow/shrink a void within the simulation box.
|
2009-08-20 01:24:02 +08:00
|
|
|
See the note below about making the radius change continuously across
|
|
|
|
multiple runs.
|
2009-07-02 04:28:51 +08:00
|
|
|
|
|
|
|
If the {side} keyword is specified as {out}, which is the default,
|
|
|
|
then particles outside the indenter are pushded away from its outer
|
|
|
|
surface, as described above. This only applies to spherical or
|
|
|
|
cylindrical indenters. If the {side} keyword is specified as {in},
|
|
|
|
the action of the indenter is reversed. Particles inside the indenter
|
|
|
|
are pushed away from its inner surface. In other words, the indenter
|
|
|
|
is now a containing wall that traps the particles inside it. If the
|
|
|
|
radius shrinks over time, it will squeeze the particles.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
The {units} keyword determines the meaning of the distance units used
|
|
|
|
to define the indenter. A {box} value selects standard distance units
|
|
|
|
as defined by the "units"_units.html command, e.g. Angstroms for units
|
|
|
|
= real or metal. A {lattice} value means the distance units are in
|
2006-11-14 06:18:34 +08:00
|
|
|
lattice spacings. The "lattice"_lattice.html command must have been
|
|
|
|
previously used to define the lattice spacing. Note that the units
|
|
|
|
choice affects not only the indenter's physical geometry, but also its
|
|
|
|
velocity and force constant since they are defined in terms of
|
|
|
|
distance as well.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2007-10-11 06:28:11 +08:00
|
|
|
[Restart, fix_modify, output, run start/stop, minimize info:]
|
2007-06-26 08:03:39 +08:00
|
|
|
|
|
|
|
No information about this fix is written to "binary restart
|
|
|
|
files"_restart.html.
|
|
|
|
|
|
|
|
The "fix_modify"_fix_modify.html {energy} option is supported by this
|
|
|
|
fix to add the energy of interaction between atoms and the indenter to
|
|
|
|
the system's potential energy as part of "thermodynamic
|
|
|
|
output"_thermo_style.html. The energy of each particle interacting
|
|
|
|
with the indenter is K/3 (r - R)^3.
|
|
|
|
|
2007-10-10 02:24:42 +08:00
|
|
|
This fix computes a scalar energy and a 3-vector of forces (on the
|
|
|
|
indenter), which can be accessed by various "output
|
2008-01-03 03:25:15 +08:00
|
|
|
commands"_Section_howto.html#4_15. The scalar and vector values
|
2010-03-03 05:59:33 +08:00
|
|
|
calculated by this fix are "extensive".
|
2007-06-26 08:03:39 +08:00
|
|
|
|
|
|
|
This fix can adjust the indenter position and radius over multiple
|
|
|
|
runs, using the {start} and {stop} keywords of the "run"_run.html
|
|
|
|
command. See the "run"_run.html command for details of how to do
|
2009-08-20 01:24:02 +08:00
|
|
|
this. If you do not do this, the indenter position and readius will
|
|
|
|
be reset to their specified initial values at the beginning of each
|
|
|
|
run.
|
2007-06-26 08:03:39 +08:00
|
|
|
|
|
|
|
The forces due to this fix are imposed during an energy minimization,
|
|
|
|
invoked by the "minimize"_minimize.html command. The {rstart} keyword
|
|
|
|
does not change the indenter radius during an energy minimization; the
|
|
|
|
indenter always has a radius of its final value R in that case.
|
|
|
|
|
|
|
|
IMPORTANT NOTE: If you want the atom/indenter interaction energy to be
|
|
|
|
included in the total potential energy of the system (the quantity
|
2007-08-29 22:13:51 +08:00
|
|
|
being minimized), you must enable the "fix_modify"_fix_modify.html
|
2007-06-26 08:03:39 +08:00
|
|
|
{energy} option for this fix.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Restrictions:] none
|
|
|
|
|
|
|
|
[Related commands:] none
|
|
|
|
|
|
|
|
[Default:]
|
|
|
|
|
2009-07-02 04:28:51 +08:00
|
|
|
The option defaults are vel = 0,0,0, side = out, and units = lattice.
|