summaryrefslogtreecommitdiff
path: root/557/CH14/EX14.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /557/CH14/EX14.5
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '557/CH14/EX14.5')
-rwxr-xr-x557/CH14/EX14.5/5.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/557/CH14/EX14.5/5.sce b/557/CH14/EX14.5/5.sce
new file mode 100755
index 000000000..d98ab0a7c
--- /dev/null
+++ b/557/CH14/EX14.5/5.sce
@@ -0,0 +1,25 @@
+clc; funcprot(0); //Example 14.5
+
+//Initializing the variables
+D = 0.3;
+Q = 0.8;
+rho = 1.2;
+f = 0.008;
+L_entry = 10;
+L_exit = 30;
+Lt = 20*D;//Transition may be represented by a separation loss equivalent length of 20 × the approach duct diameter
+K_entry = 4;
+K_exit = 10
+l = 0.4; // length of cross section
+b = 0.2; // width of cross section
+
+//Calculations
+A = %pi*D^2/4;
+Dp1 = 0.5*rho*Q^2/A^2*(K_entry + 4*f*(L_entry+Lt)/D);
+area = l*b;
+perimeter =2*(l+b);
+m = area/perimeter;
+Dp2 = 0.5*rho*Q^2/area^2*(K_exit + f*L_exit/m);
+Dfan = Dp1+Dp2;
+
+disp(Dfan,"fan Pressure input (N/m2) :"); \ No newline at end of file