24小时热门版块排行榜    

查看: 1255  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见