Open
Conversation
- Pass variable in which AEV is to be stored as reference - Added edge case handling in which no atoms lie within the cutoff radius of each other
… the atom along + and - x, y and axes and finding derivative by first principle
- Added tests for ANI Convenience functions - Added python wrappers and python tests for the convenience functions
greglandrum
suggested changes
Aug 18, 2020
greglandrum
left a comment
There was a problem hiding this comment.
mostly looks good. a few suggestions here
| auto initEnergy = this->dp_forceField->calcEnergy(pos); | ||
|
|
||
| // + - x movement | ||
| pos[3 * this->d_atomIdx] += 1e-5; |
There was a problem hiding this comment.
Please make the displacement amount a const so that you don't have to keep repeating it.
Owner
Author
There was a problem hiding this comment.
I came up with 1e-5 with a little bit of experimentation.
I tried smaller values but anything lesser didn't really improve the accuracy from the torchani derivatives.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the minimization of atomic conformations using the gradients calculated using numeric differentiation from the ANI force field.
The Numeric Differentiation code is in the getGrad function in Code/ForceField/ANI/AtomicContrib.cpp.
The corresponding convenience functions are present in Code/GraphMol/ForceFieldHelpers/ANI/ANI.h.
The python wrappers have also been implemented.