24小时热门版块排行榜    

查看: 1483  |  回复: 4

hisap-nano

新虫 (正式写手)

[交流] 为什么算能带时老是出错! 已有2人参与

在算简单的金属的能带时老是提示出错,我看了半天也没整明白错在哪里了,大家帮我看看好吗,先谢了!
ndtset 2

#Optimization of the lattice parameters
optcell1 1
ionmov1  3
ntime1  10
dilatmx1 1.05
ecutsm1  0.5

#Definition of the k-point grids
kptopt1 1          # Option for the automatic generation of k points, taking
                  # into account the symmetry
nshiftk1 1       # These shifts will be the same for all hcp grids
shiftk1 0.0 0.0 0.5
ngkpt1  6 6 6
prtden1 1

#Dataset 2 : the band structure
iscf2  -2
getden2  -1
kptopt2  -3
nband2 24
ndivk2   15 15 15 15  15   
kptbounds2  0.0  0.0  0.5 # A point
            0.0  0.0  0.0 # Gamma point
            0.5  0.0  0.0 # M point
            2/3  1/3  0.0 # K point
            2/3  1/3  0.5 # H point
            1.0  1.0  1.0 # Gamma point in another cell.
                       
tolwfr2  1.0d-12
enunit2  1             # Will output the eigenenergies in eV
prtdos2 2
prtdos2 3

#Definition of the unit cell
acell 8.4776  8.4776  13.2906  #in bohr atomic unit
angdeg 90.0000 90.0000 120.0000

#Definition of the atom types
ntypat 1          # There is only one type of atom
znucl 4          # The keyword "znucl" refers to the atomic number of the
                  # possible type(s) of atom. The pseudopotential(s)
                  # mentioned in the "files" file must correspond
                  # to the type(s) of atom. Here, the only type is Silicon.

#Definition of the atoms
chkprim 0
natom 16           # There are 16 atoms
typat 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
xred
0.16667   0.33333   0.12500   
0.33333   0.16667   0.37500   
0.66667   0.33333   0.12500   
0.83333   0.16667   0.37500   
0.16667   0.83333   0.12500   
0.33333   0.66667   0.37500   
0.66667   0.83333   0.12500   
0.83333   0.66667   0.37500   
0.16667   0.33333   0.62500   
0.33333   0.16667   0.87500   
0.66667   0.33333   0.62500   
0.83333   0.16667   0.87500   
0.16667   0.83333   0.62500   
0.33333   0.66667   0.87500   
0.66667   0.83333   0.62500   
0.83333   0.66667   0.87500   

#Definition of the planewave basis set

ecut 10.0        # Maximal kinetic energy cut-off, in Hartree

#Definition of the SCF procedure

nstep 15          # Maximal number of SCF cycles
toldfe 1.0d-8     # Will stop when, twice in a row, the difference
                  # between two consecutive evaluations of total energy
                  # differ by less than toldfe (in Hartree)
                  # This value is way too large for most realistic studies of materials
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

fzx2008

荣誉版主 (著名写手)

优秀版主优秀版主

★ ★
小木虫(金币+0.5):给个红包,谢谢回帖
uuv2010(金币+1): 多谢指导! 2011-12-17 13:22:49
1.你算能带的时候kptopt2有问题,按照你的k点路径应该是等于-5
2.计算能带的时候读取优化计算的电荷密度我怀疑不可行,推荐使用单点自洽计算产生的电荷密度
3.个人不推荐使用这种Dataset形式,一个一个算,能加深理解且易控制。熟练掌握后(对各步计算有预期),可以连在一起算。
2楼2011-12-17 09:27:29
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

souledge

专家顾问 (著名写手)

★ ★
小木虫(金币+0.5):给个红包,谢谢回帖
uuv2010(金币+1): 多谢指导! 2011-12-17 13:22:58
DATASET 2的时候,起码也要getxred+getvel一下啊……
思想重于技巧,内涵重于表象
3楼2011-12-17 11:29:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hisap-nano

新虫 (正式写手)

多谢指导!太感谢了
4楼2011-12-17 16:11:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hisap-nano

新虫 (正式写手)

hisap-nano: 回帖置顶 2011-12-18 12:21:05
hisap-nano: 取消置顶 2011-12-19 04:39:17
斑竹,真对不起,还要向您请教,我修改了input文件后,程序能出结果,我用abinitbandstructuremaker 去画能带,结果提示算能带的数组不完整,您帮我看看是怎么回事好吗,先谢了!
input file
ndtset 2

#Optimization of the lattice parameters
optcell1 1
ionmov1 3
ntime1 10
dilatmx1 1.05
ecutsm1 0.5

iscf1 5
nstep1 10
toldfe1 1.0d-8

#Definition of the k-point grids
kptopt1 1
nshiftk1 1
shiftk1 0.0 0.0 0.5
ngkpt1 6 6 6
prtden1 1


#Dataset 2 : the band structure
iscf2 -2
nstep2 50
getden2 -1

kptopt2 -5 # the absolut value represent the segments

ndivk2 15 15 15 15 15 # 15, 15, 15, 15 and 15 divisions of the 5 segments, delimited by 6 points.
kptbounds2
0.0 0.0 0.5
0.0 0.0 0.0
0.5 0.0 0.0
1/3 1/3 0.0
1/3 1/3 0.5
1.0 1.0 1.0

tolwfr2 1.0d-12
enunit2 1




#Definition of the unit cell
acell 8.4776 8.4776 13.2906
rprim 1.0 0.0 0.0
-0.5 sqrt(0.75) 0.0
0.0 0.0 1.0

#Definition of the atom types
ntypat 1
znucl 4

#Definition of the atoms
chkprim 0
natom 16 # There are 16 atoms
typat 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
xred
0.16667 0.33333 0.12500
0.33333 0.16667 0.37500
0.66667 0.33333 0.12500
0.83333 0.16667 0.37500
0.16667 0.83333 0.12500
0.33333 0.66667 0.37500
0.66667 0.83333 0.12500
0.83333 0.66667 0.37500
0.16667 0.33333 0.62500
0.33333 0.16667 0.87500
0.66667 0.33333 0.62500
0.83333 0.16667 0.87500
0.16667 0.83333 0.62500
0.33333 0.66667 0.87500
0.66667 0.83333 0.62500
0.83333 0.66667 0.87500

#Definition of the planewave basis set

ecut 10.0

错误提示
2 dataset(s) detected
the last dataset is not completed and will be ignored
Traceback (most recent call last):
  File "AbinitBandStructureMaker.py", line 1012, in ?
    dico[k] = '{l%s}' %ctrl.alphabet[L]
KeyError: 27
5楼2011-12-18 12:20:28
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 hisap-nano 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 投票:  有多少人是今天查系统知道结果的? +15 爱看书的可乐 2026-08-26 17/850 2026-08-27 05:50 by xxniao123
[基金申请] 国自然面上复盘~欢迎讨论 +5 晴天加油 2026-08-26 6/300 2026-08-27 04:49 by littlezl
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 LIbGuocjEEYw 2026-08-26 4/200 2026-08-27 02:01 by Ie9AyIAvGbvs
[基金申请] 基金不中,共勉 +5 eulota 2026-08-26 5/250 2026-08-26 23:33 by young90
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +3 a089 2026-08-26 3/150 2026-08-26 23:21 by young90
[基金申请] 范进中举一文的中心思想 +9 炎黄贵胄 2026-08-22 10/500 2026-08-26 15:40 by semaglutide
[基金申请] 能否退出参与的面上项目解除限项 +23 koalala 2026-08-24 26/1300 2026-08-26 14:29 by 宝贝虫子
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 国际合作可查了,中了面上 +18 Ldrop2023 2026-08-26 18/900 2026-08-26 11:15 by cmrandy
[基金申请] 项目信息和经费信息在系统里都可以看到了 +6 wittyboy 2026-08-26 14/700 2026-08-26 10:55 by wittyboy
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[基金申请] 今天务委会开完了,明天出结果吗 +19 angus9576 2026-08-25 23/1150 2026-08-26 10:03 by zp519
[基金申请] 国合现在查不到了吗? +10 chengyan1220 2026-08-24 20/1000 2026-08-26 08:57 by peasantsprig
[基金申请] 如果此刻你正在为国基感到焦虑,不妨来听听这首《基金之外》 +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
[基金申请] 人气不行了 +11 fansofjerry 2026-08-21 11/550 2026-08-25 11:04 by 孤独的英雄6
[教师之家] 导师吐槽:我怎么摊上了这么个极品研究生! +3 苏东坡二世 2026-08-23 3/150 2026-08-25 10:35 by shisan1313
[基金申请] 我面上完蛋了 +13 且听虎啸 2026-08-20 14/700 2026-08-25 09:10 by mrkang
[基金申请] 时间戳今天,20号变了 +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
信息提示
请填处理意见