SOC removes LO-TO splitting in GaN

Dear EPW Users,

Similar to an earlier post (viewtopic.php?f=6&t=354&p=1288&hilit=soc#p1288), when SOC is used with GaN, the LO-TO splitting appears to vanish.

I used the GaN test case (with epsil=true and lpolar=true) and added SOC tags (lspinorb and noncolin) to all the scf and nscf files. I used fully relativistic PSPs Ga.rel-pz-n-nc.UPF and N.rel-pz-nc.UPF.

To ensure that EPW (version 4.1) reads the dielectric tensor, I added the following write statements in io_dynmat2.f90
[code:3gvg3nnd]
WRITE(,) "epsil=", epsil
WRITE(,) "zstareu(:,:,:)=", zstareu(:,:,:slight_smile:
ENDIF
RETURN
END SUBROUTINE read_dyn_mat_header
[/code:3gvg3nnd]

In the output, I get the correct epsilon and zstareu. This shows that EPW reads the dyn.xml files correctly.

Then I added the following write statements in the dynwan2bloch.f90 to see what epsi and zstar values enter the rgd_blk subroutine:
[code:3gvg3nnd]
IF (lpolar) THEN
! xq has to be in 2pi/a
IF (mpime.eq.ionode_id) THEN
WRITE(,) "epsi=",epsi
WRITE(,) "zstar=",zstar
ENDIF
CALL rgd_blk (nq1,nq2,nq3,nat,chf,xq,tau,epsi,zstar,+1.d0)
!
ENDIF
[/code:3gvg3nnd]

In the output, for all q values in the list, the epsi and zstar matrices are all zero.

I may be missing something here but it seems that when using SOC (xml extension for .dyn files), the dielectric matrix and charges are read correctly but not broadcast.

Thank you,

Vahid

Vahid Askarpour
Department of Physics and Atmospheric Science
Dalhousie University,
Halifax, NS, Canada

Dear Vahid,

I double checked and they seem to be broadcasted correctly (it’s in elphon_shuffle_wrap, and later in ephwann_shuffle).
Could you please print also the value of ‘lrigid’ as passed in readmat_shiffle2? It’s a logical variable set to T if the info on dielectric constant / effective charges are read in read_dyn_mat_header. If that’s T, then these matrices are stored in zstar, epsi in readmat_shuffle2.f90. Similarly, could you print zstar, epsi within readmat_shuffle2?

Thanks
Carla

Dear Carla,

For the Gamma q-point, I get lrigid=T and correct epsi and zstar values. For the other 3 q-points, I get lrigid=F and epsi and zstar are zero.

I printed these values in the following part of readmat_shuffle2.f90:

[code:1gwwlyv9]
WRITE(,) "lrigid=",lrigid
WRITE(,) "epsi=", epsi
WRITE(,) "zstar=", zstar
IF (lrigid) THEN
[/code:1gwwlyv9]

Thanks,

Vahid

Dear Carla,

I managed to restore the LO-TO splitting by commenting out the following lines in io_dyn_mat2:

[code:x07mcxsv]
! ELSE
! IF (PRESENT(epsil)) epsil=0.0_DP
! IF (PRESENT(zstareu)) zstareu=0.0_DP
! IF (PRESENT(ramtns)) ramtns=0.0_DP
ENDIF
ENDIF
ENDIF
RETURN
END SUBROUTINE read_dyn_mat_header
[/code:x07mcxsv]

However, because lrigid=T for the first q-point only, the other q-points do not go through this part of the readmat_shuffle2:

[code:x07mcxsv]
IF (lrigid) THEN
WRITE (6,‘(8x,a)’) ‘Read dielectric tensor and effective charges’
!ASR on effective charges
DO i=1,3
DO j=1,3
sumz=0.0d0
DO na=1,nat
sumz = sumz + zstar(i,j,na)
ENDDO
DO na=1,nat
zstar(i,j,na) = zstar(i,j,na) - sumz/nat
ENDDO
ENDDO
ENDDO
ENDIF
[/code:x07mcxsv]

Once I get lrigid=T for all the q-points, I think the issue is resolved.

Best,

Vahid

I see, when I looked I didn’t think that was a problem because zstar, epsi are global arrays and are not put to zero again after being read for the first q (gamma) but clearly there was a bug! Thanks, we will fix this in the trunk.

Best,
Carla

Dear Vahid,

The implementation looks correct to me.

In the case of SOC, the first q-point should be \Gamma and have

lrigid = .true.
zstar_ = finite value
epsi_ = finite value
zstar = finite value
epsi = finite value.

Now, in the case of other q-point, you should have

lrigid = .false.
zstar_ = 0
epsi_ = 0
zstar = finite value
epsi = finite value.

Because zstar and epsi are not re-written, they should still contain the values obtained from \Gamma.

PS: Make sure to use the latest EPW from QE 6.2. Could you try printing the 5 above quantities and told us what you get ?
Thanks

Best,
Samuel

Dear Samuel,

I was using QE-6.0. Since I had made many changes to the code, I was hoping to debug that version. However, I am in the process of installing qe-6.2 and may have to redo all the phonon calculations. I will try 6.2 version and let you know what I get.

Thanks,

Vahid

Dear Samuel,

I successfully installed qe-6.2 and redid all the phonon, scf, and nscf calculations with the new module.

For the first q-point, I get lrigid=T and finite epsi, epsi_, zstar and zstar_ as below:

[code:9zrbk99j]
Reading interatomic force constants
IFC last -1.724147163949322E-003
Imposed simple ASR
Finished reading ifcs
IFC 0.571022823490833 -1.724147163949322E-003
Symmetries of bravais lattice: 24
Symmetries of crystal: 12
===================================================================
irreducible q point # 1
===================================================================
Symmetries of small group of q: 12
in addition sym. q -> -q+G:
Number of q in the star = 1
List of q in the star:
1 0.000000000 0.000000000 0.000000000
lrigid= T
epsi_= 5.11840665057653 1.332267629550188E-015 0.000000000000000E+000
0.000000000000000E+000 5.11840665057594 1.638402241680176E-018
0.000000000000000E+000 -8.192011208400879E-019 5.22614916364484

zstar_= 2.64425871368051 1.110223024625157E-016 0.000000000000000E+000
2.775557561562891E-017 2.64425871368055 1.228801681260132E-018
-1.418897962912504E-018 -9.011212329240969E-018 2.76558298757655
-2.65141561513640 8.881784197001252E-016 -1.418897962912504E-018
8.881784197001252E-016 -2.65141561513531 -9.011212329240968E-018
1.064173472184378E-018 1.024001401050110E-018 -2.76566632193173
2.64425871368051 -5.551115123125783E-017 0.000000000000000E+000
-5.551115123125783E-017 2.64425871368055 8.192011208400879E-019
0.000000000000000E+000 -1.638402241680176E-018 2.76558298757655
-2.65141561513640 8.881784197001252E-016 0.000000000000000E+000
8.881784197001252E-016 -2.65141561513531 -6.553608966720703E-018
2.837795925825008E-018 -8.192011208400883E-019 -2.76566632193173
Read dielectric tensor and effective charges
epsi= 5.11840665057653 1.332267629550188E-015 0.000000000000000E+000
0.000000000000000E+000 5.11840665057594 1.638402241680176E-018
0.000000000000000E+000 -8.192011208400879E-019 5.22614916364484

zstar= 2.64425871368051 1.110223024625157E-016 0.000000000000000E+000
2.775557561562891E-017 2.64425871368055 1.228801681260132E-018
-1.418897962912504E-018 -9.011212329240969E-018 2.76558298757655
-2.65141561513640 8.881784197001252E-016 -1.418897962912504E-018
8.881784197001252E-016 -2.65141561513531 -9.011212329240968E-018
1.064173472184378E-018 1.024001401050110E-018 -2.76566632193173
2.64425871368051 -5.551115123125783E-017 0.000000000000000E+000
-5.551115123125783E-017 2.64425871368055 8.192011208400879E-019
0.000000000000000E+000 -1.638402241680176E-018 2.76558298757655
-2.65141561513640 8.881784197001252E-016 0.000000000000000E+000
8.881784197001252E-016 -2.65141561513531 -6.553608966720703E-018
2.837795925825008E-018 -8.192011208400883E-019 -2.76566632193173
Imposing acoustic sum rule on the dynamical matrix
Dyn mat calculated from ifcs
Frequencies of the matrix for the current q in the star
-0.00001 0.00001 0.00001 93.79061 93.79061 379.23722
705.32159 727.15966 727.15966 743.47383 743.47383 835.33459
q( 1 ) = ( 0.0000000 0.0000000 0.0000000 )
[/code:9zrbk99j]

However, for the second q-point, I get the following error:

[code:9zrbk99j]
===================================================================
irreducible q point # 2
===================================================================
Symmetries of small group of q: 12
in addition sym. q -> -q+G:
Number of q in the star = 1
List of q in the star:
1 0.000000000 0.000000000 -0.306727120
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error in routine readmat_shuffle2 (1):
You set lpolar = .true. but did not put epsil = true in the PH calculation at Gamma.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
stopping ...
[/code:9zrbk99j]

Looking at the readmat_shuffle2.f90, the error comes from the following line:

[code:9zrbk99j]
IF (lpolar .and. .not. lrigid) CALL errore(‘readmat_shuffle2’, &
&'You set lpolar = .true. but did not put epsil = true in the PH calculation at Gamma. ',1)
! These 3 lines are the only additions I made to qe-6.2
WRITE(,) "lrigid=",lrigid
WRITE(,) "epsi_=", epsi_
WRITE(,) "zstar_=", zstar_
IF (lrigid) THEN
[/code:9zrbk99j]

Since I have set lpolar=.true. in my epw.in and epsil=.true. in ph.in, the error arises because lrigid=F (as you mentioned) and .not. lrigid=T for the second q-point.

Best,

Vahid

Dear Vahid,

Oh, off course. I meant "can you download the latest QE version". The latest version is 6.2.1 and not 6.2.

In the latest version, the code should be as follow:

[code:7ktm37z5] IF ( abs(q(1,iq)).lt.eps .and. abs(q(2,iq)).lt.eps .and. abs(q(3,iq)).lt.eps ) THEN
WRITE(6,‘(8x,a)’) ‘Imposing acoustic sum rule on the dynamical matrix’
IF (lpolar .and. .not. lrigid) CALL errore(‘readmat_shuffle2’, &
&'You set lpolar = .true. but did not put epsil = true in the PH calculation at Gamma. ',1)
ENDIF[/code:7ktm37z5]

PS: You do not have to redo the phonon and stuff I think. Just re-run EPW with 6.2.1.

Best,
Samuel

Dear Samuel,

I printed lrigid, epsi_, and zstar_ before the IF (lrigid) section and lrigid, epsi, and zstar after the IF (lrigid) section of the readmat_shuffle2.f90.

For the first q, lrigid is T and the other parameters are finite.

For other q-points, lrigid is F, epsi_ and zstar_ are zero and epsi and zstar are finite.

It seems that I need to inevitably migrate my changes to the latest version.

Thanks for your help,

Vahid

Dear Samuel,

I ran the phonon dispersion with qe-6.2.1 using both the matdyn.x code and EPW-4.3.0 for GaN example case. I used 6x6x6 coarse k/q grids. The PSP is given earlier on this thread. It is a fully relativistic PSP. Tags lpolar and epsil, lspinorb and noncolin are all set to true.

In the EPW input, I used lifc=.true. and asr_typ=‘simple’. I used ‘simple’ asr in matdyn.in and q2r.in as well and renamed the force constant file to ifc.q2r.xml in the save folder.

Here is a comparison of the two phonon dispersions (https://drive.google.com/file/d/1t-Mnw- … q-v04/view). The EPW bands have higher energies especially for the upper optical modes. Is this behaviour expected?

Thanks,

Vahid

Hello,

Could you try asr_typ=‘crystal’ ?

Also, the simple sum rule is the default one in EPW. Therefore if you do not need the crystal sum rule (usually better than simple), then you can just do
lifc=.false.

In principle lifc = false and lifc = .true. + asr_typ=‘simple’ should get the same results.
There might be a bug if it is not the case.

Could you do those 2 additional calculations and tell us your results ?
Calculation 1: same but with asr_typ='crystal
Calculation 2: lifc = false and asr_typ does not need to be specified. You do not need ifc.q2r.xml file in this case.

Thanks,
Samuel

Dear Samuel,

The setting asr_typ=crystal (https://drive.google.com/open?id=1F6Ell … uFYdXAtM2A) and lifc=.false. (https://drive.google.com/open?id=1LzpJ0 … XLreEdk4UZ) are consistent with the lifc=true and asr_typ=simple result reported earlier. In all three cases, EPW is consistently higher than matdyn. And in all three cases, EPW dispersion is the same.

I also tried asr=crystal in matdyn.in and q2r.in and the matdyn dispersion is the same for both asr settings.

Best,

Vahid

Hello,

Are you sure you did not do a silly mistake and that the input are consistent ?

I suspect something like a mistake in the value "amass" for example.

This would results in such a shift up.

Best,
Samuel

Hello,

I will try to debug the SOC part of the code. I will keep you posted as to what I find.

Best,

Vahid

Hi Vahid,

Do you mean that if you turn off SOC in your GaN calculation you get the right phonon dispersion?

Carla

Hi Carla,

I have not tried running GaN without SOC. I have run other polar materials without SOC and there were no discrepancies between matdyn and EPW phonon dispersion.

Fo this thread, I was merely trying to run on GaN with SOC. I checked to see if the phonon dispersions are consistent but they appear not to be. The masses are consistent in all the input files. So are the lattice parameters.

I will keep looking and will report back when I find something.

Best,

Vahid

Hi Samuel and Carla,

I found out why the matdyn and EPW phonon dispersions did not match. In converting from meV to wavenumber, I used a factor of 0.12 whereas I should have used 0.12398. My bad!

Best,

Vahid

Dear Vahid,

Glad to hear that it now works for you.
Thanks for letting us know.

Best,
Samuel