summaryrefslogtreecommitdiff
path: root/1571/CH9/EX9.12/Chapter9_Example12.sce
blob: b909a088bae7dadc7fc60abf96b7845548530517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)