RESUMO
Differentiable programming has facilitated numerous methodological advances in scientific computing. Physics engines supporting automatic differentiation have simpler code, accelerating the development process and reducing the maintenance burden. Furthermore, fully differentiable simulation tools enable direct evaluation of challenging derivatives-including those directly related to properties measurable by experiment-that are conventionally computed with finite difference methods. Here, we investigate automatic differentiation in the context of orbital-free density functional theory (OFDFT) simulations of materials, introducing PROFESS-AD. Its automatic evaluation of properties derived from first derivatives, including functional potentials, forces, and stresses, facilitates the development and testing of new density functionals, while its direct evaluation of properties requiring higher-order derivatives, such as bulk moduli, elastic constants, and force constants, offers more concise implementations than conventional finite difference methods. For these reasons, PROFESS-AD serves as an excellent prototyping tool and provides new opportunities for OFDFT.
RESUMO
The properties of a material depend on how its atoms are arranged, and predicting these arrangements from first principles is a longstanding challenge. Orbital-free density functional theory provides a quantum-mechanical model based solely on the electron density, not individual wave functions. The resulting speedups make it attractive for random structure searching, whereby random configurations of atoms are relaxed to local minima in the energy landscape. We use this strategy to map the low-energy crystal structures of Li, Na, Mg, and Al at zero pressure. For Li and Na, our searching finds numerous close-packed polytypes of almost-equal energy, consistent with previous efforts to understand their low-temperature forms. For Mg and Al, the searching identifies the expected ground state structures unambiguously, in addition to revealing other low-energy structures. This new role for orbital-free density functional theory-particularly as continued advances make it accurate for more of the periodic table-will expedite crystal structure prediction over wide ranges of compositions and pressures.