24小时热门版块排行榜    

Znn3bq.jpeg
汕头大学海洋科学接受调剂
查看: 1308  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 297求调剂 +21 ORCHID1 2026-04-10 23/1150 2026-04-13 15:22 by 张zhihao
[教师之家] 转长聘了 +3 简单化xn 2026-04-13 3/150 2026-04-13 14:18 by wwwkkk83
[考研] 材料299专硕求调剂 +13 +21 2026-04-09 13/650 2026-04-13 14:16 by 张zhihao
[考研] 材料考研调剂 +29 云木达达 2026-04-11 31/1550 2026-04-13 13:32 by lyh鲁老师
[考研] 310求调剂 +13 666真好 2026-04-11 15/750 2026-04-13 12:16 by 蓝云思雨
[考研] 生物学调剂,一志愿西南大学348,Top期刊一区二作、二区三作,三等奖学金三次 +5 candyyyi 2026-04-09 5/250 2026-04-13 09:02 by 可淡不可忘
[找工作] 山东高校教师考核超级无底线,员工过不下去啦 +4 qut2026 2026-04-09 9/450 2026-04-12 00:54 by qut2026
[考研] 计算机22408 281分,求调剂 +7 17715607211 2026-04-06 7/350 2026-04-12 00:43 by xuxiang
[考研] 求调剂 +11 月@163.com 2026-04-07 13/650 2026-04-11 22:55 by BruceLiu320
[考研] 求调剂,一志愿大连理工大学354分 +5 雨声余生 2026-04-11 6/300 2026-04-11 16:12 by 雨声余生
[考研] 求调剂 +10 璃茉一定上岸 2026-04-10 10/500 2026-04-11 13:31 by 1005715100
[考研] 085600材料与化工329分求调剂 +16 叶zilin 2026-04-10 16/800 2026-04-11 11:04 by may_新宇
[考研] 085410-273求调剂 +6 X1999 2026-04-10 6/300 2026-04-11 10:32 by Delta2012
[考研] 22408 366分,本科211,一志愿西工大 +4 Rubt 2026-04-09 4/200 2026-04-10 19:51 by chemisry
[考研] 273求调剂 +51 麦小叮当 2026-04-06 58/2900 2026-04-10 15:54 by jiajinhpu
[考研] 求调剂 +11 翩翩一书生 2026-04-09 13/650 2026-04-10 10:27 by liuhuiying09
[考博] 博士自荐 +7 可可小胖 2026-04-08 7/350 2026-04-10 08:28 by kimhero
[考研] 367求调剂 +10 hffQAQ 2026-04-09 10/500 2026-04-09 18:06 by lijunpoly
[考研] 招收有机化学、化工,药学,食品灯专业学生 +3 yrfhjgdj 2026-04-08 3/150 2026-04-09 10:15 by QYQX_123
[考研] 334求调剂 +16 Riot2025 2026-04-08 17/850 2026-04-09 09:28 by wdyheheeh
信息提示
请填处理意见