Model.CE_ConnectorAreaMeshWithDetails#
- Model.CE_ConnectorAreaMeshWithDetails(collection, element_size, element_type, element_type2, link_opposite_edges, size_control, skew_control, edge_mesh_algorithm, min_size, max_size, chordal_deviation, max_angle, area_width, area_offset)#
Meshes area connectors and updates the width and offset stored on the connector.
- Parameters:
collection (Collection) – The collection containing the area connectors.
element_size (double) – The element size.
element_type (int) –
The element type for mapped meshing algorithms:
0 - Trias
1 - Quads
2 - Mixed
3 - R-trias
element_type2 (int) –
The element type for free meshing algorithms:
0 - Trias
1 - Quads
2 - Mixed
3 - R-trias
link_opposite_edges (int) –
0 - Do not link
1 - Link
size_control (int) –
0 - Off
1 - On
skew_control (int) –
0 - Off
1 - On
edge_mesh_algorithm (int) –
0 - Standard
1 - Chordal deviation
min_size (double) – The minimum element size when
edge_mesh_algorithm = 1.max_size (double) – The maximum element size when
edge_mesh_algorithm = 1.chordal_deviation (double) – The chordal deviation value when
edge_mesh_algorithm = 1.max_angle (double) – The maximum angle between edges when
edge_mesh_algorithm = 1.area_width (double) – The new width value.
area_offset (double) – The new offset value.
Example#
Update area connector with ID 10 with width 2.0 and mesh it with a default edge size of 1.0#import hm import hm.entities as ent model = hm.Model() connector_collection = hm.Collection(model, ent.Connector, [10]) model.CE_ConnectorAreaMeshWithDetails( collection=connector_collection, element_size=1.0, elem_type=1, elem_type2=1, link_opposite_edges=1, size_control=0, skew_control=0, edge_mesh_algorithm=0, min_size=0, max_size=0, chordal_deviation=0, max_angle=0, area_width=2.0, area_offset=0.0 )