Package ffx.openmm
Class CustomIntegrator
java.lang.Object
ffx.openmm.Integrator
ffx.openmm.CustomIntegrator
- Direct Known Subclasses:
CustomMTSIntegrator
,CustomMTSLangevinIntegrator
Custom Integrator.
-
Field Summary
Fields inherited from class ffx.openmm.Integrator
pointer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComputePerDof
(String name, String expression) Add a per-DOF computation to this Integrator.void
Add a position constraint to this Integrator.void
Add a velocity constraint to this Integrator.void
addGlobalVariable
(String name, double initialValue) Add a global variable to this Integrator.void
addPerDofVariable
(String name, double initialValue) Add a per-DOF variable to this Integrator.void
Add an update context state to this Integrator.Methods inherited from class ffx.openmm.Integrator
destroy, getPointer, setConstraintTolerance, setPointer, step
-
Constructor Details
-
CustomIntegrator
public CustomIntegrator(double dt) Constructor.- Parameters:
dt
- The time step.
-
-
Method Details
-
addComputePerDof
Add a per-DOF computation to this Integrator.- Parameters:
name
- The name of the variable to create.expression
- The expression to evaluate.
-
addConstrainPositions
public void addConstrainPositions()Add a position constraint to this Integrator. -
addConstrainVelocities
public void addConstrainVelocities()Add a velocity constraint to this Integrator. -
addGlobalVariable
Add a global variable to this Integrator.- Parameters:
name
- The name of the variable to create.initialValue
- The initial value of the variable.
-
addPerDofVariable
Add a per-DOF variable to this Integrator.- Parameters:
name
- The name of the variable to create.initialValue
- The initial value of the variable.
-
addUpdateContextState
public void addUpdateContextState()Add an update context state to this Integrator.
-