-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Incorrect Dihedral Angles #801
Comments
Fixes OpenChemistry#801 Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
Not sure why the method doesn't work either. At first, I thought it was an atom order thing, but .. much easier to just fall back to the standard method. (I'm going to try to fix the Stackoverflow method as I finish up the force field framework.. definitely worth saving some time when doing molecular dynamics.) |
Here are the build results |
Avogadro version: 1.95.1
Desktop version: (please complete the following information):
Describe the bug
When measuring dihedral angles, sometimes the wrong value is obtained.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Correct dihedral calculated (see attached test XYZ file).
Screenshots
image
Additional context
Formula in angletools.h at first glance appears to match the accompanying Stackoverflow citation (Python code). The cited Python code, the current formula from Wikipedia, and Avogadro 1.2.0 all yield a dihedral of -66.51 degrees, as opposed to the displayed -74.30 degrees in Avogadro 1.95.1. Attached are a test case (dihedral in question is C1 - C2 - C3 - C4), as well as a Jupyter notebook demonstrating formula agreement.
Given that the formula appears correct, I'm not quite sure where the disagreement is coming from.
dihedral.zip
The text was updated successfully, but these errors were encountered: