summaryrefslogtreecommitdiff
path: root/1808/CH2/EX2.8
diff options
context:
space:
mode:
Diffstat (limited to '1808/CH2/EX2.8')
-rw-r--r--1808/CH2/EX2.8/Chapter2_Example8.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/1808/CH2/EX2.8/Chapter2_Example8.sce b/1808/CH2/EX2.8/Chapter2_Example8.sce
new file mode 100644
index 000000000..bf0fddf60
--- /dev/null
+++ b/1808/CH2/EX2.8/Chapter2_Example8.sce
@@ -0,0 +1,31 @@
+clc
+clear
+//INPUT DATA
+a=40;//percentage of H2 fuel
+b=10;//percentage of CO fuel
+c=3;//percentage of N2 fuel
+d=40;//percentage of CH4 fuel
+e=5;//percentage of CO2 fuel
+f=2;//percentage of O2 fuel
+N=4.76;//Amount of nitrogen require for complete combustion
+
+//CALCULATIONS
+x=a+b+c+d+e;//Total volumetric analysis of fuel
+//H2+ (1/2)O2= H2O
+X1=a/2;//Moles of oxygen required
+//CO+(1/2)O2=CO2
+X2=b/2;//Moles of oxygen required
+//CH4+2O2=CO2+2H2O
+X3=2*d;//Moles of oxygen required
+X4=-f;//Moles of oxygen required
+Y=X1+X2+X3+X4;//Moles of oxygen required for 100 moles of gas
+Z=Y*N;//Moles of air required for 100 moles of gas
+Z1=Z/x;//Theoritical air required for 1 mole of gas
+
+//OUTPUT
+printf('Theoritical air required for 1 mole of gas %3.1f mole of air',Z1)
+
+
+
+
+