summaryrefslogtreecommitdiff
path: root/2510/CH9/EX9.4/Ex9_4.sce
blob: 69a540fabd69edf80bdd433f644544fd3763b102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Variable declaration:
TS = 10+273                     //Outer surface temperature of wall (K)
Q = 3000.0                      //Heat transfer rate (W)
h = 100.0                       //Convection coefficient of air (W/m^2)
A = 3.0                         //Area of glass window (m^2)

//Calculation:
TM = TS-Q/(h*A)                 //Bulk temperature of fluid (K)

//Result:
printf("The bulk temperature of fluid is : %f  K.",TM)
printf("The bulk temperature of fluid is : %f  °C.",TM-273)