A823 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A8 · Lesson 23 · Lab: second-order responses

Damping, overshoot and settling, computed and measured

Lessons 16 to 21 gave formulas for a second-order system's response: ζ and ω0 from the parts, the overshoot from ζ, the ringing from the roots. In this lab you'll compute those from component values, simulate step responses and measure them the way a scope would, estimate damping from the decay of a ringing waveform, and find out how good the familiar settling-time rule of thumb really is.

  • The curve is the step response of y¨+2ζω0y˙+ω02y=ω02u with ω0 = 1 rad/s.
  • Lower ζ: the overshoot grows and the ringing lasts longer. The readouts give the formula values your code will check.
  • At ζ = 0.7 the overshoot is under 5%, a common design choice.

Predict

Two successive peaks of a ringing waveform are 1.0 and 0.53. About what is ζ?

Name it

From parts to parameters

Circuitω0ζ
Series RLC1LCR2CL
Parallel RLC1LC12RLC

Measuring a response

  • Overshoot: the peak's excess over the final value, as a fraction; for an underdamped step response it's e−πζ/1−ζ2.
  • Logarithmic decrement: δ=ln⁡xkxk+1 for successive peaks of a free oscillation; ζ=δ4π2+δ2.
  • Settling time: the last time the response is outside a band (often 2%) around the final value. The rule of thumb ts≈4ζω0 comes from the envelope e−ζω0t reaching 2%; the actual crossing depends on where in a cycle the response passes the band, so it's usually a little shorter.

Simulating

Write the equation in state form, y˙=v, v˙=ω02(u−y)−2ζω0v, and step it with RK4. With 1000 steps per second of a 1 rad/s system, RK4 is accurate to many digits.

Worked example

A series RLC has R = 40 Ω, L = 10 mH and C = 1 µF. Find ω0, ζ and the step overshoot.

Show the solution
  1. Natural frequency. ω0=110−8=104rad/s
  2. Damping ratio. ζ=40210−610−2=20×0.01=0.2
  3. Overshoot. e−0.2π/0.96=e−0.641=0.527 The capacitor voltage swings 53% past its final value before settling.

Answer ω0=104 rad/s, ζ=0.2, and the step response overshoots by 53%.

Worked example

A system with ζ = 0.2 and ω0 = 1 rad/s. Compare the settling-time rule of thumb with the simulated value.

Show the solution
  1. The rule of thumb. ts=40.2×1s=20s
  2. The simulation. Simulating with RK4 and finding the last time |y−1|>0.02 gives 19.6 s.
  3. The envelope. The error's envelope, e−ζt1−ζ2, reaches 2% at t=ln⁡51.00.2s=19.7s and the response, being inside its envelope, leaves the band a little earlier.
  4. Compare. The rule is a slightly conservative estimate.

Answer the rule gives 20 s and the simulation 19.6 s, so the rule is slightly conservative.

Check

A series RLC has R = 20 Ω, L = 10 mH and C = 1 µF. What is ζ?

Check

Successive peaks of a free oscillation have the ratio 0.7. What is ζ?

Check

Write params(R, L, C) returning (zeta, w0) for a series RLC. Set z, w0 = params(40, 10e-3, 1e-6).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Simulate the step response of y¨+2ζy˙+y=1 (ω0 = 1, ζ = 0.2) from rest with RK4, h = 0.001, out to 40 s. Set overshoot to the peak minus 1 and formula to e−πζ/1−ζ2.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

A ringing record's successive positive peaks are in the starter. Estimate ζ from each pair of neighbors by the logarithmic decrement, and set z_est to their average.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Simulate the step response for ζ = 0.2 (ω0 = 1) with RK4, h = 0.001, out to 60 s, and set ts to the last time |y−1|>0.02 (plus one step) and rule to 4/ζ.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Design for 5% overshoot: invert e−πζ/1−ζ2=0.05 for ζ, then set R to the series resistance that gives it with L = 10 mH and C = 1 µF.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why can the logarithmic decrement measure damping without knowing the starting amplitude or the circuit's parts?

Practice

Keep practicing

6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.