summaryrefslogtreecommitdiff
path: root/1955/CH7/EX7.12/example12.sce
diff options
context:
space:
mode:
Diffstat (limited to '1955/CH7/EX7.12/example12.sce')
-rwxr-xr-x1955/CH7/EX7.12/example12.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1955/CH7/EX7.12/example12.sce b/1955/CH7/EX7.12/example12.sce
new file mode 100755
index 000000000..a268efe54
--- /dev/null
+++ b/1955/CH7/EX7.12/example12.sce
@@ -0,0 +1,19 @@
+clc
+clear
+//input data
+H1=25//The initial head on the turbine in m
+N1=200//The initial speed of the turbine in rpm
+Q1=9//The initial discharge of the turbine in m^3/s
+n0=0.9//Overall efficiency of the turbine
+H2=20//The final head on the turbine in m
+d=1000//density of the water in kg/m^3
+g=9.81//Acceleration due to gravity in m/s^2
+
+//calculations
+N2=N1*((H2/H1)^(1/2))//The final speed of the turbine in rpm
+Q2=Q1*((H2/H1)^(1/2))//The final discharge of the turbine in m^3/s
+P1=n0*d*g*Q1*H1*10^-3//Power produced by the turbine initially in kW
+P2=P1*((H2/H1)^(3/2))//Power produced by the turbine finally in kW
+
+//output
+printf('(a)The final speed of the turbine is %3.2f rpm\n(b)The final discharge of the turbine is %3.2f m^3/s\n(c)Power produced by the turbine initially is %3.3f kW\n(d)Power produced by the turbine finally is %3.2f kW',N2,Q2,P1,P2)