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 /1187/CH13/EX13.6/6.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 '1187/CH13/EX13.6/6.sce')
-rwxr-xr-x | 1187/CH13/EX13.6/6.sce | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/1187/CH13/EX13.6/6.sce b/1187/CH13/EX13.6/6.sce new file mode 100755 index 000000000..8ac30ca1a --- /dev/null +++ b/1187/CH13/EX13.6/6.sce @@ -0,0 +1,40 @@ +clc
+
+f=0.0085;
+l=21.1; // m
+d=0.09; // m
+g=9.81; // m/s^2
+rho=1000; // kg/m^3
+
+// h1=hf=(4*f*l/d)*(16*Q^2/(2*%pi^2*d^4*g)) = (100*Q)^2
+
+disp("(a)The head loss due to pipe friction in terms of flow rate Q is given as")
+disp("(100*Q)^2")
+
+// For Pump
+Q=[0:0.006:0.042 0.052];
+H=[15 16 16.5 16.5 15.5 13.5 10.5 7 0]
+plot(Q,H,"r")
+xlabel("Q(m^3/s)")
+ylabel("H(m)")
+
+// For Pipe System
+
+// H1 = 11.5 + (100*Q)^2;
+
+Q=[0:0.01:0.06];
+plot(Q,(11.5+10000*Q^2),"b")
+
+legend("pipe system", "pump")
+
+// From the plot of the pump and pipe characteristics, the intersection is at
+
+H=16; // m
+Q=0.021; // m^3/s
+n=0.74;
+
+P=rho*g*H*Q/n;
+
+disp("(b)Power required =")
+disp(P)
+disp("W")
|