This is an Integrator which simulates a System using the leap-frog Verlet algorithm. More...
#include <VerletIntegrator.h>
Public Member Functions | |
VerletIntegrator (double stepSize) | |
Create a VerletIntegrator. | |
void | step (int steps) |
Advance a simulation through time by taking a series of time steps. | |
Protected Member Functions | |
void | initialize (ContextImpl &context) |
This will be called by the Context when it is created. | |
std::vector< std::string > | getKernelNames () |
Get the names of all Kernels used by this Integrator. |
This is an Integrator which simulates a System using the leap-frog Verlet algorithm.
VerletIntegrator | ( | double | stepSize | ) |
Create a VerletIntegrator.
stepSize | the step size with which to integrator the system (in picoseconds) |
std::vector<std::string> getKernelNames | ( | ) | [protected, virtual] |
Get the names of all Kernels used by this Integrator.
Implements Integrator.
void initialize | ( | ContextImpl & | context | ) | [protected, virtual] |
This will be called by the Context when it is created.
It informs the Integrator of what context it will be integrating, and gives it a chance to do any necessary initialization. It will also get called again if the application calls reinitialize() on the Context.
Implements Integrator.
void step | ( | int | steps | ) | [virtual] |
Advance a simulation through time by taking a series of time steps.
steps | the number of time steps to take |
Implements Integrator.