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 /2420/CH9/EX9.8 | |
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 '2420/CH9/EX9.8')
-rwxr-xr-x | 2420/CH9/EX9.8/9_8.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2420/CH9/EX9.8/9_8.sce b/2420/CH9/EX9.8/9_8.sce new file mode 100755 index 000000000..d6c93ece6 --- /dev/null +++ b/2420/CH9/EX9.8/9_8.sce @@ -0,0 +1,26 @@ +clc
+clear
+//Initialization of variables
+mdot=8000 //lb/min
+A1=1 //sq ft
+A2=3/4 //sq ft
+P2=50 //psi
+P1=10 //psi
+gam=62.4 //lb/ft^3
+y2=-2 //ft
+y1=-4 //ft
+g=32.2 //ft/s^2
+eff=0.7
+//calculations
+v=1/gam
+cap=mdot/8.33
+V1=mdot*v/A1 /60
+V2=mdot*v/A2 /60
+ht= (y2-y1) + (V2^2 -V1^2)/(2*g) + (P2-P1)*144/gam
+Hhp=mdot*ht/33000
+Php=Hhp/eff
+//results
+printf("Capacity = %d gpm",cap)
+printf("\n Total dynamic head = %.1f ft",ht)
+printf("\n Hydraulic hp = %.1f hp",Hhp)
+printf("\n pump hp = %.1f hp",Php)
|