A question regarding dvscf and pp.py

General discussion around the EPW software

Moderator: stiwari

Post Reply
Vahid
Posts: 101
Joined: Fri Apr 08, 2016 11:02 pm
Affiliation:

A question regarding dvscf and pp.py

Post by Vahid »

Dear EPW Users,

After doing the phonon calculation, QE prints many dvscf files all of which have no content except for dvscf1. So I am assuming that all dvscf values are stored in this file for all perturbations and q points and they are stored in real space (not reciprocal space). After running the pp.py code provided in the EPW phonon folder, this code copies dvscf1 to dvscf_q1, dvscf_q2 ... but these are copies of the same file. Beyond a formatting convenience, is there a reason for making so many copies of the same file?

Thank you,

Vahid

Vahid Askarpour
Department of Physics and Atmospheric Science
Dalhousie University
Halifax, NS Canada
sponce
Site Admin
Posts: 616
Joined: Wed Jan 13, 2016 7:25 pm
Affiliation: EPFL

Re: A question regarding dvscf and pp.py

Post by sponce »

Dear Vahid,

QE should print a dvscf file for each q-point. Those are binary files so you should not be able to see their content but they should have non-zero size.
The pp.py script do not copy the same file over. All the files should be different for each q-points.

You should also have one .dyn file for each q-point.

Make sure that you have put

Code: Select all

fildvscf = 'dvscf',

in your ph input file as it is what generate the files.

Best,

Samuel
Prof. Samuel Poncé
Chercheur qualifié F.R.S.-FNRS / Professeur UCLouvain
Institute of Condensed Matter and Nanosciences
UCLouvain, Belgium
Web: https://www.samuelponce.com
Gargee Bhattacharyya

Re: A question regarding dvscf and pp.py

Post by Gargee Bhattacharyya »

I am facing error while runening the scrpit python pp.py .. I am calculating superconductivity of 2 D material. Lattice parameter of my sheet is a=b=5.06 angstrom. I am using irreducible q point 6 6 1 and getting error as follows:

Enter the number of irreducible q-points
6
6
1
rm: cannot remove `_ph0/B-alpha.q_2/*wfc*': No such file or directory
rm: cannot remove `_ph0/B-alpha.q_3/*wfc*': No such file or directory
rm: cannot remove `_ph0/B-alpha.q_4/*wfc*': No such file or directory
rm: cannot remove `_ph0/B-alpha.q_5/*wfc*': No such file or directory
rm: cannot remove `_ph0/B-alpha.q_6/*wfc*': No such file or directory


Can anyone please help me in this regard ? How to give q points ?

Gargee Bhattacharyya
PhD Student
IIT Indore
Vahid
Posts: 101
Joined: Fri Apr 08, 2016 11:02 pm
Affiliation:

Re: A question regarding dvscf and pp.py

Post by Vahid »

The number of irreducible q points is the number of phonons for which .dyn files are calculated. The list of these points is printed at the beginning of the PHONON output.
Or simply count how many .dyn files you have.

Vahid
Gargee Bhattacharyya

Re: A question regarding dvscf and pp.py

Post by Gargee Bhattacharyya »

Thank You for help.

For EPW calculation , I need to run one nscf calculation. How to give K-points in nscf.in file ?
Vahid
Posts: 101
Joined: Fri Apr 08, 2016 11:02 pm
Affiliation:

Re: A question regarding dvscf and pp.py

Post by Vahid »

In one of the earlier versions of EPW, the following Octave file is provided for generating the nscf k grid. Just run it with Octave and the file klist.dat will contain the k points. Note that this is for a 10x10x10 grid. Change the nk's as needed.

Code: Select all

nk1 = 10;
nk2 = 10;
nk3 = 10;
fid = fopen('klist.dat','w');
for i1=0:nk1-1;
 for i2=0:nk2-1;
  for i3=0:nk3-1;
    kvec = [i1/nk1 i2/nk2 i3/nk3 1/(nk1*nk2*nk3)];
    fprintf(fid,'%15.13f %15.13f %15.13f %15.13f\n',kvec');
  end;
 end;
end;
fclose(fid);


Vahid
Gargee Bhattacharyya

Re: A question regarding dvscf and pp.py

Post by Gargee Bhattacharyya »

Dear Sir ,
After nscf calculation I want to run epw calculation. I have used nscf with irreducible k points as given below which was generated in the OUTCAR file (also presented in IBZKPT file). My question is what should I use as my input for dis_froz_max , proj (:) ? I am doing this calculation for 2D structure. Should I use the nk values same as the k points as I used for optimization in vasp ? What should I use for nq ? and Nkf and Nqf values ?

nk1 = 6
nk2 = 6
nk3 = 6

nq1 = 6
nq2 = 6
nq3 = 6

mp_mesh_k = .true.

nkf1 = 20
nkf2 = 20
nkf3 = 20

nqf1 = 20
nqf2 = 20
nqf3 = 20

At the last portion of epw.in file How to give K points ? I have seen the example of MgB2, SiC ... how they gave 28 or 16 cartesian k points


nscf.in file K POINTS--- (as generated in OUTCAR file)

K_POINTS cartesian
248
0.000000 0.000000 0.000000 1.000000
-0.009789 -0.005744 0.000000 2.000000
-0.019578 -0.011489 0.000000 2.000000
-0.029367 -0.017233 0.000000 2.000000
-0.039155 -0.022978 0.000000 2.000000
-0.048944 -0.028722 0.000000 2.000000
-0.058733 -0.034467 0.000000 2.000000
-0.068522 -0.040211 0.000000 2.000000
0.002915 -0.010305 0.000000 2.000000
-0.006874 -0.016050 0.000000 2.000000
-0.016663 -0.021794 0.000000 2.000000
-0.026452 -0.027538 0.000000 2.000000
-0.036241 -0.033283 0.000000 2.000000
-0.046030 -0.039027 0.000000 2.000000
-0.055819 -0.044772 0.000000 2.000000
-0.065608 -0.050516 0.000000 2.000000
0.071437 0.029906 0.000000 2.000000
0.061648 0.024162 0.000000 2.000000
0.051859 0.018417 0.000000 2.000000
0.042070 0.012673 0.000000 2.000000
0.032281 0.006928 0.000000 2.000000
0.022492 0.001184 0.000000 2.000000
0.012703 -0.004561 0.000000 2.000000
0.005829 -0.020610 0.000000 2.000000
-0.003960 -0.026355 0.000000 2.000000
-0.013749 -0.032099 0.000000 2.000000
-0.023537 -0.037844 0.000000 2.000000
-0.033326 -0.043588 0.000000 2.000000
-0.043115 -0.049333 0.000000 2.000000
-0.052904 -0.055077 0.000000 2.000000
-0.062693 -0.060821 0.000000 2.000000
0.074351 0.019601 0.000000 2.000000
0.064562 0.013857 0.000000 2.000000
0.054774 0.008112 0.000000 2.000000
0.044985 0.002368 0.000000 2.000000
0.035196 -0.003377 0.000000 2.000000
0.025407 -0.009121 0.000000 2.000000
0.015618 -0.014866 0.000000 2.000000
0.008744 -0.030915 0.000000 2.000000
-0.001045 -0.036660 0.000000 2.000000
-0.010834 -0.042404 0.000000 2.000000
-0.020623 -0.048149 0.000000 2.000000
-0.030412 -0.053893 0.000000 2.000000
-0.040201 -0.059638 0.000000 2.000000
-0.049990 -0.065382 0.000000 2.000000
-0.059778 -0.071127 0.000000 2.000000
0.077266 0.009296 0.000000 2.000000
0.067477 0.003551 0.000000 2.000000
0.057688 -0.002193 0.000000 2.000000
0.047899 -0.007937 0.000000 2.000000
0.038110 -0.013682 0.000000 2.000000
0.028321 -0.019426 0.000000 2.000000
0.018533 -0.025171 0.000000 2.000000
0.011658 -0.041220 0.000000 2.000000
0.001869 -0.046965 0.000000 2.000000
-0.007919 -0.052709 0.000000 2.000000
-0.017708 -0.058454 0.000000 2.000000
-0.027497 -0.064198 0.000000 2.000000
-0.037286 -0.069943 0.000000 2.000000
-0.047075 -0.075687 0.000000 2.000000
-0.056864 -0.081432 0.000000 2.000000
0.080180 -0.001009 0.000000 2.000000
0.070392 -0.006754 0.000000 2.000000
0.060603 -0.012498 0.000000 2.000000
0.050814 -0.018243 0.000000 2.000000
0.041025 -0.023987 0.000000 2.000000
0.031236 -0.029731 0.000000 2.000000
0.021447 -0.035476 0.000000 2.000000
0.014573 -0.051525 0.000000 2.000000
0.004784 -0.057270 0.000000 2.000000
-0.005005 -0.063014 0.000000 2.000000
-0.014794 -0.068759 0.000000 2.000000
-0.024583 -0.074503 0.000000 2.000000
-0.034372 -0.080248 0.000000 2.000000
-0.044160 -0.085992 0.000000 2.000000
-0.053949 -0.091737 0.000000 2.000000
0.083095 -0.011314 0.000000 2.000000
0.073306 -0.017059 0.000000 2.000000
0.063517 -0.022803 0.000000 2.000000
0.053728 -0.028548 0.000000 2.000000
0.043939 -0.034292 0.000000 2.000000
0.034151 -0.040037 0.000000 2.000000
0.024362 -0.045781 0.000000 2.000000
0.017487 -0.061831 0.000000 2.000000
0.007699 -0.067575 0.000000 2.000000
-0.002090 -0.073320 0.000000 2.000000
-0.011879 -0.079064 0.000000 2.000000
-0.021668 -0.084808 0.000000 2.000000
-0.031457 -0.090553 0.000000 2.000000
-0.041246 -0.096297 0.000000 2.000000
-0.051035 -0.102042 0.000000 2.000000
0.086010 -0.021619 0.000000 2.000000
0.076221 -0.027364 0.000000 2.000000
0.066432 -0.033108 0.000000 2.000000
0.056643 -0.038853 0.000000 2.000000
0.046854 -0.044597 0.000000 2.000000
0.037065 -0.050342 0.000000 2.000000
0.027276 -0.056086 0.000000 2.000000
0.020402 -0.072136 0.000000 2.000000
0.010613 -0.077880 0.000000 2.000000
0.000824 -0.083625 0.000000 2.000000
-0.008965 -0.089369 0.000000 2.000000
-0.018753 -0.095114 0.000000 2.000000
-0.028542 -0.100858 0.000000 2.000000
-0.038331 -0.106602 0.000000 2.000000
-0.048120 -0.112347 0.000000 2.000000
0.088924 -0.031924 0.000000 2.000000
0.079135 -0.037669 0.000000 2.000000
0.069346 -0.043413 0.000000 2.000000
0.059558 -0.049158 0.000000 2.000000
0.049769 -0.054902 0.000000 2.000000
0.039980 -0.060647 0.000000 2.000000
0.030191 -0.066391 0.000000 2.000000
0.023317 -0.082441 0.000000 2.000000
0.013528 -0.088185 0.000000 2.000000
0.003739 -0.093930 0.000000 2.000000
-0.006050 -0.099674 0.000000 2.000000
-0.015839 -0.105419 0.000000 2.000000
-0.025628 -0.111163 0.000000 2.000000
-0.035417 -0.116908 0.000000 2.000000
-0.045206 -0.122652 0.000000 2.000000
0.091839 -0.042230 0.000000 2.000000
0.082050 -0.047974 0.000000 2.000000
0.072261 -0.053718 0.000000 2.000000
0.062472 -0.059463 0.000000 2.000000
0.052683 -0.065207 0.000000 2.000000
0.042894 -0.070952 0.000000 2.000000
0.033105 -0.076696 0.000000 2.000000
0.026231 -0.092746 0.000000 2.000000
0.016442 -0.098490 0.000000 2.000000
0.006653 -0.104235 0.000000 2.000000
-0.003135 -0.109979 0.000000 2.000000
-0.012924 -0.115724 0.000000 2.000000
-0.022713 -0.121468 0.000000 2.000000
-0.032502 -0.127213 0.000000 2.000000
-0.042291 -0.132957 0.000000 2.000000
0.094753 -0.052535 0.000000 2.000000
0.084964 -0.058279 0.000000 2.000000
0.075176 -0.064024 0.000000 2.000000
0.065387 -0.069768 0.000000 2.000000
0.055598 -0.075513 0.000000 2.000000
0.045809 -0.081257 0.000000 2.000000
0.036020 -0.087001 0.000000 2.000000
0.029146 -0.103051 0.000000 2.000000
0.019357 -0.108795 0.000000 2.000000
0.009568 -0.114540 0.000000 2.000000
-0.000221 -0.120284 0.000000 2.000000
-0.010010 -0.126029 0.000000 2.000000
-0.019799 -0.131773 0.000000 2.000000
-0.029588 -0.137518 0.000000 2.000000
-0.039376 -0.143262 0.000000 2.000000
0.097668 -0.062840 0.000000 2.000000
0.087879 -0.068584 0.000000 2.000000
0.078090 -0.074329 0.000000 2.000000
0.068301 -0.080073 0.000000 2.000000
0.058512 -0.085818 0.000000 2.000000
0.048723 -0.091562 0.000000 2.000000
0.038935 -0.097307 0.000000 2.000000
0.032060 -0.113356 0.000000 2.000000
0.022271 -0.119101 0.000000 2.000000
0.012483 -0.124845 0.000000 2.000000
0.002694 -0.130589 0.000000 2.000000
-0.007095 -0.136334 0.000000 2.000000
-0.016884 -0.142078 0.000000 2.000000
-0.026673 -0.147823 0.000000 2.000000
-0.036462 -0.153567 0.000000 2.000000
0.100582 -0.073145 0.000000 2.000000
0.090794 -0.078889 0.000000 2.000000
0.081005 -0.084634 0.000000 2.000000
0.071216 -0.090378 0.000000 2.000000
0.061427 -0.096123 0.000000 2.000000
0.051638 -0.101867 0.000000 2.000000
0.041849 -0.107612 0.000000 2.000000
0.034975 -0.123661 0.000000 2.000000
0.025186 -0.129406 0.000000 2.000000
0.015397 -0.135150 0.000000 2.000000
0.005608 -0.140895 0.000000 2.000000
-0.004181 -0.146639 0.000000 2.000000
-0.013969 -0.152384 0.000000 2.000000
-0.023758 -0.158128 0.000000 2.000000
-0.033547 -0.163872 0.000000 2.000000
0.103497 -0.083450 0.000000 2.000000
0.093708 -0.089194 0.000000 2.000000
0.083919 -0.094939 0.000000 2.000000
0.074130 -0.100683 0.000000 2.000000
0.064342 -0.106428 0.000000 2.000000
0.054553 -0.112172 0.000000 2.000000
0.044764 -0.117917 0.000000 2.000000
0.037889 -0.133966 0.000000 2.000000
0.028101 -0.139711 0.000000 2.000000
0.018312 -0.145455 0.000000 2.000000
0.008523 -0.151200 0.000000 2.000000
-0.001266 -0.156944 0.000000 2.000000
-0.011055 -0.162689 0.000000 2.000000
-0.020844 -0.168433 0.000000 2.000000
-0.030633 -0.174178 0.000000 2.000000
0.106412 -0.093755 0.000000 2.000000
0.096623 -0.099500 0.000000 2.000000
0.086834 -0.105244 0.000000 2.000000
0.077045 -0.110988 0.000000 2.000000
0.067256 -0.116733 0.000000 2.000000
0.057467 -0.122477 0.000000 2.000000
0.047678 -0.128222 0.000000 2.000000
0.040804 -0.144271 0.000000 2.000000
0.031015 -0.150016 0.000000 2.000000
0.021226 -0.155760 0.000000 2.000000
0.011437 -0.161505 0.000000 2.000000
0.001649 -0.167249 0.000000 2.000000
-0.008140 -0.172994 0.000000 2.000000
-0.017929 -0.178738 0.000000 2.000000
-0.027718 -0.184483 0.000000 2.000000
0.109326 -0.104060 0.000000 2.000000
0.099537 -0.109805 0.000000 2.000000
0.089748 -0.115549 0.000000 2.000000
0.079960 -0.121294 0.000000 2.000000
0.070171 -0.127038 0.000000 2.000000
0.060382 -0.132782 0.000000 2.000000
0.050593 -0.138527 0.000000 2.000000
0.043719 -0.154576 0.000000 2.000000
0.033930 -0.160321 0.000000 2.000000
0.024141 -0.166065 0.000000 2.000000
0.014352 -0.171810 0.000000 2.000000
0.004563 -0.177554 0.000000 2.000000
-0.005226 -0.183299 0.000000 2.000000
-0.015015 -0.189043 0.000000 2.000000
-0.024804 -0.194788 0.000000 2.000000
0.112241 -0.114365 0.000000 2.000000
0.102452 -0.120110 0.000000 2.000000
0.092663 -0.125854 0.000000 2.000000
0.082874 -0.131599 0.000000 2.000000
0.073085 -0.137343 0.000000 2.000000
0.063296 -0.143088 0.000000 2.000000
0.053507 -0.148832 0.000000 2.000000
0.046633 -0.164882 0.000000 2.000000
0.036844 -0.170626 0.000000 2.000000
0.027055 -0.176371 0.000000 2.000000
0.017267 -0.182115 0.000000 2.000000
0.007478 -0.187859 0.000000 2.000000
-0.002311 -0.193604 0.000000 2.000000
-0.012100 -0.199348 0.000000 2.000000
-0.021889 -0.205093 0.000000 2.000000
0.115155 -0.124670 0.000000 2.000000
0.105366 -0.130415 0.000000 2.000000
0.095578 -0.136159 0.000000 2.000000
0.085789 -0.141904 0.000000 2.000000
0.076000 -0.147648 0.000000 2.000000
0.066211 -0.153393 0.000000 2.000000
0.056422 -0.159137 0.000000 2.000000
carla.verdi
Posts: 155
Joined: Thu Jan 14, 2016 10:52 am
Affiliation:

Re: A question regarding dvscf and pp.py

Post by carla.verdi »

Dear Gargee,

A few points in response to your questions:

- Please note that before running epw, the nscf calculation needs to be run using a uniform unshifted grid (crystal coordinates between 0 and 1), as you can see in the examples.

- To find out what you need for dis_froz_max , proj (:) you need to familiarize yourself with the wannierization process. The Wannier website has a very useful user guide and tutorial guide, see http://wannier.org/user_guide.html

- nq1/nq2/nq3 are the values of the coarse uniform grid used for the phonon calculation, nk1/nk2/nk3 are the values of the coarse uniform grid used for the electron (i.e. nscf) calculation

- nkf/nqf determine your arbitrary fine grid for the interpolation: it is your choice, and it will determine the convergence of the desired properties.

- In the last part of epw.in you need the coordinates of the irreducible q points calculated by the phonon code.

Best
Carla
Gargee Bhattacharyya

Re: A question regarding dvscf and pp.py

Post by Gargee Bhattacharyya »

Thank You very much
Gargee Bhattacharyya

Re: A question regarding dvscf and pp.py

Post by Gargee Bhattacharyya »

Sir ,
I have completed nscf calculation and used the grid generated from OUTCAR after optimized the structure. But I have used Cartesian . Is it okay ? The program has run successfully.
Post Reply