The stress is (minus) the virial divided by the volume. Since the volume can change during optimization, and stress is the variable that is usually used for DFT geometry optimization, it would be nice to be able to directly give a stress tolerance to the geometry optimization.
Additionally, I find it a bit weird that the pressure is computed from the trace of the virial without any division by the volume:
|
pressure = -austrip(tr(geoopt_state.virial)) / 3 |
Could that be a bug?
The stress is (minus) the virial divided by the volume. Since the volume can change during optimization, and stress is the variable that is usually used for DFT geometry optimization, it would be nice to be able to directly give a stress tolerance to the geometry optimization.
Additionally, I find it a bit weird that the pressure is computed from the trace of the virial without any division by the volume:
GeometryOptimization.jl/src/callbacks.jl
Line 54 in 8701710