blob: 62672d5f8c1d5218b7d5b8ae2f5ec6759adc8de7 (
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
|
//free energy changes in the system
clear;
clc;
printf("\t Example 18.4\n");
//(a)
GCO2=-394.4;//free energy of formation of CO2, kJ/mol
GH2O=-237.2;//free energy of formation of H2O, kJ/mol
GCH4=-50.8;//free energy of formation of CH4, kJ/mol
GO2=0;//free energy of formation of O2, kJ/mol
deltaGrxn=(GCO2+GH2O*2)-(GCH4+2*GO2);//standard free energy change of the reaction, kJ/mol
printf("\t (a) the standard free energy change of reaction is : %4.1f kJ/mol\n",deltaGrxn);
//(b)
GMg=0;//free energy of formation of Mg, kJ/mol
GMgO=-569.6;//free energy of formation of MgO, kJ/mol
GO2=0;//free energy of formation of O2, kJ/mol
deltaGrxn=(GO2+GMg*2)-(2*GMgO);//standard free energy change of the reaction, kJ/mol
printf("\t (b) the standard free energy change of reaction is : %4.0f kJ/mol\n",deltaGrxn);
//End
|