24小时热门版块排行榜    

查看: 1834  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 HEQlVqMTIA7d 2026-08-07 4/200 2026-08-08 04:07 by 6vVgjDL4CnGu
[考博] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 HEQlVqMTIA7d 2026-08-07 3/150 2026-08-08 03:47 by 6vVgjDL4CnGu
[基金申请] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 KXLV3nuBVBY7 2026-08-07 3/150 2026-08-08 03:27 by 6vVgjDL4CnGu
[基金申请] 基金中了 +14 laoda193707 2026-08-06 14/700 2026-08-08 00:23 by 实验小白ha
[基金申请] 娱乐 +6 Tide man 2026-08-03 6/300 2026-08-07 22:40 by 铁帽子农民
[基金申请] 化学口download_prp&fileCode的固定段好像这几天一直没变,有变的大神么? +3 Tide man 2026-08-07 4/200 2026-08-07 22:39 by Tide man
[基金申请] 关于代码变化问题,想知道的进来 +9 且听虎啸 2026-08-07 12/600 2026-08-07 21:53 by 理想三旬2025
[基金申请] 固定端突然变了,今天 +6 archvillain 2026-08-06 10/500 2026-08-07 16:03 by 医学老男孩
[基金申请] filecode与中标关系的预测 +3 布布和一二 2026-08-07 3/150 2026-08-07 15:09 by gltch
[论文投稿] 十年后又回来了,论文投稿求助 +4 哈哈114477 2026-08-01 4/200 2026-08-07 14:39 by jgy194592
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] 关于豆爷回答的JTJC与%2F数量 +4 yang182083 2026-08-06 6/300 2026-08-07 12:43 by 虫友是什么虫
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
[考博] 【2027博士申请】纳米药物递送方向 20+3 13586093586 2026-08-03 4/200 2026-08-05 09:59 by lfy8008
[基金申请] 有没有H口的?有收到消息的吗? +3 超级海虾 2026-08-04 3/150 2026-08-04 17:26 by 学教育滴
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
[基金申请] 面上提前没消息,有中的吗 +14 archvillain 2026-08-02 18/900 2026-08-04 14:42 by archvillain
[基金申请] 什么时候能放榜呀? +3 Jacob678 2026-08-03 3/150 2026-08-03 16:14 by gltch
信息提示
请填处理意见