FiberElement
FiberElement
Represents a single fiber in a fiber section.
A fiber is the smallest unit of discretization in a fiber section, defined by its position (y, z) and its area. Each fiber is associated with a material response.
Tcl form
fiber <yLoc> <zLoc> <area> <matTag>
Attributes:
| Name | Type | Description |
|---|---|---|
y_loc |
Local y-coordinate of the fiber center. |
|
z_loc |
Local z-coordinate of the fiber center. |
|
area |
Cross-sectional area of the fiber. |
|
material |
Resolved Material object for the fiber. |
Example
from femora.core.model import Model
import femora.components.section.fiber # noqa: F401
model = Model()
mat = model.material.uniaxial.steel01(
user_name="S",
Fy=50.0,
E0=29000.0,
b=0.01,
)
section = model.section.fiber.section(user_name="BeamFiber")
section.add_fiber(y_loc=0.5, z_loc=0.5, area=0.1, material=mat)
print(section.fibers[0].to_tcl())
Create a FiberElement with validated coordinates and area.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
y_loc
|
float
|
Local y-coordinate. |
required |
z_loc
|
float
|
Local z-coordinate. |
required |
area
|
float
|
Fiber area. |
required |
material
|
Union[int, str, Material]
|
Uniaxial material reference (object, tag, or name). |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If coordinates or area are not numeric, if area is non-positive, or if the material cannot be resolved. |