Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
68318b9b
Commit
68318b9b
authored
Nov 16, 2011
by
Mark Friedrichs
Browse files
Modify assignment of multipole axis atoms to match Tinker for ambiguous cases
Use GK overlap factors for Grycuk algorithm (was OBC)
parent
df76e34d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+20
-1
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
68318b9b
...
...
@@ -3230,6 +3230,16 @@ class AmoebaMultipoleGenerator:
if
(
ky
==
0
):
zaxis
=
bondedAtomZIndex
xaxis
=
bondedAtomXIndex
if
(
bondedAtomXType
==
bondedAtomZType
and
xaxis
<
zaxis
):
swapI
=
zaxis
zaxis
=
xaxis
xaxis
=
swapI
else
:
for
bondedAtomXIndex
in
bondedAtomIndices
:
bondedAtomX1Type
=
int
(
data
.
atomType
[
data
.
atoms
[
bondedAtomXIndex
]])
if
(
bondedAtomX1Type
==
kx
and
bondedAtomXIndex
!=
bondedAtomZIndex
and
bondedAtomXIndex
<
xaxis
):
xaxis
=
bondedAtomXIndex
savedMultipoleDict
=
multipoleDict
hit
=
1
else
:
...
...
@@ -3286,6 +3296,14 @@ class AmoebaMultipoleGenerator:
if
(
ky
==
0
):
zaxis
=
bondedAtomZIndex
xaxis
=
bondedAtomXIndex
# select xaxis w/ smallest index
for
bondedAtomXIndex
in
bondedAtom13Indices
:
bondedAtomX1Type
=
int
(
data
.
atomType
[
data
.
atoms
[
bondedAtomXIndex
]])
if
(
bondedAtomX1Type
==
kx
and
bondedAtomXIndex
!=
bondedAtomZIndex
and
bondedAtomZIndex
in
bonded12ParticleSets
[
bondedAtomXIndex
]
and
bondedAtomXIndex
<
xaxis
):
xaxis
=
bondedAtomXIndex
savedMultipoleDict
=
multipoleDict
hit
=
3
else
:
...
...
@@ -3731,7 +3749,8 @@ class AmoebaGeneralizedKirkwoodGenerator:
radius
=
self
.
getAmoebaTypeRadius
(
data
,
bonded12ParticleSets
[
atomIndex
],
atomIndex
)
else
:
radius
=
self
.
getBondiTypeRadius
(
data
,
bonded12ParticleSets
[
atomIndex
],
atomIndex
)
shct
=
self
.
getObcShct
(
data
,
atomIndex
)
#shct = self.getObcShct(data, atomIndex)
shct
=
0.69
force
.
addParticle
(
multipoleParameters
[
0
],
radius
,
shct
)
parsers
[
"AmoebaGeneralizedKirkwoodForce"
]
=
AmoebaGeneralizedKirkwoodGenerator
.
parseElement
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment