Heat flow model of rapid solidification with nonhomogeneous thermal contact