EIGENROOMLAB WORKSHEET 34ANSWER KEY · FOR INSTRUCTORSWater tank
A tangent is a local model
Goal
Test where a tangent (linearized) model of a draining tank stops predicting the real level.
Setup
Lab eigenroom.com/lab/tank?lesson=local-tank-model · short link eigenroom.com/local-tank-model
Open it on a phone or a computer; there is nothing to log in to or install. The link loads run A's settings:
- Tank area A
- 0.1 m²
- Outlet coefficient c
- 0.003 m⁵ᐟ²/s
- Linearization height h₀
- 0.5 m
- Initial height
- 0.5 m
- Target height
- 0.8 m
- Pump control
- Manual step about q₀
- Flow step Δq
- 0.0002 m³/s
- Pump limit
- 0.005 m³/s
- Kp
- 0.004 m²/s
- Ki
- 0.00003 m²/s²
- Anti-windup
- On
- Extra drain from 30 s
- 0 m³/s
- APreset, exactly as the link opens it.
- BChange only: Flow step Δq → 0.0015 m³/s.
- CChange only: Flow step Δq → -0.0015 m³/s. (ext.)
1. Predict
Will a linear model around h₀ = 0.5 m match both a small and a large flow change?
Outflow is c√h. The tangent slope at h₀ is c/(2√h₀), giving a local first-order model. The linear trace uses the same actual pump signal; it is not a separately controlled plant. Large excursions make the tangent less representative. The run stops at an empty tank or the 2 m rim.
2. Observe
| Quantity | Where to read it | A | B | C ext. |
|---|---|---|---|---|
| Nonlinear height at t = 30 s (m) | Readout at 30 s | 0.54459 m | 0.84251 m | 0.18243 m |
| Nonlinear height at t = 120 s (m) | Readout at 120 s | 0.58945 m | 1.2716 m | 0.043282 m |
| Linear prediction at t = 120 s (m) | Readout at 120 s | 0.58689 m | 1.1517 m | -0.15165 m |
| Nonlinear − linear height at t = 120 s (m) | Readout at 120 s | 0.002559 m | 0.12 m | 0.1949 m |
Values computed by State-feedback, tank and RLC engine 1.0.0 at the settings above. A replay readout can differ in the last digit if the slider is not exactly at the stated time; values read from a plot are approximate.
3. Explain
How well does the tangent model predict each run at 120 s?
Run A: nonlinear 0.58945 m, linear 0.58689 m, a gap of 0.002559 m. Run B: 1.2716 m and 1.1517 m, a gap of 0.12 m. The small step stays near h₀, where the tangent fits √h; the large one climbs far along the curve.
Which way is the linear model wrong in run B, and why?
It predicts too low a level (1.1517 m against 1.2716 m). The tangent to the concave outflow curve c√h lies above it, so away from h₀ the linear model overestimates the outflow and expects the tank to settle lower.
Extension (optional)
Try Δq = -0.0015 m³/s, a large decrease (run C). Which way is the linear model wrong now?
Still too low: at 120 s the tank is at 0.043282 m while the linear model says -0.15165 m, a level below an empty tank. The tangent lies above the outflow curve on both sides of h₀, so it overestimates the outflow whichever way the level moves, and nothing stops a linear model from predicting impossible values.