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
d8d70750
Commit
d8d70750
authored
Jan 06, 2010
by
Peter Eastman
Browse files
Updated Doxygen comments to specify units in a more consistent way
parent
a39126ab
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
76 additions
and
24 deletions
+76
-24
openmmapi/include/openmm/AndersenThermostat.h
openmmapi/include/openmm/AndersenThermostat.h
+4
-0
openmmapi/include/openmm/BrownianIntegrator.h
openmmapi/include/openmm/BrownianIntegrator.h
+8
-0
openmmapi/include/openmm/CustomGBForce.h
openmmapi/include/openmm/CustomGBForce.h
+4
-0
openmmapi/include/openmm/CustomNonbondedForce.h
openmmapi/include/openmm/CustomNonbondedForce.h
+4
-0
openmmapi/include/openmm/GBSAOBCForce.h
openmmapi/include/openmm/GBSAOBCForce.h
+4
-0
openmmapi/include/openmm/GBVIForce.h
openmmapi/include/openmm/GBVIForce.h
+4
-0
openmmapi/include/openmm/HarmonicAngleForce.h
openmmapi/include/openmm/HarmonicAngleForce.h
+3
-3
openmmapi/include/openmm/HarmonicBondForce.h
openmmapi/include/openmm/HarmonicBondForce.h
+3
-3
openmmapi/include/openmm/Integrator.h
openmmapi/include/openmm/Integrator.h
+4
-0
openmmapi/include/openmm/LangevinIntegrator.h
openmmapi/include/openmm/LangevinIntegrator.h
+8
-0
openmmapi/include/openmm/NonbondedForce.h
openmmapi/include/openmm/NonbondedForce.h
+4
-0
openmmapi/include/openmm/RBTorsionForce.h
openmmapi/include/openmm/RBTorsionForce.h
+18
-18
openmmapi/include/openmm/VariableLangevinIntegrator.h
openmmapi/include/openmm/VariableLangevinIntegrator.h
+8
-0
No files found.
openmmapi/include/openmm/AndersenThermostat.h
View file @
d8d70750
...
@@ -68,12 +68,16 @@ public:
...
@@ -68,12 +68,16 @@ public:
AndersenThermostat
(
double
defaultTemperature
,
double
defaultCollisionFrequency
);
AndersenThermostat
(
double
defaultTemperature
,
double
defaultCollisionFrequency
);
/**
/**
* Get the default temperature of the heat bath (in Kelvin).
* Get the default temperature of the heat bath (in Kelvin).
*
* @return the default temperature of the heat bath, measured in Kelvin.
*/
*/
double
getDefaultTemperature
()
const
{
double
getDefaultTemperature
()
const
{
return
defaultTemp
;
return
defaultTemp
;
}
}
/**
/**
* Get the default collision frequency (in 1/ps).
* Get the default collision frequency (in 1/ps).
*
* @return the default collision frequency, measured in 1/ps.
*/
*/
double
getDefaultCollisionFrequency
()
const
{
double
getDefaultCollisionFrequency
()
const
{
return
defaultFreq
;
return
defaultFreq
;
...
...
openmmapi/include/openmm/BrownianIntegrator.h
View file @
d8d70750
...
@@ -54,12 +54,16 @@ public:
...
@@ -54,12 +54,16 @@ public:
BrownianIntegrator
(
double
temperature
,
double
frictionCoeff
,
double
stepSize
);
BrownianIntegrator
(
double
temperature
,
double
frictionCoeff
,
double
stepSize
);
/**
/**
* Get the temperature of the heat bath (in Kelvin).
* Get the temperature of the heat bath (in Kelvin).
*
* @return the temperature of the heat bath (in Kelvin).
*/
*/
double
getTemperature
()
const
{
double
getTemperature
()
const
{
return
temperature
;
return
temperature
;
}
}
/**
/**
* Set the temperature of the heat bath (in Kelvin).
* Set the temperature of the heat bath (in Kelvin).
*
* @param temp the temperature of the heat bath, measured in Kelvin.
*/
*/
void
setTemperature
(
double
temp
)
{
void
setTemperature
(
double
temp
)
{
temperature
=
temp
;
temperature
=
temp
;
...
@@ -67,6 +71,8 @@ public:
...
@@ -67,6 +71,8 @@ public:
/**
/**
* Get the friction coefficient which determines how strongly the system is coupled to
* Get the friction coefficient which determines how strongly the system is coupled to
* the heat bath (in inverse ps).
* the heat bath (in inverse ps).
*
* @return the friction coefficient, measured in 1/ps
*/
*/
double
getFriction
()
const
{
double
getFriction
()
const
{
return
friction
;
return
friction
;
...
@@ -74,6 +80,8 @@ public:
...
@@ -74,6 +80,8 @@ public:
/**
/**
* Set the friction coefficient which determines how strongly the system is coupled to
* Set the friction coefficient which determines how strongly the system is coupled to
* the heat bath (in inverse ps).
* the heat bath (in inverse ps).
*
* @param coeff the friction coefficient, measured in 1/ps
*/
*/
void
setFriction
(
double
coeff
)
{
void
setFriction
(
double
coeff
)
{
friction
=
coeff
;
friction
=
coeff
;
...
...
openmmapi/include/openmm/CustomGBForce.h
View file @
d8d70750
...
@@ -233,11 +233,15 @@ public:
...
@@ -233,11 +233,15 @@ public:
/**
/**
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @return the cutoff distance, measured in nm
*/
*/
double
getCutoffDistance
()
const
;
double
getCutoffDistance
()
const
;
/**
/**
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @param distance the cutoff distance, measured in nm
*/
*/
void
setCutoffDistance
(
double
distance
);
void
setCutoffDistance
(
double
distance
);
/**
/**
...
...
openmmapi/include/openmm/CustomNonbondedForce.h
View file @
d8d70750
...
@@ -161,11 +161,15 @@ public:
...
@@ -161,11 +161,15 @@ public:
/**
/**
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @return the cutoff distance, measured in nm
*/
*/
double
getCutoffDistance
()
const
;
double
getCutoffDistance
()
const
;
/**
/**
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @param distance the cutoff distance, measured in nm
*/
*/
void
setCutoffDistance
(
double
distance
);
void
setCutoffDistance
(
double
distance
);
/**
/**
...
...
openmmapi/include/openmm/GBSAOBCForce.h
View file @
d8d70750
...
@@ -142,11 +142,15 @@ public:
...
@@ -142,11 +142,15 @@ public:
/**
/**
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @return the cutoff distance, measured in nm
*/
*/
double
getCutoffDistance
()
const
;
double
getCutoffDistance
()
const
;
/**
/**
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @param distance the cutoff distance, measured in nm
*/
*/
void
setCutoffDistance
(
double
distance
);
void
setCutoffDistance
(
double
distance
);
protected:
protected:
...
...
openmmapi/include/openmm/GBVIForce.h
View file @
d8d70750
...
@@ -177,11 +177,15 @@ public:
...
@@ -177,11 +177,15 @@ public:
/**
/**
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @return the cutoff distance, measured in nm
*/
*/
double
getCutoffDistance
()
const
;
double
getCutoffDistance
()
const
;
/**
/**
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @param distance the cutoff distance, measured in nm
*/
*/
void
setCutoffDistance
(
double
distance
);
void
setCutoffDistance
(
double
distance
);
protected:
protected:
...
...
openmmapi/include/openmm/HarmonicAngleForce.h
View file @
d8d70750
...
@@ -65,7 +65,7 @@ public:
...
@@ -65,7 +65,7 @@ public:
* @param particle2 the index of the second particle forming the angle
* @param particle2 the index of the second particle forming the angle
* @param particle3 the index of the third particle forming the angle
* @param particle3 the index of the third particle forming the angle
* @param angle the equilibrium angle, measured in radians
* @param angle the equilibrium angle, measured in radians
* @param k the harmonic force constant for the angle
* @param k the harmonic force constant for the angle
, measured in kJ/mol/radian^2
* @return the index of the angle that was added
* @return the index of the angle that was added
*/
*/
int
addAngle
(
int
particle1
,
int
particle2
,
int
particle3
,
double
angle
,
double
k
);
int
addAngle
(
int
particle1
,
int
particle2
,
int
particle3
,
double
angle
,
double
k
);
...
@@ -77,7 +77,7 @@ public:
...
@@ -77,7 +77,7 @@ public:
* @param particle2 the index of the second particle forming the angle
* @param particle2 the index of the second particle forming the angle
* @param particle3 the index of the third particle forming the angle
* @param particle3 the index of the third particle forming the angle
* @param angle the equilibrium angle, measured in radians
* @param angle the equilibrium angle, measured in radians
* @param k the harmonic force constant for the angle
* @param k the harmonic force constant for the angle
, measured in kJ/mol/radian^2
*/
*/
void
getAngleParameters
(
int
index
,
int
&
particle1
,
int
&
particle2
,
int
&
particle3
,
double
&
angle
,
double
&
k
)
const
;
void
getAngleParameters
(
int
index
,
int
&
particle1
,
int
&
particle2
,
int
&
particle3
,
double
&
angle
,
double
&
k
)
const
;
/**
/**
...
@@ -88,7 +88,7 @@ public:
...
@@ -88,7 +88,7 @@ public:
* @param particle2 the index of the second particle forming the angle
* @param particle2 the index of the second particle forming the angle
* @param particle3 the index of the third particle forming the angle
* @param particle3 the index of the third particle forming the angle
* @param angle the equilibrium angle, measured in radians
* @param angle the equilibrium angle, measured in radians
* @param k the harmonic force constant for the angle
* @param k the harmonic force constant for the angle
, measured in kJ/mol/radian^2
*/
*/
void
setAngleParameters
(
int
index
,
int
particle1
,
int
particle2
,
int
particle3
,
double
angle
,
double
k
);
void
setAngleParameters
(
int
index
,
int
particle1
,
int
particle2
,
int
particle3
,
double
angle
,
double
k
);
protected:
protected:
...
...
openmmapi/include/openmm/HarmonicBondForce.h
View file @
d8d70750
...
@@ -64,7 +64,7 @@ public:
...
@@ -64,7 +64,7 @@ public:
* @param particle1 the index of the first particle connected by the bond
* @param particle1 the index of the first particle connected by the bond
* @param particle2 the index of the second particle connected by the bond
* @param particle2 the index of the second particle connected by the bond
* @param length the equilibrium length of the bond, measured in nm
* @param length the equilibrium length of the bond, measured in nm
* @param k the harmonic force constant for the bond
* @param k the harmonic force constant for the bond
, measured in kJ/mol/nm^2
* @return the index of the bond that was added
* @return the index of the bond that was added
*/
*/
int
addBond
(
int
particle1
,
int
particle2
,
double
length
,
double
k
);
int
addBond
(
int
particle1
,
int
particle2
,
double
length
,
double
k
);
...
@@ -75,7 +75,7 @@ public:
...
@@ -75,7 +75,7 @@ public:
* @param particle1 the index of the first particle connected by the bond
* @param particle1 the index of the first particle connected by the bond
* @param particle2 the index of the second particle connected by the bond
* @param particle2 the index of the second particle connected by the bond
* @param length the equilibrium length of the bond, measured in nm
* @param length the equilibrium length of the bond, measured in nm
* @param k the harmonic force constant for the bond
* @param k the harmonic force constant for the bond
, measured in kJ/mol/nm^2
*/
*/
void
getBondParameters
(
int
index
,
int
&
particle1
,
int
&
particle2
,
double
&
length
,
double
&
k
)
const
;
void
getBondParameters
(
int
index
,
int
&
particle1
,
int
&
particle2
,
double
&
length
,
double
&
k
)
const
;
/**
/**
...
@@ -85,7 +85,7 @@ public:
...
@@ -85,7 +85,7 @@ public:
* @param particle1 the index of the first particle connected by the bond
* @param particle1 the index of the first particle connected by the bond
* @param particle2 the index of the second particle connected by the bond
* @param particle2 the index of the second particle connected by the bond
* @param length the equilibrium length of the bond, measured in nm
* @param length the equilibrium length of the bond, measured in nm
* @param k the harmonic force constant for the bond
* @param k the harmonic force constant for the bond
, measured in kJ/mol/nm^2
*/
*/
void
setBondParameters
(
int
index
,
int
particle1
,
int
particle2
,
double
length
,
double
k
);
void
setBondParameters
(
int
index
,
int
particle1
,
int
particle2
,
double
length
,
double
k
);
protected:
protected:
...
...
openmmapi/include/openmm/Integrator.h
View file @
d8d70750
...
@@ -57,6 +57,8 @@ public:
...
@@ -57,6 +57,8 @@ public:
/**
/**
* Get the size of each time step, in picoseconds. If this integrator uses variable time steps,
* Get the size of each time step, in picoseconds. If this integrator uses variable time steps,
* the size of the most recent step is returned.
* the size of the most recent step is returned.
*
* @return the step size, measured in ps
*/
*/
double
getStepSize
()
const
{
double
getStepSize
()
const
{
return
stepSize
;
return
stepSize
;
...
@@ -64,6 +66,8 @@ public:
...
@@ -64,6 +66,8 @@ public:
/**
/**
* Set the size of each time step, in picoseconds. If this integrator uses variable time steps,
* Set the size of each time step, in picoseconds. If this integrator uses variable time steps,
* the effect of calling this method is undefined, and it may simply be ignored.
* the effect of calling this method is undefined, and it may simply be ignored.
*
* @param size the step size, measured in ps
*/
*/
void
setStepSize
(
double
size
)
{
void
setStepSize
(
double
size
)
{
stepSize
=
size
;
stepSize
=
size
;
...
...
openmmapi/include/openmm/LangevinIntegrator.h
View file @
d8d70750
...
@@ -54,12 +54,16 @@ public:
...
@@ -54,12 +54,16 @@ public:
LangevinIntegrator
(
double
temperature
,
double
frictionCoeff
,
double
stepSize
);
LangevinIntegrator
(
double
temperature
,
double
frictionCoeff
,
double
stepSize
);
/**
/**
* Get the temperature of the heat bath (in Kelvin).
* Get the temperature of the heat bath (in Kelvin).
*
* @return the temperature of the heat bath, measured in Kelvin
*/
*/
double
getTemperature
()
const
{
double
getTemperature
()
const
{
return
temperature
;
return
temperature
;
}
}
/**
/**
* Set the temperature of the heat bath (in Kelvin).
* Set the temperature of the heat bath (in Kelvin).
*
* @param temp the temperature of the heat bath, measured in Kelvin
*/
*/
void
setTemperature
(
double
temp
)
{
void
setTemperature
(
double
temp
)
{
temperature
=
temp
;
temperature
=
temp
;
...
@@ -67,6 +71,8 @@ public:
...
@@ -67,6 +71,8 @@ public:
/**
/**
* Get the friction coefficient which determines how strongly the system is coupled to
* Get the friction coefficient which determines how strongly the system is coupled to
* the heat bath (in inverse ps).
* the heat bath (in inverse ps).
*
* @return the friction coefficient, measured in 1/ps
*/
*/
double
getFriction
()
const
{
double
getFriction
()
const
{
return
friction
;
return
friction
;
...
@@ -74,6 +80,8 @@ public:
...
@@ -74,6 +80,8 @@ public:
/**
/**
* Set the friction coefficient which determines how strongly the system is coupled to
* Set the friction coefficient which determines how strongly the system is coupled to
* the heat bath (in inverse ps).
* the heat bath (in inverse ps).
*
* @param coeff the friction coefficient, measured in 1/ps
*/
*/
void
setFriction
(
double
coeff
)
{
void
setFriction
(
double
coeff
)
{
friction
=
coeff
;
friction
=
coeff
;
...
...
openmmapi/include/openmm/NonbondedForce.h
View file @
d8d70750
...
@@ -125,11 +125,15 @@ public:
...
@@ -125,11 +125,15 @@ public:
/**
/**
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Get the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @return the cutoff distance, measured in nm
*/
*/
double
getCutoffDistance
()
const
;
double
getCutoffDistance
()
const
;
/**
/**
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* Set the cutoff distance (in nm) being used for nonbonded interactions. If the NonbondedMethod in use
* is NoCutoff, this value will have no effect.
* is NoCutoff, this value will have no effect.
*
* @param distance the cutoff distance, measured in nm
*/
*/
void
setCutoffDistance
(
double
distance
);
void
setCutoffDistance
(
double
distance
);
/**
/**
...
...
openmmapi/include/openmm/RBTorsionForce.h
View file @
d8d70750
...
@@ -65,12 +65,12 @@ public:
...
@@ -65,12 +65,12 @@ public:
* @param particle2 the index of the second particle forming the torsion
* @param particle2 the index of the second particle forming the torsion
* @param particle3 the index of the third particle forming the torsion
* @param particle3 the index of the third particle forming the torsion
* @param particle3 the index of the fourth particle forming the torsion
* @param particle3 the index of the fourth particle forming the torsion
* @param c0 the coefficient of the constant term
* @param c0 the coefficient of the constant term
, measured in kJ/mol
* @param c1 the coefficient of the 1st order term
* @param c1 the coefficient of the 1st order term
, measured in kJ/mol
* @param c2 the coefficient of the 2nd order term
* @param c2 the coefficient of the 2nd order term
, measured in kJ/mol
* @param c3 the coefficient of the 3rd order term
* @param c3 the coefficient of the 3rd order term
, measured in kJ/mol
* @param c4 the coefficient of the 4th order term
* @param c4 the coefficient of the 4th order term
, measured in kJ/mol
* @param c5 the coefficient of the 5th order term
* @param c5 the coefficient of the 5th order term
, measured in kJ/mol
* @return the index of the torsion that was added
* @return the index of the torsion that was added
*/
*/
int
addTorsion
(
int
particle1
,
int
particle2
,
int
particle3
,
int
particle4
,
double
c0
,
double
c1
,
double
c2
,
double
c3
,
double
c4
,
double
c5
);
int
addTorsion
(
int
particle1
,
int
particle2
,
int
particle3
,
int
particle4
,
double
c0
,
double
c1
,
double
c2
,
double
c3
,
double
c4
,
double
c5
);
...
@@ -82,12 +82,12 @@ public:
...
@@ -82,12 +82,12 @@ public:
* @param particle2 the index of the second particle forming the torsion
* @param particle2 the index of the second particle forming the torsion
* @param particle3 the index of the third particle forming the torsion
* @param particle3 the index of the third particle forming the torsion
* @param particle3 the index of the fourth particle forming the torsion
* @param particle3 the index of the fourth particle forming the torsion
* @param c0 the coefficient of the constant term
* @param c0 the coefficient of the constant term
, measured in kJ/mol
* @param c1 the coefficient of the 1st order term
* @param c1 the coefficient of the 1st order term
, measured in kJ/mol
* @param c2 the coefficient of the 2nd order term
* @param c2 the coefficient of the 2nd order term
, measured in kJ/mol
* @param c3 the coefficient of the 3rd order term
* @param c3 the coefficient of the 3rd order term
, measured in kJ/mol
* @param c4 the coefficient of the 4th order term
* @param c4 the coefficient of the 4th order term
, measured in kJ/mol
* @param c5 the coefficient of the 5th order term
* @param c5 the coefficient of the 5th order term
, measured in kJ/mol
*/
*/
void
getTorsionParameters
(
int
index
,
int
&
particle1
,
int
&
particle2
,
int
&
particle3
,
int
&
particle4
,
double
&
c0
,
double
&
c1
,
double
&
c2
,
double
&
c3
,
double
&
c4
,
double
&
c5
)
const
;
void
getTorsionParameters
(
int
index
,
int
&
particle1
,
int
&
particle2
,
int
&
particle3
,
int
&
particle4
,
double
&
c0
,
double
&
c1
,
double
&
c2
,
double
&
c3
,
double
&
c4
,
double
&
c5
)
const
;
/**
/**
...
@@ -98,12 +98,12 @@ public:
...
@@ -98,12 +98,12 @@ public:
* @param particle2 the index of the second particle forming the torsion
* @param particle2 the index of the second particle forming the torsion
* @param particle3 the index of the third particle forming the torsion
* @param particle3 the index of the third particle forming the torsion
* @param particle3 the index of the fourth particle forming the torsion
* @param particle3 the index of the fourth particle forming the torsion
* @param c0 the coefficient of the constant term
* @param c0 the coefficient of the constant term
, measured in kJ/mol
* @param c1 the coefficient of the 1st order term
* @param c1 the coefficient of the 1st order term
, measured in kJ/mol
* @param c2 the coefficient of the 2nd order term
* @param c2 the coefficient of the 2nd order term
, measured in kJ/mol
* @param c3 the coefficient of the 3rd order term
* @param c3 the coefficient of the 3rd order term
, measured in kJ/mol
* @param c4 the coefficient of the 4th order term
* @param c4 the coefficient of the 4th order term
, measured in kJ/mol
* @param c5 the coefficient of the 5th order term
* @param c5 the coefficient of the 5th order term
, measured in kJ/mol
*/
*/
void
setTorsionParameters
(
int
index
,
int
particle1
,
int
particle2
,
int
particle3
,
int
particle4
,
double
c0
,
double
c1
,
double
c2
,
double
c3
,
double
c4
,
double
c5
);
void
setTorsionParameters
(
int
index
,
int
particle1
,
int
particle2
,
int
particle3
,
int
particle4
,
double
c0
,
double
c1
,
double
c2
,
double
c3
,
double
c4
,
double
c5
);
protected:
protected:
...
...
openmmapi/include/openmm/VariableLangevinIntegrator.h
View file @
d8d70750
...
@@ -64,12 +64,16 @@ public:
...
@@ -64,12 +64,16 @@ public:
VariableLangevinIntegrator
(
double
temperature
,
double
frictionCoeff
,
double
errorTol
);
VariableLangevinIntegrator
(
double
temperature
,
double
frictionCoeff
,
double
errorTol
);
/**
/**
* Get the temperature of the heat bath (in Kelvin).
* Get the temperature of the heat bath (in Kelvin).
*
* @return the temperature of the heat bath, measured in Kelvin
*/
*/
double
getTemperature
()
const
{
double
getTemperature
()
const
{
return
temperature
;
return
temperature
;
}
}
/**
/**
* Set the temperature of the heat bath (in Kelvin).
* Set the temperature of the heat bath (in Kelvin).
*
* @param temp the temperature of the heat bath, measured in Kelvin
*/
*/
void
setTemperature
(
double
temp
)
{
void
setTemperature
(
double
temp
)
{
temperature
=
temp
;
temperature
=
temp
;
...
@@ -77,6 +81,8 @@ public:
...
@@ -77,6 +81,8 @@ public:
/**
/**
* Get the friction coefficient which determines how strongly the system is coupled to
* Get the friction coefficient which determines how strongly the system is coupled to
* the heat bath (in inverse ps).
* the heat bath (in inverse ps).
*
* @return the friction coefficient, measured in 1/ps
*/
*/
double
getFriction
()
const
{
double
getFriction
()
const
{
return
friction
;
return
friction
;
...
@@ -84,6 +90,8 @@ public:
...
@@ -84,6 +90,8 @@ public:
/**
/**
* Set the friction coefficient which determines how strongly the system is coupled to
* Set the friction coefficient which determines how strongly the system is coupled to
* the heat bath (in inverse ps).
* the heat bath (in inverse ps).
*
* @param coeff the friction coefficient, measured in 1/ps
*/
*/
void
setFriction
(
double
coeff
)
{
void
setFriction
(
double
coeff
)
{
friction
=
coeff
;
friction
=
coeff
;
...
...
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