blob: 34e28fddbb205c8c0de135d4e237f595eb36a932 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//ques3
//efficiency of the cycle
clc
clear
wnet=395.2;//kJ/kg from example no 1
//Tx=T4
Tx=710.8;//K from example no 1
T3=1373.2;//K from example no 1
Cp=1.004;//specific heat in kJ/kg
qh=Cp*(T3-Tx);
nth=wnet/qh;
printf('Thermal efficiency = %.1f percent',nth*100);
|