summaryrefslogtreecommitdiff
path: root/3843/CH12/EX12.1/Ex12_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3843/CH12/EX12.1/Ex12_1.sce
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 '3843/CH12/EX12.1/Ex12_1.sce')
-rw-r--r--3843/CH12/EX12.1/Ex12_1.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/3843/CH12/EX12.1/Ex12_1.sce b/3843/CH12/EX12.1/Ex12_1.sce
new file mode 100644
index 000000000..9a58d2826
--- /dev/null
+++ b/3843/CH12/EX12.1/Ex12_1.sce
@@ -0,0 +1,29 @@
+// Example 12_1
+clc;funcprot(0);
+// Given data
+AF_act=20;// The air-fuel ratio
+// The reaction equation for theoretical air is C_4H_10+6.5(O_2+3.76N_2)-->4CO_2+5H_2O+24.44N_2
+a=6.5;// Constant
+M_air=29;// kg/kmol
+M_fuel=58;// kg/kmol
+P_atm=100;// kPa
+
+// Calculation
+m_air=a*(4.76)*M_air;// kg air
+m_fuel=1*M_fuel;// kg fuel
+// (a)
+AF_th=m_air/m_fuel;// The theoretical air-fuel ratio
+P_ea=((AF_act-AF_th)/AF_th)*100;// % excess air
+// (b)
+// The reaction equation with 129.28% theoretical air is C_4H_10+(6.5)(1.2928)(O_2+3.76N_2)-->4CO_2+5H_2O+1.903O_2+31.64N_2
+N_CO2=4;// mol
+N=42;// mol
+P_CO2=(N_CO2/N)*100;// The volume percentage of CO_2 in the products in %
+// (c)
+N_H2O=5;// mol
+N=42.5;// mol
+y_H2O=N_H2O/N;// The mole fraction
+P_v=y_H2O*P_atm;// The partial pressure of the water vapor in kPa
+// Using Table C-2
+T_dp=49;// °C
+printf("\n(a)The percent excess air=%2.2f percentage \n(b)The volume percentage of CO_2 in the products=%1.2f percentage \n(c)The dew point temperature of the products,T_dp=%2.0f °C",P_ea,P_CO2,T_dp);