Chapter 9: Earthquake Response of MDOF Buildings and Code-Based Design
Chapter 8 took a building apart into modes and showed that each one is just an SDOF oscillator. That fact underlies the way codes design buildings for earthquakes, and this chapter puts it to work. We ask the two questions a structural engineer must answer for every building:
What is the peak demand? A full response history answers it for one record but needs a complete integration. Because each mode is an SDOF, we can instead read its peak straight off a response spectrum and combine the modes, with no response history at all: this is modal response-spectrum analysis (RSA).
What forces does the code require us to design for? Building codes wrap the response spectrum, the modal idea, and the ductility of Chapter 7 into two procedures, the equivalent lateral force method and modal RSA, reduced by a response modification factor . We build the ASCE 7 version from scratch.
Everything here stands on chapters you already know: the response spectrum of Chapter 6, the modes and participation factors of Chapter 8, and the strength-for-ductility trade of Chapter 7. We are not learning new physics: we are assembling the old physics into the workflow of a design office. The chapter’s five-story building carries that whole workflow, from its modes to the forces on its floors.
1A five-story building and its modes¶
We need a slightly bigger building than Chapter 8’s three stories, so the modal and code effects have room to show. We take a five-story shear building, the same idealization as before (lumped floor masses, story springs), with stiffer lower stories and a lighter roof, as is common in real buildings, and the assembly is exactly the Chapter-8 code.
from scipy.linalg import eigh
# Five-story shear building. SI units: tonnes, kN, m, s.
masses = np.array([60., 60., 60., 60., 50.]) # floor masses (t)
ks = np.array([90000., 80000., 70000., 60000., 50000.]) # story stiffness (kN/m)
n = masses.size
M = np.diag(masses)
K = np.zeros((n, n))
for i in range(n): # assemble the tridiagonal shear stiffness
K[i, i] += ks[i]
if i + 1 < n:
K[i, i] += ks[i + 1]
K[i, i + 1] -= ks[i + 1]
K[i + 1, i] -= ks[i + 1]
w2, Phi = eigh(K, M) # generalized eigenproblem K phi = w^2 M phi
wn = np.sqrt(w2); Tn = 2 * np.pi / wn # circular frequencies and periods
# Scale each mode to unit roof (top-floor) displacement, as in Chapter 8.
Phi = Phi / Phi[-1, :]
Mr = np.diag(Phi.T @ M @ Phi).copy() # modal masses M_r = phi_r^T M phi_r (t)
ones = np.ones(n)
L = Phi.T @ M @ ones # modal excitation factors L_r = phi_r^T M 1
Gamma = L / Mr # participation factors Gamma_r = L_r / M_r
Meff = Gamma**2 * Mr # effective modal masses M*_r = Gamma_r^2 M_r (t)
for r in range(n):
print(f"mode {r+1}: Tn = {Tn[r]:.3f} s Gamma = {Gamma[r]:+6.2f} "
f"effective mass = {100*Meff[r]/masses.sum():4.1f} %")mode 1: Tn = 0.598 s Gamma = +1.31 effective mass = 84.5 %
mode 2: Tn = 0.221 s Gamma = -0.45 effective mass = 10.4 %
mode 3: Tn = 0.143 s Gamma = +0.21 effective mass = 3.1 %
mode 4: Tn = 0.113 s Gamma = -0.07 effective mass = 1.3 %
mode 5: Tn = 0.095 s Gamma = +0.01 effective mass = 0.8 %
The fundamental period is s and the first mode carries about 85 % of the building’s mass; the first two together reach about 95 % (and the first three reach 98 %). As in Chapter 8, a handful of modes will be plenty. We plot the mode shapes and tag each with its effective mass, the number that says how much each mode matters for an earthquake.
heights0 = np.arange(n + 1) # ground = 0, floors 1..n
fig, axes = plt.subplots(1, n, figsize=(9.6, 3.6), sharey=True)
for r, ax in enumerate(axes):
shape = np.concatenate([[0.0], Phi[:, r]]) # ground pinned; roof entry = 1
ax.plot(shape, heights0, "-o", color=sd.PLT[r % len(sd.PLT)], lw=2.2, ms=6)
ax.axvline(0, color="#9aa3ab", lw=1.0)
ax.set_title(rf"mode {r+1}" "\n" rf"$T={Tn[r]:.2f}$ s" "\n"
rf"{100*Meff[r]/masses.sum():.0f}% mass", fontsize=11)
mx = 1.25 * np.max(np.abs(shape)) # per-mode scale (roof-norm spans vary)
ax.set_xlim(-mx, mx); ax.set_xlabel(r"$\phi$")
axes[0].set_ylabel("floor"); axes[0].set_yticks(heights0)
fig.tight_layout()
plt.show()

Figure 1:The five mode shapes of the building against floor height, each scaled to unit roof displacement on its own horizontal scale and labeled with its period and its effective modal mass as a share of the total mass.
2Peak demand without a time history: response-spectrum analysis¶
Here is the payoff of “every mode is an SDOF,” previewed in Figure 2 for the first two modes of the building. Each mode has its own period, and the response spectrum of the record gives the peak pseudo-acceleration at that period. Applied to the floor masses in the shape of the mode, that acceleration gives a set of modal floor forces, whose sum is the modal base shear. The forces of mode 2 point against its drawn shape because its participation factor is negative, and they partly cancel, so its base shear of 171 kN is far smaller than the 1079 kN of mode 1.
Figure 2:Response-spectrum analysis of the first two modes: each mode’s period (left) locates a pseudo-acceleration on the record’s spectrum (middle), which drives floor forces in the shape of the mode (right) whose sum is the modal base shear.
Formally, the modal equation from Chapter 8,
is a unit-mass oscillator of period and damping , driven by the ground motion scaled by . We already have a tool that reports the peak of such an oscillator over an entire record without integrating it for our particular building: the response spectrum of Chapter 6. Reading the deformation spectrum at the modal period gives the peak modal coordinate directly:
because is by definition the peak displacement of a unit oscillator under this record. The peak contribution of mode to the floor displacements is then that modal coordinate spread over the mode shape, . The sign of is kept here, since it is carried into the signed contribution before the modes are combined. The peak base shear carried by mode follows from the equivalent static modal force as
the effective modal mass times the spectral acceleration, a remarkably clean result. Each mode’s peak demand is one lookup on the spectrum. We compute them for our building under the Chapter-6 synthetic record, scaled to a peak ground acceleration of 0.4 g.
t, ag = sd.demo_record(pga=0.4 * 9.81) # synthetic strong motion, PGA = 0.4 g
dt = t[1] - t[0]
zeta = 0.05
g = 9.81
# Elastic response spectrum of THIS record, read at the building's modal periods.
Sd, Sv, Sa = sd.response_spectrum(ag, dt, Tn, zeta=zeta)
U_modal = Phi * (Gamma * Sd) # column r = mode r's peak floor-displacement vector
V_modal = Meff * Sa # modal base shears M*_r * Sa(T_r) (kN)
for r in range(n):
print(f"mode {r+1}: Sa = {Sa[r]/g:.3f} g peak roof contribution = "
f"{abs(U_modal[-1, r])*1000:5.1f} mm modal base shear = {V_modal[r]:6.0f} kN")mode 1: Sa = 0.449 g peak roof contribution = 52.1 mm modal base shear = 1079 kN
mode 2: Sa = 0.579 g peak roof contribution = 3.2 mm modal base shear = 171 kN
mode 3: Sa = 0.594 g peak roof contribution = 0.6 mm modal base shear = 52 kN
mode 4: Sa = 0.565 g peak roof contribution = 0.1 mm modal base shear = 20 kN
mode 5: Sa = 0.420 g peak roof contribution = 0.0 mm modal base shear = 9 kN
2.1Combining the modes: SRSS and CQC¶
There is one subtlety, and it is the whole art of RSA. The spectrum gives each mode’s peak, but the modes do not peak at the same instant, as Figure 3 shows for this building and record. The base shear of mode 1 peaks at 6.04 s, that of mode 2 at 5.10 s, and the building’s total at 5.42 s, at 1136 kN. Adding the peaks of all five modes gives 1332 kN, an upper bound that overestimates the response-history peak by 17 %, so the modes are instead combined statistically.
Figure 3:Base shear of the building under the record from mode 1, from mode 2 and from all five modes together, each reaching its peak at a different instant.
The workhorse rule is SRSS, the square root of the sum of squares (Rosenblueth, 1951), which treats the modal peaks as independent:
SRSS is excellent when the natural periods are well separated. When two periods are close (common in three-dimensional buildings with nearly equal lateral and torsional periods), their responses are correlated and SRSS can err. Correlation-based rules go back to Rosenblueth and Elorduy (1969); the one in wide use today is the complete quadratic combination (CQC) (Wilson, Der Kiureghian, and Bayo, 1981), which fixes this with cross-terms weighted by a correlation coefficient (Der Kiureghian, 1981):
which equals 1 on the diagonal () and decays toward 0 as the periods separate, so CQC collapses to SRSS for well-spaced modes and only differs when modes are close. The next cell implements both rules and compares them for our building.
def srss(contrib, axis=-1):
"""Square-root-of-sum-of-squares modal combination."""
return np.sqrt(np.sum(contrib**2, axis=axis))
def cqc_rho(wn, zeta):
"""CQC cross-correlation coefficients for equal modal damping zeta."""
beta = np.outer(1.0 / wn, wn) # beta_rs = w_s / w_r
num = 8 * zeta**2 * (1 + beta) * beta**1.5
den = (1 - beta**2)**2 + 4 * zeta**2 * beta * (1 + beta)**2
return num / den
rho = cqc_rho(wn, zeta)
u_srss = srss(U_modal, axis=1) # per-floor SRSS displacement
u_cqc = np.sqrt(np.einsum('ir,rs,is->i', U_modal, rho, U_modal))
V_srss = np.sqrt(np.sum(V_modal**2))
V_cqc = np.sqrt(V_modal @ rho @ V_modal)
off = rho - np.eye(n)
r1, r2 = np.unravel_index(np.argmax(off), off.shape)
print(f"largest correlation between two different modes: rho = {off.max():.3f} "
f"(modes {min(r1, r2) + 1} and {max(r1, r2) + 1})")
print(f"base shear: SRSS = {V_srss:.0f} kN CQC = {V_cqc:.0f} kN")largest correlation between two different modes: rho = 0.245 (modes 4 and 5)
base shear: SRSS = 1094 kN CQC = 1096 kN
The largest correlation, 0.245, couples modes 4 and 5, whose periods are close, but those two modes carry only about 2 % of the mass. CQC and SRSS therefore give nearly the same base shear here, 1096 kN against 1094 kN.
▶ Interactive: the modal peaks do not arrive together
The timeline plays the strongest shaking, from 4 to 7 s, at a quarter of real speed, and the step buttons move one sample (0.02 s) at a time; the peaks of all five modes and of the total fall inside this window. On the left the building sways with its displacements magnified 40 times. On the right the base shears of mode 1 (blue), mode 2 (orange) and all five modes together (gray) fill in, and an open circle on each history marks its largest value since 4 s, which stops moving once the history has reached its peak. Below, four bars compare the peak base shear since 4 s: the sum of the five modal peaks (split into mode 1, mode 2 and modes 3 to 5), their SRSS and CQC combinations, and the peak of the total from the response history, repeated as a dashed line across the bars.
Pause at 5.42 s, the instant the total peaks at -1136 kN: mode 1 is then at -1074 kN and mode 2 at only -50 kN. Mode 2 had its peak of 171 kN at 5.10 s, and mode 1 reaches its 1079 kN only at 6.04 s. From then on the circles stay put and the bars hold the chapter’s values: adding the modal peaks as if they arrived together gives 1332 kN, 17.3 % above the response-history peak of 1136 kN, while SRSS (1094 kN) and CQC (1096 kN) fall 3.7 % and 3.5 % below it.
2.2How good is it? RSA versus a full response history¶
RSA is an estimate of the peak, and with the record’s own spectrum the modal combination is its only approximation. To see how good it is, we compute the full response history (RHA) of all five modal SDOFs with the same exact solver that built the spectrum, recombine them as in Chapter 8, and compare peaks.
# Full response history (RHA): every modal SDOF with the spectrum's exact solver, then u = Phi q.
Q = np.zeros((t.size, n))
for r in range(n):
_, qr, _, _ = sd.sdof_response(1.0, 2*zeta*wn[r], wn[r]**2, -Gamma[r]*ag, dt)
Q[:, r] = qr
U_t = (Phi @ Q.T).T # floor-displacement histories (N, n)
u_rha = np.max(np.abs(U_t), axis=0) # peak displacement per floor
V_t = (K @ U_t.T).sum(axis=0) # base-shear history 1^T K u (kN)
V_rha = np.max(np.abs(V_t))
Vr_t = Q * (wn**2 * L) # modal base shears V_r(t) = wr^2 L_r q_r
for r in range(2):
i = np.argmax(np.abs(Vr_t[:, r]))
print(f"mode {r+1} base shear peaks at t = {t[i]:.2f} s: {abs(Vr_t[i, r]):.0f} kN")
i = np.argmax(np.abs(V_t))
print(f"total base shear peaks at t = {t[i]:.2f} s: {V_rha:.0f} kN")
print(f"sum of the five modal peaks = {np.sum(V_modal):.0f} kN ({np.sum(V_modal) / V_rha - 1:+.1%})")
print(f"base shear: RHA = {V_rha:.0f} kN SRSS = {V_srss:.0f} kN ({V_srss / V_rha - 1:+.1%}) "
f"CQC = {V_cqc:.0f} kN ({V_cqc / V_rha - 1:+.1%})")
print("floor displacement, SRSS against RHA: ", np.round(100 * (u_srss / u_rha - 1), 1), "%")
print("floor displacement, mode 1 against RHA: ", np.round(100 * (np.abs(U_modal[:, 0]) / u_rha - 1), 1), "%")mode 1 base shear peaks at t = 6.04 s: 1079 kN
mode 2 base shear peaks at t = 5.10 s: 171 kN
total base shear peaks at t = 5.42 s: 1136 kN
sum of the five modal peaks = 1332 kN (+17.3%)
base shear: RHA = 1136 kN SRSS = 1094 kN (-3.7%) CQC = 1096 kN (-3.5%)
floor displacement, SRSS against RHA: [-3.7 -3.5 -1.9 -0.1 2.2] %
floor displacement, mode 1 against RHA: [-5. -4.1 -2. -0.1 2. ] %
floors = np.arange(1, n + 1)
fig, ax = plt.subplots(figsize=(5.4, 4.2))
ax.plot(u_rha * 1000, floors, color="#9aa3ab", lw=6, alpha=0.6, label="RHA")
ax.plot(u_srss * 1000, floors, "o-", color=sd.PLT[0], lw=1.6, ms=7, label="RSA, SRSS")
ax.plot(u_cqc * 1000, floors, "s--", color=sd.PLT[1], lw=1.4, ms=6, label="RSA, CQC")
ax.plot(np.abs(U_modal[:, 0]) * 1000, floors, ":", color=sd.PLT[2], lw=1.8,
label="first mode only")
ax.set_yticks(floors); ax.set_ylabel("floor"); ax.set_xlabel("peak floor displacement (mm)")
ax.set_xlim(left=0); ax.legend(loc="lower right")
plt.show()

Figure 4:Peak floor displacements of the building from the response history (gray band), the SRSS and CQC response-spectrum estimates (markers), and the first mode alone (dotted).
Figure 4 is the justification for the entire method. The response-spectrum estimate stays within 4 % of the response history at every floor and in the base shear, and even the first mode alone stays within 5 %. With a record’s own spectrum, as here, RSA saves little work, because computing the spectrum takes one response history per period. Its value in design comes from the smooth code spectrum of the next section, which replaces the record altogether: one eigenvalue solve, one spectrum lookup per mode and a statistical combination then give the design demands.
3From response spectra to design spectra¶
The spectrum we just used was the jagged fingerprint of one record. As Chapter 6 warned, you cannot design to one earthquake’s accidents. Codes replace it with a smooth design spectrum anchored to the site hazard by two parameters: , the design spectral acceleration in the short-period (acceleration-controlled) plateau, and , the value at a period of one second (the velocity-controlled branch). The ASCE 7 shape, written here with the standard’s own symbols, turns the Newmark and Hall idea of Chapter 6 into a formula:
The flat plateau is the acceleration-controlled region; the branch is velocity-controlled; the tail past the long-period corner is displacement-controlled. These are exactly the three regions we read off a real spectrum in Chapter 6, and we code the shape once.
SDS, SD1, TL = 1.0, 0.6, 8.0 # design spectral accelerations (g), long-period corner (s)
T0, TS = 0.2 * SD1 / SDS, SD1 / SDS
def design_spectrum(T):
"""ASCE 7 design response spectrum Sa(T), in g."""
T = np.asarray(T, float); Ts = np.maximum(T, 1e-6)
return np.where(T < T0, SDS * (0.4 + 0.6 * T / T0),
np.where(T <= TS, SDS,
np.where(T <= TL, SD1 / Ts, SD1 * TL / Ts**2)))
print(f"T0 = {T0:.2f} s TS = {TS:.2f} s")
print("design Sa at the modal periods (g):", np.round(design_spectrum(Tn), 3))T0 = 0.12 s TS = 0.60 s
design Sa at the modal periods (g): [1. 1. 1. 0.964 0.874]
Tg = np.linspace(0.0, 3.0, 400)
fig, ax = plt.subplots(figsize=(7.4, 3.6))
ax.plot(Tg, design_spectrum(Tg), color=sd.PLT[1], lw=2.6, label="design spectrum")
for Tc, name in [(T0, r"$T_0$"), (TS, r"$T_S$")]:
ax.axvline(Tc, color="#c7ccd1", lw=1.0, ls="--")
ax.text(Tc, 1.06, name, ha="center", va="bottom", fontsize=12)
ax.plot(Tn, design_spectrum(Tn), "o", color=sd.PLT[0], ms=8, label="modal periods")
ax.set_xlabel(r"period $T$ (s)"); ax.set_ylabel(r"$S_a$ ($g$)")
ax.set_xlim(0, 3.0); ax.set_ylim(0, 1.2); ax.legend(loc="upper right")
plt.show()

Figure 5:The ASCE 7 design spectrum (orange) for g and g, with the corner periods and and the building’s five modal periods marked.
All five modal periods land on or near the peak of this spectrum. Mode 1, at 0.598 s, sits just inside the corner s at the end of the plateau, and modes 2 and 3 fall on the plateau. The two stiffest modes, with periods below s, sit on the short-period rising branch at 0.96 g and 0.87 g. Every mode is therefore driven near the peak spectral acceleration.
4The equivalent lateral force method¶
The simplest code procedure does not even need the modes. The equivalent lateral force (ELF) method (American Society of Civil Engineers, 2022) approximates the whole earthquake demand as a single set of static floor forces, built on the first mode alone, in three steps. Each step replaces one piece of the modal analysis with a code formula: the eigenvalue solve, the spectrum lookup and the mode shape.
Step 1, the period: rather than an eigenvalue solve, codes allow an empirical approximate period from the building height and a system-dependent pair . ASCE 7 tabulates the pair for each structural system; for a concrete moment frame it is and , with in meters. (Our eigen solve gave s; the formula should land nearby.)
Step 2, the base shear: the total horizontal force is , where is the seismic weight and the seismic response coefficient
is the design spectral acceleration divided by , the design spectrum cut down by the response modification factor (next section) and scaled up by the importance factor . The cap enforces the branch for taller buildings; the floor guarantees a minimum strength.
Step 3, the vertical distribution: the base shear is spread up the height in proportion to floor weight times height (raised to a period-dependent power that tilts the profile from triangular toward parabolic for tall, long-period buildings):
We carry all three steps out for our building, taking it as a special reinforced concrete moment frame (, , ) in a high-seismic region, with 3.5 m stories. Example 1 works out the base shear of this building by hand.
The next cell repeats Example 1 and also gives the forces on every floor, the story shears and the amplified story drifts.
h_story = 3.5
heights = np.cumsum(np.full(n, h_story)) # floor elevations above the base (m)
hn = heights[-1]
wx = masses * g # floor weights (kN)
W = wx.sum() # total seismic weight (kN)
R, Ie, Cd = 8.0, 1.0, 5.5 # special moment frame: R, importance, deflection amp.
Ct, x_exp = 0.0466, 0.9 # approximate-period coefficients (concrete MRF, SI)
Ta = Ct * hn**x_exp # approximate fundamental period (s)
Cs = SDS / (R / Ie) # base value
Cs = min(Cs, SD1 / (Ta * (R / Ie))) # upper cap (T <= TL)
Cs = max(Cs, 0.044 * SDS * Ie, 0.01) # lower floor
V_elf = Cs * W # design base shear (kN)
k_exp = 1.0 if Ta <= 0.5 else (2.0 if Ta >= 2.5 else 1.0 + (Ta - 0.5) / 2.0)
Cvx = wx * heights**k_exp / np.sum(wx * heights**k_exp)
Fx = Cvx * V_elf # lateral force at each floor (kN)
Vstory = np.cumsum(Fx[::-1])[::-1] # story shears (kN)
drift_story = Vstory / ks # elastic story drifts under the design forces (m)
drift_amp = Cd * drift_story / Ie # amplified (expected inelastic) story drifts (m)
f1 = masses * Phi[:, 0] # first-mode inertia-force pattern m_j phi_j1
print(f"approximate period Ta = {Ta:.3f} s (eigen gave T1 = {Tn[0]:.3f} s, "
f"{Ta / Tn[0] - 1:+.1%}); exponent k = {k_exp:.2f}")
print(f"seismic weight W = {W:.0f} kN")
print(f"response coefficient Cs = {Cs:.4f} -> base shear V = {V_elf:.0f} kN")
for i in range(n):
print(f" level {i+1}: Fx = {Fx[i]:5.1f} kN = {Cvx[i]:.3f} V (first mode: {f1[i] / f1.sum():.3f} V) "
f"story shear = {Vstory[i]:5.1f} kN amplified drift = {100 * drift_amp[i] / h_story:.2f} %")approximate period Ta = 0.613 s (eigen gave T1 = 0.598 s, +2.5%); exponent k = 1.06
seismic weight W = 2845 kN
response coefficient Cs = 0.1224 -> base shear V = 348 kN
level 1: Fx = 23.0 kN = 0.066 V (first mode: 0.074 V) story shear = 348.3 kN amplified drift = 0.61 %
level 2: Fx = 47.8 kN = 0.137 V (first mode: 0.150 V) story shear = 325.4 kN amplified drift = 0.64 %
level 3: Fx = 73.3 kN = 0.211 V (first mode: 0.224 V) story shear = 277.6 kN amplified drift = 0.62 %
level 4: Fx = 99.4 kN = 0.285 V (first mode: 0.285 V) story shear = 204.2 kN amplified drift = 0.53 %
level 5: Fx = 104.8 kN = 0.301 V (first mode: 0.267 V) story shear = 104.8 kN amplified drift = 0.33 %
The empirical period s lands within 3 % of the eigenvalue answer, partly through the choice of story stiffnesses: the formula is a fit to periods measured in real buildings, and it deliberately errs on the short side, which raises the design force. The lateral forces grow with height, and the roof, though lightest, attracts the largest force, because the code weights each floor by its height raised to . The first mode’s own inertia forces, , peak one level lower, at level 4, because the roof’s smaller mass outweighs its larger displacement, so the code pattern is a simple, slightly top-heavy stand-in for the first mode. We draw the force pattern and the story drifts it implies.
allow = 0.020 # ASCE 7 drift limit (fraction of story height)
fig, (axF, axD) = plt.subplots(1, 2, figsize=(9.0, 4.0))
# left: lateral force diagram on a building stick
axF.plot([0, 0], [0, hn], color="#9aa3ab", lw=2.5, zorder=1)
for i in range(n):
axF.annotate("", xy=(Fx[i], heights[i]), xytext=(0, heights[i]),
arrowprops=dict(arrowstyle="-|>", color=sd.PLT[1], lw=2.2))
axF.plot(0, heights[i], "s", color="#6b7280", ms=9)
axF.text(Fx[i] + 3, heights[i], f"{Fx[i]:.0f} kN", va="center", fontsize=11)
axF.set_xlim(-8, max(Fx) * 1.35); axF.set_ylim(0, hn + 2)
axF.set_xlabel("lateral force $F_x$ (kN)"); axF.set_ylabel("height (m)")
axF.set_title("equivalent lateral force", fontsize=11.5)
# right: drift-ratio profile vs allowable
axD.plot(drift_amp / h_story * 100, np.arange(1, n + 1), "o-",
color=sd.PLT[0], lw=1.8, ms=7, label=r"$C_d\times$ drift")
axD.axvline(allow * 100, color=sd.PLT[3], lw=1.8, ls="--", label="2% limit")
axD.set_yticks(np.arange(1, n + 1)); axD.set_ylabel("story")
axD.set_xlabel("story-drift ratio (%)"); axD.set_xlim(0, 2.3)
axD.set_title("drift check", fontsize=11.5); axD.legend(loc="lower right")
fig.tight_layout()
plt.show()

Figure 6:The equivalent lateral forces on the building, largest at the roof (left), and the story-drift ratios amplified by against the 2 % limit (right).
The amplified story drifts range from 0.33 % in the top story to 0.64 % in the second, comfortably under the 2 % limit for a building of ordinary occupancy, so the building passes the drift check. The second story drifts most because its story shear is nearly as large as the first story’s while its stiffness is lower. The top story drifts least, because it carries only the roof force.
5The R factor: designing for less than the elastic force¶
We have quietly done something remarkable: divided the demand by . Where does that come from, and why is it allowed? The answers lead straight back to the strength-for-ductility trade of Chapter 7.
If the building had to remain elastic through the design earthquake, it would have to carry the full spectral force, with no division by . Let us compute that elastic demand with a modal RSA on the design spectrum, first by hand for three modes in Example 2, and compare it to what we actually designed for.
The next cell repeats Example 2 and prints every number quoted in it.
# Elastic modal RSA on the design spectrum for the first three modes (ex-ch09-rsa-design).
Sa3 = design_spectrum(Tn[:3]) * g # design spectral accelerations (m/s^2)
V3 = Meff[:3] * Sa3 # modal base shears (kN)
print("periods (s):", np.round(Tn[:3], 3), " Sa (g):", np.round(Sa3 / g, 3))
print("effective masses (t):", np.round(Meff[:3], 1), " modal base shears (kN):", np.round(V3, 1))
print(f"SRSS = {np.sqrt(np.sum(V3**2)):.0f} kN absolute sum = {np.sum(V3):.0f} kN "
f"({np.sum(V3) / np.sqrt(np.sum(V3**2)) - 1:+.1%}) SRSS / R = {np.sqrt(np.sum(V3**2)) / R:.0f} kN")periods (s): [0.598 0.221 0.143] Sa (g): [1. 1. 1.]
effective masses (t): [245. 30.1 9. ] modal base shears (kN): [2403. 295.4 88.2]
SRSS = 2423 kN absolute sum = 2787 kN (+15.0%) SRSS / R = 303 kN
The next cell repeats the calculation with all five modes.
Sa_modal = design_spectrum(Tn) * g # design spectral accel at each mode (m/s^2)
V_modal_el = Meff * Sa_modal # elastic modal base shears (kN)
V_elastic = np.sqrt(np.sum(V_modal_el**2)) # SRSS elastic base shear
print(f"elastic base shear (R = 1) = {V_elastic:.0f} kN "
f"= {V_elastic/W:.2f} W")
print(f"design base shear V_elastic / R = {V_elastic/R:.0f} kN")
print(f"ELF design base shear Cs * W = {V_elf:.0f} kN")
print(f"design spectrum at T1: Sa = {design_spectrum(Tn[0]):.3f} g, divided by R: "
f"{design_spectrum(Tn[0]) / R:.3f} g")elastic base shear (R = 1) = 2423 kN = 0.85 W
design base shear V_elastic / R = 303 kN
ELF design base shear Cs * W = 348 kN
design spectrum at T1: Sa = 1.000 g, divided by R: 0.125 g
The elastic demand is enormous, about (nearly the building’s whole weight pushed sideways), and designing for it would be wildly uneconomic. Instead we design for roughly one-eighth of it, and the building survives the rest by yielding, exactly the strength-for-ductility trade of Chapter 7, now at building scale. The response modification factor bundles two separate effects into one number:
Ductility. A well-detailed frame can deform several times past yield without collapsing, so it needs only a fraction of the elastic strength, as the rules of Table 1 quantify for a single oscillator.
Overstrength. Real structures are stronger than their design forces (material factors, member sizing, redundancy), adding a further reserve.
The code folds the two into a single factor, their product . The design spectrum divided by is the force you proportion members to; the structure makes up the difference by yielding. And because it yields, its real displacements are larger than the reduced-force analysis predicts, which is why drifts were multiplied back up by the deflection amplification factor in the drift check. Figure 7 shows the whole bargain on one plot: at the building’s fundamental period the elastic demand of 1.0 g is cut by the factor to a design level of 0.125 g, and the gap between the two is covered by inelastic action.
Tg = np.linspace(0.05, 3.0, 300)
fig, ax = plt.subplots(figsize=(7.4, 3.8))
ax.plot(Tg, design_spectrum(Tg), color="#9aa3ab", lw=2.4, label=r"elastic demand $S_a$")
ax.plot(Tg, design_spectrum(Tg) / R, color=sd.PLT[1], lw=2.6,
label=rf"design force $S_a/R$ ($R={R:.0f}$)")
ax.axvline(Tn[0], color="#c7ccd1", lw=1.2, ls="--")
ax.text(Tn[0] + 0.04, 0.9, r"$T_1$", fontsize=12)
ax.annotate("", xy=(Tn[0], design_spectrum(Tn[0]) / R),
xytext=(Tn[0], design_spectrum(Tn[0])),
arrowprops=dict(arrowstyle="<->", color=sd.PLT[6], lw=1.6))
ax.text(Tn[0] + 0.06, design_spectrum(Tn[0]) * 0.45,
"covered by\nductility +\noverstrength", fontsize=11, color=sd.PLT[6])
ax.set_xlabel(r"period $T$ (s)"); ax.set_ylabel(r"$S_a$ ($g$)")
ax.set_xlim(0, 3.0); ax.set_ylim(0, 1.15); ax.legend(loc="upper right")
plt.show()

Figure 7:The elastic design spectrum (gray) and the force the structure is actually proportioned to, (orange), against period, with the gap at the fundamental period (dashed) annotated as the portion covered by ductility and overstrength.
▶ Interactive: dividing the design spectrum by
The timeline sweeps the response modification factor from 1, a structure designed to stay elastic, to 8, the special moment frame of this chapter; the step buttons move it by 0.5. On the left the gray curve is the elastic design spectrum and the orange one the design spectrum divided by , with the gap between them shaded as the part left to ductility and overstrength; the blue dot marks the design value at the fundamental period . On the right the mode-1 floor forces of (3) shrink from their elastic size (dashed) by the same factor. Below, the elastic base shear of the modal RSA divided by is set against the ELF base shear, and the note reports both.
At the orange curve lies on the gray one, and the design value at is the full 1.000 g. At it is 0.125 g, and the elastic base shear of 2423 kN becomes 303 kN, close to the 348 kN of the ELF method. The larger is, the larger the part of the elastic demand that the structure must absorb by yielding, which is why codes grant a large only to systems detailed for ductility.
6Putting it together¶
Three procedures, one building, and answers that fit together. The response history is the most complete of the three but needs a ground motion and an integrator. Modal RSA estimates its peaks from a spectrum and a statistical combination, with no response history. The ELF method boils the whole thing down to a static first-mode force pattern. Their answers fit together because they rest on the same modal physics, seen at different resolutions.
print(f"{'method':<34}{'base shear (kN)':>16}")
print("-" * 50)
print(f"{'RHA, response history (record)':<34}{V_rha:>16.0f}")
print(f"{'RSA, SRSS (record)':<34}{V_srss:>16.0f}")
print(f"{'elastic demand on design spectrum':<34}{V_elastic:>16.0f}")
print(f"{' ... reduced by R = 8':<34}{V_elastic/R:>16.0f}")
print(f"{'ELF, code static (design)':<34}{V_elf:>16.0f}")
print(f"\nfactor that scales the RSA design base shear up to the ELF value: {V_elf / (V_elastic / R):.2f}")method base shear (kN)
--------------------------------------------------
RHA, response history (record) 1136
RSA, SRSS (record) 1094
elastic demand on design spectrum 2423
... reduced by R = 8 303
ELF, code static (design) 348
factor that scales the RSA design base shear up to the ELF value: 1.15
The record-based RHA and RSA agree to within 4 %, the error of the modal combination. The elastic demand on the design spectrum is about twice as large, because the code spectrum represents the site’s design hazard rather than one record. Once divided by it lands close to the ELF base shear, 303 kN against 348 kN. Where the modal base shear falls below the ELF value, ASCE 7 requires the modal forces to be scaled up to it, here by a factor of 1.15. The two design routes are consistent, and codes choose between them by the building’s height and regularity, which decide when the simpler ELF method is permitted.
7Summary¶
Because each mode is an SDOF, its peak earthquake demand is one lookup on the response spectrum: (2), with modal base shear (3) (Figure 2).
The modal peaks occur at different instants (Figure 3), so they are combined statistically, SRSS for well-separated periods and CQC when periods are close (5). For our building the two agree, and both track a full response history to within 4 % (Figure 4); with a smooth design spectrum in place of the record, RSA becomes the design-office shortcut for RHA.
Codes replace the jagged record spectrum with a smooth design spectrum set by (6) (Figure 5).
The equivalent lateral force method builds a static first-mode force pattern: approximate period , base shear (7), distributed as (8) (Figure 6); drifts amplified by are checked against the code limit.
The response modification factor divides the elastic demand by the ductility-and-overstrength reserve (Figure 7), the strength-for-ductility trade of Chapter 7 written into the code. We design for a fraction of the elastic force and let the structure yield for the rest.
This is where the whole book arrives: we began with one mass on a spring and the single equation . We built one numerical engine to solve it for any load, watched it ring, resonate, and yield, distilled its peaks into a response spectrum, and discovered that a building of any size is just a stack of those same oscillators. In this chapter those oscillators became the lateral forces an engineer writes on a drawing. The single degree of freedom was never a simplification to apologize for: it was the whole subject, and now the whole practice, in its smallest honest form.