summaryrefslogtreecommitdiff
path: root/2066/CH4/EX4.11
diff options
context:
space:
mode:
Diffstat (limited to '2066/CH4/EX4.11')
-rwxr-xr-x2066/CH4/EX4.11/4_11.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2066/CH4/EX4.11/4_11.sce b/2066/CH4/EX4.11/4_11.sce
new file mode 100755
index 000000000..c65f1beeb
--- /dev/null
+++ b/2066/CH4/EX4.11/4_11.sce
@@ -0,0 +1,19 @@
+clc
+clear
+//Initialization of variables
+gam=62.4
+ds=12 //in
+dd=10 //in
+Q=4 //ft^3/s
+pd=40 //psia
+ps=-6 //psia
+zd=5 //ft
+zs=0
+g=32.2 //ft/s^2
+//calculations
+vs=Q/(%pi/4 *(ds/12)^2)
+vd=Q/(%pi/4 *(dd/12)^2)
+emp = (pd-ps)*144/gam + zd-zs + (vd^2 - vs^2)/(2*g)
+hpp=emp*Q*gam/550
+//results
+printf("Horsepower input of the test pump = %.1f hp",hpp)