summaryrefslogtreecommitdiff
path: root/1309/CH3/EX3.4/ch3_4.sce
blob: 6bbd6f5af023e54b14d9956a979b9e0b812c1692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc;
clear;
printf("\t\t\tChapter3_example4\n\n\n");
// Determination of the conduction shape factor for the underground portion of the configuration
// specifications of  4 nominal, schedule 40 pipe from table F1
OD=4.5/12; // diameter in ft
R=OD/2;
// For pipe A
L_A=4.5; // length in ft
// shape factor number 9 is selected from table 3.1
S_A=(2*%pi*L_A)/(log(2*(L_A)/R));
printf("\nThe Shape Factor of pipe A is %.1f",S_A);
// For pipe B
L_B=18; // length in ft
// shape factor number 9 is selected from table 3.1
S_B=(2*%pi*L_B)/(acosh(L_A/R));
printf("\nThe Shape Factor of pipe B is %.1f",S_B);
S=2*S_A+S_B;
printf("\nThe total conduction shape factor for the system is %.1f",S);