Dewar flask problem for heat and temperature