Every model so far has rested on one quiet assumption: the spring force is exactly , 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 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 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 and then runs along the ceiling to the largest deformation . Unloading drops back at the original stiffness and reaches zero force at a residual deformation , so the frame no longer stands plumb. The shaded parallelogram between the two paths is energy the spring has dissipated, and the ratio , the ductility, measures how far past yield it went; the rest of the chapter makes each of these ideas precise.
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 the restoring force follows the elastic stiffness , so the yield displacement is
Beyond the force keeps rising, but on a much gentler slope , where the post-yield stiffness ratio is a small number (a few percent for steel; is the idealized elastoplastic limit with a perfectly flat plateau). This is the bilinear backbone:
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, kN/m, and a yield strength of 8 kN.
k = 50.0 # elastic stiffness (kN/m)
fy = 8.0 # yield strength (kN)
b = 0.05 # post-yield stiffness ratio (-)
uy = fy / k # yield displacement (m)
def backbone(u, k, fy, b):
uy = fy / k
return np.where(np.abs(u) <= uy,
k * u,
np.sign(u) * (fy + b * k * (np.abs(u) - uy)))
u = np.linspace(-4 * uy, 4 * uy, 400)
fig, ax = plt.subplots(figsize=(6.4, 4.0))
ax.plot(u * 1000, backbone(u, k, fy, b), color=sd.PLT[0], label=r"bilinear ($b=0.05$)")
ax.plot(u * 1000, backbone(u, k, fy, 0.0), "--", color=sd.PLT[1], label=r"elastoplastic ($b=0$)")
ax.axvline(uy * 1000, color="#9aa3ab", lw=1.0, ls=":")
ax.axhline(fy, color="#9aa3ab", lw=1.0, ls=":")
ax.plot(uy * 1000, fy, "o", color=sd.PLT[6], ms=6)
ax.annotate(r"$(u_y,\,f_y)$", (uy * 1000, fy), (uy * 1000 + 6, fy - 3.0))
ax.set_xlabel(r"deformation $u$ (mm)")
ax.set_ylabel(r"restoring force $f_s$ (kN)")
ax.legend(loc="lower right")
plt.show()

Figure 2:The bilinear force-deformation backbone: the elastic slope below the yield point , the gentler post-yield slope beyond it, and the elastoplastic () 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 , the
initial stiffness , and the strain-hardening ratio . (For a perfectly
flat plateau you could equally use ElasticPP with .)
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.
def _build_nl(m, c, k, fy, b, damped=True):
"""One mass node on a yielding (Steel01) zeroLength spring to a fixed node."""
ops.wipe()
ops.model('basic', '-ndm', 1, '-ndf', 1)
ops.node(1, 0.0); ops.fix(1, 1)
ops.node(2, 0.0); ops.mass(2, m)
ops.uniaxialMaterial('Steel01', 1, fy, k, b) # fy, E0 = k, b
ops.element('zeroLength', 1, 1, 2, '-mat', 1, '-dir', 1)
if damped and c > 0:
ops.rayleigh(c / m, 0.0, 0.0, 0.0) # C = (c/m) M -> c
def _converge_step(dt):
"""Advance ONE transient step, falling back through tougher algorithms."""
for algo in ("KrylovNewton", "Newton", "NewtonLineSearch", "ModifiedNewton"):
ops.algorithm(algo)
if ops.analyze(1, dt) == 0:
return True
# last resort: cut the step into ten sub-steps
ops.algorithm("KrylovNewton")
return all(ops.analyze(1, dt / 10.0) == 0 for _ in range(10))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.
def imposed_displacement(m, k, fy, b, u_hist):
"""Push the mass through u_hist (displacement control); return (d, f)."""
_build_nl(m, 0.0, k, fy, b, damped=False)
ops.timeSeries('Linear', 1)
ops.pattern('Plain', 1, 1)
ops.load(2, 1.0) # reference load direction
ops.constraints('Plain'); ops.numberer('Plain'); ops.system('BandGeneral')
ops.test('NormDispIncr', 1e-8, 50); ops.algorithm('Newton')
ops.integrator('DisplacementControl', 2, 1, 0.0)
ops.analysis('Static')
N = u_hist.size
d = np.zeros(N); f = np.zeros(N)
for i in range(N - 1):
du = u_hist[i + 1] - u_hist[i]
ops.integrator('DisplacementControl', 2, 1, du) # step size = increment
if ops.analyze(1) != 0:
ops.algorithm('ModifiedNewton')
ops.analyze(1)
ops.algorithm('Newton')
d[i + 1] = ops.nodeDisp(2, 1)
f[i + 1] = ops.basicForce(1)[0] # force in the spring
return d, f# Cyclic history: two sine cycles at each of 1, 2, 3 times u_y.
def cyclic(uy, n=60, amps=(1.0, 2.0, 3.0)):
seg = [a * uy * np.sin(np.linspace(0, 2 * np.pi, n, endpoint=False))
for a in amps for _ in range(2)]
return np.concatenate(seg + [np.zeros(1)])
m = 2.0
u_hist = cyclic(uy)
d, f = imposed_displacement(m, k, fy, b, u_hist)
fig, ax = plt.subplots(figsize=(6.2, 4.6))
ax.plot(d * 1000, f, color=sd.PLT[0], lw=1.8)
uu = np.linspace(0, d.max(), 100)
ax.plot(uu * 1000, backbone(uu, k, fy, b), "--", color="#9aa3ab", lw=1.4)
ax.plot(-uu * 1000, backbone(-uu, k, fy, b), "--", color="#9aa3ab", lw=1.4)
ax.set_xlabel(r"deformation $u$ (mm)")
ax.set_ylabel(r"restoring force $f_s$ (kN)")
plt.show()

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 , 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 ), 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, , 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, . 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.
E_diss = abs(np.trapezoid(f, d)) # area swept in the f-u plane (kN*m = kJ)
print(f"yield displacement uy = {uy * 1000:.1f} mm")
print(f"peak imposed drift = {np.abs(d).max() * 1000:.1f} mm "
f"(ductility {np.abs(d).max() / uy:.1f})")
print(f"energy dissipated E_D = {E_diss:.2f} kJ")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.
def push_material(mat_tag, k, fy, b, u_hist):
"""Drive one uniaxial material through the deformation history u_hist; return (d, f)."""
ops.wipe()
ops.model('basic', '-ndm', 1, '-ndf', 1)
uy = fy / k
if mat_tag == 'Steel01': ops.uniaxialMaterial('Steel01', 1, fy, k, b)
elif mat_tag == 'ElasticPP': ops.uniaxialMaterial('ElasticPP', 1, k, uy)
elif mat_tag == 'Steel02': ops.uniaxialMaterial('Steel02', 1, fy, k, b, 18.0, 0.925, 0.15)
ops.testUniaxialMaterial(1) # test the material on its own
f = np.empty(u_hist.size)
for i, ui in enumerate(u_hist):
ops.setStrain(float(ui)) # impose the deformation ...
f[i] = ops.getStress() # ... and read the force it needs
return u_hist.copy(), fmaterials = [('Steel01', 0.05, "Steel01 (bilinear)"),
('ElasticPP', 0.00, "ElasticPP (elastoplastic)"),
('Steel02', 0.05, "Steel02 (Bauschinger)")]
fig, axes = plt.subplots(1, 3, figsize=(9.6, 3.5), sharex=True, sharey=True)
for ax, col, (tag, bb, lab) in zip(axes, sd.PLT, materials):
d, f = push_material(tag, k, fy, bb, u_hist)
ED = abs(np.trapezoid(f, d))
ax.plot(d * 1000, f, color=col, lw=1.3)
for s in (-1, 1):
ax.axvline(s * uy * 1000, color="#9aa3ab", lw=0.8, ls=":")
ax.set_title(rf"{lab}" "\n" rf"$E_D = {ED:.1f}$ kJ", fontsize=10.5)
ax.set_xlabel(r"deformation $u$ (mm)")
axes[0].set_ylabel(r"restoring force $f_s$ (kN)")
fig.tight_layout()
plt.show()

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 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:
where now follows the hysteresis loop rather than . It is written
, not just , because, as the loop showed, the force at a
given displacement is path-dependent: it depends on the deformation history,
not on 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 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
is really shorthand for this history dependence rather than a literal function of
the instantaneous pair. That history-dependence is exactly what the linear
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.
def nl_timehistory(m, c, k, fy, b, ag, dt):
"""Nonlinear transient under base motion ag; returns (t, u, fs).
The base motion enters through the same `UniformExcitation` pattern as in
Chapter 6 -- only now it drives a *yielding* spring. fs is the actual
path-dependent restoring force, read from OpenSees at each step (not the
backbone evaluated at u, which would show no hysteresis loops)."""
_build_nl(m, c, k, fy, b, damped=True)
ag = np.asarray(ag, float)
N = ag.size
ops.timeSeries('Path', 1, '-dt', dt, '-values', *map(float, ag))
ops.pattern('UniformExcitation', 1, 1, '-accel', 1) # base shaking, as in Ch. 6
ops.constraints('Plain'); ops.numberer('Plain'); ops.system('BandGeneral')
ops.test('NormDispIncr', 1e-8, 25); ops.algorithm('KrylovNewton')
ops.integrator('Newmark', 0.5, 0.25); ops.analysis('Transient')
u = np.zeros(N); fs = np.zeros(N)
for i in range(N - 1):
if not _converge_step(dt):
raise RuntimeError(f"no convergence at step {i}")
u[i + 1] = ops.nodeDisp(2, 1)
fs[i + 1] = ops.basicForce(1)[0] # actual path-dependent spring force
return np.arange(N) * dt, u, fsThe experiment takes a structure with period 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.
t, ag = sd.demo_record() # synthetic strong-motion record (m/s^2)
dt = t[1] - t[0]
m, Tn, zeta = 1.0, 0.7, 0.05
wn = 2 * np.pi / Tn
k = m * wn**2
c = 2 * zeta * m * wn
# Elastic reference (linear engine): peak force the structure would have to carry.
t, u_el, _, _ = sd.sdof_response(m, c, k, -m * ag, dt)
fy_elastic = k * np.max(np.abs(u_el))
# Yielding system: give it half that strength, so it must yield.
fy = fy_elastic / 2.0
uy = fy / k
t, u_in, fs_in = nl_timehistory(m, c, k, fy, 0.02, ag, dt)
mu = np.max(np.abs(u_in)) / uy # ductility demand
print(f"elastic peak |u| = {np.max(np.abs(u_el)) * 1000:6.1f} mm")
print(f"yielding peak |u| = {np.max(np.abs(u_in)) * 1000:6.1f} mm")
print(f"yield disp uy = {uy * 1000:6.1f} mm")
print(f"ductility demand mu = {mu:.2f}")elastic peak |u| = 36.1 mm
yielding peak |u| = 50.1 mm
yield disp uy = 18.1 mm
ductility demand mu = 2.78
fig, ax = plt.subplots(figsize=(7.6, 3.4))
ax.plot(t, u_el * 1000, color=sd.PLT[0], lw=1.6, label="elastic (linear)")
ax.plot(t, u_in * 1000, color=sd.PLT[1], lw=1.8, label="yielding (inelastic)")
ax.axhspan(-uy * 1000, uy * 1000, color="#E3E8EC", alpha=0.7, lw=0,
label=r"elastic band $\pm u_y$")
ax.axhline(0, color="#9aa3ab", lw=1.0)
ax.set_xlabel(r"time $t$ (s)")
ax.set_ylabel(r"deformation $u$ (mm)")
ax.set_ylim(top=68) # headroom so the legend clears the peak trace
ax.legend(loc="upper right", ncol=3)
plt.show()

Figure 5:Elastic (blue) versus yielding (orange) displacement of the same oscillator under the same ground motion; the shaded band is the elastic range .
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 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:
fig, ax = plt.subplots(figsize=(5.8, 4.6))
ax.plot(u_in * 1000, fs_in, color=sd.PLT[1], lw=1.1) # actual hysteresis from OpenSees
for s in (-1, 1):
ax.axvline(s * uy * 1000, color="#9aa3ab", lw=1.0, ls=":")
ax.set_xlabel(r"deformation $u$ (mm)")
ax.set_ylabel(r"restoring force $f_s$ (kN)")
plt.show()

Figure 6:The same inelastic run drawn in the force-deformation plane, with the yield displacement marked as vertical lines.
▶ Interactive: the same oscillator, elastic and yielding, under the same shaking
The two runs of Figure 5 play together over the first 20 s of the
record. The oscillator with the elastic spring of the linear engine (blue)
stands next to the same oscillator with the chapter’s OpenSees Steel01 spring
at half the strength (orange). On the steps where that spring yields, its column
turns red with a hinge at the base, and it leans by the plastic offset; the
arrows on the masses are the restoring forces. The force-deformation panel draws
both runs, the elastic one along its straight line and the
yielding one around its loop between the dashed yield lines, with the last half
second in bold and the yielding steps in red. Below, the ground acceleration and
the two drift histories play together over the elastic range . The
readout tracks the energy dissipated by yielding,
, the work done on the spring less the
strain energy it would return on unloading.
The spring first yields at s, and in all it yields in five short bursts, the last near 12.7 s. Between them it unloads and reloads along the elastic slope, so climbs in steps and stops at 51.5 J. In the burst near 5.2 s the elastic spring carries 2.86 kN while the yielding one holds at 1.49 kN, about half. The yielding drift reaches 50.1 mm at s against the elastic 36.1 mm, a ductility of 2.78. Four of the five bursts push the same way, so the yielding oscillator does not come back: at the end of the record it rests at a residual drift of 27.8 mm, its column straight but leaning about its base, while the elastic one is back at 0.0 mm.
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 , the peak displacement measured in units of the yield displacement:
A system that just barely reaches yield has ; the run above reached , 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 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 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 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 . 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.
def fy_for_ductility(m, c, k, ag, dt, mu_target, b=0.0, tol=0.05, itmax=16):
"""Bisection: yield strength giving peak ductility ~ mu_target. Returns (fy, mu, fy_el)."""
_, u_el, _, _ = sd.sdof_response(m, c, k, -m * ag, dt)
fy_el = k * np.max(np.abs(u_el)) # elastic strength (mu = 1)
lo, hi = 0.02 * fy_el, fy_el
fy = hi
for _ in range(itmax):
fy = 0.5 * (lo + hi)
_, u, _ = nl_timehistory(m, c, k, fy, b, ag, dt)
mu = np.max(np.abs(u)) / (fy / k)
if abs(mu - mu_target) / mu_target < tol:
break
if mu > mu_target: # too weak -> need more strength
lo = fy
else: # too strong -> can shed strength
hi = fy
return fy, mu, fy_elNow sweep the period axis at a fixed target ductility and collect, at each period, the strength the structure can get away with. The result is reported as the yield-strength reduction factor
the factor by which ductility lets us cut the required strength below the elastic demand. A code’s “response modification factor” builds on this idea and also folds in the overstrength of real structures, as Chapter 9 explains.
mu_t = 4.0
Tns = np.linspace(0.1, 3.0, 26)
Ry = np.empty_like(Tns)
for i, Tn in enumerate(Tns):
wn = 2 * np.pi / Tn
k = m * wn**2
c = 2 * 0.05 * m * wn
fy, mu, fy_el = fy_for_ductility(m, c, k, ag, dt, mu_t)
Ry[i] = fy_el / fy
print("Tn (s):", " ".join(f"{T:5.2f}" for T in Tns[::3]))
print("R_y :", " ".join(f"{R:5.2f}" for R in Ry[::3]))
print(f"largest R_y = {Ry.max():.2f} at Tn = {Tns[np.argmax(Ry)]:.2f} s")
fig, ax = plt.subplots(figsize=(7.2, 4.2))
ax.plot(Tns, Ry, "-o", color=sd.PLT[0], ms=4, label=r"$R_y$ (computed, $\mu=4$)")
ax.axhline(mu_t, color=sd.PLT[2], ls="--", lw=1.6,
label=r"equal displacement: $R_y=\mu=4$")
ax.axhline(np.sqrt(2 * mu_t - 1), color=sd.PLT[1], ls="--", lw=1.6,
label=r"equal energy: $R_y=\sqrt{2\mu-1}$")
ax.set_xlabel(r"natural period $T_n$ (s)")
ax.set_ylabel(r"reduction factor $R_y = f_{y,\mathrm{el}} / f_y$")
ax.set_ylim(0, mu_t + 1)
ax.legend(loc="lower right")
plt.show()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

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 7:Yield-strength reduction factor for a target ductility , computed by bisecting the yield strength at each period, with the equal-displacement () and equal-energy () 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 at the deformation , and the colored line is an elastoplastic system that yields at a lower and runs flat to . The equal-displacement rule (left) assumes that both systems reach the same peak deformation, which lets the strength fall by the full factor . 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 .
Figure 8:The equal-displacement (left) and equal-energy (right) constructions for a target ductility , with the elastic system dashed and the elastoplastic system in color.
The equal-displacement rule applies at long periods: for flexible structures, say s, the yielding and elastic systems reach roughly the same peak displacement (the modest growth we saw in Figure 5), so that . Both displacements ride the same elastic slope from the origin ( for the elastic system and for the yielding one), so their ratio is simply the ratio of the two strengths, and a short calculation gives
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 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 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 out to its demand , so its area is a triangle
The elastoplastic system climbs the same slope only to , a small triangle of area , and then runs flat at out to , adding a rectangle of area . Its total monotonic energy is therefore
using . Setting cancels the and leaves , i.e. . Taking the square root gives the milder reduction
For that is , 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: is 2.02 at 0.45 s and 2.58 at 0.80 s.
At very short periods () a near-rigid structure moves with the ground. It cannot exploit ductility at all, so regardless of 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 -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, | equal acceleration | rigid; ductility unusable | |
Short / intermediate | equal energy | partial strength reduction | |
Long, s | equal displacement | 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.
# Ductility demand of two frames designed for R_y = 3 (ex-ch07-ductility), elastoplastic (b = 0).
Ry_ex = 3.0
for name, Tn_ex in (("A", 2.0), ("B", 0.5)):
wn_ex = 2 * np.pi / Tn_ex
k_ex, c_ex = m * wn_ex**2, 2 * 0.05 * m * wn_ex
_, u_el_ex, _, _ = sd.sdof_response(m, c_ex, k_ex, -m * ag, dt)
fy_ex = k_ex * np.max(np.abs(u_el_ex)) / Ry_ex
_, u_ex, _ = nl_timehistory(m, c_ex, k_ex, fy_ex, 0.0, ag, dt)
mu_ex = np.max(np.abs(u_ex)) / (fy_ex / k_ex)
rule = Ry_ex if Tn_ex >= 0.7 else (Ry_ex**2 + 1) / 2
print(f"frame {name}: Tn = {Tn_ex} s elastic peak {np.max(np.abs(u_el_ex))*1000:6.1f} mm "
f"yielding peak {np.max(np.abs(u_ex))*1000:6.1f} mm mu = {mu_ex:.2f} (rule: {rule:.0f})")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)
▶ Interactive: the strength a target ductility allows, under both rules
The timeline sweeps the target ductility from 1 to 8 (the step buttons move it by 0.5) for a structure whose elastic demand is fixed at 15 kN and 300 mm (gray). The blue backbone is the strength the equal-displacement rule allows, , with the peak deformation unchanged; the orange one is the strength the equal-energy rule allows, , which must reach a larger peak deformation so that the shaded areas and stay equal. On the right the three systems, all with the same stiffness, are drawn at their peak deformations on a common scale, each pushed by its strength, with a plastic hinge at the base of the two that yield. The note reports the reduction factor, strength, and peak deformation under each rule.
As the target ductility grows, the equal-displacement strength falls in direct proportion, to 1.88 kN at , while the equal-energy strength falls only to 3.87 kN and its peak deformation grows to 620 mm. The gap between the two backbones is the gap between the two horizontal anchors of Figure 7, read as forces rather than ratios.
9Summary¶
Real structures yield: past the restoring force flattens onto the post-yield slope (Figure 1, Figure 2), so replaces in the equation of motion, (3).
A yielding
zeroLength(Steel01) SDOF in OpenSeesPy, driven cyclically, traces a hysteresis loop (Figure 3); unloading follows the elastic slope (leaving residual drift) and the enclosed area is dissipated energy. Swapping the uniaxial material forElasticPP,Steel02, or another law changes the loop shape and the energy it dissipates (Figure 4).The earthquake itself enters through the
UniformExcitationpattern of Chapter 6, now driving the yielding spring.Under an earthquake the yielding structure carries far less force than the elastic one yet reaches a peak displacement of the same order (Figure 5); how far it pushes inelastically is the ductility , (4).
Fixing a target and bisecting the yield strength at each period (Algorithm 1) builds the constant-ductility spectrum and its reduction factor (Figure 7).
The single-record is jagged but scatters around two classical anchors (Figure 8, Table 1): equal displacement (, long periods) and equal energy (, short and intermediate periods). Averaged over many records they form the basis of the -factors of force-based seismic design, although a single record can demand more of a stiff structure (Example 1).
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.