summaryrefslogtreecommitdiff
path: root/172/CH9/EX9.12/ex12.sce
diff options
context:
space:
mode:
Diffstat (limited to '172/CH9/EX9.12/ex12.sce')
-rwxr-xr-x172/CH9/EX9.12/ex12.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/172/CH9/EX9.12/ex12.sce b/172/CH9/EX9.12/ex12.sce
new file mode 100755
index 000000000..7da4a7e60
--- /dev/null
+++ b/172/CH9/EX9.12/ex12.sce
@@ -0,0 +1,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) \ No newline at end of file