-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Band structure calculations and SCF restarts wrong for meta-GGA functionals #1065
Comments
Thanks for reporting. My suspicion is this has to do with the way we handle the kinetic energy density, which right now is not part of the scf state. I should add, that our meta-GGA implementation is not yet as widely tested as the other methods. So if my suspicion is true, try also passing the occupations to compute bands. Regarding the fft size: We use a different algorithm than the other codes,which is less tight. You can always pass a custom |
I just realise Right now one option to get the correct meta-GGA bands is to manually execute https://github.com/JuliaMolSim/DFTK.jl/blob/master/src/postprocess/band_structure.jl#L14-L50 and in https://github.com/JuliaMolSim/DFTK.jl/blob/master/src/postprocess/band_structure.jl#L31 setup the Hamiltonian as τ = DFTK.compute_kinetic_energy_density(basis, scfres.ψ, scfres.occupation)
ham = Hamiltonian(bs_basis; ρ, τ) |
We don't currently have a good way to express "the things that are needed to express the hamiltonian, and that should be mixed during an scf". We will need such an extended API for eg noncollinear spin, hybrid functionals, etc, so we should tackle it in a relatively generic way. |
Thanks a lot! |
Hi,
For NaCl, when using the r2SCAN meta-GGA functional in DFTK.jl, I observe a difference in the band gap at the Γ point between the SCF calculation and the band structure calculation. The band gap at Γ changes from ~
5.83 eV
in the SCF calculation to ~5.16 eV
in the band structure calculation, even though the same converged density and orbitals are used. In Quantum ESPRESSO, the band gaps at Γ are consistent (both are 5.84 eV).Here is how I got these results:
result:
~5.83 eV
Compute bands:
result:
~5.16 eV
This also happens when I do an extra SCF loop after convergence:
result:
~5.16 eV
An unrelated question:
The text was updated successfully, but these errors were encountered: