summaryrefslogtreecommitdiff
path: root/1244/CH2/EX2.12/Example212.sce
blob: d877b205d1a5ab6fae2b7f4f96b42d265b83c803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56


// Display mode
mode(0);

// Display warning for floating point exception
ieee(1);

clc;
disp("Principles of Heat Transfer, 7th Ed. Frank Kreith et. al Chapter - 2 Example # 2.12 ")

//Length of steel component in m
L = 2;
//Radius of steel component in m
ro = 0.1;
//Thermal conductivity of steel in W/mK
k = 40;
//Thermal diffusivity in m2/s
alpha = 0.00001;
//Initital temperature in degree C
Ti = 400;
//Surrounding temperature in degree C
Tinfinity = 50;
//Heat transfer coefficient in W/m2K
h = 200;
//time of immersion in mins
t = 20;

//Since the cylinder has a length 10 times the diameter, we can neglect end
//effects.

//Calculating biot number
bi = (h*ro)/k;
if bi>0.1 then
  //Calculating fourier number
  fo = ((alpha*t)*60)/(ro*ro);
  //The initial amount of internal energy stored in the cylinder per unit
  //length in Ws/m
  Q = ((((k*%pi)*ro)*ro)*(Ti-Tinfinity))/alpha;

  //The dimensionless centerline temperature for 1/Bi= 2.0 and Fo= 1.2 from
  //Fig. 2.43(a)
  //Centreline temperature in degree C
  T = Tinfinity+0.35*(Ti-Tinfinity);
  disp("Centreline temperature in degree C is")
  T
  //The surface temperature at r/r0= 1.0 and t= 1200 s is obtained from Fig. 2.43(b) in terms of the centerline temperature
  //Surface temperature in degree C
  Tr = Tinfinity+0.8*(T-Tinfinity);
  disp("Surface temperature in degree C is")
  Tr
  //Then the amount of heat transferred from the steel rod to the water can be obtained from Fig. 2.43(c). Since Q(t)/Qi= 0.61,
  disp("The heat transferred to the water during the initial 20 min in Wh is")
  //The heat transferred to the water during the initial 20 min in Wh
  Q = ((0.61*L)*Q)/3600
end;