next up previous contents
Next: Debugging Up: Kohn-Sham equations: full implementation Previous: Finite-difference test

Kohn-Sham equations

For a single orbital containing f elections, the full density-functional-theory energy function, including the Hartree and exchange-correlation energies, is

displaymath354

where

displaymath356

tex2html_wrap_inline358 is the solution of Poisson's equation, and tex2html_wrap_inline360 is the exchange-correlation energy function.

In our matrix language, this is

displaymath362

where tex2html_wrap_inline364 ,

displaymath366

with the `*' operator defined as point-wise multiplication of pvectors as in HW#10, conj(v) representing complex conjugation of all components the vector v, and tex2html_wrap_inline360 representing a pvector each of whose components is the application of the tex2html_wrap_inline370 function applied to the corresponding component of the pvector n. Finally, tex2html_wrap_inline372 , and we can determine tex2html_wrap_inline374 from our previous algorithm for the solution of Poisson's equation, tex2html_wrap_inline376 .

In the same language, the gradient of E is

displaymath378

Here, tex2html_wrap_inline380 where

displaymath382

where

displaymath384





Tomas Arias
Thu May 4 11:11:09 EDT 2000