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
8c94556b
Commit
8c94556b
authored
Jul 15, 2009
by
Michael Sherman
Browse files
Added SigmaPerVdwRadius and VdwRadiusPerSigma and removed bootleg declarations from examples.
parent
310d2602
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
24 deletions
+9
-24
examples/HelloEthane.cpp
examples/HelloEthane.cpp
+0
-8
examples/HelloSodiumChloride.cpp
examples/HelloSodiumChloride.cpp
+0
-8
examples/HelloWaterBox.cpp
examples/HelloWaterBox.cpp
+0
-7
examples/OpenMM_CWrapper.h
examples/OpenMM_CWrapper.h
+1
-1
openmmapi/include/openmm/Units.h
openmmapi/include/openmm/Units.h
+8
-0
No files found.
examples/HelloEthane.cpp
View file @
8c94556b
...
@@ -208,14 +208,6 @@ int main() {
...
@@ -208,14 +208,6 @@ int main() {
#include "OpenMM.h"
#include "OpenMM.h"
using
OpenMM
::
Vec3
;
// so we can just say "Vec3" below
using
OpenMM
::
Vec3
;
// so we can just say "Vec3" below
// Add definitions missing from the current version of OpenMM.
namespace
OpenMM
{
// This conversion factor takes you from a van der Waals radius (defined as 1/2
// the minimum energy separation) to the related Lennard Jones "sigma" parameter
// (defined as the zero crossing separation). The value is 2*pow(2, -1/6).
static
const
double
SigmaPerVdwRadius
=
1.78179743628068
;
}
// This is our opaque "handle" class containing all the OpenMM objects that
// This is our opaque "handle" class containing all the OpenMM objects that
// must persist from call to call during a simulation. The main program gets
// must persist from call to call during a simulation. The main program gets
// a pointer to one of these but sees it as essentially a void* since it
// a pointer to one of these but sees it as essentially a void* since it
...
...
examples/HelloSodiumChloride.cpp
View file @
8c94556b
...
@@ -166,14 +166,6 @@ int main() {
...
@@ -166,14 +166,6 @@ int main() {
#include "OpenMM.h"
#include "OpenMM.h"
using
OpenMM
::
Vec3
;
// so we can just say "Vec3" below
using
OpenMM
::
Vec3
;
// so we can just say "Vec3" below
// Add definition missing from the current version of OpenMM.
namespace
OpenMM
{
// This conversion factor takes you from a van der Waals radius (defined as 1/2
// the minimum energy separation) to the related Lennard Jones "sigma" parameter
// (defined as the zero crossing separation). The value is 2*pow(2, -1/6).
static
const
double
SigmaPerVdwRadius
=
1.78179743628068
;
}
struct
MyOpenMMData
{
struct
MyOpenMMData
{
MyOpenMMData
()
:
system
(
0
),
context
(
0
),
integrator
(
0
)
{}
MyOpenMMData
()
:
system
(
0
),
context
(
0
),
integrator
(
0
)
{}
~
MyOpenMMData
()
{
delete
system
;
delete
context
;
delete
integrator
;}
~
MyOpenMMData
()
{
delete
system
;
delete
context
;
delete
integrator
;}
...
...
examples/HelloWaterBox.cpp
View file @
8c94556b
...
@@ -176,13 +176,6 @@ int main() {
...
@@ -176,13 +176,6 @@ int main() {
#include "OpenMM.h"
#include "OpenMM.h"
using
OpenMM
::
Vec3
;
// so we can just say "Vec3" below
using
OpenMM
::
Vec3
;
// so we can just say "Vec3" below
// Add definition missing from the current version of OpenMM.
namespace
OpenMM
{
// This conversion factor takes you from a van der Waals radius (defined as 1/2
// the minimum energy separation) to the related Lennard Jones "sigma" parameter
// (defined as the zero crossing separation). The value is 2*pow(2, -1/6).
static
const
double
SigmaPerVdwRadius
=
1.78179743628068
;
}
// This is our opaque "handle" class containing all the OpenMM objects that
// This is our opaque "handle" class containing all the OpenMM objects that
// must persist from call to call during a simulation. The main program gets
// must persist from call to call during a simulation. The main program gets
...
...
examples/OpenMM_CWrapper.h
View file @
8c94556b
...
@@ -126,7 +126,7 @@ static const double OpenMM_DegreesPerRadian = 180.0/3.1415926535897932385;
...
@@ -126,7 +126,7 @@ static const double OpenMM_DegreesPerRadian = 180.0/3.1415926535897932385;
* "sigma" parameter (defined as the zero crossing separation). The value
* "sigma" parameter (defined as the zero crossing separation). The value
* is 2*pow(2, -1/6).
* is 2*pow(2, -1/6).
*/
*/
static
const
double
OpenMM_SigmaPerVdwRadius
=
1
.
7817974362806
8
;
static
const
double
OpenMM_SigmaPerVdwRadius
=
1
.
7817974362806
786095
;
#if defined(__cplusplus)
#if defined(__cplusplus)
...
...
openmmapi/include/openmm/Units.h
View file @
8c94556b
...
@@ -83,6 +83,14 @@ namespace OpenMM {
...
@@ -83,6 +83,14 @@ namespace OpenMM {
* The number of degrees in a radian.
* The number of degrees in a radian.
*/
*/
static
const
double
DegreesPerRadian
=
180.0
/
3.1415926535897932385
;
static
const
double
DegreesPerRadian
=
180.0
/
3.1415926535897932385
;
/**
* L-J sigma per unit van der Waals radius: 2/(2^1/6).
*/
static
const
double
SigmaPerVdwRadius
=
1.7817974362806786095
;
/**
* van der Waals radius per unit L-J sigma: (2^1/6)/2.
*/
static
const
double
VdwRadiusPerSigma
=
.56123102415468649070
;
}
// namespace OpenMM
}
// namespace OpenMM
...
...
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