summaryrefslogtreecommitdiff
path: root/629/CH7/EX7.4/example7_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '629/CH7/EX7.4/example7_4.sce')
-rw-r--r--629/CH7/EX7.4/example7_4.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/629/CH7/EX7.4/example7_4.sce b/629/CH7/EX7.4/example7_4.sce
new file mode 100644
index 000000000..4cf0221d0
--- /dev/null
+++ b/629/CH7/EX7.4/example7_4.sce
@@ -0,0 +1,17 @@
+clear
+clc
+//Example 7.4 POWER PRODUCED BY A TURBINE
+//Energy equation, V1=V2=0,(p1/gamma)+hp=(p2/gamma)+ht+hL
+hp=0;
+hL=1.5; //head loss[m]
+p1=0;
+p2=0;
+z1=61; //[m]
+z2=0; //[m]
+Gamma=9810; //specific weight[N/m^3]
+ht=(p1-p2)/Gamma+(z1-z2)-hL //turbine head[m]
+Q=14.1; //rate of flow[m^3/s]
+Pi=Gamma*Q*ht/10^6 //power input[MW]
+eta=0.87; //efficiency
+Po=eta*Pi //power output[MW]
+printf("\nThe rate of power generation is %.2f MW.\n",Po) \ No newline at end of file