# CHAPTER 2: AIR CYCLE EFFICIENCIES¶

## Example 2.2 Page 19¶

In [3]:
#initialisation of variable
from math import pi,sqrt,acos,asin,atan,cos,sin,tan,log
T1=(100+273)#Degree C
T2=(300+273)#degree C
T=(1-T1/T2)*100#F
lam=0.41#in

#CALCULATIONS
R=log(T2)-log(T1)#lb/in^2
r=2.849#ratio of compression

#RESULTS
print"The ideal efficiency and the compression ratio is",round(r,3)

The ideal efficiency and the compression ratio is 2.849


## Example 2.4 Page 20¶

In [5]:
#initialisation of variable
from math import pi,sqrt,acos,asin,atan,cos,sin,tan,log
r=0.60#in
v=3#in
p=15.4#lb
r=5#in
P=2000#r p m
V=19000#B.Th.U  Per lb
lam=1.41 #lb
n=0.4831#percent
P=15.4/4#lb
H=P*V#B.Th.U
l=4.5#lb
A=9#lb
S=1000#lb

#CALCULATIONS
R=0.60*n*100#percent
C=H*R#B.Th.U
I=(C*778)/(60*33000)#lb
P1=(I*12*4*33)/(l*A*pi)#lb/in^2

#RESULTS
print"The mean efficity pressure is",round(P1,3)

The mean efficity pressure is 10372.115


## Example 2.5 Page 21¶

In [7]:
#initialisation of variable
from math import pi,sqrt,acos,asin,atan,cos,sin,tan,log
v=15#in
S=(5*14/100)#ln
lam=1.4#in
v1=1.7#in

#CALCULATIONS
N=(1-0.38)*100#percent

#RESULTS
print"The ideal effiecncy for an engine is",round(N,3),"%"

The ideal effiecncy for an engine is 62.0 %