This is part of the OpenMM molecular simulation toolkit.
This is part of the OpenMM molecular simulation toolkit.
See https://openmm.org/development.
See https://openmm.org/development.
Portions copyright (c) 2015 Stanford University and the Authors.
Portions copyright (c) 2015-2026 Stanford University and the Authors.
Authors: Peter Eastman
Authors: Peter Eastman
Contributors:
Contributors:
...
@@ -32,28 +32,14 @@ __author__ = "Peter Eastman"
...
@@ -32,28 +32,14 @@ __author__ = "Peter Eastman"
__version__="1.0"
__version__="1.0"
importopenmm.unitasunit
importopenmm.unitasunit
importmath
importrandom
fromsysimportstdout
fromsysimportstdout
try:
importbz2
have_bz2=True
except:have_bz2=False
try:
importgzip
have_gzip=True
except:have_gzip=False
try:
importnumpy
have_numpy=True
except:have_numpy=False
classSimulatedTempering(object):
classSimulatedTempering(object):
"""SimulatedTempering implements the simulated tempering algorithm for accelerated sampling.
"""SimulatedTempering implements the simulated tempering algorithm for accelerated sampling.
@deprecated This class exists mainly for historical reasons. It now is just a thin wrapper around ExpandedEnsembleSampler. It is still supported for backward compatibility, but using ExpandedEnsembleSampler directly is recommended since it is much more flexible.
It runs a simulation while allowing the temperature to vary. At high temperatures, it can more easily cross
It runs a simulation while allowing the temperature to vary. At high temperatures, it can more easily cross
energy barriers to explore a wider area of conformation space. At low temperatures, it can thoroughly
energy barriers to explore a wider area of conformation space. At low temperatures, it can thoroughly
explore each local region. For details, see Marinari, E. and Parisi, G., Europhys. Lett. 19(6). pp. 451-458 (1992).
explore each local region. For details, see Marinari, E. and Parisi, G., Europhys. Lett. 19(6). pp. 451-458 (1992).
...
@@ -107,159 +93,26 @@ class SimulatedTempering(object):
...
@@ -107,159 +93,26 @@ class SimulatedTempering(object):
reportFile: string or file
reportFile: string or file
The file to write reporting information to, specified as a file name or file object
The file to write reporting information to, specified as a file name or file object