ElementMesh
ElementMesh[…]
represents data that is used for describing a discrete partitioning of a region or a boundary of a region.
更多信息和选项
- 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
范例
打开所有单元关闭所有单元基本范例 (1)
Scope (24)
"BoundaryConnectivity" (1)
The boundary connectivity gives information about how boundary elements are connected to each other.
Create a triangle element mesh:
The boundary-element connectivity of an element mesh can be obtained:
The boundary element 1 is connected to boundary elements 6 and 2:
These boundary elements in turn are both connected to the boundary element 1:
"BoundaryNormals" (3)
Create a boundary element mesh from an implicit region:
Extract the boundary normals from the boundary mesh element:
To visualize the normals, compute the mean of the boundary element coordinates and display the normal vectors as scaled arrows:
Note that the orientation of the normals depends on the orientation of the boundary segments.
Construct a 1D boundary mesh with an internal boundary:
In 1D, the boundary normal for an interior boundary is taken to be 0:
In all cases, the normal computation uses a first-order boundary element mesh:
"Bounds" (1)
"ElementConnectivity" (4)
The element-element connectivity provides neighboring information about elements.
Create a triangle element mesh:
The first edge of the first element connects nodes {3,2} and does not have a neighbor element, and is thus 0. The second edge connecting nodes 2 to the center node connects to element 2. The third element has an edge connecting the center node to node 3; this edge is connected to element 6. All subsequent elements are treated in the same fashion.
Extract the element connectivity information:
Extract the element connectivity information from a mesh:
The third element of the first mesh element is connected to the following elements:
These elements, in turn, are all connected to element three:
All element connectivities that include incidents less than or equal to 0 are boundary elements:
Create a mesh with an interior boundary and region markers:
Extract the element connectivity information:
All element connectivities that include incidents less than or equal to 0 are boundary elements:
Visualize the boundary, interior boundary, and all elements connected to the boundaries:
Negative numbers in the element connectivity indicate interior boundary elements:
Visualize the elements connected to the interior boundary:
Create a mesh with quad and triangle elements and attribute markers for the elements:
"MeshElementMarkerUnion" (1)
"MeshElementMeasure" (2)
"PointElementMarkerUnion" (1)
"VertexBoundaryConnectivity" (1)
The vertex boundary connectivity has information about how vertices are connected to the boundary elements.
Visualize the mesh with nodes styled in red and boundary edges in blue:
Extract the number of nodes and the number of boundary elements:
Extract the vertex boundary connectivity:
The vertex boundary connectivity matrix has as many rows as there are nodes in the mesh and as many columns as there are boundary elements in the mesh. For each vertex row, the column contains a 1 at the position where that vertex is connected in the boundary elements:
The first vertex has a connection to the following boundary elements:
"VertexElementConnectivity" (1)
The vertex element connectivity has information about how vertices are connected to the mesh elements.
Visualize the mesh with mesh element numbers styled in blue:
Extract the vertex element connectivity:
The number of vertices and mesh elements in the mesh:
Each vertex has a connection to a mesh element:
The seventh vertex has a connection to the following mesh elements:
Properties & Relations (4)
The ElementMesh can be extracted from an InterpolatingFunction object:
The ElementMesh can be used for higher-order interpolation:
The mesh order is the default mesh order:
Create the interpolation function values over the mesh coordinates:
The ElementMesh can be extracted from the NDSolve`StateData object:
The ElementMesh can be used as an NIntegrate region:
文本
Wolfram Research (2014),ElementMesh,Wolfram 语言函数,https://reference.wolfram.com/language/FEMDocumentation/ref/ElementMesh.html (更新于 2021 年).
CMS
Wolfram 语言. 2014. "ElementMesh." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2021. https://reference.wolfram.com/language/FEMDocumentation/ref/ElementMesh.html.
APA
Wolfram 语言. (2014). ElementMesh. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/FEMDocumentation/ref/ElementMesh.html 年