Heat transfer and multiphase flow with hydrate formation in subsea pipelines