Model.linear1delements#

Model.linear1delements(collection1, collection2, node11, node12, node13, node21, node22, node23, density, config)#

Creates 1D elements between two sets of plate elements.

Parameters:
  • collection1 (Collection) – The collection containing the element entities of the first group of plate elements.

  • collection2 (Collection) – The collection containing the element entities of the second group of plate elements.

  • node11 (Entity) – The first alignment node entity for the first group of elements.

  • node12 (Entity) – The second alignment node entity for the first group of elements.

  • node13 (Entity) – The third alignment node entity for the first group of elements.

  • node21 (Entity) – The first alignment node entity for the second group of elements.

  • node22 (Entity) – The second alignment entity node for the second group of elements.

  • node23 (Entity) – The third alignment node entity for the second group of elements.

  • density (int) – The number of elements being created between the two sets of plate elements.

  • config (int) – The config number for the 1D element (plot, rod, etc.).

Example#

Create four 1D elements between elements with IDs 5 , 6 , 7 with alignment nodes with IDs 10, 11, 12 and elements with IDs 10 , 23 , 34 with alignment nodes with IDs 15, 30, 45, with configuration 61#
import hm
import hm.entities as ent

model = hm.Model()

element_collection_1 = hm.Collection(model, ent.Element, [5, 6, 7])
element_collection_2 = hm.Collection(model, ent.Element, [10, 23, 34])

model.linear1delements(
    collection1=element_collection_1,
    collection2=element_collection_2,
    node11=ent.Node(model, 10),
    node12=ent.Node(model, 11),
    node13=ent.Node(model, 12),
    node21=ent.Node(model, 15),
    node22=ent.Node(model, 30),
    node23=ent.Node(model, 45),
    density=4,
    config=61,
)