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
b1b4e547
Commit
b1b4e547
authored
Jun 11, 2009
by
Christopher Bruns
Browse files
Increased well depth for HelloArgon.cpp
Decreased step size and simulation time
parent
9fc0fef0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
examples/HelloArgon.cpp
examples/HelloArgon.cpp
+4
-5
No files found.
examples/HelloArgon.cpp
View file @
b1b4e547
...
...
@@ -15,8 +15,7 @@
// coordinates, defined later in this source file.
void
writePdb
(
const
OpenMM
::
OpenMMContext
&
context
);
// simulateArgon() subroutine
void
simulateArgon
()
void
simulateArgon
()
{
// Load any shared libraries containing GPU implementations
OpenMM
::
Platform
::
loadPluginsFromDirectory
(
...
...
@@ -34,12 +33,12 @@ void simulateArgon()
system
.
addParticle
(
39.95
);
// mass, grams per mole
// charge, sigma, well depth
nonbond
->
addParticle
(
0.0
,
0.3350
,
0.
001603
);
nonbond
->
addParticle
(
0.0
,
0.3350
,
0.
996
);
initialPositions
[
a
]
=
OpenMM
::
Vec3
(
0.5
*
a
,
0
,
0
);
// location, nanometers
}
OpenMM
::
VerletIntegrator
integrator
(
0.0
2
0
);
// step size in picoseconds
OpenMM
::
VerletIntegrator
integrator
(
0.00
4
);
// step size in picoseconds
// Let OpenMM Context choose best platform.
OpenMM
::
OpenMMContext
context
(
system
,
integrator
);
...
...
@@ -50,7 +49,7 @@ void simulateArgon()
context
.
setPositions
(
initialPositions
);
// Simulate
while
(
context
.
getTime
()
<
50
0.0
)
{
// picoseconds
while
(
context
.
getTime
()
<
1
0.0
)
{
// picoseconds
writePdb
(
context
);
// output coordinates
// Run 100 steps at a time, for efficient use of OpenMM
integrator
.
step
(
100
);
...
...
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