Structure.add_element
- Structure.add_element(nodes, type, thermal=False, axes={}, mass=None)[source]
Adds an element to structure.elements with centroid geometric key.
- Parameters
nodes (list) – Nodes the element is connected to.
type (str) – Element type: ‘HexahedronElement’, ‘BeamElement, ‘TrussElement’ etc.
thermal (bool) – Thermal properties on or off.
axes (dict) – The local element axes ‘ex’, ‘ey’ and ‘ez’.
mass (float) – Element mass.
- Returns
int – Key of the added or existing element.
Notes
Elements are numbered sequentially starting from 0.