Model.rod#

Model.rod(node1, node2, property)#

Creates a rod element.

Parameters:
  • node1 (Entity) – The object describing the first node of the element.

  • node2 (Entity) – The object describing the second node of the element.

  • property (hwString) – The property to which the element points.

Example#

Create a rod element between the nodes with IDs 1,2 and assign “ property1 “ as propery#
import hm
import hm.entities as ent

model = hm.Model()

model.rod(node1=ent.Node(model, 1), node2=ent.Node(model, 2), property="property1")