org.opensourcephysics.numerics.rk
Class Dopri853

java.lang.Object
  extended by org.opensourcephysics.numerics.rk.AbstractExplicitRKSolverInterpolator
      extended by org.opensourcephysics.numerics.rk.AbstractAdaptiveRKSolverInterpolator
          extended by org.opensourcephysics.numerics.rk.Dopri853
All Implemented Interfaces:
ODESolverInterpolator

public class Dopri853
extends AbstractAdaptiveRKSolverInterpolator

Title: Dopri853 Description: Dorman Prince 8 ODE solver with 7th order dense output

Version:
December 2008
Author:
Francisco Esquembre (based on code by Andrei Goussev)

Constructor Summary
Dopri853(ODE _ode)
           
 
Method Summary
 double[] interpolate(double _time, boolean useLeftApproximation, double[] _state)
          Returns the value of the ODE's state[] at the given time in the provided state[] array.
 
Methods inherited from class org.opensourcephysics.numerics.rk.AbstractAdaptiveRKSolverInterpolator
reinitialize, setEstimateFirstStep, setMaximumStepSize, setTolerances, setTolerances
 
Methods inherited from class org.opensourcephysics.numerics.rk.AbstractExplicitRKSolverInterpolator
bestInterpolate, getCounter, getCurrentRate, getInternalStepSize, getMaximumTime, getODE, getStateMemory, getStepSize, initialize, internalStep, interpolate, interpolate, setMemoryLength, setStepSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dopri853

public Dopri853(ODE _ode)
Method Detail

interpolate

public double[] interpolate(double _time,
                            boolean useLeftApproximation,
                            double[] _state)
Description copied from interface: ODESolverInterpolator
Returns the value of the ODE's state[] at the given time in the provided state[] array. The time must be in the range of the memory or between the current time and getMaximumTime() for correct operation.

Specified by:
interpolate in interface ODESolverInterpolator
Specified by:
interpolate in class AbstractExplicitRKSolverInterpolator
Parameters:
_time - the time for the interpolation desired
useLeftApproximation - In case of doubt, approximate the value from the left (this is important if the state has a discontinuity at that instant of time, such as for DDEs)
_state - placeholder for the returned state
Returns:
The state provided as argument or null if there is no interpolation available at this time.