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
4c9bb3de
Commit
4c9bb3de
authored
Aug 05, 2019
by
Andreas Krämer
Browse files
recalculated CHARMM energies for Drude and NBFIX tests
parent
7719f4aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wrappers/python/tests/TestCharmmFiles.py
wrappers/python/tests/TestCharmmFiles.py
+3
-3
No files found.
wrappers/python/tests/TestCharmmFiles.py
View file @
4c9bb3de
...
...
@@ -112,7 +112,7 @@ class TestCharmmFiles(unittest.TestCase):
state
=
con
.
getState
(
getEnergy
=
True
,
enforcePeriodicBox
=
True
)
ene
=
state
.
getPotentialEnergy
().
value_in_unit
(
kilocalories_per_mole
)
self
.
assertAlmostEqual
(
ene
,
15
490.0033559
,
delta
=
0.05
)
self
.
assertAlmostEqual
(
ene
,
15
559.71602
,
delta
=
0.05
)
def
test_Drude
(
self
):
"""Test CHARMM systems with Drude force field"""
...
...
@@ -125,14 +125,14 @@ class TestCharmmFiles(unittest.TestCase):
# Now compute the full energy
plat
=
Platform
.
getPlatformByName
(
'Reference'
)
system
=
psf
.
createSystem
(
params
,
nonbondedMethod
=
PME
)
system
=
psf
.
createSystem
(
params
,
nonbondedMethod
=
PME
,
ewaldErrorTolerance
=
0.00005
)
integrator
=
DrudeLangevinIntegrator
(
300
*
kelvin
,
1.0
/
picosecond
,
1
*
kelvin
,
10
/
picosecond
,
0.001
*
picoseconds
)
con
=
Context
(
system
,
integrator
,
plat
)
con
.
setPositions
(
crd
.
positions
)
state
=
con
.
getState
(
getEnergy
=
True
,
enforcePeriodicBox
=
True
)
ene
=
state
.
getPotentialEnergy
().
value_in_unit
(
kilocalories_per_mole
)
self
.
assertAlmostEqual
(
ene
,
-
1
831.5
4
,
delta
=
0.5
)
self
.
assertAlmostEqual
(
ene
,
-
1
788.3664
4
,
delta
=
1.0
)
def
test_Lonepair
(
self
):
"""Test the lonepair facilities, in particular the colinear type of lonepairs"""
...
...
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