summaryrefslogtreecommitdiff
path: root/3434/CH10/EX10.1/Ex10_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3434/CH10/EX10.1/Ex10_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3434/CH10/EX10.1/Ex10_1.sce')
-rw-r--r--3434/CH10/EX10.1/Ex10_1.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3434/CH10/EX10.1/Ex10_1.sce b/3434/CH10/EX10.1/Ex10_1.sce
new file mode 100644
index 000000000..6770053c3
--- /dev/null
+++ b/3434/CH10/EX10.1/Ex10_1.sce
@@ -0,0 +1,22 @@
+clc
+// given data
+R=13.0 // in m
+r=3.0 // in m
+A=2.0 // area in km^2
+ebbcycle=12.42 // in hours
+effi=0.7 // efficiency of turbine
+g=9.8 // gravitational acceleration in m/sec^2
+rho=1025 // density of sea in kg/m^3
+Powerpotential=0.225*A*(10**6)*((R**2)-(r**2))/10**6 // power potential in MW
+
+Powergenerated=effi*Powerpotential // in MW
+
+printf( "The average power generated by plant is %.2f kWh",Powergenerated)
+
+Energysingle=rho*A*(10**6)*g*((R**2)-(r**2))/(2.0*10**6) // Energy in single emptying in MJ
+
+ebbyear=364.0*24/ebbcycle
+
+annualenergy=Energysingle*ebbyear*effi*1000/3600.0 // in kWh
+
+printf( "\n The annual average energy generation is %.2e kWh",annualenergy)