A Method of Heat Conduction Analysis of Melting and Solidification Problems