Analysis of transient flow in pipelines with fluid–structure interaction using method of lines