Negative value of superconducting gap

Dear EPW developers and Users,

After successfully finishing the phonon, scf and nscf calculations I am trying to calculate superconducting properties for my 2D system.
I notice that the Min. value of superconducting Gap is negative after all the cycles with different temperatures (8K, 12K, 17K and 20K I tried) with Estimated Tc = 14.91 K. The following is from my epw.out file:

Estimated Allen-Dynes Tc =    14.910578 K for muc =    0.05000

     Estimated w_log in Allen-Dynes Tc =    12.156787 meV

     Estimated BCS superconducting gap =     2.261414 meV

     Estimated Tc from machine learning model =    17.992366 K


     WARNING WARNING WARNING

     The code may crash since tempsmax =   20.000 K is larger than Allen-Dynes Tc =    14.911 K

     temp(  1) =      8.00000 K

     Solve anisotropic Eliashberg equations on imaginary-axis

     Total number of frequency points nsiw(     1) =     23
     Cutoff frequency wscut =     0.1018

The followings are the Min/Max values of superconducting gaps with different temps:
temp=8K

Convergence was reached in nsiter =     25

     Chemical potential (itemp =   1) =    -1.8116930967E+00 eV

     Temp (itemp =   1) =    8.000 K  Free energy =    -0.009477 meV

     Min. / Max. values of superconducting gap =   [color=#FF0000] -0.340667[/color]    4.740647 meV
     iaxis_imag   :     10.70s CPU     10.78s WALL (       1 calls)


     Pade approximant of anisotropic Eliashberg equations from imaginary-axis to real-axis
     Cutoff frequency wscut =     0.1000

        pade    Re[znorm]   Re[delta] [meV]
         20   1.999132E+00   3.304228E+00

     Convergence was reached for N =     20 Pade approximants

     Min. / Max. values of superconducting gap =[color=#FF0000]    -0.353636 [/color]   5.027398 meV
     raxis_pade   :      1.13s CPU      3.37s WALL (       1 calls)

temp = 12K

 Convergence was reached in nsiter =     15

     Chemical potential (itemp =   2) =    -1.8116930967E+00 eV

     Temp (itemp =   2) =   12.000 K  Free energy =    -0.006623 meV

     Min. / Max. values of superconducting gap =  [color=#FF0000]  -0.335653 [/color]   4.569238 meV
     iaxis_imag   :     13.65s CPU     13.76s WALL (       2 calls)


     Pade approximant of anisotropic Eliashberg equations from imaginary-axis to real-axis
     Cutoff frequency wscut =     0.1000

        pade    Re[znorm]   Re[delta] [meV]
         14   2.068469E+00   3.184121E+00

     Convergence was reached for N =     14 Pade approximants

     Min. / Max. values of superconducting gap =   [color=#FF0000] -0.333999[/color]    4.926744 meV
     raxis_pade   :      2.31s CPU      6.50s WALL (       2 calls)

temp = 17K

Convergence was reached in nsiter =     29

     Chemical potential (itemp =   3) =    -1.8116930967E+00 eV

     Temp (itemp =   3) =   17.000 K  Free energy =    -0.002380 meV

     Min. / Max. values of superconducting gap =    [color=#FF0000]-0.290275 [/color]   3.723432 meV
     iaxis_imag   :     16.98s CPU     17.13s WALL (       3 calls)


     Pade approximant of anisotropic Eliashberg equations from imaginary-axis to real-axis
     Cutoff frequency wscut =     0.1000

        pade    Re[znorm]   Re[delta] [meV]
         10   2.152384E+00   2.402631E+00

     Convergence was reached for N =     10 Pade approximants

     Min. / Max. values of superconducting gap =   [color=#FF0000] -0.332317 [/color]   5.359331 meV
     raxis_pade   :      3.47s CPU      9.73s WALL (       3 calls)

temp = 20K

Convergence was reached in nsiter =     47

     Chemical potential (itemp =   4) =    -1.8116930967E+00 eV

     Temp (itemp =   4) =   20.000 K  Free energy =    -0.000623 meV

     Min. / Max. values of superconducting gap =    [color=#FF0000]-0.224141[/color]    2.739538 meV
     iaxis_imag   :     20.75s CPU     20.94s WALL (       4 calls)


     Pade approximant of anisotropic Eliashberg equations from imaginary-axis to real-axis
     Cutoff frequency wscut =     0.1000

        pade    Re[znorm]   Re[delta] [meV]
          8   2.308737E+00   1.123975E+00

     Convergence was reached for N =      8 Pade approximants

     Min. / Max. values of superconducting gap =    [color=#FF0000]0.224891[/color]  3.098743 meV

The following is my epw input file:

&inputepw
  prefix      = 'nsms',
  outdir      = './out/'

  ep_coupling = .true.
  elph        = .true.
  epbwrite    = .true.
  epbread     = .false.

  epwwrite = .true.
  epwread  = .false.

  !etf_mem     =  1 

  nbndsub     =  17,
  !nbndskip = 0
  bands_skipped = 'exclude_bands = 1:12,30,31'

  wannierize  = .false.
  num_iter    = 500
  dis_froz_max= 0.9
  dis_froz_min= -7.5

  !wdata(1)    = 'exclude_bands=30,31'
  wdata(1)   = 'dis_mix_ratio   = 0.5'
  wdata(2)   = 'dis_num_iter    = 2000'
  wdata(3)    = 'bands_plot : true'
  wdata(4)    = 'bands_num_points : 300'
  wdata(5)    = 'bands_plot_format : xmgrace gnuplot'
  wdata(6)    = 'begin kpoint_path'
  wdata(7)    = 'M 0.5 0.0 0.0 K 0.3333 0.3333 0.0'
  wdata(8)    = 'K 0.3333 0.3333 0.0 G 0.0 0.0 0.0'
  wdata(9)    = 'G 0.0 0.0 0.0 M 0.5 0.0 0.0'
  wdata(10)    = 'end kpoint_path'
  

  
  iverbosity  = 2

  eps_acustic = 0.1    ! Lowest boundary for the phonon frequency 
  ephwrite    = .true. ! Writes .ephmat files used when Eliasberg = .true.

  nsmear      = 1
  delta_smear = 0.01 ! eV 0.04

  degaussq     = 0.5 ! meV
  nqstep       = 500

  eliashberg  = .true.

  laniso = .true.
  limag = .true.
  lpade = .true.

  !lifc = .true.

  fermi_plot = .true.

  conv_thr_iaxis = 1.0d-4


  !nstemp   = 1     ! Nr. of temps
  !temps    = 15.00 ! K  provide list of temperetures OR (nstemp and temps = tempsmin  tempsmax for even space mode)

  temps(1)  = 8
  temps(2)  = 12
  temps(3)  = 17
  temps(4) = 20
  !temps(5) = 6

  !max_memlt = 5  !GB
  !vme=.false. 

  nsiter   = 500
  [color=#FF0000]degaussw    = 0.04 ! eV ~  1/4 of fsthick
  wscut = 0.5   ! eV 10 times of  Upper limit over frequency integration/summation in the Elisashberg eq(1 cm-1 ~ 1/8000 eV)
  fsthick     = 0.18  ! eV ~ 4 times the maximum phonon frequency 
  muc     = 0.05[/color]

  dvscf_dir   = '../phonon_angs/save'
  
  !system_2d = .true.

  nk1         = 20
  nk2         = 20
  nk3         = 1

  nq1         = 4
  nq2         = 4
  nq3         = 1

  mp_mesh_k = .true.
  nkf1 = 60
  nkf2 = 60
  nkf3 = 1

  nqf1 = 60
  nqf2 = 60
  nqf3 = 1
 /

The Wannier projected bands are in good agreement with the DFT band structure. And I selected the values according to a previous post (https://forum.epw-code.org/t/how-to-set-fsthick-and/878/1) which I also mentioned in the epw input file. The maximum frequency in the phonon dispersion is around 380 cm-1. So accordingly I set fsthick and wscut.

Also When I plot Superconducting gap along the imaginary axis from the file “nsms.imag aniso 008.00”, I see that the gap value goes in the negative region. I am attaching the figure here.


Could someone please help me out why I am getting the negative Min. superconducting gap and this negative region delta?

Sincerely,
Shubham
IIT Kharagpur, India

Hi Shubham,

The negative value of superconducting gap is not physical. However, we do not restrict the calculation based on the -/+ value of the superconducting gap, any numerical value is possible in the calculation. If the negative value is too small, that can the a numerical error.

I recommend you to do some convergence tests based on your fsthick, fine k/q meshes, and wscut and make sure that the calculation is converged wrt these parameters.

Happy EPWing,
Hari

Thank You Hari,

Could you please tell me which quantities I check for the convergence for (1) fsthick (2) k/q point and (3) wscut? Say, in scf calculation we can check the ground state energy but what should I check for the above flags? Though I checked several tests with respect to fstick/k/q/wscut but the negative value of SC gap persists.
I checked for (1) k/q 32 32 1/32 32 1 upto 240 240 1 / 120 120 1
(2) fsthick: 2 to 0.4
(3) wscut = 0.4 to 1.0 ! eV 10 times of Upper limit over frequency

What I found that with very fine k/q mesh the lower gap in “prefix.imag_aniso_012.00” file shifts below the 0.0 value. Does it mean that the system does not show a two-gap nature?

Thank you

Hi Shubham,

I would recommend running calculations with different \mu* values starting from \mu*=0 and see at which value the lower gap becomes negative.

Best,
Roxana

Hello Ma’am,

As you can see that I am using muc=0.05, which is already very close to zero. Still I will check with zero and close to zero values and check what you suggest. Though I checked with higher values of muc but the problem persists.

Thank you
Shubham

Hi,

Larger the \mu* value stronger the Coulomb effect and therefore smaller the Tc and gap.

Best,
Roxana

Hello Ma’am,

I checked again my calculations with zero and lower mu*. With zero mu, the “Min Superconducting gap” is also zero but even a small mu value (0.01) the “Min Superconducting gap” becomes negative. Would you like to comment on that please?

Thank you

Hi Shubham,

For your calculations using muc=0.0 and 0.01, what values did you use for parameters such as wscut? Did the “Max Superconducting gap” remain positive when the “Min Superconducting gap” was negative?

Best,
Hitoshi

Hello Sir,

I am using wscut = 0.4 eV which is 10 times of Upper limit over frequency integration. And yes, the “Max Superconducting gap” remain positive when the “Min Superconducting gap” was negative. I am attaching my input again for your consideration.

--
&inputepw
  prefix      = 'nsms',
  outdir      = './out/'

  ep_coupling = .true.
  elph        = .true.
  epbwrite    = .true.
  epbread     = .false.

  epwwrite = .true.
  epwread  = .false.

  !etf_mem     =  1 

  nbndsub     =  17,
  !nbndskip = 0
  bands_skipped = 'exclude_bands = 1:12,30,31'

  wannierize  = .false.
  num_iter    = 500
  dis_froz_max= 4.6
  dis_froz_min= -5.8

  !wdata(1)    = 'exclude_bands=30,31'
  wdata(1)   = 'dis_mix_ratio   = 0.5'
  wdata(2)   = 'dis_num_iter    = 2000'
  wdata(3)    = 'bands_plot : true'
  wdata(4)    = 'bands_num_points : 300'
  wdata(5)    = 'bands_plot_format : xmgrace gnuplot'
  wdata(6)    = 'begin kpoint_path'
  wdata(7)    = 'M 0.5 0.0 0.0 K 0.3333 0.3333 0.0'
  wdata(8)    = 'K 0.3333 0.3333 0.0 G 0.0 0.0 0.0'
  wdata(9)    = 'G 0.0 0.0 0.0 M 0.5 0.0 0.0'
  wdata(10)    = 'end kpoint_path'
  

  
  iverbosity  = 2

  eps_acustic = 0.1    ! Lowest boundary for the phonon frequency 
  ephwrite    = .true. ! Writes .ephmat files used when Eliasberg = .true.

  nsmear      = 1
  delta_smear = 0.01 ! eV 0.04

  degaussq     = 0.15 ! meV
  nqstep       = 500

  eliashberg  = .true.

  laniso = .true.
  limag = .true.
  lpade = .true.

  fermi_plot = .true.

  conv_thr_iaxis = 1.0d-4


  !nstemp   = 1     ! Nr. of temps
  !temps    = 15.00 ! K  provide list of temperetures OR (nstemp and temps = tempsmin  tempsmax for even space mode)

  temps(1)  = 32
  temps(2)  = 17
  temps(3)  = 34
  temps(4) = 27
  temps(5) = 35.5
  temps(6) = 36

  !max_memlt = 5  !GB
  !vme=.false. 

  nsiter   = 500
  degaussw    = 0.04 ! eV ~  1/4 of fsthick
  wscut = 0.4   ! eV 10 times of  Upper limit over frequency integration/summation in the Elisashberg eq(1 cm-1 ~ 1/8000 eV)
  fsthick     = 0.5  ! eV ~ 4 times the maximum phonon frequency 
  muc     = 0.01

  dvscf_dir   = '../ph6/save'
  
  !system_2d = .true.

  nk1         = 16
  nk2         = 16
  nk3         = 1

  nq1         = 4
  nq2         = 4
  nq3         = 1

  mp_mesh_k = .true.
  nkf1 = 120
  nkf2 = 120
  nkf3 = 1

  nqf1 = 60
  nqf2 = 60
  nqf3 = 1
 /

Kindly let me know if anything else I can provide. I’d appreciate the help.

Thank you

Hi simba2828,

Can you please check first if your Wannierization is good to go for further calculations? You can check the fitting of the Wannier bands with the DFT bands, the symmetry of the Wannier functions, the Wannier function spreads, and the decay of the matrix elements in real space.

Thanks!

Gyanu

Dear Sir,

Yes, I checked it and found that the Wannier bands are very well fitted with DFT bands. But the spreads for some of the atoms are large. Attaching the spreads and the Wannier bands. Please check.

 Running Wannier90

     Wannier Function centers (cartesian, alat) and spreads (ang):

     (   0.49925   0.28886   0.98713) :   1.73951
     (   0.53545   0.30514   3.33642) :   2.64991
     (  -0.00461   1.03417   3.25670) :   3.59971
     (  -0.85892   0.16977   2.79665) :   4.87394
     (   0.75361  -0.23561   1.35920) :   9.86762
     (   0.00722   0.56533   0.57935) :   2.71592
     (  -0.03645   0.55981   1.43628) :   2.57573
     (   0.51684  -0.19334   1.32163) :   3.47311
     (  -0.46746   0.29874   0.98754) :   4.32743
     (   0.42678   0.33296   3.27519) :   2.99586
     (   0.01929   0.57143   0.55829) :   2.63779
     (   0.49617  -0.25639   0.59628) :   3.11302
     (  -0.02773   1.18478   2.44713) :   2.85141
     (  -0.07989   0.96564   2.58605) :   4.47229
     (   0.17657   0.67448   1.22342) :  14.09387
     (   0.47358   0.28139   0.98852) :   3.57051
     (   1.01395  -0.52679   2.50908) :   3.37114

Hi simba2828,
Although your Wannier bands fit well with the DFT bands, I see some Wannier functions have a very large spread. Please try to get good Wannier functions with a smaller spread and redo the calculation. This may help.

Thanks!

Gyanu

Hello,
Yes I tried, sometimes I get the minimum spread and sometimes there are large spreads. Even then the negative value of Min Superconducting gap appears. Could you please suggest how can I make them small. It is like a black-box, and if I have to run it again and again it will take forever to get the correct combination. I would like to mention that with muc=0.0 the negative value is not there and it becomes zero, and in that case the spread for some of the Wannier functions are even larger.

With muc= 0.0, the Wannier spreads:

Wannier Function centers (cartesian, alat) and spreads (ang):

     (   0.99576  -0.55942   0.96698) :   4.75716
     (   0.98895   0.53141   0.63876) :   3.36597
     (   0.06603   1.11252   1.00957) :   6.20847
     (   1.19577   0.47692   2.85311) :   6.64885
     (   1.28888   0.94065   1.21157) :  17.10356
     (  -0.02071   0.58370   0.58690) :   2.71064
     (   0.50465   0.29031   2.43178) :   2.96794
     (   0.00196   0.61274   0.54904) :   2.51828
     (  -0.00549   0.67022   1.32574) :   3.28729
     (   0.43038   0.25077   2.60033) :   3.92173
     (   0.89853   0.50733   1.29144) :   3.46119
     (  -0.53499   0.32661   3.27744) :   2.99358
     (   0.53697   0.29608   3.33856) :   2.67764
     (  -0.15729   1.05387   2.68383) :   4.59482
     (   0.07021   0.57738   1.42165) :   4.19832
     (   0.02683   0.77062   3.02112) :   5.61935
     (  -0.42265   0.28234   1.02944) :   6.54702

Do you think, this negative superconducting gap value can affect my electron-phonon coupling strength, a2F and the superconducting Tc?

Also, in an another thread, I mentioned that my phDOS and a2F are not consistent with each other, what does it signify? I am attaching the figure here.

Shubham

Hi,
I think you can try to play with the different projections, coarse k-meshes, and frozen windows to see if you can get good Wannier functions with a smaller spread.
Thanks!

Gyanu