Model.createelements#

Model.createelements(config, type, integer_array)#

Create multiple 1D elements from a list of nodes.

Parameters:
  • config (int) – The Hypermesh element config number.

  • type (int) – The solver type number.

  • integer_array (hwIntList) – The list containg the IDs of the pairs of nodes.

Example#

Create two PLOTEL elements between nodes 1001 and 1003 , and 1007 and 1009#
import hm
import hm.entities as ent

model = hm.Model()

model.createelements(config=2, type=1, integer_array=[1001, 1002, 1007, 1009])