Classification of Melting and Solidification