summaryrefslogtreecommitdiff
path: root/1808/CH2/EX2.3/Chapter2_Example3.sce
diff options
context:
space:
mode:
Diffstat (limited to '1808/CH2/EX2.3/Chapter2_Example3.sce')
-rw-r--r--1808/CH2/EX2.3/Chapter2_Example3.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/1808/CH2/EX2.3/Chapter2_Example3.sce b/1808/CH2/EX2.3/Chapter2_Example3.sce
new file mode 100644
index 000000000..1d53e20a5
--- /dev/null
+++ b/1808/CH2/EX2.3/Chapter2_Example3.sce
@@ -0,0 +1,23 @@
+clc
+clear
+//INPUT DATA
+//C8H18 + XO2 = a Co2 + b H2O// Stoichiometric equation for combustion of octane
+
+//CALCULATIONS
+
+//Carbon balance
+a=8//8C=aC
+
+//Hydrogen balance
+b=9//18H=2*b
+
+//Oxygen balance
+X=(16+9)/2//2XO=2aO+9
+
+//Combustion equation
+Y=3.76*X//moles of nitrogen in the air for Y moles of Oxygen
+N=(X+Y)/1//moles of air to one mole of fuel
+M=(N)*(29/114)//mass of air required for 1 Kg of Fuel
+
+//OUTPUT
+printf("(i)Theoretical air fuel ratio for combustion of octane is %3.2f kg of air/kg",M)