Attention : energy zero ---> electro static zero
Calculate the electrostatic potential-energies without the electron-nuclear interaction in the cell itself. the energy of the representive atom i is given by (see notes by B. Drittler)
vm2z is the coulomb potential of the atom without the nuclear potential of the atom rho2ns(...,1) is the real charge density times
both developed into spherical harmonics. (see deck rholm)
z is the nuclear charge of the atom
vmad ( ri ) is a generalized madelung potential
( <..> = spherical averaged )
modified for band structure code B. Drittler Jan. 1990 @note Warning this subroutine has to be called before the exchange correlation potential is added to the potential vm2. The energy calculated here is splitted into l-dependent parts to see the l -convergency.
@note Warning
in case of shape corrections the contribution of the coulomb potential
the of the nucleus is analytically cancelled only in the muffin tin sphere
in the interstial region it has to be taken into account ! see deck epotins
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
double precision | :: | CMOM(LMPOTD,NATOM) | ||||
double precision | :: | CMOM_INTERST(LMPOTD,NATOM) | ||||
double precision | :: | ECOU(0:LPOTD,NATOM) | ||||
type(CELL_TYPE) | :: | CELL(NATOM) | ||||
type(DENSITY_TYPE) | :: | DENSITY(NATOM) | ||||
type(SHAPEFUN_TYPE) | :: | SHAPEFUN(NATOM) | ||||
type(gauntshape_type) | :: | GAUNTSHAPE(LMAXD) | ||||
integer | :: | LMAXATOM(NATOM) | ||||
integer | :: | LMAXD | ||||
integer | :: | NSPIN | ||||
integer | :: | NATOM | ||||
double precision | :: | VM2Z(IRMD,LMPOTD,NSPIN,NATOM) | ||||
double precision | :: | ZATOM(NATOM) | ||||
integer | :: | INS | ||||
integer | :: | IRMD | ||||
integer | :: | LMPOTD | ||||
integer | :: | LPOTD |