Water is moving steadily towards the valve. Start the model to close it and launch a pressure wave upstream.
Three ways to check the result
Brute-force field sample vs. the Joukowsky / slow-closure estimate.
—Fixed-step probe measurement vs. distance divided by wave speed.
Run the timing experiment.Measured reflected-front timing vs. its characteristic travel path.
Run the timing experiment.REFERENCE NOTESThe science+
Governing equations
The model uses the linear one-dimensional water-hammer equations for gauge pressure p and mean velocity u:
For a thin-wall pipe with Poisson effects omitted, the approximate wave speed is:
The first-wave pressure scale is the Joukowsky relation, Δp = ρaΔu. For a linear closure slower than one round trip, the displayed screening estimate uses Δp ≈ 2ρLΔu/Tc.
How the solution is advanced
The two characteristic wave components are propagated with exact time delays between the valve and the fixed-pressure reservoir. The valve boundary is a linear velocity ramp. A fixed time accumulator drives the display, so animation frame rate does not change the physical solution. The timing experiment samples that exact solution at fixed intervals and interpolates threshold crossings.
Constants and assumptions
- Textbook constants: water density 998 kg/m³ and bulk modulus 2.2 GPa, representative values near room temperature.
- Illustrative inputs: pipe dimensions, elastic modulus, initial velocity and linear valve-closing time. They are not a design specification for a real installation.
- Illustrative screen: 120 MPa allowable hoop stress is used only to flag a thin-wall overload. The crack graphic is a warning marker, not a fracture or rupture simulation.
What is simplified
The pipe is straight, uniform and lossless. The fluid is single-phase and slightly compressible; the wall is linearly elastic. Friction, fittings, branches, cavitation, air pockets, nonlinear valve characteristics, temperature variation and structural vibration are omitted. The slow-closure pressure relation is an engineering estimate; the characteristic field is the lossless linear model.