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
17b7569a
"wrappers/vscode:/vscode.git/clone" did not exist on "e59e15b243ebfc1b1a76ffd11c2783a485185b60"
Commit
17b7569a
authored
Apr 14, 2014
by
Jason Swails
Browse files
Update the CHARMM example.
parent
895f9a6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
examples/simulateCharmm.py
examples/simulateCharmm.py
+4
-7
No files found.
examples/simulateCharmm.py
View file @
17b7569a
...
...
@@ -4,20 +4,17 @@ from simtk.unit import *
from
sys
import
stdout
# Read the PSF
psf
=
CharmmP
SF
.
load_from_psf
(
'ala_ala_ala.psf'
)
psf
=
CharmmP
sfFile
(
'ala_ala_ala.psf'
)
# Get the coordinates from the PDB
pdb
=
PDBFile
(
'ala_ala_ala.pdb'
)
# Read and condense the parameter set
params
=
CharmmParameterSet
.
load_set
(
tfile
=
'charmm22.rtf'
,
pfile
=
'charmm22.par'
).
condense
()
# Load the parameter set !! do not forget this !!
psf
.
load_parameters
(
params
)
params
=
CharmmParameterSet
(
'charmm22.rtf'
,
'charmm22.par'
)
# Instantiate the system
system
=
psf
.
createSystem
(
nonbondedMethod
=
NoCutoff
,
nonbondedCutoff
=
None
)
system
=
psf
.
createSystem
(
params
,
nonbondedMethod
=
NoCutoff
,
nonbondedCutoff
=
None
)
integrator
=
LangevinIntegrator
(
300
*
kelvin
,
1
/
picosecond
,
0.002
*
picoseconds
)
simulation
=
Simulation
(
psf
.
topology
,
system
,
integrator
)
simulation
.
context
.
setPositions
(
pdb
.
getPositions
())
...
...
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