24小时热门版块排行榜    

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

gtssongchi

木虫 (小有名气)

[求助] fix nvt 温度设置为300K,可是结果却显示只有150K,是什么原因呢? 已有2人参与

大家好,lammps初学,请问我在设置中出了什么问题,导致最后热力学输出的温度只有150K
#lammps in file for melt of Cu

echo                        screen

units                        metal
boundary                p p p
atom_style                atomic

lattice                        fcc        3.61        #建立一个晶格参数为3.61埃的fcc晶体
region                        box        block        0 10 0 10 0 10       
create_box                1        box       
create_atoms                1        box       

pair_style                eam
pair_coeff                * * ./potentials/Cu_u3.eam        #格式确保正确


timestep                0.003        #单位是ps
neighbor                2.0        bin
neigh_modify                delay 0 every 5 check yes

velocity                all        create        300  474747 dist gaussian

#variable                N        equal        abs{floor(x[100]+10000)}
#velocity                all        create        N        dist gaussian

#fix                        1        all  nvt  temp  300  300  100.0        # 100是耦合系数,给出驰豫时间100×时间单位
fix                        1         all        nve
fix                        2        all  temp/berendsen 300.0 300.0 100.0


thermo                        100       
#thermo_style                默认
#dump                        1        all        custom  100  dump.lammpstrj  id  type  x  y  z       

run                        10000
回复此楼

» 猜你喜欢

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

gtssongchi

木虫 (小有名气)

引用回帖:
4楼: Originally posted by brucefan at 2017-04-20 17:22:06
No, 100 here is too large in the "metal" unit system, where the unit of time is ps. Change it to 0.1.
Also, 10000 steps are too short to reach equilibrium....

感谢,可能是我理解有误,换成0.1之后,的确解决了这个问题。
5楼2017-04-20 21:12:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 6 个回答

cl1994861

金虫 (小有名气)

【答案】应助回帖

★ ★ ★ ★ ★
感谢参与,应助指数 +1
gtssongchi: 金币+5, ★★★很有帮助 2017-04-20 21:56:48
弛豫时间是不是设置的不合理,官网mannual里给的一般是1000个时间步
2楼2017-04-20 16:23:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gtssongchi

木虫 (小有名气)

引用回帖:
2楼: Originally posted by cl1994861 at 2017-04-20 16:23:07
弛豫时间是不是设置的不合理,官网mannual里给的一般是1000个时间步

我发现问题原因可能是跑得时间步不够,这里之设置了10000步,将时间步改为50000步后,后期温度确实稳定在300K了,只是我很奇怪,为什么lammps刚开始的温度会是150K呢,它从150K慢慢上升到300K,然后稳定。
3楼2017-04-20 17:19:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

brucefan

专家顾问 (著名写手)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
gtssongchi: 金币+15, ★★★★★最佳答案 2017-04-20 21:56:31
引用回帖:
2楼: Originally posted by cl1994861 at 2017-04-20 16:23:07
弛豫时间是不是设置的不合理,官网mannual里给的一般是1000个时间步

No, 100 here is too large in the "metal" unit system, where the unit of time is ps. Change it to 0.1.
Also, 10000 steps are too short to reach equilibrium.
4楼2017-04-20 17:22:06
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见