|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.numerics.CashKarp45
public class CashKarp45
CashKarp45 implements a RKF 4/5 ODE solver with variable step size using Cash-Karp coefficients.
| Field Summary | |
|---|---|
protected boolean |
enableExceptions
|
protected double |
tol
|
| Fields inherited from interface org.opensourcephysics.numerics.ODEAdaptiveSolver |
|---|
BISECTION_EVENT_NOT_FOUND, DID_NOT_CONVERGE, NO_ERROR |
| Constructor Summary | |
|---|---|
CashKarp45(ODE _ode)
Constructs the CashKarp45 ODESolver for a system of ordinary differential equations. |
|
| Method Summary | |
|---|---|
void |
enableRuntimeExpecptions(boolean enable)
Enables runtime exceptions if the solver does not converge. |
int |
getErrorCode()
Gets the error code. |
double |
getStepSize()
Gets the step size. |
double |
getTolerance()
Method getTolerance |
void |
initialize(double _stepSize)
Initializes the ODE solver. |
void |
setStepSize(double stepSize)
Sets the step size. |
void |
setTolerance(double _tol)
Method setTolerance |
double |
step()
Steps (advances) the differential equations by the stepSize. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double tol
protected boolean enableExceptions
| Constructor Detail |
|---|
public CashKarp45(ODE _ode)
_ode - the system of differential equations.| Method Detail |
|---|
public void initialize(double _stepSize)
initialize in interface ODESolver_stepSize - public double step()
step in interface ODESolverpublic void enableRuntimeExpecptions(boolean enable)
enable - booleanpublic void setStepSize(double stepSize)
setStepSize in interface ODESolverstepSize - public double getStepSize()
getStepSize in interface ODESolverpublic void setTolerance(double _tol)
setTolerance in interface ODEAdaptiveSolver_tol - public double getTolerance()
getTolerance in interface ODEAdaptiveSolverpublic int getErrorCode()
getErrorCode in interface ODEAdaptiveSolver
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||