-
Notifications
You must be signed in to change notification settings - Fork 26
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
Virtual Sites Implementation #299
Comments
Hi @SofiaBariami as I told you on Monday Sire doesn't support virtual sites for energy calculations so system.energy() is not going to work. If you refer to the notes from our meeting on Monday I told to use integrator.getPotentialEnergy() to get the single point energy calculated by OpenMM. This means you need to create an OpenMM Move to initialise the integrator. So your script will need code like
See how this is done in https://github.com/michellab/Sire/blob/devel/wrapper/Tools/OpenMMMD.py It looks like your C++ warning are because you declared variables inside a if statement but you assign values in another block, the compiler is unable to tell if this could lead to runtime errors. This is best avoided by rethinking where and when you declare your variables. Focus on this once this code is actually executed by your python scripts. |
hi @SofiaBariami have you been able to progress with this issue ? keep me posted. |
Hi Julien, |
The problem was that I had also written code for openmmmdintegrator.cpp, that wasn't needed. After I commended it out of the file, the implementation of the VS worked. The energies are different from the ones reported from the Cole group, so I am now working to fix that. |
Great ! Check out the thread here openmm/openmm#2045 , it could be with how you build excluded pairs for non-bonded interactions
Julien
…--------------------------------------------------------------
Dr. Julien Michel,
Senior Lecturer
Room 263, School of Chemistry
University of Edinburgh
David Brewster road
Edinburgh, EH9 3FJ
United Kingdom
phone: +44 (0)131 650 4797
http://www.julienmichel.net/
-------------------------------------------------------------
On Fri, Nov 1, 2019 at 3:49 PM Sofia Bariami <[email protected]<mailto:[email protected]>> wrote:
The problem was that I had also written code for openmmmdintegrator.cpp, that wasn't needed. After I commended it out of the file, the implementation of the VS worked. The energies are different from the ones reported from the Cole group, so I am now working to fix that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#299?email_source=notifications&email_token=ACZN3ZFYUEPITDMLNMVCBOTQRRFX7A5CNFSM4JEXQT52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC3KAEA#issuecomment-548839440>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACZN3ZCWPKYSPJ6T6YCVGQLQRRFX7ANCNFSM4JEXQT5Q>.
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
|
I am trying to create a Virtual Site (VS) in Sire with parameters that are stored in a "virtual-sites" property of a molecule. I am testing my implementation by running single point energy calculations. However, the energy that I get when running the calculation with the molecule containing VS is the same as the one that I get without the VS. That means that Sire does not recognise the implementation of the VS. To implement the VS, I followed the same process that was followed for the Restraints and TIP4P, using the OpenMM function LocalCoordinatesSite, instead of the ThreeParticleAverageSite used for TIP4P. The files that I changed are the the openmmfrenergyst.* and the openmmmdintegrator.*.
The main part of the code that I added is the following:
(You can find all the files at the qube_combRules-feature_xml branch)
My question is if this is the correct way to set the VS:
Also, the code compiles, but there are warnings like the following:
Should I worry about them?
Finally, the script that I am using, to get the energies, along with the input files can be found here and here.
I would gladly appreciate some comments/ thoughts.
Thanks a lot!
The text was updated successfully, but these errors were encountered: