[CP2K-user] [CP2K:11909] Density of State Plotting

Patrick Gono patri... at gmail.com
Wed Jun 26 15:48:10 UTC 2019


Dear Nimali,

please find attached a quick Python 3 script that plots the projected
density of states. Disclaimer: I can not guarantee that there are no
bugs/mistakes in the code. It is probably also very inefficient. If
possible, do not simply copy the script, but rather try to implement it
yourself.

You can also read about plotting the PDOS in this tutorial:
https://www.cp2k.org/exercises:2017_uzh_cmest:pdos
There you are advised to download the scripts from the following website:
wiki.wpi.edu/deskinsgroup/Density_of_States
Alternatively, you can use this script written by Tiziano Müller:
https://raw.githubusercontent.com/dev-zero/cp2k-tools/master/scripts/cp2k_pdos.py

The main idea is always to smooth out the discrete PDOS using Gaussians.

Good luck!
Yours sincerely
Patrick Gono

On Wed, 26 Jun 2019 at 08:58, Nimali Rathnayake <nimalira... at gmail.com>
wrote:

> Hi Everyone,
>
> I am trying to plot the DOS graphs using the .pdos file I obtained from
> cp2k calculation.
>
> Can anyone please explain me how to draw the DOS plots using .pdos file. I
> have attached my pdos file for your reference.
>
> I am very grateful for your help.
>
> Thank you.
>
> Kind regards,
>
> Nimali
>
> --
> 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/CANmcfQ-6dN_o90Z27evqYxs58tDJJo2Rh_LL9qKoqaD_ZsHTAQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/cp2k/CANmcfQ-6dN_o90Z27evqYxs58tDJJo2Rh_LL9qKoqaD_ZsHTAQ%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/20190626/994d4265/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmail_response_plot.py
Type: text/x-python
Size: 3969 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20190626/994d4265/attachment.py>


More information about the CP2K-user mailing list