| Modifier and Type | Field | Description |
|---|---|---|
protected int |
numEqn |
|
protected ODE |
ode |
|
protected double |
stepSize |
| Constructor | Description |
|---|---|
AbstractODESolver(ODE _ode) |
Constructs the ODESolver for a system of ordinary differential equations.
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
getStepSize() |
Gets the step size.
|
void |
initialize(double _stepSize) |
Initializes the ODE solver.
|
void |
setStepSize(double _stepSize) |
Sets the step size.
|
abstract double |
step() |
Steps (advances) the differential equations by the stepSize.
|
protected double stepSize
protected int numEqn
protected ODE ode
public AbstractODESolver(ODE _ode)
_ode - the system of differential equations.public abstract double step()
public void setStepSize(double _stepSize)
setStepSize in interface ODESolver_stepSize - public void initialize(double _stepSize)
initialize in interface ODESolver_stepSize - public double getStepSize()
getStepSize in interface ODESolver