OpenMM
Main Page
Classes
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Friends
MonteCarloAnisotropicBarostat.h
1
#ifndef OPENMM_MONTECARLOANISOTROPICBAROSTAT_H_
2
#define OPENMM_MONTECARLOANISOTROPICBAROSTAT_H_
3
4
/* -------------------------------------------------------------------------- *
5
* OpenMM *
6
* -------------------------------------------------------------------------- *
7
* This is part of the OpenMM molecular simulation toolkit originating from *
8
* Simbios, the NIH National Center for Physics-Based Simulation of *
9
* Biological Structures at Stanford, funded under the NIH Roadmap for *
10
* Medical Research, grant U54 GM072970. See https://simtk.org. *
11
* *
12
* Portions copyright (c) 2010-2013 Stanford University and the Authors. *
13
* Authors: Peter Eastman, Lee-Ping Wang *
14
* Contributors: *
15
* *
16
* Permission is hereby granted, free of charge, to any person obtaining a *
17
* copy of this software and associated documentation files (the "Software"), *
18
* to deal in the Software without restriction, including without limitation *
19
* the rights to use, copy, modify, merge, publish, distribute, sublicense, *
20
* and/or sell copies of the Software, and to permit persons to whom the *
21
* Software is furnished to do so, subject to the following conditions: *
22
* *
23
* The above copyright notice and this permission notice shall be included in *
24
* all copies or substantial portions of the Software. *
25
* *
26
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
27
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
28
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *
29
* THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
30
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
31
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
32
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
33
* -------------------------------------------------------------------------- */
34
35
#include "Force.h"
36
#include "Vec3.h"
37
#include <string>
38
#include "internal/windowsExport.h"
39
40
namespace
OpenMM {
41
58
class
OPENMM_EXPORT
MonteCarloAnisotropicBarostat
:
public
Force
{
59
public
:
64
static
const
std::string&
PressureX
() {
65
static
const
std::string key =
"MonteCarloPressureX"
;
66
return
key;
67
}
72
static
const
std::string&
PressureY
() {
73
static
const
std::string key =
"MonteCarloPressureY"
;
74
return
key;
75
}
80
static
const
std::string&
PressureZ
() {
81
static
const
std::string key =
"MonteCarloPressureZ"
;
82
return
key;
83
}
94
MonteCarloAnisotropicBarostat
(
const
Vec3
& defaultPressure,
double
temperature,
bool
scaleX =
true
,
bool
scaleY =
true
,
bool
scaleZ =
true
,
int
frequency = 25);
100
const
Vec3
&
getDefaultPressure
()
const
{
101
return
defaultPressure;
102
}
106
bool
getScaleX
()
const
{
107
return
scaleX;
108
}
112
bool
getScaleY
()
const
{
113
return
scaleY;
114
}
118
bool
getScaleZ
()
const
{
119
return
scaleZ;
120
}
125
int
getFrequency
()
const
{
126
return
frequency;
127
}
132
void
setFrequency
(
int
freq) {
133
frequency = freq;
134
}
138
double
getTemperature
()
const
{
139
return
temperature;
140
}
146
void
setTemperature
(
double
temp) {
147
temperature = temp;
148
}
152
int
getRandomNumberSeed
()
const
{
153
return
randomNumberSeed;
154
}
162
void
setRandomNumberSeed
(
int
seed) {
163
randomNumberSeed = seed;
164
}
165
protected
:
166
ForceImpl
* createImpl()
const
;
167
private
:
168
Vec3
defaultPressure;
169
double
temperature;
170
bool
scaleX, scaleY, scaleZ;
171
int
frequency, randomNumberSeed;
172
};
173
174
}
// namespace OpenMM
175
176
#endif
/*OPENMM_MONTECARLOANISOTROPICBAROSTAT_H_*/
Downloads
OpenMM5.2-Source
openmmapi
include
openmm
MonteCarloAnisotropicBarostat.h
Generated on Thu Sep 19 2013 14:42:07 for OpenMM by
1.8.2