24小时热门版块排行榜    

查看: 1789  |  回复: 0

cgzhang_gg

铜虫 (著名写手)

[交流] 关于 run 0 command 重要性

lammps 里面的run 0 command 具有重要的作用:不妨看下面的例子:
*********************************************************************************************************************
# TiO2 Rutile
variable         a   loop    4
log                 vacan.formation.tect.O.$a
units              metal
atom_style     charge
boundary        p p p

lattice              custom 4.493  a1 1.0 0.0 0.0 a2 0.0 1.0 0.0 a3 0.0 0.0 0.669&
                        basis 0.0 0.0 0.0 basis 0.5 0.5 0.5 &
                        basis 0.303 0.303 0.0 basis 0.697 0.697 0.0 &
                        basis 0.803 0.197 0.5 basis 0.197 0.803 0.5

region              mybox block -4 4 -4 4 -4 4
create_box      2 mybox
create_atoms   2 box basis 1 1 basis 2 1 &
                          basis 3 2 basis 4 2 basis 5 2 basis 6 2
# mass after simulation box is defined, before a simulation is run.
mass                1     47.867   # Ti
mass                2    15.9994  # O
set                   type   1  charge    2.196 # Ti
set                   type   2   charge   -1.098 # O

# potential
pair_style         hybrid/overlay table linear 150000 coul/long 11.0

pair_coeff        1  1   table  TiO2.pair.table  Ti_Ti   11.0
pair_coeff        1  2   table  TiO2.pair.table  Ti_O   11.0
pair_coeff        2  2   table  TiO2.pair.table  O_O   11.0
pair_coeff        *  *    coul/long   # right

kspace_style    pppm 1.0e-5

Sample Text
variable          E   equal   pe
#variable        cE  equal  $E
variable          N  equal  atoms

#print          "@@@@before minimum! cE=${cE}"
neighbor           0.3 bin
neigh_modify    delay 2 every 1 check yes

thermo              1
min_style          cg
minimize           1.0e-20 1.0e-20 10000 100000    #etol ,ftol, max iterations, max number      

print           "@@@@@ 1. atoms and total potential: $N  $E"  # output pe after a minimum

clear
next             a
#jump            in.TiO2  muti_point
*******************************************************************************************************************************
in.TiO2  例子是进行了四次相同的结构优化,对同一个构型,得到的正确的结果应该相同的:
@@@@@ 1. atoms and total potential: 3072  -40730.760848533624085
@@@@@ 1. atoms and total potential: 3072  -40730.70939078804804
@@@@@ 1. atoms and total potential: 3072  -40730.70939078804804
@@@@@ 1. atoms and total potential: 3072  -40730.70939078804804
但经过测试,只有当在in.TiO2文件中,在重新设置构型后,进行一次 run 0 command 之后,才可以得到相同的结果,如上。如果没有书写  run 0  command,则得到的结果不相同,根据不同的机器,结果不同。如下:

@@@@@ 1. atoms and total potential: 3072  -40730.76084853617067
@@@@@ 1. atoms and total potential: 3072  -45348.092323018747265
@@@@@ 1. atoms and total potential: 3072  -42739.32519361760933
@@@@@ 1. atoms and total potential: 3072  -40900.023453094305296

自己的理解:run 0 command 有一些初始化的作用。当不用run 0 command 时pe 可能是不确定的。不知道大家是怎么理解的?
回复此楼

» 猜你喜欢

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

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 cgzhang_gg 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 326求调剂 +5 上岸的小葡 2026-03-15 6/300 2026-03-17 17:26 by ruiyingmiao
[考研] 296求调剂 +4 大口吃饭 身体健 2026-03-13 4/200 2026-03-17 17:20 by 呦呦忧郁
[考研] 302求调剂 +9 负心者当诛 2026-03-11 9/450 2026-03-17 17:13 by ruiyingmiao
[考研] 308求调剂 +4 是Lupa啊 2026-03-16 4/200 2026-03-17 17:12 by ruiyingmiao
[考研] 332求调剂 +6 Zz版 2026-03-13 6/300 2026-03-17 17:03 by ruiyingmiao
[考研] 有没有道铁/土木的想调剂南林,给自己招师弟中~ +3 TqlXswl 2026-03-16 7/350 2026-03-17 15:23 by TqlXswl
[考研] 材料与化工专硕调剂 +5 heming3743 2026-03-16 5/250 2026-03-17 14:03 by 勇敢太监王公公
[考研] 0854可跨调剂,一作一项核心论文五项专利,省、国级证书40+数一英一287 +3 小李0854 2026-03-16 3/150 2026-03-17 13:40 by 热情沙漠
[考研] 271求调剂 +12 生如夏花… 2026-03-11 14/700 2026-03-17 10:56 by lovewei0727
[考研] 304求调剂 +4 ahbd 2026-03-14 4/200 2026-03-16 16:48 by 我的船我的海
[考研] 一志愿211 0703方向310分求调剂 +3 努力奋斗112 2026-03-15 3/150 2026-03-16 16:44 by houyaoxu
[考研] 321求调剂 +5 大米饭! 2026-03-15 5/250 2026-03-16 16:33 by houyaoxu
[考研] 中科大材料专硕319求调剂 +3 孟鑫材料 2026-03-13 3/150 2026-03-14 18:10 by houyaoxu
[考研] 【0703化学调剂】-一志愿华中师范大学-六级475 +5 Becho359 2026-03-11 5/250 2026-03-14 11:35 by 哦哦123
[考研] 招收0805(材料)调剂 +3 18595523086 2026-03-13 3/150 2026-03-14 00:33 by 123%、
[考研] 341求调剂 +3 番茄头--- 2026-03-10 3/150 2026-03-13 23:07 by JourneyLucky
[考研] 求材料调剂 085600英一数二总分302 前三科235 精通机器学习 一志愿哈工大 +4 林yaxin 2026-03-12 4/200 2026-03-13 22:04 by 星空星月
[考研] 材料与化工085600调剂求老师收留 +9 jiaanl 2026-03-11 9/450 2026-03-13 20:22 by JourneyLucky
[考研] 290求调剂 +7 ADT 2026-03-12 7/350 2026-03-13 15:17 by JourneyLucky
[考研] 321求调剂(食品/专硕) +3 xc321 2026-03-12 6/300 2026-03-13 08:45 by xc321
信息提示
请填处理意见