Skip to content

ElasticUniaxialMaterial

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.
  • Eneg defaults to E when omitted.

Attributes:

Name Type Description
params Dict[str, float]

Mapping of emitted E, eta, and Eneg values.

Example
from femora.core.model import Model

model = Model()
mat = model.material.uniaxial.elastic(
    user_name="rebar_truss",
    E=200000.0,
    eta=0.0,
    Eneg=200000.0,
)
print(mat.tag)

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 E when omitted.

None
**_ Any

Ignored extension keywords.

{}

Raises:

Type Description
ValueError

If E is missing.

ValueError

If E, eta, or Eneg cannot be converted to numeric values.

ValueError

If E or Eneg is not positive, or if eta is negative.