[CP2K-user] [CP2K:11975] electron-density

Patrick Gono patri... at gmail.com
Wed Jul 17 09:31:14 UTC 2019

Dear Anna,

Assuming you have an orthogonal cell with interfaces parallel to the xy
plane, you can use a script similar to the one attached to this response. I
hope you are okay with Python.
The parsing of the cube file follows the cube file format explained here:

Yours sincerely,
Patrick Gono

On Wed, 17 Jul 2019 at 09:56, Anna Anic <aan... at gmail.com> wrote:

> Dear All,
> I have a question concerning the analysis of the electron density cube
> file. How can I get the total number of electrons in a certain region of my
> system, meaning is there a tool that integrates the density for given z
> values?
> The system contains a salb+waterbilayer and I want to sum the values up
> between those boundaries.
> Thanks in advance
> Greetings,
> Anna
> --
> You received this message because you are subscribed to the Google Groups
> "cp2k" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cp... at googlegroups.com.
> To post to this group, send email to cp... at googlegroups.com.
> Visit this group at https://groups.google.com/group/cp2k.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/cp2k/CAPcrZkoTY9kD3%2B5RaUfx%2BpcRJpGuHkMtcVyeG%3DUR-yBRTtrNWg%40mail.gmail.com
> <https://groups.google.com/d/msgid/cp2k/CAPcrZkoTY9kD3%2B5RaUfx%2BpcRJpGuHkMtcVyeG%3DUR-yBRTtrNWg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20190717/242facd2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: integrate_cube.py
Type: text/x-python
Size: 1727 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20190717/242facd2/attachment.py>

More information about the CP2K-user mailing list