summaryrefslogtreecommitdiff
path: root/1358/CH4/EX4.7/Example47.sce
blob: 58e1c90def9e9f1dfc410f829803539038aa54ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 4, Example 7")
disp("Temperature equivalent of work done:")
disp("Weq = T02 - T01")
T02 = 440;//kelvin
T01 = 290;//kelvin
sigma = 0.88;
psi = 1.04;
Cp = 1005;
N = 10000;//rpm
U2 = ((T02-T01)*Cp/(sigma*psi))^0.5//m/s
D = 60*U2/(%pi*N)//m
disp("The overall pressure ratio is given by: P03/P01")
etac = 0.85;
ratio = (1+etac*sigma*psi*U2^2 /(Cp*T01))^3.5
disp("Power required to drive the compressor per unit mass flow:")
m = 1;
P = m*psi*sigma*U2^2  / 1000//kW