Study of Hydrate Formation Kinetics in Petroleum Pipes by the Phase Field