Script to plot the full GW bandstructure

GW, Bethe-Salpeter …

Moderators: maryam.azizi, bruneval

Locked
Mutta
Posts: 69
Joined: Fri Feb 19, 2010 11:33 am

Script to plot the full GW bandstructure

Post by Mutta » Fri Jan 11, 2013 9:39 am

Dear all

I used script to plot full GW band structure by python. In this script needed *_EIG.nc + *_GW file
after that I used command by type
# python abinit_eignc_to_bandstructure.py cubo2_EIG.nc + cubo2_GW
I got error like this usage: abinit_eignc_to_bandstructure.py [-h] files
abinit_eignc_to_bandstructure.py: error: unrecognized arguments: cubo2_GW

Please suggestion

Abdulmutta Thatribud
Department of Physics, Faculty of Science
Prince of Songkla University, Thailand

david.waroquiers
Posts: 138
Joined: Sat Aug 15, 2009 12:45 am

Re: Script to plot the full GW bandstructure

Post by david.waroquiers » Fri Jan 11, 2013 9:46 am

Dear Mutta,


The script you have to use is ab_extended_scissors_guess.py.

You would then do :

python ab_extended_scissors_guess.py cubo2_EIG.nc cubo2_GW (without the +)

Note that you need numpy and matplotlib installed in your python path.


David

Mutta
Posts: 69
Joined: Fri Feb 19, 2010 11:33 am

Re: Script to plot the full GW bandstructure

Post by Mutta » Sun Jan 13, 2013 7:05 pm

Dear David

After as you suggest, I got ERROR see below
ERROR: the number of spins/kpoints is not the same in the GW and DFT files used to make the interpolation ... exiting now

For DFT band I used kpoints 4 4 4 and shifted 0 0 0
For GW file I also used kpoints 4 4 4 and shifted 0 0 0
but the error is the same

Please help
Mutta

david.waroquiers
Posts: 138
Joined: Sat Aug 15, 2009 12:45 am

Re: Script to plot the full GW bandstructure

Post by david.waroquiers » Sun Jan 13, 2013 9:14 pm

Dear Mutta,


Could you please post all your input files that you used to generate the *GW and *EIG.nc file as well as these two files ? Otherwise, its difficult to tell you what's wrong ...


David

Mutta
Posts: 69
Joined: Fri Feb 19, 2010 11:33 am

Re: Script to plot the full GW bandstructure

Post by Mutta » Mon Jan 14, 2013 8:22 am

Dear David

I sent you my input file for LDA, band_LDA.in and for GW, cubo2_G0W0.in
and also output file *.nc and *_GW

For *.nc and *_GW, I tried to attach two files but the extension is not allowed
Can you tell me how can I do it


Mutta
Attachments
band_LDA.in
LDA file
(2.25 KiB) Downloaded 561 times
cubo2_G0W0.in
GW file
(5.45 KiB) Downloaded 522 times

david.waroquiers
Posts: 138
Joined: Sat Aug 15, 2009 12:45 am

Re: Script to plot the full GW bandstructure

Post by david.waroquiers » Mon Jan 14, 2013 9:03 pm

Hello,

In order to attach these file, one workaround would be to rename them as cubo2_EIG.nc.in and cubo2_GW.in.

For the interpolation, are you using the EIG.nc from the second dataset of your cubo2 input file ? If not, that might be the error that you get.

Indeed, you should do :

python ab_extended_scissors_guess.py cubo2_DS2_EIG.nc cubo2_DS4_GW

(or something like that, depending on the name scheme you use, as defined in the *files file)

David

Mutta
Posts: 69
Joined: Fri Feb 19, 2010 11:33 am

Re: Script to plot the full GW bandstructure

Post by Mutta » Tue Jan 15, 2013 5:58 am

Dear David

Yes, I used the second dataset.

I sent you again for output file coming from LDA with second dataset and G0W0


Thank you
Mutta
Attachments
band-o_DS2_EIG.nc.in
(36.89 KiB) Downloaded 526 times
cubo2_G0W0_GW.in
(9.61 KiB) Downloaded 497 times

Mutta
Posts: 69
Joined: Fri Feb 19, 2010 11:33 am

Re: Script to plot the full GW bandstructure

Post by Mutta » Tue Jan 15, 2013 9:16 am

Dear David

Now, I got full gw band structure and you are right for *DS2_EIG.nc and *_GW should be from dataset 2 as GW run
and then used *EIG.nc coming from LDA.

Thank you for your help
Mutta

thanusit
Posts: 70
Joined: Thu Jan 14, 2010 4:20 am

Re: Script to plot the full GW bandstructure

Post by thanusit » Mon Sep 23, 2013 10:11 am

Dear David

Hope it's ok to append my question to this post.

Following the above discussion, I've tried using the script with silicon and got the gw-interpolated band structure (*.bandstructure file) at the end.
I noticed that the energies in the *.bandstructure file seems to be given in "Hartree". Is this true? I would like to be sure that I got things right.
If so, is there any way to get the energy in the *.bandstructure file in "eV" directly from running the script?

Regards,
Thanusit

Locked