set command and region command with move keyword

Submitted by Weijing on Tue, 01/10/2017 - 01:10

Hi everyone,

I am trying to learn more about the LIGGGHTS. In this scenarios, I tried to set a moving region with constant temperature, so I wrote

variable dy equal "0.08*(step-20000)/30000"
region pos_source block -0.05 0.05 -0.05 -0.03 0.0 0.05 move NULL v_dy NULL
fix test all print 1000 "${dy}"
set region pos_source property/atom Temp 500

But the result shows the set command only affect once and give the same result as

variable dy equal "0.08*(step-20000)/30000"
region pos_source block -0.05 0.05 -0.05 -0.03 0.0 0.05
fix test all print 1000 "${dy}"
set region pos_source property/atom Temp 500

Can I use only one set command to realise this idea? or I need to write some more command?

Thanks a lot
Weijing

Weijing | Tue, 01/10/2017 - 04:42

I manage to set the moving region with run every command. however, the set command is enforced during the whole simulation as long as it is invoked.
My purpose is to only set the region to the specified condition, i.e. set command moves with region command. Does liggghts have a way to unset, just like the unfix?
Thanks
Weijing