Page 1 of 1

strange fluctuation in PBE0 convergence

Posted: Fri Jul 11, 2025 8:26 am
by jasius

Hi all, I am trying to calculate DOS of a large supercell with PBE0. I use PBE and the performed non SC calculation, reading both charges and wavecar. During the iteration 19 the SCF which seemded to be converging all of a sudden experience in a jump. While it recovers afterwards it is still struggling to converge afterwards. I was wondering on why this happens

thank you

vasp.5.4.4.18Apr17-6-g9f103f2a35 (build May 01 2020 14:29:13) complex

POSCAR found type information on POSCAR P Mg O N H Fe
POSCAR found : 6 types and 459 ions
scaLAPACK will be used
LDA part: xc-table for Pade appr. of Perdew
found WAVECAR, reading the header
WARNING: stress and forces are not correct
POSCAR, INCAR and KPOINTS ok, starting setup
FFT: planning ...
reading WAVECAR
the WAVECAR file was read successfully
charge-density read from file: Chabazite_01Ns0
magnetization density read from file 1
entering main loop
N E dE d eps ncg rms rms(c)
DAV: 1 0.126662339203E+04 0.12666E+04 -0.94101E+02 16816 0.276E+01
DAV: 2 0.126305172425E+04 -0.35717E+01 -0.35707E+01 18240 0.603E+00
DAV: 3 0.126299480254E+04 -0.56922E-01 -0.56916E-01 19664 0.982E-01
DAV: 4 0.126299336572E+04 -0.14368E-02 -0.14368E-02 19488 0.127E-01
DAV: 5 -0.310805978586E+04 -0.43711E+04 -0.70579E+02 18432 0.249E+01
DAV: 6 -0.314310852629E+04 -0.35049E+02 -0.75327E+01 17616 0.935E+00
DAV: 7 -0.314554139101E+04 -0.24329E+01 -0.35985E+00 22256 0.218E+00
DAV: 8 -0.314569168046E+04 -0.15029E+00 -0.21215E-01 20160 0.571E-01
DAV: 9 -0.314570489048E+04 -0.13210E-01 -0.12067E-02 22720 0.178E-01
DAV: 10 -0.314570706766E+04 -0.21772E-02 -0.12024E-03 21160 0.696E-02
DAV: 11 -0.314570765406E+04 -0.58640E-03 -0.33528E-04 22960 0.338E-02
DAV: 12 -0.314570786161E+04 -0.20755E-03 -0.20898E-04 17624 0.199E-02
DAV: 13 -0.314570795941E+04 -0.97793E-04 -0.17665E-04 16248 0.135E-02
DAV: 14 -0.314570802211E+04 -0.62697E-04 -0.16361E-04 13880 0.102E-02
DAV: 15 -0.314570807178E+04 -0.49674E-04 -0.15584E-04 11928 0.845E-03
DAV: 16 -0.314570811536E+04 -0.43578E-04 -0.15019E-04 11328 0.737E-03
DAV: 17 -0.314570815523E+04 -0.39874E-04 -0.14514E-04 11080 0.664E-03
DAV: 18 -0.314570819236E+04 -0.37130E-04 -0.14032E-04 10840 0.608E-03
DAV: 19 -0.314702171630E+04 -0.13135E+01 -0.13111E+01 10608 0.559E-03
DAV: 20 -0.314554350030E+04 0.14782E+01 -0.58320E+01 16856 0.237E-01
DAV: 21 -0.314570760791E+04 -0.16411E+00 -0.34123E-02 17216 0.930E-02
DAV: 22 -0.314570827373E+04 -0.66582E-03 -0.30131E-03 14344 0.260E-02
DAV: 23 -0.314570834754E+04 -0.73807E-04 -0.22274E-04 14408 0.873E-03
DAV: 24 -0.314570837770E+04 -0.30165E-04 -0.12097E-04 13664 0.486E-03
DAV: 25 -0.314570840408E+04 -0.26378E-04 -0.11259E-04 11128 0.409E-03
DAV: 26 -0.314570842931E+04 -0.25230E-04 -0.10892E-04 10056 0.377E-03
DAV: 27 -0.314570845361E+04 -0.24302E-04 -0.10560E-04 9848 0.354E-03
DAV: 28 -0.314570847707E+04 -0.23453E-04 -0.10245E-04 9528 0.334E-03
DAV: 29 -0.314570849971E+04 -0.22648E-04 -0.99296E-05 9384 0.317E-03
DAV: 30 -0.314570852162E+04 -0.21904E-04 -0.96402E-05 9264 0.299E-03
DAV: 31 -0.314570854281E+04 -0.21192E-04 -0.93507E-05 9088 0.284E-03
DAV: 32 -0.314570856332E+04 -0.20511E-04 -0.90688E-05 9240 0.272E-03
DAV: 33 -0.314570858318E+04 -0.19863E-04 -0.87999E-05 8984 0.261E-03

ISTART = 1
#INIWAV = 1
ICHARG = 11
NWRITE = 2
LPETIM = F ! timer
LWAVE = T ! write "WAVECAR"
LCHARG = T ! write "CHGCAR"
LVTOT = F ! write "LOCPOT"
LELF = F ! write "ELFCAR"
LAECHG = F ! the core charge is written to AECCAR0 and the valance charge to AECCAR2
LADDGRID = F
# ------------------------------------------------------------------------------------
GGA = PE ! Perdew-Burke-Ernzerhof
PREC = ACCURATE
ENCUT = 520
NELM = 55
NELMIN = 4
NELMDL = -5
EDIFF = 0.000001
EDIFFG = -0.005
ISIF = 2 ! The cell shape and the volume is relaxed
ISYM = 1 ! Symmetry is ON
LCORR = T
ISMEAR = -5
##SIGMA = 0.05
LREAL = AUTO

##IVDW = 12

ISPIN = 2
##MAGMOM = 16*0 15*0 160*0 15*0 252*0 1*5
LORBIT = 11

LHFCALC = .TRUE.
ALGO = Normal
IMIX = 1
AMIX = 0.1

#-------------------
#parallel stuff
NCORE = 24


Re: strange fluctuation in PBE0 convergence

Posted: Fri Jul 11, 2025 9:42 am
by alexey.tal

Dear jasius,

Thank you for your question.

I see that you are running a spin-polarized calculation. I think that this jump in the total energy is very likely related to the change in the magnetic state, but it is hard to tell without seeing the OUTCAR file from this calculation. Please see our forum guidelines for what should be attached with the post in order for us to be able to help you with your question.

Best wishes,
Alexey


Re: strange fluctuation in PBE0 convergence

Posted: Fri Jul 11, 2025 9:51 am
by jasius

thank you and please see attached

OUTCAR.zip

Re: strange fluctuation in PBE0 convergence

Posted: Fri Jul 11, 2025 10:03 am
by alexey.tal

Unfortunately, this OUTCAR file appears to be damaged and I'm not able to open it. Also, it would be helpful if you could provide all the input files.
If you would like to achieve a more smooth convergence you can try to follow suggestions from this wiki page. In particular, you should try reducing the mixing.


Re: strange fluctuation in PBE0 convergence

Posted: Fri Jul 11, 2025 11:30 am
by jasius

My apologies Alexei, I attached all the files and made sure they are all readable. This is a large system and takes long time for me to run but not only it flips the spin (I see in PBE calculation negative spin when it converges) but struggles to converge at the end. I would appreciate the suggestions (and I will try making linear mixing).

The link you referred to suggest restarting and reading it from the WAVECAR. I would like that, e.g., converging with PREC=NORMAL and CUToff 400 eV and then perhaps converge with higher precision. But when I try that using the input below it still goes through 4 steps of positive energy and it starts what it seems like with initial magnetization in MAGMOM. Could you recommend the most efficient way of restarting the lower level calculation?

thank you


Re: strange fluctuation in PBE0 convergence

Posted: Fri Jul 11, 2025 3:26 pm
by alexey.tal

I cannot read the content of the OUTCAR after line 2502. See the screenshot below:

pic_resized.png

I see that you are using the PBE0 functional. I would suggest that you first converge your calculation with PBE with the hard cutoff (should be way cheaper) and then restart from the WAVECAR with PBE0. Also, with the hybrid functional calculation I would suggest that you use ALGO=Damped or ALGO=All.

In the PBE calculation with ALGO=Normal, I think that the linear mixing should help in this situation. Another thing would be to try setting MAGMOM, if you know what magnetic state should be the lowest. That should speed up the convergence a lot.


Re: strange fluctuation in PBE0 convergence

Posted: Sun Jul 13, 2025 6:30 pm
by jasius

Hi Alexey, I still need your help. I checked (again) OUTCAR and all iterations 1 through 26 are printed. The problem that it does not converge since this jump in SCF happens three times after 10-4 convergence is reached. Magnetization stays the same during the iterations. The system is converged with PBE, charge and WAVECAR are read for PBE0 job

thank you


Re: strange fluctuation in PBE0 convergence

Posted: Sun Jul 13, 2025 6:31 pm
by jasius

the WAVECAR file was read successfully
charge-density read from file: Chabazite_01Ns0
magnetization density read from file 1
entering main loop
N E dE d eps ncg rms rms(c)
DAV: 1 0.126488079067E+04 0.12649E+04 -0.92831E+02 17056 0.271E+01
DAV: 2 0.126132268839E+04 -0.35581E+01 -0.35572E+01 18176 0.588E+00
DAV: 3 0.126127432500E+04 -0.48363E-01 -0.48360E-01 18944 0.821E-01
DAV: 4 0.126127304167E+04 -0.12833E-02 -0.12833E-02 19968 0.120E-01
DAV: 5 -0.311140947912E+04 -0.43727E+04 -0.69691E+02 18816 0.247E+01
DAV: 6 -0.314639285736E+04 -0.34983E+02 -0.74199E+01 17648 0.909E+00
DAV: 7 -0.314878975783E+04 -0.23969E+01 -0.33809E+00 22224 0.204E+00
DAV: 8 -0.314893621540E+04 -0.14646E+00 -0.20073E-01 20240 0.553E-01
DAV: 9 -0.314894915607E+04 -0.12941E-01 -0.11356E-02 22784 0.173E-01
DAV: 10 -0.314895131737E+04 -0.21613E-02 -0.11978E-03 21248 0.681E-02
DAV: 11 -0.314895189983E+04 -0.58246E-03 -0.31296E-04 23088 0.333E-02
DAV: 12 -0.314895210619E+04 -0.20636E-03 -0.20854E-04 18528 0.196E-02
DAV: 13 -0.314895220316E+04 -0.96977E-04 -0.17418E-04 16752 0.133E-02
DAV: 14 -0.314895226526E+04 -0.62101E-04 -0.16205E-04 14912 0.101E-02
DAV: 15 -0.315969489285E+04 -0.10743E+02 -0.10714E+02 13024 0.840E-03
DAV: 16 -0.314880591597E+04 0.10889E+02 -0.76639E+01 19728 0.240E-01
DAV: 17 -0.314895189834E+04 -0.14598E+00 -0.16733E-02 18528 0.871E-02
DAV: 18 -0.314895239551E+04 -0.49717E-03 -0.19922E-03 14928 0.235E-02
DAV: 19 -0.314895246588E+04 -0.70371E-04 -0.20781E-04 14848 0.904E-03
DAV: 20 -0.314895250085E+04 -0.34963E-04 -0.13410E-04 14704 0.593E-03
DAV: 21 -0.315762954716E+04 -0.86770E+01 -0.86765E+01 12720 0.520E-03
DAV: 22 -0.314872892210E+04 0.89006E+01 -0.68532E+01 16192 0.403E-01
DAV: 23 -0.314895196818E+04 -0.22305E+00 -0.23226E-02 15504 0.187E-01
DAV: 24 -0.314895261015E+04 -0.64197E-03 -0.21257E-03 14976 0.156E-02
DAV: 25 -0.314895266004E+04 -0.49889E-04 -0.15297E-04 14944 0.525E-03


Re: strange fluctuation in PBE0 convergence

Posted: Mon Jul 14, 2025 7:49 am
by alexey.tal

Thank you. Now I can read all iterations in your OUTCAR file. Indeed, the systems is in the ferromagnetic state. So you converge your calculation with PBE first and then perform a PBE0 calculation starting with the PBE orbitals, which makes sense. Also, I see that you are still using Davidson algorithm. Have you tried ALGO=Damped or ALGO=All in the PBE0 calculations? It should improve the convergence with PBE0.


Re: strange fluctuation in PBE0 convergence

Posted: Mon Jul 14, 2025 8:07 am
by jasius

Thank you Alexey, it took me weeks to run this simulation so I am afraid to stop it. If I stop, how do I make sure I restart it correctly so it picks up where it left off (albeit with a different algorithm)?


Re: strange fluctuation in PBE0 convergence

Posted: Mon Jul 14, 2025 8:24 am
by alexey.tal

You can use STOPCAR file to interrupt the calculation and save the orbitals from the last iteration.


Re: strange fluctuation in PBE0 convergence

Posted: Mon Jul 14, 2025 4:24 pm
by jasius

ALGO=DAMPED leads to this message, should I be worried?

-----------------------------------------------------------------------------
| |
| W W AA RRRRR N N II N N GGGG !!! |
| W W A A R R NN N II NN N G G !!! |
| W W A A R R N N N II N N N G !!! |
| W WW W AAAAAA RRRRR N N N II N N N G GGG ! |
| WW WW A A R R N NN II N NN G G |
| W W A A R R N N II N N GGGG !!! |
| |
| ALGO=A and IALGO=5X tend to fail with the tetrahedron method |
| (e.g. Bloechls method ISMEAR=-5 is not variational) |
| please switch to IMSEAR=0-n, except for DOS calculations |
| For DOS calculations use IALGO=53 after preconverging with ISMEAR>=0 |
| I HOPE YOU KNOW, WHAT YOU ARE DOING |
| |
-----------------------------------------------------------------------------

INCAR
SYSTEM = Chabazite_01Ns0, PBE, PAW, ISPIN=1, ISIF=2, PREC=NORMAL, ENCUT=400eV, Symmetry is OFF, single K-point
# ------------------------------------------------------------------------------------
#
# Abbona, Acta Crystallographica B40 (1984) 223-227
#
# ------------------------------------------------------------------------------------
ISTART = 1
#INIWAV = 1
ICHARG = 11
NWRITE = 2
LPETIM = F ! timer
LWAVE = T ! write "WAVECAR"
LCHARG = T ! write "CHGCAR"
LVTOT = F ! write "LOCPOT"
LELF = F ! write "ELFCAR"
LAECHG = F ! the core charge is written to AECCAR0 and the valance charge to AECCAR2
LADDGRID = F
# ------------------------------------------------------------------------------------
GGA = PE ! Perdew-Burke-Ernzerhof
PREC = NORMAL
ENCUT = 400
NELM = 55
EDIFF = 0.000001
EDIFFG = -0.005
ISIF = 2 ! The cell shape and the volume is relaxed
ISYM = 1 ! Symmetry is ON
LCORR = T
ISMEAR = -5
##SIGMA = 0.05
LREAL = AUTO

##IVDW = 12

ISPIN = 2
MAGMOM = 16*0 15*0 160*0 15*0 252*0 1*5
LORBIT = 11

LHFCALC = .TRUE.
ALGO = Damped
IMIX = 1
AMIX = 0.1

#-------------------
#parallel stuff
NCORE = 16


Re: strange fluctuation in PBE0 convergence

Posted: Mon Jul 14, 2025 4:54 pm
by alexey.tal

You should follow the warning and switch to ISMEAR=0 in that case. Also, I noticed that you are using ISYM=1, however, we recommended to use ISYM=3 with hybrid functional calculations.


Re: strange fluctuation in PBE0 convergence

Posted: Mon Jul 14, 2025 5:34 pm
by jasius

Thank you Alexey. If you do not mind, common knowledge in this forum is that for accurate DOS and BAND one needs to use ISMEAR=-5, using ISMEAR=0 seems opposite of that suggestion.I read that in Si example one uses ISMEAR=0, ALGO=DAMPED, TIME=0.8 and then rerun converged calculation with ISMEAR=-5. I will try that


Re: strange fluctuation in PBE0 convergence

Posted: Tue Jul 15, 2025 9:21 am
by alexey.tal

ISMEAR=0 corresponds to the Gaussian broadening, which can be made very small with the SIGMA tag. Furthermore, after the calculation is converged you can rerun the calculation starting from WAVECAR with ISMEAR=-5 and ALGO=None to calculate DOS without smearing.