diff options
Diffstat (limited to '2090/CH2/EX2.7/Chapter2_example7.sce')
-rwxr-xr-x | 2090/CH2/EX2.7/Chapter2_example7.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2090/CH2/EX2.7/Chapter2_example7.sce b/2090/CH2/EX2.7/Chapter2_example7.sce new file mode 100755 index 000000000..b3c9dde24 --- /dev/null +++ b/2090/CH2/EX2.7/Chapter2_example7.sce @@ -0,0 +1,16 @@ +clc
+clear
+//Input data
+p1=1//Inlet pressure in bar
+p2=32.425//Pressure at the end of isentropic compression in bar
+r=6//Ratio of expansion
+r1=1.4//Isentropic index
+
+//Calculations
+rc=(p2/p1)^(1/r1)//Compression ratio
+b=(rc/r)//cut-off ratio
+n=(1-((b^r1-1)/(rc^(r1-1)*r1*(b-1))))*100//Air-standard efficiency
+pm=((p1*rc^r1*n/100*r1*(b-1))/((r1-1)*(rc-1)))//Mean effective pressure in bar
+
+//Output
+printf('Air-standard efficiency is %3.2f percent \n Mean effective pressure is %3.3f bar',n,pm)
|