Governing equations
∂p/∂t + ρa² ∂u/∂x = 0
∂u/∂t + (1/ρ) ∂p/∂x = 0
Here p is the transient pressure above the steady operating pressure, u is the velocity perturbation, ρ = 1,000 kg/m³ is the textbook water-density approximation, and a is the effective wave speed. The solver transports the characteristic variables p ± ρau on a fixed grid. Its Courant number is 0.85 (scaled).
Δp = ρaΔu · σθ ≈ (P D)/(2e)
The first relation is the textbook Joukowsky limit for rapid closure. The second is the textbook thin-wall hoop-stress estimate, using internal gauge pressure P, diameter D and wall thickness e. The slider ranges keep the diameter-to-thickness ratio at least 10 (illustrative).
Boundary conditions
The upstream reservoir fixes the transient pressure to zero. The valve boundary reduces its permitted flow speed linearly over the selected closing time. A fixed-step, first-order upwind characteristic scheme uses a Courant number of 0.85, below its stability limit.
Simplifications and limits
- One-dimensional, single-phase water flow in a straight, uniform pipe.
- No friction, branches, elevation changes, pump dynamics, or detailed valve geometry.
- Wave speed is an effective input; pipe elasticity and water compressibility are not solved separately.
- Generic steel yield strength is 250 MPa (illustrative). The wall-yield marker is an idealised trigger, not a rupture-flow model.
- Atmospheric pressure is 101.3 kPa (textbook); water vapour pressure is approximately 2.3 kPa absolute at 20 °C (textbook). If the computed absolute pressure reaches it, the model pauses; column separation and cavitation bubbles are not simulated.
All slider settings and the generic pipe are illustrative, not a design tool. Real pipelines require transient analysis with site-specific geometry, materials, supports, valves and protection devices.