shankar1729 / jdftx

JDFTx: software for joint density functional theory
http://jdftx.org
79 stars 49 forks source link

Problem with total and orbital projected density of states #290

Closed gmarci closed 11 months ago

gmarci commented 11 months ago

Dear Shankar!

I ran into some problem with DOS and PDOS calculations in case of a single copper atom in vacuum.

I attached the input and output files and also a figure about the DOS. I also tried the calculation without the Gaussian broadening (with default Esigma) and got similar results.

Can you give me a hint, what is wrong with my computations?

Thank you in advance!

Best, Márton

input.txt out.txt dos_default_esgima.txt out_default_esgima.txt input_default_esgima.txt dos.txt DOS

shankar1729 commented 11 months ago

Hi Márton,

  1. The orthornormal orbitals are not complete, so the wavefunctions have contributions from the overall plane wave basis that are not in the orbitals. So you do not expect the projected DOS to add up to the total. (This is different from an atomic-orbital basis, where this will be artificially true.)
  2. The "issue" is that the s and p orbitals you selected are the semi-core orbitals within the pseudopotential, rather than the valence ones. See the pseudopotential info pasted below: the first s and p orbitals correspond to 3s and 3p, which are much lower in energy than 3d. You probably wanted to use the "2s" and "2p" pseudo-orbitals in your dos specification, which would have corresponded to the second s and p, i.e. 4s and 4p real orbitals in this case.
    |300>  occupation: 2  eigenvalue: -5.020764
    |310>  occupation: 6  eigenvalue: -3.445588
    |320>  occupation: 8  eigenvalue: -0.925168
    |400>  occupation: 2  eigenvalue: -0.567638
    |410>  occupation: 0  eigenvalue: -0.326154

Your DOS may meet your expectations a bit closer on both points after switching to these orbitals. The ortho-orbitals still won't add up to the total exactly, but they will be quite a bit closer in this energy range where you expect these orbitals to dominate for the atom.

Best, Shankar

gmarci commented 11 months ago

Dear Shankar!

Sorry for the late response! Thank you very much for your detailed explanation! I managed to compute the DOS and PDOS of the copper atom which are now comparable with the results provided by other programs (like GPAW).

Best, Márton