Much thanks for your reply.
So if I understand the post correctly, the partial charge density can be calculated using vasp , By setting the EINT parameter, set it to the energy range of the defect , then I can get the partial charge density file----PARCHG . And use this PARCHG file to do the Gaussian fitting ? And I used the xsfconvert (
http://theory.chm.tu-dresden.de/~jk/software.html ) to convert it to xsf file, then use the g_fit.py code for fitting.
I saw that when the fitting is completed, the sigma value printed out in 'bohr', so I am thinking whether I ll need to modify the g_fit code, because my output dimension from vasp are all in angstrom..
from the manual, I thought that sigma might influence the model potential (far from the defect) in the later step ( compare the difference potential with the model potential)..so I am thinking that this might be the reason that I got some weird plot in the step
one more thing , again in the manual , step 1-3, 'calculate the total energy.... save the DFT potential in xsf format' , are they correspond to the LOCPOT (local potential file) from the VASP calculations?
cheers!