Question on |g|(qx,qy) distribution

Dear all,

I am sorry in advance for the long post, but I didn’t find "hide" function on the forum interface.

I faced a problem trying to obtain and analyze the q- distribution of electron phonon coupling elements |g| for given k-point and given phonon mode for monolayer graphene.

The motivation of obtaining such plots is: a) verify, that e-p matrix elements reasonably represent the electron-phonon coupling effects of the system b) to obtain the
deformation potential which can be found utilizing linear dependency of electron-phonon coupling from q (for low q’s):
M=D*q

(M, can be obtained from |g|)

A number of references exist, where this task was completed for graphene, for example:
[url:1z300mhx]https://arxiv.org/pdf/1705.01816.pdf[/url:1z300mhx]
[url:1z300mhx]https://journals.aps.org/prb/abstract/10.1103/PhysRevB.81.121412[/url:1z300mhx]
In both cases authors successfully obtained both the reasonable distribution of |g|(qx,qy), and deformation potential.
I’ve been trying to reproduce these results, so far with no success.

With print_gkk functional introduced in the last git version of EPW it seemed like a straightforward task. The averaging over E(k), E(k+q) and Omega(q) are preformed as they are provided in the implementation.
However the distributions I obtain do not even reproduce the symmetry of the system correctly. Moreover, the data seems
noisy and contain strange stripes of q-points with the same value of |g|:

[img:1z300mhx]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1508493436627_file.png&hmac=Gb%2BXbNtejWWkjXuU12w7KqTfwCFj7cSLtwhAA%2FafvLw%3D[/img:1z300mhx]
q-resolved electron-phonon matrix elements |g|(qx,qy) [eV], g=K, conduction band. Top row: ZA, TA modes, bottom left LA mode, green crosses mark the high symmetry points on Brillouin zone edge.

At the same time phonon frequencies and K+q energies from the very same run look reasonable, thus I assume, that the interpolation for this quantities was preformed correctly and I don’t violate the order of q’s and band’s when
I parse the run results:

[img:1z300mhx]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1508493689889_file.png&hmac=VPk6r7%2BPLMzxH%2B%2F2GAD2D%2FOQAuW7DI9Gvo8atQNseSM%3D[/img:1z300mhx]
Phonon frequencies for acoustic modes.

[img:1z300mhx]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1508503688601_file.png&hmac=LVnYH9H2whKKBxwwtHRvy1tliRDhIMeR9UP%2BFdkHI5A%3D&width=1490[/img:1z300mhx]
E(k+q) [eV].

The electron and phonon spectra in high symmetry directions are available here (this post is already to long to give them here) and look quite OK in my opinion:
[size=150:1z300mhx][url:1z300mhx]https://paper.dropbox.com/doc/Graphene-elph-9QVfbGljBpzkTLb8i7E1R#:uid=365416936615388882424307&h2=Same-from-initial-QE-pw-and-ph[/url:1z300mhx][/size:1z300mhx]
The link also contains all the input files I used.

[size=150:1z300mhx][u:1z300mhx]My questions is:[/u:1z300mhx]
What can lead to such behavior? I don’t believe the parameters of my calculations are unreasonable, at least they are consistent with those in archived paper (authors also used EPW), maybe there is some principle error or some kind of clue that can point on, for example, bad wannierization or inadequate choice of parameters in initial calculations? [/size:1z300mhx]

The input file for the final calculation is:

[code:1z300mhx]

&inputepw
prefix = ‘c’
amass(1) = 12.0107,
outdir = ‘/dev/shm/andrey/epw0/’
iverbosity = 0
system_2d = .true.
eps_acustic = 1.0d0
!
elph = .true.
ep_coupling = .true.
kmaps = .true.
! Coarse blochl grid M_e-ph
epbwrite = .false.
epbread = .false.
! Coarse wannier grid M_e-ph and dynmat
epwwrite = .false.
epwread = .true.

wannierize = .false.
nbndsub = 5
nbndskip = 0

dis_win_min = -25.000
dis_win_max = 15.000

dis_froz_min = -25.000
dis_froz_max = -1.0

num_iter = 3000
iprint = 2

proj(1) = ‘f = 0.00000, 0.00000, 0.50000:sp3’
proj(2) = ‘f = 0.33333, 0.66667, 0.50000:pz’
wdata(4) = ‘Begin Kpoint_Path’
wdata(5) = ‘G 0.0000 0.0000 0.0 M 0.5000 0.0000 0.0’
wdata(6) = ‘M 0.5000 0.0000 0.0 K 0.3333 0.3333 0.0’
wdata(7) = ‘K 0.3333 0.3333 0.0 G 0.0000 0.0000 0.0’
wdata(8)= ‘End Kpoint_Path’
wdata(9) = ‘bands_plot = .true.’
wdata(10) = ‘dis_num_iter = 4000’
wdata(11) = ‘guiding_centres = true’
wdata(12) = ‘num_bands = 16’

!elecselfen = .true.
!phonselfen = .true.
!a2f = .true.
parallel_k = .true.
parallel_q = .false.
!
fsthick = 3.00000 ! eV
eptemp = 300 !
ngaussw = 0
degaussq = 0.03 ! meV
degaussw = 0.01 ! eV
efermi_read = .true.
fermi_energy = -3.3535 ! just coarse grid value

! elph and grid flags
dvscf_dir = ‘./save’
filukk = ‘./c_ukk’
! More grid control
prtgkk = .true.
band_plot = .true.
filkf = grid_3721.dat
filqf = grid_3721.dat
nk1 = 16
nk2 = 16
nk3 = 1
!
nq1 = 16
nq2 = 16
nq3 = 1
/
30 cartesian
0.000000000 0.000000000 0.000000000 0.0333
0.000000000 0.072168784 0.000000000 0.0333
0.000000000 0.144337567 0.000000000 0.0333
0.000000000 0.216506351 0.000000000 0.0333
0.000000000 0.288675135 0.000000000 0.0333
0.000000000 0.360843918 0.000000000 0.0333
0.000000000 0.433012702 0.000000000 0.0333
0.000000000 0.505181486 0.000000000 0.0333
0.000000000 -0.577350269 0.000000000 0.0333
0.062500000 0.108253175 0.000000000 0.0333
0.062500000 0.180421959 0.000000000 0.0333
0.062500000 0.252590743 0.000000000 0.0333
0.062500000 0.324759526 0.000000000 0.0333
0.062500000 0.396928310 0.000000000 0.0333
0.062500000 0.469097094 0.000000000 0.0333
0.062500000 0.541265877 0.000000000 0.0333
0.125000000 0.216506351 0.000000000 0.0333
0.125000000 0.288675135 0.000000000 0.0333
0.125000000 0.360843918 0.000000000 0.0333
0.125000000 0.433012702 0.000000000 0.0333
0.125000000 0.505181486 0.000000000 0.0333
0.125000000 0.577350269 0.000000000 0.0333
0.187500000 0.324759526 0.000000000 0.0333
0.187500000 0.396928310 0.000000000 0.0333
0.187500000 0.469097094 0.000000000 0.0333
0.187500000 0.541265877 0.000000000 0.0333
0.250000000 0.433012702 0.000000000 0.0333
0.250000000 0.505181486 0.000000000 0.0333
0.250000000 0.577350269 0.000000000 0.0333
0.312500000 0.541265877 0.000000000 0.0333
[/code:1z300mhx]

Hi,

Don’t worry for the length, it’s good that you put so many details :)
After having a good look we couldn’t spot obvious mistakes, so I would suggest a few checks:

  • Can you plot the decays of the Hamiltonian, dynamical matrix, and matrix elements, to check that the decays of the matrix elements are similar to the ones of H and D, i.e. the matrix elements are properly interpolated?
  • It seems that the coarse k and q grids used vary a bit in the literature; have you tried using slightly denser ones?
  • [just to double check] Are you positive that you extracted from the output precisely the matrix elements corresponding to k=K as the initial state?

Best,
Carla

Dear Carla

thank you very much for the answer.

[quote="carla.verdi":xr1gwml1]- Can you plot the decays of the Hamiltonian, Dynamical matrix, and matrix elements, to check that the decays of the matrix elements are similar to the ones of H and D, i.e. the matrix elements are properly interpolated?[/quote:xr1gwml1]

Hamiltonian and dyn matrix decay (H(Re) and Dyn(Rp) respectively)
[img:xr1gwml1]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1508760835064_file.png&hmac=HmqJqKi7xaQjXTv6bzAVTlv%2B5HdZPxc9q%2F%2FGQINCFsQ%3D&width=1490[/img:xr1gwml1]

E-p matrix elements decay (first and second row decay.epmat_wanep:
max_{m,n,nu} |g(m,n,nu;R_e,R_p)| (Re) / (Rp)
respectively, third row g from decay.epwane):
[img:xr1gwml1]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1508765634729_file.png&hmac=csJ2L%2BYJSqivrgYXrnTqNjvxcUgJdywV8JWxu2M%2F5hw%3D&width=1490[/img:xr1gwml1]

I would say that Hamiltonian and Dyn.mat decay rates are quite comparable with those in EPW CPC paper ([url:xr1gwml1]http://dx.doi.org/10.1016/j.cpc.2010.08.027[/url:xr1gwml1])
I am not quite sure how should I interpret what is going on for epmat decays, do they look reasonable?

[quote="carla.verdi":xr1gwml1]- It seems that the coarse k and q grids used vary a bit in the literature; have you tried using slightly denser ones?[/quote:xr1gwml1] comparable.

Indeed they do, that is what I am testing now with 36x36x1 k grid for a start.
But, as I mentioned, https://arxiv.org/pdf/1705.01816.pdf used even smaller
coarse grids than mine (10x10x1 k and 5x5x1 q), still their g(qx,qy) looks reasonable.

[quote="carla.verdi":xr1gwml1]- [just to double check] Are you positive that you extracted from the output precisely the matrix elements corresponding to k=K as the initial state?[/quote:xr1gwml1]

That is how I grep the data from epw output file:
[code:xr1gwml1]grep -A 28 'ik = 2481 ’ epw_elph.out[/code:xr1gwml1]
And what I obtain starts with
[code:xr1gwml1]ik = 2481 coord.: 0.3333333 0.3333333 0.0000000[/code:xr1gwml1]
From that point I parse the e-p matrix elements I need (5, 5, n).
If ik coord. is in crystal (relative/direct) coordinates I think it is correct.
I used the same special points convention for band structure as well.

Best wishes,
Andrey

Hello Andrey,

The reason we asked about your extraction script is because you seem to have vertical black strips (i.e. 0 values).
Such discontinuities is a bit strange. It might be worth taking a look at your script to be sure that you are not missing any values.

Also why do you have this white missing information on the top left edge of your picture?

The decays seems okish to me.

Lets hope a denser grid improves your results or that you made a silly mistake in one of your scripts (happens to everyone).

Best,
Samuel

Dear Samuel,
thank you for the answer!

Here is the script:
[code:39h5tznl]

band, band, mode indexes

n1=5
n2=5
n3=1

The order of the loops is:

{q loop {k loop}}

ik 2481 yeilds g=K

the grep call outputs the table of all |g| for all i,j,nu

second grep grabs the line, contaning the desired indexes

epw_elph is an output file

grep -A 28 'ik = 2481 ’ epw_elph.out | grep "$n1 $n2 $n3" > $n1$n2$n3.dat

thus $n1$n2$n3.dat for ik = 2481 contains crystal coordinates of q, i,j,nu indexes

E(k), E(k+q) and omega(nu,q)

just to be sure that everything is collected

l_nu=wc -l $n1$n2$n3\.dat | awk '{ print $1 }'
echo ‘points in g array per (band,band,mode):’ $l_nu

merge the meaningfull data:

cart dat contains the grid_3721 points

transformed to 2pi/a cartesian coordnates

the same way it is done in QE

paste cart.dat $n1$n2$n3.dat | awk ‘{ print $1, $2, $3, $8, $9, $10 }’ > d$n1$n2$n3.dat
[/code:39h5tznl]
(highlighted version is on dropbox paper: [url:39h5tznl]https://paper.dropbox.com/doc/Graphene-elph-9QVfbGljBpzkTLb8i7E1R[/url:39h5tznl])

And here are the results for coarse k=36x36x1.
It looks just a little bit better, but these strange lines-like structures still persist.
[img:39h5tznl]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1508847177705_ugly_g36.png&hmac=Vhrwh8Glkw%2BVICzBYP3K1ni8O9%2FBs%2F%2Bo%2Fo0RLEKBGX4%3D&width=1490[/img:39h5tznl]

[quote="sponce":39h5tznl]Such discontinuities is a bit strange. It might be worth taking a look at your script to be sure that you are not missing any values.
[/quote:39h5tznl]
Yeah, they are the most weird parts of this distributions, not only g=0, but there are some other lines with constant values. I absolutely can’t explain this.

[quote="sponce":39h5tznl]Also why do you have this white missing information on the top left edge of your picture? [/quote:39h5tznl]
That is because of conversion from crystal (direct) to 2pi/a Cartesian coordinates. I generate meshes for calculation in direct coordinates but plot in 2pi/a.
I believe I use the same procedure QE uses for this purpose. |g| distributions in direct coordinates look as awful and E and Omega distributions look as good as in Cartesian (same picture as above for one of the modes (TA), q is in direct coordinates):
[img:39h5tznl]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1508850861321_TA_direct.png&hmac=BloKrlk9%2BwaQ0wAFjW15dwv2bkJh6Dl2jRoN4s1K5%2FY%3D&width=1490[/img:39h5tznl]

Hello,

It does look a bit better (but still the stripes).

I have never looked to much at 2D materials yet but I know that some cutoff might be required. This is not implemented at the moment.

If its not too expansive, I would suggest you to try those coarse grid to see if it improves:
[code:3dpf4cbs]nk1 = 16
nk2 = 16
nk3 = 2
!
nq1 = 16
nq2 = 16
nq3 = 2[/code:3dpf4cbs]

If I recall correctly, somebody in our group did that and it helped him for its 2D materials.
In principle you should not need this for a 2D materials but in practice it might required since there is no 2D truncation in the code.

Hope this works,
Best,
Samuel

Dear Samuel

[quote="sponce":2uznjcn4]If I recall correctly, somebody in our group did that and it helped him for its 2D materials.
In principle you should not need this for a 2D materials but in practice it might required since there is no 2D truncation in the code. [/quote:2uznjcn4]

This is relatively easy to do, I will indeed try it. Can you please specify, how does it work exactly (i.e. what exactly is to be truncated)?

Also one more question, I found this page

http://epw.org.uk/Main/Troubleshooting

One of the question-answer interested me:

[quote:2uznjcn4]My decay.H file shows no spatial decay

Your Wannier functions are probably very extended. When running the nscf calculation to feed wavefunctions to EPW, did you either use the same number of pools as processors, OR turn the wf_collect flag on? If you have a good match between Wannier-interpolated band structure and DFT band structure but still see no decay in decay.H, please contact us. [/quote:2uznjcn4]

Although decays in my calculations seem to be alright, there are wf_collect and pools/processors count mentioned.

On nscf step I have wf_collect=.true. in input file and I run QE in the following manner:
[code:2uznjcn4]
mpirun.sh -np 16 pw.x -npool 16 < c.scf.in > c.scf.out
mpirun.sh -np 16 pw.x -npool 16 < c.nscf.in > c.nscf.out
[/code:2uznjcn4]

Is it as intended, or it should be any other way?

Best wishes,
Andrey

Hello,

In the past you had to do wf_collect=.false. for the nscf step.

However I have implemented the capability of wf_collect=.true. so it should be fine.
You could try wf_collect=.false. in nscf to test. If it leads to slightly different results, please do contact me as it should be exactly the same results !

For the truncation, the dvscf potential might need to be truncated. See for example https://journals.aps.org/prb/abstract/1 … .94.085415

Eventually I would like to implement that but it is not yet done.

Another idea from Carla: you could try the silicon case (should be very cheap). Try to do the same plot as for your graphene. This should work and not give stripes.

Best,
Samuel

Thank you for the link.

[quote="sponce":2jkr50gk]Another idea from Carla: you could try the silicon case (should be very cheap). Try to do the same plot as for your graphene. This should work and not give stripes. [/quote:2jkr50gk]

Do you mean the bulk silicon or silicene?

Best,
Andrey

Bulk silicon or anything simple and 3D.

TL;DR: To obtain adequate |g_ijnu| distribution for the whole BZ, [b:128hunbj]fsthick[/b:128hunbj] must include not only all the E([b:128hunbj]k[/b:128hunbj]), but also E([b:128hunbj]k+q[/b:128hunbj]) of bands you want to build distribution for. In my case [b:128hunbj]fsthick[/b:128hunbj] of 3eV was not enough. Degenerate states need special treatment, since non diagonal electron-phonon matrix elements may be important.

Hi,

after several attempts to find the source of the problem I found that my data were affected by:

  1. Too small fsthick. This was the main troublemaker in my case.
http://epw.org.uk/Documentation/Inputs#fsthick

Looks like it limits not only [b:128hunbj]k[/b:128hunbj] bands considered, but also of [b:128hunbj]k+q[/b:128hunbj].
I can’t completely wrap my head around it, since I expected, that if [b:128hunbj]k[/b:128hunbj]
band is into the calculation, corresponding [b:128hunbj]k+q[/b:128hunbj] should also be, seems like it is not.
Still, it explains the black lines on the plot completely: the setup didn’t allowed the code to work
with scatterings to bands outside of fsthick:)

The way out in this case is to start with fsthick which includes all (in my case 5) bands,
obtain the results and slowly start to reduce it step by step, till black lines appear.

here is an example:
[img:128hunbj]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1509632741299_3vs30.png&hmac=ja%2FCJU5dtGS4TPbD20RfFdHF%2FmCq9l5DoBLyTIw14Vw%3D&width=1490[/img:128hunbj]
I think it speak for itself.

  1. My Wannierization was not good enough. Although the decay looked reasonable, I had
    unphysical spreads and centers for some MLWFs. Well, seems like sometimes good band structure
    is not enough.

  2. Averaging in generate point. Well, this is a though one. I still don’t understand it completely.
    We have a twofold degeneracy in k = K for graphene, a famous Dirac point, that means that we have four |g ijnu| for every mode. To illustrate this, here are unavenged |g ijnu| for all acoustic modes:
    [img:128hunbj]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1509633917716_nonavrgkk.png&hmac=GpiYJS4p45mKdzk3coC6tZcI2HYjXOqu1rbIkRo1bzM%3D&width=1490[/img:128hunbj]

And here are averaged ones (sum of contributions from one column divided by 4):

[img:128hunbj]https://paper.dropbox.com/ep/redirect/image?url=https%3A%2F%2Fd2mxuefqeaa7sj.cloudfront.net%2Fs_AEEBB7B0C6D6C65DA3EEAC3D28858A39DC7FAC2AE2F1017B6A59111D8FD68857_1509634471815_avrgkk.png&hmac=7DF8T4j2kS6RkU96fXPiVqACvP%2F80zZ03jFMXQ3weCs%3D&width=1490[/img:128hunbj]

It is still not 100% as in references I’ve given in first post, but, so far so good. I am mostly worried about absolute values: mine a 2-3 times smaller, that may not give the correct values of deformation potential. At the same time, there are still ways of increasing the accuracy.

I haven’t tested the proposed truncation technique yet, since it turned out to be a little more computational demanding, than I assumed initially. Maybe this will improve the results.

p.s.
I see that links to figures, that I posted previously are no more valid, in case somebody want to see everything, check out the "paper" file:

https://paper.dropbox.com/doc/Graphene- ... kTLb8i7E1R

Hello Andreyl,

Thank you for sharing the solution !

The EPW code was not initially intended to print the electron-phonon matrix element g.

If you care about the self-energy, then k+q states that are energetically far from the state you are considering (here around Fermi level) do not matter much (hence the fstick thing to decrease computational load).

It look much better now indeed.

Best,
Samuel

Dear experts,
I am occurring in the same problem more or less for a monolayer of MoS2
I tried to use
k = 21 21 7 and q = 7 7 1
and
k = 16 16 2 and q = 16 16 2
but the decay files give in both cases bad behaviour when I plot [b:b1j3qay6]decay.epmat_wanep[/b:b1j3qay6] vs Rp (i.e. 2nd and 3rd column)

I reported my results and input files here
[url:b1j3qay6]https://paper.dropbox.com/doc/DECAY-COMPARISON–AbhHkS6boK8gxJS1ueBVnn~jAQ-dAvIjE8XtsbMWJQDpvmyK[/url:b1j3qay6]

This bad behaviour obviously translates into a very bad behaviour of the g(k,q) (shortly reported here [url:b1j3qay6]https://paper.dropbox.com/doc/ML-MoS2-EPW5.1-EFVB–AbggM14PjJG9GQ9zb_h8d6eBAQ-LDJdFth7UUfYm8f9E0zw0[/url:b1j3qay6])

Any help is very appreciated

Thank you in advance

Sara Fiore
PhD student ETH Zurich