Skip to content

Script to write the momentum-space hydrogen wavefunctions to an existing BerkeleyGW WFN.h5 file. Useful for testing.

Notifications You must be signed in to change notification settings

jackmcarthur/berkeleygw-hydrogen-wfns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

berkeleygw-hydrogen-wfns

If you want to modify the BerkeleyGW package, it is wise to compare the outputs of new code (exchange integrals, transition matrix elements, orbital moments...) with published results. I recently wrote a routine for which the most obvious comparison was an analytical result for the hydrogenic single-particle wavefunctions $\psi_{nlm\uparrow/\downarrow}$.

The DFT wavefunctions typically used as inputs in BerkeleyGW would be insufficiently accurate for this purpose due to self-interaction error, so I instead implemented the exact form of the hydrogen wavefunctions in the BerkeleyGW WFN.h5 format. As BerkeleyGW stores the wavefunctions in plane wave components, this required the momentum-space representation of the hydrogen wavefunctions:[1]

$$\Psi_{nlm}(p,\theta_p,\phi_p)\propto (-i)^l \frac{n^l p^l}{(n^2p^2+1)^{l+2}} C_{n-l-1}^{l+1}\left(\frac{n^2p^2-1}{n^2p^2+1}\right) Y^l_m(\theta_p,\phi_p)$$

The python script in this repository can be run as write_hydrogen_wfns.py [WFNfilename] [nbnd < 18] and it will populate an existing BerkeleyGW WFN.h5 file with the first nbnd spinor wavefunctions for a hydrogen atom at the origin, in the order: $$(n,l,m,m_s)=(1,0,0,+1/2),(1,0,0,-1/2),(2,0,0,+1/2),(2,0,0,-1/2),(2,1,-1,+1/2),(2,1,-1,-1/2),(2,1,0,+1/2)...$$.

The file WFN_small.h5 contains one band and can be run with the command above to generate the number of states needed. It was generated from a calculation in Quantum ESPRESSO with a 100 Ry plane-wave cutoff in a 20 Å $\times$ 20 Å $\times$ 20 Å unit cell. These parameters provide fairly converged results up to the 3s/3p states, but it may be useful to generate another calculation with a higher cutoff or larger box for wavefunctions higher than that. Calculations must be full-spinor (nspin=4) and have only the $(0,0,0)$ k-point.

References

[1] Bransden, B. H., Joachain, C. J. (1983). Physics of atoms and molecules. pp 621. United Kingdom: Longman.

About

Script to write the momentum-space hydrogen wavefunctions to an existing BerkeleyGW WFN.h5 file. Useful for testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages