Page 1 of 1
problem of occ and occopt variables
Posted: Wed Aug 24, 2011 4:04 am
by Paul
Hi,
I want to calculate the bond energy, followed the tutorial, I should set the variables of occ occopt and nband. I have set that :
nsppol 2
occopt 2
nband 4 4
ntypat 1
znucl 7
typat 1 1
kptopt 0
nkpt 1
but I donot know how to set the occ and wtk, and I have read the basic input variables lst and description in the help files, however
I donot understand very well. I am a new in abinit, can someone explain to me how to set these parameters? Thanks a lot!
Re: problem of occ and occopt variables
Posted: Wed Aug 24, 2011 8:51 am
by david.waroquiers
Hello,
The wtk is the weight of each k-point. In your case, you only have the gamma point and the weight is 1. Note that in case of solids with more k-points, you can use the automatic generation of k-point sets with kptopt 1 and the ngkpt/kptrlatt and nshiftk+shiftk variables.
The occ variable is the occupation of each band at each k-point. This depends on your system of course. For hydrogen for example the molecular H2 has 2 electrons and you will have the occ like this (with your nband 4 4) :
occ 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0
... meaning that the first band of the first k-point for spin down is occupied with one electron, the next three are empty and the same applies for spin up. Note also that the occupancies (occ) can also be set automatically by abinit using occopt 1 for a semiconductor and occopt 3 to occopt 7 for a metallic system.
Hopes it helps,
David
Re: problem of occ and occopt variables
Posted: Wed Aug 24, 2011 10:34 am
by Paul
Dear David :
I have read your reply, and I change the input file, but it also has problems. This is my whole input file and on the bottom are some of my understanding. I hope you can correct me the wrong place. Thanks.
ixc -101130
ndtset 2
acell 35 35 35
ecut 31
natom1 2
ionmov1 2
optcell1 0
ntime1 50
tolmxf1 5.0d-4
xcart1 -0.5 0.0 0.0
0.5 0.0 0.0
toldff1 5.0d-5
nband1 7
natom2 1
nsppol2 2
occopt2 2
nband2 4 4
occ2 1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.0
toldfe2 1.0d-6
xcart2 0.0 0.0 0.0
spinat2 0.0 0.0 1.0
wtk2 1
rprim 1 0 0
0 1 0
0 0 1
ntypat 1
znucl 7
typat 1 1
kptopt 0
nkpt 1
nstep 100
diemac 2.0
In the second date set, the number of electrons is 7, the k-point is just one , the number of bands of the k-point for spin up is the first number 4, and for the spin down bands is the second number 4.
The bands for spin up is occupied with four electrons, and it is 1.0 1.0 1.0 1.0 , for spin down the bands is occupied with three electrons and the last one is empty. And spin-up electrons with spin-down electrons should be equal to the total number of electrons 7.
Above, it is my understand. But after running ,it has a error:
ERROR - These must obey zval-nelect_occ=charge to better than 0.10E-07
This is not the case.
Action : check input file for occ,wtk, and charge.
Note that wtk is NOT automatically normalized when occopt=2,
but IS automatically normalized otherwise.
Please give guidance, thanks~