summaryrefslogtreecommitdiff
path: root/1571/CH9/EX9.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1571/CH9/EX9.12
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 '1571/CH9/EX9.12')
-rwxr-xr-x1571/CH9/EX9.12/Chapter9_Example12.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1571/CH9/EX9.12/Chapter9_Example12.sce b/1571/CH9/EX9.12/Chapter9_Example12.sce
new file mode 100755
index 000000000..b909a088b
--- /dev/null
+++ b/1571/CH9/EX9.12/Chapter9_Example12.sce
@@ -0,0 +1,16 @@
+clc
+clear
+
+//INPUT
+t1=340;//temperature of the atmosphere in K
+t2=612;//temperature of the compression stroke in K
+y=1.39;//adiabatic expansion
+t3=2040;//temperature after constant volume ignition in K
+
+//CALCULATIONS
+d=(t2/t1)^(1/(y-1));//density in gm/cc
+n=1-(1/d)^(y-1);//efficiency of the engine
+p=((d)^(y))*(t3/t2);//maximum temperature of the temperature in atm
+
+//OUTPUT
+mprintf('the maximum pressure of the engine is %3.2f atm',p)