diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1962/CH9/EX9.11/example9_11.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1962/CH9/EX9.11/example9_11.sce')
-rwxr-xr-x | 1962/CH9/EX9.11/example9_11.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/1962/CH9/EX9.11/example9_11.sce b/1962/CH9/EX9.11/example9_11.sce new file mode 100755 index 000000000..245f74487 --- /dev/null +++ b/1962/CH9/EX9.11/example9_11.sce @@ -0,0 +1,27 @@ +
+//example 9.11
+//page 3337
+clc; funcprot(0);
+//initialisation of variable
+Q=2;
+nu=1.007*10^-56;
+d2=0.3;
+d1=0.5;
+d3=0.15;
+L1=500;
+L2=200;
+L3=300;
+pi=3.14;
+g=9.81;
+f=0.018//(solved using iteration from moody's chart)
+A1=pi*d1^2/4;
+A2=pi*d2^2/4;
+A3=pi*d3^2/4;
+//assumption
+q1=0.5;
+q2=sqroot(L1*q1^2/d1^5*d2^5/L2);
+q3=sqroot(L1*q1^2/d1^5*d3^5/L3);
+Q1=2*q1/(q1+q2+q3);
+hf=f*L1*Q1^2/A1^2/2/g/d1;
+disp(hf,"head loss (m)=");
+clear
|