Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"Refine") to refine the mesh. Mesh refinement is available both for generated and imported meshes.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the domain selection. The default selection is the entire geometry, meaning that all elements in the mesh are refined.
Use the boxcoord property to refine elements inside a bounding box. To define the bounding box, set the properties
xmin,
xmax,
ymin,
ymax,
zmax, and
zmin on the feature, where
(xmin,ymin,zmin) defines the lower-left corner, and
(xmax,ymax,zmax) defines the upper-right corner of the bounding box. The elements that have all its corner points in the bounding box are refined once.
boxcoord is automatically set to
on if one of the coordinates are set.
In 3D, the default refinement method is longest. If the mesh contains nonsimplex elements, consider using
regular refinement instead because this method preserves the structure of the mesh.
By default, all elements are refined once. The numrefine property specifies how many times the elements is refined.
Mesh two squares with free mesh. Refine the mesh on sq2 once and refine the elements inside a box in
sq1 twice.