|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.numerics.ODEMultistepSolver
public class ODEMultistepSolver
ODEMultistepSolver performs multiple ODE steps so that a uniform step size is maintained.
| Field Summary | |
|---|---|
static int |
CONVERGE_ERROR
|
static int |
NO_ERROR
|
| Constructor Summary | |
|---|---|
ODEMultistepSolver(ODE ode)
Constructs an ODEMultiStep ODE solver for a system of ordinary differential equations. |
|
| Method Summary | |
|---|---|
double |
getStepSize()
Gets the step size. |
double |
getTolerance()
Gets the tolerance of the adaptive ODE sovler. |
void |
initialize(double stepSize)
Initializes the ODE solver. |
static ODEAdaptiveSolver |
MultistepRK45(ODE ode)
A factory method that creates a multisetp solver using the RK45 engine. |
void |
setStepSize(double stepSize)
Sets the fixed step size. |
void |
setTolerance(double tol)
Sets the tolerance of the adaptive ODE sovler. |
double |
step()
Steps (advances) the differential equations by the stepSize. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_ERROR
public static final int CONVERGE_ERROR
| Constructor Detail |
|---|
public ODEMultistepSolver(ODE ode)
ode - | Method Detail |
|---|
public static ODEAdaptiveSolver MultistepRK45(ODE ode)
ode - ODE
public void setTolerance(double tol)
setTolerance in interface ODEAdaptiveSolvertol - the tolerancepublic double getTolerance()
getTolerance in interface ODEAdaptiveSolverpublic double step()
step in interface ODESolverpublic void initialize(double stepSize)
initialize in interface ODESolverstepSize - public void setStepSize(double stepSize)
setStepSize in interface ODESolverstepSize - public double getStepSize()
getStepSize in interface ODESolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||