Two Tanks — Level control with one lag or two
![]() | ![]() | ![]() | App Exercises |
|---|
Model and Control Exercise 13 of 40. BYU class 14 · PDC class 14. 15 minutes.

Open the Two Tanks App
Learning Outcomes
- Write the two coupled balances.
- Explain how a second lag in series delays the first response.
- Predict the effect of the path on overshoot under the same tuning.
Book Chapter
Process Dynamics, Modeling, and Identification (Volume 1), Chapter 3, Two-Tank Level Control With a Splitter Valve That Sets the Plant Order. Read online · Chapter PDF · Lecture slides
Theory in Brief
Let f be the fraction of inlet flow routed directly to the lower tank and q_12 the flow from upper to lower. The two-lag form represents the series path near a steady state.
$$A_1\dot h_1=(1-f)q_{in}-q_{12}$$
$$A_2\dot h_2=fq_{in}+q_{12}-q_{out}$$
$$G_{series}(s)=K_p/[(\tau_1s+1)(\tau_2s+1)]$$
Model to Controller
The bypass changes the effective lag structure. The same tuning can therefore produce a different closed-loop response.
Exercise
Read (2 min). Review the model and identify which signals you will compare.
Predict (1 min). Will the lower level start rising sooner or later with the splitter open? Explain your prediction.
Run (8 min).
- Open the app and select the following cases in order.
- 2 · Open-loop actuator step.
- 3 · Closed-loop setpoint step.
- Repeat both cases with the splitter shut and open. Keep the same step and compare the same output channel and time interval.
- Record time to 10 % of the rise and the overshoot for each path.
Explain (2 min). Which observation supports or changes your prediction? Which assumption or limit explains the gap between calculation and observation?
Generative AI Learning (2 min)
Verify the suggested claim using a second point on your trend or an independent calculation from the equations. Cite the signal, units and case that support your conclusion.
What to Turn In
Submit a screenshot of the relevant trend or scorecard and three sentences covering your prediction, the measured result with units, and the model's explanation. Course guidelines for AI use.
The direct path begins moving the lower tank earlier. Compare the same input or setpoint move and use the same definition of percent rise for both paths.
Which part of the model connects the measured signal to the exercise?
The bypass changes the effective lag structure. The same tuning can therefore produce a different closed-loop response.
How should the observations be interpreted?
The direct path begins moving the lower tank earlier. Compare the same input or setpoint move and use the same definition of percent rise for both paths.
How could you check that a result is comparable across cases?
Use the same signal, units and reference point. When comparing integrated quantities, use the same interval.


