"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 smd/move_tri_surf command :h3

[Syntax:]

fix ID group-ID smd/move_tri_surf keyword :pre

ID, group-ID are documented in "fix"_fix.html command :ulb,l
smd/move_tri_surf keyword = style name of this fix command :l
keyword = {*LINEAR} or {*WIGGLE} or {*ROTATE} :l

   {*LINEAR} args = Vx Vy Vz
      Vx,Vy,Vz = components of velocity vector (velocity units), any component can be specified as NULL
   {*WIGGLE} args = Vx Vy Vz max_travel
      vx,vy,vz = components of velocity vector (velocity units), any component can be specified as NULL
      max_travel = wiggle amplitude
   {*ROTATE} args = Px Py Pz Rx Ry Rz period
      Px,Py,Pz = origin point of axis of rotation (distance units)
      Rx,Ry,Rz = axis of rotation vector
      period = period of rotation (time units) :pre
      
:ule      

[Examples:]

fix 1 tool smd/move_tri_surf *LINEAR 20 20 10
fix 2 tool smd/move_tri_surf *WIGGLE 20 20 10
fix 2 tool smd/move_tri_surf *ROTATE 0 0 0 5 2 1 :pre

[Description:]

This fix applies only to rigid surfaces read from .STL files via fix "smd/wall_surface"_fix_smd_wall_surface.html .
It updates position and velocity for the particles in the group each timestep without regard to forces on the particles.
The rigid surfaces can thus be moved along simple trajectories during the simulation.

The {*LINEAR} style moves particles with the specified constant velocity
vector V = (Vx,Vy,Vz). This style also sets the velocity of each particle
to V = (Vx,Vy,Vz). 

The {*WIGGLE} style moves particles in an oscillatory fashion.
Particles are moved along (vx, vy, vz) with constant velocity until a
displacement of max_travel is reached. Then, the velocity vector is
reversed. This process is repeated.

The {*ROTATE} style rotates particles around a rotation axis R = (Rx,Ry,Rz) that
goes through a point P = (Px,Py,Pz). The period of the rotation is also
specified. This style also sets the velocity of each particle to (omega cross
Rperp) where omega is its angular velocity around the rotation axis and
Rperp is a perpendicular vector from the rotation axis to the particle.

See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth Mach Dynamics in LAMMPS.

[Restart, fix_modify, output, run start/stop, minimize info:]

Currently, no part of USER-SMD supports restarting nor minimization. This fix has no outputs.

[Restrictions:]

This fix is part of the USER-SMD package.  It is only enabled if
LAMMPS was built with that package. See the "Making LAMMPS"_Section_start.html#start_3
section for more info.


[Related commands:]

"smd/triangle_mesh_vertices"_compute_smd_triangle_mesh_vertices.html, "smd/wall_surface"_fix_smd_wall_surface.html

[Default:] none
