Band Gap Value in Each AIMD Time Step

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
KieranSong
Newbie
Newbie
Posts: 13
Joined: Mon May 13, 2019 8:07 am

Band Gap Value in Each AIMD Time Step

#1 Post by KieranSong » Wed Jul 28, 2021 6:40 am

Dear All,

Can I make an enquiry about the output information from VASP.

I am trying to use VASP to run the ab initio molecular dynamics in NVT ensemble for the structure relaxation of the 2D materials. The version of the VASP code that I am using is 5.4.4.

Does the VASP code outputs the band gap value of the 2D materials at each time step during the structure relaxation with the ab initio molecular dynamics? If so, which file contains this band gap value information during the structure relaxation with the ab initio molecular dynamics?

Thank you very much in advance.

Kind regards,

Kieran

marie-therese.huebsch
Full Member
Full Member
Posts: 211
Joined: Tue Jan 19, 2021 12:01 am

Re: Band Gap Value in Each AIMD Time Step

#2 Post by marie-therese.huebsch » Wed Jul 28, 2021 8:39 am

Dear Kieran,

The band gap is not explicitly written to the output, but you can compute it yourself. To this end, you need to search for the highest occupied molecular orbital (HOMO) and the lowest unoccupied molecular orbital (LUMO) at each MD step and take their difference. Here, molecular orbitals refer to Kohn-Sham orbitals. You can find the band energies and occupancies at each k point, e.g., written to the OUTCAR file.

Best regards,
Marie-Therese

KieranSong
Newbie
Newbie
Posts: 13
Joined: Mon May 13, 2019 8:07 am

Re: Band Gap Value in Each AIMD Time Step

#3 Post by KieranSong » Wed Jul 28, 2021 7:47 pm

Dear Marie-Therese,

Thank you for the suggestion.

Suppose I want to run the AIMD for 1 picosecond with 0.1 femtosecond as the time step. Then, I will have 10000 output structures in XDATCAR file. If I want to plot the band gap value v.s. time step, I will have to compute the band gap values for 10000 structures. Obviously, this is not doable manually.

Is there any other way to modify the source code of VASP to make it output the band gap value at each time step automatically?

I really appreciate your help.

Kind regards,

Kieran

marie-therese.huebsch
Full Member
Full Member
Posts: 211
Joined: Tue Jan 19, 2021 12:01 am

Re: Band Gap Value in Each AIMD Time Step

#4 Post by marie-therese.huebsch » Wed Jul 28, 2021 10:16 pm

Dear Kieran,

It might be easier for you to run a script that extracts the information than changing the source code. You can, for instance, use python, or a combination of grep, awk, and bash to extract the HOMO and LUMO, then take their difference.

Best regards,
Marie-Therese

Post Reply