CHG file
Moderators: Global Moderator, Moderator
- neo
- Newbie
- Posts: 17
- Joined: Thu Apr 01, 2010 6:13 am
CHG file
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
Last edited by neo on Wed Oct 13, 2010 6:18 am, edited 1 time in total.
-
- Sr. Member
- Posts: 339
- Joined: Mon Apr 24, 2006 9:07 am
- License Nr.: 173
- Location: Gothenburg, Sweden
CHG file
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>
/Dan
<span class='smallblacktext'>[ Edited Wed Oct 13 2010, 04:28PM ]</span>
Last edited by forsdan on Wed Oct 13, 2010 2:26 pm, edited 1 time in total.
CHG file
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.
Last edited by riche on Tue Oct 19, 2010 9:33 am, edited 1 time in total.