summaryrefslogtreecommitdiff
path: root/2837/CH13/EX13.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH13/EX13.6
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2837/CH13/EX13.6')
-rwxr-xr-x2837/CH13/EX13.6/Ex13_6.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/2837/CH13/EX13.6/Ex13_6.sce b/2837/CH13/EX13.6/Ex13_6.sce
new file mode 100755
index 000000000..a1622cf17
--- /dev/null
+++ b/2837/CH13/EX13.6/Ex13_6.sce
@@ -0,0 +1,29 @@
+clc
+clear
+//Initialization of variables
+x1=0.885 //mole fraction of Ch4
+x2=0.115 //mole fraction of c2h6
+x3=0.4/100 //mole fraction of N2
+n1=2 //Moles of Ch4
+n2=3.5 //Moles of c2h6
+n3=1 //moles of ch4 in case 2
+n4=2 //moles of c2h6 in case 2
+//calculations
+y1=n1*x1
+y2=n2*x2
+y=y1+y2
+vec2=[y1 y2]
+air=y/0.21
+y3=n3*x1
+y4=n4*x2
+yy=y3+y4
+vec3=[y3 y4]
+air2=y/0.21 *0.79
+//results
+printf("Theoretical air = %.2f moles of air per mole of fuel",air)
+disp("Oxygen analysis")
+disp(vec2)
+printf("\n Amount of nitrogen = %.2f moles of nitrogen per mole of fuel",air2)
+disp("Dry analysis")
+disp(vec3)
+printf('total = %.3f moles',yy)