Skip to main content

Derive continuity equation for unsteady pipe flow

Short answer

Mass conservation for a compressible fluid in an elastic pipe leads to (1/ρ)dp/dt + c² ∂v/∂s = 0. The celerity c accounts for water compressibility K and pipe elasticity D/(eE); for a rigid pipe, c = √(K/ρ).

Derive following continuity equation for unsteady flow in pipes 1ρdpdt+c2∂v∂s=0\frac{1}{\rho}\frac{dp}{dt} + c^2\frac{\partial v}{\partial s} = 0. Where c=K/ρc = \sqrt{K/\rho} is celerity and other symbols have their usual meanings.

The continuity equation expresses conservation of mass in a pipe in which the water is slightly compressible and the pipe wall is elastic.

Set-up

Take a control volume of length δs\delta s in a pipe of cross-section AA, with density ρ\rho and velocity vv along the pipe axis ss.

        mass in             mass out
  rho A v --> |<-- ds -->| --> rho A v + d(rho A v)/ds ds

Mass balance

The net mass flow into the element equals the rate of increase of mass inside it:

−∂(ρAv)∂sδs=∂(ρA δs)∂t-\frac{\partial(\rho A v)}{\partial s}\delta s=\frac{\partial(\rho A\,\delta s)}{\partial t} ∂(ρAv)∂s+∂(ρA)∂t=0\frac{\partial(\rho A v)}{\partial s}+\frac{\partial(\rho A)}{\partial t}=0

Expanding and dividing by ρA\rho A:

1ρ(∂ρ∂t+v∂ρ∂s)+1A(∂A∂t+v∂A∂s)+∂v∂s=0\frac{1}{\rho}\left(\frac{\partial\rho}{\partial t}+v\frac{\partial\rho}{\partial s}\right)+\frac{1}{A}\left(\frac{\partial A}{\partial t}+v\frac{\partial A}{\partial s}\right)+\frac{\partial v}{\partial s}=0

i.e.

1ρdρdt+1AdAdt+∂v∂s=0(1)\frac{1}{\rho}\frac{d\rho}{dt}+\frac{1}{A}\frac{dA}{dt}+\frac{\partial v}{\partial s}=0\qquad(1)

where d/dtd/dt is the derivative following the fluid.

Compressibility of water

From the bulk modulus, K=dpdρ/ρK=\dfrac{dp}{d\rho/\rho}:

1ρdρdt=1Kdpdt(2)\frac{1}{\rho}\frac{d\rho}{dt}=\frac{1}{K}\frac{dp}{dt}\qquad(2)

Elasticity of pipe wall

For a thin-walled pipe of diameter DD, thickness ee and modulus EE, the hoop stress is σ=pD/2e\sigma=pD/2e and the strain is ε=ΔD/D=σ/E\varepsilon=\Delta D/D=\sigma/E. As A∝D2A\propto D^2:

1AdAdt=2DdDdt=2ED2edpdt=DeEdpdt(3)\frac{1}{A}\frac{dA}{dt}=\frac{2}{D}\frac{dD}{dt}=\frac{2}{E}\frac{D}{2e}\frac{dp}{dt}=\frac{D}{eE}\frac{dp}{dt}\qquad(3)

Result

Substitute (2) and (3) in (1):

1K(1+KDeE)dpdt+∂v∂s=0\frac{1}{K}\left(1+\frac{KD}{eE}\right)\frac{dp}{dt}+\frac{\partial v}{\partial s}=0

Multiply by K/(1+KDeE)K/\left(1+\dfrac{KD}{eE}\right) and divide by ρ\rho:

1ρdpdt+K/ρ1+KDeE∂v∂s=0\frac{1}{\rho}\frac{dp}{dt}+\frac{K/\rho}{1+\dfrac{KD}{eE}}\frac{\partial v}{\partial s}=0

With celerity c=K/ρ1+KD/(eE)c=\sqrt{\dfrac{K/\rho}{1+KD/(eE)}}:

1ρdpdt+c2∂v∂s=0\boxed{\frac{1}{\rho}\frac{dp}{dt}+c^2\frac{\partial v}{\partial s}=0}

For a rigid pipe (E→∞E\to\infty), c=K/ρc=\sqrt{K/\rho}, which is the speed of sound in water (about 1480 m/s at 20 °C, with K≈2.2K\approx2.2 GPa); this is the form given in the question.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Hydraulics chapter 4 questions →