Package ffx.openmm
Class CustomGBForce
java.lang.Object
ffx.openmm.Force
ffx.openmm.CustomGBForce
- Direct Known Subclasses:
FixedChargeGBForce
Custom GB Force.
-
Field Summary
-
Constructor Summary
-
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
(DoubleArray 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, DoubleArray particleParameters) Set the particle parameters.void
updateParametersInContext
(Context context) Update the parameters in the context.Methods inherited from class ffx.openmm.Force
getForceGroup, getForceIndex, getName, getPointer, setForceGroup, setForceIndex, setName, usesPeriodicBoundaryConditions
-
Constructor Details
-
CustomGBForce
public CustomGBForce()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.
-