ENع
→Second-order response
الدرس 15 · Time response

Second-order response: natural frequency and damping ratio

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

16 دقيقة11 خطوة5 أسئلةIntermediate
عن هذا الدرس

A second-order system answers a step in one of four ways: it swings for ever, rings and settles, rises cleanly, or creeps. Two numbers decide which: the natural frequency ωn and the damping ratio ζ. Push one cart through five dampers, watch its two poles slide round a circle on the s-plane, and read the response straight from where they sit.

ستتعلّم

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

شكل 15 · تفاعلي
01 / 11

One push, many answers

A 1 kg cart is tied to a wall by a spring and a damper. At t = 0 a steady 4 N push starts. The cart will end up at 4/16 = 0.25 m. How it gets there depends on just two numbers.

cart     m = 1 kg
spring   k = 16 N/m
damper   b = ? N·s/m (we will try five)
push     F = 4 N from t = 0

final position  F / k = 4 / 16 = 0.25 m

Besides the final value, a first-order system
needs one number, its time constant.
A second-order one needs two.
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. One push, many answers

    A 1 kg cart is tied to a wall by a spring and a damper. At t = 0 a steady 4 N push starts. The cart will end up at 4/16 = 0.25 m. How it gets there depends on just two numbers.

    cart     m = 1 kg
    spring   k = 16 N/m
    damper   b = ? N·s/m (we will try five)
    push     F = 4 N from t = 0
    
    final position  F / k = 4 / 16 = 0.25 m
    
    Besides the final value, a first-order system
    needs one number, its time constant.
    A second-order one needs two.
  2. The standard form

    Newton's law gives m·ẍ + b·ẋ + k·x = F. Divide by m and rename the coefficients: ẍ + 2ζωn·ẋ + ωn²·x = ωn²·F/k. Second-order systems are usually written this way, so two numbers, ωn and ζ, describe it.

    m·ẍ + b·ẋ + k·x = F            (Newton)
    
    divide by m:
    ẍ + (b/m)·ẋ + (k/m)·x = (k/m)·F/k
    
    name them:  k/m = ωn²     b/m = 2ζωn
    ẍ + 2ζωn·ẋ + ωn²·x = ωn²·(F/k)
    
    transfer function (zero initial state):
    X(s)/(F/k) = ωn² / (s² + 2ζωn·s + ωn²)
  3. ωn: how fast it swings

    The natural frequency ωn = √(k/m) = √16 = 4 rad/s. Take the damper out (b = 0) and the cart swings between 0 and 0.50 m for ever, once every 2π/4 = 1.57 s. A stiffer spring or a lighter cart swings faster.

    import math
    m, k = 1.0, 16.0
    wn = math.sqrt(k / m)              # rad/s
    period = 2 * math.pi / wn          # s
    print(f"{wn:.0f} {period:.2f}")      # => 4 1.57
  4. ζ: how much it is damped

    The damping ratio ζ = b / (2√(km)) = b/8. It compares our damper with the critical one, b = 8 N·s/m, that just stops overshoot. ζ = 0: no damping. Below 1: overshoot. ζ = 1: critical. Above 1: overdamped.

    ζ = b / (2·√(k·m)) = b / (2·√16) = b / 8
    
      b (N·s/m)   ζ       kind
      0           0       undamped
      1.6         0.2     underdamped
      4           0.5     underdamped
      8           1       critically damped
      10          1.25    overdamped
    
    ζ has no units: it is a ratio of two dampers.
  5. Two poles hold both numbers

    The poles are the roots of s² + 2ζωn·s + ωn². They are complex numbers s = σ + jω, drawn on the s-plane. With no damper they sit on the imaginary axis at ±4j: a swing at 4 rad/s that never dies down.

    den = [1, 2·ζ·ωn, ωn²]
    s = −ζ·ωn ± ωn·√(ζ² − 1)
    
    ζ = 0   s = ±4j        (no decay)
    ζ < 1   s = −ζωn ± jωd,  ωd = ωn·√(1 − ζ²)
            |s| = ωn,  cos θ = ζ
    ζ = 1   s = −4, −4    (a double pole)
    ζ > 1   two real poles
  6. Underdamped: ζ = 0.2

    With b = 1.6, ζ = 0.2 and the poles move left to −0.8 ± 3.92j. The cart overshoots to 0.382 m, 52.7 % past 0.25 m, at 0.80 s, then rings at ωd = 3.92 rad/s while the swings shrink.

    import math
    wn, zeta = 4.0, 0.2
    wd = wn * math.sqrt(1 - zeta**2)    # ringing, rad/s
    tp = math.pi / wd                   # peak time, s
    os = 100 * math.exp(-zeta * math.pi / math.sqrt(1 - zeta**2))
    print(f"{wd:.2f} {tp:.2f} {os:.1f}")  # => 3.92 0.80 52.7
  7. More damping: ζ = 0.5

    Raise b to 4, so ζ = 0.5. The poles slide round the circle to −2 ± 3.46j. Overshoot falls to 16.3 % (peak 0.291 m at 0.91 s), and the cart stays within 2 % of 0.25 m after 2.02 s.

    ζ = 0.5   ωn = 4
    poles     −ζωn ± ωn√(1−ζ²) = −2 ± 3.46j
    peak      0.291 m at 0.91 s  (16.3 % over)
    2 % band  reached for good at 2.02 s
    
    compare ζ = 0.2: 52.7 % over,
              2 % band only at 4.90 s
  8. Critically damped: ζ = 1

    At b = 8, ζ = 1: the two poles meet on the real axis at −4. The cart rises with no overshoot and stays within 2 % of 0.25 m after 1.46 s: the fastest response that never overshoots.

    ζ = 1   s = −4 (twice)
    y(t) = 1 − (1 + ωn·t)·e^(−ωn·t)
          = 1 − (1 + 4t)·e^(−4t)
    
    overshoot   none
    2 % band    1.46 s
  9. Overdamped: ζ = 1.25

    Push b up to 10 (ζ = 1.25) and the poles split along the real axis to −2 and −8. Still no overshoot, but the slow pole at −2 drags: the 2 % band takes 2.10 s. More damping made it slower, not faster.

    ζ = 1.25   s = −ζωn ± ωn√(ζ²−1) = −5 ± 3
               = −2 and −8
    y(t) = 1 − (4/3)·e^(−2t) + (1/3)·e^(−8t)
    
    2 % band:  ζ = 1    1.46 s
               ζ = 1.25 2.10 s
    the e^(−2t) term is the slow one
  10. Read the response from the poles

    Watch ζ sweep from 0 to 1.25. Up to ζ = 1 the poles stay 4 from the origin. Their real part, −ζωn, sets how fast the swings die. Their imaginary part, ωd, sets how fast they swing. Past ζ = 1 they split.

    pole s = σ ± jω
    
    σ = −ζωn          decay rate: e^(σt)
    ω = ωn·√(1 − ζ²)  ringing frequency ωd
    |s| = ωn          the natural frequency
    cos θ = ζ         θ from the negative real axis
    
    Same ωn, different ζ: same circle,
    different place on it.
  11. Check it in Python

    A few lines of plain Python step the equation forward 0.1 ms at a time for all five dampers. The peaks match the exact curves. With python-control, tf([16], den) builds the same system and step_info reports its overshoot. The cart replays ζ = 0.5.

    from math import sqrt
    m, k, F = 1.0, 16.0, 4.0
    for b in (0.0, 1.6, 4.0, 8.0, 10.0):
        wn = sqrt(k / m)
        zeta = b / (2 * sqrt(k * m))
        x = v = peak = 0.0
        dt = 0.0001
        for n in range(50000):            # 5 s
            a = (F - b * v - k * x) / m
            v += a * dt
            x += v * dt
            peak = max(peak, x)
        print(f"zeta {zeta:.2f}  peak {peak:.3f} m")
    # => zeta 0.00  peak 0.500 m
    # => zeta 0.20  peak 0.382 m
    # => zeta 0.50  peak 0.291 m
    # => zeta 1.00  peak 0.250 m
    # => zeta 1.25  peak 0.250 m

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