Model.createelement#

Model.createelement(config, type, entitylist, auto_order)#

Creates an element from a node list.

Parameters:
  • config (int) – The Hypermesh configuration of the element.

  • type (int) – The solver type of the element.

  • entitylist (EntityList) – The list containing the node entities.

  • auto_order (int) –

    0 - Use the nodes as ordered in the list.

    1 - Auto order the nodes in the list.

Example#

Create a quad4 element use nodes with IDs 14 , 15 , 16 , and 17#
import hm
import hm.entities as ent

model = hm.Model()

node_list = [
ent.Node(model, 14),
ent.Node(model, 15),
ent.Node(model, 16),
ent.Node(model, 17),
]

model.createelement(config=104, type=1, entitylist=node_list, auto_order=1)