This analysis of water hammer allows for the compressibility of water and the expansion of the pipe
An anlysis of Water Hammer based on the assumption that water is incompressible.