openforcefield / standards

A repository of the standards employed across the Open Force Field Consortium.
https://openforcefield.github.io/standards
MIT License
1 stars 3 forks source link

SMIRNOFF: Clarify that constraint distances override equilibrium bond distances #5

Closed mattwthompson closed 2 years ago

mattwthompson commented 3 years ago

The spec states

To constrain the separation between two atoms to their equilibrium bond length, it is critical that a <Bonds> record be specified for those atoms. ... To specify the constraint distance ... specify the distance attribute

I assume that if a constraint distance is specified, the constraint distance overrides the equilibrium bond length, and I'd argue that's the most reasonable interpretation. It is also the current implementation, and works fine with how OpenMM handles constraints. Other engines might do things different

It's also implicit in the spec that when a constraint distance is not specified, the constraint falls back to using the equilibrium bond length. Again, this is reasonable, is the current implementation, and works fine with OpenMM, but might work differently in other engines and should be made more explicit.

SimonBoothroyd commented 2 years ago

+1 - it would be good to formalise this in the spec. Would you be up for opening an OFF-EP for this?