forked from lijiext/lammps
67 lines
1.9 KiB
HTML
67 lines
1.9 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>fix momentum command
|
||
|
</H3>
|
||
|
<P><B>Syntax:</B>
|
||
|
</P>
|
||
|
<PRE>fix ID group-ID momentum N keyword values ...
|
||
|
</PRE>
|
||
|
<UL><LI>ID, group-ID are documented in <A HREF = "fix.html">fix</A> command
|
||
|
|
||
|
<LI>momentum = style name of this fix command
|
||
|
|
||
|
<LI>one or more keyword/value pairs may be appended to the args
|
||
|
|
||
|
<LI>keyword = <I>linear</I> or <I>angular</I>
|
||
|
|
||
|
<PRE> <I>linear</I> values = xflag yflag zflag
|
||
|
xflag,yflag,zflag = 0/1 to exclude/include each dimension
|
||
|
<I>angular</I> values = none
|
||
|
</PRE>
|
||
|
|
||
|
</UL>
|
||
|
<P><B>Examples:</B>
|
||
|
</P>
|
||
|
<PRE>fix 1 all momentum 1 linear 1 1 0 angular
|
||
|
</PRE>
|
||
|
<P><B>Description:</B>
|
||
|
</P>
|
||
|
<P>Zero the linear and/or angular momentum of the group of atoms every N
|
||
|
timesteps by adjusting the velocities of the atoms.
|
||
|
</P>
|
||
|
<P>If the <I>linear</I> keyword is used, the linear momentum is zeroed by
|
||
|
subtracting the center-of-mass velocity of the group from each atom.
|
||
|
This does not change the relative velocity of any pair of atoms. One
|
||
|
or more dimensions can be excluded from this operation by setting the
|
||
|
corresponding flag to 0.
|
||
|
</P>
|
||
|
<P>If the <I>angular</I> keyword is used, the angular momentum is zeroed by
|
||
|
subtracting a rotational component from each atom.
|
||
|
</P>
|
||
|
<P>This command can be used to insure the entire collection of atoms (or
|
||
|
a subset of them) does not drift or rotate during the simulation due
|
||
|
to random perturbations (e.g. <A HREF = "fix_langevin.html">fix langevin</A>
|
||
|
thermostatting).
|
||
|
</P>
|
||
|
<P>Note that the <A HREF = "velocity.html">velocity</A> command can be used to create
|
||
|
velocities with zero aggregate linear and/or angular momentum.
|
||
|
</P>
|
||
|
<P><B>Restrictions:</B> none
|
||
|
</P>
|
||
|
<P><B>Related commands:</B>
|
||
|
</P>
|
||
|
<P><A HREF = "fix_recenter.html">fix recenter</A>, <A HREF = "velocity.html">velocity</A>
|
||
|
</P>
|
||
|
<P><B>Default:</B> none
|
||
|
</P>
|
||
|
</HTML>
|