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
07adfcbc
Commit
07adfcbc
authored
May 16, 2008
by
Peter Eastman
Browse files
Modified OpenMM to use nm and kJ as units instead of angstroms and kcal
parent
9f0086f3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
15 deletions
+15
-15
openmmapi/include/GBSAOBCForceField.h
openmmapi/include/GBSAOBCForceField.h
+2
-2
openmmapi/include/OpenMMContext.h
openmmapi/include/OpenMMContext.h
+2
-2
openmmapi/include/StandardMMForceField.h
openmmapi/include/StandardMMForceField.h
+6
-6
openmmapi/include/System.h
openmmapi/include/System.h
+2
-2
openmmapi/include/internal/OpenMMContextImpl.h
openmmapi/include/internal/OpenMMContextImpl.h
+2
-2
platforms/reference/src/ReferenceKernels.cpp
platforms/reference/src/ReferenceKernels.cpp
+1
-1
No files found.
openmmapi/include/GBSAOBCForceField.h
View file @
07adfcbc
...
@@ -60,7 +60,7 @@ public:
...
@@ -60,7 +60,7 @@ public:
*
*
* @param index the index of the atom for which to get parameters
* @param index the index of the atom for which to get parameters
* @param charge the charge of the atom, measured in units of the proton charge
* @param charge the charge of the atom, measured in units of the proton charge
* @param radius the GBSA radius of the atom, measured in
angstroms
* @param radius the GBSA radius of the atom, measured in
nm
* @param scalingFactor the OBC scaling factor for the atom
* @param scalingFactor the OBC scaling factor for the atom
*/
*/
void
getAtomParameters
(
int
index
,
double
&
charge
,
double
&
radius
,
double
&
scalingFactor
)
const
;
void
getAtomParameters
(
int
index
,
double
&
charge
,
double
&
radius
,
double
&
scalingFactor
)
const
;
...
@@ -69,7 +69,7 @@ public:
...
@@ -69,7 +69,7 @@ public:
*
*
* @param index the index of the atom for which to set parameters
* @param index the index of the atom for which to set parameters
* @param charge the charge of the atom, measured in units of the proton charge
* @param charge the charge of the atom, measured in units of the proton charge
* @param radius the GBSA radius of the atom, measured in
angstroms
* @param radius the GBSA radius of the atom, measured in
nm
* @param scalingFactor the OBC scaling factor for the atom
* @param scalingFactor the OBC scaling factor for the atom
*/
*/
void
setAtomParameters
(
int
index
,
double
charge
,
double
radius
,
double
scalingFactor
);
void
setAtomParameters
(
int
index
,
double
charge
,
double
radius
,
double
scalingFactor
);
...
...
openmmapi/include/OpenMMContext.h
View file @
07adfcbc
...
@@ -110,14 +110,14 @@ public:
...
@@ -110,14 +110,14 @@ public:
*/
*/
void
setTime
(
double
time
);
void
setTime
(
double
time
);
/**
/**
* Set the positions of all atoms in the System (measured in
angstroms
).
* Set the positions of all atoms in the System (measured in
nm
).
*
*
* @param a vector whose length equals the number of atoms in the System. The i'th element
* @param a vector whose length equals the number of atoms in the System. The i'th element
* contains the position of the i'th atom.
* contains the position of the i'th atom.
*/
*/
void
setPositions
(
const
std
::
vector
<
Vec3
>&
positions
);
void
setPositions
(
const
std
::
vector
<
Vec3
>&
positions
);
/**
/**
* Set the velocities of all atoms in the System (measured in
angstroms
/picosecond).
* Set the velocities of all atoms in the System (measured in
nm
/picosecond).
*
*
* @param a vector whose length equals the number of atoms in the System. The i'th element
* @param a vector whose length equals the number of atoms in the System. The i'th element
* contains the velocity of the i'th atom.
* contains the velocity of the i'th atom.
...
...
openmmapi/include/StandardMMForceField.h
View file @
07adfcbc
...
@@ -95,8 +95,8 @@ public:
...
@@ -95,8 +95,8 @@ public:
*
*
* @param index the index of the atom for which to get parameters
* @param index the index of the atom for which to get parameters
* @param charge the charge of the atom, measured in units of the proton charge
* @param charge the charge of the atom, measured in units of the proton charge
* @param radius the van der Waals radius of the atom, measured in
angstroms
* @param radius the van der Waals radius of the atom, measured in
nm
* @param depth the well depth of the van der Waals interaction, measured in k
cal
/mol
* @param depth the well depth of the van der Waals interaction, measured in k
J
/mol
*/
*/
void
getAtomParameters
(
int
index
,
double
&
charge
,
double
&
radius
,
double
&
depth
)
const
;
void
getAtomParameters
(
int
index
,
double
&
charge
,
double
&
radius
,
double
&
depth
)
const
;
/**
/**
...
@@ -104,8 +104,8 @@ public:
...
@@ -104,8 +104,8 @@ public:
*
*
* @param index the index of the atom for which to set parameters
* @param index the index of the atom for which to set parameters
* @param charge the charge of the atom, measured in units of the proton charge
* @param charge the charge of the atom, measured in units of the proton charge
* @param radius the van der Waals radius of the atom (sigma in the Lennard Jones potential), measured in
angstroms
* @param radius the van der Waals radius of the atom (sigma in the Lennard Jones potential), measured in
nm
* @param depth the well depth of the van der Waals interaction (epsilon in the Lennard Jones potential), measured in k
cal
/mol
* @param depth the well depth of the van der Waals interaction (epsilon in the Lennard Jones potential), measured in k
J
/mol
*/
*/
void
setAtomParameters
(
int
index
,
double
charge
,
double
radius
,
double
depth
);
void
setAtomParameters
(
int
index
,
double
charge
,
double
radius
,
double
depth
);
/**
/**
...
@@ -114,7 +114,7 @@ public:
...
@@ -114,7 +114,7 @@ public:
* @param index the index of the bond for which to get parameters
* @param index the index of the bond for which to get parameters
* @param atom1 the index of the first atom connected by the bond
* @param atom1 the index of the first atom connected by the bond
* @param atom2 the index of the second atom connected by the bond
* @param atom2 the index of the second atom connected by the bond
* @param length the equilibrium length of the bond, measured in
angstroms
* @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
*/
*/
void
getBondParameters
(
int
index
,
int
&
atom1
,
int
&
atom2
,
double
&
length
,
double
&
k
)
const
;
void
getBondParameters
(
int
index
,
int
&
atom1
,
int
&
atom2
,
double
&
length
,
double
&
k
)
const
;
...
@@ -124,7 +124,7 @@ public:
...
@@ -124,7 +124,7 @@ public:
* @param index the index of the bond for which to set parameters
* @param index the index of the bond for which to set parameters
* @param atom1 the index of the first atom connected by the bond
* @param atom1 the index of the first atom connected by the bond
* @param atom2 the index of the second atom connected by the bond
* @param atom2 the index of the second atom connected by the bond
* @param length the equilibrium length of the bond, measured in
angstroms
* @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
*/
*/
void
setBondParameters
(
int
index
,
int
atom1
,
int
atom2
,
double
length
,
double
k
);
void
setBondParameters
(
int
index
,
int
atom1
,
int
atom2
,
double
length
,
double
k
);
...
...
openmmapi/include/System.h
View file @
07adfcbc
...
@@ -98,7 +98,7 @@ public:
...
@@ -98,7 +98,7 @@ public:
* @param index the index of the constraint for which to get parameters
* @param index the index of the constraint for which to get parameters
* @param atom1 the index of the first atom involved in the constraint
* @param atom1 the index of the first atom involved in the constraint
* @param atom2 the index of the second atom involved in the constraint
* @param atom2 the index of the second atom involved in the constraint
* @param distance the required distance between the two atoms, measured in
angstroms
* @param distance the required distance between the two atoms, measured in
nm
*/
*/
void
getConstraintParameters
(
int
index
,
int
&
atom1
,
int
&
atom2
,
double
&
distance
)
const
;
void
getConstraintParameters
(
int
index
,
int
&
atom1
,
int
&
atom2
,
double
&
distance
)
const
;
/**
/**
...
@@ -107,7 +107,7 @@ public:
...
@@ -107,7 +107,7 @@ public:
* @param index the index of the constraint for which to set parameters
* @param index the index of the constraint for which to set parameters
* @param atom1 the index of the first atom involved in the constraint
* @param atom1 the index of the first atom involved in the constraint
* @param atom2 the index of the second atom involved in the constraint
* @param atom2 the index of the second atom involved in the constraint
* @param distance the required distance between the two atoms, measured in
angstroms
* @param distance the required distance between the two atoms, measured in
nm
*/
*/
void
setConstraintParameters
(
int
index
,
int
atom1
,
int
atom2
,
double
distance
);
void
setConstraintParameters
(
int
index
,
int
atom1
,
int
atom2
,
double
distance
);
/**
/**
...
...
openmmapi/include/internal/OpenMMContextImpl.h
View file @
07adfcbc
...
@@ -132,11 +132,11 @@ public:
...
@@ -132,11 +132,11 @@ public:
*/
*/
void
calcForces
();
void
calcForces
();
/**
/**
* Calculate the kinetic energy of the system (in k
cal
/mol).
* Calculate the kinetic energy of the system (in k
J
/mol).
*/
*/
double
calcKineticEnergy
();
double
calcKineticEnergy
();
/**
/**
* Calculate the potential energy of the system (in k
cal
/mol).
* Calculate the potential energy of the system (in k
J
/mol).
*/
*/
double
calcPotentialEnergy
();
double
calcPotentialEnergy
();
/**
/**
...
...
platforms/reference/src/ReferenceKernels.cpp
View file @
07adfcbc
...
@@ -231,7 +231,7 @@ void ReferenceCalcGBSAOBCForceFieldKernel::initialize(const vector<vector<double
...
@@ -231,7 +231,7 @@ void ReferenceCalcGBSAOBCForceFieldKernel::initialize(const vector<vector<double
scaleFactors
[
i
]
=
atomParameters
[
i
][
2
];
scaleFactors
[
i
]
=
atomParameters
[
i
][
2
];
}
}
ObcParameters
*
obcParameters
=
new
ObcParameters
(
numAtoms
,
ObcParameters
::
ObcTypeII
);
ObcParameters
*
obcParameters
=
new
ObcParameters
(
numAtoms
,
ObcParameters
::
ObcTypeII
);
obcParameters
->
setAtomicRadii
(
atomicRadii
,
SimTKOpenMMCommon
::
KcalAng
Units
);
obcParameters
->
setAtomicRadii
(
atomicRadii
,
SimTKOpenMMCommon
::
Md
Units
);
obcParameters
->
setScaledRadiusFactors
(
scaleFactors
);
obcParameters
->
setScaledRadiusFactors
(
scaleFactors
);
obcParameters
->
setSolventDielectric
(
solventDielectric
);
obcParameters
->
setSolventDielectric
(
solventDielectric
);
obcParameters
->
setSoluteDielectric
(
soluteDielectric
);
obcParameters
->
setSoluteDielectric
(
soluteDielectric
);
...
...
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