Model.set_meshfaceparams#
- Model.set_meshfaceparams(face_index, shape_type, elem_type, alg_type, elem_size, smooth_method, smooth_tol, size_control, skew_control)#
Sets the face-specific parameters for the automeshing module.
- Parameters:
face_index (unsigned int) – The index of the surface face under consideration.
shape_type (int) –
Determines the surface-based mesh generation algorithm to use when creating elements on the face. Valid values are:
1 - autodecide
2 - map as rectangle
3 - map as triangle
4 - map as pentagon
5 - advancing front
elem_type (int) –
The type of elements to create. Valid values are:
0 - trias
1 - quads
2 - mixed
3 - right trias
4 - quads only
alg_type (int) –
0 - Standard surface meshing
1 - Meshing with flow “align” control
3 - Meshing with flow “align” and “size” control
elem_size (int) – Reserved for future use. Must be specified as 0.
smooth_method (int) –
The smoothing method to use during the meshing process. Valid values are:
0 - autodecide
1 - size-corrected
2 - shape-corrected
smooth_tol (double) – The automesher applies the smoothing algorithm until the largest adjustment made to a nodal position is less than this value. Valid vales are \(\gt 0.0\).
size_control (int) –
Determines if uniform size elements should be created in mapping algorithms. Valid values are:
0 - Do not create uniformly-sized elements.
1 - Create uniformly-sized elements.
skew_control (int) –
Determines if optimal shape elements are created in mapping algorithms. Valid values are:
0 - Do not optimize element shapes.
1 - Optimize element shapes.
Example#
Specify meshing parameters on face with ID 0 of a surface for a quad dominant mesh with no size or skew control#import hm import hm.entities as ent model = hm.Model() model.set_meshfaceparams( face_index=0, shape_type=1, elem_type=1, alg_type=0, elem_size=0, smooth_method=0, smooth_tol=0.1, size_control=0, skew_control=0, )