Dynamic models

10 min read
On this page

An equilibrium equation predicts the final temperature. Predicting how long it takes requires a dynamic model. Starting from feedback and control, we derive a state equation and its continuous and discrete solutions.

Energy balance becomes a derivative

Thermal capacitance is the energy needed for a 1 K rise. Over a short interval, . Dividing by time and taking a limit gives

Temperature rate has units K/s, capacitance J/K, heat-loss coefficient W/K, and power W. The duty ratio is dimensionless. Positive adds heat; negative removes it. Both sides have units J/s.

Our baseline is J/K, W and W/K. At , , , , net heating is W, so K/s. That is the current slope, not a promise of the same rise every second: warming increases heat loss.

What makes a variable a state?

Within this lumped model, the present temperature and future inputs determine future temperature. Temperature is therefore a state. A state summarizes the past information needed for prediction; it is not the entire history.

If the vessel wall and liquid have different temperatures, liquid temperature alone is insufficient. Identical liquid temperatures with different wall temperatures produce different heat flows. At least two thermal states may be needed. Model order reflects retained dynamics, not sensor count. State feedback develops this distinction.

Deriving the time constant

For constant , equilibrium and time constant are

The equation becomes , with solution

Here s. Starting at 20 °C with gives a final 40 °C. After 100 s, temperature is °C: 63.2% of the total change. After 300 s it is approximately 39.00 °C, or 95.0%. A time constant is not the time of exact arrival.

Preparing the visual
Dynamic models · Experiment

Start at 20 °C with ambient 20 °C and constant 400 W heating. Exact temperature and net-power curves separate capacitance effects from the equilibrium and time-constant effects of heat loss.

Double capacitance, then double heat loss. Capacitance changes the time constant alone; heat loss changes both the time constant and equilibrium rise. A lower absolute temperature can still approach its own equilibrium more quickly.

From a differential equation to updates

Forward Euler uses numerical step :

When inputs stay constant over that interval, the exact update is

For s from 20 °C, Euler gives 22 °C while the exact value is 21.903 °C. For the unforced deviation equation, Euler's multiplier is and is asymptotically stable only for . Divergence caused by a large numerical step is not physical instability. Digital control separates integration steps from actual control periods.

Linearization and physical analogies

Around an equilibrium , define , . With unchanged ambient and load,

This transformation is exact for our affine model. Radiation, temperature-dependent capacitance or nonlinear actuation generally require a local approximation. For , local matrices come from and at the operating point; they need not describe every temperature.

The RC equation likewise combines storage and dissipation, with time constant . Transfer the structure while preserving physical units and limits; see Capacitors.

Check your understanding

What changes when capacitance alone increases from 2000 to 4000 J/K?

Reasoning

Equilibrium stays the same and the time constant becomes 200 s. The 20→40 °C response reaches °C after 100 s.

Why might two liquids both at 40 °C subsequently behave differently?

Reasoning

Different wall temperatures represent omitted stored energy. Add wall temperature and heat exchange, or justify a fast-equilibration approximation that merges the states.

Further reading

python-control continuous-to-discrete conversion includes zero-order hold. Before selecting it, establish whether the input really remains constant between updates.