Tank Level Control Theory
Introduction
Level control is one of the most common control applications in process industries. Understanding tank dynamics and proper controller tuning is essential for maintaining stable operations, preventing overflow or dry running, and ensuring downstream process stability.
Tank Dynamics
The mass balance for an open tank with inflow and outflow:
A × dh/dt = Fin - Fout
- A = Tank cross-sectional area (m²)
- h = Liquid level (m)
- Fin = Inlet flow rate (m³/s)
- Fout = Outlet flow rate (m³/s)
Outlet Flow Models
Gravity Drain (Self-regulating)
Fout = Cv × √h
Flow increases with level - tank is self-regulating. Cv is the valve coefficient.
Pump Discharge (Non-self-regulating)
Fout = constant or controlled
Level will continuously rise/fall without control - integrating process.
PI Controller
For level control, PI (Proportional-Integral) is typically sufficient. The controller adjusts inlet flow:
Fin = Fbias + Kp(e + (1/Ti)∫e·dt)
Where e = hsetpoint - h (error)
Tight Level Control
High Kp, low Ti: Maintains level close to setpoint. Used when downstream process is sensitive to level changes.
Averaging Level Control
Low Kp, high Ti: Allows level to vary within limits. Smooths out flow disturbances - protects downstream equipment.
Anti-Windup
Integral windup occurs when the controller output saturates (hits limits) but the integral term continues to accumulate. This causes:
- Large overshoot when the constraint is removed
- Slow recovery from saturation
- Poor control performance
Anti-windup strategies:
Clamping
Stop integrating when output is saturated
Back-calculation
Reduce integral based on saturation amount
Conditional Integration
Only integrate when error and output have same sign
Tuning Guidelines
For a gravity-drain tank (self-regulating), the process can be approximated as first-order:
Time constant: τ = 2A×hss / Fout,ss
Process gain: K = 2hss / Fout,ss
Start with low gains and increase gradually. Level loops are often tuned loosely to provide surge capacity and dampen flow disturbances.
References
- Seborg, D.E. "Process Dynamics and Control"
- Shinskey, F.G. "Process Control Systems"
- Lipták, B.G. "Instrument Engineers' Handbook: Process Control"