Best way to update positions and velocities for an OpenFF Interchange? #37
Replies: 3 comments 1 reply
-
(I've transferred this from bespokefit/discussions to our general discussions repo since it appears to be a more general question) Without having tried all of the ways to digest results from OpenMM, this should be fine. There is some magic under the hood that's meant to, if it sees OpenMM
In general, errors should be loud (if all positions are silently converted between nanometers and Angstroms, the crash should be rapid and violent). We have (Extra caveat - you mentioned forces, which aren't explicitly stored anywhere in our infrastructure since, ironically, forces themselves don't enter the picture until long after force field world has quieted down. If it's in principle just another unit-bearing Nx3 array, we'd think about adding it in somewhere - velocities are already implemented with just 1 LOC.) All this being said - if something looks off, it could certainly be a bug & I'll have a closer look. |
Beta Was this translation helpful? Give feedback.
-
I'm suspicious about adding forces, since one would have to check that they are consistent with the force field definitions - which I don't think is within OpenFF representations scope. I would say the force is what the MD engine says it is, and leave OpenFF toolkits out of the whole argument :) |
Beta Was this translation helpful? Give feedback.
-
Apologies, I realize I wrote "forces" in the title when I meant "positions," now corrected. The current behavior fully covers my use case. |
Beta Was this translation helpful? Give feedback.
-
I'd like to update an interchange with positions and trajectories from an OpenMM simulation. Something like:
Will this cause any errors or issues downstream? I am nervous about units or writing the interchange back to OpenMM or another platform.
Beta Was this translation helpful? Give feedback.
All reactions