Class Inertia

    • Constructor Detail

      • Inertia

        public Inertia()
        Simple constructor.
    • Method Detail

      • validate

        public void validate​(double version)
        Check is all mandatory entries have been initialized.

        This method should throw an exception if some mandatory entries are missing or not compatible with version number.

        Specified by:
        validate in interface Section
        Overrides:
        validate in class CommonPhysicalProperties
        Parameters:
        version - format version
      • setFrame

        public void setFrame​(FrameFacade frame)
        Set frame in which inertia is specified.
        Parameters:
        frame - frame in which inertia is specified
      • getFrame

        public FrameFacade getFrame()
        Get frame in which inertia is specified.
        Returns:
        frame in which inertia is specified
      • getInertiaMatrix

        public RealMatrix getInertiaMatrix()
        Get the inertia matrix.
        Returns:
        the inertia matrix
      • setInertiaMatrixEntry

        public void setInertiaMatrixEntry​(int j,
                                          int k,
                                          double entry)
        Set an entry in the inertia matrix.

        Both I(j, k) and I(k, j) are set.

        Parameters:
        j - row index (must be between 0 and 3 (inclusive)
        k - column index (must be between 0 and 3 (inclusive)
        entry - value of the matrix entry