Heat transfer in a latent heat-storage system