User-defined Electrostatic Potentials in DFT Supercell Calculations: Implementation and Application to Electrified Interfaces
Samuel Mattoso, Jing Yang, Florian Deißenbeck, Ahmed Abdelkawy, Christoph Freysoldt, Stefan Wipperman, Mira Todorova, Jörg Neugebauer
TL;DR
The paper presents a modular approach to applying user-defined electrostatic potentials within DFT calculations using the VASP-Python interface, including necessary energy and force corrections to preserve physical realism. It formalizes how to modify the energy functional with an external potential $V_{ext}$ and implements practical callbacks for potential, force, and occupancy updates, enabling quasi-static field simulations and time-dependent bias control via a thermopotentiostat. The method is demonstrated across case studies on adsorbed species under bias, field-driven surface phenomena relevant to atom probe tomography, electrified electrochemical interfaces, and QM/MM/implicit solvation models, highlighting both versatility and accuracy. This framework extends standard DFT workflows to robustly simulate electrified interfaces and solvated environments, with broad implications for catalysis, corrosion, and nanoscale device physics.
Abstract
Introducing electric fields into density functional theory (DFT) calculations is essential for understanding electrochemical processes, interfacial phenomena, and the behavior of materials under applied bias. However, applying user-defined electrostatic potentials in DFT is nontrivial and often requires direct modification to the specific DFT code. In this work, we present an implementation for supercell DFT calculations under arbitrary electric fields and discuss the required corrections to the energies and forces. The implementation is realized through the recently released VASP-Python interface, enabling the application of user-defined fields directly within the standard VASP software and providing great flexibility and control. We demonstrate the application of this approach with diverse case studies, including molecular adsorption on electrified surfaces, field ion microscopy, electrochemical solid-water interfaces, and implicit solvent models.
