Model.fill_fe_gaps_nodeid#
- Model.fill_fe_gaps_nodeid(node_id1, node_id2, max_width, AdjacentComp=0, ByFeature=0, CurvedFill=0, DefineMaxWidth=0, GuideNodePairs=s_defaultEntityList2, Remesh=0)#
Fills gaps in FE from a node selected on both sides of the gap.
- Parameters:
node_id1 (Entity) – The node ID on the first boundary.
node_id2 (Entity) – The node ID on the secondary boundary.
max_width (double) – Maximum allowed gap width to be filled.
AdjacentComp (unsigned int) –
0 - Fill elements should be created in a new component.
1 - Fill elements should be created in the adjacent component.
2 - Fill elements should be created in the current component.
ByFeature (unsigned int) –
0 - Features should not be considered.
1 - Features should be considered.
CurvedFill (unsigned int) –
0 - Gaps are filled without taking into consideration the shape of adjacent elements.
1 - Gaps are filled taking into consideration the shape of adjacent elements, ensuring a smooth fill.
DefineMaxWidth (unsigned int) –
0 - Ignore
max_widthfor gap filling.1 - Consider
max_widthfor gap filling.GuideNodePairs (EntityList2) – Specifies an optional list of node IDs in the form “M1 M2 N1 N2 O1 O2 …” where (M1, M2), (N1, N2) and (O1, O2) are node pairs. These pairs are used to divide the gap to be filled into smaller loops. When provided, gaps are filled ensuring that the loops are split at the specified pairs. This aids in filling complex hole shapes by guiding the filling process correctly.
Remesh (unsigned int) –
0 - Fill elements should not be remeshed.
1 - Fill elements should be remeshed.
Example#
Fill gaps less than 100 between gaps defined by nodes with IDs 50 and 70, including remeshing#import hm import hm.entities as ent model = hm.Model() model.fill_fe_gaps_nodeid( node_id1=ent.Node(model, 50), node_id2=ent.Node(model, 70), max_width=100.0, DefineMaxWidth=1, Remesh=1 )