<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000">In Wien2k the total energy is calculated in part from the current density, in part from the density of the orbitals that solve the KS equation. As such it is not a true variational energy except when the density is converged. [1]</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000">For other dft codes (not wavefunction codes [2]), is it the same, e.g. Vasp, QE, ab-init? Responses welcome, either via the list of directly.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000">[1] There are technically ways one could calculate some form of variational energy, but it would require extra steps and to my knowledge has never looked useful so is not in the code.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000">[2] In wavefunction codes where one varies the occupancy the energy is typically variational I think.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Professor Laurence Marks<br>Department of Materials Science and Engineering<br>Northwestern University<br><a href="http://www.numis.northwestern.edu/" target="_blank">www.numis.northwestern.edu</a><div>"Research is to see what everybody else has seen, and to think what nobody else has thought" Albert <span style="font-family:Arial,Helvetica,sans-serif;font-size:12.8px">Szent-</span><span style="font-family:Arial,Helvetica,sans-serif;font-size:small;color:rgb(34,34,34)">Györgyi</span></div></div></div></div>