using latent heat produced or absorbed during phase change of materials