Constant potential methods (CPMs) enable computationally efficient simulations of the solid–liquid interface at conducting electrodes in molecular dynamics. They have been successfully used, for example, to realistically model the behavior of ionic liquids or water-in-salt electrolytes in supercapacitors and batteries. CPMs model conductive electrodes by updating charges of individual electrode atoms according to the applied electric potential and the (time-dependent) local electrolyte structure. Here, we present a feature-rich CPM implementation, called ELECTRODE, for the Large-scale Atomic/Molecular Massively Parallel Simulator, which includes a constrained charge method and a thermo-potentiostat. The ELECTRODE package also contains a finite-field approach, multiple corrections for nonperiodic boundary conditions of the particle–particle particle–mesh solver, and a Thomas–Fermi model for using nonideal metals as electrodes. We demonstrate the capabilities of this implementation for a parallel-plate electrical double-layer capacitor, for which we have investigated the charging times with the different implemented methods and found an interesting relationship between water and ionic dipole relaxations. To prove the validity of the one-dimensional correction for the long-range electrostatics, we estimated the vacuum capacitance of two coaxial carbon nanotubes and compared it to structureless cylinders, for which an analytical expression exists. In summary, the ELECTRODE package enables efficient electrochemical simulations using state-of-the-art methods, allowing one to simulate even heterogeneous electrodes. Moreover, it allows unveiling more rigorously how electrode curvature affects the capacitance with the one-dimensional correction.
Magnesium is the lightest structural engineering material and bears high potential to manufacture automotive components, medical implants and energy storage systems. However, the practical use of untreated magnesium alloys is restricted as they are prone to corrosion. An essential prerequisite for the control or prevention of the degradation process is a deeper understanding of the underlying corrosion mechanisms. Prior investigations of the formation of gaseous hydrogen during the corrosion of magnesium indicated that the predominant mechanism for this process follows the Volmer–Heyrovský rather than the previously assumed Volmer–Tafel pathway. However, the energetic and electronic states of both reaction paths as well as the charge state of dissolved magnesium have not been fully unraveled yet. In this study, density functional theory calculations were employed to determine these parameters for the Volmer, Tafel and Heyrovský steps to gain a comprehensive understanding of the major corrosion mechanisms responsible for the degradation of magnesium.