ODEAdaptiveSolver, ODESolverpublic class RK45MultiStep extends RK45
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
maxIterations |
enableExceptions, tolBISECTION_EVENT_NOT_FOUND, DID_NOT_CONVERGE, NO_ERROR| Constructor | Description |
|---|---|
RK45MultiStep(ODE _ode) |
Constructs the RK45MultiStep ODESolver for a system of ordinary differential equations.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getErrorCode() |
Gets the error code.
|
double |
getStepSize() |
Gets the step size.
|
void |
initialize(double stepSize) |
Initializes the ODE solver.
|
void |
setMaximumNumberOfErrorMessages(int n) |
Sets the number of error messages if ODE solver did not converge.
|
void |
setMaxIterations(int n) |
Sets the maximum number of iterations.
|
void |
setStepSize(double stepSize) |
Method setStepSize
|
double |
step() |
Steps (advances) the differential equations by the stepSize.
|
enableRuntimeExpecptions, getTolerance, setTolerancepublic RK45MultiStep(ODE _ode)
_ode - the system of differential equations.public double step()
step in interface ODESolverstep in class DormandPrince45public void setMaxIterations(int n)
n - maximumpublic void setMaximumNumberOfErrorMessages(int n)
n - intpublic void initialize(double stepSize)
initialize in interface ODESolverinitialize in class DormandPrince45stepSize - public void setStepSize(double stepSize)
setStepSize in interface ODESolversetStepSize in class DormandPrince45stepSize - public double getStepSize()
getStepSize in interface ODESolvergetStepSize in class DormandPrince45public int getErrorCode()
getErrorCode in interface ODEAdaptiveSolvergetErrorCode in class DormandPrince45