-
Notifications
You must be signed in to change notification settings - Fork 74
Description
I'm considering electrolysis of water into hydrogen and oxygen. As part of the study, I need Gibbs molar energy for each of these substances. I have implemented an ideal gas model assuming constant heat capacities, which is given as:
Here, decoration ~ means "molar". Superscript o in energies/entropy is "standard state", and subscript o in energies/entropy is "at reference temperature"
Standard state enthalpy at reference temperature = enthalpy of formation. I find enthalpy of formation + standard state/reference temperature entropy + heat capacities in Aylward and Findley (2002): SI Chemical Data, 5th edition.
Problem: My ideal gas expression gives wildly different results than Clapeyron (using PR). As an example, for Hydrogen:
julia> G_o(50+273.15,Ht_oo_H2,St_oo_H2,ctp_H2), gibbs_energy(mod_H2_pr,p_o,50+273.15,1)
(-42362.23012868961, -13568.639305566825)I'm relatively sure that my ideal gas model is ok.
Question: Why this extreme discrepancy?
Julia code:
using Clapeyron
#
# Data from Aylward and Findley, etc.
R = 8.314_462_618_153_24 # J/K mol
#
p_o = 1e5 # Pa, Standard state
T_o = 25 + 273.15 # K, Reference temperature
#
Ht_oo_H2 = 0 # J/mol, molar enthalpy at standard state/reference temperature = enthalpy of formation
Ht_oo_O2 = 0 # J/mol
Ht_oo_H2O_g = -242e3 # J/mol
Ht_oo_H2O_L = -286e3 # J/mol
St_oo_H2 = 131 # J/K mol, molar entropy at standard state/reference temperature
St_oo_O2 = 205 # J/K mol
St_oo_H2O_g = 189 # J/K mol
St_oo_H2O_L = 70 # J/K mol
#
ctp_H2 = 29 # J/K mol, molar heat capacity
ctp_O2 = 29 # J/K mol
ctp_H2O_g = 34 # J/K mol
ctp_H2O_L = 75 # J/K mol
#
# Standard state ideal gas molar Gibbs energy:
G_o(T,Ht_oo,St_oo,ctp) = Ht_oo - T*St_oo + ctp*(T-T_o - T*log(T/T_o))
#
# Clapeyron models
mod_H2O_pr = PR(["water"])
mod_H2_pr = PR(["hydrogen"])
mod_O2_pr = PR(["oxygen"])