Program for flow and temperature