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.

An earthquake hands the same SDOF oscillator the most violent right-hand side it will ever see: a jagged, broadband ground acceleration that lasts only tens of seconds. Yet the engine from Chapter 3 does not flinch, because a ground motion is just another p(t)p(t). The new idea in this chapter is not how to solve one oscillator, but what to do with the answer. By solving many oscillators, one for each natural period, and keeping only the peak from each, we distill a whole record into a single curve: the response spectrum. It is the one plot a designer actually uses, and we are going to build it from the ground up by looping the solver.

1Recap: when the ground moves

The base-excitation equation of Chapter 1 is the starting point. The ground does not push the roof; it shakes the base by an acceleration u¨g(t)\ddot u_g(t). Writing uu for the displacement of the mass relative to the ground (the quantity that actually strains the columns), the spring and dashpot feel only that relative motion, while the inertia responds to the total acceleration. Balancing forces gives

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

Figure 1 reads this equation as a statement about two structures. On the left the base itself moves by ugu_g, the mass moves by the total ut=ug+uu^t = u_g + u, and the columns bend by the relative uu. On the right the base is fixed and the mass is pushed instead by the force −m u¨g-m\,\ddot u_g, which opposes the ground acceleration. Both structures obey (1), so they share the same relative motion uu, and the second picture is the one our engine already knows how to solve.

A structure on a moving base (left) and the equivalent fixed-base structure
loaded by the effective force -m\,\ddot u_g (right).

Figure 1:A structure on a moving base (left) and the equivalent fixed-base structure loaded by the effective force −m u¨g-m\,\ddot u_g (right).

The right-hand side is therefore an effective force peff(t)=−m u¨g(t)p_\text{eff}(t) = -m\,\ddot u_g(t). The minus sign and the factor mm carry the physics: a heavier structure attracts a larger earthquake force from the same shaking. Dividing through by mm and using ωn2=k/m\omega_n^2 = k/m and c/m=2ζωnc/m = 2\zeta\omega_n, the response depends on the structure through only two numbers, its natural period Tn=2π/ωnT_n = 2\pi/\omega_n and its damping ratio ζ\zeta:

u¨+2ζωn u˙+ωn2 u=− u¨g(t).\ddot u + 2\zeta\omega_n\,\dot u + \omega_n^2\,u = -\,\ddot u_g(t).

That is the whole reason a response spectrum is possible: feed the same ground motion to oscillators that differ only in (Tn,ζ)(T_n,\zeta), and the peak response is a function of those two numbers alone. Our solver already takes base excitation directly: we pass the effective force p = -m * ag.

2A ground motion

We need a record. sd.demo_record() returns a reproducible synthetic strong-motion accelerogram, filtered noise (Kanai, 1957; Tajimi, 1960) shaped by a rise-and-decay intensity envelope and scaled to a target peak ground acceleration (PGA). It stands in for a real event so the chapter runs anywhere; a real record loads identically with sd.load_record(path, dt) and every line below is unchanged. The record is in m/s2\text{m/s}^2, the unit the equation of motion needs, while peak accelerations are also quoted in units of g=9.81 m/s2g = 9.81\ \text{m/s}^2, as is customary in earthquake engineering.

record length   30.0 s   (1500 samples at dt = 0.020 s)
PGA            = 2.94 m/s^2  =  0.30 g
<Figure size 988x390 with 2 Axes>
<Figure size 988x390 with 2 Axes>

Figure 2:The ground-acceleration record used throughout this chapter, in m/s2^2 (left axis) and in units of gg (right axis), with the peak ground acceleration dashed.

The shaking builds over the first few seconds, peaks near 5 s, and then dies away, which is the classic non-stationary signature of a real earthquake. By about 20 s the ground is nearly still, so the strong motion lasts only some fifteen seconds. This single trace is the input for everything below.

3How different structures feel the same shaking

Before collapsing the record to a spectrum, let us build intuition by running a few individual structures through it. We take four SDOFs with natural periods Tn=0.3, 0.6, 1.0, 2.0 sT_n = 0.3,\,0.6,\,1.0,\,2.0\ \text{s}, short and stiff through tall and flexible, all at ζ=5%\zeta = 5\%, and plot their relative-displacement histories. Because the spectrum only ever needs the peak per structure, we work with a unit mass: the period and damping fully determine the deformation, so m = 1, k=m ωn2k = m\,\omega_n^2, c=2ζmωnc = 2\zeta m \omega_n.

Tn = 0.3 s   peak deformation =    7.3 mm
Tn = 0.6 s   peak deformation =   30.3 mm
Tn = 1.0 s   peak deformation =   61.5 mm
Tn = 2.0 s   peak deformation =  121.0 mm
<Figure size 988x832 with 4 Axes>
<Figure size 988x832 with 4 Axes>

Figure 3:Relative-displacement response of four SDOF structures (all at 5% damping) to the same ground motion, with the peak of each trace marked (dot).

Two trends jump out of Figure 3 once the four structures sit side by side. First, the longer the period, the larger the deformation here: the flexible structures soak up more drift. Second, the longer-period traces oscillate visibly more slowly: each structure rings at its own TnT_n. The orange dot on each trace is the one number the response spectrum keeps. Collect that dot for every conceivable period and we have the spectrum.

4Building the elastic response spectrum

Figure 4 condenses the whole construction into one picture. Three oscillators of increasing period ride out the same record, each history is reduced to its largest swing, and each swing becomes one point on a plot of peak deformation against period. Repeating that for every period traces the continuous curve on the right, which is the deformation response spectrum defined next.

Three oscillators under the chapter’s record (left), their relative-displacement
histories with the peaks marked (middle), and the deformation spectrum on which
those peaks lie (right).

Figure 4:Three oscillators under the chapter’s record (left), their relative-displacement histories with the peaks marked (middle), and the deformation spectrum on which those peaks lie (right).

The deformation response spectrum Sd(Tn,ζ)S_d(T_n,\zeta) is the peak relative displacement, Sd=max⁡t∣u(t)∣S_d = \max_t |u(t)|, plotted against TnT_n. It is all we need: SdS_d is the peak drift, and the peak elastic spring force, what stresses the columns, is kk times that drift. But it is convenient to repackage SdS_d into two companions with the units of velocity and acceleration, and the right powers of ωn\omega_n to use are not arbitrary: they fall out of the equivalent static force.

At the instant of peak drift, the elastic force the structure carries is the spring force fS=k uf_S = k\,u, whose peak is k Sdk\,S_d. Using k=m ωn2k = m\,\omega_n^2 (from ωn2=k/m\omega_n^2 = k/m, Chapter 2) this peak force is

fS,max⁡=k Sd=m ωn2 Sd.f_{S,\max} = k\,S_d = m\,\omega_n^2\,S_d .

A static force of this size, applied to the mass, would produce the same peak drift: it is the equivalent static earthquake force. Writing it as fS,max⁡=m Saf_{S,\max} = m\,S_a, exactly as for a body under acceleration SaS_a, forces the definition Sa=ωn2SdS_a = \omega_n^2 S_d. The intermediate quantity, with units of velocity, is Sv=ωnSdS_v = \omega_n S_d:

Sv=ωn Sd,Sa=ωn2 Sd.S_v = \omega_n\,S_d, \qquad S_a = \omega_n^2\,S_d .

SvS_v is the pseudo-velocity and SaS_a the pseudo-acceleration. The prefix pseudo is a reminder that these are defined from SdS_d by the relations above, not measured as the peaks of the actual relative velocity u˙\dot u or total acceleration u¨+u¨g\ddot u + \ddot u_g. For a lightly damped structure SaS_a stays within about half a percent of the peak total acceleration. SvS_v, by contrast, can miss the peak relative velocity by 20 % or more at very short and very long periods, as a check after the spectra below shows, yet both are the quantities a designer wants. Each successive multiplication by ωn\omega_n mirrors the harmonic response factors of Chapter 4, where differentiating a sinusoid brought down a factor of ω\omega. Of the three, SaS_a matters most, because the peak base shear, the total horizontal force the foundation must carry, is just the peak elastic force we started from:

Vbase=k Sd=m ωn2Sd=m Sa.V_\text{base} = k\,S_d = m\,\omega_n^2 S_d = m\,S_a .

Multiply the structure’s mass by the value the spectrum gives at its period and you have the design force. The pseudo-velocity, in turn, measures the peak energy stored in the structure: its peak strain energy is 12kSd2=12mSv2\tfrac12 k S_d^2 = \tfrac12 m S_v^2, the form of a kinetic energy at “velocity” SvS_v, which is why all three spectra carry the same information, merely viewed through (4). Example 1 turns one peak from Figure 3 into a design force.

The next cell repeats Example 1 from the stored history of the 1.0 s oscillator.

Sd = 61.47 mm   Sv = 0.386 m/s   Sa = 2.427 m/s^2 = 0.247 g
V_base = m Sa = 1213 kN   W = 4905 kN   V/W = 0.247

Building all three spectra is one loop over periods with one call to the solver each. It is structurally the same loop that swept the pulse-duration ratio td/Tnt_d/T_n to build the shock spectrum in Chapter 5, except that here the load (the whole ground motion) is fixed and the structure’s period TnT_n sweeps. That is exactly what sd.response_spectrum does: for each period it builds a unit-mass SDOF, runs the record through the Chapter-3 solver sd.sdof_response (the matrix-exponential step inside it), records the peak deformation Sd=max⁡t∣u∣S_d = \max_t|u|, and finally returns (Sd,Sv,Sa)(S_d, S_v, S_a) via (4).

Tn = 0.3 s :  hand-run peak    7.3 mm   |   spectrum    7.4 mm
Tn = 0.6 s :  hand-run peak   30.3 mm   |   spectrum   30.2 mm
Tn = 1.0 s :  hand-run peak   61.5 mm   |   spectrum   61.5 mm
Tn = 2.0 s :  hand-run peak  121.0 mm   |   spectrum  121.0 mm

The hand-run peaks land on the spectrum, as they must, because the spectrum is made of those peaks (the 0.1 mm differences come from interpolating between grid periods), and the next cell plots all three spectra.

<Figure size 1222x403 with 3 Axes>
<Figure size 1222x403 with 3 Axes>

Figure 5:The three elastic response spectra of the record at 5% damping: deformation SdS_d (left), pseudo-velocity SvS_v (center), and pseudo-acceleration SaS_a (right, in gg).

The pseudo quantities can be checked against the true peaks directly, since the solver also returns the relative velocity and acceleration of each run.

Tn = 0.1 s:  Sv = 0.052 vs max|v| = 0.041 m/s  (-21 %)   Sa = 0.332 vs max|a_total| = 0.334 g  (+0.4 %)
Tn = 1.0 s:  Sv = 0.386 vs max|v| = 0.355 m/s  (-8 %)   Sa = 0.247 vs max|a_total| = 0.249 g  (+0.5 %)
Tn = 3.0 s:  Sv = 0.255 vs max|v| = 0.319 m/s  (+25 %)   Sa = 0.054 vs max|a_total| = 0.055 g  (+0.2 %)

Read the three panels together, and the two limits explain themselves. In the rigid limit Tn→0T_n \to 0 the structure is infinitely stiff, so the mass cannot move relative to the base and simply rides with the ground. The relative deformation therefore vanishes, Sd→0S_d \to 0, while the mass’s total acceleration equals the ground’s, so its peak is the peak ground acceleration (PGA), and because SaS_a approaches that true total acceleration in this limit, Sa→S_a \to PGA. A rigid block feels the full ground shaking. That limit sits to the left of the grid plotted here, which starts at Tn=0.05 sT_n = 0.05\ \text{s}. Within the figure the short-period end is already climbing into the resonant hump, where the structure’s period matches the dominant periods in the shaking and the response is amplified well above the PGA, just as a near-resonant harmonic drive was in Chapter 4. At the opposite, flexible limit of long periods the structure is so soft that the mass, by its inertia, stays nearly still in space while the ground shakes beneath it. The relative deformation then approaches the full sweep of the ground itself, the peak ground displacement (the largest excursion of the ground, obtained by integrating u¨g\ddot u_g twice in time). So SaS_a falls away while the deformation SdS_d keeps growing toward that peak ground displacement.

5The effect of damping

Damping is the second knob of the spectrum, after the period. More damping bleeds off more energy each cycle, so every peak, and hence the whole spectrum, comes down. Rebuilding the spectra for ζ=2%, 5%, 10%\zeta = 2\%,\ 5\%,\ 10\% shows how strongly, and where, damping bites.

zeta = 0.02: largest Sa = 0.96 g at Tn = 0.19 s,  Sa at Tn = 0.05 s = 0.48 g
zeta = 0.05: largest Sa = 0.68 g at Tn = 0.19 s,  Sa at Tn = 0.05 s = 0.43 g
zeta = 0.10: largest Sa = 0.50 g at Tn = 0.19 s,  Sa at Tn = 0.05 s = 0.39 g
<Figure size 1170x429 with 2 Axes>
zeta = 0.02: largest Sa = 0.96 g at Tn = 0.19 s,  Sa at Tn = 0.05 s = 0.48 g
zeta = 0.05: largest Sa = 0.68 g at Tn = 0.19 s,  Sa at Tn = 0.05 s = 0.43 g
zeta = 0.10: largest Sa = 0.50 g at Tn = 0.19 s,  Sa at Tn = 0.05 s = 0.39 g
<Figure size 1170x429 with 2 Axes>

Figure 6:Pseudo-acceleration (left) and deformation (right) spectra at three damping ratios.

The lesson is general: damping is most valuable near resonance, where it clips the tallest spikes. Raising ζ\zeta from 2 % to 10 % cuts the tallest SaS_a, at 0.19 s, from 0.96 g to 0.50 g, nearly in half. At the stiff end of the grid (0.05 s) the same change lowers SaS_a only from 0.48 g to 0.39 g. In the rigid limit, where the structure rides with the ground, damping has no effect at all, so it helps most for structures whose periods fall on the spectral peaks.

6Toward a smooth design spectrum

The spectrum in Figure 5 is jagged because it is the fingerprint of one record. A different earthquake, even at the same site, would put the spikes in different places. You cannot design a building to the accidents of a single accelerogram. Practice instead smooths and idealizes the spectrum into a few straight-line regions, the idea introduced by Newmark and Hall (1982). The three regions are the three behaviors we just read off Figure 5, and their slopes follow from the powers of ωn\omega_n in (4) together with ωn=2π/Tn\omega_n = 2\pi/T_n, which turns those powers of ωn\omega_n into powers of 1/Tn1/T_n:

A design spectrum replaces the jagged curve with a smooth envelope through these three regions. Below we sketch the idea: take the actual SaS_a spectrum, anchor a flat plateau at its short-period level, and let it decay as 1/Tn1/T_n and then 1/Tn21/T_n^2 past two corner periods TbT_b and TcT_c. The numbers here are illustrative (real codes calibrate the plateau and corners to the site hazard). The shape is the three-branch shape that building codes use, apart from the short ramp from the PGA up to the plateau that codes add at the shortest periods.

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

Figure 7:A conceptual smooth design spectrum (orange) over the jagged single-record spectrum (gray) on log-log axes, with its corner periods TbT_b and TcT_c.

The smooth curve is what a designer reads: enter at the structure’s period, read SaS_a, multiply by the mass to get the design base shear via (5). The single-record spectrum was a stepping stone: the method (loop the engine over periods, keep the peaks) is what carries over, and the smoothing turns one record’s accidents into a robust design demand. Codes then add one more step, reducing that elastic demand for structures allowed to yield, which Chapter 7 and Chapter 9 take up.

7The same shaking, the easy way: OpenSeesPy

Everything above drove the structure through the effective force p = -m * ag, the Chapter 1 trick of turning base shaking into an equivalent applied load. That is exactly right, and it is all our NumPy engine needs. A full finite-element program does the same earthquake analysis in a few lines, and it is worth seeing now because the very same pattern scales up to a whole building in Chapter 8.

OpenSeesPy has a load pattern made for base motion: UniformExcitation. You hand it the ground-acceleration record as a time series and say which direction shakes; OpenSees then applies the inertial −m u¨g-m\,\ddot u_g to every mass for you and reports the relative response directly: there is no -m*ag to assemble by hand. The model itself is the one-mass-on-a-spring from Chapter 2; only the loading is new.

OpenSees peak drift = 61.4 mm

That is the whole earthquake analysis: build the oscillator, attach a UniformExcitation, march it with Newmark. To check it, lay it over our NumPy engine driven by the same record. We solve the NumPy side with the same Newmark rule (method="newmark") so the only thing that differs between the two is how the earthquake got in, an assembled -m*ag versus a UniformExcitation pattern.

<Figure size 988x390 with 1 Axes>
max difference between the two = 2.46e-11 % of the peak
<Figure size 988x390 with 1 Axes>
max difference between the two = 2.46e-11 % of the peak

Figure 8:The relative drift of a 1 s SDOF under the chapter’s ground motion, computed two ways: our NumPy engine fed the effective force −m u¨g-m\,\ddot u_g (solid), and OpenSeesPy handed the raw record through a UniformExcitation pattern (dashed).

The two traces lie exactly on top of one another, differing by about 10-11 % of the peak: the effective-force route and the UniformExcitation pattern are solving the identical equation. We have packaged these few lines as osdof.opensees_sdof_ground(m, c, k, ag, dt), documented in Appendix A, so that the whole analysis is a single call. The pattern is more than a tidy convenience, because UniformExcitation does not care how many degrees of freedom the model carries: attach it to a three-story frame or a forty-story tower and it shakes every mass by the same ground record, with no extra bookkeeping. That is exactly how Chapter 8 drives a whole building: the earthquake input you just wrote is already the MDOF earthquake input.

8Summary

Every spectrum in this chapter assumed the structure stays elastic, that it returns to plumb once the shaking stops. Strong earthquakes rarely grant that luxury: structures yield, and many survive precisely because they do, trading strength for ductility. Chapter 7 lets the spring break that linear promise and watches what happens.