summaryrefslogtreecommitdiff
path: root/3856/CH9/EX9.2/Ex9_2.sce
blob: 797b1395688a33462027f4d5d7a7e2ada8ce5d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//Calculate the Standard Gibbs Energy change for the reaction (delrG) N2(g)+3H2(g)=2NH3(g)

//Example 9.2

clc;

clear;

Po=(760*10^5)/(1.01325*10^5);  //Standard pressure of the gas in torr

PN2=190;  //Partial pressure of the N2 gas in torr

PH2=418;  //Partial pressure of the H2 gas in torr

PNH3=722;  //Partial pressure of the NH3 gas in torr

Kp=((PNH3/Po)^2)/((PN2/Po)*(PH2/Po)^3);  //Equilibrium constant for reaction

R=8.314;  //Gas constant in J K^-1 mol^-1

T=298;  //Temperature of the gas in K

delrGo=-33.2*10^3;  //Standard Gibbs energy for the reaction J mol^-1

delrG=(delrGo+(R*T)*log(Kp))/1000;  //Standard Gibbs Energy change for the reaction in kJ mol^-1

printf("Standard Gibbs Energy Change = %.1f kJ mol^-1",delrG);