Could anyone tell me if consider this method as correct to analyze the water hammer in the piping system?

If not, how do you analyze the water hammer in a static model in CII?