Skip to main content

Water hammer, Euler and continuity equations

Short answer

Water hammer is pressure surge from sudden velocity change. Unsteady momentum equation: partial V/partial t + g partial H/partial x + (f V|V|)/(2D) = 0. Continuity: partial H/partial t + (c^2/g) partial V/partial x = 0, with wave speed c = sqrt(K/rho)/(1+KD/(Et)).

Discuss Water hammer phenomenon. Develop Euler's equation as well as continuity equation for unsteady flow.

Water hammer phenomenon

When the velocity of water flowing in a pipe is changed quickly (a valve closed or opened suddenly, a pump or turbine started or stopped), the kinetic energy of the water is converted into pressure energy, and a high-intensity pressure wave travels through the pipe at the speed of sound in the water-pipe system (cc). The wave is reflected at the reservoir and at the valve, and the pressure may rise or fall by many times the normal pressure, with a noise like hammering. This is water hammer. It can burst pipes (pressure rise) or collapse them and cause column separation (pressure fall).

For instantaneous closure, the pressure rise is (Joukowsky)

Δp=ρcV0,ΔH=cV0g,c=K/ρ1+KDEt\Delta p = \rho c V_0,\qquad \Delta H = \frac{cV_0}{g},\qquad c = \sqrt{\frac{K/\rho}{1 + \dfrac{KD}{Et}}}

Euler (momentum) equation for unsteady pipe flow

Consider a short element of fluid of length dxdx in a pipe of cross-section AA and perimeter PP, inclined at an angle θ\theta to the horizontal, with xx measured along the pipe. Forces along the pipe:

  • Pressure: pA−(p+∂p∂xdx)A=−∂p∂xA dxpA - \left(p + \dfrac{\partial p}{\partial x}dx\right)A = -\dfrac{\partial p}{\partial x}A\,dx
  • Weight component: −ρgA dxsin⁡θ-\rho gA\,dx\sin\theta
  • Wall shear: −τ0P dx-\tau_0P\,dx

Newton's second law, with mass ρA dx\rho A\,dx and acceleration DVDt=∂V∂t+V∂V∂x\dfrac{DV}{Dt} = \dfrac{\partial V}{\partial t} + V\dfrac{\partial V}{\partial x}:

ρA dx(∂V∂t+V∂V∂x)=−∂p∂xA dx−ρgAsin⁡θ dx−τ0P dx\rho A\,dx\left(\frac{\partial V}{\partial t} + V\frac{\partial V}{\partial x}\right) = -\frac{\partial p}{\partial x}A\,dx - \rho gA\sin\theta\,dx - \tau_0P\,dx

Divide by ρA dx\rho A\,dx. With the piezometric head H=pγ+zH = \dfrac{p}{\gamma} + z (∂z∂x=sin⁡θ\dfrac{\partial z}{\partial x} = \sin\theta), the pressure and weight terms combine to −g∂H∂x-g\dfrac{\partial H}{\partial x}. The wall shear τ0=fρV∣V∣8\tau_0 = \dfrac{f\rho V|V|}{8} and PA=4D\dfrac{P}{A} = \dfrac{4}{D} give τ0PρA=fV∣V∣2D\dfrac{\tau_0P}{\rho A} = \dfrac{fV|V|}{2D}:

∂V∂t+V∂V∂x+g∂H∂x+fV∣V∣2D=0\boxed{\frac{\partial V}{\partial t} + V\frac{\partial V}{\partial x} + g\frac{\partial H}{\partial x} + \frac{fV|V|}{2D} = 0}

This is Euler's (momentum) equation for unsteady flow in a pipe. In water hammer problems the convective term V ∂V/∂xV\,\partial V/\partial x is small compared with ∂V/∂t\partial V/\partial t and is usually dropped.

Continuity equation for unsteady flow (elastic water and pipe)

Consider a pipe element of length dxdx. Mass inflow minus outflow equals the rate of change of mass in the element:

∂(ρAV)∂x+∂(ρA)∂t=0(or, equivalently, D(ρA)Dt+ρA∂V∂x=0)\frac{\partial(\rho AV)}{\partial x} + \frac{\partial(\rho A)}{\partial t} = 0 \quad(\text{or, equivalently, } \frac{D(\rho A)}{Dt} + \rho A\frac{\partial V}{\partial x} = 0)

Hence 1ρAD(ρA)Dt+∂V∂x=0\dfrac{1}{\rho A}\dfrac{D(\rho A)}{Dt} + \dfrac{\partial V}{\partial x} = 0. A change of pressure dpdp changes both the density and the area:

  • Water compressibility (bulk modulus KK): dρρ=dpK\dfrac{d\rho}{\rho} = \dfrac{dp}{K}
  • Pipe elasticity (thin wall, hoop stress pD2t\dfrac{pD}{2t}, strain dDD=D dp2tE\dfrac{dD}{D} = \dfrac{D\,dp}{2tE}): dAA=2dDD=D dptE\dfrac{dA}{A} = 2\dfrac{dD}{D} = \dfrac{D\,dp}{tE}

So d(ρA)ρA=dp(1K+DtE)=dpρc2\dfrac{d(\rho A)}{\rho A} = dp\left(\dfrac{1}{K} + \dfrac{D}{tE}\right) = \dfrac{dp}{\rho c^2}, which defines the wave speed

c2=K/ρ1+KDtEc^2 = \frac{K/\rho}{1 + \dfrac{KD}{tE}}

Therefore 1ρc2DpDt+∂V∂x=0\dfrac{1}{\rho c^2}\dfrac{Dp}{Dt} + \dfrac{\partial V}{\partial x} = 0. Using p=γ(H−z)p = \gamma(H - z), DpDt=γ(∂H∂t+V∂H∂x−Vsin⁡θ)\dfrac{Dp}{Dt} = \gamma\left(\dfrac{\partial H}{\partial t} + V\dfrac{\partial H}{\partial x} - V\sin\theta\right):

∂H∂t+V∂H∂x−Vsin⁡θ+c2g∂V∂x=0\boxed{\frac{\partial H}{\partial t} + V\frac{\partial H}{\partial x} - V\sin\theta + \frac{c^2}{g}\frac{\partial V}{\partial x} = 0}

The terms V ∂H/∂xV\,\partial H/\partial x and Vsin⁡θV\sin\theta are small, so the usual form is ∂H∂t+c2g∂V∂x=0\dfrac{\partial H}{\partial t} + \dfrac{c^2}{g}\dfrac{\partial V}{\partial x} = 0.

Together, the momentum and continuity equations govern water hammer. With friction neglected they combine into the wave equation ∂2H∂t2=c2∂2H∂x2\dfrac{\partial^2H}{\partial t^2} = c^2\dfrac{\partial^2H}{\partial x^2}, whose solutions are waves travelling at ±c\pm c; for a sudden change of velocity ΔV\Delta V they give ΔH=∓cgΔV\Delta H = \mp\dfrac{c}{g}\Delta V.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Hydraulics chapter 4 questions →