# A Comparison of Different Methods for Modelling Water Hammer Valve Closure with CFD

^{1}

^{2}

^{3}

^{*}

## Abstract

**:**

## 1. Introduction

_{f}, A, Δp, Δp

_{f}, and q are the flow rate, length between the measuring cross-sections, density, final limit of integration, cross-section area, differential pressure, pressure losses due to friction, and leakage flow rate after valve closure. Transient viscous losses shall be estimated accurately during the water hammer to calculate the flow rate accurately. The existing evaluation method assumes one-dimensional flow limiting its applicability considerably. There is a need to extend the evaluation method to account for geometry variation as well as for second flows. Thus, 3-dimensional numerical simulations to evaluate the experimental data seem to be the next step for a better overall accuracy of the flow rate estimated.

## 2. Materials and Methods

#### 2.1. Test Case

^{3}/s.

^{3}/s, i.e., a Reynolds number Re = 7 × 10

^{5}.

#### 2.2. Mathematical Modelling

_{i}, and µ are the pressure, fluid density, mean velocity, and fluid dynamic viscosity, respectively. To model the Reynolds shear stress term ($-\rho \overline{{u}_{i}{u}_{j}}$) in the turbulent flow, the low Reynolds k-ω SST model [18] is used. Ref. [12] demonstrated that low-Re SST k-ω turbulence models predict more acceptable results for pressure variation during water hammer than high-Re turbulence models. The k-ε model with wall functions cannot capture the variation of the velocity profile close to the wall. This turbulence model was used in similar studies with satisfactory results [4,10,11,12]. To model the fluid compressibility, Hooke’s law with Equation (4) describing the variation of the density with the pressure [19] is used. The effects of pipe elasticity [11] are accounted in modified bulk modulus ${K}_{f}^{\prime}$, Equation (5), where E, e, and D are the Young’s modulus of elasticity, thickness, and pipe diameter, respectively.

#### 2.3. Valve Closure Modeling

#### 2.3.1. Immersed Solid Method

#### 2.3.2. Dynamic Mesh

#### 2.3.3. Sliding Mesh

#### 2.4. Computational Setup

^{+}< 1 at the wall. Moreover, a finer mesh close to the valve is also used to have better accuracy, see Figure 6.

^{6}, 2.4 × 10

^{6}, and 4.5 × 10

^{6}are made using a time step size of 0.1 ms to study the effect of the mesh on the transient simulation solution. The average aspect ratio is around 1021, and the skewness is 0.13.

^{6}nodes is considered for the simulation.

## 3. Results

#### 3.1. Pressure Variation

#### 3.2. Wall Shear Stress Variation

#### 3.3. 3D Effects

#### 3.4. Computational Cost

## 4. Conclusions and Discussion

## Author Contributions

## Funding

## Data Availability Statement

## Acknowledgments

## Conflicts of Interest

## References

- IEC 60041, I.; Field Acceptance Tests to Determine the Hydraulic Performance of Hydraulic Turbines, Storage Pumps and Pump-Turbines. International Electrotechnical Commission: Geneva, Switzerland, 1991.
- Zhang, X.; Cheng, Y.; Xia, L.; Yang, J. CFD Simulation of Reverse Water-Hammer Induced by Collapse of Draft-Tube Cavity in a Model Pump-Turbine during Runaway Process. In Proceedings of the IOP Conference Series: Earth and Environmental Science, Grenoble, France, 4–8 July 2016; Volume 49. [Google Scholar]
- Wu, D.; Yang, S.; Wu, P.; Wang, L. MOC-CFD Coupled Approach for the Analysis of the Fluid Dynamic Interaction between Water Hammer and Pump. J. Hydraul. Eng.
**2015**, 141, 06015003. [Google Scholar] [CrossRef] - Saemi, S.; Raisee, M.; Cervantes, M.J.; Nourbakhsh, A. Numerical Investigation of the Pressure-Time Method Considering Pipe with Variable Cross Section. J. Fluids Eng. Trans. ASME
**2018**, 140, 101401. [Google Scholar] [CrossRef] - Saemi, S.D.; Raisee, M.; Cervantes, M.J.; Nourbakhsh, A. Computation of Laminar and Turbulent Water Hammer Flows. In Proceedings of the 11th World Congress on Computational Mechanics (WCCM XI) 5th European Conference on Computational Mechanics (ECCM V) 6th European Conference on Computational Fluid Dynamics (ECFD VI), Barcelona, Spain, 20–25 June 2014. [Google Scholar]
- Martin, N.M.C.; Wahba, E.M. On the Hierarchy of Models for Pipe Transients: From Quasi-Two-Dimensional Water Hammer Models to Full Three-Dimensional Computational Fluid Dynamics Models. J. Press. Vessel. Technol. Trans. ASME
**2022**, 144, 021402. [Google Scholar] [CrossRef] - Nikpour, M.R.; Nazemi, A.H.; Dalir, A.H.; Shoja, F.; Varjavand, P. Experimental and Numerical Simulation of Water Hammer. Arab. J. Sci. Eng.
**2014**, 39, 2669–2675. [Google Scholar] [CrossRef] - Li, J.; Wu, P.; Yang, J. Cfd Numerical Simulation of Water Hammer in Pipeline Based on the Navier-Stokes Equation. In Proceedings of theV European Conference on Computational Fluid Dynamics, Lisbon, Portugal, 14–17 June 2010. [Google Scholar]
- Mandair, S.; Magnan, R.; Morissette, J.-F.; Karney, B. Energy-Based Evaluation of 1D Unsteady Friction Models for Classic Laminar Water Hammer with Comparison to CFD. J. Hydraul. Eng.
**2020**, 146, 04019072. [Google Scholar] [CrossRef] - Saemi, S.; Cervantes, M.J.; Raisee, M.; Nourbakhsh, A. Numerical Investigation of the Pressure-Time Method. Flow Meas. Instrum.
**2017**, 55, 44–58. [Google Scholar] [CrossRef] - Saemi, S.; Sundström, L.R.J.; Cervantes, M.J.; Raisee, M. Evaluation of Transient Effects in the Pressure-Time Method. Flow Meas. Instrum.
**2019**, 68, 101581. [Google Scholar] [CrossRef] - SaemI, S.; Raisee, M.; Cervantes, M.J.; Nourbakhsh, A. Computation of Two- and Three-Dimensional Water Hammer Flows. J. Hydraul. Res.
**2019**, 57, 386–404. [Google Scholar] [CrossRef] - Wang, H.; Zhou, L.; Liu, D.; Karney, B.; Wang, P.; Xia, L.; Ma, J.; Xu, C. CFD Approach for Column Separation in Water Pipelines. J. Hydraul. Eng.
**2016**, 142, 04016036. [Google Scholar] [CrossRef] [Green Version] - Yang, S.; Wu, D.; Lai, Z.; Du, T. Three-Dimensional Computational Fluid Dynamics Simulation of Valve-Induced Water Hammer. Proc. Inst. Mech. Eng. C J. Mech. Eng. Sci.
**2017**, 231, 2263–2274. [Google Scholar] [CrossRef] - Han, Y.; Shi, W.; Xu, H.; Wang, J.; Zhou, L. Effects of Closing Times and Laws on Water Hammer in a Ball Valve Pipeline. Water
**2022**, 14, 1497. [Google Scholar] [CrossRef] - Kalantar, M.; Jonsson, P.; Dunca, G.; Cervantes, M.J. Numerical Investigation of the Pressure-Time Method. IOP Conf. Ser. Earth Environ. Sci.
**2022**, 1079, 012075. [Google Scholar] [CrossRef] - Sundstrom, L.R.J.; Cervantes, M.J. Transient Wall Shear Stress Measurements and Estimates at High Reynolds Numbers. Flow Meas. Instrum.
**2017**, 58, 112–119. [Google Scholar] [CrossRef] - Menter, F.R. Two-Equation Eddy-Viscosity Turbulence Models for Engineering Applications. AIAA J.
**1994**, 32, 1598–1605. [Google Scholar] [CrossRef] [Green Version] - Korteweg, D.J. Ueber Die Fortpflanzungsgeschwindigkeit Des Schalles in Elastischen Röhren. Ann. Phys.
**1878**, 241, 525–542. [Google Scholar] [CrossRef] [Green Version] - Yoon, Y.; Park, B.H.; Shim, J.; Han, Y.O.; Hong, B.J.; Yun, S.H. Numerical Simulation of Three-Dimensional External Gear Pump Using Immersed Solid Method. Appl. Therm. Eng.
**2017**, 118, 539–550. [Google Scholar] [CrossRef] - ANSYS, Inc. ANSYS Fluent User’s Guide, Release 17.2; ANSYS, Inc.: Canonsburg, PA, USA, 2016. [Google Scholar]

**Figure 1.**The water hammer test rig schematic. Figure courtesy of Sundstrom et al. [17].

**Figure 3.**Overlapping of the fluid zone and immersed solid zone at time t =4 s (close to the end of the valve closure) in the immersed solid method for modelling valve movement.

**Figure 4.**Dynamic mesh method grid cut in half: (

**a**) before valve movement; (

**b**) at t = 4 s close to the end of valve closure.

**Figure 5.**Sliding mesh method grid cut in half: (

**a**) at t = 0 s before valve movement; (

**b**) at t = 4 s close to the end of valve closure.

**Figure 6.**Immersed solid method grid: (

**a**) fine grid near the gate; (

**b**) grid at the pipe cross-section.

**Figure 7.**Average absolute pressure monitoring at section 11 m upstream of valve for three different grids.

**Figure 8.**Average absolute pressure monitoring at section 11 m upstream of valve for four different time steps.

**Figure 9.**The variation of differential pressure with time during the valve closure between two cross-sections 11 m and 15 m upstream of the valve.

**Figure 10.**The deviation of estimated differential pressure by sliding mesh with the experiment between two cross-sections 11 m and 15 m upstream of the valve.

**Figure 11.**The time variation of the magnitude wall shear stress at cross-sections 10 m upstream of the valve.

**Figure 12.**Streamlines and axial velocity contour of the flow inside the pipe at the end of the valve closure: (

**a**) immersed solid method; (

**b**) dynamic mesh; (

**c**) sliding mesh.

**Figure 13.**Streamlines of the flow inside the pipe at the end of the valve closure for the different valve modelling method: (

**a**) immersed solid; (

**b**) dynamic mesh; (

**c**) sliding mesh.

**Figure 14.**Axial velocity profile at the vertical line with distances of: (

**a**) 25cm; (

**b**) 50 cm; (

**c**) 75 cm upstream of the valve at the end of the valve closure.

Method | Number of CPU (2.60 GHz) | App. Time (h) |
---|---|---|

Immersed solid method | 48 | 60 |

Dynamic mesh method | 48 | 170 |

Sliding mesh method | 48 | 65 |

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |

© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

## Share and Cite

**MDPI and ACS Style**

Neyestanaki, M.K.; Dunca, G.; Jonsson, P.; Cervantes, M.J.
A Comparison of Different Methods for Modelling Water Hammer Valve Closure with CFD. *Water* **2023**, *15*, 1510.
https://doi.org/10.3390/w15081510

**AMA Style**

Neyestanaki MK, Dunca G, Jonsson P, Cervantes MJ.
A Comparison of Different Methods for Modelling Water Hammer Valve Closure with CFD. *Water*. 2023; 15(8):1510.
https://doi.org/10.3390/w15081510

**Chicago/Turabian Style**

Neyestanaki, Mehrdad Kalantar, Georgiana Dunca, Pontus Jonsson, and Michel J. Cervantes.
2023. "A Comparison of Different Methods for Modelling Water Hammer Valve Closure with CFD" *Water* 15, no. 8: 1510.
https://doi.org/10.3390/w15081510