summaryrefslogtreecommitdiff
path: root/2090/CH9/EX9.7/Chapter9_example7.sce
blob: a8eba59a2ecf49258cc37e973fdd26691dba6553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clc
clear
//Input data
h=4000;//The altitude of the airplane engine carburettor in m
A=14.7;//The air fuel ratio at sea level
ts=22;//The temperature at sea level in degree centigrade
R=287;//Real gas constant in J/kgK

//Calculations
ta=ts-(0.0065*h);//The temperature at the altitude in degree centigrade
p=1.013/10^0.2083;//The pressure at the altitude in bar
da=(p*10^5)/(R*(ta+273));//The density at altitude in kg/m^3
ds=(1.013*10^5)/(R*(ts+273));//The density at sea level in kg/m^3
Aa=A*(da/ds)^(1/2);//The air fuel ratio at altitude 

//Output
printf('The air fuel ratio at altitude = %3.2f ',Aa)