Model.rbe3withset#

Model.rbe3withset(collection, indepdofsarray, indepwtsarray, dep_node, dofs, wts, attach_set)#

Creates an RBE3 element. The attached set may be created from a given collection of dependent nodes while the RBE3 element is created.

Parameters:
  • collection (Collection) – The collection containing the independent nodes or sets of nodes entities. Valid entites are nodes and sets.

  • indepdofsarray (hwIntList) – The list of intergers containing the degrees of freedom for which each respective independent node of the element is active (any of the digits 1-6).

  • indepwtsarray (hwDoubleList) – The list of doubles containing the weight for each respective independent node.

  • dep_node (Entity) – The object describing the dependent node entity the element entities. If set None, the dependent node will be auto-created at the centroid of the independent nodes.

  • dofs (hwBoolList) – The list of bools describing the degree of freedom code for which the dependent node of the element is active. Any active dof should set to True, otherwise to False.

  • wts (double) – The weight assigned to the dependent node.

  • attach_set (int) – If set to 1, the attached set may be created from a given collection of dependent nodes while the RBE3 element is created.

Example#

Create an RBE3 element with dependent node ID 100 and independent nodes IDs 101, 102, and 103 with all the nodes having all six degrees of freedom and a weight of 1.23#
import hm
import hm.entities as ent

model = hm.Model()

node_collection = hm.Collection(model, ent.Node, [101, 102, 103])
independent_dof_list = [123456, 123456, 123456]
wgt_list = [1.230000, 1.230000, 1.230000]

model.rbe3withset(
    collection=node_collection,
    indepdofsarray=independent_dof_list,
    indepwtsarray=wgt_list,
    dep_node=ent.Node(model, 100),
    dofs=[True, True, True, True, True, True],
    wts=1.23,
    attach_set=0,
)