diff options
Diffstat (limited to '1808/CH5/EX5.21/Chapter5_Exampl21.sce')
-rw-r--r-- | 1808/CH5/EX5.21/Chapter5_Exampl21.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/1808/CH5/EX5.21/Chapter5_Exampl21.sce b/1808/CH5/EX5.21/Chapter5_Exampl21.sce new file mode 100644 index 000000000..621ef094a --- /dev/null +++ b/1808/CH5/EX5.21/Chapter5_Exampl21.sce @@ -0,0 +1,27 @@ +clc
+clear
+//INPUT DATA
+p1=1;//initial pressure in bar
+v1=2;//volume in m^3
+R=0.287;//gas constant
+t1=288;//temperature in K
+p2=8;//final pressure in bar
+t2=313;//final temperature in K
+d=14;//displacement in m^3/min
+T=70;//time in seconds
+
+//CALCULATIONS
+m1=p1*10^2*v1/(R*t1);//initial mass in kg
+m2=p2*10^2*v1/(R*t2);//initial mass in kg
+m=m2-m1;//weight of air compressed in kg
+va=m*R*t1/(p1*10^2);//free volume in m^3
+vs=d*T/60;//swept volume in m^3
+nv=(va/vs)*100;//Volumetric efficiency in percentage
+
+//OUTPUT
+printf('(i)Volumetric efficiency is %3.2f percentage ',nv)
+
+
+
+
+
|