#Calculates U * A for various heat exchanger configs #For parallel flow, Thotout must be > Tcoolout #For counterflow, Thotout must be > Tcoolin # #----------------------Input---------------------# mdothot 1.0 (kg / s) Cphot 2200 (J / kg / K) Thotin 100 (deg C) Thotout 50 (deg C) mdotcool 2.0 (kg / s) Cpcool 4200 (J / kg / K) Tcoolin 25 (deg C) Tcoolout 38 (deg C) Type 2 (1 = parallel; 2 = counterflow) #