-
Notifications
You must be signed in to change notification settings - Fork 15
Feature Morse Potential #364
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
base: devel
Are you sure you want to change the base?
Conversation
…etrisation and update docstrings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks great and all the tests are passing. Let me know when to take another look.
Thanks for the review, I implemented all of your feedback now. For the build tests it appears that |
Thanks, I'll be able to look again on Monday. Don't worry about the CI: Windows has been broken for a long time and the Linux Python 3.10 build has just become incredibly slow in the past few runs. |
Introduction
This PR expands the restraints functionality of sire in order to include Morse potential restraints, which can be used in normal and alchemical simulations within sire. This restraints expansion in theory enables alternative route to scaffold-hopping & ring-breaking FEP already implemented in sire as part of #272.
Proposed Changes
Specifically this PR does the following:
In the end the user can create Morse restraints, for example:
creates a Morse potential restraint between atoms 0 and 4.
If the molecule contains a bond that is being alchemically annihilated at λ=1, automatic parametrisation can be used to detect the atoms and match Morse restraint parameters to the Harmonic bond as closely as possible.
Because most of the restraints code is adapted from already existing restraints classes, these restraints support the same functionality as others (custom force values, usage of containers for passing atoms, multiple restraints, etc.)
Potential further additions
This PR only introduces basic Morse potential restraint functionality, and can be potentially expanded (or submitted in future as a PR) with further modifications which are currently highly experimental:
Checklists
Suggested reviewers:
@lohedges