BSE spectra considering momentum
Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan
- Daniele Varsano
- Posts: 4002
- Joined: Tue Mar 17, 2009 2:23 pm
- Contact:
Re: BSE spectra considering momentum
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
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/
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/
-
- Posts: 56
- Joined: Sun May 24, 2020 1:56 pm
Re: BSE spectra considering momentum
I see, thank you!
Dr. Fadıl İYİKANAT
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN
-
- Posts: 56
- Joined: Sun May 24, 2020 1:56 pm
Re: BSE spectra considering momentum
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
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
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN
- Daniele Varsano
- Posts: 4002
- Joined: Tue Mar 17, 2009 2:23 pm
- Contact:
Re: BSE spectra considering momentum
Dear Fadil,
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
Yes sorry, I wrote from left instead then from right.I think the ordering in 'ns.wf_fragments_*' files should be
from left nband, spin, gvector, Re/Im(wf_coefficients),
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/
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/
-
- Posts: 208
- Joined: Fri Jan 31, 2014 11:13 am
Re: BSE spectra considering momentum
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
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
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
-
- Posts: 56
- Joined: Sun May 24, 2020 1:56 pm
Re: BSE spectra considering momentum
Dear Daniele and Andrea,
Thank you for your help!
It is not in the './setup/G_shells_finder.F'.
Best
Thank you for your help!
Where can I find the 'wf_ng' ?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).
It is not in the './setup/G_shells_finder.F'.
Best
Dr. Fadıl İYİKANAT
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN
- Daniele Varsano
- Posts: 4002
- Joined: Tue Mar 17, 2009 2:23 pm
- Contact:
Re: BSE spectra considering momentum
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
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/
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/
-
- Posts: 56
- Joined: Sun May 24, 2020 1:56 pm
Re: BSE spectra considering momentum
Dear Daniele,
-q=0 seems correct but the polarizabilities for q=/0 are very high with versions 5.0.3 and 5.0.4.
Is the above prefactor correct for q=/0 polarizabilities (\alpha)?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
-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
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN
- Daniele Varsano
- Posts: 4002
- Joined: Tue Mar 17, 2009 2:23 pm
- Contact:
Re: BSE spectra considering momentum
Dear Fadil,
yes, the prefactor now is correct.
Best,
Daniele
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/
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/
-
- Posts: 56
- Joined: Sun May 24, 2020 1:56 pm
Re: BSE spectra considering momentum
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 ?
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
ICFO-The Institute of Photonic Sciences
Barcelona-SPAIN