Repository navigation
Replies: 1 comment 1 reply
|
Hi! Thanks for your question. It looks like you are calculating the activity coefficients correctly. However, the calculation of ΔG° should only use the activity coefficients of species in the reaction, not other species like Na+ (although all ionic species contribute to the ionic strength). I tried this to calculate ΔG° for the reaction Pb(HS)2 + HS- = Pb(HS)3-. Because # Non-standard Gibbs energy of reaction (J/mol)
Delta_G <- -18700
# Ionic strength used for calculating activity coefficients (mol/kg)
IS <- 2
# Temperature and pressure
T <- 200
P <- 20
# Calculate activity coefficients of charged species
# NOTE: loggam is the base-10 logarithm of activity coefficient
gamma_HS_ <- 10^subcrt("HS-", T = T, P = P, IS = IS)$out[[1]]$loggam
gamma_PbHS3_ <- 10^subcrt("Pb(HS)3-", T = T, P = P, IS = IS)$out[[1]]$loggam
# Use one for activity coefficient of uncharged species
gamma_PbHS2 <- 1
# Use one molal concentration for all species
C_HS_ <- 1
C_PbHS2 <- 1
C_PbHS3_ <- 1
# Gas constant (J/K/mol) and temperature (K)
R <- 8.314
TK <- T + 273.15
# Calculate Delta G0
numerator <- (C_PbHS2 * gamma_PbHS2) * (C_HS_ * gamma_HS_)
denominator <- (C_PbHS3_ * gamma_PbHS3_)
# NOTE: log() is the natural logarithm
Delta_G0 <- Delta_G + R * TK * log(numerator/denominator)
print(round(Delta_G0))This gives -19267 J/mol for ΔG° of the reaction. That's different from both the value you calculated (-18.0 kJ/mol) and the value in the paper (-17.1 kJ/mol). Increasing the ionic strength to 4 mol/kg (to account for 2 mol/kg Na+ ions in the simulation box) pushes the ΔG° more negative (-19395 J/mol). I checked that the above code uses values of At the moment I don't have more insight into the calculations used for the paper. Perhaps one of the other coauthors would be able to help. |



Hi! Thanks for your question. It looks like you are calculating the activity coefficients correctly. However, the calculation of ΔG° should only use the activity coefficients of species in the reaction, not other species like Na+ (although all ionic species contribute to the ionic strength).
I tried this to calculate ΔG° for the reaction Pb(HS)2 + HS- = Pb(HS)3-. Because
-(the minus sign) can't be used in variable names, I used_instead (e.g.gamma_HS_). Here I used rounded values of 1 mol/kg for concentrations and 2 mol/kg for ionic strength (adapted from your code).