LAMMPS 中如何实现Wall的移动 您所在的位置:网站首页 wiggle怎么设置时间 LAMMPS 中如何实现Wall的移动

LAMMPS 中如何实现Wall的移动

2024-06-18 10:35| 来源: 网络整理| 查看: 265

这是手册里的关于墙的位置是变量的设置,可以根据自己的需要选择一个函数。 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,又担心影响墙的影响。不知道该怎么解决,



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有