Model.rbe3updatewithset#
- Model.rbe3updatewithset(element, independent_collection, independent_dofs, independent_weights, dependent_node, dependent_dof, dependent_weight, attach_set)#
Updates an RBE3 element with the given independent nodes or set of nodes along with degrees of freedom and weights as listed below.
When
attach_setis set to 1, the attached set is created or updated from a given mark of independent nodes.- Parameters:
element (Entity) – The entity object representing the RBE3 element.
independent_collection (Collection) – The collection containing the independent nodes or sets of nodes.
independent_dofs (hwIntList) – The list of integers defining the independent DOFs (value comprising of any of the digits 1-6).
independent_weights (hwDoubleList) – The list of independent weights corresponding to the independent nodes.
dependent_node (Entity) – The entity object representing the dependent node.
dependent_dof (int) – The degree of freedom for the dependent node of the element (DOF value is any of the digits from 1-6).
dependent_weight (double) – The weight assigned to the dependent node.
attach_set (int) – If set to 1, the attached set is created or updated from a given mark of independent nodes.
Example#
Update an RBE3 element with ID 1751 with auto created dependent node and independent set of nodes “set5” with all the independent and dependent nodes having all six degrees of freedom and a weight of 1.23#import hm import hm.entities as ent model = hm.Model() set_col = hm.Collection(model,ent.Set,"name=set5") model.rbe3updatewithset( element=ent.Element(model,1751), independent_collection=set_col, independent_dofs=[123456, 123456, 123456], independent_weights=[1.23, 1.23, 1.23], dependent_node=None, dependent_dof=123456, dependent_weight=1.23, attach_set=0 )
Update an RBE3 element with ID 1751 with dependent node with ID 100 and to create attached set for the given independent nodes 101, 102 and 103 with all the independent and dependent nodes having all six degrees of freedom and a weight of 1.23:#import hm import hm.entities as ent model = hm.Model() node_col = hm.Collection(model,ent.Node,[101, 102, 103]) model.rbe3updatewithset( element=ent.Element(model,1751), independent_collection=node_col, independent_dofs=[123456, 123456, 123456], independent_weights=[1.23, 1.23, 1.23], dependent_node=ent.Node(model, 100), dependent_dof=123456, dependent_weight=1.23, attach_set=1 )