2006-09-22 00:22:34 +08:00
|
|
|
<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>fix spring/self command
|
|
|
|
</H3>
|
|
|
|
<P><B>Syntax:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>fix ID group-ID spring/self K
|
|
|
|
</PRE>
|
|
|
|
<UL><LI>ID, group-ID are documented in <A HREF = "fix.html">fix</A> command
|
|
|
|
<LI>spring/self = style name of this fix command
|
|
|
|
<LI>K = spring constant (force/distance units)
|
|
|
|
</UL>
|
|
|
|
<P><B>Examples:</B>
|
|
|
|
</P>
|
|
|
|
<PRE>fix tether boundary-atoms spring/self 10.0
|
|
|
|
</PRE>
|
|
|
|
<P><B>Description:</B>
|
|
|
|
</P>
|
|
|
|
<P>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.
|
|
|
|
</P>
|
2007-10-11 06:28:11 +08:00
|
|
|
<P><B>Restart, fix_modify, output, run start/stop, minimize info:</B>
|
2007-06-26 08:03:39 +08:00
|
|
|
</P>
|
|
|
|
<P>This fix writes the original coordinates of tethered atoms to <A HREF = "restart.html">binary
|
|
|
|
restart files</A>, so that the spring effect will be the
|
|
|
|
same in a restarted simulation. See the
|
|
|
|
<A HREF = "read_restart.html">read_restart</A> 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.
|
|
|
|
</P>
|
2008-06-07 07:21:53 +08:00
|
|
|
<P>The <A HREF = "fix_modify.html">fix_modify</A> <I>energy</I> 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 <A HREF = "thermo_style.html">thermodynamic output</A>.
|
|
|
|
</P>
|
2010-04-03 00:51:06 +08:00
|
|
|
<P>This fix computes a global scalar which can be accessed by various
|
2011-08-26 01:01:01 +08:00
|
|
|
<A HREF = "Section_howto.html#howto_15">output commands</A>. 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
|
|
|
</P>
|
|
|
|
<P>No parameter of this fix can be used with the <I>start/stop</I> keywords of
|
|
|
|
the <A HREF = "run.html">run</A> command.
|
|
|
|
</P>
|
|
|
|
<P>The forces due to this fix are imposed during an energy minimization,
|
|
|
|
invoked by the <A HREF = "minimize.html">minimize</A> command.
|
|
|
|
</P>
|
|
|
|
<P>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 <A HREF = "fix_modify.html">fix_modify</A> <I>energy</I>
|
|
|
|
option for this fix.
|
2007-06-26 08:03:39 +08:00
|
|
|
</P>
|
2006-09-22 00:22:34 +08:00
|
|
|
<P><B>Restrictions:</B> none
|
|
|
|
</P>
|
|
|
|
<P><B>Related commands:</B>
|
|
|
|
</P>
|
2008-05-16 06:05:51 +08:00
|
|
|
<P><A HREF = "fix_drag.html">fix drag</A>, <A HREF = "fix_spring.html">fix spring</A>,
|
|
|
|
<A HREF = "fix_smd.html">fix smd</A>, <A HREF = "fix_spring_rg.html">fix spring/rg</A>
|
2006-09-22 00:22:34 +08:00
|
|
|
</P>
|
|
|
|
<P><B>Default:</B> none
|
|
|
|
</P>
|
|
|
|
</HTML>
|