Skip to main content

AbstractMesh

AbstractMesh_ datatype handles the finite element mesh. The structure of this data type is given here.

Summary of methods​

Constructor Methods​

Method NamePurpose
InitiateRead the mesh by reading a hdf5 file.
DEALLOCATEDeallocate memory occupied by the mesh instance.
isEmptyReturns true if the mesh is empty.
DeallocateKdTreeDeallocate the kdtree.
InitiateDynamicDataStructureInitiate Kdtree related data

IOMethods​

Method NamePurpose
ImportRead mesh from hdf5 file.
ExportExport mesh to an hdf5 file.
ExportToVTKExport mesh to a VTKfile.
DisplayDisplay the mesh.
DisplayNodeDataDisplay node data.
DisplayElementDataDisplay element data.
DisplayFacetDataDisplay facet data.
DisplayInternalFacetDataDisplay internal facet data.
DisplayBoundaryFacetDataDisplay boundary facet data.
DisplayFacetElementsDisplay facet element shape data.
DisplayMeshInfoDisplay mesh information.

Constructor methods for connectivity​

Method NamePurpose
InitiateKdTreeInitiate Kdtree.
InitiateNodeToElementsInitiate node to element data (mapping).
InitiateNodeToNodesInitiate Node to nodes data.
InitiateExtraNodeToNodesInitiate Node to nodes mapping (used in jump based FEM).
InitiateElementToElementsInitiate element to elements mapping.
InitiateBoundaryDataInitiate the boundary data.
InitiateEdgeConnectivityInitiate Edge connectivity data.
InitiateFaceConnectivityInitiate Face connectivity data.
InitiateFacetElementsInitiate boundary data.

Element information methods​

Method NamePurpose
GetElemTypeGet the element name
GetElemDataGet the element data
GetElemDataPointerGet pointer to an element data
GetNNEGet number of nodes in an element
GetMaxNNEGet maximum number of nodes in an element
SizeReturns the size of the mesh (total number of elements)
GetElemNumGeneric method to get list of local or global element number in mesh
GetOrientationGet the orientation of the element
GetTotalCellsReturns the total number of cells in the mesh (obj%tElements)
GetTotalElementsGeneric method for getting the total number of elements
GetGlobalElemNumberReturns the global element number for a local element number
GetLocalElemNumberReturns the local element number of a global element number
GetOrderReturns the order of the element of mesh
GetMinElemNumberGet minimum element number
GetMaxElemNumberGet maximum element number

Topology Methods​

Method NamePurpose
GetElemTopologyGeneric method to get the element topology name
GetElemTopologyIndxGet the index of element topology
GetTotalElementsTopologyWiseGet total elements topology wise
GetTotalTopologyGet total topology
GetTotalEntitiesGeneric method for getting total entities in mesh and an element
GetBoundingEntityReturns the nodal coordinates

Node Information Methods​

Method NamePurpose
GetNptrsGet node number of mesh
GetNptrs_Get node number of mesh
GetNptrsInBoxGet node number in a box
GetNptrsInBox_Get node number in a box without allocation
GetInternalNptrsReturns a vector of internal node numbers
GetInternalNptrs_Returns a vector of internal node numbers (subroutine version, no allocation)
GetBoundaryNptrsReturns a vector of boundary node numbers
GetTotalNodesGet total nodes
GetTotalInternalNodesReturns the total number of internal nodes
GetTotalBoundaryNodesReturns the total number of boundary nodes
GetLocalNodeNumberReturns the local node number of a global node number
GetLocalNodeNumber_Get local node number without allocation
GetGlobalNodeNumberReturns the global node number of a local node number
GetNodeCoordGet node coordinates
GetNearestNodeGet nearest node
GetMinNodeNumberGet minimum element number
GetMaxNodeNumberGet maximum node number
GetNodeMaskReturns the mask for the presence of node

Connectivity Methods​

Method NamePurpose
GetConnectivityReturns node numbers in an element (this is vertex connectivity)
GetConnectivity_Generic method for getting the connectivity of an element
GetNodeConnectivityReturns all the node connectivity of the mesh elements
GetNodeToElementsGeneric method to get elements around node or nodes
GetNodeToNodesReturns nodes connected to a given node number
GetNodeToNodes_Returns nodes connected to a given node number
GetElementToElementsReturns elements connected to a given element number
GetElementToElements_Get element to elements mapping
GetMaxNodeToElementsGet maximum number of node to elements
GetMaxElementToElementsGet maximum number of element to elements
GetMaxNodeToNodesGet maximum number of node to nodes

Geometry methods​

Method NamePurpose
FindEdgeFind a edge in a cell (only for 3D)
FindFaceFind a face in a cell
GetBoundaryElementDataReturns boundary element data
GetBoundingBoxReturn the bounding box
GetCellNumberReturns the master and slave cell number of a facet element
GetFacetConnectivityGeneric method to Get the connectivity of a facet element
GetFacetElementTypeReturns the facet element type of a given cell element number
GetFacetParamGet the parameters of facet elements
GetGlobalEdgeNumberGet global Edge number from global element and localEdgenumber
GetGlobalFaceNumberGet global face number from global element and localFacenumber
GetLocalFacetIDReturn the local facet id, so that we can Get reference element of the facet element
GetMasterCellNumberReturns the master cell number of a facet element
GetNSDReturn the NSD
GetSlaveCellNumberReturns the slave cell number of a facet element
GetTotalBoundaryElementsReturns the total number of boundary elements
GetTotalBoundaryFacetElementsReturns the total number of boundary facet elements
GetTotalEdgesReturns the total number of edges in the mesh (obj%tEdges)
GetTotalFacesReturns the total number of faces in the mesh (obj%tFaces)
GetTotalFacetElementsReturns the total number of facet elements in the mesh
GetTotalInternalFacetElementsReturns the total number of internal facet elements
GetXidimensionReturn the NSD

Status Check Methods​

Method NamePurpose
isInitReturns obj%isInitiated
isNodeToElementsCheck if node to elements mapping is available
isNodeToNodesCheck if node to nodes mapping is available
isExtraNodeToNodesCheck if extra node to nodes mapping is available
isElementToElementsCheck if element to elements mapping is available
isEdgeConnectivityCheck if edge connectivity is available
isFaceConnectivityCheck if face connectivity is available
isBoundaryDataCheck if boundary data is available
isFacetDataCheck if facet data is available
isBoundaryElementReturns true if a given global element number is a boundary element
isDomainBoundaryElementReturns true if a given global element number is a boundary element
isDomainFacetElementReturns true if a given global element number is a boundary element
isAnyNodePresentReturns true if any of the node number is present
isAllNodePresentReturns true if all of the node numbers are present
isBoundaryNodeReturns true if a given global node number is a boundary node
isNodePresentReturns true if a node number is present
isElementPresentReturns true if a given element number is present
isElementActiveCheck if element is active

Set methods​

Method NamePurpose
SetShowTimeSet showTime option
SetBoundingBoxSet the bounding box
SetSparsityGeneric method for Setting the sparsity
SetTotalMaterialGeneric method
SetMaterialSet material to an element
SetFacetElementTypeSet the facet element type of a given cell number
SetQualitySet mesh quality
SetParamSet parameters of mesh
SetFacetParamSet the parameters of facet element

Get Methods​

Method NamePurpose
GetMaterialReturns the material id of a given medium
GetTotalMaterialReturns the total materials in an element
GetParamGet parameter of mesh

All methods​