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
73a841a1
Commit
73a841a1
authored
Sep 22, 2016
by
Peter Eastman
Browse files
Fixed friction coefficient in explicit solvent benchmarks
parent
9a0fcf72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/benchmark.py
examples/benchmark.py
+3
-1
No files found.
examples/benchmark.py
View file @
73a841a1
...
@@ -63,11 +63,13 @@ def runOneTest(testName, options):
...
@@ -63,11 +63,13 @@ def runOneTest(testName, options):
else
:
else
:
method
=
app
.
CutoffPeriodic
method
=
app
.
CutoffPeriodic
cutoff
=
1
*
unit
.
nanometers
cutoff
=
1
*
unit
.
nanometers
friction
=
1
*
(
1
/
unit
.
picoseconds
)
else
:
else
:
ff
=
app
.
ForceField
(
'amber99sb.xml'
,
'amber99_obc.xml'
)
ff
=
app
.
ForceField
(
'amber99sb.xml'
,
'amber99_obc.xml'
)
pdb
=
app
.
PDBFile
(
'5dfr_minimized.pdb'
)
pdb
=
app
.
PDBFile
(
'5dfr_minimized.pdb'
)
method
=
app
.
CutoffNonPeriodic
method
=
app
.
CutoffNonPeriodic
cutoff
=
2
*
unit
.
nanometers
cutoff
=
2
*
unit
.
nanometers
friction
=
91
*
(
1
/
unit
.
picoseconds
)
if
options
.
heavy
:
if
options
.
heavy
:
dt
=
0.005
*
unit
.
picoseconds
dt
=
0.005
*
unit
.
picoseconds
constraints
=
app
.
AllBonds
constraints
=
app
.
AllBonds
...
@@ -77,7 +79,7 @@ def runOneTest(testName, options):
...
@@ -77,7 +79,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
)
integ
=
mm
.
LangevinIntegrator
(
300
*
unit
.
kelvin
,
friction
,
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
...
...
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