Model.rigidlinkwithset_twonodes#

Model.rigidlinkwithset_twonodes(independent, dependent, dof)#

Create a rigid link element (ent.Element.config=55) between two nodes, with a dependent node attached as a node set connected with the element.

Parameters:
  • independent (Entity) – The independent node of the element.

  • dependent (Entity) – The dependent node of the element.

  • dof (hwBoolList) – The degrees of freedom for which the element is active (True or False in any of the 6 degrees of freedom).

Example#

Create a rigid link element with dependent nodes attached as a set between nodes with IDs 100 and 101 in all six degrees of freedom#
import hm
import hm.entities as ent

model = hm.Model()

model.rigidlinkwithset_twonodes(
    independent=ent.Node(model, 100),
    dependent=ent.Node(model, 101),
    dof=[True, True, True, True, True, True],
)

# A node set with an automatically generated name is created and a dependent node is placed in this set