Study of melting mechanism of a solid material in a liquid