ENع
→Step-response specs
الدرس 16 · Time response

Rise time, peak time, overshoot and settling time

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

14 دقيقة10 خطوات5 أسئلةIntermediate
عن هذا الدرس

Four numbers describe how a system answers a step: rise time, peak time, percent overshoot and settling time. Push a mass-spring-damper cart (ζ = 0.6, ωn = 5 rad/s) with a steady force, measure each number on its exact response with a stopwatch, then predict them from ζ and ωn with the standard second-order formulas and see where the quick estimates fall short.

ستتعلّم

حدّد ما تشعر بأنك أتقنته. هذا التقييم الذاتي لا يؤثر في درجة الدرس.

شكل 16 · تفاعلي
01 / 10

The cart, firmer damper

The cart from the springs, masses and dampers lesson, with a firmer damper, b = 12 N·s/m. Then ẍ + 6ẋ + 25x = F/2 gives natural frequency ωn = 5 rad/s and damping ratio ζ = 0.6. ζ < 1: it rings and overshoots.

m = 2 kg   k = 50 N/m   b = 12 N·s/m

2ẍ + 12ẋ + 50x = F(t)
 ẍ +  6ẋ + 25x = F/2

ωn = √(k/m)      = 5 rad/s
ζ  = b/(2√(km))  = 12/20 = 0.6

X(s)/F(s) = 1 / (2s² + 12s + 50)

Natural frequency and damping ratio are
the lesson "Second-order response:
natural frequency and damping ratio".
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. The cart, firmer damper

    The cart from the springs, masses and dampers lesson, with a firmer damper, b = 12 N·s/m. Then ẍ + 6ẋ + 25x = F/2 gives natural frequency ωn = 5 rad/s and damping ratio ζ = 0.6. ζ < 1: it rings and overshoots.

    m = 2 kg   k = 50 N/m   b = 12 N·s/m
    
    2ẍ + 12ẋ + 50x = F(t)
     ẍ +  6ẋ + 25x = F/2
    
    ωn = √(k/m)      = 5 rad/s
    ζ  = b/(2√(km))  = 12/20 = 0.6
    
    X(s)/F(s) = 1 / (2s² + 12s + 50)
    
    Natural frequency and damping ratio are
    the lesson "Second-order response:
    natural frequency and damping ratio".
  2. Push, and keep pushing

    At t = 0 a steady 10 N push starts and never stops: a step input. The cart rises, shoots past where it will end, swings back and settles. Four numbers describe that answer, so responses can be compared and specified.

    input   F(t) = 10 N for t ≥ 0   (a step)
    output  x(t), metres
    
    The four numbers:
      rise time      Tr   how quickly it gets going
      peak time      Tp   when it swings furthest
      overshoot      %OS  how far past the end
      settling time  Ts   when it is done moving
  3. First, where it ends

    Every measurement is relative to the final value. Once the cart stops, ẋ and ẍ are zero and only the spring holds the push: x = F/k = 10/50 = 0.2 m. The ruler and the plot mark that line.

    at rest:  ẍ = 0, ẋ = 0
      k·x = F
      x_final = F / k = 10 / 50 = 0.2 m
    
    10 % of it   0.02 m
    90 % of it   0.18 m
    ±2 % band    0.196 to 0.204 m
  4. Rise time: 10 to 90 %

    Rise time Tr is how long the output takes to climb from 10 % to 90 % of its final value, here 0.02 m to 0.18 m. The stopwatch clicks at 0.10 s and 0.47 s, so Tr = 0.37 s.

    10 % = 0.02 m   reached at t = 0.10 s
    90 % = 0.18 m   reached at t = 0.47 s
    
    Tr = 0.47 − 0.10 = 0.37 s
    
    Why not 0 % to 100 %? Measuring between
    10 % and 90 % ignores the slow start and
    the slow finish, and works even when the
    output never overshoots.
  5. Peak time: the furthest point

    The cart passes 0.2 m still moving, so it carries on. It stops and turns back at its furthest point, 0.219 m. The time it gets there is the peak time: Tp = 0.79 s. At that instant its speed is zero.

    x_max = 0.219 m   at   Tp = 0.79 s
    speed there: 0 m/s (it turns back)
    
    The first peak is the biggest one:
    every later swing is smaller, because the
    damper takes energy out on each one.
  6. Overshoot: how far past

    Percent overshoot compares the peak with the final value: (0.219 − 0.2) / 0.2 × 100 = 9.5 %. It says how far the output swings past where it is going, as a share of the final value.

    %OS = (x_max − x_final) / x_final × 100
        = (0.219 − 0.2) / 0.2 × 100
        = 9.5 %
    
    A percentage, so it does not care about
    units or the size of the push: push twice
    as hard and the overshoot is still 9.5 %.
  7. Settling time: in and staying

    Draw a band 2 % either side of the final value: 0.196 to 0.204 m. Settling time Ts is when the output enters that band and never leaves it again. The stopwatch stops at Ts = 1.19 s.

    # measure the four numbers on the exact curve
    import math
    wn, z, xf = 5.0, 0.6, 0.2
    r = math.sqrt(1 - z*z)
    def x(t):
        e = math.exp(-z*wn*t)
        return xf*(1 - e*(math.cos(wn*r*t) + z/r*math.sin(wn*r*t)))
    times = [n / 10000 for n in range(30001)]   # 0 to 3 s
    xs = [x(t) for t in times]
    t10 = next(t for t, v in zip(times, xs) if v >= 0.1*xf)
    t90 = next(t for t, v in zip(times, xs) if v >= 0.9*xf)
    peak = max(xs); tp = times[xs.index(peak)]
    ts = max(t for t, v in zip(times, xs) if abs(v - xf) > 0.02*xf)
    print(round(t90 - t10, 2), round(tp, 2), round(100*(peak/xf - 1), 1), round(ts, 2))
    # 0.37 0.79 9.5 1.19
  8. Predict them from ζ and ωn

    You can predict these without running anything. The ringing frequency is ωd = ωn√(1 − ζ²) = 4.0 rad/s. Peak time is half its period: π/ωd = 0.785 s. Overshoot depends on ζ alone: 100·e^(−ζπ/√(1−ζ²)) = 9.5 %.

    import math
    wn, z = 5.0, 0.6
    wd = wn * math.sqrt(1 - z*z)          # ringing frequency, rad/s
    Tp = math.pi / wd                     # peak time, s
    OS = 100 * math.exp(-z*math.pi / math.sqrt(1 - z*z))   # %
    print(round(wd, 1), round(Tp, 3), round(OS, 1))
    # 4.0 0.785 9.5
  9. Quick estimates, honest limits

    Settling time is usually estimated as Ts ≈ 4/(ζωn) = 4/3 = 1.33 s, and rise time as Tr ≈ 1.8/ωn = 0.36 s. They are rules of thumb: the curve itself settled at 1.19 s and rose in 0.37 s.

    Ts ≈ 4 / (ζ·ωn) = 4 / 3 = 1.33 s   measured 1.19 s
    Tr ≈ 1.8 / ωn   = 1.8 / 5 = 0.36 s   measured 0.37 s
    
    4/(ζωn) is when the envelope e^(−ζωn·t)
    falls to e^−4 ≈ 1.8 %. The real curve can
    slip inside the band a little earlier,
    so the estimate is on the safe side.
    
    import control as ct
    ct.step_info(ct.tf([25], [1, 6, 25]))
    # RiseTime, PeakTime, Overshoot, SettlingTime
  10. More damping: a trade

    Fit a firmer damper, b = 16 N·s/m, so ζ = 0.8. Overshoot falls to 1.5 % and the cart settles sooner, at 0.75 s. But it rises more slowly: Tr = 0.49 s. Specifications are how designers choose between such answers.

                ζ = 0.6     ζ = 0.8
    Tr          0.37 s     0.49 s
    Tp          0.79 s     1.05 s
    %OS         9.5 %     1.5 %
    Ts (2 %)    1.19 s     0.75 s
    4/(ζωn)     1.33 s     1.00 s
    
    More damping: less overshoot, slower rise.
    At ζ = 0.8 the overshoot is already inside
    the 2 % band, so it settles on first entry.

اختبار يتاح بعد الخطوة الأخيرة.