blob: 7da4a7e60179851cc120abd6ad63b4fc5d6591d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//example 12
//required work input
clear
clc
Pe=150 //final pressure of air in kPa
Pi=100 //initial presure of air in kPa
k=1.4
Ti=300 //initial temperature of air in kelvis
Tes=Ti*(Pe/Pi)^((k-1)/k) //from second law
ws=1.004*(Ti-Tes) //from first law of isentropic process
n=0.7 //efficiency of automotive supercharger
w=ws/n //real work input in kJ/kg
Te=Ti-w/1.004 //temperature at supercharger exit in K
printf("\n hence,required work input is w=%.1f kJ/kg.\n",w)
printf("\n and exit temperature is Te=%.1f K.\n",Te)
|