Package ffx.potential.openmm
Class OpenMMCustomCompoundBondForce
java.lang.Object
ffx.potential.openmm.OpenMMForce
ffx.potential.openmm.OpenMMCustomCompoundBondForce
- Direct Known Subclasses:
AngleTorsionForce,InPlaneAngleForce,OutOfPlaneBendForce,PiOrbitalTorsionForce,StretchBendForce,StretchTorsionForce
OpenMM Custom Compound Bond Force.
-
Field Summary
Fields inherited from class ffx.potential.openmm.OpenMMForce
forcePointer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBond(OpenMMIntArray particles, OpenMMDoubleArray parameters) Add a Custom Compound Bond to the OpenMM System.voidaddGlobalParameter(String name, double value) Add a global parameter.voidaddPerBondParameter(String name) Add a per-bond parameter to the OpenMM System.voiddestroy()Clean up.voidsetBondParameters(int index, OpenMMIntArray particles, OpenMMDoubleArray parameters) Set the parameters for a Custom Compound Bond.voidupdateParametersInContext(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
-
OpenMMCustomCompoundBondForce
-
-
Method Details
-
addPerBondParameter
Add a per-bond parameter to the OpenMM System.- Parameters:
name- The name of the parameter.
-
addGlobalParameter
Add a global parameter.- Parameters:
name- The parameter name.value- The parameter value.
-
addBond
Add a Custom Compound Bond to the OpenMM System.- Parameters:
particles- The indices of the particles.parameters- The bond parameters.
-
setBondParameters
Set the parameters for a Custom Compound Bond.- Parameters:
index- The index of the bond.particles- The indices of the particles.parameters- The bond parameters.
-
updateParametersInContext
Update the parameters in the OpenMM Context.- Parameters:
openMMContext- The OpenMM Context.
-
destroy
public void destroy()Clean up.
-