I've been reading the DFT page, and I'm trying to understand the section on the Total energy. A short bit into that section, it is written that "If one is not careful about the potential associated with the eigenvalues, i.e., confusing V_{in} with V_{out}". However, where is "V_in" and "V_out" defined? It is a bit unclear if the section is trying to explain what would happen if the equations given there are used to evaluated the total energy on each iteration of the KS solution. But why would the energy after an iteration be evaluated using the previous external potential ("V_in"?)? The message of the section is a bit unclear to me.
Furthermore, the section seems to imply that the last equation of the section "Total energy" is somehow not preferable to a direct usage of the total energy expression (first equation of "total energy" section), despite the fact that several review works/text books on DFT indicate that the last expression is used in several DFT codes to calculate the total energy.
I've been reading the DFT page, and I'm trying to understand the section on the Total energy. A short bit into that section, it is written that "If one is not careful about the potential associated with the eigenvalues, i.e., confusing V_{in} with V_{out}". However, where is "V_in" and "V_out" defined? It is a bit unclear if the section is trying to explain what would happen if the equations given there are used to evaluated the total energy on each iteration of the KS solution. But why would the energy after an iteration be evaluated using the previous external potential ("V_in"?)? The message of the section is a bit unclear to me.
Furthermore, the section seems to imply that the last equation of the section "Total energy" is somehow not preferable to a direct usage of the total energy expression (first equation of "total energy" section), despite the fact that several review works/text books on DFT indicate that the last expression is used in several DFT codes to calculate the total energy.