summaryrefslogtreecommitdiff
path: root/1373/CH3/EX3.1/Chapter3_Example1.sce
blob: 66e1f75fff3c9be272eeb7397c08cb3043c5db5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Chapter-3, Example 3.1, Page 45
//=============================================================================
clc
clear

//INPUT DATA
l=5;//Length of the wall in m
h=4;//Height of the wall in m
L=0.25;//Thickness of the wall in m
T=[110,40];//Temperature on the inner and outer surface in degree C
k=0.7;//Thermal conductivity in W/m.K
x=0.20;//Distance from the inner wall in m

//CALCULATIONS
A=l*h;//Arear of the wall in m^2
Q=(k*A*(T(1)-T(2)))/L;//Heat transfer rate in W
T=(((T(2)-T(1))*x)/L)+T(1);//Temperature at interior point of the wall, 20 cm distant from the inner wall in degree C

//OUTPUT
mprintf('a)Heat transfer rate is %i W \n b)Temperature at interior point of the wall, 20 cm distant from the inner wall is %i degree C',Q,T)

//=================================END OF PROGRAM==============================