24小时热门版块排行榜    

查看: 1598  |  回复: 12
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

hplc303

金虫 (小有名气)

[求助] Lammps 控制water droplet 移动

想控制water droplet 在平面上沿着轴向移动,
使用
fix    1  waterdroplet   setforce 0.0 0.0 0.0
velocity waterdroplet   set 2.0 0.0 0.0

运行之后发现 速度为零。
请问各位大侠,用什么命令可以实现water droplet 在平面上移动(velocity constant)
初学lammps请多指教
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yangwenbin99

铜虫 (小有名气)

引用回帖:
3楼: Originally posted by hplc303 at 2013-06-27 08:17:30
units           real
atom_style      full
dimension       3
boundary        p p f

pair_style      lj/cut/coul/long 12.0 12.0
pair_modify     mix arithmetic
bond_style      harmonic
angle_st ...

你好,能告诉我water droplet是怎么建立的吗?是用MS还是直接用lammps建的
9楼2013-06-28 21:39:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 13 个回答

zhang_jaj

木虫 (正式写手)

【答案】应助回帖


感谢参与,应助指数 +1
jiaoyixiong: 金币+1, 鼓励交流 2013-06-27 07:57:15
可能跟你的整体代码有关,信息量太少,不好判断啊
2楼2013-06-26 19:39:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hplc303

金虫 (小有名气)

引用回帖:
2楼: Originally posted by zhang_jaj at 2013-06-26 19:39:33
可能跟你的整体代码有关,信息量太少,不好判断啊

units           real
atom_style      full
dimension       3
boundary        p p f

pair_style      lj/cut/coul/long 12.0 12.0
pair_modify     mix arithmetic
bond_style      harmonic
angle_style     harmonic
dihedral_style  none
improper_style  none
kspace_style    ewald 0.00001
kspace_modify   slab  3.0

read_data       data.waterpillar

neighbor        2.0 bin
neigh_modify    delay 5

timestep        1.0

group           water    type 2 3
group           pillar   type 1
velocity        pillar   set 0.0 0.0 0.0
velocity        water    set 2.0 0.0 0.0
fix              1  pillar setforce 0.0 0.0 0.0
fix              2  water  setforce 0.0 0.0 0.0
fix              3  water   shake 0.0001 10 10  b 1 a 1
fix              4  all  nvt temp 300.0 300.0 100.0 #iso 1.0 1.0 1000.0

dump            1 all custom 1 dump.waterpillar  id type x y z

restart 100       tmp.restart1  tmp.restart2

run             40000
请多多指教,谢谢!
3楼2013-06-27 08:17:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zhang_jaj

木虫 (正式写手)

【答案】应助回帖

★ ★ ★ ★ ★
hplc303: 金币+5, 有帮助 2013-06-27 20:41:38
应该是你给了water set force为0的原因吧
4楼2013-06-27 18:17:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见