Interface MeshData

    • Method Detail

      • clearData

        void clearData()
        Clears the MeshData object.
      • createMesh

        void createMesh()
        Construct a complete mesh from the MeshData object and store it in the meshing sequence.
      • getElem

        int[][] getElem​(java.lang.String type)
        Gets elements from the mesh.
        Parameters:
        type - Mesh type.
        Returns:
        Matrix where each column contains the mesh vertex indices of an element's corners.
      • getElem

        int[][] getElem​(java.lang.String type,
                        int position,
                        int number)
        Gets blocks of elements from the mesh.
        Parameters:
        type - Mesh type.
        position - Start index.
        number - Length of block.
        Returns:
        Matrix where each column contains the mesh vertex indices of an element's corners.
      • getElemEntity

        int[] getElemEntity​(java.lang.String type)
        Gets geometric entity number for the elements of a specific type.
        Parameters:
        type - Mesh type.
        Returns:
        Vector of geometric entity numbers.
      • getElemEntity

        int[] getElemEntity​(java.lang.String type,
                            int position,
                            int number)
        Gets blocks of geometric entity number for the elements of a specific type.
        Parameters:
        type - Mesh type.
        position - Start index.
        number - Length of block.
        Returns:
        Vector of geometric entity numbers.
      • getNumElem

        int getNumElem​(java.lang.String type)
        Gets the number of elements of a specific type.
        Parameters:
        type - Mesh type.
        Returns:
        Number of elements.
      • getNumVertex

        int getNumVertex()
        Gets the number of mesh vertices in a mesh.
        Returns:
        Number of mesh vertices.
      • getTypes

        java.lang.String[] getTypes()
        Gets the element types in the mesh.
        Returns:
        Vector of element types.
      • getVertex

        double[][] getVertex()
        Gets the coordinates of the mesh vertices.
        Returns:
        Matrix where each column corresponds to a mesh vertex.
      • getVertex

        double[][] getVertex​(int position,
                             int number)
        Gets block of coordinates of the mesh vertices.
        Parameters:
        position - Start index.
        number - Length of block.
        Returns:
        Matrix where each column corresponds to a mesh vertex.
      • setElem

        MeshData setElem​(java.lang.String type,
                         int[][] elem)
        Sets the mesh data.
        Parameters:
        type - Mesh type.
        elem - Matrix where each column contains the mesh vertex indices of an element's corners.
        Returns:
        Mesh data.
      • setElem

        MeshData setElem​(java.lang.String type,
                         int position,
                         int[][] elem)
        Inserts block of mesh data.
        Parameters:
        type - Mesh type.
        position - Start index.
        elem - Matrix where each column contains the mesh vertex indices of an element's corners.
        Returns:
        Mesh data.
      • setElemEntity

        MeshData setElemEntity​(java.lang.String type,
                               int[] elem)
        Sets geometric entity number for the elements of a specific type.
        Parameters:
        type - Mesh type.
        elem - Geometric entity number.
        Returns:
        Mesh data.
      • setElemEntity

        MeshData setElemEntity​(java.lang.String type,
                               int position,
                               int[] elem)
        Inserts block of geometric entity numbers for the elements of a specific type.
        Parameters:
        type - Mesh type.
        position - Start index.
        elem - Geometric entity number.
        Returns:
        Mesh type.
      • setVertex

        MeshData setVertex​(double[][] vtx)
        Sets the mesh vertices.
        Parameters:
        vtx - Matrix where each column corresponds to a mesh vertex.
        Returns:
        Mesh data.
      • setVertex

        MeshData setVertex​(int position,
                           double[][] vtx)
        Inserts a block of mesh vertices.
        Parameters:
        position - Start index.
        vtx - Matrix where each column corresponds to a mesh vertex.
        Returns:
        Mesh data.
      • transferMesh

        void transferMesh()
        Transfers the mesh from the current meshing sequence into the MeshData object.
      • transferMesh

        void transferMesh​(java.lang.String tag)
        Transfers the mesh from another meshing sequence into the MeshData object.
        Parameters:
        tag - Mesh sequence tag.