Class ODEMultistepSolver.InternalODE

java.lang.Object
org.opensourcephysics.numerics.ODEMultistepSolver.InternalODE
All Implemented Interfaces:
ODE
Enclosing class:
ODEMultistepSolver

protected final class ODEMultistepSolver.InternalODE extends Object implements ODE
A class that saves an internal state that may be different from the orginal ODE. This internal state is used with interpolation solvers.
  • Method Details

    • getRate

      public void getRate(double[] state, double[] rate)
      Gets the rate using the given state.
      Specified by:
      getRate in interface ODE
      Parameters:
      state - double[]
      rate - double[]
    • getState

      public double[] getState()
      Gets the state.
      Specified by:
      getState in interface ODE
      Returns:
      double[]
    • setInitialConditions

      public void setInitialConditions()
      Sets the initial conditions using the current state of the ODE.
    • update

      public void update()
      updates the ODE state using the engine's internal state.