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 spring/self command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2012-01-07 01:38:57 +08:00
|
|
|
fix ID group-ID spring/self K dir :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
ID, group-ID are documented in "fix"_fix.html command
|
|
|
|
spring/self = style name of this fix command
|
2012-01-07 01:38:57 +08:00
|
|
|
K = spring constant (force/distance units)
|
|
|
|
dir = xyz, xy, xz, yz, x, y, or z (optional, default: xyz) :ul
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2012-01-07 01:38:57 +08:00
|
|
|
fix tether boundary-atoms spring/self 10.0
|
|
|
|
fix zrest move spring/self 10.0 z :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
Apply a spring force independently to each atom in the group to tether
|
|
|
|
it to its initial position. The initial position for each atom is its
|
|
|
|
location at the time the fix command was issued. At each timestep,
|
|
|
|
the magnitude of the force on each atom is -Kr, where r is the
|
|
|
|
displacement of the atom from its current position to its initial
|
|
|
|
position.
|
|
|
|
|
2012-01-07 01:38:57 +08:00
|
|
|
With the (optional) dir flag, one can select in which direction the
|
|
|
|
spring force is applied. By default, the restraint is applied in all
|
|
|
|
directions, but it can be limited to the xy-, xz-, yz-plane and the
|
|
|
|
x-, y-, or z-direction, thus restraining the atoms to a line or a
|
|
|
|
plane, respectively.
|
|
|
|
|
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
|
|
|
|
|
|
|
This fix writes the original coordinates of tethered atoms to "binary
|
|
|
|
restart files"_restart.html, so that the spring effect will be the
|
|
|
|
same in a restarted simulation. See the
|
|
|
|
"read_restart"_read_restart.html command for info on how to re-specify
|
|
|
|
a fix in an input script that reads a restart file, so that the
|
|
|
|
operation of the fix continues in an uninterrupted fashion.
|
|
|
|
|
2008-06-07 07:21:53 +08:00
|
|
|
The "fix_modify"_fix_modify.html {energy} option is supported by this
|
|
|
|
fix to add the energy stored in the per-atom springs to the system's
|
|
|
|
potential energy as part of "thermodynamic output"_thermo_style.html.
|
|
|
|
|
2010-04-03 00:51:06 +08:00
|
|
|
This fix computes a global scalar which can be accessed by various
|
2011-08-26 01:01:01 +08:00
|
|
|
"output commands"_Section_howto.html#howto_15. The scalar is an
|
|
|
|
energy which is the sum of the spring energy for each atom, where the
|
2010-04-03 00:51:06 +08:00
|
|
|
per-atom energy is 0.5 * K * r^2. The scalar value calculated by this
|
|
|
|
fix is "extensive".
|
2008-06-07 07:21:53 +08:00
|
|
|
|
|
|
|
No parameter of this fix can be used with the {start/stop} keywords of
|
|
|
|
the "run"_run.html command.
|
|
|
|
|
|
|
|
The forces due to this fix are imposed during an energy minimization,
|
|
|
|
invoked by the "minimize"_minimize.html command.
|
|
|
|
|
|
|
|
IMPORTANT NOTE: If you want the per-atom spring energy to be included
|
|
|
|
in the total potential energy of the system (the quantity being
|
|
|
|
minimized), you MUST enable the "fix_modify"_fix_modify.html {energy}
|
|
|
|
option for this fix.
|
2007-06-26 08:03:39 +08:00
|
|
|
|
2006-09-22 00:22:34 +08:00
|
|
|
[Restrictions:] none
|
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
2008-05-16 06:05:51 +08:00
|
|
|
"fix drag"_fix_drag.html, "fix spring"_fix_spring.html,
|
|
|
|
"fix smd"_fix_smd.html, "fix spring/rg"_fix_spring_rg.html
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Default:] none
|