Structure.add_nodal_element
- Structure.add_nodal_element(node, type, virtual_node=False)[source]
Adds a nodal element to structure.elements with the possibility of adding a coincident virtual node. Virtual nodes are added to a node set called ‘virtual_nodes’.
- Parameters
node (int) – Node number the element is connected to.
type (str) – Element type: ‘SpringElement’.
virtual_node (bool) – Create a virtual node or not.
- Returns
int – Key of the added element.
Notes
Elements are numbered sequentially starting from 0.