fix nve/setmove#

Syntax#

fix ID group-ID nve/setmove keyword value ...
  • ID, group-ID are documented in fix command

  • nve/setmove = style name of this fix command

  • zero or more keyword/value pairs may be appended

  • keyword = insert_timing or insert_method or region or radius or type or move

    • insert_timing values = noinsert or once or every

      • noinsert = no particle insertion

      • once = insert particle once

      • every value = every how many time-steps particles are inserted

    • insert_method value = lattice or random

      • lattice = insert particles on a lattice

      • random values = np seed

        • np = number of particles to insert (positive integer)

        • seed = random # seed (prime number > 10000)

    • region value = region-ID for particle insertion

    • radius value = radius of spherical particle

    • type value = particle type

    • move values = nomove or linear or rotate

      • nomove = no particle movement

      • linear values = Vx Vy Vz

        • Vx Vy Vz = components of velocity vector (velocity units)

      • rotate values = Px Py Pz ax ay az period

        • Px Py Pz = origin point of rotation (distance units)

        • ax ay az = axis of rotation vector (distance units)

        • period = period of rotation (time units)

Examples#

fix 3 wall nve/setmove move linear -1 0 0
fix 3 wall nve/setmove insert_timing every 2892 insert_method lattice radius 0.01 type 1 move rotate 0.5 0 0.4 0 1 0 2 region insert
fix 3 wall nve/setmove insert_timing once insert_method random 100 27644437 radius 0.01 type 1 move linear -1 0 0 region insert

Description#

Set movement for particles in the group each timestep and ignores the force acting on the particles. This can be useful for creating wall particles, and for these particles to move (or stay stationary) in a prescribed fashion.

Currently, the following types of particle movement are available as specified by the move keyword: nomove, linear or rotate. linear moves particles at a constant velocity given by the vector V = (Vx,Vy,Vz), while rotate rotates particles around a rotation axis a = (ax,ay,az) that goes through a point P = {Px,Py,Pz}. The period of the rotation is also specified.

This fix works with any particles inserted by LIGGGHTS commands. Particles can also be inserted directly from this fix. Two insertion methods are available from the insert_method keyword: lattice or random. For lattice insertion, particles are inserted on a lattice which has to be first defined using the lattice command. For random insertion, particles are generated randomly with the number of particles and a random number seed specified.

Other insertion options to be specified include insert_timing, where once inserts particle only once or every for continuous particle insertion every certain timestep. The particle insertion region is specified by region, particle radius specified by radius and particle type specified by type.

Restart, fix_modify, output, run start/stop, minimise info#

No information about this fix is written to binary restart files. None of the fix_modify options are relevant to this fix. No global or per-atom quantities are stored by this fix for access by various output commands. No parameter of this fix can be used with the start/stop keywords of the run command. This fix is not invoked during energy minimisation.

Restrictions#

none

Default#

insert_timing = noinsert, move = nomove