blob: b0915f93eedfb4060ce44509322d39c582baa7c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//Chapter-3, Example 3.2, Page 48
//=============================================================================
clc
clear
Di=0.05;//Inner diameter of hollow cylinder in m
Do=0.1;//Outer diameter of hollow cylinder in m
T=[200,100];//Inner and outer surface temperature in degree C
k=70;//Thermal conductivity in W/m.K
//CALCULATIONS
ro=(Do/2);//Outer radius of hollow cylinder in m
ri=(Di/2);//Inner radius of hollow cylinder in m
Q=((2*3.14*k*(T(1)-T(2)))/(log(ro/ri)));//Heat transfer rate in W
r1=(ro+ri)/2;//Radius at halfway between ro and ri in m
T1=T(1)-((T(1)-T(2))*(log(r1/ri)/(log(ro/ri))));//Temperature of the point halfway between the inner and outer surface in degree C
//OUTPUT
mprintf('Heat transfer rate is %3.1f W /m\n Temperature of the point halfway between the inner and outer surface is %3.1f degree C',Q,T1)
//=================================END OF PROGRAM==============================
|