FEMesh object contains a description of the finite
element mesh. A
PDEModel container has an
FEMesh object in its
Generate a mesh for your model using the
Nodes — Mesh nodes
Mesh nodes, specified as a matrix.
Nodes is a
Nn matrix, where
D is the number of geometry dimensions (2 or 3), and
Nn is the number of nodes in the mesh. Each column of
Nodes contains the x,
y, and in 3-D, z coordinates for
that mesh node.
2-D meshes have nodes at the mesh triangle corners for linear elements,
and at the corners and edge midpoints for
elements. 3-D meshes have nodes at tetrahedral vertices, and the
"quadratic" elements have additional nodes at the
center points of each edge. See Mesh Data.
Elements — Mesh elements
Mesh elements, specified as an
Ne matrix, where
Ne is the number of elements in the mesh, and
3for 2-D triangles with
6for 2-D triangles with
4for 3-D tetrahedra with
10for 3-D tetrahedra with
Each column in
Elements contains the indices of the
nodes for that mesh element.
MaxElementSize — Target maximum mesh element size
positive real number
Target maximum mesh element size, specified as a positive real number. The
maximum mesh element size is the length of the longest edge in the mesh. The
Hmax name-value pair sets the target maximum size at the
time it creates the mesh.
generateMesh can occasionally
create a mesh with some elements that exceed
MaxElementSize by a few percent.
MinElementSize — Target minimum mesh element size
positive real number
Target minimum mesh element size, specified as a positive real number. The
minimum mesh element size is the length of the shortest edge in the mesh.
Hmin name-value pair passed to the
generateMesh function sets the
target minimum size the at the time it creates the mesh.
generateMesh can occasionally create a mesh with
some elements that are smaller than
MeshGradation — Mesh growth rate
1.5 (default) | scalar strictly between 1 and 2
Mesh growth rate, specified as a scalar strictly between 1 and 2.
GeometricOrder — Element polynomial order
Element polynomial order, specified as
Introduced in R2015a