blob: c0344336daaba308d6b7d48b786f9bf5477fdb75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clc
clear
//INPUT DATA
p1=1;//initial pressure in bar
pd=30;//delivery pressure in bar
t1=288;//temperature in K
n=1.3;//index of copression
//CALCULATIONS
p21=sqrt(p1*pd);//Intermediate pressure in bar
v121=(p21/p1)^(1/n);//volume ratio
t21=t1*(p21/p1)^((n-1)/n);//temperature in K
v212=t21/t1;//volume ratio
v12=v121*v212;//volume ratio
d12=sqrt(v12);//Ratio of cylinder diameters
//OUTPUT
printf('(i)Ratio of cylinder diameters is %3.3f ',d12)
|