Movement of the cylindrical area

Dear all:
I want to make a cylindrical area move in a negative direction along the X axis.But The cylindrical area did not move after I used the following command, but it looked more like it was rotating with OVITO. I want to know where I went wrong.
variable dx equal “-3stepdt”
variable dy equal 0
variable dz equal 0
region tool cylinder z 140 50 10 40 50 side in move v_dx v_dy v_dz units box
THANKS!

There is not enough information here to understand what you are looking at in OVITO, but using the built in visualizer in LAMMPS in the latest development code, I can visualize that region, too, and it looks like it is moving as expected. Here is my input:

units real

region box block 0 200 0 200 0 200
create_box 2 box

mass * 1.0

variable dx equal "-3*step*dt"
variable dy equal 0
variable dz equal 0
region tool cylinder z 140 50 10 40 50 side in move v_dx v_dy v_dz units box

timestep 0.1
dump viz all image 10 myimage-*.ppm element type size 600 600 zoom 1 shiny 0.6 fsaa no view 60 30 box no 0.025 axes yes 0.2 0.02 region tool white filled center s 0.5 0.5 0.5
dump_modify viz pad 9 boxcolor yellow backcolor black element H H adiam 1 0.6 adiam 2 0.6

run 500

myimage

Thank you very much for your help, I’ll double-check if there is any other code conflicting with it.