Model.fill_fe_holes_nodelist#
- Model.fill_fe_holes_nodelist(entitylist, max_width, AdjacentComp=0, ByFeature=0, CurvedFill=0, DefineMaxWidth=0, GuideNodePairs=s_defaultEntityList2, Remesh=0)#
This funcion fills FE holes from a node list defining the hole.
- Parameters:
entitylist (EntityList) – A list containing the entity objects.
max_width (double) – Maximum allowed hole width.
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_width for hole filling.
1 - Consider max_width for hole 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.
Examples#
Fill the hole defined by node list 1, using a max width of 20.5, remeshing filled elements, and create the elements in the adjacent component#import hm import hm.entities as ent model = hm.Model() model.fill_fe_holes_nodelist( entitylist=[ent.Node(model, n) for n in range(1,6)], max_width=20.5, AdjacentComp=1, DefineMaxWidth=1, Remesh=1 )
Use guide node pairs (17,22) and (45,16) for complex hole loops#import hm import hm.entities as ent model = hm.Model() nodes = [ ent.Node(model, 22), ent.Node(model, 23), ent.Node(model, 27), ent.Node(model, 17), ent.Node(model, 66), ent.Node(model, 34), ent.Node(model, 88), ent.Node(model, 26), ent.Node(model, 22), ent.Node(model, 1), ent.Node(model, 99), ent.Node(model, 4), ent.Node(model, 45), ent.Node(model, 12), ent.Node(model, 43), ent.Node(model, 16), ent.Node(model, 99), ] model.fill_fe_holes_nodelist( entitylist=nodes, max_width=20.5, AdjacentComp=1, DefineMaxWidth=1, Remesh=1 )