summaryrefslogtreecommitdiff
path: root/2705/CH1/EX1.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2705/CH1/EX1.9
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 '2705/CH1/EX1.9')
-rwxr-xr-x2705/CH1/EX1.9/Ex1_9.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/2705/CH1/EX1.9/Ex1_9.sce b/2705/CH1/EX1.9/Ex1_9.sce
new file mode 100755
index 000000000..a5cc15bad
--- /dev/null
+++ b/2705/CH1/EX1.9/Ex1_9.sce
@@ -0,0 +1,27 @@
+clear;
+clc;
+disp('Example 1.9');
+
+
+// Given values
+m_dot = 20.4; // mass flowrate of petrol, [kg/h]
+c = 43; // calorific value of petrol, [MJ/kg]
+n = .2; // Thermal efficiency of engine
+
+// solution
+m_dot = 20.4/3600; // [kg/s]
+c = 43*10^6; // [J/kg]
+
+// power output
+P_out = n*m_dot*c; // [W]
+
+mprintf('\n The power output of the engine is = %f kJ\n',P_out*10^-3);
+
+// power rejected
+
+P_rej = m_dot*c*(1-n); // [W]
+P_rej = P_rej*60*10^-6; // [MJ/min]
+
+mprintf('\n The energy rejected by the engine is = %f MJ/min \n',P_rej);
+
+//End