Class ODEState

    • Constructor Detail

      • ODEState

        public ODEState​(double time,
                        double[] primaryState)
        Simple constructor.

        Calling this constructor is equivalent to call ODEState(time, state, null).

        Parameters:
        time - time
        primaryState - primary state at time
      • ODEState

        public ODEState​(double time,
                        double[] primaryState,
                        double[][] secondaryState)
        Simple constructor.
        Parameters:
        time - time
        primaryState - state at time
        secondaryState - primary state at time (may be null)
    • Method Detail

      • copy

        protected double[][] copy​(double[][] original)
        Copy a two-dimensions array.
        Parameters:
        original - original array (may be null)
        Returns:
        copied array or null if original array was null
      • getTime

        public double getTime()
        Get time.
        Returns:
        time
      • getNumberOfSecondaryStates

        public int getNumberOfSecondaryStates()
        Get the number of secondary states.
        Returns:
        number of secondary states.
      • getCompleteStateDimension

        public int getCompleteStateDimension()
        Return the dimension of the complete set of equations.

        The complete set of equations correspond to the primary set plus all secondary sets.

        Returns:
        dimension of the complete set of equations
        See Also:
        getPrimaryStateDimension(), getSecondaryStateDimension(int)