summaryrefslogtreecommitdiff
path: root/944/CH5/EX5.39/example5_39_TACC.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /944/CH5/EX5.39/example5_39_TACC.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '944/CH5/EX5.39/example5_39_TACC.sce')
-rwxr-xr-x944/CH5/EX5.39/example5_39_TACC.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/944/CH5/EX5.39/example5_39_TACC.sce b/944/CH5/EX5.39/example5_39_TACC.sce
new file mode 100755
index 000000000..3b234bdfb
--- /dev/null
+++ b/944/CH5/EX5.39/example5_39_TACC.sce
@@ -0,0 +1,20 @@
+//example 5.39
+
+clear;
+clc;
+
+disp("0.5N2(g)+1.5H2(g)<=>NH3(g)");
+//Given:
+T=298;//Temperature[K]
+Kp=900;//Equilibrium constant for above reaction
+P1=0.32;//partial pressure of N2(g)[bar]
+P2=0.73;//partial pressure of H2(g)[bar]
+P3=0.98;//partial pressure of NH3(g)[bar]
+R=8.314;//Universal gas constant[J/K/mol]
+
+//To find the reaction Gibb's energy
+G=-R*T*log(Kp);
+x=(P1^0.5)*(P2^1.5);
+p=P3/x;
+Gr=(G+R*T*log(p))*0.001;
+printf("The reaction Gibbs free energy is %f KJ/mol ",Gr);