electron-density

58 views
Skip to first unread message

Anna Anic

unread,
Jul 17, 2019, 3:56:19 AM7/17/19
to cp...@googlegroups.com
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

Matt W

unread,
Jul 17, 2019, 4:24:35 AM7/17/19
to cp2k
https://www.cp2k.org/tools:cubecruncher

can probably be made to do most of what you want.

Patrick Gono

unread,
Jul 17, 2019, 5:31:29 AM7/17/19
to cp...@googlegroups.com
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: http://paulbourke.net/dataformats/cube/

Yours sincerely,
Patrick Gono



--
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 cp2k+uns...@googlegroups.com.
To post to this group, send email to cp...@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.
For more options, visit https://groups.google.com/d/optout.
integrate_cube.py

Anna Anic

unread,
Jul 17, 2019, 6:35:05 PM7/17/19
to cp...@googlegroups.com
Thank you very much,
I will try it.
Greetings,
Anna

For more options, visit https://groups.google.com/d/optout.
<integrate_cube.py>
Reply all
Reply to author
Forward
0 new messages