Hi Danny,
Thanks very much for the quick reply! It helps a lot! I just run a calculation of the GaAs with V_Ga 3-.
Yes, VASP indeed gives the potential of a negative charge instead of the potential for a conventional positive test charge, and I also see that you have added a negative sign on the model charge potential to match with that.
Yeah, everything makes sense to me now.
The negative sign is to reverse that potential to the conventional potential.
-(dft_dff - V_R) = C
In the figure generated by PyCDT code, we plot dft_diff, V_R - C, and dft_diff + C
Thanks a lot for your help! I will keep learning your codes! Thanks!
Sincerely,
Shuaishuai