SearcharxivSearch

arXiv subjects

Sudarshan Vijay

Publications and source records attributed to Sudarshan Vijay.

4 recordsLinked to original sources

VASP Plugins: Linking the Vienna ab-initio Simulation Package with Python

Implementing novel features and experimental algorithms into widely adopted density functional theory (DFT) codes is frequently hindered by complex legacy architectures and the use of compiled languages such as Fortran. These production codes, while optimised for high-performance computing clusters, present significant hurdles for software development and rapid prototyping, often requiring deep expertise in the code's internal structure to modify. To address this challenge, we present a Python plugin infrastructure for the Vienna ab-initio Simulation Package (VASP) that combines computational efficiency with the flexibility of high-level scripting. Our architecture uses a C++ intermediate layer and pybind11 to expose VASP data as NumPy arrays via shared memory buffers, ensuring high performance without data duplication. We implement two categories of plugins: those that modify quantities at the end of each converged self-consistent field (SCF) cycle, such as structure and force_and_stress, and those that operate during the SCF cycle, such as local_potential and occupancies. We demonstrate the utility of our implementation through three applications, structure relaxation using the scipy library, implementing an implicit solvent model, and adding the DFT-D4 dispersion corrections. This infrastructure effectively bridges the gap between high-performance electronic structure routines and the widespread scientific Python ecosystem.

cond-mat.mtrl-sci

opt-DDAP: Optimisable density-derived atomic point charges via automatic differentiation

Interatomic potentials which accurately describe long-range electrostatics require atom-centred charges. One such method to determine these atom-centred charges from density functional theory (DFT) calculations is the density-derived atomic point (DDAP) charge method. DDAP fits atom-centred Gaussians to the ground-state DFT charge density and preserves the multipole moments that govern long-range electrostatics. While these charges accurately predict long-range behaviour, in practice, they are limited by their reliance on fixed, heuristic parameters and a constrained solver that becomes numerically unstable for complex or covalent systems. In this work, we present opt-DDAP, which solves this limitation by reformulating the algorithm as a differentiable computational graph. This reformulation allows for the optimisation of Gaussian basis parameters and the reciprocal-space cutoff using automatic differentiation. To ensure numerical robustness through this automatic differentiation process, we replace the conventional Lagrange-multiplier approach with a pseudo-inverse solution followed by charge renormalisation, maintaining stability even in the presence of ill-conditioned matrices. We validate the framework on NaCl vacancy supercells and on MoS$_2$, demonstrating faithful reconstruction of both absolute and difference charge densities. The optimised charges are intended to serve as inputs to effective electrostatic models in machine-learning and empirical interatomic potentials that incorporate long-range interactions.

cond-mat.mtrl-sci

Efficient periodic density functional theory calculations of charged molecules and surfaces using Coulomb kernel truncation

Density functional theory (DFT) calculations of charged molecules and surfaces are critical to applications in electro-catalysis, energy materials and related fields of materials science. DFT implementations such as the Vienna ab-initio Simulation Package (VASP) compute the electrostatic potential under 3D periodic boundary conditions, necessitating charge neutrality. In this work, we implement 0D and 2D periodic boundary conditions to facilitate DFT calculations of charged molecules and surfaces respectively. We implement these boundary conditions using the Coulomb kernel truncation method. Our implementation computes the potential under 0D and 2D boundary conditions by selectively subtracting unwanted long-range interactions in the potential computed under 3D boundary conditions. By combining the Coulomb kernel truncation method with a computationally efficient padding approach, we remove nonphysical potentials from vacuum in 0D and 2D systems. To illustrate the computational efficiency of our method, we perform large supercell calculations of the formation energy of a charged chlorine defect on a sodium chloride (001) surface and perform long time-scale molecular dynamics simulations on a stepped gold (211) | water electrode-electrolyte interface.

cond-mat.mtrl-sci

How to verify the precision of density-functional-theory implementations via reproducible and universal workflows

In the past decades many density-functional theory methods and codes adopting periodic boundary conditions have been developed and are now extensively used in condensed matter physics and materials science research. Only in 2016, however, their precision (i.e., to which extent properties computed with different codes agree among each other) was systematically assessed on elemental crystals: a first crucial step to evaluate the reliability of such computations. We discuss here general recommendations for verification studies aiming at further testing precision and transferability of density-functional-theory computational approaches and codes. We illustrate such recommendations using a greatly expanded protocol covering the whole periodic table from Z=1 to 96 and characterizing 10 prototypical cubic compounds for each element: 4 unaries and 6 oxides, spanning a wide range of coordination numbers and oxidation states. The primary outcome is a reference dataset of 960 equations of state cross-checked between two all-electron codes, then used to verify and improve nine pseudopotential-based approaches. Such effort is facilitated by deploying AiiDA common workflows that perform automatic input parameter selection, provide identical input/output interfaces across codes, and ensure full reproducibility. Finally, we discuss the extent to which the current results for total energies can be reused for different goals (e.g., obtaining formation energies).

cond-mat.mtrl-sci