I calculated superconducting properties of a material in EPW 5.4 and 5.1, and there is the same problem I see.
The isotropic results
Electron-phonon coupling strength = 0.8613774
Estimated Allen-Dynes Tc = 17.174912 K for muc = 0.13000
Estimated w_log in Allen-Dynes Tc = 33.076210 meV
Estimated BCS superconducting gap = 2.604834 meV
look quite alright, but when the code solves the anisotropic Eliashberg equations I get negative gap energy for higher temperatures.
For example, up to 7 K everything looks alright. From the outpput file I get:
Min. value of superconducting gap = 0.000000 meV
But at 10 K the situation changes:
Min. value of superconducting gap = -4.879436 meV
As you can see, I get approx. -5 meV gap energy. The gap distribution function also looks very different from the one for lower temperatures.
Could you please tell me if there is something I can check ? My wannier functions are good, and the phonons are stable.
Here is my EPW input without the wannier block:
A little update to the question.
In order to understand the problem better, I computed the EPC projected on the phonon band structure. and there is something I am concerned about.
In the output file(see below) I see that lamda_tr and gamma_tr go negative. I think I have never seen it before. Could you please explain what exactly is the difference between lamda and lamda_tr ? And is it ok to have such negative values ?
Could you please provide the following two plots/data?
The gap distribution function at every temps you have.
Scattered plot of \Delta_nk vs E- EF at every temps you have. This is the plot for example in MgB2, 5th, and 6th column of “MgB2.imag_aniso_gap_FS_15.00” at 15 K temp.
Numerically \Delta can have any values, we do not have any restriction in the code, however, a negative value of \Delta is not physical. I think the \Delta becomes negative if the following term is negative
I did those tests already, and you are absolutely right: mustar 0 solves the problem.
And when I start increasing it, the problem appears again at a value around 0.1(likely less than that).
Unfortunately, results with mustar=0 are hardly suitable for a research, and there must be a reason why lambda(k, k’, n-n’) goes so low.
Is there anything else you could recommend for me to try ?
One thing I am thinking right now is about ‘wscut’. You have used 0.5 eV, can you say how did you pick this value? Is your maximum phonon frequency 205 meV? If yes, wscut = 0.5 eV is very low.
You can do the following,
try increasing wscut (you can get an idea from the MgB2 calculation we have done, where we have used 1 eV which is around 10 times the max. phonon freq.)
Please not that, as you increase temp., the number of frequency grid points (nswi) decreases for a fixed value of wscut.
Your 6K-7K calculations look ok with wscut = 0.5eV. keep nsiw = XX in your input and run at 9 K (XX from your 1st temp, so that it will ignore wscut)
Your advice seems to be working, thanks a lot !
The only thing is that the higher the temperature I set in the calculation the more frequencies I need to make the gap positive.
Is this normal behavior ?
For all my previous materials, I used to just set a certain wscut (a very small one compared to what I need now), and the I just use it for all the temperatures. Is it not the optimal way then ?
The only thing is that the higher the temperature I set in the calculation the more frequencies I need to make the gap positive. Is this normal behavior ?
I think so. At the temperature close to Tc, the gap value will be low and may require a larger wscut.
For all my previous materials, I used to just set a certain wscut (a very small one compared to what I need now), and the I just use it for all the temperatures. Is it not the optimal way then ?
You need to do a convergence test for the wscut for the particular system you are interested in.
Total number of frequency points nsiw( 1) = 550
Cutoff frequency wscut = 4.7690
with phonons not higher in energy than 200 meV.
I am trying such high value because
Total number of frequency points nsiw( 1) = 450
Cutoff frequency wscut = 3.9027
still produces negative gap.
The problem is, the calculations become very slow and I am running out of available time for a job on my cluster. So could you please answer two questions:
Is there a way to run anisotropic Eliashberg calculations with more processors than used for ephmat calculations ? When I try to increase it I get an error.
Can I tune some other parameter that could help with faster wscut convergence ? For example, could denser interpolation grids decrease the necessary wscut value ?
Ans. 1. No, unfortunately.
Ans. 2. Yes, you can tune fine k/q grids. I do not think the denser grids decrease the necessary wscut value.
One thing I noticed is “Cutoff frequency wscut = 4.7690 and 3.9027”. This looks very high to me now. Because of this, your calculation is taking a long time. I already said, try wscut 10 times the maximum phonon frequency at the lowest temp and fix the nsiw same for the larger temps.
Yes, those values are very high indeed, but I am forced to increase wscut otherwise I get negative gap values again.
Is there maybe something else I can try?
Dear Mikhail,
I have encountered the same problem as you. The negative gap energy exits in higher temperatures. Wannier functions are good. Is it feasible to increase the value of “wscut”? Can you tell me how to solve this problem?