Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Every model so far has rested on one quiet assumption: the spring force is exactly k uk\,u, a straight line with no upper limit. Push the roof twice as far and it pushes back twice as hard, forever, which is not how real structures behave. Past a certain drift, steel yields, concrete cracks, connections slip, the restoring force flattens out, and the structure starts absorbing energy instead of merely storing it. That flattening is not a defect but the single most important thing a structure can do in a large earthquake: a building that yields gracefully survives shaking that would shatter a brittle elastic one.

In this chapter the linear law k uk\,u finally breaks down. We replace the linear spring with a yielding force-deformation law and build the model in OpenSeesPy, the tool of choice once the algebra stops being closed-form. Four things then emerge that have no analogue in the linear world: a hysteresis loop, energy dissipation, ductility, and the inelastic response spectrum that design codes are built on. There is no tidy formula for the peak displacement of a yielding oscillator under an earthquake, so we compute by simulation throughout, the same philosophy as the rest of the book, now with OpenSees doing the heavy nonlinear bookkeeping.

1Where k uk\,u breaks down

Figure 1 previews what giving the spring a ceiling does, using the simplest yielding law, one that goes perfectly flat at the yield force. Loading follows the elastic line up to the yield point (uy,fy)(u_y, f_y) and then runs along the ceiling to the largest deformation umu_m. Unloading drops back at the original stiffness kk and reaches zero force at a residual deformation uru_r, so the frame no longer stands plumb. The shaded parallelogram between the two paths is energy the spring has dissipated, and the ratio μ=um/uy\mu = u_m/u_y, the ductility, measures how far past yield it went; the rest of the chapter makes each of these ideas precise.

One excursion of an elastoplastic spring past yield and back to zero force, with
the elastic line it leaves behind, the residual deformation, the dissipated
energy, and the ductility.

Figure 1:One excursion of an elastoplastic spring past yield and back to zero force, with the elastic line it leaves behind, the residual deformation, the dissipated energy, and the ductility.

Take the elastic spring and give it a ceiling. Below a yield force fyf_y the restoring force follows the elastic stiffness kk, so the yield displacement is

uy=fyk.u_y = \frac{f_y}{k}.

Beyond uyu_y the force keeps rising, but on a much gentler slope b kb\,k, where the post-yield stiffness ratio bb is a small number (a few percent for steel; b=0b=0 is the idealized elastoplastic limit with a perfectly flat plateau). This is the bilinear backbone:

fs(u)={k u,∣u∣≤uy,sign⁡(u) [fy+b k (∣u∣−uy)],∣u∣>uy.f_s(u) = \begin{cases} k\,u, & |u| \le u_y,\\[4pt] \operatorname{sign}(u)\,\bigl[f_y + b\,k\,(|u| - u_y)\bigr], & |u| > u_y. \end{cases}

The whole nonlinear chapter lives in this one picture. Let us draw it before we do anything else, with round numbers: the stiffness of the flexible frame of Chapter 1, k=50k = 50 kN/m, and a yield strength of 8 kN.

<Figure size 832x520 with 1 Axes>
<Figure size 832x520 with 1 Axes>

Figure 2:The bilinear force-deformation backbone: the elastic slope kk below the yield point (uy,fy)(u_y, f_y), the gentler post-yield slope b kb\,k beyond it, and the elastoplastic (b=0b=0) limit as a dashed line.

The backbone in Figure 2 is only half the story, though. It tells you the force on the way out, but says nothing about what happens when the structure reverses and comes back. That return path is where the physics gets interesting, and where we need a real material model rather than a one-line function.

2A nonlinear SDOF in OpenSeesPy

We build the oscillator the same way the linear osdof helper does, one mass node tied to a fixed node by a zeroLength element, but we swap the Elastic material for a yielding one. OpenSees ships several; we use Steel01, a bilinear model that takes exactly our three numbers: the yield strength fyf_y, the initial stiffness E0=kE_0 = k, and the strain-hardening ratio bb. (For a perfectly flat plateau you could equally use ElasticPP with b=0b=0.)

The function below mirrors osdof.opensees_sdof line for line, with two changes: the material is Steel01, and the solver is wrapped so that if a nonlinear step fails to converge it retries with progressively more robust algorithms before giving up. That fallback is the price of nonlinearity: the equilibrium iteration that was trivial for a linear system can stall when the structure is yielding, so a production-quality analysis always carries a backup plan.

That is the entire engine, and we will drive it two ways: first by pushing it through a prescribed motion (to see the loop), then by shaking its base (to see the earthquake response).

3The hysteresis loop and energy dissipation

To reveal the return path we impose a cyclic displacement history, drive the mass back and forth with growing amplitude, and record the restoring force at every step. This is a static displacement-controlled analysis: OpenSees moves the node to each target displacement and reports the force the material needs to get there.

<Figure size 806x598 with 1 Axes>
<Figure size 806x598 with 1 Axes>

Figure 3:Hysteresis loop of the yielding spring under a cyclic push of growing amplitude, with the monotonic backbone shown dashed.

The loop in Figure 3 is the signature of inelastic behavior, and it carries two physical messages. The first is that unloading is elastic: when the structure reverses, it does not retrace the backbone but comes back down a line of slope kk, the same stiffness it had before yielding. This is why a yielded structure is left with a residual deformation, a nonzero displacement at zero force, because the yielding has rearranged the material permanently.

The second message is that the enclosed area is dissipated energy. Trace one full cycle and you return to where you started, so the elastic strain energy is recovered, but the path encloses a nonzero area. That area is work done against the material that never comes back: it is converted to heat and micro-damage. A linear spring traces a line back and forth and encloses zero area, dissipating nothing (its only energy leak is the dashpot cc), so the yielding spring is an energy sink in its own right, and a powerful one.

The dissipated energy is easy to put a number on. The energy dissipated over the whole history is the area swept in the force-deformation plane, ED=∮fs duE_D = \oint f_s\,\mathrm{d}u, which is one line of NumPy. While we are at it we report one more number, the peak drift measured in units of the yield displacement, umax⁡/uyu_{\max}/u_y. That ratio is the ductility: how many times past first yield the structure was pushed. It is the headline quantity of the whole chapter, and we define it properly in a moment; for now read it as the size of the loops in Figure 3.

yield displacement   uy = 160.0 mm
peak imposed drift        = 480.0 mm  (ductility 3.0)
energy dissipated    E_D = 28.54 kJ

That dissipated energy is the structure’s first line of defense. The more area a structure can sweep out before it fails, the fatter and more numerous its loops, the more earthquake energy it can swallow.

4A library of yielding rules

Steel01 gave us one particular loop: straight segments meeting at sharp corners. But the shape of the hysteresis loop is a property of the material, and OpenSees ships a whole library of uniaxial materials, each encoding a different real behavior. Because the material is a single line of the model, swapping it is a one-line change, so let us push three of them through the same cyclic history and compare. To compare materials we can skip the analysis altogether and drive each one directly through the deformation history with OpenSees’s uniaxial material tester (testUniaxialMaterial, setStrain, getStress). For a zeroLength spring the deformation plays the role of the strain and the force that of the stress. The tester also avoids a numerical trap: the elastoplastic law has zero tangent stiffness on its plateau, so a displacement-controlled solve of a single spring would face a singular matrix at every plastic step.

<Figure size 1248x455 with 3 Axes>
<Figure size 1248x455 with 3 Axes>

Figure 4:The same cyclic deformation imposed on three OpenSees uniaxial materials, Steel01 (bilinear), ElasticPP (elastic-perfectly plastic), and Steel02 (rounded Bauschinger reversal), with the dissipated energy EDE_D above each panel.

The three loops in Figure 4 sweep the same deformation range but tell different stories. Steel01 is the bilinear rule we used above, and its 5 % hardening trims the loops to 28.5 kJ. ElasticPP is the idealized flat-plateau limit and dissipates the most, 30.0 kJ, while Steel02 (the Giuffrè-Menegotto-Pinto model) rounds the knees as real steel does and dissipates about a quarter less, 21.6 kJ. The lesson is not that one material is “right”, but that the modeling choice is an engineering assumption about how the structure soaks up energy, and OpenSees makes that assumption explicit and swappable. For the rest of the chapter we keep the simple Steel01 rule and turn the base loose, letting the ground motion of Chapter 6 trace these loops in real time.

5Inelastic time-history: elastic versus yielding

Under base excitation the equation of motion gains a yielding restoring force but is otherwise the familiar one from Chapter 1:

m u¨+c u˙+fs(u,u˙)=− m u¨g(t),m\,\ddot u + c\,\dot u + f_s(u,\dot u) = -\,m\,\ddot u_g(t),

where fsf_s now follows the hysteresis loop rather than k uk\,u. It is written fs(u,u˙)f_s(u,\dot u), not just fs(u)f_s(u), because, as the loop showed, the force at a given displacement is path-dependent: it depends on the deformation history, not on uu alone. The spring carries a hidden internal state (the accumulated plastic offset, equivalently the last reversal point) that fixes which branch it is on: the very same uu can sit on the backbone or on an elastic reload line, according to the prior yielding. The velocity only flags reversals (a change in its sign begins a fresh elastic unloading branch), so the notation fs(u,u˙)f_s(u,\dot u) is really shorthand for this history dependence rather than a literal function of the instantaneous pair. That history-dependence is exactly what the linear k uk\,u lacked, and we let OpenSees, which carries the internal state for us, do the bookkeeping. We integrate this equation in OpenSeesPy with Newmark’s average-acceleration rule (Newmark 0.5 0.25), the unconditionally stable stepper from Chapter 3, and we feed in the base motion through the very same UniformExcitation pattern we wrote in Chapter 6. The only thing that has changed since then is that the spring is now allowed to yield. The one genuinely new ingredient is the convergence-guarded step: where a linear solve always converged in a single pass, a yielding step can stall, so we wrap each step in the _converge_step fallback defined above.

The experiment takes a structure with period Tn=0.7T_n = 0.7 s and 5 % damping, hits it with the bundled ground-motion record, and runs it twice: once elastic (our linear engine from earlier chapters) and once yielding. We deliberately choose a yield strength half of what the structure would need to stay elastic, so that it yields well into the inelastic range.

elastic peak  |u| =   36.1 mm
yielding peak |u| =   50.1 mm
yield disp     uy =   18.1 mm
ductility demand mu = 2.78
<Figure size 988x442 with 1 Axes>
<Figure size 988x442 with 1 Axes>

Figure 5:Elastic (blue) versus yielding (orange) displacement of the same oscillator under the same ground motion; the shaded band is the elastic range ±uy\pm u_y.

Two features of Figure 5 are worth pausing on. First, the yielding structure carries far less force. It was designed for half the elastic strength and that is all it ever feels: once it reaches fyf_y it simply yields rather than resisting harder. This is the central bargain of earthquake engineering: trade strength for ductility. A structure that can deform inelastically does not need the enormous (and uneconomic) strength a purely elastic design would demand.

Second, the peak displacement stays the same order of magnitude as the elastic one (50.1 mm against 36.1 mm), even though the strength was halved, and the trace ends offset from zero: the residual drift we saw in the loop. Halving the strength did not double the displacement; the inelastic peak grew only modestly. That the two peaks stay roughly comparable, rather than diverging, is the seed of the equal-displacement rule, an approximate but powerful idea we are about to meet head-on.

We can also look at this run the way the structure “feels” it, as a hysteresis loop traced in real time by the earthquake itself:

<Figure size 754x598 with 1 Axes>
<Figure size 754x598 with 1 Axes>

Figure 6:The same inelastic run drawn in the force-deformation plane, with the yield displacement ±uy\pm u_y marked as vertical lines.

6Ductility

We met it informally above; here is its definition. The single number that summarizes how far a structure pushed into the inelastic range is the ductility ratio μ\mu, the peak displacement measured in units of the yield displacement:

μ=umax⁡uy.\mu = \frac{u_{\max}}{u_y}.

A system that just barely reaches yield has μ=1\mu = 1; the run above reached μ=2.78\mu = 2.78, meaning it deformed nearly three times past first yield. Well-detailed ductile structures are designed to sustain larger ductilities than this, while brittle ones may fail at μ\mu barely above 1. Ductility is, in effect, the structure’s deformation budget, and the whole design question becomes: given how hard the ground shakes, how much strength must we provide so the ductility demand stays within that budget? That question is what the inelastic response spectrum answers.

7Constant-ductility inelastic spectra

Recall the elastic response spectrum from Chapter 6: loop an SDOF over many periods TnT_n and, at each, record the peak response. The inelastic spectrum asks a subtler, inverse question (Veletsos and Newmark, 1960). Instead of fixing the strength and reading off the displacement, we fix the target ductility μ\mu and ask: how much yield strength does each period need so that it yields exactly to that ductility, no more, no less?

There is no formula for that strength, but there is a clean numerical recipe. Peak ductility generally falls as the strength rises, because a stronger structure yields less, so we can bisect on fyf_y. The relation is not strictly monotonic for every record and period: occasionally two strengths give the same ductility, and the usual convention is then to keep the larger one. Bisection returns one of them, which is accurate enough to draw the spectrum’s shape here.

In code, each bisection step is one nonlinear OpenSees run, so a whole spectrum is a few hundred nonlinear runs, trivial at this scale.

Now sweep the period axis at a fixed target ductility μ⋆=4\mu^\star = 4 and collect, at each period, the strength the structure can get away with. The result is reported as the yield-strength reduction factor

Ry(Tn)=fy,elfy,R_y(T_n) = \frac{f_{y,\text{el}}}{f_y},

the factor by which ductility lets us cut the required strength below the elastic demand. A code’s “response modification factor” RR builds on this idea and also folds in the overstrength of real structures, as Chapter 9 explains.

Tn (s):  0.10   0.45   0.80   1.14   1.49   1.84   2.19   2.54   2.88
R_y   :  1.51   2.02   2.58   4.27   3.77   3.57   3.38   3.07   2.58
largest R_y = 4.91 at Tn = 1.03 s
<Figure size 936x546 with 1 Axes>
Tn (s):  0.10   0.45   0.80   1.14   1.49   1.84   2.19   2.54   2.88
R_y   :  1.51   2.02   2.58   4.27   3.77   3.57   3.38   3.07   2.58
largest R_y = 4.91 at Tn = 1.03 s
<Figure size 936x546 with 1 Axes>

Figure 7:Yield-strength reduction factor Ry(Tn)R_y(T_n) for a target ductility μ⋆=4\mu^\star=4, computed by bisecting the yield strength at each period, with the equal-displacement (Ry=μ=4R_y=\mu=4) and equal-energy (Ry=2μ−1R_y=\sqrt{2\mu-1}) anchors drawn as horizontal lines.

8Strength, ductility, and period: equal displacement and equal energy

The single-record curve in Figure 7 is jagged (peak ductility under one irregular ground motion is a noisy function of period), but its overall level and trend are not arbitrary. They follow two simple rules that every earthquake engineer carries in their head, drawn as horizontal anchors in the figure, and Figure 8 shows where each one comes from. In both panels the dashed line is the elastic system, which climbs to the force fy,elf_{y,\text{el}} at the deformation uelu_\text{el}, and the colored line is an elastoplastic system that yields at a lower fyf_y and runs flat to um=μuyu_m = \mu u_y. The equal-displacement rule (left) assumes that both systems reach the same peak deformation, which lets the strength fall by the full factor μ\mu. The equal-energy rule (right) assumes instead that both absorb the same energy on the way out, so the shaded areas match and the strength can fall only by 2μ−1\sqrt{2\mu - 1}.

The equal-displacement (left) and equal-energy (right) constructions for a target
ductility \mu = 4, with the elastic system dashed and the elastoplastic system
in color.

Figure 8:The equal-displacement (left) and equal-energy (right) constructions for a target ductility μ=4\mu = 4, with the elastic system dashed and the elastoplastic system in color.

The equal-displacement rule applies at long periods: for flexible structures, say Tn≳0.7T_n \gtrsim 0.7 s, the yielding and elastic systems reach roughly the same peak displacement (the modest growth we saw in Figure 5), so that umax⁡≈umax⁡elu_{\max} \approx u_{\max}^{\text{el}}. Both displacements ride the same elastic slope kk from the origin (umax⁡el=fy,el/ku_{\max}^{\text{el}} = f_{y,\text{el}}/k for the elastic system and uy=fy/ku_y = f_y/k for the yielding one), so their ratio is simply the ratio of the two strengths, and a short calculation gives

μ=umax⁡uy≈umax⁡eluy=fy,elfy=Ry⟹Ry≈μ.\mu = \frac{u_{\max}}{u_y} \approx \frac{u_{\max}^{\text{el}}}{u_y} = \frac{f_{y,\text{el}}}{f_y} = R_y \quad\Longrightarrow\quad R_y \approx \mu.

Strength and ductility trade one for one: designing for half the strength costs twice the ductility demand. The computed curve of Figure 7 reaches this anchor only near Tn=1T_n = 1 s, where it peaks at 4.91 (at 1.03 s), and then drifts down from 3.77 at 1.49 s to 2.58 at 2.88 s. A single record rarely follows the rule closely, but averages over many records settle near Ry=μR_y = \mu at long periods (Veletsos and Newmark, 1960), which is where the rule earns its place in design.

The equal-energy rule applies at intermediate periods, where stiffer structures no longer match in displacement; instead the monotonic strain energy (the area under the force-deformation curve, pushed once out to the peak) is roughly preserved between the elastic and inelastic systems. This one is worth deriving in full, because the result looks like it came from nowhere otherwise, and both areas are easy shapes. The elastic system rides a straight line of slope kk out to its demand umax⁡el=fy,el/ku_{\max}^{\text{el}} = f_{y,\text{el}}/k, so its area is a triangle

Eel=12 fy,el umax⁡el=fy,el 22k.E_{\text{el}} = \tfrac12\,f_{y,\text{el}}\,u_{\max}^{\text{el}} = \frac{f_{y,\text{el}}^{\,2}}{2k}.

The elastoplastic system climbs the same slope only to (uy,fy)(u_y, f_y), a small triangle of area 12fyuy\tfrac12 f_y u_y, and then runs flat at fyf_y out to umax⁡=μ uyu_{\max} = \mu\,u_y, adding a rectangle of area fy(umax⁡−uy)=fyuy(μ−1)f_y(u_{\max}-u_y) = f_y u_y(\mu - 1). Its total monotonic energy is therefore

Eep=12fyuy+fyuy(μ−1)=fyuy(μ−12)=fy 2k(μ−12),E_{\text{ep}} = \tfrac12 f_y u_y + f_y u_y(\mu - 1) = f_y u_y\bigl(\mu - \tfrac12\bigr) = \frac{f_y^{\,2}}{k}\bigl(\mu - \tfrac12\bigr),

using uy=fy/ku_y = f_y/k. Setting Eel=EepE_{\text{el}} = E_{\text{ep}} cancels the kk and leaves fy,el 2/2=fy 2(μ−12)f_{y,\text{el}}^{\,2}/2 = f_y^{\,2}(\mu - \tfrac12), i.e. (fy,el/fy)2=2μ−1(f_{y,\text{el}}/f_y)^2 = 2\mu - 1. Taking the square root gives the milder reduction

Ry=fy,elfy≈2μ−1.R_y = \frac{f_{y,\text{el}}}{f_y} \approx \sqrt{2\mu - 1}.

For μ=4\mu = 4 that is Ry≈7≈2.65R_y \approx \sqrt{7} \approx 2.65, noticeably less than 4. Ductility buys less strength reduction in this range, and the computed curve falls to this lower anchor, and below it, at short and intermediate periods: RyR_y is 2.02 at 0.45 s and 2.58 at 0.80 s.

At very short periods (Tn→0T_n \to 0) a near-rigid structure moves with the ground. It cannot exploit ductility at all, so Ry→1R_y \to 1 regardless of μ\mu and yielding buys nothing; the computed curve heads this way at the left edge, where it falls to 1.51 at 0.10 s. These three regimes are summarized below; they are the backbone of force-based seismic design, where the elastic spectrum is divided by an RR-factor to set design strengths.

Table 1:The three period regimes of the strength reduction factor (after Newmark and Hall).

Period range

Rule

Reduction factor

Meaning

Very short, Tn→0T_n \to 0

equal acceleration

Ry≈1R_y \approx 1

rigid; ductility unusable

Short / intermediate

equal energy

Ry≈2μ−1R_y \approx \sqrt{2\mu - 1}

partial strength reduction

Long, Tn≳0.7T_n \gtrsim 0.7 s

equal displacement

Ry≈μR_y \approx \mu

full one-for-one trade

Example 1 puts the two rules to work on frames designed for one third of their elastic strength, and the cell after it checks them against nonlinear runs.

frame A: Tn = 2.0 s   elastic peak  121.0 mm   yielding peak  121.6 mm   mu = 3.01   (rule: 3)
frame B: Tn = 0.5 s   elastic peak   18.1 mm   yielding peak   39.9 mm   mu = 6.62   (rule: 5)

9Summary

With this chapter we have pushed a single oscillator about as far as it goes: linear, then yielding. But a real building is not one mass; it is many, coupled floor to floor, swaying in several patterns at once. The remarkable result of Chapter 8 is that those patterns, the modes, each behave as one of the simple SDOF oscillators we have spent the whole book understanding, so nothing we have learned goes to waste.