Introducing a new computer code, H-Hammer, to solve fluid transients in pipe flow

Creative Commons License

Dalgıç H., Bozkuş Z.

the 13th International Congress on Advances in Civil Engineering, 12 - 14 September 2018

  • Publication Type: Conference Paper / Full Text
  • Middle East Technical University Affiliated: Yes


Sudden change of flow conditions in a pipeline may cause the flow to become time dependent and would start an undesirable physical phenomenon called water hammer. These sudden changes can be caused by variety of scenarios and some of them include valve operations (opening or closing), sudden power loss at pump stations and load rejections or load acceptance at the turbines, etc. Because of its very costly and sometimes deadly consequences, it is quite important that transient scenarios be considered for pipe systems at design stage to ensure safety and longevity of them. The present study is an attempt to develop a comprehensive computer software that is capable of simulating, analyzing and solving most commonly encountered fluid transient events. The code developed, titled as H-Hammer, is already capable of using many boundary conditions to tackle a large variety of problems involving fluid transients. Within the code, the Method of Characteristics (MoC) are used to solve the basic unsteady pipe flow equations. The code utilizes AutoCAD, Visual Basic 6.0 and MS Excel all together for the purpose of analyses. The accuracy of the software was tested by solving some existing problems offered in the textbooks written by those who contributed significantly in the fluid transient area. Comparisons of the results show that the results of the developed software is in good agreement with the solutions given in those books.


Keywords: Transient Scenarios, Water Hammer, Pipe Flow, Method of Characteristics, Computer Code