Stress and heat flux via automatic differentiation

Marcel F. Langer, J. Thorben Frank, Florian Knoop
5/2/2023
cond-mat.mtrl-scics.LGphysics.comp-ph

No official code found. Best implementation: thorben-frank/mlff (138 stars, MIT, last commit 2025-06-02). 1 more below.

Abstract

Machine-learning potentials provide computationally efficient and accurate approximations of the Born-Oppenheimer potential energy surface. This potential determines many materials properties and simulation techniques usually require its gradients, in particular forces and stress for molecular dynamics, and heat flux for thermal transport properties. Recently developed potentials feature high body order and can include equivariant semi-local interactions through message-passing mechanisms. Due to their complex functional forms, they rely on automatic differentiation (AD), overcoming the need for manual implementations or finite-difference schemes to evaluate gradients. This study demonstrates a unified AD approach to obtain forces, stress, and heat flux for such potentials, and provides a model-independent implementation. The method is tested on the Lennard-Jones potential, and then applied to predict cohesive properties and thermal conductivity of tin selenide using an equivariant message-passing neural network potential.

View on arXivView PDF

Code Implementations(2)

thorben-frank/mlffCommunity100%
MIT

Build neural networks for machine learning force fields with JAX

13839PythonSep 30, 20221 years agoMIT
deep-learningforce-fieldsmachine-learningmolecular-dynamics
sirmarcel/glpCommunity100%
JAXMIT

tools for graph-based machine-learning potentials in jax

276Shell, PythonMar 27, 20232 years agoMIT
jax

Similar Papers

Cite this paper

@article{langer2023stress,
  title  = {Stress and heat flux via automatic differentiation},
  author = {Marcel F. Langer and J. Thorben Frank and Florian Knoop},
  year   = {2023},
  eprint = {2305.01401},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.01401v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.01401.svg)](https://codeofpaper.com/paper/2305.01401)

Discussion