Adjoint Methods for Inverse Free Convection Problems with Application to Solidification Processes