Model.springfournoded#

Model.springfournoded(node_entity1, node_entity2, node_entity3, node_entity4, dof, property_name, vector_entity)#

Creates a spring element between four nodes using an orientation vector. It will have config 24 and type 1 connecting node_entity1 to node_entity2, node_entity1 to node_entity3 and node_entity1 to node_entity4. This is supported for Radioss solver profile.

Parameters:
  • node_entity1 (Entity) – The object describing the first node entity.

  • node_entity2 (Entity) – The object describing the second node entity.

  • node_entity3 (Entity) – The object describing the third node entity.

  • node_entity4 (Entity) – The object describing the forth node entity.

  • dof (hwBoolList) – The degree of freedom for the element.

  • property_name (hwString) – The name of the property to assign to the element.

  • vector_entity (Entity) – The object describing the orientation vector entity assigned to the element.

Example#

Create a four noded spring element between the nodes with IDs 100 , 101 , 102 and 103 with DOF 2, property “jointprop” and orientation vector ID 51#
import hm
import hm.entities as ent

model = hm.Model()

model.springfournoded(
    node_entity1=ent.Node(model, 100),
    node_entity2=ent.Node(model, 101),
    node_entity3=ent.Node(model, 102),
    node_entity4=ent.Node(model, 103),
    dof=[False, True, False, False, False, False],
    property_name="jointprop",
    vector_entity=ent.Vector(model, 51),
)