A thermally coupled flow formulation with microstructural evolution for hypoeutectic cast-iron solidification