public class LeapFrog extends AbstractODESolver
numEqn, ode, stepSize
Constructor and Description |
---|
LeapFrog(ODE ode)
Constructs the LeapFrog ODESolver for a system of ordinary differential equations.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(double stepSize)
Initializes the ODE solver.
|
void |
setStepSize(double stepSize)
Sets the step size.
|
double |
step()
Steps (advances) the differential equations by the stepSize.
|
getStepSize
public LeapFrog(ODE ode)
ode
- the system of differential equations.public void initialize(double stepSize)
initialize
in interface ODESolver
initialize
in class AbstractODESolver
stepSize
- public void setStepSize(double stepSize)
setStepSize
in interface ODESolver
setStepSize
in class AbstractODESolver
stepSize
- public double step()
step
in interface ODESolver
step
in class AbstractODESolver