HAMMER Version 2

HAMMER is a free program I used a few years ago to simulate water hammer in a water pipe.

From HAMMER read me file:

HAMMER is a program which simulates the effects of water hammer in a reservoir and pipeline system in which a valve at the downstream end is opened or closed by the user. The program is a product of the Urban Water Systems Group, School of Civil Engineering, Queensland University of Technology.

The program solves the differential equations of transient flow in a simple pipeline with a reservoir at the upstream end and a valve at the downstream end. The aim of the program is to provide a demonstration of the effects of water hammer in a simple pipe, reservoir and valve system. The method of characteristics is used in the solution of the differential equations.


The solution procedure adopted in the program is based on a method described by Victor L. Streeter and E. Benjamin Wylie, Fluid Mechanics, First SI Metric Edition, McGraw-Hill, 1983. A full discussion of the water hammer phenomenon, derivation of the differential equations, method of characteristics solution and boundary conditions are given in Sections 12.4 to 12.8 of this reference.

Computationally the pipeline is divided into 19 nodes, each of which is equally spaced along the length of the pipeline. There is also one node at each end of the pipeline. At the upstream node the reservoir boundary condition is defined, and at the downstream node the valve boundary condition is defined. Therefore, the pipeline is divided into 20 equal length sections of pipe. In the method of characteristics solution procedure the time step used is equal to the time it takes for an acoustical wave to travel from one node to the next.

The program HAMMER is completely interactive using the Microsoft WINDOWS Graphical User Interface. The user can change all of the parameters which describe the pipeline and reservoir system and the valve at the downstream end. The simulation of the water hammer caused by the operation of the valve can only be undertaken once all of the parameters describing the pipeline, reservoir and valve have been defined.

When running the simulation the pressure head and discharge at each node, and at each time step is written to an ASCII based text file. The file is written to the working directory, and is deleted when exiting the program. A permanent copy of the simulation file can also be saved to disk. A previously saved simulation file can be loaded into the program by the user at any time.

The results of the simulation, either pressure head or discharge can be visualised as either:
1) An animation of the water hammer wave as it travels back and forth along the pipeline,
2) A plot versus time at any point along the pipeline, or
3) An envelope of maximum and minimum values along the pipeline.

The solution procedure adopted in the program does not make any allowance for column separation, which occurs when the pressure in the pipeline reaches the saturated vapour pressure of the water. Therefore care should be taken when interpreting negative pressures produced by the program. Pressure heads around -10 m of water or less would not be produced in the physical system being modelled.

To run HAMMER you will require Microsoft WINDOWS Version 3.1 or later running on your system.

Download HAMMER

21 comments on “HAMMER Version 2
  1. Ian Ralston says:

    Thank you for the interesting program.

    What friction factor is referred to?–unsure of value to use.

    Thank you

  2. Elad says:

    GUILLERMO,

    The manual is in the ZIP file you can download (see the hammer.hlp file).

    Elad

  3. overix says:

    You can find a program for the calculation of the waterhammer in pipelines here:
    http://www.waterhammer.de.tf

    other sites:
    http://www.bombas.de.tf
    http://www.hydraulics.de.tf
    http://www.velocidad.de.tf
    http://www.tierra.de.tf

  4. mantar says:

    Thanks for your software it is usefull and very good

    mantar

  5. Zdravko Stojanovic says:

    Very interesting, but… Does anyone know anything about a fluid transients code that is available in SOURCE form (FORTRAN, C++, almost anything goes…)?

    To put it simple, I am developing a piece of code for my own particular needs (a non-commercial application) and would benefit from a good code. There are certain questions regarding the division of pipes into sections that I cannot find clearly explained in the books written by Wylie & Streeter, Fox and similar authors.

    Thanks in advance!

    • Carlos says:

      Very interesting, but… Does anyone know anything about a fluid transients code that is available in SOURCE form (FORTRAN, C++, almost anything goes…)?
      Hi,
      This a very late answer.
      I am interested in the theme and I have uploaded a code in VSA, based on Streeter information in the web page piping-tools.net.
      I would be interested in having comments.
      Regards
      Carlos

      To put it simple, I am developing a piece of code for my own particular needs (a non-commercial application) and would benefit from a good code. There are certain questions regarding the division of pipes into sections that I cannot find clearly explained in the books written by Wylie & Streeter, Fox and similar authors.

      Thanks in advance!

  6. taha fatthy says:

    Thanks for your software I hope it will be usefull

  7. maath says:

    thanks for this program

  8. sajeev says:

    I am a water engineer,very much interest in water hammer

  9. Gerard says:

    Gracias por el programa

  10. oun says:

    i have a problem the 30 in steel pipe has wave speed of 4060 fps and an intial velocity of 5 fps. the valve is closed in a manner which casuse the velocity of flow at the valve to decrease lineraly with time to a vlue of zero in 1.0 secondes. there is initially negligible head loss in the value.
    find the maximum pressure head in the system which would occur in the first 4.0 seconed after closure begins.
    how can i slove this problem

  11. oun says:

    sorry i forgot to write H and l is known and the hight of inlet and outlet is 100 and 50ft.

  12. nbb says:

    Thank your for your very interesting program. If you dont mind I have a question please. Can we use the reservoir head in your properties’ interface as working pressure head of the pump to simulate the water hammer if the valve is close at the end of the pipe?

  13. nbb says:

    Can we use your program to simulate water hammer in the pipe by using pump head instead of reservoir head?

  14. William Fay says:

    Is this program available in a 64 bit version?

  15. Tushar says:

    I am using windows 7 in my laptop. i have a problem regarding installation. pls tell me how to install this software in windows 7?

  16. GUSTAVO ESPINOSA BARREDA says:

    we going to pull in service a hicrocarbon pipeline 10″ diameter for 100 milles moving 40 000 barrels ( condensate )

    need to know the pressure in the final some body said we must install a shutdown valve SSV and close in 10 seconds

    I NEVER CALCULATE THIS PROBLEM CAN I HAVE SUPPORT

    PLEASE NEED HELP

  17. Matías S says:

    It’s now available at full version the water hammer software Allievi of UPV. You can find it al allievi.net, great option.

  18. ROMU says:

    hello sir,
    i am using window 10, is there any particular water-hammer software for window 10, coz if i try to run it there telling me that i need to find the appropriate software.

    please your help will be highly appreciated

  19. nasser says:

    hello sir,
    i am using window 10, is there any particular water-hammer software for window 10, coz if i try to run it there telling me that i need to find the appropriate software.

    please your help will be highly appreciated

1 Pings/Trackbacks for "HAMMER Version 2"
  1. […] Hammer versión 2 […]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.