1 #ifndef OPENMM_ANDERSENTHERMOSTAT_H_
2 #define OPENMM_ANDERSENTHERMOSTAT_H_
37 #include "internal/windowsExport.h"
38 #include "openmm/internal/OSRngSeed.h"
53 static const std::string key =
"AndersenTemperature";
60 static const std::string key =
"AndersenCollisionFrequency";
85 defaultTemp = temperature;
102 defaultFreq = frequency;
108 return randomNumberSeed;
123 randomNumberSeed = seed;
135 ForceImpl* createImpl()
const;
137 double defaultTemp, defaultFreq;
138 int randomNumberSeed;
void setRandomNumberSeed(int seed)
Set the random number seed.
Definition: AndersenThermostat.h:122
static const std::string & CollisionFrequency()
This is the name of the parameter which store the current collision frequency (in 1/ps)...
Definition: AndersenThermostat.h:59
double getDefaultCollisionFrequency() const
Get the default collision frequency (in 1/ps).
Definition: AndersenThermostat.h:92
int getRandomNumberSeed() const
Get the random number seed.
Definition: AndersenThermostat.h:107
bool usesPeriodicBoundaryConditions() const
Returns whether or not this force makes use of periodic boundary conditions.
Definition: AndersenThermostat.h:131
This class uses the Andersen method to maintain constant temperature.
Definition: AndersenThermostat.h:46
static const std::string & Temperature()
This is the name of the parameter which stores the current temperature of the heat bath (in Kelvin)...
Definition: AndersenThermostat.h:52
Force objects apply forces to the particles in a System, or alter their behavior in other ways...
Definition: Force.h:65
void setDefaultTemperature(double temperature)
Set the default temperature of the heat bath.
Definition: AndersenThermostat.h:84
Definition: AndersenThermostat.h:40
double getDefaultTemperature() const
Get the default temperature of the heat bath (in Kelvin).
Definition: AndersenThermostat.h:75
void setDefaultCollisionFrequency(double frequency)
Set the default collision frequency.
Definition: AndersenThermostat.h:101