numEqn, ode, stepSize| Constructor | Description |
|---|---|
Adams4(ODE ode) |
Constructs the RK4 ODESolver for a system of ordinary differential equations.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
initialize(double stepSize) |
Initializes the ODE solver and allocates the rate and state arrays.
|
double |
step() |
Steps (advances) the differential equations by the stepSize.
|
getStepSize, setStepSizepublic Adams4(ODE ode)
ode - the system of differential equations.public void initialize(double stepSize)
initialize in interface ODESolverinitialize in class RK4stepSize - public double step()