blob: 807023bf5cd394998dd245dd38a21971aeef032f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc
//initialisation of variables
p2=135 //bar pressure
p1=1 //bar pressure
x=5 //x=p2/p1
//CALCULATIONS
s=log(p2)/log(x)
rp=(p2/p1)^0.25
//RESULTS
printf('s is %2f',s)
printf('\nrp is %2f',rp)
disp('number of stages are 4')
disp('1st intermediate pressure is 3.4087 bar')
disp('2nd intermediate pressure is 11.619 bar')
disp('3rd intermediate pressure is 39.605 bar')
|