Package ffx.potential.openmm
Class OpenMMCustomAngleForce
java.lang.Object
ffx.potential.openmm.OpenMMForce
ffx.potential.openmm.OpenMMCustomAngleForce
- Direct Known Subclasses:
AngleForce
OpenMM CustomAngleForce wrapper.
-
Field Summary
Fields inherited from class ffx.potential.openmm.OpenMMForce
forcePointer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAngle
(int i1, int i2, int i3, OpenMMDoubleArray parameters) Add an angle force to the OpenMM System.void
addPerAngleParameter
(String name) Add a per-angle parameter to the OpenMM System.void
setAngleParameters
(int index, int i1, int i2, int i3, OpenMMDoubleArray parameters) Set the parameters for one angle in the OpenMM System.void
updateParametersInContext
(OpenMMContext openMMContext) Update the parameters in the OpenMM Context.Methods inherited from class ffx.potential.openmm.OpenMMForce
constructForce, getForceGroup, getForceIndex, getName, getPointer, setForceGroup, setForceIndex, setName, usesPeriodicBoundaryConditions
-
Constructor Details
-
OpenMMCustomAngleForce
-
-
Method Details
-
addPerAngleParameter
Add a per-angle parameter to the OpenMM System.- Parameters:
name
- The name of the parameter.
-
addAngle
Add an angle force to the OpenMM System.- Parameters:
i1
- The index of the first atom.i2
- The index of the second atom.i3
- The index of the third atom.parameters
- The parameters for the angle.
-
setAngleParameters
Set the parameters for one angle in the OpenMM System.- Parameters:
index
- The index of the angle.i1
- The index of the first atom.i2
- The index of the second atom.i3
- The index of the third atom.parameters
- The angle parameters.
-
updateParametersInContext
Update the parameters in the OpenMM Context.- Parameters:
openMMContext
- The OpenMM Context.
-