diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2090/CH2/EX2.7/Chapter2_example7.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
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)
|