This is a general question about how we treat unbalanced charges in density functional theory (DFT), which might arise when we model charged defects. In VASP
, I would just change the NELECT
variable (number of valence electrons), but I'm interested in how this changes the implementation (if any). Some hints can be found in the NELECT
VaspWiki page.
If the number of electrons is not compatible with the number derived from the valence and the number of atoms a homogeneous background charge is assumed.
I don't quite understand what assuming a "homogeneous background charge" entails. Is there a change to the implementation (e.g. additional terms to consider due to the "homogeneous background charge", such as the Thomas-Fermi kinetic energy for the background charge", the "background charge" - "background charge", "background charge" - "valence electrons", and "background charge" - "ion core" interactions) or would we just proceed with the usual Kohn-Sham DFT scheme, but solving for more or less bands depending on whether electrons are added or removed (the assumption of the "homogeneous background charge" being some conceptual tool that doesn't affect the implementation)?