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
df563967
"platforms/vscode:/vscode.git/clone" did not exist on "40a7363d82f451fe38b6b393379305a5a1786135"
Commit
df563967
authored
Jan 14, 2014
by
peastman
Browse files
Added methods for changing default parameters on barostats and thermostats
parent
435be5e2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
openmmapi/include/openmm/AndersenThermostat.h
openmmapi/include/openmm/AndersenThermostat.h
+18
-0
openmmapi/include/openmm/MonteCarloAnisotropicBarostat.h
openmmapi/include/openmm/MonteCarloAnisotropicBarostat.h
+9
-0
openmmapi/include/openmm/MonteCarloBarostat.h
openmmapi/include/openmm/MonteCarloBarostat.h
+9
-0
No files found.
openmmapi/include/openmm/AndersenThermostat.h
View file @
df563967
...
...
@@ -74,6 +74,15 @@ public:
double
getDefaultTemperature
()
const
{
return
defaultTemp
;
}
/**
* Set the default temperature of the heat bath. This will affect any new Contexts you create,
* but not ones that already exist.
*
* @param temperature the default temperature of the heat bath (in Kelvin)
*/
void
setDefaultTemperature
(
double
temperature
)
{
defaultTemp
=
temperature
;
}
/**
* Get the default collision frequency (in 1/ps).
*
...
...
@@ -82,6 +91,15 @@ public:
double
getDefaultCollisionFrequency
()
const
{
return
defaultFreq
;
}
/**
* Set the default collision frequency. This will affect any new Contexts you create,
* but not ones that already exist.
*
* @param frequency the default collision frequency (in 1/ps)
*/
void
setDefaultCollisionFrequency
(
double
frequency
)
{
defaultFreq
=
frequency
;
}
/**
* Get the random number seed. See setRandomNumberSeed() for details.
*/
...
...
openmmapi/include/openmm/MonteCarloAnisotropicBarostat.h
View file @
df563967
...
...
@@ -100,6 +100,15 @@ public:
const
Vec3
&
getDefaultPressure
()
const
{
return
defaultPressure
;
}
/**
* Set the default pressure acting on the system. This will affect any new Contexts you create,
* but not ones that already exist.
*
* @param pressure the default pressure acting on the system, measured in bar.
*/
void
setDefaultPressure
(
Vec3
pressure
)
{
defaultPressure
=
pressure
;
}
/**
* Get whether to allow the X dimension of the periodic box to change size.
*/
...
...
openmmapi/include/openmm/MonteCarloBarostat.h
View file @
df563967
...
...
@@ -74,6 +74,15 @@ public:
double
getDefaultPressure
()
const
{
return
defaultPressure
;
}
/**
* Set the default pressure acting on the system. This will affect any new Contexts you create,
* but not ones that already exist.
*
* @param pressure the default pressure acting on the system, measured in bar.
*/
void
setDefaultPressure
(
double
pressure
)
{
defaultPressure
=
pressure
;
}
/**
* Get the frequency (in time steps) at which Monte Carlo pressure changes should be attempted. If this is set to
* 0, the barostat is disabled.
...
...
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