Model.xelem_bynodelist#

Model.xelem_bynodelist(node_list, node_distance)#

Creates a new element (/XELEM) of config 27 and type 1 using a node list. This is currently only supported for Radioss.

Parameters:
  • node_list (EntityList) – A list containing the entity objects used to create the element. There must be at least 2 node entities in the list.

  • node_distance (double) – The distance at which intermediate nodes are to be created. This also creates a node set from the new nodes.

Example#

Create an * * /XELEM * * element use the nodes with IDs 1 , 10 , 20 and node_distance=2.0#
import hm
import hm.entities as ent

model = hm.Model()

# The node entities that will be used for the creation of the element
node1 = ent.Node(model, 1)
node10 = ent.Node(model, 10)
node20 = ent.Node(model, 20)

model.xelem_bynodelist(node_list=[node1, node10, node20], node_distance=2.0)