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 TypeMethodDescriptionvoid
addComputedValue
(String name, String expression, int type) Add a computed value.void
addEnergyTerm
(String expression, int type) Add an energy term.void
addGlobalParameter
(String name, double value) Add a global parameter.void
addParticle
(OpenMMDoubleArray particleParameters) Add a particle to the force.void
Add per particle parameter.void
destroy()
Destroy the force.void
setCutoffDistance
(double off) Set the cutoff distance.void
setParticleParameters
(int index, OpenMMDoubleArray particleParameters) Set the particle parameters.void
updateParametersInContext
(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.
-