I have a question on splitting charge density of PARCHG/CHGCAR file into spin up and spin down part.
As I know the structure of both PARCHG/CHGCAR files are like the following:
1. atomic coordinates (including cell parameter and types of atom, their coordinates)
2. Charge density of up+down
3. Charge density of up-down
4. Spin density of up+down
5. Spin density of up-down
Is it correct?
then, how can I split them into 4 files:
1. Charge density of up spin
2. Charge density of down spin
3. Spin density of up spin
4. Spin density of down spin
The beginning of my PARCHG file is like the following:
-------------------------------------------------------------------------------------------------------------
unknown system
1.00000000000000
20.578751 0.000000 0.000000
0.000000 30.978750 0.000000
0.000000 0.000000 20.578751
Ti O
35 70
Direct
0.408531 0.312639 0.599194
0.403852 0.388833 0.686904
0.586802 0.312340 0.604661
0.497205 0.234602 0.596400
......................................................... ( I omitted)
0.284800 0.524980 0.325835
216 320 216
--------------------------------------------------------------------------------------------------------------
the others are density data which are composed of 10 columns with millions of rows.
P.S. K-point was used with only gamma point 1, 1, 1
I couldn't find any words or lines indicating/separating them.
Then, they should be divided by the number of lines related to the cell parameters.
Considering the cell parameter and the number, 216,320,216 (I don't know what this numbers mean), how many lines does correspond to the charge density of up+down and the others??
plz help me...
Thanks