summaryrefslogtreecommitdiff
path: root/1358/CH5/EX5.10/Example510.sce
blob: 114b379ebf4132520979d5424eb972eff43b375c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 5, Example 10")
disp("Using the isentropic P–T relation for the compression process,")
disp("P02/P01 = r,  T02a in Kelvin is")
r = 6
T01 = 285;
gam = 1.4;
x = (gam-1)/gam;
T02a = T01*r^x
disp("Using the polytropic P–T relation for the compression process:")
etainf = 0.85;
disp("(n-1)/n = R")
R = (gam-1)/(gam*etainf)
disp("Actual temperature rise:")
T02 = T01*r^R
disp("The compressor isentropic efficiency is given by:")
etac = (T02a-T01)/(T02-T01) *100