FEMDocumentation`
FEMDocumentation`

ElementMesh

ElementMesh[]

represents data that is used for describing a discrete partitioning of a region or a boundary of a region.

Details and OptionsDetails
  • ElementMesh[] is generated by ToElementMesh or ToBoundaryMesh.
  • ElementMesh[] can be extracted from NDSolve`StateData objects generated by NDSolve`ProcessEquations using the "FiniteElementData" and "ElementMesh" properties.
  • In standard output format, the bounding box and the number and type of mesh elements are shown.
  • ElementMesh objects are used as input for NDSolve, InitializePDEMethodData, and NumericalRegion.
  • ElementMesh has the following properties:
  • "BoundaryConnectivity"gives a list bc such that bc[[i]] gives the boundary elements to which boundary element i is connected
    "BoundaryElements"gives the boundary elements
    "BoundaryElementMarkerUnion"gives the union of all boundary element markers
    "BoundaryNormals"gives normals of boundary elements
    "Bounds"gives the bounds
    "Coordinates"gives the coordinates
    "ElementConnectivity"gives for each mesh element a list ec such that ec[[i]] gives the elements to which element i is connected
    "EmbeddingDimension"gives the embedding dimensions
    "MeshElements"gives the mesh elements
    "MeshElementMarkerUnion"gives the union of all mesh element markers
    "MeshElementMeasure"gives the measure of each mesh element
    "MeshOrder"gives the mesh order
    "PointElements"gives the point elements
    "PointElementMarkerUnion"gives the union of all point element markers
    "Properties"gives the properties
    "Quality"computes the quality of the mesh
    "VertexBoundaryConnectivity"gives a SparseArray vbc such that vbc[[i]] contains a 1 at the position node i is connected to a boundary element
    "VertexElementConnectivity"gives a SparseArray vec such that vec[[i]] contains a 1 at the position node i is connected to an element
  • Examples

    open allclose all

    Basic Examples  (1)

    Load the package:

    In[1]:=
    Click for copyable input

    Create an ElementMesh:

    In[2]:=
    Click for copyable input
    Out[2]=

    Extract the mesh coordinates:

    In[3]:=
    Click for copyable input
    Out[3]//Short=

    Extract the mesh elements:

    In[4]:=
    Click for copyable input
    Out[4]//Short=

    Extract the mesh boundary elements:

    In[5]:=
    Click for copyable input
    Out[5]//Short=

    Extract the mesh point elements:

    In[6]:=
    Click for copyable input
    Out[6]//Short=

    Scope  (24)

    Properties & Relations  (4)

    See Also

    ToElementMesh  ToBoundaryMesh  NDSolve  InitializePDEMethodData  PointElement  LineElement  TriangleElement  QuadElement  TetrahedronElement  HexahedronElement

    Tutorials