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, returned 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, returned as an
Ne matrix, where
Ne is the number of elements in the mesh, and
3 for 2-D triangles with
6 for 2-D triangles with
4 for 3-D tetrahedra with
10 for 3-D tetrahedra with
Each column in
Elements contains the indices of the
nodes for that mesh element.
MaxElementSize— Target maximum mesh element size
Target maximum mesh element size, returned 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
Target minimum mesh element size, returned 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
Mesh growth rate, returned as a scalar strictly between 1 and 2.
GeometricOrder— Element polynomial order
Element polynomial order, returned as