I want to calculate the pressure and velocity in case of waterhammer in a pipe having valve at one end and reservoir at other end. The valve is closed abruptly and the diameter of the pipe is reducing towards the valve. I need a MATLAB program. Can anyone help me.
Thanks