Integrator¶
-
class
OpenMM::Integrator¶ An
Integratordefines a method for simulating aSystemby integrating the equations of motion. This is an abstract class. Subclasses define particular integration methods.Each
Integratorobject is bound to a particularContextwhich it integrates. This connection is specified by passing theIntegratoras an argument to the constructor of theContext.Methods
Integrator~IntegratorgetStepSizeGet the size of each time step, in picoseconds. setStepSizeSet the size of each time step, in picoseconds. getConstraintToleranceGet the distance tolerance within which constraints are maintained, as a fraction of the constrained distance. setConstraintToleranceSet the distance tolerance within which constraints are maintained, as a fraction of the constrained distance. stepAdvance a simulation through time by taking a series of time steps. -
Integrator()¶
-
~Integrator()¶
-
double
getStepSize() const¶ Get the size of each time step, in picoseconds. If this integrator uses variable time steps, the size of the most recent step is returned.
Returns: the step size, measured in ps
-
void
setStepSize(double size)¶ Set the size of each time step, in picoseconds. If this integrator uses variable time steps, the effect of calling this method is undefined, and it may simply be ignored.
Parameters: - size – the step size, measured in ps
-
double
getConstraintTolerance() const¶ Get the distance tolerance within which constraints are maintained, as a fraction of the constrained distance.
-
void
setConstraintTolerance(double tol)¶ Set the distance tolerance within which constraints are maintained, as a fraction of the constrained distance.
-
void
step(int steps) = 0¶ Advance a simulation through time by taking a series of time steps.
Parameters: - steps – the number of time steps to take
-