summaryrefslogtreecommitdiff
path: root/32/CH9/EX9.16
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH9/EX9.16
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '32/CH9/EX9.16')
-rwxr-xr-x32/CH9/EX9.16/9_16.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/32/CH9/EX9.16/9_16.sce b/32/CH9/EX9.16/9_16.sce
new file mode 100755
index 000000000..56487639a
--- /dev/null
+++ b/32/CH9/EX9.16/9_16.sce
@@ -0,0 +1,23 @@
+//pathname=get_absolute_file_path('9.16.sce')
+//filename=pathname+filesep()+'9.16-data.sci'
+//exec(filename)
+//Temperature of working fuel at the beginning of compression(in K):
+T1=27+273
+//Pressure ratio:
+rp=70
+//Compression ratio:
+rv=15
+//Adiabatic index of compression:
+r=1.4
+//Temperature at state 2(in K):
+T2=T1*(rv)^(r-1)
+//Temperature at state 3(in K):
+T3=T2*rp/(rv^r)
+//Temperature at state 4(in K):
+T4=T3+(T3-T2)/r
+//Temperature at state 5(in K):
+T5=T4*(T3/T4*rv)^(1-r)
+//Air standard thermal efficiency:
+n=1-(T5-T1)/(r*(T4-T3)+(T3-T2))
+printf("\nRESULT")
+printf("\nAir standard thermal efficiency = %f percent",n*100) \ No newline at end of file