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.

So far the loads have been tidy: a free-vibration nudge in Chapter 2, a single sine in Chapter 4. Real loads are rarely so polite: a gust of wind, a blast, a footstep on a floor, or a force measured on a shake table arrives as an arbitrary, wiggly time history with no formula attached.

We already own the tool that handles them. The state-space solver sd.sdof_response from Chapter 3 does not care what p(t)p(t) looks like; hand it any array and it returns the response. This chapter is about the idea behind why that works, and about the classical machinery that expresses it, the impulse-response function and Duhamel’s integral. In one sentence: any load is a train of impulses, and the response is the sum of their ringings. Rather than derive that with algebra, we build it with np.convolve and watch it land on top of the engine’s answer. Along the way we meet the standard textbook pulses (step, ramp, rectangular, half-sine), learn to read a shock spectrum, and finish by pushing a synthesized measured force through the structure.

1The unit impulse and the impulse-response function

Start with the most elementary load imaginable: a single, infinitely sharp kick. Idealize it as a force that acts for a vanishing instant but delivers a finite impulse I=∫p dtI = \int p\,\mathrm dt. A unit impulse has I=1I = 1 (units of kN⋅s\text{kN}\cdot\text{s}).

Figure 1 shows the whole story of this section in one picture. The kick is a pulse of height 1/ε1/\varepsilon and width ε\varepsilon, so its area stays at one as it shrinks to an instant. It leaves the mass where it was but sets it moving with velocity 1/m1/m, and from then on the oscillator rings freely: the response starts with slope 1/m1/m and decays inside the familiar envelope. That ring, the response to a unit kick, is the impulse-response function h(t)h(t) derived below.

A unit impulse as the limit of a pulse of area one (left), the state it leaves
behind (middle), and the free vibration that follows, the impulse response
h(t) (right).

Figure 1:A unit impulse as the limit of a pulse of area one (left), the state it leaves behind (middle), and the free vibration that follows, the impulse response h(t)h(t) (right).

What does a kick do to a mass at rest? Integrate the equation of motion mu¨+cu˙+ku=pm\ddot u + c\dot u + k u = p over the vanishing instant the impulse acts. The spring and damping terms are finite, so their integrals vanish with the duration; only the impulsive force survives, and ∫mu¨ dt=m Δu˙\int m\ddot u\,\mathrm dt = m\,\Delta\dot u must balance ∫p dt=I\int p\,\mathrm dt = I. The kick therefore changes the momentum but not yet the position: just after a unit impulse the velocity jumps to u˙=I/m=1/m\dot u = I/m = 1/m while uu is still zero. From that instant no force acts, so the system simply vibrates freely, and we already solved that problem.

The damped free-vibration response of an underdamped SDOF released from displacement u0u_0 and velocity u˙0\dot u_0 was derived back in Chapter 2:

u(t)=e−ζωnt[ u0cos⁡ωdt+u˙0+ζωnu0ωd sin⁡ωdt ],ωd=ωn1−ζ2.u(t) = e^{-\zeta\omega_n t} \left[\,u_0\cos\omega_d t + \frac{\dot u_0 + \zeta\omega_n u_0}{\omega_d}\,\sin\omega_d t\,\right], \qquad \omega_d = \omega_n\sqrt{1-\zeta^2}.

The impulse-response function h(t)h(t) is nothing but this free vibration, with the initial conditions the kick imposes: u0=0u_0 = 0 and u˙0=1/m\dot u_0 = 1/m. Substituting them, the cosine term drops out (its coefficient u0u_0 is zero), and the sine coefficient collapses to (u˙0+0)/ωd=1/(mωd)(\dot u_0 + 0)/\omega_d = 1/(m\omega_d), leaving

h(t)=1m ωd e−ζωntsin⁡(ωdt),t≥0.h(t) = \frac{1}{m\,\omega_d}\,e^{-\zeta\omega_n t}\sin(\omega_d t), \qquad t \ge 0 .

So h(t)h(t) is not a new formula at all: it is the damped free decay of Chapter 2, the signature ring of the oscillator, scaled by 1/(mωd)1/(m\omega_d) so that a unit kick produces it. (For the special undamped case ζ=0\zeta = 0 this reduces to h(t)=sin⁡(ωnt)/(mωn)h(t) = \sin(\omega_n t)/(m\omega_n).) In the book’s units h(t)h(t) is in meters per kN⋅s\text{kN}\cdot\text{s}, so that multiplying it by an impulse in kN⋅s\text{kN}\cdot\text{s} gives a displacement in meters.

Let us get h(t)h(t) two ways and check they agree: from the formula above, and numerically, by handing the engine a tall, narrow pulse of unit area, a discrete stand-in for the kick.

Tn = 1.257 s,  wn = 5.000 rad/s,  wd = 4.994 rad/s
<Figure size 962x416 with 1 Axes>
max relative difference = 1.35 %
<Figure size 962x416 with 1 Axes>
max relative difference = 1.35 %

Figure 2:The impulse-response function h(t)h(t) of the frame: the analytic decaying sinusoid (line) and the numerical response to a unit-area pulse (markers).

The two overlap, and the residual of 1.35 % is honest bookkeeping, not an error in the physics: the engine holds pp constant across each step (a zero-order hold), so a one-step pulse is almost but not exactly a mathematical impulse. We can make the agreement machine-exact by skipping the pulse entirely and injecting the impulse the way it physically acts, as the velocity jump u˙=I/m\dot u = I/m:

impulse-as-velocity vs analytic:  max relative difference = 2.6e-15

That is exact to roundoff, and both views are useful: kick = unit-area pulse is the picture we build the convolution from next, and kick = velocity jump is why h(t)h(t) has the free-vibration shape.

2Duhamel’s integral: any load is a train of impulses

Now take the leap from one kick to any load. Chop an arbitrary load p(t)p(t) into a sequence of thin vertical strips. The strip at time τ\tau, of width dτ\mathrm d\tau, delivers a tiny impulse p(τ) dτp(\tau)\,\mathrm d\tau. As Figure 3 shows, that little impulse launches its own decaying ring, a copy of hh, scaled by the strip’s area and shifted to start at τ\tau:

du(t)=p(τ) dτ⏟impulse  h(t−τ)⏟its ring.\mathrm du(t) = \underbrace{p(\tau)\,\mathrm d\tau}_{\text{impulse}}\; \underbrace{h(t-\tau)}_{\text{its ring}}.

Because the system is linear, the total response is just the sum of all those rings. Adding them up over every strip from 0 to tt turns the sum into an integral, Duhamel’s integral:

u(t)=∫0tp(τ) h(t−τ) dτ.u(t) = \int_0^t p(\tau)\,h(t-\tau)\,\mathrm d\tau .
Duhamel’s idea: a load p(\tau) read as a train of impulses (top), one strip of
which, p(\tau)\,\mathrm d\tau, launches the decaying response
[\,p(\tau)\,\mathrm d\tau\,]\,h(t-\tau) (bottom).

Figure 3:Duhamel’s idea: a load p(τ)p(\tau) read as a train of impulses (top), one strip of which, p(τ) dτp(\tau)\,\mathrm d\tau, launches the decaying response [ p(τ) dτ ] h(t−τ)[\,p(\tau)\,\mathrm d\tau\,]\,h(t-\tau) (bottom).

That integral is exactly a convolution of the load with the structure’s ring, written u=p∗hu = p * h, and a convolution is one NumPy call. To see the discrete form, sample everything on the uniform grid τ=j Δt\tau = j\,\Delta t, t=i Δtt = i\,\Delta t, and replace the strip width dτ\mathrm d\tau by Δt\Delta t. Then (4) becomes the sum

ui=∑jpj hi−j Δt,u_i = \sum_{j} p_j\,h_{i-j}\,\Delta t,

with hi−j=0h_{i-j}=0 whenever i<ji<j because a ring cannot start before its impulse. That sum ∑jpj hi−j\sum_j p_j\,h_{i-j} is precisely what np.convolve(p, h) computes, so the discrete Duhamel response is np.convolve(p, h) * dt, truncated back to the original length:

<Figure size 962x598 with 2 Axes>
Duhamel vs engine:  max relative difference = 0.84 %
<Figure size 962x598 with 2 Axes>
Duhamel vs engine:  max relative difference = 0.84 %

Figure 4:Duhamel’s integral computed as a single np.convolve (markers) and the state-space engine (line) for an arbitrary load.

The two curves are indistinguishable at plotting scale. The largest gap is 0.84 % of the peak, a discretization difference of the same kind as before (the sum samples hh once per step, while the engine integrates each step exactly), not a difference in the physics. This is worth pausing on: we never solved a differential equation here. We convolved the load with the structure’s ring and got the full dynamic response. Duhamel’s integral and the time-stepping engine are the same statement of linear superposition, written two ways, and the engine is what we actually reach for, because it also handles initial conditions and (in Chapter 7) nonlinearity, where convolution breaks down.

3Standard pulses from rest

With the general picture in hand, look at the loads that earn their own pages in every textbook because they model real events. A step is a load switched on and left on, such as a suddenly applied weight, and a ramp builds the same load up linearly. A rectangular pulse switches on and then off, like an idealized blast, and a half-sine pulse does the same more smoothly, like an impact. What matters for each is the ratio of the pulse duration tdt_d (or the rise time of the ramp) to the structure’s natural period TnT_n.

We build the four loads as arrays and push each through the engine. To isolate the dynamics, normalize the response by the static deflection ust=p0/ku_\text{st} = p_0/k, what the structure would settle to if p0p_0 were applied slowly. The ratio u/ustu/u_\text{st} is called the dynamic amplification of the load.

<Figure size 1092x702 with 4 Axes>
<Figure size 1092x702 with 4 Axes>

Figure 5:Response of an undamped SDOF (Tn=1T_n = 1 s) to four standard pulses with td=0.6 Tnt_d = 0.6\,T_n, normalized by the static deflection ust=p0/ku_\text{st}=p_0/k.

Two famous facts fall straight out of Figure 5. The suddenly applied step overshoots to twice the static deflection before settling. That is the origin of the rule that a load applied suddenly, released at contact rather than lowered gently, stresses a structure twice as much as the same load applied slowly; dropping it from a height adds kinetic energy and does worse still. The ramp overshoots less, the more slowly it builds, and a structure loaded gently enough shows no dynamic amplification at all. The step and the ramp keep ringing about ustu_\text{st}, while the two finite pulses inject energy and then leave the system ringing freely about zero.

4The shock (response) spectrum

The peak response of a pulse depends on one number: td/Tnt_d/T_n. A blast that is brief compared with the structure’s period feels different from one that lasts several periods. Sweep td/Tnt_d/T_n and record the peak amplification for each, and you get a shock spectrum (also called a response spectrum for pulses), a single design curve that tells you the worst case for any pulse duration.

Before looping the engine, Example 1 computes one point of the spectrum by hand, and shows why the free vibration after the pulse matters as much as the forced phase.

The next cell runs this pulse through the engine. After it, we build the full spectrum by looping the engine over the ratio, running each case long enough to capture both the forced phase and the free vibration that follows.

peak u/u_st = 1.414 at t = 0.374 s on the 2 ms grid   (hand: 1.414 at 0.375 s)
half-sine peak amplification  : 1.77 at td/Tn = 0.80
rectangular reaches its max   : 2.00 (for td/Tn >= 0.5)
<Figure size 962x468 with 1 Axes>
<Figure size 962x468 with 1 Axes>

Figure 6:Shock spectra for an undamped SDOF: peak dynamic amplification ∣u∣max⁡/ust|u|_{\max}/u_\text{st} versus pulse-duration ratio td/Tnt_d/T_n, for a rectangular pulse and a half-sine pulse.

Read Figure 6 as a design chart for pulse loads. On the left, where the pulse is brief (td≪Tnt_d \ll T_n), the structure barely moves during the pulse: there is no time to build a response, and only the impulse (the area under the pulse) matters. On the right, where the pulse outlasts a half-period, the rectangular case saturates at exactly 2: a long-enough on/off pulse is, as far as the rising response is concerned, a sudden step, so it doubles the static deflection just like Figure 5. The half-sine, being smoother, never quite reaches 2 and peaks near td/Tn≈0.8t_d/T_n \approx 0.8 at an amplification of about 1.77. This is the same logic that, in Chapter 6, produces the earthquake response spectrum: there the “pulse” is a whole ground motion and we sweep TnT_n instead.

5Response to a synthesized “measured” force

Finally, the case the chapter title promises: a force we did not design but recorded. To stand in for a measurement we synthesize a wind-like force (slow gusts, a burst of turbulence, an intensity envelope) sampled at a fixed Δt\Delta t, exactly as a load cell would deliver it. Then we do the only thing the engine ever asks: hand it the array.

Tn = 0.993 s
peak force = 24.1 kN,  peak u = 252.8 mm
dynamic amplification over quasi-static = 1.26
quasi-static deflection at t = 0: 121 mm  (peak u is 2.09 times it);  largest: 201 mm at t = 11.0 s
step overshoot factor at zeta = 0.03: 1 + exp(-zeta pi / sqrt(1 - zeta^2)) = 1.91
<Figure size 988x624 with 2 Axes>
<Figure size 988x624 with 2 Axes>

Figure 7:A synthesized “measured” wind force (top) and the response to it (bottom): the dynamic response from the engine (line) against the quasi-static deflection p(t)/kp(t)/k (dashed).

The dynamic curve is not just a scaled copy of the load. Released from rest under the steady mean wind, the structure first overshoots, and its largest swing, the 252.8 mm printed above, is this start-up transient: the suddenly applied load of the step pulse in another guise. A pure step doubles the static deflection of an undamped structure, and with ζ=0.03\zeta = 0.03 the factor drops to 1+e−ζπ/1−ζ2=1.911 + e^{-\zeta\pi/\sqrt{1-\zeta^2}} = 1.91. The peak reaches 2.09 times the quasi-static deflection at t=0t = 0, 121 mm, slightly more than 1.91 because the wind is still rising as the structure swings. The printed amplification of 1.26 is a different ratio: the dynamic peak over the largest quasi-static deflection, 201 mm, which occurs later, at t=11.0t = 11.0 s.

After the start-up the structure settles into tracking the slow load, but with a personality of its own. Where the force jiggles faster than the structure can follow, the response smooths it out, and where the turbulence carries energy near the natural frequency, the structure rings at its own period about the slowly drifting mean. That difference between the dashed quasi-static line and the solid dynamic one is the whole reason dynamic analysis exists.

As a closing sanity check, the two independent paths we have built, Duhamel convolution and the state-space engine, must agree on this messy measured force too, and we can throw in an OpenSees run for good measure:

Duhamel convolution vs engine : 1.57 %
OpenSeesPy vs engine          : 1.36 %

All three agree to within 1.6 %, and the small gaps come from how each method treats the force between samples, not from any disagreement about the physics. The engine holds each sample constant across its step, the OpenSees time series interpolates linearly between samples, and the convolution sums one strip per step.

6Summary

Chapter 6 turns the loop of the shock spectrum around: instead of sweeping the pulse duration for one structure, it sweeps the natural period TnT_n for one recorded ground motion. The result is the earthquake response spectrum, the single most important design tool built from the SDOF oscillator. The engine does not change at all: the ground motion enters as the effective force −m u¨g-m\,\ddot u_g of Chapter 1.