-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I am not sure if this is a known issue, but I noticed that CVs which rely on the barycenter has a small issue in OpenMM.
To my knowledge, OpenMM wraps particle coordinates internally when using PBCs. As a result, when an atom group sits directly on the boundary, the barycenter is calculated to be in the center of the box, rather than on the edge. (See the attached image).
I think a way to remedy this would be to use the angular method mentioned in this Wikipedia article: https://en.wikipedia.org/wiki/Center_of_mass. I am going to implement this for myself, but would recommend looking into it for the package.
Thank you! :)

Metadata
Metadata
Assignees
Labels
No labels