Dear all,
I would like to link a Elk routine that is computing the multipole decomposition of the density on the basis of real spherical harmonics (inside the spheres).
However I have difficulties to figure out what we have in Abinit exactly.
It sounds to me that things are made on the basis of imaginary spherical harmonics (like the DOS), am I right?
I see that real spherical harmonics are used only for dmatpawu?
This is just to be sure that nothing is done in this sense before starting coding anything.
Thanks and all the best,
Eric
density and Real Spherical Harmonics [SOLVED]
Re: density and Real Spherical Harmonics
Dear Eric,
The real spherical harmonics are used in DFT+U and also to compute
fatbands (pawfatbnd) or partial dos (with prtdosm=2).
See in particular the comments at the end of subroutine partial_dos_fractions_paw.
More generally, the PAW part of ABINIT uses real spherical harmonics and some moments
of the densities are thus computed in pawdensities.F90.
Best regards
Bernard Amadon
CEA
The real spherical harmonics are used in DFT+U and also to compute
fatbands (pawfatbnd) or partial dos (with prtdosm=2).
See in particular the comments at the end of subroutine partial_dos_fractions_paw.
More generally, the PAW part of ABINIT uses real spherical harmonics and some moments
of the densities are thus computed in pawdensities.F90.
Best regards
Bernard Amadon
CEA
Bernard Amadon
CEA
France
CEA
France
Re: density and Real Spherical Harmonics
Dear Bernard,
Thanks for the reply.
I had a look on pawdensities.F90, but, to clarify, when you say that some moments of the density are plotted, does it mean that for each spin channel and each atom, you have the l and m decomposition of the density over the real spherical harmonic basis?
Best regards,
Eric
Thanks for the reply.
I had a look on pawdensities.F90, but, to clarify, when you say that some moments of the density are plotted, does it mean that for each spin channel and each atom, you have the l and m decomposition of the density over the real spherical harmonic basis?
Best regards,
Eric
Re: density and Real Spherical Harmonics
Eric,
I don't exactly understand your need.
Within PAW, treating the density can be subtle, as you know.
1- Do you want the AE density (could be if you want to link an elk routine) ?
If yes, this is complicated because this density is never used by abinit; it can be output via the denfgr routine.
It is then given on a regular FFT grid sized with pawecutdg (that has to be extremely fine to reproduce the nodes).
At the stage, there is no Ylm decomposition and you have code it by yourself.
2- Do you want the PS density (norm-compensated) ?
It is divided in 3 parts:
rho_PS(r)=rho_PS_plane_wave(r) -rho_PS_onsite(r)+ rho_AE_onsite(r)
The 2 last parts are computed in pawdensities (as explained by Bernard), respectively named rho1 and trho1.
They are expressed with their (REAL) spherical harmonics moments:
rho_lm(r)=Intg[rho(r).S_lm(r).dr], S_lm being the real spherical harmonics.
You can print these 2 variable rho1 and trho1 to look at them.
The last part of the density is the plane-wave part.
Again, it is expressed on a FFT grid (defined by pawecutdg) and there no reference to spherical harmonics.
If you are sure that your density is located inside the PAW augmentation regions, you can make the assumption that:
rho_PS(r)=rho_AE_onsite(r)
and things become much more easy.
But this assumption is only true for localized orbitals of course...
Marc
I don't exactly understand your need.
Within PAW, treating the density can be subtle, as you know.
1- Do you want the AE density (could be if you want to link an elk routine) ?
If yes, this is complicated because this density is never used by abinit; it can be output via the denfgr routine.
It is then given on a regular FFT grid sized with pawecutdg (that has to be extremely fine to reproduce the nodes).
At the stage, there is no Ylm decomposition and you have code it by yourself.
2- Do you want the PS density (norm-compensated) ?
It is divided in 3 parts:
rho_PS(r)=rho_PS_plane_wave(r) -rho_PS_onsite(r)+ rho_AE_onsite(r)
The 2 last parts are computed in pawdensities (as explained by Bernard), respectively named rho1 and trho1.
They are expressed with their (REAL) spherical harmonics moments:
rho_lm(r)=Intg[rho(r).S_lm(r).dr], S_lm being the real spherical harmonics.
You can print these 2 variable rho1 and trho1 to look at them.
The last part of the density is the plane-wave part.
Again, it is expressed on a FFT grid (defined by pawecutdg) and there no reference to spherical harmonics.
If you are sure that your density is located inside the PAW augmentation regions, you can make the assumption that:
rho_PS(r)=rho_AE_onsite(r)
and things become much more easy.
But this assumption is only true for localized orbitals of course...
Marc
Marc Torrent
CEA - Bruyères-le-Chatel
France
CEA - Bruyères-le-Chatel
France
Re: density and Real Spherical Harmonics [SOLVED]
Dear Marc,
Thanks for the details, this is what I'm asking for and indeed the AE part would be the best to link with Elk.
So I'll have to code for this part...
The PS density can be a good approximation anyway, I'll try with that and see what I'm getting.
Thanks a lot,
Eric
Thanks for the details, this is what I'm asking for and indeed the AE part would be the best to link with Elk.
So I'll have to code for this part...
The PS density can be a good approximation anyway, I'll try with that and see what I'm getting.
Thanks a lot,
Eric