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
40974a96
"vscode:/vscode.git/clone" did not exist on "c7d98471aaf115d726d5acf59e5debdde35a146a"
Commit
40974a96
authored
Mar 14, 2017
by
jchodera
Browse files
Change problematic example for CustomTorsionForce
parent
6bdf834a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openmmapi/include/openmm/CustomTorsionForce.h
openmmapi/include/openmm/CustomTorsionForce.h
+2
-2
No files found.
openmmapi/include/openmm/CustomTorsionForce.h
View file @
40974a96
...
@@ -54,9 +54,9 @@ namespace OpenMM {
...
@@ -54,9 +54,9 @@ namespace OpenMM {
* This will have no effect on Contexts that already exist unless you call updateParametersInContext().
* This will have no effect on Contexts that already exist unless you call updateParametersInContext().
* theta is guaranteed to be in the range [-pi,+pi]
* theta is guaranteed to be in the range [-pi,+pi]
*
*
* As an example, the following code creates a CustomTorsionForce that implements a
harmon
ic potential:
* As an example, the following code creates a CustomTorsionForce that implements a
period
ic potential:
*
*
* <tt>CustomTorsionForce* force = new CustomTorsionForce("0.5*k*(theta-theta0)
^2
");</tt>
* <tt>CustomTorsionForce* force = new CustomTorsionForce("0.5*k*(
1-cos(
theta-theta0)
)
");</tt>
*
*
* This force depends on two parameters: the spring constant k and equilibrium angle theta0. The following code defines these parameters:
* This force depends on two parameters: the spring constant k and equilibrium angle theta0. The following code defines these parameters:
*
*
...
...
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