Home▸Engineering & Materials▸Water Hammer: Pressure Transients in Pipes (2D)

Water Hammer: Pressure Transients in Pipes (2D)

A method-of-characteristics water-hammer lab: close a valve and watch the Joukowsky pressure surge bounce along the pipe, compare rapid vs. slow closure, and read the peak pressure live off a scrolling strip chart.

Engineering & Materials2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-water-hammer-transient-lab ↗ Open standalone

This 2D companion runs the exact analytic method-of-characteristics solution behind the Joukowsky surge equation: closing the valve launches a rectangular pressure pulse that bounces between the valve and the open reservoir with period 4L/a, and a slow-closure (Michaud) correction scales the peak down whenever the closure time exceeds the critical round-trip time 2L/a — so you can directly compare a fast "water hammer" closure against a gentle one on the same pipe, with the exact peak pressure read off a live strip chart instead of implied by an animation.

⚙ Under the hood

2D water-hammer lab driven by the Joukowsky equation (ΔP = ρaΔV) and an analytic method-of-characteristics square wave, with a Michaud slow-closure correction and a live pressure-at-valve strip chart.

water hammerjoukowsky equationpressure surgewave celerityfluid transientspipeline engineering

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What is the Joukowsky equation?

ΔP = ρ·a·ΔV — the peak pressure surge from an instantaneous flow-velocity change ΔV, where ρ is fluid density and a is the pressure wave's celerity in the pipe.

Why does a slower valve closure produce a smaller surge?

If closure takes longer than the pipe's critical round-trip time 2L/a, the reflected relief wave reaches the valve before it finishes closing, so the full Joukowsky peak never builds — the Michaud rule approximates the reduced peak as ΔP·(2L/a)/tc.

Why does pipe material change the peak pressure?

Stiffer walls (steel) carry the pressure wave faster than flexible ones (PVC); since the peak surge scales with celerity a, a stiffer pipe gives a sharper, higher surge for the same velocity change.

What did you find?

Add reproduction steps (optional)