Non-conservative force¶
Non-conservative forces are forces that are not calculated as the negative gradient of a potential energy function, but rather directly predicted by the model, without going through the potential energy. These forces are generally faster to compute than forces derived from the potential energy by automatic differentiation. However, these predictions must be used with care, see https://arxiv.org/abs/2412.11569.
In metatomic models, they are associated with the "non_conservative_force"
or "non_conservative_force/<variant>" name (see Variants),
and must have the following metadata:
Metadata |
Names |
Description |
|---|---|---|
keys |
|
the keys must have a single dimension named |
samples |
|
the samples must be named
|
components |
|
The |
properties |
|
The |
The following simulation engines can use the "non_conservative_force"
output, typically using a non_conservative flag:
Note
If you are adding support for non_conservative_force in a molecular
dynamics engine, metatomic models might predict a non zero total force. You
should consider removing this total force to prevent drift in your
simulations.
Non-conservative stress¶
Similar to the "non_conservative_force", the non-conservative stress is a
stress tensor that is not calculated using derivatives of the potential energy,
but directly predicted by the model. As with forces, they are typically faster
to compute but need to be used with care, see https://arxiv.org/abs/2412.11569.
In metatomic models, they are associated with the "non_conservative_stress"
or "non_conservative_stress/<variant>" name (see Variants),
and must have the following metadata:
Metadata |
Names |
Description |
|---|---|---|
keys |
|
the keys must have a single dimension named |
samples |
|
the samples must be named
|
components |
|
the |
properties |
|
the |
The following simulation engines can use the "non_conservative_stress"
output, typically using a non_conservative flag:


