Transient calculation of pressure waves in a well induced by tubular expansion