Water hammer caused by air release in the operation of pipeline filling