这是手册里的关于墙的位置是变量的设置,可以根据自己的需要选择一个函数。
Here are examples of variable definitions that move the wall position in a time-dependent fashion using
equal-style variables. The wall interaction parameters (epsilon, sigma) could be varied with additional variable
definitions.
variable ramp equal ramp(0,10)
fix 1 all wall xlo v_ramp 1.0 1.0 2.5
variable linear equal vdisplace(0,20)
fix 1 all wall xlo v_linear 1.0 1.0 2.5
variable wiggle equal swiggle(0.0,5.0,3.0)
fix 1 all wall xlo v_wiggle 1.0 1.0 2.5
variable wiggle equal cwiggle(0.0,5.0,3.0)
fix 1 all wall xlo v_wiggle 1.0 1.0 2.5
The ramp(lo,hi) function adjusts the wall position linearly from lo to hi over the course of a run. The
vdisplace(c0,velocity) function does something similar using the equation position = c0 + velocity*delta, where
delta is the elapsed time.
我也在用这个命令,但是遇到一个问题:如果z方向是固定边界,在墙移动过程中,它是不动的,他不可以跟着墙一起运动,如果边界换成s,又担心影响墙的影响。不知道该怎么解决,
|