Page 1 of 1

Scripts to get CHGCAR_spin

Posted: Mon Jun 23, 2008 10:07 am
by Jones
Dear Admin,
I have a CHGCAR file from VASP that including total charge density and spin density. And I would like to separate them to get CHGCAR_spin, do you have the script file to do this?
Thank you very much,

Re: Scripts to get CHGCAR_spin

Posted: Tue Jun 24, 2008 2:09 am
by graeme
We do not have a script to do this. In fact, we do a very silly thing each time we want to analyze a spin density file -- delete the first data set (spin up + spin down) in the file, to leave the (spin up - spin down) part. If you ask my student, Wenjie, very nicely, she might write one for you.

Re: Scripts to get CHGCAR_spin

Posted: Tue Jun 24, 2008 3:08 am
by Jones
Thank you for your reply,
Actually, I also did that way, but it is making me go crazy with the system including a large number of atoms
I will contact to Ms. Wenjie, I really need help.

Thanks again,

Re: Scripts to get CHGCAR_spin

Posted: Thu Jun 26, 2008 10:17 pm
by graeme
There is a new script in the vtstscripts to do this; thanks to Andri.

Re: Scripts to get CHGCAR_spin

Posted: Fri Jun 27, 2008 11:48 pm
by andri
I seem to have sent in the script with the wrong lines commented out.
It still works correctly, but is unnecessarily slow. Wenjie, could you
please comment out lines 34 and 37 and uncomment the ones below. Thanks!