Inverse Response From an Energy Balance
Open the Flash Steam Level Control Studio app
Advanced Control Exercise 2 of 30 in Dynamic Models · All exercises · Time: 15 minutes
A flash vessel makes steam from hot water returned through a heat-recovery coil. When the steam demand rises, the indicated level goes up while the vessel is losing water. The reason is in the model: two balances, an algebraic closure that turns mass and energy into pressure, and bubbles held under the surface. A controller that knows the swell will pass does not chase it.
Learning Outcomes
- Write coupled mass and energy balances with an algebraic property closure as a differential-algebraic system.
- Explain shrink and swell as inverse response, and relate it to a right-half-plane zero in a linear model.
- Compare a three-element PI and an MPC that share every measurement and limit, and say where the MPC's advantage comes from.
Book Chapter
Process Dynamics, Modeling, and Identification (Volume 1), Chapter 6, A Flash Steam Vessel Whose Level Rises While It Loses Water. Read the chapter, open the PDF, or watch the lecture slides.
Theory in Brief
The vessel's states are its total water mass `M` and internal energy `U`. With feedwater `\dot m_f`, steam `\dot m_s`, blowdown `\dot m_b` the circulation `\dot m_r` and the hot return `\dot m_{ret}` at enthalpy `h_h` (feedwater joins the circulation loop, so `\dot m_{ret} = \dot m_r + \dot m_f`):
$$\begin{gathered} \frac{dM}{dt} = \dot m_f - \dot m_s - \dot m_b, \\ \frac{dU}{dt} = \dot m_{ret} h_h - \dot m_r h_L - \dot m_s h_V - \dot m_b h_L - Q_{loss} \end{gathered}$$
The pressure is not a state. It comes from an algebraic closure: a saturated two-phase mixture in a fixed volume `V`, with steam-table properties, satisfies
$$\begin{gathered} 0 = g(M, U, p) = M_L v_L(p) + M_V v_V(p) - V, \\ U = M_L u_L(p) + M_V u_V(p) + C_d T_{sat}(p) \end{gathered}$$
so the model is semi-explicit, `\dot x = f(x,z,u)`, `0 = g(x,z,u)`, with `z` = pressure and phase split. When demand rises the pressure falls, the liquid boils in its bulk, and bubbles held under the surface lift the level before the lost mass pulls it down. A linear model of that response has a zero in the right half plane:
$$G(s) = \frac{K\,(1 - \tau_z s)}{s\,(\tau s + 1)}$$
Model: Physics-based. Mass and energy balances with steam-table closure (a differential-algebraic system); the MPC uses a four-state local linearization rebuilt every 2 s.
Decision: The feedwater flow setpoint, from a three-element PI cascade or an MPC with a soft level band.
Learning: None. The MPC's advantage comes from the physics in its model, not from data.
Exercise
Read 2 min · Predict 1 min · Run 7 min · Explain 3 min · Check your AI 2 min.
Predict. The steam user opens its valve 25 % with the feedwater valve fixed, so water leaves faster than it arrives. In the first 20 s after the step, does the indicated level rise or fall? Then: where could an MPC that shares every measurement and limit with the three-element PI find an advantage?
Run the Flash Steam Level Control Studio app. Use the fastest speed, 20×, and press Run again to pause at the times in each step.
- Open 2 · More steam demand and a rising level (Manual). Set Teaching overlay to Show simulator truth and press Run in Manual; pause at 600 s. Watch the level, the inventory and the bubble trends through the 90 s marker.
- Open 11 · MPC against three-element on the same limits. Run it with Feedwater control set to Three-element and pause at 1200 s. Read the IAE in the Control performance tiles and the Valve travel tile.
- Press Reset, set Feedwater control to MPC before pressing Run, and run 1200 s. Read the same two numbers.
Explain.
- Which term in the balances makes the level rise while the mass falls, and why does it fade?
- The limits never bind in step 3. Where does the MPC's advantage come from?
Generative AI Learning
Check the answer against your run: A good answer names the pressure drop, bulk boiling and bubbles under the surface, and says the controller should not cut feedwater on the swell. Your step 1 trends are the test: compare the surface and inventory traces. The assistant is your tutor and reviewer; you answer for every claim you turn in.
What to Turn In
A table with one row per run and the numbers each step asks you to read, your written prediction, and three sentences that answer the two questions.

The indicated level rises first: the measured level peaks 3.2 points above its setpoint after the demand step, while the inventory falls. Steam leaves faster than the coil replaces it, the pressure falls, and saturated liquid at a lower pressure holds more energy than it can keep as liquid, so it boils in the bulk; the vapor has to rise through the liquid, and that volume lifts the surface. As the pressure settles the bubbles clear and the level falls back: at 600 s it reads 53.8 % and the inventory estimate is 50.6 ± 0.3 %.
Over 1200 s the three-element PI gives a level IAE of 391 %·s with 80 % of valve travel, and the MPC 330 %·s with 57 %. The limits never bind, so this is prediction at work, not constraint handling: the MPC's model says the swell is a bubble contribution that decays as the pressure settles, so it does not chase it, while the PI trim sees only a level above setpoint and leans on the feedwater until the swell has gone.
Measured with the app build of December 3, 2026 by a scripted replay of the steps above. Numbers that no tile shows come from the replay's record; your readings from the trends will be close. A later app release may move the last digit.
Formulation and Initialization cover differential-algebraic models in GEKKO. Write `M` and `U` as differential states and pressure as an algebraic variable with an `m.Equation` for the volume closure (use an ideal steam-table fit near 8 bar). Initialize it at steady state first: an inconsistent starting pressure is the most common reason such a model fails to solve.
Related
- Check yourself: three-question quiz
- Course pages: Formulation, Initialization, Dynamic Modeling Introduction, Control Objectives
- Exercises: previous: 1 · A Physics-Based Model With a Moving Time Constant; next: 3 · Fit an Energy Balance to Data
References
- Hedengren, J. D. (ed.), Process Dynamics, Modeling, and Identification, Volume 1 of Interactive Control Engineering, Chapter 6, "A Flash Steam Vessel Whose Level Rises While It Loses Water", pp. 135–159, Advanced Process Solutions, 2026. PDF (CC BY 4.0).
- Åström, K. J., Bell, R. D., Drum-boiler dynamics, Automatica 36(3), 363–378, 2000.
