| Symbol | Meaning | Value | Unit |
|---|---|---|---|
| A | tank cross-section | 0.5 | m² |
| H | tank height | 2.0 | m |
| Cv_max | inflow at 100 % valve | 0.010 (10 L/s) | m³/s |
| k | drain coefficient | 0.005 | m^2.5/s |
| τ_v | valve/actuator lag | 5 (adjustable) | s |
| F_dist | disturbance outflow (negative = extra inflow) | slider | m³/s (shown in L/s) |
| u, v | controller output, valve position | 0–100 | % |
Linearised about h₀: process gain K = (Cv_max/100)·2√h₀/k ≈ 0.04 m/% and time constant τ = 2A√h₀/k ≈ 200 s at h₀ = 1 m. The tank self-regulates: with the valve fixed, level settles where Cv_max·v/100 = k√h + F_dist. At full valve with no disturbance the steady state would be h = (Cv_max/k)² = 4 m > H, so the tank can overflow.
Units: Kp in %/m (percent output per metre of level error), Ti and Td in seconds, Ti = 0 disables integral action. The controller is sampled every Ts and its output is held constant between samples (zero-order hold). The plant is integrated with fixed-step RK4 at Δt = 0.05 s; sim speed only changes how many steps run per animation frame, so results are identical at any speed or frame rate.
Auto/Manual, bumpless: in MANUAL the operator sets the output; the controller keeps tracking (I = u − P − D) so switching back to AUTO starts from the same output with no bump. Switching to MANUAL holds the last automatic output.
Default tuning, from IMC/lambda rules for the linearised first-order process (Ti ≈ τ, Kp = τ/(K·λ) with λ ≈ 50 s): Kp = 100 %/m, Ti = 200 s, Td = 0 s, Ts = 0.5 s. A +0.25 m SP step settles (±2 % band) in about 2.7 min with <1 % overshoot. Raise Kp or cut Ti to see overshoot and oscillation; use a big SP step (e.g. 1 → 1.9 m) with anti-windup "None" to see integral windup.
Incompressible liquid, constant density, perfectly mixed, vertical cylindrical tank with constant area; free gravity discharge (no downstream back-pressure); valve inherent characteristic linear and installed at constant ΔP; ideal level transmitter (no noise or lag); no dead time beyond the sampling and the valve lag. Hobby/learning model — not a design tool.