-
Notifications
You must be signed in to change notification settings - Fork 5
Long range interactions
Incorporating long-range interactions in neural network potentials (NNPs) typically involves combining analytical expressions for electrostatic and long-range dispersion contributions with the neural network's predictions. For long-range electrostatics, this means predicting partial charges in addition to atomic energies and employing an appropriate implementation of the Coulomb potential (or modified versions that accommodate cutoff distances). The underlying assumption is that the total energy of a system can be decomposed into short-range contributions (predicted by the NNP within its cutoff), long-range electrostatic interactions, and long-range dispersion forces, with the latter two not being directly predicted by the network. The resulting energy expression is then:
Certain neural network potentials, such as PhysNet and AimNet2, already include the capability to predict partial charges, while others can be modified to do so. To enable the prediction of additional per-atom properties across various network architectures, the following approaches can be employed:
Where possible, a separate output head (a final linear layer) is implemented for each scalar value that needs to be predicted. This approach ensures that the predictions are independent, modular, and easily extendable.
In cases where output heads are not feasible (e.g., PhysNet, which lacks output heads, or architectures that do not support this structure), the output layer can be modified to return a vector per atom instead of a scalar, thereby increasing the dimensionality of the output to accommodate multiple per-atom properties.
Partial charges predicted by neural networks are not inherently constrained to sum to the total integer charge Q
of the system. To enforce charge conservation, a postprocessing operation is applied to the predicted charges. Several methods have been developed to achieve this; we have implemented the approach described in Ref
:
This method involves summing the predicted partial charges
The electronic potential (a scalar field) can be described using Coulomb's law for pointcharges:
Using this equation (and others based on the coulomb potential for cutoffs), scale quadratically with the number of atoms in the system. Here, we implement the following version to calculate the electronic potential using predicted partial charges:
- Coulomb's law at long-range and a damped term at small distances
Ref
Partial charges can be add