Element
Element
Element(element_type: str, ndof: int, material: Union[Material, List[Material], None] = None, section: Section = None, transformation: GeometricTransformation = None, **element_params)
Bases: ABC
Base abstract class for manager-owned OpenSees finite elements.
Element instances do not self-register and do not assign their own tags.
An ElementManager owns lifecycle operations, tag assignment, removal,
and retagging for a local model context.
Attributes:
| Name | Type | Description |
|---|---|---|
tag |
Optional[int]
|
Manager-assigned OpenSees element tag. Remains None until this object is added to an ElementManager. |
_owner |
object | None
|
Reference to the owning manager, or None when unmanaged. |
element_type |
The type of element (e.g., 'quad', 'truss', 'beam'). |
|
_ndof |
Number of degrees of freedom for the element. |
|
element_params |
Dictionary of element-specific parameters. |
|
_material |
Primary material assigned to this element. |
|
_materials |
List of all materials assigned to this element. |
|
_section |
Section assigned to this element (for section-based elements). |
|
_transformation |
Geometric transformation assigned to this element (for beam elements). |
Initializes the Element with flexible dependency support.
Attributes
Methods:
assign_material
Assigns a material to the element.
assign_transformation
Assigns a geometric transformation to the element.
get_transformation
Retrieves the assigned geometric transformation.
to_tcl
abstractmethod
Converts the element to a TCL command string for OpenSees.