Lesson 2 of 14 · Module A: Foundations

Dynamic models from balance equations

Process Dynamics and Control · EIE306

By the end of this lesson you can

  • Write unsteady-state mass and energy balances
  • Build the model of a gravity-drained tank
  • Find steady states and explain degrees of freedom

Notes

A dynamic model tells us how process variables change with time. Most process models start from one statement of conservation:

$$\text{Accumulation} = \text{In} - \text{Out} + \text{Generation} - \text{Consumption}$$

Example: gravity-drained tank

Liquid of constant density enters at $q_{in}$ and leaves through a valve at the bottom. The outflow depends on the hydrostatic head, $q_{out} = c_v\sqrt{h}$. A mass balance on a tank of cross-section $A$ gives

$$A\frac{dh}{dt} = q_{in} - c_v\sqrt{h}$$

This is a nonlinear first-order ordinary differential equation. At steady state $dh/dt = 0$, so $\bar h = (\bar q_{in}/c_v)^2$: doubling the inflow makes the level four times higher.

Energy balance: stirred heater

For a well-mixed tank of volume $V$ heated with power $Q$:

$$\rho V c_p \frac{dT}{dt} = \rho q c_p (T_{in} - T) + Q$$

Degrees of freedom

Degrees of freedom $N_F = N_V - N_E$ (variables minus independent equations). Each degree of freedom must be fixed either by a controller (an MV) or by the environment (a disturbance). If $N_F$ is not zero after this, the model is not well posed.

In the simulation below, keep the controller in Manual. Change the inlet valve and watch the level move towards the new steady state. Notice that it slows down as it gets close: that is first-order behaviour.

Lecture

🎬
Lecture video
Coming soon. The recorded lecture for this lesson will appear here.

Try it

Exercises

  1. A tank has $A = 2\,\text{m}^2$, $c_v = 0.5\,\text{m}^{2.5}/\text{min}$ and $q_{in} = 1\,\text{m}^3/\text{min}$. Find the steady-state level.
    Show solution
    $\bar h = (q_{in}/c_v)^2 = (1/0.5)^2 = 4\,\text{m}$.
  2. Count the degrees of freedom of the tank model if $A$ and $c_v$ are fixed parameters.
    Show solution
    Variables: $h$ and $q_{in}$ (2). Equations: 1. So $N_F = 1$: either $q_{in}$ is set by a controller or it is a disturbance.
  3. Write the energy balance for the heater if heat is also lost to the surroundings at $UA(T - T_a)$.
    Show solution
    $\rho V c_p\,dT/dt = \rho q c_p (T_{in} - T) + Q - UA(T - T_a)$.