Package ffx.potential.openmm
Class OpenMMCustomGBForce
java.lang.Object
ffx.potential.openmm.OpenMMForce
ffx.potential.openmm.OpenMMCustomGBForce
- Direct Known Subclasses:
FixedChargeGBForce
OpenMM CustomGBForce.
-
Field Summary
Fields inherited from class ffx.potential.openmm.OpenMMForce
forcePointer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComputedValue(String name, String expression, int type) Add a computed value.voidaddEnergyTerm(String expression, int type) Add an energy term.voidaddGlobalParameter(String name, double value) Add a global parameter.voidaddParticle(OpenMMDoubleArray particleParameters) Add a particle to the force.voidAdd per particle parameter.voiddestroy()Destroy the force.voidsetCutoffDistance(double off) Set the cutoff distance.voidsetParticleParameters(int index, OpenMMDoubleArray particleParameters) Set the particle parameters.voidupdateParametersInContext(OpenMMContext context) Update the parameters in the context.Methods inherited from class ffx.potential.openmm.OpenMMForce
constructForce, getForceGroup, getForceIndex, getName, getPointer, setForceGroup, setForceIndex, setName, usesPeriodicBoundaryConditions
-
Constructor Details
-
OpenMMCustomGBForce
public OpenMMCustomGBForce()OpenMM CustomGBForce constructor.
-
-
Method Details
-
addPerParticleParameter
Add per particle parameter.- Parameters:
name- The name of the parameter.
-
addGlobalParameter
Add a global parameter.- Parameters:
name- The parameter name.value- The parameter value.
-
addComputedValue
Add a computed value.- Parameters:
name- The computed value name.expression- The computed value expression.type- The computed value type.
-
addEnergyTerm
Add an energy term.- Parameters:
expression- The energy term expression.type- The energy term type.
-
addParticle
Add a particle to the force.- Parameters:
particleParameters- The particle parameters.
-
setParticleParameters
Set the particle parameters.- Parameters:
index- The particle index.particleParameters- The particle parameters.
-
setCutoffDistance
public void setCutoffDistance(double off) Set the cutoff distance.- Parameters:
off- The cutoff distance.
-
updateParametersInContext
Update the parameters in the context.- Parameters:
context- The context.
-
destroy
public void destroy()Destroy the force.
-