Freckle criteria for the upward directional solidification of alloys