summaryrefslogtreecommitdiff
path: root/172/CH6/EX6.8/ex8.sce
diff options
context:
space:
mode:
Diffstat (limited to '172/CH6/EX6.8/ex8.sce')
-rwxr-xr-x172/CH6/EX6.8/ex8.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/172/CH6/EX6.8/ex8.sce b/172/CH6/EX6.8/ex8.sce
new file mode 100755
index 000000000..49e52f5b6
--- /dev/null
+++ b/172/CH6/EX6.8/ex8.sce
@@ -0,0 +1,13 @@
+//example 8
+//Required pump work
+clear
+clc
+m=1.5 //mass flow rate of water in kg/s
+g=9.807 //acceleration due to gravity in m/s^2
+Zin=-15 //depth of water pump in well in metres
+Zex=0 //in metres
+v=0.001001 //specific volume in m^3/kg
+Pex=400+101.3 //exit pressure in kPa
+Pin=90 //in kPa
+W=m*(g*(Zin-Zex)*0.001-(Pex-Pin)*v) //power input in kW
+printf(" \n Hence, the pump requires power input of W=%.0f W. \n",W*1000) \ No newline at end of file