Package ffx.openmm
Class HarmonicBondForce
java.lang.Object
ffx.openmm.Force
ffx.openmm.HarmonicBondForce
- Direct Known Subclasses:
UreyBradleyForce
Harmonic Bond Force.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBond
(int i1, int i2, double length, double k) Add a Harmonic Bond.void
setBondParameters
(int i, int i1, int i2, double length, double k) Set the bond parameters.void
updateParametersInContext
(Context context) Update the parameters in the OpenMM Context.Methods inherited from class ffx.openmm.Force
getForceGroup, getForceIndex, getName, getPointer, setForceGroup, setForceIndex, setName, usesPeriodicBoundaryConditions
-
Constructor Details
-
HarmonicBondForce
public HarmonicBondForce()
-
-
Method Details
-
addBond
public void addBond(int i1, int i2, double length, double k) Add a Harmonic Bond.- Parameters:
i1
- Index of the first atom.i2
- Index of the second atom.length
- The equilibrium bond length.k
- The force constant.
-
setBondParameters
public void setBondParameters(int i, int i1, int i2, double length, double k) Set the bond parameters.- Parameters:
i
- The bond index.i1
- Index of the first atom.i2
- Index of the second atom.length
- The equilibrium bond length.k
- The force constant.
-
updateParametersInContext
Update the parameters in the OpenMM Context.- Parameters:
context
- The OpenMM Context.
-