CUBE and periodic conditions
Posted: Thu Mar 01, 2007 3:31 am
Hi,
I'm trying to use your program for analysis of SIESTA densities.
I've made the conversion to CUBE format and checked in XCrysDen that it is done correctly.
However I still have a question concerning the grid on boundaries. CUBE itself has nothing to do with periodic cells and usually you will get the grid points exactly on the boundaries that you specify (at least I did so, similar to XCrysDen internal format).
For example, for a box from 0 to 3 and 4 grid points, the grid coordinates would be 0, 1, 2, 3.
Now when I have a periodic cell, the grid points on one of the sides (left or right) of the box are not needed, since they would be available from the next periodic cell.
How do you deal with this when you read CUBE files?
Should I construct my CUBE file so that the last row (column) of the grid is just removed?
Like this: for a box from 0 to 3 take just 3 grid points with the grid coordinates 0, 1, 2.
---------------------------------------------
Another question is what happens when I have to take not a whole cell but part of it (due to memory limitations imposed by your program - segmentation error). It is obvious that some atoms' charges would be reproduced only partially.
Can the program deal correctly at least for the rest of the atoms?
I'm trying to use your program for analysis of SIESTA densities.
I've made the conversion to CUBE format and checked in XCrysDen that it is done correctly.
However I still have a question concerning the grid on boundaries. CUBE itself has nothing to do with periodic cells and usually you will get the grid points exactly on the boundaries that you specify (at least I did so, similar to XCrysDen internal format).
For example, for a box from 0 to 3 and 4 grid points, the grid coordinates would be 0, 1, 2, 3.
Now when I have a periodic cell, the grid points on one of the sides (left or right) of the box are not needed, since they would be available from the next periodic cell.
How do you deal with this when you read CUBE files?
Should I construct my CUBE file so that the last row (column) of the grid is just removed?
Like this: for a box from 0 to 3 take just 3 grid points with the grid coordinates 0, 1, 2.
---------------------------------------------
Another question is what happens when I have to take not a whole cell but part of it (due to memory limitations imposed by your program - segmentation error). It is obvious that some atoms' charges would be reproduced only partially.
Can the program deal correctly at least for the rest of the atoms?