1 #ifndef OPENMM_MONTECARLOBAROSTAT_H_
2 #define OPENMM_MONTECARLOBAROSTAT_H_
37 #include "internal/windowsExport.h"
58 static const std::string key =
"MonteCarloPressure";
75 return defaultPressure;
84 defaultPressure = pressure;
118 return randomNumberSeed;
132 randomNumberSeed = seed;
144 ForceImpl* createImpl()
const;
146 double defaultPressure, temperature;
147 int frequency, randomNumberSeed;
void setRandomNumberSeed(int seed)
Set the random number seed.
Definition: MonteCarloBarostat.h:131
void setFrequency(int freq)
Set the frequency (in time steps) at which Monte Carlo pressure changes should be attempted...
Definition: MonteCarloBarostat.h:97
double getTemperature() const
Get the temperature at which the system is being maintained, measured in Kelvin.
Definition: MonteCarloBarostat.h:103
Force objects apply forces to the particles in a System, or alter their behavior in other ways...
Definition: Force.h:65
void setDefaultPressure(double pressure)
Set the default pressure acting on the system.
Definition: MonteCarloBarostat.h:83
bool usesPeriodicBoundaryConditions() const
Returns whether or not this force makes use of periodic boundary conditions.
Definition: MonteCarloBarostat.h:140
static const std::string & Pressure()
This is the name of the parameter which stores the current pressure acting on the system (in bar)...
Definition: MonteCarloBarostat.h:57
double getDefaultPressure() const
Get the default pressure acting on the system (in bar).
Definition: MonteCarloBarostat.h:74
void setTemperature(double temp)
Set the temperature at which the system is being maintained.
Definition: MonteCarloBarostat.h:111
int getRandomNumberSeed() const
Get the random number seed.
Definition: MonteCarloBarostat.h:117
int getFrequency() const
Get the frequency (in time steps) at which Monte Carlo pressure changes should be attempted...
Definition: MonteCarloBarostat.h:90
This class uses a Monte Carlo algorithm to adjust the size of the periodic box, simulating the effect...
Definition: MonteCarloBarostat.h:51
Definition: AndersenThermostat.h:40