elastic
elastic
Uniaxial linear elastic material used with OpenSees truss, spring, and fiber models.
Attributes
Classes
Material
Bases: ABC
Abstract base class for manager-owned OpenSees material objects.
Material instances do not self-register and do not assign their own tags.
A :class:~femora.core.material_manager.MaterialManager owns lifecycle
operations, tag assignment, removal, and retagging for a local model context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
material_type
|
str
|
OpenSees material category (e.g. |
required |
material_name
|
str
|
Concrete OpenSees material name (e.g. |
required |
user_name
|
str
|
User-specified label for this material instance. |
required |
Attributes:
| Name | Type | Description |
|---|---|---|
tag |
Optional[int]
|
Manager-assigned OpenSees material tag. Remains |
_owner |
object | None
|
Reference to the owning manager, or |
Methods:
to_tcl
abstractmethod
Render the OpenSees material definition command as a Tcl string.
updateMaterialStage
Return an updateMaterialStage Tcl command, or empty string.
ElasticUniaxialMaterial
ElasticUniaxialMaterial(user_name: str = 'Unnamed', *, E: float | None = None, eta: float = 0.0, Eneg: float | None = None, **_: Any)
Bases: Material
One-dimensional elastic stress-strain law with optional asymmetric stiffness.
Suitable for simple bars, trusses, springs, and fiber sections needing a
basic uniaxial constitutive rule. The tangent E controls loading
stiffness, eta adds optional damping tangent contribution, and
Eneg sets an optional distinct compression tangent.
Tcl form
uniaxialMaterial Elastic <tag> E eta Eneg; # user_name
Note
- Manager ownership is required before Tcl export so the OpenSees tag
can be inserted after
Elastic. Enegdefaults toEwhen omitted.
Attributes:
| Name | Type | Description |
|---|---|---|
params |
Dict[str, float]
|
Mapping of emitted |
Example
Normalize moduli and damping tangent for OpenSees insertion.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
user_name
|
str
|
Comment key for Tcl plus manager uniqueness constraint. |
'Unnamed'
|
E
|
float | None
|
Primary tensile or loading stiffness, strictly positive. |
None
|
eta
|
float
|
Supplemental damping tangent, non-negative after coercion. |
0.0
|
Eneg
|
float | None
|
Compression-side stiffness. Falls back to |
None
|
**_
|
Any
|
Ignored extension keywords. |
{}
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
ValueError
|
If |
ValueError
|
If |