At this stage, the only differences between your Schrödinger solver and a density functional solver are the energy and gradient functions, getE(), getgrad() and getH(), respectively.
To see this, we begin by noting that one important difference between
the energy functions is that, now, each wave function
has an
associated occupancy, or ``filling factor,''
. For simplicity we
shall here always work in cases where all states have the same
occupancy
. (Many physical systems have this property; usually
. The generalization to difference occupancies for different
orbitals is conceptually straight forward but involves a lot of
messy algebra.)
Under the conditions of the previous paragraph, three of the
quantities from density-functional theory have very similar forms to
those from the Schrödinger case. For instance, the
density-functional form for the kinetic energy
simply picks up an extra factor of
,
| (4) |
The first new term appearing in density-functional theory is the
electron-electron potential energy
, where
. (As in a similar
derivation in lecture, the ``*'' on
doesn't change the integral
because
is real. We include it, however, so that we may use
our currently defined operator
.) Inserting the expansions
and
into the integral for
, using
our solution for Poisson's equation from Problem Set 7 and rearranging
quantities within
's, we find
In summary, in terms of unconstrained wave function coefficients
,
the total energy within density functional theory is
![\begin{eqnarray*}
N & \equiv & W^\dagger {\cal O}W \\
\vec n & \equiv & f \cdot...
...] \\
\hat \phi & \equiv & -4 \pi L^{-1} {\cal O}{\cal J}\vec n.
\end{eqnarray*}](img61.png)
As with the Schrödinger case, two effects contribute to the
gradient. First, there are contributions due to the constraints,
which turn out to be of an identical form as we had previously.
Including the appropriate factors for
, we thus have
Tomas Arias 2005-04-15