diff options
Diffstat (limited to '1571/CH9/EX9.12')
-rwxr-xr-x | 1571/CH9/EX9.12/Chapter9_Example12.sce | 16 |
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)
|