03 — Hydraulic Dynamics: Reservoir, PenstockKP and Surge Tank

This note develops the hydraulic subsystem using OpenHPL component logic rather than a generic single-flow approximation.

1. Reservoir

For a constant or externally prescribed level, the outlet pressure is hydrostatic:

$$p_o=p_{atm}+\rho gh.$$

For a dynamic reservoir, mass conservation gives

$$\frac{dm}{dt}=\dot m_i-\dot m_o.$$

The OpenHPL implementation also includes a momentum balance with pressure, gravity, friction, and momentum-flux terms.

2. PenstockKP state

PenstockKP uses pressure and mass flow as conservative variables:

$$U=\begin{bmatrix}p\\ \dot m\end{bmatrix}.$$

The continuous balance law is

$$\frac{\partial U}{\partial t}+\frac{\partial F}{\partial x}=S.$$

The pressure-density relation is approximated by

$$\rho\approx\rho_{atm}\left[1+\beta(p-p_{atm})\right],$$

and with pipe-wall elasticity the effective area changes with pressure, leading to a total compressibility $\beta_{tot}$.

3. Finite-volume form

The penstock is divided into $N$ cells. For cell $j$,

$$\dot U_j=-\frac{\hat F_{j+1/2}-\hat F_{j-1/2}}{\Delta x}+S_j.$$

The KP central-upwind scheme reconstructs states at cell interfaces and computes wave-propagation eigenvalues. A characteristic wave speed is related to

$$c\sim\sqrt{\frac{A}{A_{atm}\rho_{atm}\beta_{tot}}}.$$

This means pressure-wave dynamics are explicitly retained instead of collapsed into one water-starting-time parameter.

4. Gravity and friction source

OpenHPL's source vector contains gravity and Darcy friction. In compact notation,

$$S_m=\rho A g\sin\alpha-F_f,$$

with friction scaling approximately as

$$F_f\propto \rho\,v|v|.$$

5. Surge tank

The surge tank introduces storage and a free-surface state. At minimum, continuity requires

$$A_s\dot h_s=Q_{in}-Q_{out}.$$

OpenHPL's surge-tank model goes further and can represent momentum dynamics, air-cushion behavior, sharp-orifice losses, and throttle-valve effects. Therefore the surge tank may add more than one effective dynamic state depending on the selected formulation.

6. Reduced hydraulic model

For control studies, the detailed hydraulic state

$$x_h=[p_1,\ldots,p_N,\dot m_1,\ldots,\dot m_N,h_s,\ldots]^T$$

may be reduced to a lower-order model

$$\dot x_{h,r}=A_hx_{h,r}+B_h\Delta y_g,$$

only after choosing an equilibrium and preserving the dominant water-column and surge modes.

7. FCR relevance

FCR acts through guide-vane motion. Therefore the important hydraulic path is

$$\Delta y_g\to\Delta\dot m\to\Delta p\to\Delta P_m.$$

Penstock elasticity and surge dynamics can introduce resonances and nonminimum-phase behavior that are invisible in a static turbine-power approximation.