Energy absorption during phase change