Numerical modeling of phenomena of waterhammer using a model of fluid–structure interaction