The document describes the development of an algorithm to determine the interfacial heat transfer coefficient (IFHTC) during casting. A group of students developed an algorithm and programming to calculate the IFHTC based on the heat flux and temperature difference at the casting-mould interface. Their simulations showed that the optimum pouring temperature was between 700-750°C and pouring speed was 2-3 cm/s to minimize air gap defects in aluminum castings. The algorithm and programming were developed to analyze heat transfer during sand casting of aluminum plates and help improve casting quality.