I'm studying the theory and application of DFT in more detail, I read more tha a couple of books and articles aand I'm still unclear.
The Kohn-Sham equations are like Hartree-Fock in that it's a system of equations that each involve a single electron wavefunction ѱi. and an orbital energy Ei.
Is each individual equation solved self-consistently for ѱi? If so, how do they know each Ei from the guessed electron density ρ(r)?
Or is the equation of the whole system solved for the total wavefunction Ψ, knowing the total E from ρ(r)?
I read that the total solution Ψ is obtained as a Slater determinant of all ѱi. So is the first option correct?
But a Slater determinant does take exchange effects into account, so why is exchange energy also supposedly included in the exchange-correlation functional?
Thanks!