summaryrefslogtreecommitdiff
path: root/914/CH4/EX4.1/ex4_1.sce
blob: b4031ed583a65eb7639b9b0ddd63232daf0fc60d (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
clc;
warning('off');
printf("\n\n example4.1 - pg99");
// given
id=2.067;  //[in] - inside diameter
t=0.154;  //[in] - wall thickness
od=id+2*t;  //[in] - outer diameter
a=1.075;  //[in^2] - wall sectional area of metal
A=a*(1/144);  //[ft^2] - wall sectional area of metal in ft^2
deltaz=5/12;  //[ft] - length of transfer in z direction
T2=10+273.15;  //[K] - temperature at the top
T1=0+273.15;  //[K] - temperature at the bottom
q=-3.2;  //[Btu/hr] - heat transferred
deltaT=(T2-T1)+8;  //[degF]
k=-(q/A)/(deltaT/deltaz);
printf("\n\n korrect=%fBtu h^-1 ft^-1 degF^-1=17.17 W m^-1 K^-1",k);
Alm=(2*%pi*deltaz*((od-id)/(2*12)))/log(od/id);  //[ft^2] log mean area
disp(Alm)
kincorrect=k*(A/Alm);
printf("\n\n kincorrect=%fBtu h^-1 ft^-1 degF^-1=0.529 W m^-1 K^-1",kincorrect);
errorf=(k-kincorrect)/kincorrect;
disp(errorf,"error factor is-");