-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear use of idivf #104
Comments
The I'm not actually sure if you're asking us just to clarify, or to check whether we've implemented it correctly, or to check whether the documentation/description in the OFFXMl is correct... Or all of the above? :) |
It's to check if the documentation is correct. The documentation says |
Ah, I think @diogomart is referring to the OpenMM CustomForce-like Despite writing the wrong formula, division by idivf is happening when torsions are applied. We should fix this in the next SMIRNOFF spec update (and probably change all |
Great, so |
In the ".offxml" file, the torsion potential is written as:
potential="k * (1+cos(periodicity*theta-phase))"
However, according to the documentation,
idivf
divides the barrier height, so the actual potential would look like:potential="(k / idivf) * (1+cos(periodicity*theta-phase))"
Almost all torsions define
idivf
equal to 1.0, making it look like the barrier heightsk
are already divided by the number of 4-atom paths. For the few torsions that setidivf
different from 1.0, it is unclear ifk
is divided byidivf
.The text was updated successfully, but these errors were encountered: