lammps/doc/fix_momentum.txt

58 lines
1.7 KiB
Plaintext

"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 momentum command :h3
[Syntax:]
fix ID group-ID momentum N keyword values ... :pre
ID, group-ID are documented in "fix"_fix.html command :ulb,l
momentum = style name of this fix command :l
one or more keyword/value pairs may be appended to the args :l
keyword = {linear} or {angular} :l
{linear} values = xflag yflag zflag
xflag,yflag,zflag = 0/1 to exclude/include each dimension
{angular} values = none :pre
:ule
[Examples:]
fix 1 all momentum 1 linear 1 1 0 angular :pre
[Description:]
Zero the linear and/or angular momentum of the group of atoms every N
timesteps by adjusting the velocities of the atoms.
If the {linear} 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.
If the {angular} keyword is used, the angular momentum is zeroed by
subtracting a rotational component from each atom.
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. "fix langevin"_fix_langevin.html
thermostatting).
Note that the "velocity"_velocity.html command can be used to create
velocities with zero aggregate linear and/or angular momentum.
[Restrictions:] none
[Related commands:]
"fix recenter"_fix_recenter.html, "velocity"_velocity.html
[Default:] none