diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3843/CH12/EX12.2/Ex12_2.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3843/CH12/EX12.2/Ex12_2.sce')
-rw-r--r-- | 3843/CH12/EX12.2/Ex12_2.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3843/CH12/EX12.2/Ex12_2.sce b/3843/CH12/EX12.2/Ex12_2.sce new file mode 100644 index 000000000..02a5761c7 --- /dev/null +++ b/3843/CH12/EX12.2/Ex12_2.sce @@ -0,0 +1,23 @@ +// Example 12_2
+clc;funcprot(0);
+// Given data
+P_ta=90;// % theoretical air
+// The reaction equation for theoretical air is C_4H_10+(0.9)(6.5)(O_2+3.76N_2)-->4CO_2+5H_2O+22N_2+bCO
+a_1=6.5;// The stoichiometric coefficient
+M_air=29;// kg/kmol
+M_fuel=58;// kg/kmol
+
+// Calculation
+function[X]=atomicbalances(y)
+ X(1)=y(1)+y(2)-4;
+ X(2)=(2*y(1))+5+y(2)-11.7;
+endfunction
+y=[1 1];
+z=fsolve(y,atomicbalances);
+a=z(1);// mol
+b=z(2);// mol
+P_CO=(b/31)*100;// % CO
+m_air=(P_ta/100)*a_1*(4.76)*M_air;// lbm air
+m_fuel=1*M_fuel;// lbm fuel
+AF=m_air/m_fuel;// The air-fuel ratio in lbm air/lbm fuel
+printf("\nThe volume percentage of CO=%1.2f percentage \nThe air-fuel ratio,AF=%2.2f lbm air/lbm fuel",P_CO,AF);
|