- 2079 Shrawan · 4+4 marks
Water hammer: rectangular grid and specified intervals
Short answer
Use characteristic equations C+ and C- integrated by finite differences. On diagonal grid with dt=dx/a, no interpolation: K1=H_A+BpQ_A-RpQ_A|Q_A|, K2=H_B-BpQ_B+RpQ_B|Q_B|, Q_P=(K1-K2)/(2Bp), H_P=(K1+K2)/2. If dt is smaller, interpolate R and S with theta=a dt/dx, then use same formulas with R and S and friction length a dt.
Derive a numerical solution for evaluating the water hammer problem. (a) Using a rectangular grid, characteristics passing through the diagonal. (b) Using specified time intervals (characteristics not on the diagonal).
Water hammer is the pressure surge produced by a rapid change of velocity (valve closure, pump trip). It is solved with the characteristic equations of unsteady pipe flow.
For unsteady flow in a closed pipe (area , diameter , wave speed , Darcy-Weisbach factor ), with head and discharge :
Momentum:
Continuity:
Along () and ():
Let .
(a) Rectangular grid: characteristics through the diagonal
Divide the pipe into reaches of length and choose . The and lines through P then pass exactly through the grid points A and B of the previous time level.
t+dt : P
/|\
C+ / | \ C-
t : A----C----B
Integrating from A to P and from B to P (friction at the known end), with :
With and :
No interpolation is needed. Boundaries: upstream reservoir, and ; closed downstream valve, and .
(b) Specified time intervals: characteristics not on the diagonal
When and are chosen independently (for example to get the same in pipes of different length), the Courant condition must hold. The characteristics through P cut the time line at points R and S between grid points.
t+dt : P
/|\
C+ / | \ C-
t : A-----R----C----S-----B
With , linear interpolation gives
The characteristic equations from R and S to P (friction length , so ) are
The interpolation introduces numerical damping (diffusion), which grows as departs from 1, so the diagonal grid of part (a) is preferred when possible.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- MOC numerical, characteristics not on diagonal (25 cm) · Computational Techniques in Civil Engineering, chapter 6 · asked 2×
- MOC numerical, characteristics not on diagonal (30 cm) · Computational Techniques in Civil Engineering, chapter 6 · asked 2×
- Algorithm for water hammer using MOC · Computational Techniques in Civil Engineering, chapter 6
- Numerical solution techniques, advantages and suitability · Computational Techniques in Civil Engineering, chapter 1 · asked 4×
- Hydraulic turbine characteristics and water starting time · Power Plant Equipment, chapter 2
- Surge and water hammer: 25 m³/s, 15 m surge tank · Hydropower Engineering, chapter 6 · asked 3×
- Surge and water hammer: 45 m³/s, 20 m surge tank · Hydropower Engineering, chapter 6 · asked 2×
- Surge and water hammer: 60 m³/s, 30 m surge tank · Hydropower Engineering, chapter 6 · asked 2×
All Computational Techniques in Civil Engineering chapter 6 questions →