Collocation method for convective flow induced by directional solidification in a cylinder