1# 40·dy/dt + y = 7.5·u2# G(s) = 7.5 / (40s + 1)3def y(t, u=2.0):4 return 7.5*u*(1 - exp(-t/40))u = 0 kWK/(τs+1)7.5/(40s+1)T = 10.0 °C
final 25 °C = 10 + K·u63.2% at t = τTs 156.5 minTr 87.9 min0408012016020010152025time (min), a tick every τ°CROOM TEMPERATURE T(t)start slopeτ = 20 minτ = 40 min← faster (stable)unstable-0.05-0.0250-0.0200.02real part (1/min)imaginarys-PLANE: POLE AT s = −1/ττ = 40τ = 20
Lit wire with moving dashes: a signal is flowing along itBlocks: the heater power (input), the room G(s) = 7.5/(40s + 1) and the room temperature (output); the model is the cardPlots: the room temperature after a 2 kW step, and the pole on the s-plane, both computed from the modelPills: the step U(s) = 2/s entering G(s) and the output Y(s) leaving itA room with one heat store and one leak is a first-order system: one block, G(s) = K/(τs + 1) = 7.5/(40s + 1). The plots below are its exact step response, T(t) = 10 + 15(1 − e^(−t/40)), and its one pole at s = −1/τ. The slope is (gap left)/τ at every moment, not only at the start, so a tangent drawn anywhere on the curve reaches the final value exactly τ later.

The block

  1. 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).

Reading the curve

Speed and the pole

Working

# step 1/9 · block
# about: Model card, Heater power u(t), Room block G(s), Room temperature

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)

The room is the illustrative model from What a control system is: K = 7.5 °C per kW and τ = 40 min. Every curve and number in the figure is computed from y(t) = K·u·(1 − e^(−t/τ)), sampled every 0.5 min. Nise and Ogata both quote 4τ as the 2% settling time. The exact time for e^(−t/τ) to fall to 0.02 is τ·ln 50 = 3.91τ, here 156.5 min, which is what step_info measures.