summaryrefslogtreecommitdiff
path: root/1427/CH2/EX2.15
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1427/CH2/EX2.15
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1427/CH2/EX2.15')
-rw-r--r--1427/CH2/EX2.15/2_15.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/1427/CH2/EX2.15/2_15.sce b/1427/CH2/EX2.15/2_15.sce
new file mode 100644
index 000000000..efcad3bb3
--- /dev/null
+++ b/1427/CH2/EX2.15/2_15.sce
@@ -0,0 +1,25 @@
+//ques-2.15
+//Calculating volume of air supplied for fuel
+clc
+M=5;//Percentage of Methane in gaseous fuel
+H=20;//Percentage of Hydrogen in gaseous fuel
+CM=25;//Percentage of Carbon Monoxide in gaseous fuel
+CD=6;//Percentage of Carbon dioxide in gaseous fuel
+N=100-(M+H+CM+CD);//Percentage of Nitrogen in gaseous fuel
+e=20;//Percentage of excess air supplied
+v1=(M/100)*2;//Volume of oxygen required for methane (in kL)
+v2=(H/100)*0.5;//Volume of oxygen required for hydrogen (in kL)
+v3=(CM/100)*0.5;//Volume of oxygen required for carbon monoxide (in kL)
+v4=CD/100;//Volume of oxygen required for carbon dioxide (in kL)
+v5=N/100;//Volume of oxygen required for nitrogen (in kL)
+V=(v1+v2+v3)*(100/21);//Volume of air for gaseous fuel (in kL)
+V=V*(1+e/100);//Volume of air for gaseous fuel using excess (in kL)
+v6=M/100+CM/100+v4;//Final volume of carbon dioxide as dry product (in kL)
+v7=(e/100)*(v1+v2+v3);//Final volume of oxygen as dry product (in kL)
+v8=v5+V*(77/100);//Final volume of nitrogen as dry product (in kL)
+V_T=v6+v7+v8;//Total volume (in kL)
+P_C=(v6/V_T)*100;//Percentage of carbon dioxide as dry product
+P_O=(v7/V_T)*100;//Percentage of oxygen as dry product
+P_N=(v8/V_T)*100;//Percentage of nitrogen as dry product
+printf("The volume of air required for gaseous fuel is %.3f kL.\n",V);
+printf(" Percentage of carbon dioxide, oxygen and nitrogen as dry product are %.3f, %.3f and %.2f respectively.",P_C,P_O,P_N);