Queries about input and output files, running specific calculations, etc.
Moderators: Global Moderator, Moderator
-
Jike.Wang
- Newbie

- Posts: 8
- Joined: Fri Jun 24, 2022 10:13 am
#1
Post
by Jike.Wang » Sat May 24, 2025 4:26 am
Dear all,
I want to know how to draw an absorption spectrum using VASP output files. Here are some detail questions:
1. Which file contains the data needed for the spectrum?
2. Can VASPKIT do this directly?
Thanks in advance for your help!
Best regards,
Jike Wang
-
henrique_miranda
- Global Moderator

- Posts: 555
- Joined: Mon Nov 04, 2019 12:41 pm
-
Contact:
#2
Post
by henrique_miranda » Mon May 26, 2025 7:52 am
This depends on what level of theory you want to use to compute the spectra.
Perhaps this page can help you choose which level of theory you should use:
wiki/index.php/Category:Dielectric_prop ... ion_theory
Assuming the simplest case that is setting LOPTICS=.TRUE. in the INCAR file, you will get the data in vasprun.xml, vaspout.h5 and OUTCAR.
In the OUTCAR it is written under "frequency dependent IMAGINARY DIELECTRIC FUNCTION".
You can also use py4vasp for reading the data from the vaspout.h5 file. You can have a look at section 3.3 in this tutorial:
https://vasp.at/tutorials/latest/response/part1/
If something is not clear don't hesitate to ask!