The surge tank: averaging level control

A level loop that holds its setpoint perfectly and is still doing the wrong job. What should a buffer tank's controller actually do?

🛢️ Surge tank levelPID is the answer6 guided steps
Step 1
Step 1 of 6

The situation

T-601 sits between an upstream section that swings its throughput and a downstream section that wants a steady feed. P-601 and LV-601 set the outflow. The tank holds 12 m³, and at 1.5 m there are 6 m³ of room each way.

The mechanical view shows how long that room lasts for a given imbalance: about 24 minutes for a 15 m³/h swing.

Step 2
Step 2 of 6

Baseline: a level loop tuned like any other

SIMC on the integrating model gives a tight PI (Kc≈6K_c \approx 6, Ti≈7.5T_i \approx 7.5 min, inverted).

The level is a picture of good control: it stays within about ±0.2 m of 1.5 m. But look at the valve. The outflow copies the inflow: it swings from 17 to 81 % (10 to 48 m³/h) and changes by up to 13 m³/h in a minute. The downstream section gets every upstream swing, just a little later. The tank's 12 m³ are not being used.

Running the tests…
Step 3
Step 3 of 6

Averaging control: use the room

Decide how far the level may move: say a quarter of the span (0.75 m) for an upset of a quarter of the outlet's capacity (15 m³/h). The Lambda rule for integrating processes then gives the arrest time

λ=e⋅Δhmaxk′ Δ≈33 min\lambda = \frac{e\cdot\Delta h_{max}}{k'\,\Delta} \approx 33\ \text{min}

and from it Kc≈0.73K_c \approx 0.73, Ti≈65T_i \approx 65 min. Auto-tune does exactly this on this process.

Result. The level now wanders between 0.9 and 2.2 m. The outflow moves between 37 and 70 % and never faster than about 1.6 m³/h per minute: eight times gentler. Valve travel drops from 21 to under 3 strokes an hour.

The scorecard's IAE is several times worse. That isn't a failure, it's the point: IAE measures distance from setpoint, and for a buffer tank that is the wrong goal.

Comparing in this step:Tight PIAveraging PI
Running the tests…
Step 4
Step 4 of 6

P-only, and where the limits come in

Many surge tanks run P-only: Kc=1/(k′λ)≈0.37K_c = 1/(k'\lambda) \approx 0.37. The level settles wherever the flows balance, and that offset doesn't matter in a buffer. The outflow is smoother still, about 0.7 m³/h per minute at most.

The cost is room. P-only lets the level reach 2.4 m in the surge test, and 2.5 m (of 3) on the model mismatch test, where the tank is effectively 30 % smaller.

So on a real tank the limits get their own protection: a high-level override that opens the outlet, or a trip. That isn't a reason to tighten the loop.

Comparing in this step:Averaging PIAveraging P-only
Running the tests…
Step 5
Step 5 of 6

A high-level override

A long surge (half an hour near full rate) is more than the averaging controller should absorb: the level climbs to 2.76 m of a 3 m tank.

Add a second, tight level controller with its setpoint at 2.4 m (Kc=6K_c = 6, Ti=7.5T_i = 7.5 min) and high-select the two outputs, because the override wants more outflow. With tracking, it sits idle until the level reaches 2.4 m, then takes the valve. The level stops at 2.5 m: the outflow has to swing up to 100 % first, so set the limit with margin.

The other side of tracking. When the surge ends, the averaging controller takes the valve back from where the override left it, near 100 %. Being slow, it takes a while to bring the outflow down, and the level dips to 0.66 m. A low-level override would catch that too.

Comparing in this step:Averaging PIAveraging + high-level override
Running the tests…
Verdict
Step 6 of 6

Verdict

A slow PI or P-only, tuned from the room the tank has.

  • Choose the arrest time from the allowed level swing, not from the loop's speed.
  • Judge the loop by how smooth the outflow is, and whether the level stays inside its limits.
  • Protect the limits with an override or a trip. Then the PI can run looser still: about three times calmer through normal surges, with a sharp move when the override takes over on a big one.

This is PID winning: nothing up the ladder does the job better, as long as the tuning matches what the tank is for.

Everything in this case, through every test

Running the tests…