-
Notifications
You must be signed in to change notification settings - Fork 33
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
Modified RB and Periodic torsions #615
Open
bc118
wants to merge
19
commits into
mosdef-hub:old_main
Choose a base branch
from
bc118:mod_std_torsions
base: old_main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
4fb9c1f
modified torsion potentials and added new Mie potential
bc118 804b1fe
modified torsion potentials and added new Mie potential
bc118 391e356
changed periodic torsion constant
bc118 09ff27c
removed the MiePotential_n_6.json file
bc118 721d9ca
changed RB RyckaertBellemansTorsionPotential.json angle to psi
bc118 c7dbac1
fix tests for changing RB phi to psi
bc118 60a5150
fix tests 2 for changing RB phi to psi
bc118 7345ba2
fix tests 3 for modifying periodic formulas.
bc118 ab379cb
fix tests 4 changed files xmls from RB phi to psi.
bc118 18b9b4d
fix tests 4 changed files xmls from RB phi to psi.
bc118 29bddb8
fix tests 4 changed files xmls from RB phi to psi.
bc118 5815d7b
Merge branch 'mosdef-hub:master' into mod_std_torsions
bc118 8ac6eb7
changed RB from phi to psi in convert_foyer_xml.py
bc118 2af112e
changed RB from phi to psi in convert_foyer_xml.py
bc118 462dfe3
changed c_x to cx for RB torsions in test_reference_xmls.py
bc118 bc70b10
fix test_forcefield related bugs
daico007 e4432de
Change phi to psi in convert_parmed
daico007 c44a03d
Merge branch 'master' into mod_std_torsions
daico007 37797b0
Merge branch 'master' into mod_std_torsions
daico007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "PeriodicTorsionPotential", | ||
"expression": "k * (1 + cos(n * phi - phi_eq))", | ||
"expression": "k0 + k1 * (1 + cos(1 * phi - phi_eq1)) + k2 * (1 + cos(2 * phi - phi_eq2)) + k3 * (1 + cos(3 * phi - phi_eq3)) + k4 * (1 + cos(4 * phi - phi_eq4)) + k5 * (1 + cos(5 * phi - phi_eq5))", | ||
"independent_variables": "phi" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "RyckaertBellemansTorsionPotential", | ||
"expression": "c0 * cos(phi)**0 + c1 * cos(phi)**1 + c2 * cos(phi)**2 + c3 * cos(phi)**3 + c4 * cos(phi)**4 + c5 * cos(phi)**5", | ||
"independent_variables": "phi" | ||
"expression": "c0 + c1 * cos(psi)**1 + c2 * cos(psi)**2 + c3 * cos(psi)**3 + c4 * cos(psi)**4 + c5 * cos(psi)**5", | ||
"independent_variables": "psi" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -15,32 +15,48 @@ | |||||
<BondTypes expression="0.5 * k * (r-r_eq)**2"> | ||||||
<ParametersUnitDef parameter="r_eq" unit="nm"/> | ||||||
<ParametersUnitDef parameter="k" unit="kJ/(mol*nm**2)"/> | ||||||
<BondType name="BondType1" type1='C' type2='C'> | ||||||
<BondType name="BondType1" type1="C" type2="C"> | ||||||
<Parameters> | ||||||
<Parameter name='r_eq' value="0.1324"/> | ||||||
<Parameter name='k' value="493460.96"/> | ||||||
<Parameter name="r_eq" value="0.1324"/> | ||||||
<Parameter name="k"value="493460.96"/> | ||||||
</Parameters> | ||||||
</BondType> | ||||||
</BondTypes> | ||||||
<AngleTypes expression="0.5 * k * (theta-theta_eq)**2"> | ||||||
<ParametersUnitDef parameter="theta_eq" unit="radian"/> | ||||||
<ParametersUnitDef parameter="k" unit="kJ/(mol*radian**2)"/> | ||||||
<AngleType name="AngleType1" type1='C' type2='C' type3="C"> | ||||||
<AngleType name="AngleType1" type1="'C" type2="'C'" type3="C"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
<Parameters> | ||||||
<Parameter name='theta_eq' value="2.12598556185"/> | ||||||
<Parameter name='k' value="584.42112"/> | ||||||
<Parameter name="theta_eq" value="2.12598556185"/> | ||||||
<Parameter name="k" value="584.42112"/> | ||||||
</Parameters> | ||||||
</AngleType> | ||||||
</AngleTypes> | ||||||
<DihedralTypes expression="k * (1 + cos(n * theta - theta_0))"> | ||||||
<ParametersUnitDef parameter="k" unit="kJ/mol"/> | ||||||
<ParametersUnitDef parameter="n" unit="dimensionless"/> | ||||||
<ParametersUnitDef parameter="theta_0" unit="radian"/> | ||||||
<DihedralTypes expression="k0 + k1 * (1 + cos(1 * phi - phi_eq1)) + k2 * (1 + cos(2 * phi - phi_eq2)) + k3 * (1 + cos(3 * phi - phi_eq3)) + k4 * (1 + cos(4 * phi - phi_eq4)) + k5 * (1 + cos(5 * phi - phi_eq5))""> | ||||||
<ParametersUnitDef parameter="k0" unit="kJ/mol"/> | ||||||
<ParametersUnitDef parameter="k1" unit="kJ/mol"/> | ||||||
<ParametersUnitDef parameter="phi_eq1" unit="radian"/> | ||||||
<ParametersUnitDef parameter="k2" unit="kJ/mol"/> | ||||||
<ParametersUnitDef parameter="phi_eq2" unit="radian"/> | ||||||
<ParametersUnitDef parameter="k3" unit="kJ/mol"/> | ||||||
<ParametersUnitDef parameter="phi_eq3" unit="radian"/> | ||||||
<ParametersUnitDef parameter="k4" unit="kJ/mol"/> | ||||||
<ParametersUnitDef parameter="phi_eq4" unit="radian"/> | ||||||
<ParametersUnitDef parameter="k5" unit="kJ/mol"/> | ||||||
<ParametersUnitDef parameter="phi_eq5" unit="radian"/> | ||||||
<DihedralType name="DihedralType1" type1="" type2="C" type3="C" type4=""> | ||||||
<Parameters> | ||||||
<Parameter name='k' value="27.8236"/> | ||||||
<Parameter name='n' value="2"/> | ||||||
<Parameter name='theta_0' value="3.14159265359"/> | ||||||
<Parameter name="k0" value="0"/> | ||||||
<Parameter name="k1" value="0"/> | ||||||
<Parameter name="phi_eq1" value="0"/> | ||||||
<Parameter name="k2" value="27.8236"/> | ||||||
<Parameter name="phi_eq2" value="3.14159265359"/> | ||||||
<Parameter name="k3" value="0"/> | ||||||
<Parameter name="phi_eq3" value="0"/> | ||||||
<Parameter name="k4" value="0"/> | ||||||
<Parameter name="phi_eq4" value="0"/> | ||||||
<Parameter name="k5" value="0"/> | ||||||
<Parameter name="phi_eq5" value="0"/> | ||||||
</Parameters> | ||||||
</DihedralType> | ||||||
</DihedralTypes> | ||||||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
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.
After spending some more thought on this, we might want to be careful with this eqn, especially regarding how many terms we want to support. As in, can we keep the old untouched and create a different/derivative for 5 terms, 4 terms, etc. More ideas/thoughts are welcome
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.
Yeah, I hear what you mean. I think, If you do not supported fixed terms it may be harder to parse when you don’t know what is there for the engines. I believe We should be consistent, meaning if RB and OPLS is fixed this should be too.
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.
I also don’t believe I saw anything ever past n=5 or power=5, which are both there converting to one or the other. The fixed term way in my mind is consistent for programming and the readers. I will make the general solution working in GOMC so it is the same as others.
I’m for the fixed one to the 5th power since all other ones RB and OPLS are fixed too. , but open if there is a specific reason not to do it that way.
Interested to hear what other think.
Though, many derivatives means that the FFs won’t be directly shareable. Whatever we pick we should stick to it as a general solution and not make derivative of it, or it will be hard or impossible to share FFs without manually rewriting or fixing to some extent.
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.
After additional though, if we decide to use the original periodic form, we should have additional check for the input variables. For example:
The valuables must me k1, … kx, n1, …, nx or phi1, …, phix. This will ensure the FFs are shareable.
k1 and phi1 must have n1=1 . Kx and phix must have nx =x
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.
Is this PR ready to close then, based on this comment thread?