Class HansenUtilities


  • public class HansenUtilities
    extends Object
    Utilities class.
    Author:
    Lucian Barbulescu
    • Method Detail

      • buildIdentityMatrix2

        public static PolynomialFunctionMatrix buildIdentityMatrix2()
        Build the identity matrix of order 2.
               / 1   0 \
          I₂ = |       |
               \ 0   1 /
         
        Returns:
        the identity matrix of order 2
      • buildZeroMatrix2

        public static PolynomialFunctionMatrix buildZeroMatrix2()
        Build the empty matrix of order 2.
               / 0   0 \
          E₂ = |       |
               \ 0   0 /
         
        Returns:
        the identity matrix of order 2
      • buildIdentityMatrix4

        public static PolynomialFunctionMatrix buildIdentityMatrix4()
        Build the identity matrix of order 4.
               / 1  0  0  0 \
               |            |
               | 0  1  0  0 |
          I₄ = |            |
               | 0  0  1  0 |
               |            |
               \ 0  0  0  1 /
         
        Returns:
        the identity matrix of order 4
      • buildZeroMatrix4

        public static PolynomialFunctionMatrix buildZeroMatrix4()
        Build the empty matrix of order 4.
               / 0  0  0  0 \
               |            |
               | 0  0  0  0 |
          E₄ = |            |
               | 0  0  0  0 |
               |            |
               \ 0  0  0  0 /
         
        Returns:
        the identity matrix of order 4
      • generateZonalPolynomials

        public static void generateZonalPolynomials​(int n0,
                                                    int nMin,
                                                    int offset,
                                                    int slice,
                                                    int s,
                                                    PolynomialFunction[][] mpvec,
                                                    PolynomialFunction[][] mpvecDeriv)
        Generate the polynomials needed in the linear transformation.
        Parameters:
        n0 - the index of the initial condition, Petre's paper
        nMin - rhe minimum value for the order
        offset - offset used to identify the polynomial that corresponds to a negative value of n in the internal array that starts at 0
        slice - number of coefficients that will be computed with a set of roots
        s - the s coefficient
        mpvec - array to store the first vector of polynomials associated to Hansen coefficients and derivatives.
        mpvecDeriv - array to store the second vector of polynomials associated only to derivatives.

        See Petre's paper

      • generateTesseralPolynomials

        public static void generateTesseralPolynomials​(int n0,
                                                       int nMin,
                                                       int offset,
                                                       int slice,
                                                       int j,
                                                       int s,
                                                       PolynomialFunction[][] mpvec,
                                                       PolynomialFunction[][] mpvecDeriv)
        Generate the polynomials needed in the linear transformation.
        Parameters:
        n0 - the index of the initial condition, Petre's paper
        nMin - rhe minimum value for the order
        offset - offset used to identify the polynomial that corresponds to a negative value of n in the internal array that starts at 0
        slice - number of coefficients that will be computed with a set of roots
        j - the j coefficient
        s - the s coefficient
        mpvec - array to store the first vector of polynomials associated to Hansen coefficients and derivatives.
        mpvecDeriv - array to store the second vector of polynomials associated only to derivatives.
      • generateThirdBodyPolynomials

        public static void generateThirdBodyPolynomials​(int n0,
                                                        int nMax,
                                                        int slice,
                                                        int s,
                                                        PolynomialFunction[][] mpvec,
                                                        PolynomialFunction[][] mpvecDeriv)
        Generate the polynomials needed in the linear transformation.
        Parameters:
        n0 - the index of the initial condition, Petre's paper
        nMax - the maximum order of n indexes
        slice - number of coefficients that will be computed with a set of roots
        s - the s coefficient
        mpvec - array to store the first vector of polynomials associated to Hansen coefficients and derivatives.
        mpvecDeriv - array to store the second vector of polynomials associated only to derivatives.

        See Petre's paper