Model.fill_fe_gaps_nodelist#

Model.fill_fe_gaps_nodelist(list1, list2, max_width, AdjacentComp=0, ByFeature=0, CurvedFill=0, DefineMaxWidth=0, DetectNodeClusters=0, GuideNodePairs=s_defaultEntityList2, Remesh=0)#

Fills gaps in FE from node lists selected on both sides of the gap.

Parameters:
  • list1 (EntityList) – A list containing the entity objects containing the nodes on the first boundary.

  • list2 (EntityList) – A list containing the entity objects containing the nodes on the second 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_width for gap filling.

    1 - Consider max_width for gap filling.

  • DetectNodeClusters (unsigned int) –

    0 - The ordered input node list is used as-is for gap filling, without detecting clusters in the input.

    1 - The ordered input node list is split and clustered based on connectivity. This is useful for supplying multiple lists as input.

  • 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 node lists 1 and 2, including remeshing#
import hm
import hm.entities as ent

model = hm.Model()

nodes1 = [ent.Node, range(1,6)]
nodes2 = [ent.Node, range(6,11)]

model.fill_fe_gaps_nodelist(
      list1=nodes1,
      collection2=nodes2,
      max_width=100.0,
      Remesh=1,
      DefineMaxWidth=1
)