Page 1 of 1

CHG file

Posted: Wed Oct 13, 2010 6:18 am
by neo
In the CHG file there are lattice parameters than atomic positions and after that there are 10 lines which extends to the end of file. It is written in the manual that they are chagre density multiplied by volume. What each of these lines contains as total charge density can be written in a sinle line. If somebody knows please reply Thanks in advance

CHG file

Posted: Wed Oct 13, 2010 7:58 am
by neo
<span class='smallblacktext'>[ Edited Wed Oct 13 2010, 10:02AM ]</span>

CHG file

Posted: Wed Oct 13, 2010 2:26 pm
by forsdan
I do apologize, but I do not understand your question. Can you please clarify what you mean by "What each of these lines contains as total charge density can be written in a sinle line."?

/Dan
<span class='smallblacktext'>[ Edited Wed Oct 13 2010, 04:28PM ]</span>

CHG file

Posted: Tue Oct 19, 2010 9:33 am
by riche
the numbers written in CHG or CHGCAR are the charge density on each FFT grid. In fact, it is on a single column to be exact. What you need is to write a script having 3 loops, then you may store the charge density in a 3d matrix.