You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For salts with a cation : anion ratio other than 1:1 (e.g. MgCl2, K2SO4), activity coefficients calculated by the Pitzer Model (the default method) are incorrect.
The problem is that the Pitzer model code has to compute the concentration of the SALT, not just the individual cation or anion. It does this by averaging the cation and anion concentration:
# determine the average molality of the salt
# this is necessary for solutions inside e.g. an ion exchange
# membrane, where the cation and anion concentrations may be
# unequal
molality = (self.get_amount(Salt.cation,'mol/kg')+self.get_amount(Salt.anion,'mol/kg'))/2
But, the above doesn't account for the stoichiometry of the salt. In 0.4-dev I've fixed it like this:
For salts with a cation : anion ratio other than 1:1 (e.g. MgCl2, K2SO4), activity coefficients calculated by the Pitzer Model (the default method) are incorrect.
The literature value (CRC Handbook) is 0.485. Similarly large discrepanices occur at other concentrations and with other salts.
The text was updated successfully, but these errors were encountered: