diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /647/CH12/EX12.3/Example12_3.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '647/CH12/EX12.3/Example12_3.sce')
-rwxr-xr-x | 647/CH12/EX12.3/Example12_3.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/647/CH12/EX12.3/Example12_3.sce b/647/CH12/EX12.3/Example12_3.sce new file mode 100755 index 000000000..435338b00 --- /dev/null +++ b/647/CH12/EX12.3/Example12_3.sce @@ -0,0 +1,29 @@ +clear;
+clc;
+
+// Example: 12.3
+// Page: 479
+
+printf("Example: 12.3 - Page: 479\n\n");
+
+// Solution
+
+//*****Data******//
+// Reaction: C2H5OH(g) + (1/2)O2(g) = CH3CHO(g) + H2O(g)
+Temp = 298;// [K]
+G_CH3CHO = -133.978;// [kJ]
+G_H2O = -228.60;// [kJ]
+G_C2H5OH = -174.883;// [kJ]
+R = 8.314;// [J/mol K]
+//***************//
+
+G_O2 = 0;// [kJ]
+G_rkn = G_CH3CHO + G_H2O -(G_C2H5OH + G_O2);// [kJ]
+G_rkn = G_rkn*1000;// [J]
+if G_rkn < 0
+ printf("Reaction is feasible\n");
+ K = exp(-(G_rkn/(R*Temp)));
+ printf("Equilibium Constant is %.3e",K);
+else
+ printf("Reaction is not feasible\n");
+end
\ No newline at end of file |