Package ffx.openmm
Class PeriodicTorsionForce
java.lang.Object
ffx.openmm.Force
ffx.openmm.PeriodicTorsionForce
- Direct Known Subclasses:
ImproperTorsionForce
,RestrainTorsionsForce
,TorsionForce
Periodic Torsion Force.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTorsion
(int particle1, int particle2, int particle3, int particle4, int periodicity, double phase, double k) Add a torsion to the PeriodicTorsionForce.void
destroy()
void
setTorsionParameters
(int index, int particle1, int particle2, int particle3, int particle4, int periodicity, double phase, double k) Set the parameters for a torsion.void
updateParametersInContext
(Context context) Update the parameters for a torsion in the OpenMM Context.Methods inherited from class ffx.openmm.Force
getForceGroup, getForceIndex, getName, getPointer, setForceGroup, setForceIndex, setName, usesPeriodicBoundaryConditions
-
Constructor Details
-
PeriodicTorsionForce
public PeriodicTorsionForce()
-
-
Method Details
-
addTorsion
public void addTorsion(int particle1, int particle2, int particle3, int particle4, int periodicity, double phase, double k) Add a torsion to the PeriodicTorsionForce.- Parameters:
particle1
- Index of the first atom.particle2
- Index of the second atom.particle3
- Index of the third atom.particle4
- Index of the fourth atom.periodicity
- The periodicity of the torsion.phase
- The phase of the torsion.k
- The force constant for the torsion.
-
setTorsionParameters
public void setTorsionParameters(int index, int particle1, int particle2, int particle3, int particle4, int periodicity, double phase, double k) Set the parameters for a torsion.- Parameters:
index
- The index of the torsion for which to set parameters.particle1
- The index of the first atom in the torsion.particle2
- The index of the second atom in the torsion.particle3
- The index of the third atom in the torsion.particle4
- The index of the fourth atom in the torsion.periodicity
- The periodicity of the torsion.phase
- The phase of the torsion.k
- The force constant for the torsion.
-
updateParametersInContext
Update the parameters for a torsion in the OpenMM Context.- Parameters:
context
- The OpenMM Context.
-
destroy
public void destroy()
-