blob: 14fd1bf6f7c5c525a6c3d753fb8a35fd2715ac5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
////Variable Declaration
dGf298 = 370.7 //Std. free energy of formation for Fe (g), kJ/mol
dHf298 = 416.3 //Std. Enthalpy of formation for Fe (g), kJ/mol
T0 = 298.15 //Temperature in K
T = 400. //Temperature in K
R = 8.314
//Calculations
dGf = T*(dGf298*1e3/T0 + dHf298*1e3*(1./T - 1./T0))
//Results
printf("\n Std. free energy of formation for Fe(g at 400 K is %4.1f kJ/mol",dGf/1000)
|