MY SIMULATOR / FIELD LAB
ENGINEERING PHYSICS · INTERACTIVE MODEL
ENERGY & INFRASTRUCTURE PHENOMENON

Water hammer

A closing valve launches a pressure wave through the pipe.

EXACT CHARACTERISTIC MODEL
WAVE SPEED SCALED
—m/s
Korteweg estimate
PEAK PRESSURE RISE SCALED
—MPa
First-wave estimate
ROUND-TRIP TIME SCALED
—ms
Reservoir and valve
VALVE PRESSURE SCALED
—bar
Live gauge pressure
WHAT YOU ARE SEEING

Water is moving steadily towards the valve. Start the model to close it and launch a pressure wave upstream.

MODEL CROSS-CHECKS

Three ways to check the result

LIVE · SCALED
01
Peak pressure

Brute-force field sample vs. the Joukowsky / slow-closure estimate.

—
CHECKING
02
First-wave arrival

Fixed-step probe measurement vs. distance divided by wave speed.

Run the timing experiment.
PENDING
03
Reservoir reflection

Measured reflected-front timing vs. its characteristic travel path.

Run the timing experiment.
PENDING
REFERENCE NOTESThe science+

Governing equations

The model uses the linear one-dimensional water-hammer equations for gauge pressure p and mean velocity u:

∂p/∂t + ρa² ∂u/∂x = 0
∂u/∂t + (1/ρ) ∂p/∂x = 0

For a thin-wall pipe with Poisson effects omitted, the approximate wave speed is:

a = √[(K/ρ) / (1 + KD/(Et))]

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.

Educational model only. Real pipe transients require site-specific data and engineering analysis.
Made with 🤖 ChatGPT