The Meshing Sequence Syntax
Create a meshing sequence by using the syntax:
model.component(
<ctag>
).mesh.create(
<meshtag>
,
<geomtag>
)
where
<meshtag>
is a string that you use to refer to the meshing sequence. The tag
geomtag
specifies the geometry to use for this mesh node. You may define a variable mesh that makes it easier to perform many operations on this mesh like this:
mesh = model.mesh(<meshtag>)
To add an operation to a sequence, use the syntax:
mesh.feature.create(
<ftag>
,
operation
)
where the string
<ftag>
is a string that you use to refer to the operation.
About Mesh Commands
in the
COMSOL Multiphysics Programming Reference Manual
To set a property to a value in an operation, enter:
mesh.feature(
<ftag>
).set(
property
,
<value>
)
To build all the mesh sequence, runs the function
mphrun
as in:
mphrun(model,'mesh');
Alternatively you can call the run method for the selected mesh mode:
mesh.run;
To run the mesh node up to a specified feature node
<ftag>
, enter:
mphrun(mesh.feature(
ftag
))
For more details on available operations and properties in the sequence, see
Mesh
in the
COMSOL Multiphysics Programming Reference Manual.