The stirred tank: when derivative earns its keep

On the flow loop derivative only added noise. On a lag-dominant vessel, does D finally pay for itself?

🌡️ Stirred tank temperaturePID is the answer7 guided steps
Step 1
Step 1 of 7

The situation

A 200 L jacketed vessel, agitated, with cold feed running through it. TV-401 heats the jacket, and TT-401 sits in a thermowell. Three lags in series (vessel about 14 minutes, jacket about 35 s, thermowell 15 s) and practically no dead time: the control view shows the plant. Recipe changes move the setpoint; upstream changes the feed temperature and the throughput.

Step 2
Step 2 of 7

On-off, like a thermostat

A thermostat works for a room. Here it overshoots recipe steps by up to 22 % and never settles, because by the time the heating switches off the jacket is already hot. On-off is fine where a few degrees of swing don't matter; for a reactor recipe they do.

Running the tests…
Step 3
Step 3 of 7

A SIMC PI

The bump test gives roughly K≈0.86K \approx 0.86, τ≈850\tau \approx 850 s and θ≈36\theta \approx 36 s effective (the small lags lumped together by the half rule). SIMC with τc=2θ\tau_c = 2\theta gives Kc≈9K_c \approx 9, Ti≈430T_i \approx 430 s. The setpoint steps come in without overshoot. Feed upsets peak at about 3 °C and take around 9 minutes to recover. It's a respectable loop, robust at Ms≈1.6M_s \approx 1.6.

Running the tests…
Step 4
Step 4 of 7

Why not just more gain?

Push the PI to Kc≈13.4K_c \approx 13.4 and the upsets shrink, but the phase margin falls to about 37° and MsM_s passes 2. The model-mismatch test (a fouled jacket) overshoots by 9 %. The small lags are eating the phase: a PI can't go faster without becoming fragile.

Comparing in this step:PI (SIMC)PI, gain pushed
Running the tests…
Step 5
Step 5 of 7

Add derivative

SIMC's PID rule uses the second-order model: TdT_d cancels the jacket lag. At the same gain the loop is now robust (Ms≈1.5M_s \approx 1.5, phase margin about 58°). The worst upset drops from 3.2 °C to about 2.1 °C, and recovery is two and a half minutes faster. This is what derivative is for: its phase lead pays for the gain.

Comparing in this step:PI (SIMC)PI, gain pushedPID (SIMC, a = 0.5)
Running the tests…
Step 6
Step 6 of 7

The price: filter the derivative

With the default filter ratio a=0.1a = 0.1 the derivative's high-frequency gain is 11 × KcK_c. The valve moves about 12 times as much as with the PI, and on the noisy-thermocouple test much more. Raising aa to 0.5 keeps nearly all the benefit (the process lags are tens of seconds; the noise is per-sample) at about 4 times the PI's activity. In PID_Compact that is Retain.CtrlParams.TdFiltRatio.

Comparing in this step:PID (SIMC, a = 0.1)PID (SIMC, a = 0.5)
Running the tests…
Verdict
Step 7 of 7

Verdict

PID with a filtered derivative.

  • On a lag-dominant process with several lags, derivative is worth having: smaller upsets and more margin.
  • Set the filter ratio to 0.3–0.5 and DWeighting to 0.
  • If the valve can't take the extra movement, the SIMC PI is a respectable second.
  • Nothing further up the ladder is needed.

Everything in this case, through every test

Running the tests…