Numerical tool to model collapse of polymeric liners in pipelines