Model.rigidlinkwithset#
- Model.rigidlinkwithset(independent, collection, dependent_set, dof)#
Create a rigid link element with dependent nodes attached as a node set connected to the element. The attached node set may exist before or may be created from a given mark of dependent nodes while the rigid link element is created.
- Parameters:
independent (Entity) – The independent node of the element.
collection (Collection) – The collection containing the dependent node entities.
dependent_set (unsigned int) –
The ID of an existing nodes set being attached to the rigid link.
0 - if the rigid link and an attached nodes set are being created using a mark of dependent nodes.
dof (hwBoolList) – The degrees of freedom for which the element is active (
TrueorFalsein any of the 6 degrees of freedom).
Examples#
Create a rigid link element with independent node with ID 100 and dependent nodes with IDs 101 , 102 , and 103 with nodes have all six degrees of freedom#import hm import hm.entities as ent model = hm.Model() # Creating a collection that contains the dependent nodes dependent_nodes_collection = hm.Collection(model, ent.Node, [101, 102, 103]) model.rigidlinkwithset( independent=ent.Node(model, 100), collection=dependent_nodes_collection, dependent_set=0, dof=[True, True, True, True, True, True], ) # A new nodes set with an autogenerated name is created for the rigid link element, the dependent nodes 101,102,103 being placed to this nodes set
Create a rigid link element with independent node with ID 100 and set with ID 25 attached as a dependent node set , with nodes have all six degrees of freedom#import hm import hm.entities as ent model = hm.Model() # Creating a collection that contains the dependent nodes dependent_nodes_collection = hm.Collection(model, ent.Node, [101, 102, 103]) model.rigidlinkwithset( independent=ent.Node(model, 100), collection=hm.Collection(model, ent.Node, populate=False), dependent_set=25, dof=[True, True, True, True, True, True], )