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
119944af
Commit
119944af
authored
Sep 10, 2015
by
peastman
Browse files
Merge pull request #1129 from peastman/amoebamts
Use MTSIntegrator for AMOEBA benchmarks
parents
9a3877b9
916f273e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
examples/benchmark.py
examples/benchmark.py
+6
-2
No files found.
examples/benchmark.py
View file @
119944af
...
@@ -52,7 +52,11 @@ def runOneTest(testName, options):
...
@@ -52,7 +52,11 @@ def runOneTest(testName, options):
cutoff
=
2.0
*
unit
.
nanometers
cutoff
=
2.0
*
unit
.
nanometers
vdwCutoff
=
1.2
*
unit
.
nanometers
vdwCutoff
=
1.2
*
unit
.
nanometers
system
=
ff
.
createSystem
(
pdb
.
topology
,
nonbondedMethod
=
app
.
NoCutoff
,
constraints
=
constraints
,
mutualInducedTargetEpsilon
=
epsilon
,
polarization
=
polarization
)
system
=
ff
.
createSystem
(
pdb
.
topology
,
nonbondedMethod
=
app
.
NoCutoff
,
constraints
=
constraints
,
mutualInducedTargetEpsilon
=
epsilon
,
polarization
=
polarization
)
dt
=
0.001
*
unit
.
picoseconds
for
f
in
system
.
getForces
():
if
isinstance
(
f
,
mm
.
AmoebaMultipoleForce
)
or
isinstance
(
f
,
mm
.
AmoebaVdwForce
)
or
isinstance
(
f
,
mm
.
AmoebaGeneralizedKirkwoodForce
)
or
isinstance
(
f
,
mm
.
AmoebaWcaDispersionForce
):
f
.
setForceGroup
(
1
)
dt
=
0.002
*
unit
.
picoseconds
integ
=
mm
.
MTSIntegrator
(
dt
,
[(
0
,
2
),
(
1
,
1
)])
else
:
else
:
if
explicit
:
if
explicit
:
ff
=
app
.
ForceField
(
'amber99sb.xml'
,
'tip3p.xml'
)
ff
=
app
.
ForceField
(
'amber99sb.xml'
,
'tip3p.xml'
)
...
@@ -77,6 +81,7 @@ def runOneTest(testName, options):
...
@@ -77,6 +81,7 @@ def runOneTest(testName, options):
constraints
=
app
.
HBonds
constraints
=
app
.
HBonds
hydrogenMass
=
None
hydrogenMass
=
None
system
=
ff
.
createSystem
(
pdb
.
topology
,
nonbondedMethod
=
method
,
nonbondedCutoff
=
cutoff
,
constraints
=
constraints
,
hydrogenMass
=
hydrogenMass
)
system
=
ff
.
createSystem
(
pdb
.
topology
,
nonbondedMethod
=
method
,
nonbondedCutoff
=
cutoff
,
constraints
=
constraints
,
hydrogenMass
=
hydrogenMass
)
integ
=
mm
.
LangevinIntegrator
(
300
*
unit
.
kelvin
,
91
*
(
1
/
unit
.
picoseconds
),
dt
)
print
(
'Step Size: %g fs'
%
dt
.
value_in_unit
(
unit
.
femtoseconds
))
print
(
'Step Size: %g fs'
%
dt
.
value_in_unit
(
unit
.
femtoseconds
))
properties
=
{}
properties
=
{}
initialSteps
=
5
initialSteps
=
5
...
@@ -95,7 +100,6 @@ def runOneTest(testName, options):
...
@@ -95,7 +100,6 @@ def runOneTest(testName, options):
# Run the simulation.
# Run the simulation.
integ
=
mm
.
LangevinIntegrator
(
300
*
unit
.
kelvin
,
91
*
(
1
/
unit
.
picoseconds
),
dt
)
integ
.
setConstraintTolerance
(
1e-5
)
integ
.
setConstraintTolerance
(
1e-5
)
if
len
(
properties
)
>
0
:
if
len
(
properties
)
>
0
:
context
=
mm
.
Context
(
system
,
integ
,
platform
,
properties
)
context
=
mm
.
Context
(
system
,
integ
,
platform
,
properties
)
...
...
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