DFPT + PAW LDA

Phonons, DFPT, electron-phonon, electric-field response, mechanical response…

Moderators: mverstra, joaocarloscabreu

Locked
tomasz.w
Posts: 4
Joined: Sun Nov 19, 2017 11:00 pm

DFPT + PAW LDA

Post by tomasz.w » Sun Nov 19, 2017 11:11 pm

Dear Abinit Users,

I'm trying to do DFPT calculation of the effect of an homogeneous electric field basing on trf1_5.in file and using LDA PAW's in Abinit 8.4.4. At the 3rd dataset I get the following line in the log (change the name of the file log.in to log.tar.gz):

--- !BUG
src_file: m_pawxc.F90
src_line: 4494
mpi_rank: 0
message: |
nkxc must be 1 or 3 (not OK for GGA)!

Does that mean that this calculation cannot be performed using GGA nor LDA PAW's?

Thanks,
Tomasz
Attachments
HfS2.in
(3.29 KiB) Downloaded 335 times
HfS2.out
(109.62 KiB) Downloaded 298 times
log.in
(92.02 KiB) Downloaded 328 times

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: DFPT + PAW LDA

Post by mverstra » Fri Nov 24, 2017 10:01 pm

Hi -

preliminary analysis : gga is not the problem, you are all LDA. In your case nkxc should be 1: it's the size of the xc kernel used in the DFPT. It seems to be complaining when calculating the ddE derivative. Note also that you have some NaN just above during the calculation, so something has gone wrong or not converged well, already from step 2 of dtset 3. It's a bit weird that it is printing the magnetizations magn(x,y,z) for the RHOIJ - this is probably correct and a consequence of spin orbit coupling. In principle nspden = 1 and there is no magnetization anywhere.

Also your ddk did not converge at all for the last bands. Try adding some unoccupied bands (6-10) and setting nbdbuf at least 2. To improve convergence you can also add a few more empty bands and use a metallic smearing occopt 7 tsmear 1.e-4 (yes, even for an insulator, it works really well).

Need to check your convergence in detail before worrying about the later datasets
Matthieu Verstraete
University of Liege, Belgium

tomasz.w
Posts: 4
Joined: Sun Nov 19, 2017 11:00 pm

Re: DFPT + PAW LDA

Post by tomasz.w » Mon Nov 27, 2017 11:19 pm

Dear Matthieu,

Thank you for response.
I followed your advices, setting even higher number of unoccupied bands and nbdbuf. Moreover, I used higher ecut, pawecutdg and denser k grid (the same as for structure relaxation, which was repeated using tolmxf 1.d-10). Now all the steps are converged and there are no NaNs. The bug regarding nkxc still remains, however. I'm attaching input, output and log.

Thanks,
Tomasz
Attachments
HfS2.in
(1.23 KiB) Downloaded 283 times
HfS2.out
(122.8 KiB) Downloaded 297 times
log.in
(122.05 KiB) Downloaded 320 times

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: DFPT + PAW LDA

Post by mverstra » Tue Nov 28, 2017 11:10 am

Hi again,

Indeed, these were 2 different issues. I have pared down your input to the following, to run it quickly, but still get errors related to complex potentials (cplex=1), and the dimensionality of the vxc1 and kxc1. I have forwarded this to the corresponding developers. There is a bug, and it's some interference between nspinor 2 and the electric field perturbation.

cheers

Matthieu


======================================================

# HfS2 bulk PAWLDA SO

ndtset 1
jdtset 3

pawspnorb 1
#vdw_xc 6
#pawxcdev 1

#Response Function calculation : d/dk
rfelfd2 2 # Activate the calculation of the d/dk perturbation
rfdir2 1 1 1 # Need to consider the perturbation in the x-direction only
# This is rather specific, due to the high symmetry of the AlAs crystal
# In general, just use rfdir 1 1 1
# In the present version of ABINIT (v4.6), symmetry cannot be used
# to reduce the number of ddk perturbations

nqpt2 1
qpt2 0.0 0.0 0.0 # This is a calculation at the Gamma point

getwfk2 1 # Uses as input the output wf of the previous dataset

kptopt2 3 # Automatic generation of k points,
# using only the time-reversal symmetry to decrease
# the size of the k point set.

iscf2 -3 # The d/dk perturbation must be treated
# in a non-self-consistent way
tolwfr2 1.0d-22 # Must use tolwfr for non-self-consistent calculations
# Here, the value of tolwfr is very low.

#Response Function calculation : electric field perturbation and phonons
rfphon3 1 # Activate the calculation of the atomic dispacement perturbations
rfatpol3 1 3 # All the atoms will be displaced
rfelfd3 3 # Activate the calculation of the electric field perturbation
rfdir3 1 1 1 # All directions are selected. However, symmetries will be used to decrease
# the number of perturbations, so only the x electric field is needed
# (and this explains why in the second dataset, rfdir was set to 1 0 0).

nqpt3 1
qpt3 0.0 0.0 0.0 # This is a calculation at the Gamma point

getwfk3 1 # Uses as input wfs the output wfs of the dataset 1
getddk3 2 # Uses as input ddk wfs the output of the dataset 2

kptopt3 3 # Automatic generation of k points,
# using only the time-reversal symmetry to decrease
# the size of the k point set.
tolvrs3 1.0d-18


# initial structure---------------------------------------------------------

acell 6.7199072919E+00 6.7199072919E+00 1.0728322452E+01
angdeg 90 90 120

rprim
1.0 0.0 0.0
-0.5 0.8660254037844386467637231707 0.0
0.0 0.0 1.0

ntypat 2
znucl 72 16

natom 3
#spgroup 164
#natrd 2
typat 1 2 2

xred -1.4459833242E-30 -3.4127342373E-30 2.3962857020E-18
6.6666666667E-01 3.3333333333E-01 2.5406340613E-01
3.3333333333E-01 6.6666666667E-01 7.4593659387E-01
#natfix 3
#iatfix 1 2 3

# base and k points---------------------------------------------------------

ecut 3.0
pawecutdg 7.0
ecutsm 0.5
dilatmx 1.05
kptopt 4
ngkpt 2 2 2 #12 12 6
nshiftk 1
shiftk 0.0 0.0 0.5

# electronic relaxation-----------------------------------------------------

nstep 20
#toldfe 1.0d-6
toldfe 1.0d-12
tolmxf 1.0d-10
diemac 12

#ntime 200
#ionmov 2
#optcell 2 # 2 - pelna relaksacja, 9 - nie zmienia acell_z
======================================================
Matthieu Verstraete
University of Liege, Belgium

tomasz.w
Posts: 4
Joined: Sun Nov 19, 2017 11:00 pm

Re: DFPT + PAW LDA

Post by tomasz.w » Wed Nov 29, 2017 3:10 pm

Dear Matthieu,

Thank you again.
I ran the calculations with pawspnorb 0 and they succeeded without any warnings. However, I obtained wrong phonon frequencies at Gamma (comparing to finite differences calculations), especially three negavite values:

Phonon wavevector (reduced coordinates) : 0.00000 0.00000 0.00000
Phonon energies in Hartree :
-1.281802E-03 -1.281802E-03 -4.350209E-05 1.400192E-03 1.450970E-03
1.450970E-03 1.516384E-03 1.780480E-03 1.780480E-03
Phonon frequencies in cm-1 :
- -2.813229E+02 -2.813229E+02 -9.547604E+00 3.073067E+02 3.184510E+02
- 3.184510E+02 3.328078E+02 3.907701E+02 3.907701E+02

I obtained similar results for HGH and NCPP psp from Abinit table. Structures were relaxed using tolmxf 1.d-10. First question is: how to manage with it, second: can I trust the values of dielectric tensor and effective charges in this situation?

Thanks,
Tomasz
Attachments
HfS2-dfpt.in
(3.29 KiB) Downloaded 310 times
HfS2.out
(174.01 KiB) Downloaded 290 times
log.in
(164.33 KiB) Downloaded 282 times

Boris
Posts: 128
Joined: Tue Feb 16, 2010 10:13 am
Location: France

Re: DFPT + PAW LDA

Post by Boris » Tue Apr 17, 2018 9:53 pm

Hi

DFPT with PAW+spin orbit is kind of tricky and is probably glitchy at this moment. It has not been extensively tested yet.

Without spin orbit, however, you should obtain the same result with DFPT as with small displacements.
----------------------------------------------------------
Boris Dorado
Atomic Energy Commission
France
----------------------------------------------------------

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: DFPT + PAW LDA

Post by ebousquet » Wed Apr 18, 2018 9:42 pm

As of today, DFPT+SOC is not yet working in PAW, we are working on it right now and hope to fix it this year. So far only LDA will be working.
Eric

Locked