Density of State Plotting

183 views
Skip to first unread message

Nimali Rathnayake

unread,
Jun 26, 2019, 2:58:08 AM6/26/19
to cp...@googlegroups.com
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

DOSGraphite-3.35-k1-1.pdos

Patrick Gono

unread,
Jun 26, 2019, 11:48:24 AM6/26/19
to cp...@googlegroups.com
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

--
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/CANmcfQ-6dN_o90Z27evqYxs58tDJJo2Rh_LL9qKoqaD_ZsHTAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
gmail_response_plot.py

Nimali Rathnayake

unread,
Jun 27, 2019, 10:36:28 PM6/27/19
to cp...@googlegroups.com
Hi Patrick,

Thank you for the advice.

I will try with this.

Kind regards,

Nimali


For more options, visit https://groups.google.com/d/optout.


--
Thank you,

Best Regards,

Nimali


Reply all
Reply to author
Forward
0 new messages