The interaction of fluid transients with pipeline anomalies