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 /1808/CH2/EX2.23/Chapter2_Example23.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 '1808/CH2/EX2.23/Chapter2_Example23.sce')
-rw-r--r-- | 1808/CH2/EX2.23/Chapter2_Example23.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/1808/CH2/EX2.23/Chapter2_Example23.sce b/1808/CH2/EX2.23/Chapter2_Example23.sce new file mode 100644 index 000000000..bbb074647 --- /dev/null +++ b/1808/CH2/EX2.23/Chapter2_Example23.sce @@ -0,0 +1,24 @@ +clc
+clear
+//INPUT DATA
+//CH4+2O2=CO2+2H2O ;//STOICHIOMETRIC REACTION
+//CASE I
+//H2O in the products is liquid
+//CASE II
+//H2O in the products is gas
+Hr=-74.87;//enthalpy of reactants
+Hp1=-964.2;//enthalpy of products
+Hp2=-876.18;//enthalpy of products
+R=8.314*10^-3;//gas constant
+t=298;//initial temperature in K
+
+//CLCULATIONS
+dH1=Hp1-Hr;//Enthalpy increase in MJ/kmol
+dH2=Hp2-Hr
+dU1=dH2-((1-3)*R*t);//internal energy in MJ/kmol
+dU=Hp2;//internal energy in MJ/kmol
+
+//OUTPUT
+printf('Enthalpy increase is %3.2f MJ/kmol of CH4 \n internal energy increase is %3.2f MJ/kmol of CH4 \n',dH2,dU1)
+printf('H2O in the products and internal energy increase are same \n')
+printf('np=nr')
|