BSE spectra considering momentum

You can find here problems arising when using old releases of Yambo (< 5.0). Issues as parallelization strategy, performance issues and other technical aspects.

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

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

Re: BSE spectra considering momentum

Post by Daniele Varsano » Tue Jun 01, 2021 5:25 pm

Unfortunately not, as usually they are not needed, it is not a calculation done by yambo, as they are exported from QE.
Here in attachment a script to extract the dipoles, you need to adapt for the reading of the wfs.

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/

Fadil
Posts: 56
Joined: Sun May 24, 2020 1:56 pm

Re: BSE spectra considering momentum

Post by Fadil » Tue Jun 01, 2021 5:37 pm

I see, thank you!
Dr. Fadıl İYİKANAT
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN

Fadil
Posts: 56
Joined: Sun May 24, 2020 1:56 pm

Re: BSE spectra considering momentum

Post by Fadil » Tue Jun 01, 2021 10:46 pm

Dear Daniele,

I think the ordering in 'ns.wf_fragments_*' files should be
from left nband, spin, gvector, Re/Im(wf_coefficients),
right?

The number of g_vec obtained from './setup/G_shells_finder.F' are much larger than the above wave function coefficients.
Actually, the number of wave function coefficients are the same with the 'Max WF components' and the number of 'g_vec' is the same with 'RL vectors (CHARGE)'.

<---> Max WF components : 9843
<---> RL vectors (WF): 9843
<---> RL vectors (CHARGE): 79117

So how do we match 'g_vec' and wave function coefficients?

Best
Dr. Fadıl İYİKANAT
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN

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

Re: BSE spectra considering momentum

Post by Daniele Varsano » Wed Jun 02, 2021 5:50 pm

Dear Fadil,
I think the ordering in 'ns.wf_fragments_*' files should be
from left nband, spin, gvector, Re/Im(wf_coefficients),
right?
Yes sorry, I wrote from left instead then from right.

G_vec contains all the gvectors which are the ones of the charge, i.e. (G-G') where G are the ones of the wfs (wf_ng along the code).
About the matching, I would not want to send you on the wrong path. In the code the procedure to go from G to R space is alway done via FFT, someone else more expert in the ordering can give you more precise details.

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/

andrea.ferretti
Posts: 208
Joined: Fri Jan 31, 2014 11:13 am

Re: BSE spectra considering momentum

Post by andrea.ferretti » Mon Jun 07, 2021 10:25 am

Dear Fadil,

concerning your question about the matching of vectors in g_vec (density) with FFT grids and wave functions, you may want to have a look at the yambo-internal map:

ir=fft_g_table(ig,iGo)

which, given a G-vector index ig, maps it to the FFT grid. (Actually, it is G-Go which is mapped).

Coming to the connection of wfcs and rho G-vectors:
assuming wfc contains components up to G*, the charge density contains component up to 2G*, making the ecutrho value 4 times that of the wave functions.
As a rule of thumb, the G-vecotrs for wfcs are about 1/8 of those of the density (both are distributed in spheres, one with radius 1/2 of the other one).

HTH

Andrea
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Fadil
Posts: 56
Joined: Sun May 24, 2020 1:56 pm

Re: BSE spectra considering momentum

Post by Fadil » Thu Aug 26, 2021 1:40 pm

Dear Daniele and Andrea,

Thank you for your help!
G_vec contains all the gvectors which are the ones of the charge, i.e. (G-G') where G are the ones of the wfs (wf_ng along the code).
Where can I find the 'wf_ng' ?
It is not in the './setup/G_shells_finder.F'.

Best
Dr. Fadıl İYİKANAT
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN

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

Re: BSE spectra considering momentum

Post by Daniele Varsano » Tue Aug 31, 2021 10:50 am

Dear Fadil,

wf_ng is assigned by the p2y interface and stored in the ns.db1 database.

you can find it here:
/interfaces/p2y/p2y_db1.F

it can be changed by setting in input the FFTGvecs variable (see ./src/interface/INIT_load.F)

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/

Fadil
Posts: 56
Joined: Sun May 24, 2020 1:56 pm

Re: BSE spectra considering momentum

Post by Fadil » Tue May 17, 2022 5:55 pm

Dear Daniele,
The q=0 max strength is correct, while for finite q the pre-factor is wrong.
Note the values reported are normalised to the maximum value so the relative intensity for each q is correct.
The absolute value instead should be modified as S=S*10^-10/|q|^2
Is the above prefactor correct for q=/0 polarizabilities (\alpha)?
-q=0 seems correct but the polarizabilities for q=/0 are very high with versions 5.0.3 and 5.0.4.
Dr. Fadıl İYİKANAT
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN

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

Re: BSE spectra considering momentum

Post by Daniele Varsano » Wed May 18, 2022 8:35 am

Dear Fadil,

yes, the prefactor now is correct.


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/

Fadil
Posts: 56
Joined: Sun May 24, 2020 1:56 pm

Re: BSE spectra considering momentum

Post by Fadil » Wed May 18, 2022 9:42 am

It seems no.
Can you please check the attached outputs? It is the same with the 5.0.4.
Since I apply the Coulomb Cutoff, I need to rescale the results.
Is it \alpha=\alpha*10^-10/|q|^2 ?
Dr. Fadıl İYİKANAT
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN

Locked