Skip to content
Discussion options

You must be logged in to vote

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).

# Non-standard Gibbs energy of reaction (J/mol)
Delta_G <- -18700
# Ionic strength used for calculating activity coeffic…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Zqice
Comment options

Answer selected by Zqice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants