24小时热门版块排行榜    

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

acnes

金虫 (正式写手)

[求助] LAMMPS计算水分子扩散系数 已有3人参与

想研究水分子在分子筛里面的自由扩散系数,in文件如下
-----------------------------------------------------------------------------------
units          real
atom_style     full
bond_style     harmonic
angle_style    harmonic
dihedral_style harmonic
boundary       p p p

#Build the model
read_data w1.data
variable T equal 298.15
group zeo type 1 2 3
group water type 4 5

#Specify the potential

pair_style hybrid lj/cut/coul/long 9.0 10.0 lj/cut/tip4p/long 4 5 3 4 0.125 10.0
pair_coeff 1 1 lj/cut/coul/long   0.0 0.0
pair_coeff 1 2 lj/cut/coul/long   0.0 0.0
pair_coeff 1 3 lj/cut/coul/long   0.0 0.0
pair_coeff 2 2 lj/cut/coul/long   0.0 0.0
pair_coeff 2 3 lj/cut/coul/long   0.0 0.0
pair_coeff 3 3 lj/cut/coul/long   0.0 0.0
pair_coeff 1 4 lj/cut/coul/long 0.28672 3.58600
pair_coeff 1 5 lj/cut/coul/long 0.0 0.0
pair_coeff 2 4 lj/cut/coul/long 0.22282 3.42950
pair_coeff 2 5 lj/cut/coul/long 0.0 0.0
pair_coeff 3 4 lj/cut/coul/long 0.17394 3.08200
pair_coeff 3 5 lj/cut/coul/long 0.0 0.0
pair_coeff 4 4 lj/cut/tip4p/long 0.16275 3.16435
pair_coeff 4 5 lj/cut/tip4p/long 0.0 0.0
pair_coeff 5 5 lj/cut/tip4p/long 0.0 0.0

# Coulomb interaction
kspace_style pppm/tip4p 1.0e-5

thermo 100
neighbor 2.0 bin
neigh_modify delay 0 every 1 check yes

min_style fire
minimize 1.0e-8 1.0e-10 50000 100000

fix 1 water nvt temp 298.15 298.15 0.001
compute mymsd water msd com yes
variable msdx equal c_mymsd[1]
variable msdy equal c_mymsd[2]
variable msdz equal c_mymsd[3]
variable msdtot equal c_mymsd[4]
variable timestep equal step
fix mymsd all ave/time 1 1 5000 c_mymsd[4] file tmp.avetime
fix 2 all print 10 &
        "${timestep} ${msdx} ${msdy} ${msdz} ${msdtot}" &
        screen no file tmp.print &
        title "#Mean Square Displacement\n #x y z total"

#Output
dump 1 water custom 5000 Position.txt id type x y z
dump 2 all xyz 5000 Result.xyz

#Run
timestep 1.0
run 2000000
-----------------------------------------------------------------------------

运行后会提示:ERROR: Out of range atoms - cannot compute PPPM (../pppm_tip4p.cpp:107)
按照说明书的提示,将timestep改到0.001,作业才能正常运行。但总步长结束后,水分子基本不怎么动,MSD图也是折线型的,一段一段的。不知道问题在哪里?
回复此楼

» 猜你喜欢

» 本主题相关商家推荐: (我也要在这里推广)

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

acnes

金虫 (正式写手)

改完这个参数原子位置的确是有了明显变化,但是程序运行一段时间后就自动停掉了,输出文件也没看有什么错误提示。。。

最后
Total # of neighbors = 187464
Ave neighs/atom = 162.306
Ave special neighs/atom = 15.9636
Neighbor list builds = 2
Dangerous builds = 0
就这样了
4楼2017-08-23 10:54:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 9 个回答

薛博德

铁虫 (小有名气)

【答案】应助回帖

感谢参与,应助指数 +1
fix nvt 升温那里最后一个参数太小了,输出你的温度看有没有升到想要的温度。
渐渐地的已经不知道该怎么用一句话来表达自己的信仰
2楼2017-08-23 09:17:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

acnes

金虫 (正式写手)

确实。。。输出的温度很小,按说明书一般设置成100么?
3楼2017-08-23 09:34:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

iSimuLy

捐助贵宾 (正式写手)

资深专家顾问


分子筛里的水本身运动就慢,如果结构没问题,数据处理没问题,那就不用担心

发自小木虫Android客户端
5楼2017-08-23 11:56:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 289 分105500药学专硕求调剂(找B区学校) +4 白云123456789 2026-04-13 4/200 2026-04-16 00:18 by 粉沁若尘
[考研] 一志愿沪9,生物学326求调剂 +7 刘墨墨 2026-04-15 7/350 2026-04-15 18:51 by 浮云166
[考研] 0854调剂 +13 长弓傲 2026-04-12 16/800 2026-04-15 13:45 by fenglj492
[考研] 材料工程281还有调剂机会吗 +43 xaw. 2026-04-11 44/2200 2026-04-15 12:46 by 西北望—风沙
[考研] 367求调剂 +11 hffQAQ 2026-04-09 11/550 2026-04-14 17:48 by lhj2009
[考研] 一志愿沪9,326求生物学调剂 +10 刘墨墨 2026-04-13 10/500 2026-04-14 15:16 by zs92450
[考研] 材料085601调剂 +32 何润采123 2026-04-10 34/1700 2026-04-14 08:47 by 木木mumu~
[考研] 一志愿哈工大 085600 277 12材科基求调剂 5+5 chenny174 2026-04-10 37/1850 2026-04-14 07:39 by Abskk
[考研] 求调剂 +12 璃茉一定上岸 2026-04-10 13/650 2026-04-14 00:08 by Equinoxhua
[考研] 一志愿华南理工大学331分材料求调剂 +10 天下ww 2026-04-09 11/550 2026-04-13 23:25 by pies112
[考研] 一志愿浙大生物325分求调剂 +9 zysheng 2026-04-12 9/450 2026-04-12 22:31 by yuyin1233
[考研] 材料工程日语考生求调剂 +7 0856?调剂 2026-04-10 7/350 2026-04-11 21:33 by 蓝云思雨
[考研] 343求调剂 +9 王国帅 2026-04-10 9/450 2026-04-11 20:31 by dongdian1
[考研] 283求调剂 086004考英二数二 +17 那个噜子 2026-04-10 18/900 2026-04-11 16:27 by 明月此时有
[考研] 求调剂 +6 archer.. 2026-04-09 8/400 2026-04-11 10:55 by zhq0425
[考研] 085410-273求调剂 +6 X1999 2026-04-10 6/300 2026-04-11 10:32 by Delta2012
[考研] 调剂 化学 307 +21 73372112 2026-04-09 23/1150 2026-04-10 23:53 by wj165256
[考研] 298求调剂 +13 钉叮咚冬瓜 2026-04-09 13/650 2026-04-10 15:49 by jiajinhpu
[考研] 344求调剂 +7 丶风雪夜归人丶 2026-04-09 7/350 2026-04-10 12:05 by pengliang8036
[考研] 332,085601求调剂 +12 ydfyh 2026-04-09 14/700 2026-04-09 17:28 by wp06
信息提示
请填处理意见