ENع
→First-order response
الدرس 14 · Time response

First-order response and the time constant

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

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

A system with one store of energy answers a step with one shape: a fast start that slows as it closes in. Switch on a 2 kW heater in a room modelled as G(s) = 7.5/(40s + 1) and read everything off the curve: the final value K times the step, 63.2% after one time constant, the rise and settling times, and the single pole at s = −1/τ that sets the speed.

ستتعلّم

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

شكل 14 · تفاعلي
01 / 09

The room as one block

Take the room from What a control system is. Heat store, leaky walls: 40·dy/dt + y = 7.5·u, with y in degrees above outside and u in heater kW. From rest, the Laplace transform (d/dt becomes s) gives one block: G(s) = 7.5/(40s + 1).

first-order model (one heat store, one leak)

  τ·dy/dt + y = K·u
  40·dy/dt + y = 7.5·u

  y  room temperature above outside (°C)
  u  heater power (kW)

Laplace, starting at rest:
  (40s + 1)·Y(s) = 7.5·U(s)

  G(s) = Y(s)/U(s) = K/(τs + 1) = 7.5/(40s + 1)
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. The room as one block

    Take the room from What a control system is. Heat store, leaky walls: 40·dy/dt + y = 7.5·u, with y in degrees above outside and u in heater kW. From rest, the Laplace transform (d/dt becomes s) gives one block: G(s) = 7.5/(40s + 1).

    first-order model (one heat store, one leak)
    
      τ·dy/dt + y = K·u
      40·dy/dt + y = 7.5·u
    
      y  room temperature above outside (°C)
      u  heater power (kW)
    
    Laplace, starting at rest:
      (40s + 1)·Y(s) = 7.5·U(s)
    
      G(s) = Y(s)/U(s) = K/(τs + 1) = 7.5/(40s + 1)
  2. Switch the heater on

    At t = 0 the heater jumps from 0 to 2 kW and stays there. That is a step, so U(s) = 2/s. The room starts at 10 °C, the outside temperature. Watch the curve: fast at first, then slower and slower.

    step input   u(t) = 2 kW for t ≥ 0,   U(s) = 2/s
    
      Y(s) = G(s)·U(s) = 15 / (s(40s + 1))
           = 15/s − 15/(s + 1/40)
    
      y(t) = 15·(1 − e^(−t/40))
      T(t) = 10 + y(t)   °C
    
    Every first-order system answers a step
    with this same shape: the capacitor voltage
    in The RC circuit: natural and step
    response follows it too.
  3. Where it ends: K times the step

    Set s = 0: G(0) = K = 7.5 °C per kW, the DC gain. A 2 kW step ends 7.5 × 2 = 15 °C above outside, at 25 °C. The time constant decides only how fast it gets there.

    DC gain  G(0) = 7.5/(0 + 1) = 7.5 °C per kW
    
    final value theorem
      y(∞) = lim s→0  s·Y(s)
           = lim s→0  s·(2/s)·G(s)
           = 2·G(0) = 15 °C
    
    room ends at 10 + 15 = 25 °C
    (τ does not appear: it sets the speed only)
  4. It starts at full speed

    At t = 0 the whole 15 °C gap lies ahead, so the room warms fastest: 15/40 = 0.375 °C per minute. Kept up, that pace would arrive in exactly one time constant, 40 minutes. It never keeps it up.

    slope at t = 0
      dy/dt = (K·u − y)/τ = (15 − 0)/40
            = 0.375 °C per min
    
    straight line at that slope:
      10 + 0.375·t  reaches 25 °C at t = 40 min = τ
    
    The slope is always (gap left)/τ, so it
    falls as the gap closes.
  5. One time constant: 63%

    At t = τ = 40 min the room reads 19.5 °C: 9.5 of the 15 °C, or 63.2% of the way. That is 1 − e^−1 for every first-order system, whatever its K and τ: how you read τ off a measured curve.

    y(τ) = 15·(1 − e^−1)
         = 15 × 0.632 = 9.5 °C
    T(τ) = 10 + 9.5 = 19.5 °C
    
    To measure τ on a real system:
      1. step the input, record the output
      2. find where it has gone 63.2% of
         the way to its final value
      3. that time is τ
  6. Each τ closes 63% of the rest

    Every time constant, the gap still left shrinks to 36.8% of itself: 15 °C at the start, then 5.5, 2.0, 0.75 and 0.27 °C after one to four τ. So the room is 86.5% there at 2τ, 95.0% at 3τ and 98.2% at 4τ.

    gap(t) = 15·e^(−t/τ)
    
      t     gap (°C)   done
      0     15.00       0.0 %
      1τ    5.52       63.2 %
      2τ    2.03       86.5 %
      3τ    0.75       95.0 %
      4τ    0.27       98.2 %
      5τ    0.10       99.3 %
    
    In theory it never quite arrives.
  7. Rise time and settling time

    Rise time, from 10% to 90% of the way, is τ·ln 9 ≈ 2.2τ = 87.9 min. Settling time, until it stays within 2% of the end, is τ·ln 50 ≈ 3.9τ = 156.5 min; textbooks round it to 4τ = 160 min.

    rise time (10 % → 90 %)
      10 % at τ·ln(10/9) = 4.2 min
      90 % at τ·ln 10    = 92.1 min
      Tr = τ·ln 9 = 87.9 min ≈ 2.2τ
    
    settling time (inside ±2 %, ±0.3 °C)
      e^(−t/τ) = 0.02  →  t = τ·ln 50
      Ts = 156.5 min ≈ 3.9τ  (rule: 4τ = 160)
  8. The pole sets the speed

    G(s) blows up where 40s + 1 = 0: one pole, at s = −1/τ = −0.025 per minute. Halve the heat store, τ = 20 min, and the pole moves twice as far left. Same 25 °C at the end, reached twice as fast.

    pole: root of τs + 1 = 0  →  s = −1/τ
    
      τ = 40 min   s = −0.025 /min
      τ = 20 min   s = −0.05 /min
    
    the response is built from e^(st) = e^(−t/τ):
    farther left  →  faster decay  →  quicker
    
    τ = 20 min reaches 19.5 °C at t = 20 min.
    G(0) is still 7.5, so it still ends at 25 °C.
  9. First order in Python

    In Python the whole response is one line: y = K·u·(1 − e^(−t/τ)). The python-control library builds the same block with ct.tf([7.5], [40, 1]), and ct.step_info reports the same 10–90% rise time and 2% settling time.

    import math
    K, tau, u = 7.5, 40, 2.0
    y = lambda t: K*u*(1 - math.exp(-t/tau))
    rise = tau*math.log(9)       # 10 % to 90 %
    settle = tau*math.log(50)    # inside 2 %
    print(round(10 + y(tau), 1), round(rise, 1), round(settle, 1))  # 19.5 87.9 156.5
    # python-control:  import control as ct
    #   G = ct.tf([7.5], [40, 1])
    #   ct.step_info(2 * G)  ->  RiseTime ≈ 87.9, SettlingTime ≈ 156.5

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