24小时热门版块排行榜    

查看: 8274  |  回复: 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的回帖

青铜白银

新虫 (初入文坛)

【答案】应助回帖

你好,我想问一个你这个是根据什么分group的呢
9楼2018-09-04 09:33:54
已阅   回复此楼   关注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的回帖

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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 基金未中,这种答复是模板吗? +4 zhaosm1982 2026-08-27 5/250 2026-08-27 12:17 by zhaosm1982
[基金申请] 为什么资助数各大高校都创新高,自己申请怎么就这么难 +5 Kittylucky 2026-08-27 5/250 2026-08-27 12:10 by 姜太公烤鱼
[教师之家] 导师吐槽:我怎么摊上了这么个极品研究生! +5 苏东坡二世 2026-08-23 5/250 2026-08-27 10:39 by 炜雨
[教师之家] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 LIbGuocjEEYw 2026-08-26 4/200 2026-08-27 04:33 by Ie9AyIAvGbvs
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 LIbGuocjEEYw 2026-08-26 4/200 2026-08-27 02:01 by Ie9AyIAvGbvs
[基金申请] 2026年的国家社科基金项目通讯评审的新规则与新动向、新挑战 +7 process2012 2026-08-23 10/500 2026-08-26 19:23 by hmhminy
[基金申请] 系统查不到 +10 董八千 2026-08-26 10/500 2026-08-26 16:30 by Equinoxhua
[基金申请] 怎么查啊 +5 huang1991js 2026-08-26 5/250 2026-08-26 16:09 by Equinoxhua
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 哪位高人中了,把查询到的截图贴出来让我看看,让我长长见识 +4 yuleib84 2026-08-26 5/250 2026-08-26 13:40 by yuleib84
[基金申请] 为什么国自然不能直接公布 +4 bjdxyxy 2026-08-26 4/200 2026-08-26 13:12 by qingmu1201
[基金申请] 今天务委会开完了,明天出结果吗 +19 angus9576 2026-08-25 23/1150 2026-08-26 10:03 by zp519
[基金申请] 国合现在查不到了吗? +10 chengyan1220 2026-08-24 20/1000 2026-08-26 08:57 by peasantsprig
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[基金申请] 如果此刻你正在为国基感到焦虑,不妨来听听这首《基金之外》 +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
[基金申请] 我面上完蛋了 +13 且听虎啸 2026-08-20 14/700 2026-08-25 09:10 by mrkang
[基金申请] 建议基金发布提前给出明确的时间点 +13 kulium 2026-08-21 16/800 2026-08-24 16:27 by superceng
[基金申请] 时间戳又变了 +13 wuchongjun 2026-08-20 19/950 2026-08-21 17:21 by 紫杉醇
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
信息提示
请填处理意见