using the heat generated by mixing two different phases