summaryrefslogtreecommitdiff
path: root/2063/CH1/EX1.30/1_30.sce
blob: d358ca31fab92e9f6f85ba786fbbc51a0c7edd26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
clear
//Input data
P1=1;//Initial pressure of air received by gas turbine plant in bar
T1=310;//Initial tamperature in K
P2=5.5;//Pressure at the end of compression in bar
r=1.4;//isentropic index

//Calculations
rp=P2/P1;//pressure ratio
n=(1-(1/rp)^((r-1)/r))*100;//Thermal efficiency of the turbine in percent

//Output data
printf('Thermal efficiency of the turbine unit is %3.2f percent',n)