24小时热门版块排行榜    

查看: 640  |  回复: 0

leila3409

捐助贵宾 (正式写手)


[交流] 【求助】能量与region的设置有如此大的联系吗?

在设置两个任务时,只将region在z方向的长度差了62.816864-62.81682=0.000044,计算的原子数也相同,但能量的结果出现了巨大的差异(738.8918136-501.4444986=237.447315eV)。有可能是什么原因造成的呢?灰常谢谢啦~~~

# LAMMPS Input File for Grain Boundaries
# Mark Tschopp, Dec2009
# This file will generate numerous input files for LAMMPS
# using a large number of grain boundaries

# ---------- Setup Variables ---------------------
variable etol equal 0
variable ftol equal 1.0e-25
variable maxiter equal 10000
variable maxeval equal 100000
variable latparam equal 2.855312
variable minimumenergy equal -4.122435
variable overlapdist equal 0.275
# ---------- Initialize Simulation ---------------------
clear
units metal
dimension 3
boundary p p p
atom_style atomic

# ---------- Create Atomistic Structure ---------------------
lattice bcc ${latparam}
region whole block 0 63.20502545 -62.302096515  63.20502545 0.000000 62.816864  units box     ####另一个是region whole block 0 63.20502545 -62.302096515  63.20502545 0.000000 62.81682  units box
create_box 2 whole
region upper block INF INF 0.000000 63.20502545 INF INF units box
lattice bcc ${latparam} orient x  3 1 0 orient y  1 -3 0 orient z  0 0 -1
create_atoms 1 region upper
region lower block INF INF -62.302096515  0.000000 INF INF units box
lattice bcc ${latparam} orient x 3 1 0 orient y  -1 3 0  orient z  0 0 1
create_atoms 1 region lower
#region upper2 block  0 9.0  0.000000 9.0 0 2.8  units box
#region lower2 block  0 9.0  -8.9 0.0  0 2.8 units box
group upper region upper
group lower region lower  
# ---------- Define Interatomic Potential ---------------------
pair_style  hybrid/overlay eam/alloy  eam/fs table linear 12001
pair_coeff      * * eam/alloy  pot.fe.eam.fs Fe NULL
pair_coeff      * * eam/fs pot.fehe.eam.fs Fe He
pair_coeff      2 2 table pot.he He_He
                                                                                                                                
neighbor 1.0 bin
neigh_modify   every 1 delay 0 check yes
# ---------- Displace atoms and delete overlapping atoms ---------------------
delete_atoms overlap ${overlapdist} lower upper
dump        id all atom  100 lammps.lammpstrj
dump_modify id scale no

# ---------- Run Minimization ---------------------
velocity    all create 0.0  87287  rot yes mom yes dist gaussian
fix time all dt/reset 1  1.0e-5 1.0e-3 0.2 units box
thermo 10
fix             1 all nve
min_style cg
minimize ${etol} ${ftol} ${maxiter} ${maxeval}


#----------LXC------------------------------------
mass                  1     55.845
mass                  2      4.00260
group featoms type 1
group heatoms type 2
variable feec equal 4.012986464
variable heec equal 0.007072256332
variable pe equal pe                                                                                                                                                                                                      
variable ec equal pe/atoms                                                                                                                                                                       
variable nfe equal count(featoms)
variable nhe equal count(heatoms)
variable ef equal ${nfe}*${feec}+${nhe}*${heec}+pe
print "This system contains ${nfe} Fe and ${nhe} He atoms"
print "Pe = ${pe}"
print "Ec = ${ec}"
print "Ef = ${ef}"
############################################################
回复此楼

» 猜你喜欢

» 抢金币啦!回帖就可以得到:

查看全部散金贴

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

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 leila3409 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 这样的filecode谁见过 +3 布布和一二 2026-08-08 5/250 2026-08-08 12:22 by 仁砚薪传
[基金申请] 国基金的申报应该改成非等额制,评价高的钱多评价低的钱少,但是增加资助率 +4 a089 2026-08-07 4/200 2026-08-08 12:15 by arzu_hma
[硕博家园] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 Vi50GxzrFcSG 2026-08-07 6/300 2026-08-08 10:19 by 3OOjAIS77qg2
[基金申请] fileCode有新解读? +8 Tide man 2026-08-08 16/800 2026-08-08 09:59 by Tide man
[教师之家] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 HEQlVqMTIA7d 2026-08-07 4/200 2026-08-08 08:27 by 6vVgjDL4CnGu
[基金申请] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 KXLV3nuBVBY7 2026-08-07 4/200 2026-08-08 08:21 by 6vVgjDL4CnGu
[考博] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 HEQlVqMTIA7d 2026-08-07 3/150 2026-08-08 03:47 by 6vVgjDL4CnGu
[基金申请] 基金中了 +14 laoda193707 2026-08-06 14/700 2026-08-08 00:23 by 实验小白ha
[基金申请] 关于filecode +4 布布和一二 2026-08-07 7/350 2026-08-07 22:55 by zhanghaozhu
[基金申请] 娱乐 +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
[基金申请] 听说今天filecode变了 +24 布布和一二 2026-08-06 47/2350 2026-08-07 16:02 by zhiyanjiang
[基金申请] filecode与中标关系的预测 +3 布布和一二 2026-08-07 3/150 2026-08-07 15:09 by gltch
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 8月时间戳变的,举个手。玩一下,释放压力 +9 archvillain 2026-08-04 11/550 2026-08-05 20:06 by wlwhappy
[基金申请] 好消息?这个有何含义??? +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
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
信息提示
请填处理意见