The conical tank: when one tuning isn't enough
The process gain changes about 7× from bottom to top. What does that do to a PI loop, and which fix is worth it?
The situation
A point-down cone, filled through LV-201 and drained by gravity. The level has to be held anywhere from 0.3 to 1.7 m as production changes. The mechanical view shows why this is hard: the cross-section grows about 6.7× between 0.4 m and 1.6 m, so the same valve change moves the level 6.7× slower near the top.
Baseline: one PI, tuned where it was commissioned
Commissioning happened at low level, so the bump test there gives %/s per %. SIMC with s gives and s. Near the bottom it's a good loop. Going up the tank, the same tuning gets sluggish and then overshoots by almost 20 %, ringing for half an hour.
Diagnose: the plant across the range
Linearize at 0.4, 1.0 and 1.6 m. The time constant runs from 4 minutes to nearly an hour, but more importantly the integrating slope falls by about 7×. For PI on an integrator, : the damping falls with , from about 1 at the bottom to about 0.4 at the top. The linear step responses at the three levels show the same thing.
The plant across the operating range
Linearized at steady state (Jacobian), first-order-plus-dead-time by the half rule| Level (m) | Valve | K (%/%) | τ | θ eff. | k′ = K/τ | PM | GM | Ms |
|---|---|---|---|---|---|---|---|---|
| 0.4 | 31.6 % | 1.26 | 246 s | 3.75 s | 0.00515 /s | 85.4° | 33 dB | 1.07 |
| 0.7 | 41.8 % | 1.67 | 633 s | 3.75 s | 0.00264 /s | 72.5° | 38.7 dB | 1.04 |
| 1 | 50 % | 2 | 1250 s | 3.75 s | 0.0016 /s | 61.1° | 43 dB | 1.05 |
| 1.3 | 57 % | 2.28 | 2120 s | 3.75 s | 0.00107 /s | 51.9° | 46.5 dB | 1.17 |
| 1.6 | 63.2 % | 2.53 | 3290 s | 3.75 s | 7.70e−4 /s | 44.7° | 49.4 dB | 1.33 |
Margins are for the current controller at each point. The integrating slope k′ changes 6.7× across the range: one fixed tuning sees a different process at each end.
Linear step responses at each operating point
Same controller; what changes is the plantRetune for the top?
Tuning at 1.6 m gives . Now the top behaves, but the bottom gets about 7× more gain than it needs. The level noise reaches the valve (CV activity about 6×, travel about 5×) and the gain margin halves. One tuning can only be right in one place.
Gain scheduling
Tune at each of the three levels with the same rule and speed ( = 3, 9.8 and 20), and interpolate on PV. Now the damping is the same everywhere: no overshoot at the top, and no extra noise at the bottom compared with the low-tuned PI. The cost is 9 numbers instead of 2, and three bump tests to get them.
Characterization: control volume
The geometry is known, so convert level to volume and control that. has the same slope at every level, so one PI (, s in volume units) matches the schedule's performance with two parameters and one small function.
What if the drawings are wrong?
The tank is actually 15 % wider and the outlet partly blocked. The characterization uses the drawing's geometry, so its volumes are off. It degrades gracefully, because a 15 % gain error is well inside its margins. The schedule never knew the geometry, so it is just as unaffected. Both are robust here. A much larger error, or a strange vessel shape, would favour scheduling from real bump tests.
Verdict
Characterize when the nonlinearity has a formula; schedule when it doesn't.
- Volume control is the cheapest complete fix: one PI, one FC, robust to moderate geometry errors.
- Gain scheduling gets the same result from plant data alone, at the price of more parameters to maintain.
- One PI is a fair option if it is tuned for the top: about 10 % more error in the Compare controllers table, but Ms 1.8 near the bottom against about 1.5 everywhere. One tuned at the bottom is only acceptable over a narrow level band.
Next on the ladder. If this were a surge tank, the right answer would be the opposite of tight control: averaging level control (phase 3).