|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.numerics.DormandPrince45 org.opensourcephysics.numerics.RK45 org.opensourcephysics.numerics.RK45MultiStep
public class RK45MultiStep
Title: RK45MultiStep Description: Perform multiple RK4/5 ODE steps so that a uniform step size is maintained
Field Summary | |
---|---|
protected int |
maxIterations
|
Fields inherited from class org.opensourcephysics.numerics.DormandPrince45 |
---|
enableExceptions, tol |
Fields inherited from interface org.opensourcephysics.numerics.ODEAdaptiveSolver |
---|
BISECTION_EVENT_NOT_FOUND, DID_NOT_CONVERGE, NO_ERROR |
Constructor Summary | |
---|---|
RK45MultiStep(ODE _ode)
Constructs the RK45MultiStep ODESolver for a system of ordinary differential equations. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.opensourcephysics.numerics.DormandPrince45 |
---|
enableRuntimeExpecptions, getTolerance, setTolerance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int maxIterations
Constructor Detail |
---|
public RK45MultiStep(ODE _ode)
_ode
- the system of differential equations.Method Detail |
---|
public double step()
step
in interface ODESolver
step
in class DormandPrince45
public void setMaxIterations(int n)
n
- maximumpublic void setMaximumNumberOfErrorMessages(int n)
n
- intpublic void initialize(double stepSize)
initialize
in interface ODESolver
initialize
in class DormandPrince45
stepSize
- public void setStepSize(double stepSize)
setStepSize
in interface ODESolver
setStepSize
in class DormandPrince45
stepSize
- public double getStepSize()
getStepSize
in interface ODESolver
getStepSize
in class DormandPrince45
public int getErrorCode()
getErrorCode
in interface ODEAdaptiveSolver
getErrorCode
in class DormandPrince45
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |