24小时热门版块排行榜    

查看: 1481  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +3 a089 2026-08-26 3/150 2026-08-26 23:21 by young90
[基金申请] 国自然面上复盘~欢迎讨论 +4 晴天加油 2026-08-26 5/250 2026-08-26 21:27 by 木风9012
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 哪位高人中了,把查询到的截图贴出来让我看看,让我长长见识 +4 yuleib84 2026-08-26 5/250 2026-08-26 13:40 by yuleib84
[基金申请] 为什么国自然不能直接公布 +4 bjdxyxy 2026-08-26 4/200 2026-08-26 13:12 by qingmu1201
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 系统进不去 +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[基金申请] 今天务委会开完了,明天出结果吗 +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 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[基金申请] 明天应该可查了!? +6 chengyan1220 2026-08-23 6/300 2026-08-25 19:45 by zfd97
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
[基金申请] 我面上完蛋了 +13 且听虎啸 2026-08-20 14/700 2026-08-25 09:10 by mrkang
[基金申请] 建议基金发布提前给出明确的时间点 +13 kulium 2026-08-21 16/800 2026-08-24 16:27 by superceng
[教师之家] 跳槽后在研项目怎么办? +5 简单化xn 2026-08-22 10/500 2026-08-23 12:38 by 简单化xn
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 时间戳又变了 +13 wuchongjun 2026-08-20 19/950 2026-08-21 17:21 by 紫杉醇
[基金申请] 应该是下周三26日公布了吧? +4 哈哈蛤? 2026-08-21 4/200 2026-08-21 10:58 by Vivilian
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
信息提示
请填处理意见