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
b593e034
Commit
b593e034
authored
Feb 02, 2012
by
Peter Eastman
Browse files
Replaced TIP4P with TIP4P-Ew
parent
e2d8c16e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
2 deletions
+32
-2
wrappers/python/simtk/openmm/app/Modeller.py
wrappers/python/simtk/openmm/app/Modeller.py
+1
-1
wrappers/python/simtk/openmm/app/data/tip4pew.xml
wrappers/python/simtk/openmm/app/data/tip4pew.xml
+30
-0
wrappers/python/simtk/openmm/app/modeller.py
wrappers/python/simtk/openmm/app/modeller.py
+1
-1
No files found.
wrappers/python/simtk/openmm/app/Modeller.py
View file @
b593e034
...
...
@@ -105,7 +105,7 @@ class Modeller(object):
if
sites
==
4
:
newTopology
.
addAtom
(
'M'
,
None
,
newResidue
)
newPositions
.
append
(
0.7
4397
58
7
*
po
+
0.1
28012065
*
ph1
+
0.1
28012065
*
ph2
)
newPositions
.
append
(
0.7
866465
58
*
po
+
0.1
06676721
*
ph1
+
0.1
06676721
*
ph2
)
elif
sites
==
5
:
newTopology
.
addAtom
(
'M1'
,
None
,
newResidue
)
newTopology
.
addAtom
(
'M2'
,
None
,
newResidue
)
...
...
wrappers/python/simtk/openmm/app/data/tip4p.xml
→
wrappers/python/simtk/openmm/app/data/tip4p
ew
.xml
View file @
b593e034
<ForceField>
<AtomTypes>
<Type
name=
"tip4p-O"
class=
"OW"
element=
"O"
mass=
"15.99943"
/>
<Type
name=
"tip4p-H"
class=
"HW"
element=
"H"
mass=
"1.007947"
/>
<Type
name=
"tip4p-M"
class=
"MW"
mass=
"0"
/>
<Type
name=
"tip4p
ew
-O"
class=
"OW"
element=
"O"
mass=
"15.99943"
/>
<Type
name=
"tip4p
ew
-H"
class=
"HW"
element=
"H"
mass=
"1.007947"
/>
<Type
name=
"tip4p
ew
-M"
class=
"MW"
mass=
"0"
/>
</AtomTypes>
<Residues>
<Residue
name=
"HOH"
>
<Atom
name=
"O"
type=
"tip4p-O"
/>
<Atom
name=
"H1"
type=
"tip4p-H"
/>
<Atom
name=
"H2"
type=
"tip4p-H"
/>
<Atom
name=
"M"
type=
"tip4p-M"
/>
<VirtualSite
type=
"average3"
index=
"3"
atom1=
"0"
atom2=
"1"
atom3=
"2"
weight1=
"0.7
4397
58
7
"
weight2=
"0.1
28012065
"
weight3=
"0.1
28012065
"
/>
<Atom
name=
"O"
type=
"tip4p
ew
-O"
/>
<Atom
name=
"H1"
type=
"tip4p
ew
-H"
/>
<Atom
name=
"H2"
type=
"tip4p
ew
-H"
/>
<Atom
name=
"M"
type=
"tip4p
ew
-M"
/>
<VirtualSite
type=
"average3"
index=
"3"
atom1=
"0"
atom2=
"1"
atom3=
"2"
weight1=
"0.7
866465
58"
weight2=
"0.1
06676721
"
weight3=
"0.1
06676721
"
/>
<Bond
from=
"0"
to=
"1"
/>
<Bond
from=
"0"
to=
"2"
/>
</Residue>
...
...
@@ -22,9 +22,9 @@
<Angle
class1=
"HW"
class2=
"OW"
class3=
"HW"
angle=
"1.82421813418"
k=
"836.8"
/>
</HarmonicAngleForce>
<NonbondedForce
coulomb14scale=
"0.833333"
lj14scale=
"0.5"
>
<Atom
type=
"tip4p-O"
charge=
"0"
sigma=
"0.315365"
epsilon=
"0.64852"
/>
<Atom
type=
"tip4p-H"
charge=
"0.52"
sigma=
"1"
epsilon=
"0"
/>
<Atom
type=
"tip4p-M"
charge=
"-1.04"
sigma=
"1"
epsilon=
"0"
/>
<Atom
type=
"tip4p
ew
-O"
charge=
"0"
sigma=
"0.315365"
epsilon=
"0.64852"
/>
<Atom
type=
"tip4p
ew
-H"
charge=
"0.52
422
"
sigma=
"1"
epsilon=
"0"
/>
<Atom
type=
"tip4p
ew
-M"
charge=
"-1.04
844
"
sigma=
"1"
epsilon=
"0"
/>
</NonbondedForce>
</ForceField>
wrappers/python/simtk/openmm/app/modeller.py
View file @
b593e034
...
...
@@ -105,7 +105,7 @@ class Modeller(object):
if
sites
==
4
:
newTopology
.
addAtom
(
'M'
,
None
,
newResidue
)
newPositions
.
append
(
0.7
4397
58
7
*
po
+
0.1
28012065
*
ph1
+
0.1
28012065
*
ph2
)
newPositions
.
append
(
0.7
866465
58
*
po
+
0.1
06676721
*
ph1
+
0.1
06676721
*
ph2
)
elif
sites
==
5
:
newTopology
.
addAtom
(
'M1'
,
None
,
newResidue
)
newTopology
.
addAtom
(
'M2'
,
None
,
newResidue
)
...
...
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