[SOLVED] Non-SCF Band Structure Calculations
Moderator: bguster
-
- Posts: 20
- Joined: Thu Dec 10, 2009 5:58 pm
[SOLVED] Non-SCF Band Structure Calculations
Hello,
I am making non-scf Band Structure calculations which reads a well converged self consistent _DEN file from a previous run (from a separate input file). The program reads the _DEN file and says it is OK for calculation, but it begins its own self consistent loop (even though iscf = -2) and moreover, does not begin as converged as the Density file. If I set nstep = 1, the Band Structure is not converged at all (max. residual squared after first step is 5.477E-01, but the Density was converged to tolwfr = 1.0d-7) .
1. If iscf = -2, why is it making SCF loops?
2. Why is the residual squared back to 5.477E-01 instead of being as low as it was in the Density file?
Could someone please explain how the non-scf run works?
Thanks,
MG
I am making non-scf Band Structure calculations which reads a well converged self consistent _DEN file from a previous run (from a separate input file). The program reads the _DEN file and says it is OK for calculation, but it begins its own self consistent loop (even though iscf = -2) and moreover, does not begin as converged as the Density file. If I set nstep = 1, the Band Structure is not converged at all (max. residual squared after first step is 5.477E-01, but the Density was converged to tolwfr = 1.0d-7) .
1. If iscf = -2, why is it making SCF loops?
2. Why is the residual squared back to 5.477E-01 instead of being as low as it was in the Density file?
Could someone please explain how the non-scf run works?
Thanks,
MG
-
- Posts: 138
- Joined: Sat Aug 15, 2009 12:45 am
Re: Non-SCF Band Structure Calculations
Hello,
Could you provide your input file for the non-SCF band structure calculation as well as with the SCF run for the generation of the density file ? Without these it is difficult to help you.
David
Could you provide your input file for the non-SCF band structure calculation as well as with the SCF run for the generation of the density file ? Without these it is difficult to help you.
David
-
- Posts: 20
- Joined: Thu Dec 10, 2009 5:58 pm
Re: Non-SCF Band Structure Calculations
David,
Thanks for the reply; below are my SCF and non-SCF input files in that order. They are for a CNT. My questions are rather general.
SCF:
# DENSITY CALCULATION
# ACCURACY & CONVERGENCE
ecut 36 # must be converged
ngkpt 1 1 54 # must be converged - Fermi point must be well captured!
kptopt 1
nshiftk 1
shiftk 0 0 0
# SCF PRECONDITIONING
#iprcel 45 # Alternative preconditioning to diemac - used if system cannot converge
#diemix 4
diemac 1.0d6 # Estimate of Dielectric Constant
# UNIT CELL & GEOMETRY
acell 12.56511735 12.56511735 2.46297625 angstrom
rprim 1 0 0
0 1 0
0 0 1
ntypat 1
znucl 6
natom 12
typat 12*1
xangst
etc....
# CALCULATION CHARACTERISTICS
# CORRESPONDING TO A SELF CONSISTENT DEN CALCULATION, WITH THE TOLERANCE CRITERION BEING ON THE WAVE FUNCTION RESIDUAL
tolwfr 5.0d-8
nstep 2000
iscf 7 # Pulay mixing of SCF iterations
prtden 1 # print density?
prtwf 1 # print wave functions file?
prteig 0 # print eigenvalues (band structure)?
nbandkss 0 # print Kohn-Sham structure?
enunit 1 # 1=print energies in eV, 0=hartree
accesswff 1 # use MPI I/0
ixc 1 # Must match the PSP type; this must be checked if using a new PSP.
istwfk *1 # Do not take advantage of time reversal symmetry (not supported for KSS)
Non-SCF:
# EIGENVALUE CALCULATION
# ACCURACY & CONVERGENCE
ecut 36 # must be converged
ngkpt 1 1 54 # must be converged - Fermi point must be well captured!
kptopt 1
nshiftk 1
shiftk 0 0 0
# SCF PRECONDITIONING
#iprcel 45 # Alternative preconditioning to diemac - used if system cannot converge
#diemix 4
diemac 1.0d6 # Estimate of Dielectric Constant
# UNIT CELL & GEOMETRY
acell 12.56511735 12.56511735 2.46297625 angstrom
rprim 1 0 0
0 1 0
0 0 1
ntypat 1
znucl 6
natom 12
typat 12*1
xangst
etc.....
# CALCULATION CHARACTERISTICS
# CORRESPONDING TO A NON-SCF EIG CALCULATION, WITH THE TOLERANCE CRITERION BEING ON THE WAVE FUNCTION RESIDUAL
tolwfr 5.0d-8
nstep 10
iscf -2 # NON-SCF
getden -1 # Therefore, read density specified by *.files
prtden 0 # print density?
prtwf 0 # print wave functions file?
prteig 1 # print eigenvalues (band structure)?
nbandkss 0 # print Kohn-Sham structure? (-1 = yes)
enunit 1 # 1=print energies in eV, 0=hartree
accesswff 1 # use MPI I/0
ixc 1 # Must match the PSP type; this must be checked if using a new PSP.
istwfk *1 # Do not take advantage of time reversal symmetry (not supported for KSS)
Thanks for the reply; below are my SCF and non-SCF input files in that order. They are for a CNT. My questions are rather general.
SCF:
# DENSITY CALCULATION
# ACCURACY & CONVERGENCE
ecut 36 # must be converged
ngkpt 1 1 54 # must be converged - Fermi point must be well captured!
kptopt 1
nshiftk 1
shiftk 0 0 0
# SCF PRECONDITIONING
#iprcel 45 # Alternative preconditioning to diemac - used if system cannot converge
#diemix 4
diemac 1.0d6 # Estimate of Dielectric Constant
# UNIT CELL & GEOMETRY
acell 12.56511735 12.56511735 2.46297625 angstrom
rprim 1 0 0
0 1 0
0 0 1
ntypat 1
znucl 6
natom 12
typat 12*1
xangst
etc....
# CALCULATION CHARACTERISTICS
# CORRESPONDING TO A SELF CONSISTENT DEN CALCULATION, WITH THE TOLERANCE CRITERION BEING ON THE WAVE FUNCTION RESIDUAL
tolwfr 5.0d-8
nstep 2000
iscf 7 # Pulay mixing of SCF iterations
prtden 1 # print density?
prtwf 1 # print wave functions file?
prteig 0 # print eigenvalues (band structure)?
nbandkss 0 # print Kohn-Sham structure?
enunit 1 # 1=print energies in eV, 0=hartree
accesswff 1 # use MPI I/0
ixc 1 # Must match the PSP type; this must be checked if using a new PSP.
istwfk *1 # Do not take advantage of time reversal symmetry (not supported for KSS)
Non-SCF:
# EIGENVALUE CALCULATION
# ACCURACY & CONVERGENCE
ecut 36 # must be converged
ngkpt 1 1 54 # must be converged - Fermi point must be well captured!
kptopt 1
nshiftk 1
shiftk 0 0 0
# SCF PRECONDITIONING
#iprcel 45 # Alternative preconditioning to diemac - used if system cannot converge
#diemix 4
diemac 1.0d6 # Estimate of Dielectric Constant
# UNIT CELL & GEOMETRY
acell 12.56511735 12.56511735 2.46297625 angstrom
rprim 1 0 0
0 1 0
0 0 1
ntypat 1
znucl 6
natom 12
typat 12*1
xangst
etc.....
# CALCULATION CHARACTERISTICS
# CORRESPONDING TO A NON-SCF EIG CALCULATION, WITH THE TOLERANCE CRITERION BEING ON THE WAVE FUNCTION RESIDUAL
tolwfr 5.0d-8
nstep 10
iscf -2 # NON-SCF
getden -1 # Therefore, read density specified by *.files
prtden 0 # print density?
prtwf 0 # print wave functions file?
prteig 1 # print eigenvalues (band structure)?
nbandkss 0 # print Kohn-Sham structure? (-1 = yes)
enunit 1 # 1=print energies in eV, 0=hartree
accesswff 1 # use MPI I/0
ixc 1 # Must match the PSP type; this must be checked if using a new PSP.
istwfk *1 # Do not take advantage of time reversal symmetry (not supported for KSS)
-
- Posts: 138
- Joined: Sat Aug 15, 2009 12:45 am
Re: Non-SCF Band Structure Calculations
Hello,
You want to start from a density file which is created in a previous run (not a previous dataset) so you have to use irdden 1 (read density from file specified in .files) instead of getden -1. I guess this might be the answer to your first question but that's still strange, could you provide the end of your log file (or some parts of it that may be relevant) and your output file ?
For your second answer, your density in your first run is converged with a given tolwfr but this criterium is on the wavefunction. If you restart from the density in a non SCF run, the wavefunction you are generating in a non SCF way is not converged after just one iteration with the fixed potential from the density of the SCF run.
David
You want to start from a density file which is created in a previous run (not a previous dataset) so you have to use irdden 1 (read density from file specified in .files) instead of getden -1. I guess this might be the answer to your first question but that's still strange, could you provide the end of your log file (or some parts of it that may be relevant) and your output file ?
For your second answer, your density in your first run is converged with a given tolwfr but this criterium is on the wavefunction. If you restart from the density in a non SCF run, the wavefunction you are generating in a non SCF way is not converged after just one iteration with the fixed potential from the density of the SCF run.
David
-
- Posts: 20
- Joined: Thu Dec 10, 2009 5:58 pm
Re: Non-SCF Band Structure Calculations
David,
Actually, your second answer answers my first question as well.
I didn't know that a non-SCF calculation must iterate for wavefunctions even after a converged SCF density:
scprqt: WARNING -
nstep= 1 was not enough non-SCF iterations to converge;
maximum residual= 5.477E-01 exceeds tolwfr= 1.000E-07 (from nonscf log file)
Many thanks for clearing this up for me.
-Mamikon
Actually, your second answer answers my first question as well.
I didn't know that a non-SCF calculation must iterate for wavefunctions even after a converged SCF density:
scprqt: WARNING -
nstep= 1 was not enough non-SCF iterations to converge;
maximum residual= 5.477E-01 exceeds tolwfr= 1.000E-07 (from nonscf log file)
Many thanks for clearing this up for me.
-Mamikon
-
- Posts: 138
- Joined: Sat Aug 15, 2009 12:45 am
Re: Non-SCF Band Structure Calculations
Hello,
That's not the case if you restart from the wavefunction instead of the density and that you specify the same number of bands of course. In fact when you are doing a SCF calculation, at each SCF step, you could do a given number of non-SCF iterations (at fixed potential) and the default behaviour of abinit is to have two non SCF iterations for the two first SCF steps and then only one non-SCF iteration for all the next steps. This is consistent as in a SCF run, the wavefunction is initialized from the previous SCF step so it should not change too much.
David
That's not the case if you restart from the wavefunction instead of the density and that you specify the same number of bands of course. In fact when you are doing a SCF calculation, at each SCF step, you could do a given number of non-SCF iterations (at fixed potential) and the default behaviour of abinit is to have two non SCF iterations for the two first SCF steps and then only one non-SCF iteration for all the next steps. This is consistent as in a SCF run, the wavefunction is initialized from the previous SCF step so it should not change too much.
David