diff options
Diffstat (limited to '1808/CH5/EX5.22/Chapter5_Exampl22.sce')
-rw-r--r-- | 1808/CH5/EX5.22/Chapter5_Exampl22.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/1808/CH5/EX5.22/Chapter5_Exampl22.sce b/1808/CH5/EX5.22/Chapter5_Exampl22.sce new file mode 100644 index 000000000..c0344336d --- /dev/null +++ b/1808/CH5/EX5.22/Chapter5_Exampl22.sce @@ -0,0 +1,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)
+
|