Induced density

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

Post Reply
User avatar
csk
Posts: 17
Joined: Wed Aug 28, 2024 9:54 pm

Induced density

Post by csk » Wed Jan 14, 2026 3:24 pm

Dear all!

I am trying to compute the induced density in a metal slab, which I ultimately want in the direction perpendicular to the slab, i.e. integrated over the two periodic directions. To this end, I compute the RPA response function and get the real- and imaginary part of alpha. Now, the induced density (in linear order) should be the integral over the ground state density and the density-density response function. Is there a possibility how I can get the latter in real-space from Yambo?

Many thanks,
Christian
Christian Kern, University of Graz, Austria

User avatar
Davide Sangalli
Posts: 662
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

Re: Induced density

Post by Davide Sangalli » Wed Jan 14, 2026 4:03 pm

Dear Christian,
yambo can give you the response function in G-space. X_{G,G'}(q,\omega)
Page 7 here: https://wiki.yambo-code.eu/wiki/index.p ... heatsheets --> https://wiki.yambo-code.eu/wiki/index.p ... 5.0_P7.png

What you probably (?) want is the induced density
rho_G(q,\omega) = sum_G' X_{G,G'}(q,\omega) V^{ext}_{G'}(q,\omega)

If you are fine with the q=0 and \omega=0 the info you need is printed in the database of the screening ndb.em1s_fragment_1.
Probably with yambopy you can try to code the above equation by reading the ndb.em1s_fragment_1 or similar.

Best,
D.
Davide Sangalli, PhD
Piazza Leonardo Da Vinci, 32, 20133 – Milano
CNR, Istituto di Struttura della Materia (ISM)
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

User avatar
csk
Posts: 17
Joined: Wed Aug 28, 2024 9:54 pm

Re: Induced density

Post by csk » Wed Jan 14, 2026 4:28 pm

Dear Davide!

Many thanks for your reply!

1) What runlevel would I need such that ndb.em1s* are stored? With "yambo -o c -k Hartree -r" only the dipoles and RIM/cutoff are stored.

2) Can I also access the X_{G,G'}(q,\omega) elements for \omega > 0? If I understand correctly, those are controlled by "ETStpsXd" and "EnRngeXd"?

Cheers,
Christian
Christian Kern, University of Graz, Austria

User avatar
Davide Sangalli
Posts: 662
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

Re: Induced density

Post by Davide Sangalli » Wed Jan 14, 2026 4:55 pm

For the static screening:

Code: Select all

yambo -X b
https://wiki.yambo-code.eu/wiki/index.p ... _screening

If you want the frequency dependent screening use either multi-plasmon pole (MPA) or full freqeuncy (FF)

Code: Select all

yambo -X d / PA
https://wiki.yambo-code.eu/wiki/index.p ... tion_(MPA)

Pleas notice that, however it is not directly the reponse function which is written in the databases, but v(G)*X_{G,G'} (if I'm not wrong), both in the static and in the dynamical case

There is in principle also the option

Code: Select all

yambo -X X
which directly prints the response function, but it is not very much tested.

Best,
D.
Davide Sangalli, PhD
Piazza Leonardo Da Vinci, 32, 20133 – Milano
CNR, Istituto di Struttura della Materia (ISM)
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

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

Re: Induced density

Post by Daniele Varsano » Thu Jan 15, 2026 11:56 am

Dear Christian,

just a small warning. In metals, in the long range limit q->0 intraband contribution to the response functions are not taken into account, while they are for finite q. What you can do is to extrapolate the q->0 limit from the calculated values at finite q.

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