Skip to content
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

Wave function in real space can't reproduce charge density from CHGCAR #9

Open
QianM-19 opened this issue Apr 24, 2020 · 2 comments
Open

Comments

@QianM-19
Copy link

Hi Qijing,

Thanks for sharing the code with us. My team is recently working on extracting wave functions in real space using your code vaspwfc. And we check the 2-atom GaAs in rho cell. Since the |real part|^2+|imginary part|^2 of the wave function is the charge density, we compared the charge density calculated by the wave function and PARCHG generated by VASP itself for GaAs conduction band minimum. Here's the result we get.

image
charge density calculated by |real part|^2+|imginary part|^2

image
charge density by PARCHG at Gamma point pf conduction band minimum.

Do you know why there's a difference? Also, I can provide sample files if you would like.

Thank you very much again!

Qian

@QijingZheng
Copy link
Owner

Hi

Yes, there is a difference between VASP PARCHG and the charge density calculated by my script.

The reason is that may code only deals with WAVECAR file, which contains only the information of the pseudo-wavefunction. Therefore, the charge density obtained by my code is the pseudo-charge density, which does not include the charge density within the PAW augmentation sphere. On the other hand, if you look into the source code of VASP, e.g. line 1193, pardens.F vasp.5.4.4, you could see that VASP call the DEPLE subroutine, which is defined in line 2748 of us.F and adds the augmentation-density to the pseudo charge density.

Best
Qijing

@QianM-19
Copy link
Author

QianM-19 commented Apr 30, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants