|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectintegrators.Integrator
integrators.HuenIntegrator
Simple predictor-corrector with simple-minded adaptive stepsizing... probably unstable and rather inefficient, and shouldn't be used for any real work, but maybe for igniting a better multistep method... or maybe with methods that use extrapolation to zero stepsize. Basically it makes an estimate of y(t+h) by first making such an estimate with the forward Euler step y(t+h) = y(t) + hf(y(t)), then using that estimate to calculate the backward Euler step y(t+h) = y(t) + hf(y(t+h)), then averaging the two estimates. Because of the averaging, and because no iteration is performed on the correction step, this is not really an implicit method.
Nested Class Summary |
Nested classes inherited from class integrators.Integrator |
Integrator.NVmatrix, Integrator.NVvector |
Constructor Summary | |
HuenIntegrator()
Deprecated. no-argument constructor allows instantiating a HuenIntegrator generically from its name alone, with default minimum step size of 10E-5 and with step size adaptation turned ON. |
Method Summary | |
void |
init(Model model)
Deprecated. Other than allocating the necessary storage arrays, HuenIntegrator.init() also sets the error tolerance to 10E-4 and minimum step size to 10E-5. |
float |
IntegrateOneStep()
Deprecated. Integrates across a single time step. |
void |
reset()
Deprecated. Resets timestep to default, and cleans up various internal flags; call before starting a new run. |
void |
setAdaptiveStepsizing(boolean b)
Deprecated. Turn on or off the recursion this simple-minded method uses to try and make the error estimate acceptable. |
void |
setMinStepSize(float ts)
Deprecated. Set the minimum timestep. |
void |
setStepSize(float ts)
Deprecated. HuenIntegrator overrides Integrator.setStepSize(float) to enforce the minimum time step. |
Methods inherited from class integrators.Integrator |
copyNVarray, getCurrentValues, getDerivatives, getErrorEstimate, isType, setDefaultStepSize, setErrorTolerance, setFinalValues, setIntegrationValues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HuenIntegrator()
Method Detail |
public void init(Model model)
init
in class Integrator
public void reset()
reset
in class Integrator
public float IntegrateOneStep()
Integrator
IntegrateOneStep
in class Integrator
public void setAdaptiveStepsizing(boolean b)
public void setMinStepSize(float ts)
public void setStepSize(float ts)
setStepSize
in class Integrator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |