24小时热门版块排行榜    

查看: 2094  |  回复: 4

潇潇雨歇99

新虫 (小有名气)

[求助] 请问怎么计算Ni在Ni-Al合金中的扩散系数

我想计算Ni在Ni-Al合金中的扩散系数,还有Al在Ni-Al合金中的扩散系数.
可是得到的msd 斜率全是一样的。
units                metal
boundary        p p p
atom_style        atomic

read_data        ni1al9.data



group  Ni type 1
group  Al type 2

pair_style        eam/alloy
pair_coeff        * *  NiAl.eam.alloy Ni Al
timestep        0.001
thermo                50
thermo_modify lost warn
neighbor        0.6 bin
neigh_modify        every 10 delay 0 check yes

variable        N equal step
variable        pote equal pe
variable        Etotal equal etotal
variable        T equal temp
variable        Press equal press
variable        V equal vol
variable        Pxx equal pxx
variable        Pyy equal pyy
variable        Pzz equal pzz
variable        Pxy        equal pxy
variable        Pxz equal pxz
variable        Pyz equal pyz

compute                3        all pe/atom
compute                4        all ke/atom
compute                5        all coord/atom 4.0

velocity        all create 2500 825577 dist gaussian
fix                        extra all print 50 "${N} ${T} ${pote} ${Etotal} ${Press} ${V}" file 0414ni1al9.dat screen no

dump                1 all cfg 20000 a.*.cfg id type xs ys zs c_3 c_4 c_5
dump                2 all atom 20000 dump.2500


fix                        1 all npt temp 2500 2500 0.2 iso 0 0 0.2 drag 1
run                        100000
unfix                1
write_restart        restart.$N

undump                1
undump                2

label                loop

variable        x index  2500 2400 2300 2200 2100 2000 1900 1800 1700 1600 1500 1400 1300 1200 1100 1000 900 800 700 600 500 400
variable         y index  2400 2300 2200 2100 2000 1900 1800 1700 1600 1500 1400 1300 1200 1100 1000  900 800 700 600 500 400 300

# Cooling steps:
fix                        1 all npt temp $x $y 0.1 iso 0 0 0.2 drag 1
run                        100000
unfix                1
write_restart        restart.$y.$N

# Equilibrium steps:
fix                 2 all npt temp $y $y 0.2 iso 0 0 0.2 drag 1
run                        100000
unfix                2
write_restart        restart.$y.$N

# Collection steps:
dump                1 all cfg 5000 a$y.*.cfg id type xs ys zs c_3 c_4 c_5
dump                2 all custom 5000 dump.$y.lammpstrj id type x y z xs ys zs   


compute                mymsd all msd
fix                        fix_msd all ave/time 5 10 50 c_mymsd[1] c_mymsd[4] file 0414ni1al9msd.$y.dat

compute                msd1 Ni msd
fix                        fix_msd1 Ni ave/time 5 10 50 c_msd1[1] c_msd1[4] file 0414nimsd.$y.dat
compute                msd2 Al msd
fix                        fix_msd2 Al ave/time 5 10 50 c_msd2[1] c_msd2[4] file 0414almsd.$y.dat




fix                 3 all npt temp $y $y 0.2 iso 0 0 0.2 drag 2
run                        100000
unfix                3

unfix                fix_msd
unfix                fix_msd1
unfix                fix_msd2
uncompute        msd1
uncompute        msd2
uncompute        mymsd

undump                1
undump                2
write_restart        restart.$N.$y

next                x
next                y
jump                ni1al9.txt         loop


以上是我算MSD的in文件

我听师兄说用group分开1和2就可以 ,但这样算出的结果, msd1 msd2 根合金总的mymsd 三个值一模一样。

所以求问到底怎么才能只算一种原子的MSD@oxox6085@smutao
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

潇潇雨歇99

新虫 (小有名气)

2楼2017-04-18 09:39:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mengfan

铁杆木虫 (正式写手)

是不是需要增加单个间隙原子?

发自小木虫Android客户端
XeTaL
3楼2017-04-18 10:27:06
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

杨and王

新虫 (初入文坛)

你好,请问lammps里面有自带msd的计算例子吗?

发自小木虫Android客户端
4楼2017-05-26 09:04:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

杨and王

新虫 (初入文坛)

楼主,,你好,,请问你的问题解决了吗?可不可以分享一下解决办法。

发自小木虫Android客户端
5楼2017-06-30 20:02:27
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 潇潇雨歇99 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 面上函评意见出来了,像什么等级? 20+4 Tsingking1 2026-08-27 17/850 2026-09-01 19:51 by 超级无敌华子
[基金申请] 为什么国自然不能直接公布 +5 bjdxyxy 2026-08-26 5/250 2026-09-01 17:54 by 小伟大博士
[文学芳草园] 梦想 +5 myrtle 2026-08-26 7/350 2026-09-01 15:18 by myrtle
[基金申请] 学科评审组评审是指会评吗? +4 瞬息宇宙 2026-08-31 4/200 2026-09-01 14:58 by jiaoxg
[基金申请] 为什么资助数各大高校都创新高,自己申请怎么就这么难 +13 Kittylucky 2026-08-27 14/700 2026-09-01 11:06 by feng6531
[基金申请] 怎么看青基中了没有啊 +6 叶九微 2026-08-26 6/300 2026-08-31 23:54 by yudaoqian88
[基金申请] 国社科又开始会评了,不知道这次命运如何 +7 雨打竹帘 2026-08-30 11/550 2026-08-31 23:16 by hittle2008
[基金申请] 中青基了要发朋友圈吗? +7 349506619 2026-08-28 7/350 2026-08-31 13:39 by 冼亮淀粉酶
[基金申请] 29号明天会评吗 +4 笨笨唐 2026-08-28 4/200 2026-08-31 09:30 by huixian257
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[考博] 找导师 +6 yuanjiabao 2026-08-29 7/350 2026-08-30 14:40 by 生科新手
[基金申请] 2026年叶企孙基金 +4 bud_bud 2026-08-27 7/350 2026-08-29 07:23 by foolishmani
[基金申请] 系统查不到 +11 董八千 2026-08-26 11/550 2026-08-28 18:06 by Leogzhya
[基金申请] 基金系统什么内容也没有 30+4 winsaint 2026-08-27 9/450 2026-08-28 11:06 by maolC
[基金申请] 为什么 国际(地区)合作与交流项目 没有放榜? 10+3 majunge000 2026-08-26 11/550 2026-08-27 08:42 by 北京莱茵编辑
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 系统进不去 +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
信息提示
请填处理意见