summaryrefslogtreecommitdiff
path: root/572/CH5/EX5.1/c5_1.sce
blob: 0543e81284281b37f1f958ce80b53f9af438b1fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// (5.1)   An inventor claims to have developed a power cycle capable of delivering a net work output of 410 kJ for an energy input by heat transfer of 1000 kJ. The system undergoing the cycle receives the heat transfer from hot gases at a temperature of 500 K and discharges energy by heat transfer to the atmosphere at 300 K. Evaluate this claim.

//solution

//variable initialization
W = 410                                          //net work output in kj claimed 
Q = 1000                                         //energy input by heat transfer in kj
Tc = 300                                         //temperature of cold reservoir in kelvin
TH = 500                                         //temperature of hot reservoir in kelvin

eta = W/Q                                        //thermal efficiency
etamax = 1-Tc/TH


printf('eta = %f',eta)
printf('\n etamax  = %f',etamax)
printf('\n since eta is more than etamax, the claim is not authentic')