Model.solidrc_fillhole_nodelist#

Model.solidrc_fillhole_nodelist(nodeList, flag_elements=0)#

Creates a patch of elements from a list of nodes. Flag determines if HyperMesh or display elements are created.

Parameters:
  • nodeList (EntityList) – A list containing the node entity objects.

  • flag_elements (int) –

    0 - Hypermesh elements are created.

    2 - Display elements are created.

Example#

Create a patch of display elements using the nodes with IDs 49805, 49806, 49807, 49808, 49809, and 49810#
import hm
import hm.entities as ent

model = hm.Model()

model.solidrc_fillhole_nodelist(
    nodeList=[
        ent.Node(model, 49805),
        ent.Node(model, 49806),
        ent.Node(model, 49807),
        ent.Node(model, 49808),
        ent.Node(model, 49809),
        ent.Node(model, 49810),
    ],
    flag_elements=2,
)