public class Verlet extends AbstractODESolver
numEqn, ode, stepSize
Constructor and Description |
---|
Verlet(ODE ode)
Constructs the velocity Verlet ODESolver for a system of ordinary differential equations.
|
Modifier and Type | Method and Description |
---|---|
int |
getRateCounter()
Gets the counter that records the number of times the rate has been evaluated during the current step.
|
void |
initialize(double stepSize)
Initializes the ODE solver.
|
double |
step()
Steps (advances) the differential equations by the stepSize.
|
getStepSize, setStepSize
public Verlet(ODE ode)
ode
- the system of differential equations.public void initialize(double stepSize)
initialize
in interface ODESolver
initialize
in class AbstractODESolver
stepSize
- public int getRateCounter()
public double step()
step
in interface ODESolver
step
in class AbstractODESolver