summaryrefslogtreecommitdiff
path: root/3472/CH3/EX3.1/Example3_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3472/CH3/EX3.1/Example3_1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3472/CH3/EX3.1/Example3_1.sce')
-rw-r--r--3472/CH3/EX3.1/Example3_1.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/3472/CH3/EX3.1/Example3_1.sce b/3472/CH3/EX3.1/Example3_1.sce
new file mode 100644
index 000000000..ef07b4ca5
--- /dev/null
+++ b/3472/CH3/EX3.1/Example3_1.sce
@@ -0,0 +1,29 @@
+// A Texbook on POWER SYSTEM ENGINEERING
+// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
+// DHANPAT RAI & Co.
+// SECOND EDITION
+
+// PART I : GENERATION
+// CHAPTER 3: HYDRO-ELECTRIC STATIONS
+
+// EXAMPLE : 3.1 :
+// Page number 41
+clear ; clc ; close ; // Clear the work space and console
+
+// Given data
+Q = 95.0 // Minimum run-off(m^3/sec)
+h = 40.0 // Head(m)
+
+// Calculations
+w = 1000.0 // Density of water(kg/m^3)
+weight = Q*w // Weight of water per sec(kg)
+work_done = weight*h // Work done in one second(kg-mt)
+kW_1 = 75.0/0.746 // 1 kW(kg-mt/sec)
+power = work_done/kW_1 // Power production(kW)
+hours_year = 365.0*24 // Total hours in a year
+output = power*365*24.0 // Yearly gross output(kWhr)
+
+// Results
+disp("PART I - EXAMPLE : 3.1 : SOLUTION :-")
+printf("\nFirm capacity = %.f kW", power)
+printf("\nYearly gross output = %.2e kWhr.", output)