summaryrefslogtreecommitdiff
path: root/2705/CH1/EX1.9/Ex1_9.sce
blob: a5cc15bad3144a22eb5f68aa0b96515efbef09ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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