depolarization in thin films

Deals with issues related to computation of optical spectra in reciprocal space: RPA, TDDFT, local field effects.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan

Christian Koenig
Posts: 34
Joined: Mon Nov 18, 2019 10:48 am

Re: depolarization in thin films

Post by Christian Koenig » Mon Mar 23, 2020 1:30 pm

The data I refer to here has the labels X_Q_1, X_Q_2, etc.
Christian Koenig
Tyndall National Institute
Cork, Ireland

User avatar
Daniele Varsano
Posts: 4198
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: depolarization in thin films

Post by Daniele Varsano » Mon Mar 23, 2020 2:12 pm

Dear Christian,
the database are in netcdf format, you can either dump the file (ncdump) or better use a python script. Here I attach you a script to read a static database, it should be generalized for the ndb.pp which has 2 frequencies.
Note, the matrix elements are complex, 7675362 means 3837681 entries i.e. a matrix 1959x1959. This should be the dimension of your block if I did not any mistake.

The format should be the following e.g. :
float X_Q_1(D_0000000002, D_0000000005, D_0000000005, D_0000000002)
(N_frequencies, N_g, N_g', Re/Im)
Why is the fit actually done for an imaginary frequency?
Because the eps should be a smooth function in the imaginary axis. This is the Godby-Needs model that seems to be the most reliable. You can check some literature on the plasmon-pole models


Best,
Daniele
You do not have the required permissions to view the files attached to this post.
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

Christian Koenig
Posts: 34
Joined: Mon Nov 18, 2019 10:48 am

Re: depolarization in thin films

Post by Christian Koenig » Tue Mar 24, 2020 10:22 am

Dear Daniele,

Thanks, I got the script working. As there seems to be no way to get the poles and residuals from the code, I assume the best way to check if the PPA makes sense is to do a full frequency calculation and then fit the model to the two frequencies by hand.


Best,

Christian
Christian Koenig
Tyndall National Institute
Cork, Ireland

User avatar
Daniele Varsano
Posts: 4198
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: depolarization in thin films

Post by Daniele Varsano » Tue Mar 24, 2020 10:50 am

Dear Christian,
the residuals and poles can be calculated from the values of eps^-1 it is 2 equation in 2 variable:
you can find the expression in the Yambo cheatsheet (Eq.9):
http://www.yambo-code.org/wiki/index.ph ... heatsheets

Full frequency calculation is in principle more accurate and will tell you if the PPA is suitable, but it is very slow in converging with respect to the number of frequencies.

Best,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

Post Reply