summaryrefslogtreecommitdiff
path: root/530/CH2/EX2.1/example_2_1.sce
blob: 4e7337d58a3a196add3ba47b34bd544f0e8c9dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clear;
clc;

// A Textbook on HEAT TRANSFER by S P SUKHATME
// Chapter 2
// Heat Conduction in Solids

// Example 2.1
// Page 27
printf("Example 2.1, Page 27 \n\n")

d_i=0.02; // [m] inner radius    
d_o=0.04; // [m] outer radius
r_i=d_i/2; // [m] inner radius
r_o=d_o/2; // [m] outer radius
k=0.58; // [w/m K] thermal conductivity of tube material
t_i=70; //[degree C]
t_o=100; // [degree C]
l=1; // [m] per unit length
// using equation 2.1.5
q=l*2*(%pi)*k*(t_i-t_o)/log(r_o/r_i);
printf("Heat flow per unit length is %f W/m",q);