Class VelocityVerlet
java.lang.Object
ffx.algorithms.dynamics.integrators.Integrator
ffx.algorithms.dynamics.integrators.VelocityVerlet
Integrate Newton's equations of motion using a Velocity Verlet multistep recursion formula.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Field Summary
Fields inherited from class ffx.algorithms.dynamics.integrators.Integrator
constraints, constraintTolerance, dt, state, useConstraints
-
Constructor Summary
-
Method Summary
Methods inherited from class ffx.algorithms.dynamics.integrators.Integrator
addConstraints, copyAccelerationToPrevious, getConstraints, getTimeStep, parseIntegrator
-
Constructor Details
-
VelocityVerlet
Constructor for VelocityVerlet.- Parameters:
state
- The current state of the molecular dynamics simulation to operate on.
-
-
Method Details
-
postForce
public void postForce(double[] gradient) Integrator post-force evaluation operation.Use Newton's second law to find accelerations and then full-step velocities.
- Specified by:
postForce
in classIntegrator
- Parameters:
gradient
- the gradient for the post-force operation.
-
preForce
Integrator pre-force evaluation operation.Find half-step velocities and full-step positions.
- Specified by:
preForce
in classIntegrator
- Parameters:
potential
- the Potential this integrator operates on.
-
setTimeStep
public void setTimeStep(double dt) Set the time step.- Specified by:
setTimeStep
in classIntegrator
- Parameters:
dt
- the time step (psec).
-
toString
-