summaryrefslogtreecommitdiff
path: root/3685/CH16/EX16.7/Ex16_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3685/CH16/EX16.7/Ex16_7.sce')
-rw-r--r--3685/CH16/EX16.7/Ex16_7.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3685/CH16/EX16.7/Ex16_7.sce b/3685/CH16/EX16.7/Ex16_7.sce
new file mode 100644
index 000000000..6865ef847
--- /dev/null
+++ b/3685/CH16/EX16.7/Ex16_7.sce
@@ -0,0 +1,14 @@
+clc
+a = 21.89 // stochiometric coefficient
+y = 18.5 // stochiometric coefficient
+x = 8.9 // stochiometric coefficient
+PC = 100*(x*12)/((x*12)+(y)) // Carbon percentage
+PH = 100-PC // Hydrogen percentage
+AFR = ((32*a)+(3.76*a*28))/((12*x)+y) //Air fuel ratio
+EAU = (8.8*32)/((21.89*32)-(8.8*32)) // Excess air used
+
+printf("\n Example 16.7\n")
+printf("\n The composition of fuel is %f percent Hydrogen and %f percent Carbon",PH,PC) //The answer provided in the textbook is wrong
+printf("\n Air fuel ratio is %f ",AFR)
+printf("\n Percentage of excess air used is %f percent",EAU*100)
+//The answers vary due to round off error