|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.numerics.rk.irk.Radau5Light org.opensourcephysics.numerics.rk.irk.Radau5Adaptive org.opensourcephysics.numerics.rk.Radau5
public class Radau5
Title: Radau5 Description: 5th order implicit RK Radau solver
Constructor Summary | |
---|---|
Radau5(ODE ode)
|
Method Summary | |
---|---|
double[] |
bestInterpolate(double _time,
double[] _state)
Similar to interpolate(), but using the best estimate the algorith can provide and only between the current time and getMaximumTime(). |
double[] |
getCurrentRate()
Returns the rate of the current state |
double |
getInternalStepSize()
Returns the actual internal step size |
double |
getMaximumTime()
Returns the maximum time forward in time (or minimum, if the step is negative) for which the solver can interpolate without doing any internal step. |
StateMemory |
getStateMemory()
Provides access to the internal StateMemory responsible for interpolations. |
double |
internalStep()
Steps the internal step as much as possible (respecting the step size and the tolerance, if any). |
double[] |
interpolate(double _time,
boolean useLeftApproximation,
double[] _state)
Implements continuous vector function that approximates the solution of the ODE. |
double[] |
interpolate(double _time,
boolean _useLeftApproximation,
double[] _state,
int _beginIndex,
int _length)
|
double |
interpolate(double _time,
boolean _useLeftApproximation,
int _index)
|
void |
reinitialize(double[] _state)
Does the minimum (soft) initialization of the solver to a given state. |
void |
setEstimateFirstStep(boolean _estimate)
Makes adaptive steps estimate the best initial step after reinitialize(). |
void |
setMemoryLength(double length)
Sets the length of the memory requested to the solver. |
Methods inherited from class org.opensourcephysics.numerics.rk.irk.Radau5Adaptive |
---|
doStep, getErrorCode, setTolerances |
Methods inherited from class org.opensourcephysics.numerics.rk.irk.Radau5Light |
---|
getCounter, getODE, getStepSize, initialize, setMaximumStepSize, setStepSize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensourcephysics.numerics.ODESolverInterpolator |
---|
getCounter, getODE, getStepSize, initialize, setMaximumStepSize, setStepSize, setTolerances |
Constructor Detail |
---|
public Radau5(ODE ode)
Method Detail |
---|
public void reinitialize(double[] _state)
ODESolverInterpolator
reinitialize
in interface ODESolverInterpolator
reinitialize
in class Radau5Adaptive
_state
- double[]public double[] getCurrentRate()
ODESolverInterpolator
getCurrentRate
in interface ODESolverInterpolator
public final void setEstimateFirstStep(boolean _estimate)
ODESolverInterpolator
setEstimateFirstStep
in interface ODESolverInterpolator
public final double getMaximumTime()
ODESolverInterpolator
getMaximumTime
in interface ODESolverInterpolator
public final double internalStep()
ODESolverInterpolator
internalStep
in interface ODESolverInterpolator
public double getInternalStepSize()
ODESolverInterpolator
getInternalStepSize
in interface ODESolverInterpolator
public void setMemoryLength(double length)
ODESolverInterpolator
setMemoryLength
in interface ODESolverInterpolator
public StateMemory getStateMemory()
ODESolverInterpolator
getStateMemory
in interface ODESolverInterpolator
public double[] interpolate(double _time, boolean useLeftApproximation, double[] _state)
interpolate
in interface ODESolverInterpolator
time
- the point where approximation to the solution to be obtained.
(0 < time < takenstepSize corresponds to the interpolation, in other cases
output will indeed the extrapolation)result
- the result, i.e. approximated solution of ODE
public double[] interpolate(double _time, boolean _useLeftApproximation, double[] _state, int _beginIndex, int _length)
public double interpolate(double _time, boolean _useLeftApproximation, int _index)
public double[] bestInterpolate(double _time, double[] _state)
ODESolverInterpolator
bestInterpolate
in interface ODESolverInterpolator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |