Syntax
Parameters
Unique identifier for the truss element.
ID of the initial (start) node.
ID of the final (end) node.
Name of the section previously defined with
add_rectangular_section(), add_circular_section(), or add_generic_section().Returns
Returns aTrussElement object representing the created truss element.
Raises
ValueError: If a truss element with the same ID already exists.ValueError: If the specified nodes don’t exist.ValueError: If the specified section doesn’t exist.
Example
Complete Truss Example
Truss elements only carry axial forces and cannot resist bending moments or shear forces. Use frame elements (
add_member()) if you need to model bending behavior.When applying distributed loads to truss elements, only axial loads (in the LOCAL_1 direction) are permitted.
Related
- add_node() - Add nodes to the model
- add_member() - Add frame/beam elements
