Interface FieldSecondaryEquations<T extends RealFieldElement<T>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T[] computeDerivatives​(T t, T[] primary, T[] primaryDot, T[] secondary)
      Compute the derivatives related to the secondary state parameters.
      int getDimension()
      Get the dimension of the secondary state parameters.
      void init​(T t0, T[] primary0, T[] secondary0, T finalTime)
      Initialize equations at the start of an ODE integration.
    • Method Detail

      • getDimension

        int getDimension()
        Get the dimension of the secondary state parameters.
        Returns:
        dimension of the secondary state parameters
      • init

        void init​(T t0,
                  T[] primary0,
                  T[] secondary0,
                  T finalTime)
        Initialize equations at the start of an ODE integration.

        This method is called once at the start of the integration. It may be used by the equations to initialize some internal data if needed.

        Parameters:
        t0 - value of the independent time variable at integration start
        primary0 - array containing the value of the primary state vector at integration start
        secondary0 - array containing the value of the secondary state vector at integration start
        finalTime - target time for the integration
      • computeDerivatives

        T[] computeDerivatives​(T t,
                               T[] primary,
                               T[] primaryDot,
                               T[] secondary)
                        throws MaxCountExceededException,
                               DimensionMismatchException
        Compute the derivatives related to the secondary state parameters.
        Parameters:
        t - current value of the independent time variable
        primary - array containing the current value of the primary state vector
        primaryDot - array containing the derivative of the primary state vector
        secondary - array containing the current value of the secondary state vector
        Returns:
        derivative of the secondary state vector
        Throws:
        MaxCountExceededException - if the number of functions evaluations is exceeded
        DimensionMismatchException - if arrays dimensions do not match equations settings