density and Real Spherical Harmonics  [SOLVED]

Documentation, Web site and code modifications

Moderators: baguetl, routerov

Locked
ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

density and Real Spherical Harmonics

Post by ebousquet » Sun Mar 02, 2014 3:37 pm

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

amadon
Posts: 46
Joined: Mon Aug 24, 2009 10:58 am

Re: density and Real Spherical Harmonics

Post by amadon » Mon Mar 03, 2014 1:46 pm

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
Bernard Amadon
CEA
France

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: density and Real Spherical Harmonics

Post by ebousquet » Mon Mar 10, 2014 5:43 pm

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

User avatar
torrent
Posts: 127
Joined: Fri Aug 14, 2009 7:40 pm

Re: density and Real Spherical Harmonics

Post by torrent » Fri Mar 14, 2014 10:14 am

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
Marc Torrent
CEA - Bruyères-le-Chatel
France

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: density and Real Spherical Harmonics  [SOLVED]

Post by ebousquet » Sat Mar 22, 2014 8:47 pm

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

Locked