diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /629/CH7/EX7.6/example7_6.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '629/CH7/EX7.6/example7_6.sce')
-rw-r--r-- | 629/CH7/EX7.6/example7_6.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/629/CH7/EX7.6/example7_6.sce b/629/CH7/EX7.6/example7_6.sce new file mode 100644 index 000000000..85205f957 --- /dev/null +++ b/629/CH7/EX7.6/example7_6.sce @@ -0,0 +1,22 @@ +clear
+clc
+//Example 7.6 EGL AND HGL FOR A SYSTEM
+//Energy equation, (p1/gamma)+(alpha1*V1^2/2g)+hp=(p2/gamma)+(alpha2*V2^2/2g)+ht+hL ,V1=V2=0
+p1=0;
+p2=0;
+ht=0;
+Gamma=62.4; //specific weight[lbf/ft^3]
+z1=520; //[ft]
+z2=620; //[ft]
+L=5000; //[ft]
+D=1; //diameter[ft]
+A=%pi*D^2/4 //area[ft^2]
+Q=7.85; //rate of flow[ft^3/s]
+V=Q/A //[ft/s]
+g=32.2; //[ft/s^2]
+hL=(0.01*(L/D)*V^2)/(2*g) //head loss[ft]
+hp=round((p2-p1)/Gamma+(z2-z1)+hL) //pump head[ft]
+printf("\nThe head supplied by the pump = %.f ft.\n",hp)
+//1hp.s= 550ft.lbf
+Wp=round(Gamma*Q*hp/550)///power in hp
+printf("\nThe power supplied to the flow = %.f hp.\n",Wp)
\ No newline at end of file |