create triangular or tetrahedral mesh -凯发k8网页登录
create triangular or tetrahedral mesh
description
creates a mesh for the geometry stored in the mesh
= generatemesh(model
)model
object. the
toolbox stores the mesh in the mesh
property of the structural,
thermal, electromagnetic model, or pdemodel
.
model
must contain a geometry. for details about creating a
geometry and including it in a model, see geometry and mesh and the
geometry functions listed there.
___ = generatemesh(___,
modifies the mesh generation according to the name,value
)name,value
arguments. this syntax works with the model
and
femodel
arguments.
examples
input arguments
output arguments
more about
tips
generatemesh
can return slightly different meshes in different releases. for example, the number of elements in the mesh can change. avoid writing code that relies on explicitly specified node and element ids or node and element counts.generatemesh
uses the following set of rules when you specify local element sizes withhface
,hedge
, orhvertex
. these rules are valid for both the default and custom values ofhmin
andhmax
.if you specify local sizes for regions near each other,
generatemesh
uses the minimum size. for example, if you specify size 1 on an edge and size 0.5 on one of its vertices, the function gradually reduces the element sizes in the proximity of that vertex.if you specify local sizes smaller than
hmin
,generatemesh
ignoreshmin
in those localities.if you specify local sizes larger than
hmax
,generatemesh
ignores the specified local sizes.hmax
is not exceeded anywhere in the mesh.