Class LutherStepInterpolator

All Implemented Interfaces:
Externalizable, Serializable, StepInterpolator

class LutherStepInterpolator extends RungeKuttaStepInterpolator
This class represents an interpolator over the last step during an ODE integration for the 6th order Luther integrator.

This interpolator computes dense output inside the last step computed. The interpolation equation is consistent with the integration scheme.

Since:
3.3
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serializable version identifier
      See Also:
    • Q

      private static final double Q
      Square root.
  • Constructor Details

    • LutherStepInterpolator

      public LutherStepInterpolator()
      Simple constructor. This constructor builds an instance that is not usable yet, the AbstractStepInterpolator.reinitialize(double[], boolean, EquationsMapper, EquationsMapper[]) method should be called before using the instance in order to initialize the internal arrays. This constructor is used only in order to delay the initialization in some cases. The RungeKuttaIntegrator class uses the prototyping design pattern to create the step interpolators by cloning an uninitialized model and later initializing the copy.
    • LutherStepInterpolator

      LutherStepInterpolator(LutherStepInterpolator interpolator)
      Copy constructor.
      Parameters:
      interpolator - interpolator to copy from. The copy is a deep copy: its arrays are separated from the original arrays of the instance
  • Method Details

    • doCopy

      protected StepInterpolator doCopy()
      Really copy the finalized instance.

      This method is called by AbstractStepInterpolator.copy() after the step has been finalized. It must perform a deep copy to have an new instance completely independent for the original instance.

      Specified by:
      doCopy in class AbstractStepInterpolator
      Returns:
      a copy of the finalized instance
    • computeInterpolatedStateAndDerivatives

      protected void computeInterpolatedStateAndDerivatives(double theta, double oneMinusThetaH)
      Compute the state and derivatives at the interpolated time. This is the main processing method that should be implemented by the derived classes to perform the interpolation.
      Specified by:
      computeInterpolatedStateAndDerivatives in class AbstractStepInterpolator
      Parameters:
      theta - normalized interpolation abscissa within the step (theta is zero at the previous time step and one at the current time step)
      oneMinusThetaH - time gap between the interpolated time and the current time