What the choice of activity model costs
Before this page
Activity models sets out what the three built-in models are and where each comes from. This page puts numbers on the difference: the models disagree about the activity coefficients from a tenth molal, barely about the water activity below a molal, and, in a single electrolyte, not at all about whether the solvent and the solutes form one thermodynamic system; that last question is decided in a mixed solution with a neutral species.
A fourth column, Cemdata18, is the B-dot model (Helgeson, 1969) again, with the parameters Cemdata18 prescribes for the pore solution of a cement (cemdata18_activity_model): one ion size, 3.67 Å, for every ion, and the same linear coefficient on the ions and on the neutral species.
Everything below is evaluated on an imposed NaCl composition. Nothing is solved, so the whole page costs a few milliseconds — which is also the point: comparing models does not require a converged equilibrium.
using ChemistryLab
using DynamicQuantities
using Printf
using LinearAlgebra
using ForwardDiff
substances = build_species(datapath("slop98-inorganic-thermofun.json"); verbose = false)
dict = Dict(symbol(s) => s for s in substances)
cs = ChemicalSystem([dict[s] for s in split("H2O@ H+ OH- Na+ Cl-")],
["H2O@", "H+", "Na+", "Cl-", "Zz"])
sym_w = symbol(cs.species[only(cs.idx_solvent)])
function nacl(m) # m mol NaCl per kg of water, imposed
st = ChemicalState(cs)
set_quantity!(st, "H2O@", 1.0u"kg")
set_quantity!(st, "Na+", m * u"mol")
set_quantity!(st, "Cl-", m * u"mol")
set_quantity!(st, "H+", 1.0e-7u"mol")
set_quantity!(st, "OH-", 1.0e-7u"mol")
return st
end
# The fourth is the B-dot model again, with the parameters Cemdata18 prescribes for
# a KOH pore solution: one ion size for every ion, and the same b on the neutral
# species (Lothenbach et al. 2019, Eq. C.1).
models = ["dilute" => DiluteSolutionModel(),
"Davies" => DaviesActivityModel(),
"B-dot" => HKFActivityModel(),
"Cemdata18" => cemdata18_activity_model(:KOH)]Data read above: Lothenbach2019Lothenbach, B. et al. (2019)5 quantities, 8 tables
Lothenbach, B., Kulik, D. A., Matschei, T., Balonis, M., Baquerizo, L., Dilnesa, B., Miron, G. D., Myers, R. J. (2019). Cemdata18: A chemical thermodynamic database for hydrated Portland cements and alkali-activated materials. Cement and Concrete Research 115, 472-506. doi:10.1016/j.cemconres.2018.04.018
Read in Tables 1-3 and Appendix D checked against the source
Transcribed from the accepted manuscript (PDF, 49 pages with line numbers): notes to Table 1 (lines 234-239), Table 2 (lines 247-310), Table 3 (lines 582-600), Appendix C (lines 1474-1483, Eq. C.1 read on the rendered page, its text layer being garbled), Tables D.1 and D.2 (lines 1532-1551), read on the page text and checked value by value; the journal's page numbers are not in that copy
The Guggenheim parameters were typed into the miscibility_gap example, and the solubility products and Appendix D values into test/cemdata18_reference.jl, before this file existed; all agree with the manuscript. Note a attaches to (Al-)ettringite and tricarboaluminate, note b to (Al-)ettringite and Fe-ettringite (the gap in X_Al), note g to C4AH13 and C4AsH12 (monosulfate), note h to C4AsH12 and C4FsH12 (the Al/Fe monosulfate gap, in X_Al). Monocarbonate carries no such note: Cemdata18 does not treat monosulfate and monocarbonate as a solid solution.
Quantities
| name | value | description | where |
|---|---|---|---|
edh_ion_size_KOH | 3.67 | Common ion-size parameter a_i of the extended Debye-Hueckel equation (C.1) for KOH solutions, in Angstrom. | Appendix C, lines 1476-1477 |
edh_ion_size_NaOH | 3.31 | Common ion-size parameter a_i of the extended Debye-Hueckel equation (C.1) for NaOH solutions, in Angstrom. | Appendix C, lines 1476-1477 |
edh_b_gamma_KOH_25C | 0.123 kg/mol | Common third parameter b_y of Eq. (C.1) for a KOH electrolyte at 25 C, printed as '~0.123'. It also multiplies I for uncharged species, log(gamma) = b_y I. | Appendix C, line 1481 |
edh_b_gamma_NaOH_25C | 0.098 kg/mol | Common third parameter b_y of Eq. (C.1) for a NaOH electrolyte at 25 C, printed as '~0.098'. | Appendix C, line 1481 |
edh_validity_ionic_strength | 1.0 mol/kg | Effective molal ionic strength up to which the paper states the extended Debye-Hueckel correction of Eq. (C.1) applicable: 'up to approx. 1 m'. | Appendix C, line 1483 |
Tables
guggenheim_parameters: 4 rows fitted
Table 1, notes a, b, g and h
| pair | alpha0 | alpha1 | gap_from | gap_to |
|---|---|---|---|---|
| AFt SO4/CO3 | 1.67 | 0.946 | 0.1 | 0.55 |
| AFm SO4/OH | 0.188 | 2.49 | 0.5 | 0.97 |
| AFt Al/Fe | 2.1 | -0.169 | 0.25 | 0.65 |
| AFm Al/Fe | 1.26 | 1.57 | 0.45 | 0.95 |
solubility_products: 56 rows
Table 2 (solids, at 1 bar and 25 C) and Table 3 (the hydrotalcite-like phases of the separate modules)
| phase | printed | log_Ks0 |
|---|---|---|
| ettringite | (Al-)ettringite | -44.9 |
| tricarboalu | tricarboaluminate | -46.5 |
| Fe-ettringite | Fe-ettringite | -44.0 |
| thaumasite | thaumasite | -24.75 |
| C3AH6 | C3AH6 | -20.5 |
| C3AS0.41H5.18 | C3AS0.41H5.18 | -25.35 |
| C3AS0.84H4.32 | C3AS0.84H4.32 | -26.7 |
| C3FH6 | C3FH6 | -26.3 |
| C3FS0.84H4.32 | C3FS0.84H4.32 | -32.5 |
| C3AFS0.84H4.32 | C3(F,A)S0.84H4.32 | -30.2 |
| C3FS1.34H3.32 | C3FS1.34H3.32 | -34.2 |
| C4AH19 | C4AH19 | -25.45 |
| C4AH13 | C4AH13 | -25.25 |
| C2AH7.5 | C2AH7.5 | -13.8 |
| CAH10 | CAH10 | -7.6 |
| hemicarbonate | C4Ac0.5H12 | -29.13 |
| monocarbonate | C4AcH11 | -31.47 |
| monosulphate14 | C4AsH14 | -29.26 |
| monosulphate12 | C4AsH12 | -29.23 |
| straetlingite | C2ASH8 | -19.7 |
| C4AClH10 | Friedel's salt | -27.27 |
| C4AsClH12 | Kuzel's salt | -28.53 |
| mononitrate | Nitrate-AFm | -28.67 |
| Nitrite-AFm | -26.24 | |
| C4FH13 | C4FH13 | -30.75 |
| Fe-hemicarbonate | Fe-hemicarbonate | -30.83 |
| Femonocarbonate | Fe-monocarbonate | -34.59 |
| Fe-monosulphate | Fe-monosulfate | -31.57 |
| Fe-Friedel's salt | -28.62 | |
| Anh | Cs (anhydrite) | -4.357 |
| Gp | CsH2 (gypsum) | -4.581 |
| hemihydrate | CsH0.5 (hemihydrate) | -3.59 |
| syngenite | syngenite | -7.2 |
| AlOHam | Al(OH)3(am) | 0.24 |
| AlOHmic | Al(OH)3(mic) | -0.67 |
| Gbs | Al(OH)3(gibbsite) | -1.12 |
| Fe(OH)3(am) | Fe(OH)3(am) | -2.6 |
| Fe(OH)3(mic) | Fe(OH)3(mic) | -4.6 |
| FeOOHmic | FeOOH(mic) | -5.6 |
| Gt | FeOOH(goethite) | -8.6 |
| Portlandite | CH | -5.2 |
| Amor-Sl | SiO2(am) | -2.714 |
| Qtz | SiO2(quartz) | -3.746 |
| Mg3AlC0.5OH | 1/2M6AcH13 | -33.29 |
| Mg3FeC0.5OH | 1/2M6FcH13 | -33.64 |
| M075SH | M1.5S2H2.5 | -28.8 |
| M15SH | M1.5SH2.5 | -23.57 |
| zeoliteP_Ca | Zeolite P(Ca) | -20.3 |
| natrolite | Natrolite | -30.2 |
| chabazite | Chabazite | -25.8 |
| zeoliteX | Zeolite X(Na) | -20.1 |
| zeoliteY | Zeolite Y(Na) | -25.0 |
| hydrotalcite | M4AH10* | -56.02 |
| M4A-OH-LDH | M4AH10** | -49.7 |
| M6A-OH-LDH | M6AH12** | -72.0 |
| M8A-OH-LDH | M8AH14** | -94.3 |
dissolution_products: 179 rows
Table 2 and Table 3, the dissolution reactions to which log Ks0 refers, over the CEMDATA18 primary species and without their water
| phase | species | coefficient |
|---|---|---|
| ettringite | Ca+2 | 6.0 |
| ettringite | AlO2- | 2.0 |
| ettringite | SO4-2 | 3.0 |
| ettringite | OH- | 4.0 |
| tricarboalu | Ca+2 | 6.0 |
| tricarboalu | AlO2- | 2.0 |
| tricarboalu | CO3-2 | 3.0 |
| tricarboalu | OH- | 4.0 |
| Fe-ettringite | Ca+2 | 6.0 |
| Fe-ettringite | FeO2- | 2.0 |
| Fe-ettringite | SO4-2 | 3.0 |
| Fe-ettringite | OH- | 4.0 |
| thaumasite | Ca+2 | 3.0 |
| thaumasite | HSiO3- | 1.0 |
| thaumasite | SO4-2 | 1.0 |
| thaumasite | CO3-2 | 1.0 |
| thaumasite | OH- | 1.0 |
| C3AH6 | Ca+2 | 3.0 |
| C3AH6 | AlO2- | 2.0 |
| C3AH6 | OH- | 4.0 |
| C3AS0.41H5.18 | Ca+2 | 3.0 |
| C3AS0.41H5.18 | AlO2- | 2.0 |
| C3AS0.41H5.18 | HSiO3- | 0.41 |
| C3AS0.41H5.18 | OH- | 3.59 |
| C3AS0.84H4.32 | Ca+2 | 3.0 |
| C3AS0.84H4.32 | AlO2- | 2.0 |
| C3AS0.84H4.32 | HSiO3- | 0.84 |
| C3AS0.84H4.32 | OH- | 3.16 |
| C3FH6 | Ca+2 | 3.0 |
| C3FH6 | FeO2- | 2.0 |
| C3FH6 | OH- | 4.0 |
| C3FS0.84H4.32 | Ca+2 | 3.0 |
| C3FS0.84H4.32 | FeO2- | 2.0 |
| C3FS0.84H4.32 | HSiO3- | 0.84 |
| C3FS0.84H4.32 | OH- | 3.16 |
| C3AFS0.84H4.32 | Ca+2 | 3.0 |
| C3AFS0.84H4.32 | AlO2- | 1.0 |
| C3AFS0.84H4.32 | FeO2- | 1.0 |
| C3AFS0.84H4.32 | HSiO3- | 0.84 |
| C3AFS0.84H4.32 | OH- | 3.16 |
| C3FS1.34H3.32 | Ca+2 | 3.0 |
| C3FS1.34H3.32 | FeO2- | 2.0 |
| C3FS1.34H3.32 | HSiO3- | 1.34 |
| C3FS1.34H3.32 | OH- | 2.66 |
| C4AH19 | Ca+2 | 4.0 |
| C4AH19 | AlO2- | 2.0 |
| C4AH19 | OH- | 6.0 |
| C4AH13 | Ca+2 | 4.0 |
| C4AH13 | AlO2- | 2.0 |
| C4AH13 | OH- | 6.0 |
| C2AH7.5 | Ca+2 | 2.0 |
| C2AH7.5 | AlO2- | 2.0 |
| C2AH7.5 | OH- | 2.0 |
| CAH10 | Ca+2 | 1.0 |
| CAH10 | AlO2- | 2.0 |
| hemicarbonate | Ca+2 | 4.0 |
| hemicarbonate | AlO2- | 2.0 |
| hemicarbonate | CO3-2 | 0.5 |
| hemicarbonate | OH- | 5.0 |
| monocarbonate | Ca+2 | 4.0 |
| monocarbonate | AlO2- | 2.0 |
| monocarbonate | CO3-2 | 1.0 |
| monocarbonate | OH- | 4.0 |
| monosulphate14 | Ca+2 | 4.0 |
| monosulphate14 | AlO2- | 2.0 |
| monosulphate14 | SO4-2 | 1.0 |
| monosulphate14 | OH- | 4.0 |
| monosulphate12 | Ca+2 | 4.0 |
| monosulphate12 | AlO2- | 2.0 |
| monosulphate12 | SO4-2 | 1.0 |
| monosulphate12 | OH- | 4.0 |
| straetlingite | Ca+2 | 2.0 |
| straetlingite | AlO2- | 2.0 |
| straetlingite | HSiO3- | 1.0 |
| straetlingite | OH- | 1.0 |
| C4AClH10 | Ca+2 | 4.0 |
| C4AClH10 | AlO2- | 2.0 |
| C4AClH10 | Cl- | 2.0 |
| C4AClH10 | OH- | 4.0 |
| C4AsClH12 | Ca+2 | 4.0 |
| C4AsClH12 | AlO2- | 2.0 |
| C4AsClH12 | Cl- | 1.0 |
| C4AsClH12 | SO4-2 | 0.5 |
| C4AsClH12 | OH- | 4.0 |
| mononitrate | Ca+2 | 4.0 |
| mononitrate | AlO2- | 2.0 |
| mononitrate | NO3- | 2.0 |
| mononitrate | OH- | 4.0 |
| C4FH13 | Ca+2 | 4.0 |
| C4FH13 | FeO2- | 2.0 |
| C4FH13 | OH- | 6.0 |
| Fe-hemicarbonate | Ca+2 | 4.0 |
| Fe-hemicarbonate | FeO2- | 2.0 |
| Fe-hemicarbonate | CO3-2 | 0.5 |
| Fe-hemicarbonate | OH- | 5.0 |
| Femonocarbonate | Ca+2 | 4.0 |
| Femonocarbonate | FeO2- | 2.0 |
| Femonocarbonate | CO3-2 | 1.0 |
| Femonocarbonate | OH- | 4.0 |
| Fe-monosulphate | Ca+2 | 4.0 |
| Fe-monosulphate | FeO2- | 2.0 |
| Fe-monosulphate | SO4-2 | 1.0 |
| Fe-monosulphate | OH- | 4.0 |
| Anh | Ca+2 | 1.0 |
| Anh | SO4-2 | 1.0 |
| Gp | Ca+2 | 1.0 |
| Gp | SO4-2 | 1.0 |
| hemihydrate | Ca+2 | 1.0 |
| hemihydrate | SO4-2 | 1.0 |
| syngenite | K+ | 2.0 |
| syngenite | Ca+2 | 1.0 |
| syngenite | SO4-2 | 2.0 |
| AlOHam | AlO2- | 1.0 |
| AlOHam | OH- | -1.0 |
| AlOHmic | AlO2- | 1.0 |
| AlOHmic | OH- | -1.0 |
| Gbs | AlO2- | 1.0 |
| Gbs | OH- | -1.0 |
| Fe(OH)3(am) | FeO2- | 1.0 |
| Fe(OH)3(am) | OH- | -1.0 |
| Fe(OH)3(mic) | FeO2- | 1.0 |
| Fe(OH)3(mic) | OH- | -1.0 |
| FeOOHmic | FeO2- | 1.0 |
| FeOOHmic | OH- | -1.0 |
| Gt | FeO2- | 1.0 |
| Gt | OH- | -1.0 |
| Portlandite | Ca+2 | 1.0 |
| Portlandite | OH- | 2.0 |
| Amor-Sl | SiO2@ | 1.0 |
| Qtz | SiO2@ | 1.0 |
| Mg3AlC0.5OH | Mg+2 | 3.0 |
| Mg3AlC0.5OH | AlO2- | 1.0 |
| Mg3AlC0.5OH | CO3-2 | 0.5 |
| Mg3AlC0.5OH | OH- | 4.0 |
| Mg3FeC0.5OH | Mg+2 | 3.0 |
| Mg3FeC0.5OH | FeO2- | 1.0 |
| Mg3FeC0.5OH | CO3-2 | 0.5 |
| Mg3FeC0.5OH | OH- | 4.0 |
| M075SH | Mg+2 | 1.5 |
| M075SH | SiO2@ | 2.0 |
| M075SH | OH- | 3.0 |
| M15SH | Mg+2 | 1.5 |
| M15SH | SiO2@ | 1.0 |
| M15SH | OH- | 3.0 |
| zeoliteP_Ca | Ca+2 | 1.0 |
| zeoliteP_Ca | AlO2- | 2.0 |
| zeoliteP_Ca | SiO2@ | 2.0 |
| natrolite | Na+ | 2.0 |
| natrolite | AlO2- | 2.0 |
| natrolite | SiO2@ | 3.0 |
| chabazite | Ca+2 | 1.0 |
| chabazite | AlO2- | 2.0 |
| chabazite | SiO2@ | 4.0 |
| zeoliteX | Na+ | 2.0 |
| zeoliteX | AlO2- | 2.0 |
| zeoliteX | SiO2@ | 2.5 |
| zeoliteY | Na+ | 2.0 |
| zeoliteY | AlO2- | 2.0 |
| zeoliteY | SiO2@ | 4.0 |
| hydrotalcite | Mg+2 | 4.0 |
| hydrotalcite | AlO2- | 2.0 |
| hydrotalcite | OH- | 6.0 |
| M4A-OH-LDH | Mg+2 | 4.0 |
| M4A-OH-LDH | AlO2- | 2.0 |
| M4A-OH-LDH | OH- | 6.0 |
| M6A-OH-LDH | Mg+2 | 6.0 |
| M6A-OH-LDH | AlO2- | 2.0 |
| M6A-OH-LDH | OH- | 10.0 |
| M8A-OH-LDH | Mg+2 | 8.0 |
| M8A-OH-LDH | AlO2- | 2.0 |
| M8A-OH-LDH | OH- | 14.0 |
| mononitrite | Ca+2 | 4.0 |
| mononitrite | AlO2- | 2.0 |
| mononitrite | NO2- | 2.0 |
| mononitrite | OH- | 4.0 |
| C4FCl2H10 | Ca+2 | 4.0 |
| C4FCl2H10 | FeO2- | 2.0 |
| C4FCl2H10 | Cl- | 2.0 |
| C4FCl2H10 | OH- | 4.0 |
solid_standard_properties: 2 rows
Table 1, lines 170 and 177 of the accepted manuscript, read on the rendered page; Cp = a0 + a1 T + a2 T^-2 + a3 T^-0.5
| phase | printed | dfG [kJ/mol] | dfH [kJ/mol] | S [J/(mol*K)] | a0 [J/(mol*K)] | a1 [J/(mol*K^2)] | a2 [J*K/mol] | a3 [J/(mol*K^0.5)] | V [cm^3/mol] | references |
|---|---|---|---|---|---|---|---|---|---|---|
| mononitrite | C4A(NO2)2H10 | -6606.8 | -7493.1 | 799.0 | 565.0 | 0.99 | -2.24e6 | 703.0 | 275.0 | [34-36] |
| C4FCl2H10 | C4FCl2H10 | -5900.1 | -6528.0 | 1286.0 | 481.0 | 0.961 | -16100.0 | 1503.0 | 278.0 | [37] |
aqueous_species: 19 rows
Table D.1, the aqueous species with HKF parameters that the package's tests check
| species | dfG [kJ/mol] | dfH [kJ/mol] | S [J/(mol*K)] | Cp [J/(mol*K)] | V [cm^3/mol] | a1_e1 | a2_em2 | a3 | a4_em4 | c1 | c2_em4 | omega_em5 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Al+3 | -483.71 | -530.63 | -325.1 | -128.7 | -45.24 | -3.3802 | -17.0071 | 14.5185 | -2.0758 | 10.7 | -8.06 | 2.753 |
| AlO2- | -827.48 | -925.57 | -30.21 | -49.04 | 9.47 | 3.7221 | 3.9954 | -1.5879 | -2.9441 | 15.2391 | -5.4585 | 1.7418 |
| AlOH+2 | -692.6 | -767.27 | -184.93 | 55.97 | -2.73 | 2.0469 | -2.7813 | 6.8376 | -2.6639 | 29.7923 | -0.3457 | 1.7247 |
| Ca+2 | -552.79 | -543.07 | -56.48 | -30.92 | -18.44 | -0.1947 | -7.252 | 5.2966 | -2.4792 | 9.0 | -2.522 | 1.2366 |
| Ca(SO4)@ | -1310.38 | -1448.43 | 20.92 | -104.6 | 4.7 | 2.4079 | -1.8992 | 6.4895 | -2.7004 | -8.4942 | -8.1271 | -0.001 |
| CaOH+ | -717.02 | -751.65 | 28.03 | 6.05 | 5.76 | 2.7243 | -1.1303 | 6.1958 | -2.7322 | 11.1286 | -2.7493 | 0.4496 |
| Cl- | -131.29 | -167.11 | 56.74 | -122.49 | 17.34 | 4.032 | 4.801 | 5.563 | -2.847 | -4.4 | -5.714 | 1.456 |
| CO2@ | -386.02 | -413.84 | 117.57 | 243.08 | 32.81 | 6.2466 | 7.4711 | 2.8136 | -3.0879 | 40.0325 | 8.8004 | -0.02 |
| CO3-2 | -527.98 | -675.31 | -50.0 | -289.33 | -6.06 | 2.8524 | -3.9844 | 6.4142 | -2.6143 | -3.3206 | -17.1917 | 3.3914 |
| Fe+2 | -91.5 | -92.24 | -105.86 | -32.44 | -22.64 | -0.7867 | -9.6969 | 9.5479 | -2.378 | 14.786 | -4.6437 | 1.4382 |
| FeO2- | -368.26 | -443.82 | 44.35 | -234.93 | 0.45 | 2.3837 | -1.9602 | 6.5182 | -2.6979 | -13.3207 | -14.5028 | 1.4662 |
| HCO3- | -586.94 | -690.01 | 98.45 | -34.85 | 24.21 | 7.5621 | 1.1505 | 1.2346 | -2.8266 | 12.9395 | -4.7579 | 1.2733 |
| HSiO3- | -1014.6 | -1144.68 | 20.92 | -87.2 | 4.53 | 2.9735 | -0.5181 | 5.9467 | -2.7575 | 8.1489 | -7.3123 | 1.5511 |
| K+ | -282.46 | -252.14 | 101.04 | 8.39 | 9.01 | 3.559 | -1.473 | 5.435 | -2.712 | 7.4 | -1.791 | 0.1927 |
| Mg+2 | -453.99 | -465.93 | -138.07 | -21.66 | -22.01 | -0.8217 | -8.599 | 8.39 | -2.39 | 20.8 | -5.892 | 1.5372 |
| Na+ | -261.88 | -240.28 | 58.41 | 38.12 | -1.21 | 1.839 | -2.285 | 3.256 | -2.726 | 18.18 | -2.981 | 0.3306 |
| NO3- | -110.91 | -206.89 | 146.94 | -66.8 | 28.66 | 7.3161 | 6.7824 | -4.6838 | -3.0594 | 7.7 | -6.725 | 1.0977 |
| OH- | -157.27 | -230.01 | -10.71 | -136.34 | -4.71 | 1.2527 | 0.0738 | 1.8423 | -2.7821 | 4.15 | -10.346 | 1.7246 |
| SO4-2 | -744.46 | -909.7 | 18.83 | -266.09 | 12.92 | 8.3014 | -1.9846 | -6.2122 | -2.697 | 1.64 | -17.998 | 3.1463 |
aqueous_species_cp: 3 rows
Table D.1, last block: species extrapolated by Cp(T) integration or by a log K(T) fit
| species | dfG [kJ/mol] | dfH [kJ/mol] | S [J/(mol*K)] | Cp [J/(mol*K)] |
|---|---|---|---|---|
| SiO2@ | -833.41 | -887.86 | 41.34 | 44.47 |
| SiO3-2 | -938.51 | -1098.74 | -80.2 | 119.83 |
| CaSiO3@ | -1517.56 | -1668.06 | -136.68 | 88.9 |
aqueous_cp_polynomial: 1 rows
Table D.1, last block: Cp = a0 + a1 T + a2 T^-2
| species | a0 [J/(mol*K)] | a1 [J/(mol*K^2)] | a2 [J*K/mol] |
|---|---|---|---|
| SiO2@ | 46.94 | 0.034 | -1.13e6 |
gases: 7 rows
Table D.2, gaseous species; Cp = a0 + a1 T + a2 T^-2
| species | dfG [kJ/mol] | dfH [kJ/mol] | S [J/(mol*K)] | Cp [J/(mol*K)] | V [J/bar] | a0 [J/(mol*K)] | a1 [J/(mol*K^2)] | a2 [J*K/mol] |
|---|---|---|---|---|---|---|---|---|
| CH4 | -50.66 | -74.81 | 186.26 | 35.75 | 2479.0 | 23.64 | 0.0479 | -192464.0 |
| CO2 | -394.39 | -393.51 | 213.74 | 37.15 | 2479.0 | 44.22 | 0.0088 | -861904.0 |
| H2 | 0.0 | 0.0 | 130.68 | 28.82 | 2479.0 | 27.28 | 0.0033 | 50208.0 |
| H2O | -228.68 | -242.4 | 187.25 | 40.07 | 2479.0 | 52.99 | -0.0435 | 5472.0 |
| H2S | -33.75 | -20.63 | 205.79 | 34.2 | 2479.0 | 32.68 | 0.0124 | -192464.0 |
| N2 | 0.0 | 0.0 | 191.61 | 29.13 | 2479.0 | 28.58 | 0.0038 | -50208.0 |
| O2 | 0.0 | 0.0 | 205.14 | 29.32 | 2479.0 | 29.96 | 0.0042 | -167360.0 |
Notes
- alpha0 and alpha1 are the dimensionless Guggenheim interaction parameters, a0 = alpha0 R T and a1 = alpha1 R T in the Redlich-Kister form. The gap columns are the miscibility gap the parameters reproduce, as the article prints it: X(SO4) in the solid for the AFt pair, X(OH) for the AFm pair. The sign of alpha1 depends on which end-member comes first; with C4AH13 first, as in the miscibility_gap example, the spinodal the parameters give, X(OH) from 0.63 to 0.91, lies inside the printed gap.
- For the AFt pair the article notes that the parameters are downscaled to a 1 CO2 : 1 SO3 replacement, instead of the 3 CO2 : 3 SO3 of its refs. [4, 7].
- solubility_products: 'phase' is the package's symbol for the solid and is empty for the two rows of Table 2 the vendored database cannot be checked on, nitrite-AFm (the solid ships as mononitrite, the aqueous NO2- does not) and Fe-Friedel's salt (absent); their dissolution products are under the symbols mononitrite and C4FCl2H10, and their Table 1 properties in solid_standard_properties. 'printed' is the table's own name, without its footnote marks except in the Table 3 rows, where they tell two M4AH10 apart: * marks the tentative value recommended for Portland cement systems (the package's hydrotalcite), ** the tentative values recommended for alkali-activated materials (the MgAl-OH-LDH ideal solid solution).
- solid_standard_properties: the two Table 1 rows the shipped database is not checked on through Table 2. Both carry the four heat-capacity coefficients as printed. Fe-Friedel's salt carries note k (an ideal solid solution, here with Friedel's salt C4ACl2H10, which carries it too) and note l on its enthalpy and volume: 'typing error in [37], recalculated from Gf and S from [37]. Volume calculated from XRD data [37]', [37] being the thesis of B. Z. Dilnesa (EPFL, 2012). Its a2, printed -1.61x10^4 where the other AFm phases carry a few 10^6, is transcribed as printed; at 25 C it weighs 0.2 J/(mol K) in Cp. Its dfH is consistent with dfG and S at 298.15 K: with the entropies of the elements the Cemdata18 file carries, dfH - T (S - sum of the elements' S) - dfG = -0.02 kJ/mol, and dfG with Table 2: through the Cemdata18 aqueous Gibbs energies, log Ks0 = -28.61 against -28.62 printed. The nitrite-AFm row gives the same log Ks0 to 0.001 through the NO2- of the slop98 database.
- dissolution_products: Table 2 writes its reactions over Al(OH)4-, Fe(OH)4- and SiO(OH)3- (H3SiO4- for thaumasite); the CEMDATA18 primaries AlO2-, FeO2- and HSiO3- differ from those by 2, 2 and 1 H2O. The coefficients are the table's, the species are the primaries, and the water is left to the hydrogen balance.
- aqueous_species: Table D.1 heads its volume column V0 (J/bar), but the values are in cm3/mol (Ca+2 at -18.44; -18.44 J/bar would be -184.4 cm3/mol). The HKF columns are the printed numbers of the scaled columns, in the calorimetric units of the HKF papers: a1_e1 holds a1 x 10, a2_em2 a2 x 10^-2, a4_em4 a4 x 10^-4, c2_em4 c2 x 10^-4 and omega_em5 omega x 10^-5.
- gases: here the volume column is in J/bar (2479 J/bar = 24.79 L/mol, the ideal-gas molar volume at 298.15 K and 1 bar).
The file data/literature/Lothenbach2019.json on GitHub, at the commit this page was built from.
1. and are properties of water
The Debye-Hückel coefficients are not fitting constants: they follow from the density and the dielectric constant of water, and hkf_debye_huckel_params evaluates them from this package's own equation of state. The defaults the models carry,
llnl = literature_table("ParkhurstAppelo2013", "llnl_debye_huckel")
for θ in (25.0, 60.0, 100.0)
T = 273.15 + θ
p = hkf_debye_huckel_params(T, 1.0e5)
w = water_thermo_props(T, 1.0e5)
e = water_electro_props_jn(T, 1.0e5, w)
i = findfirst(==(θ), llnl.temperature_C)
@printf("T = %6.2f K ρ = %.4f g/cm³ ε = %6.2f A = %.4f (%.4f) B = %.4f (%.4f)\n",
T, w.D / 1000, e.epsilon, p.A, llnl.A[i], p.B, llnl.B[i])
endT = 298.15 K ρ = 0.9971 g/cm³ ε = 78.25 A = 0.5114 (0.5114) B = 0.3288 (0.3288)
T = 333.15 K ρ = 0.9832 g/cm³ ε = 66.68 A = 0.5465 (0.5465) B = 0.3346 (0.3346)
T = 373.15 K ρ = 0.9584 g/cm³ ε = 55.49 A = 0.5995 (0.5995) B = 0.3421 (0.3421)Data read above: ParkhurstAppelo2013Parkhurst, D. L., Appelo, C. A. J. (2013)1 quantities, 2 tables
Parkhurst, D. L., Appelo, C. A. J. (2013). Description of input and examples for PHREEQC version 3. U.S. Geological Survey Techniques and Methods 6-A43. doi:10.3133/tm6a43
Read in checked against the source
Transcribed from the published report (PDF from pubs.usgs.gov): the example block of LLNL_AQUEOUS_MODEL_PARAMETERS, p. 118, and the activity-coefficient equations of SOLUTION_SPECIES, p. 201, read on the page image
The 25 C row of the table is what the activity models of this package have used as their defaults for A, B and B-dot; the package attributed A and B to Table 1 of Helgeson et al. (1981), which gives 0.5091 and 0.3283 at 25 C (p. 1294), from the water properties of Helgeson and Kirkham (1974). The table is the one of the LLNL aqueous model, as the database llnl.dat carries it. The critical constants of the gases are read from phreeqc.dat as the file states them, not from the report; those of carbon dioxide agree with the critical point Spycher et al. (2003, p. 3016) quote from Span and Wagner (1996), 30.978 °C and 73.773 bar, that is 304.128 K and 72.81 atm, to 0.07 K and 0.07 %.
Quantities
| name | value | description | where |
|---|---|---|---|
uncharged_log_gamma_coefficient | 0.1 | Coefficient b of log10(gamma) = b I, in kg/mol, which PHREEQC applies to an uncharged species that carries no activity parameters of its own. | p. 201 |
Tables
llnl_debye_huckel: 8 rows
p. 118
| temperature_C | A | B | B_dot |
|---|---|---|---|
| 0.01 | 0.4939 | 0.3253 | 0.0374 |
| 25.0 | 0.5114 | 0.3288 | 0.041 |
| 60.0 | 0.5465 | 0.3346 | 0.0438 |
| 100.0 | 0.5995 | 0.3421 | 0.046 |
| 150.0 | 0.6855 | 0.3525 | 0.047 |
| 200.0 | 0.7994 | 0.3639 | 0.047 |
| 250.0 | 0.9593 | 0.3766 | 0.034 |
| 300.0 | 1.218 | 0.3925 | 0.0 |
gas_critical_constants: 8 rows
phreeqc.dat of PHREEQC 3.7.3 (the file datapath("phreeqc.dat") obtains from the PHREEQC repository at tag v3.7.3, unmodified), block PHASES: the critical temperature (-T_c), critical pressure (-P_c) and acentric factor (-Omega) of each gas, which its Peng-Robinson equation of state reads; the critical pressure is in atmospheres, as phreeqc.dat gives it, written 101325*Pa since the standard atmosphere is defined as exactly 101325 Pa; `gas` is the symbol the ThermoFun databases give the same gas
| phase | gas | T_c [K] | P_c [101325*Pa] | omega |
|---|---|---|---|---|
| CO2(g) | CO2 | 304.2 | 72.86 | 0.225 |
| H2O(g) | H2O | 647.3 | 217.6 | 0.344 |
| O2(g) | O2 | 154.6 | 49.8 | 0.021 |
| H2(g) | H2 | 33.2 | 12.8 | -0.225 |
| N2(g) | N2 | 126.2 | 33.5 | 0.039 |
| H2S(g) | H2S | 373.2 | 88.2 | 0.1 |
| CH4(g) | CH4 | 190.6 | 45.4 | 0.008 |
| NH3(g) | NH3 | 405.6 | 111.3 | 0.25 |
Notes
- Temperature in degrees Celsius; A in (kg/mol)^(1/2) and B in 1/Angstrom (kg/mol)^(1/2), both for decimal logarithms; B-dot in kg/mol.
The file data/literature/ParkhurstAppelo2013.json on GitHub, at the commit this page was built from.
Helgeson et al. (1981), Table 1, computed from the water properties of the time, gives slightly lower values, 0.5091 and 0.3283 at 25 °C.
Both rise with temperature, because water's dielectric constant falls faster than
2. The screening length, in nanometers
B25 = hkf_debye_huckel_params(298.15, 1.0e5).B
println(" I (mol/kg) Debye length (nm)")
for I in (0.001, 0.01, 0.1, 0.3, 1.0, 3.0)
@printf(" %10.3f %14.3f\n", I, 1 / (B25 * sqrt(I)) / 10)
end I (mol/kg) Debye length (nm)
0.001 9.618
0.010 3.042
0.100 0.962
0.300 0.555
1.000 0.304
3.000 0.176A cement pore solution sits near
3. The activity coefficients, and the water activity
println(" γ(Na⁺) a_w")
println(" m dilute Davies B-dot Cemdata18 dilute Davies B-dot Cemdata18")
for m in (0.001, 0.01, 0.1, 0.5, 1.0, 3.0)
st = nacl(m)
γ = [activity_coefficients(st, mod)["Na+"] for (_, mod) in models]
aw = [exp(log_activities(st, mod)[sym_w]) for (_, mod) in models]
@printf("%6.3f %7.4f %7.4f %7.4f %7.4f %7.5f %7.5f %7.5f %7.5f\n", m, γ..., aw...)
end γ(Na⁺) a_w
m dilute Davies B-dot Cemdata18 dilute Davies B-dot Cemdata18
0.001 1.0000 0.9649 0.9649 0.9650 0.99996 0.99996 0.99996 0.99996
0.010 1.0000 0.9017 0.9012 0.9028 0.99964 0.99965 0.99965 0.99965
0.100 1.0000 0.7807 0.7718 0.7857 0.99640 0.99663 0.99666 0.99662
0.500 1.0000 0.7326 0.6708 0.7352 0.98215 0.98274 0.98360 0.98279
1.000 1.0000 0.7902 0.6471 0.7785 0.96461 0.96313 0.96690 0.96366
3.000 1.0000 1.3679 0.6902 1.2088 0.89755 0.86048 0.89470 0.86789Read the
The Cemdata18 column is the same formula with other constants, and it stays within 2 % of the B-dot column up to a tenth molal. Above, its larger linear term takes over sooner: 0.78 against 0.65 at 1 mol/kg, and above 1 at 3 mol/kg, past the ionic strength of about 1 mol/kg up to which Cemdata18 states it.
Now the
Seen as curves rather than as a table, the separation is a matter of where each model leaves the limiting law:
using Plots
ms = exp10.(range(-3, log10(3.0); length = 120))
γ(mod, m) = activity_coefficients(nacl(m), mod)["Na+"]
aw(mod, m) = exp(log_activities(nacl(m), mod)[sym_w])
A25 = hkf_debye_huckel_params(298.15, 1.0e5).A
p1 = plot(; xscale = :log10, xlabel = "molality m (mol/kg)", ylabel = "γ(Na⁺)",
title = "Four models, one electrolyte", legend = :bottomleft)
for ((name, mod), col) in zip(models, (:gray, :firebrick, :steelblue, :darkorange))
plot!(p1, ms, [γ(mod, m) for m in ms]; label = name, linewidth = 2, color = col)
end
plot!(p1, ms, [exp(-A25 * sqrt(m) * log(10)) for m in ms];
label = "Debye-Hückel limiting law", linestyle = :dot, color = :black, linewidth = 2)
plot(p1; size = (720, 430), left_margin = 8Plots.mm, bottom_margin = 8Plots.mm)
p2 = plot(; xscale = :log10, xlabel = "molality m (mol/kg)", ylabel = "water activity a_w",
title = "The water activity barely separates", legend = :bottomleft)
for ((name, mod), col) in zip(models, (:gray, :firebrick, :steelblue, :darkorange))
plot!(p2, ms, [aw(mod, m) for m in ms]; label = name, linewidth = 2, color = col,
linestyle = name == "Davies" ? :dash : :solid)
end
plot(p2; size = (720, 430), left_margin = 10Plots.mm, bottom_margin = 8Plots.mm)
The four curves lie together up to a molal, and the two with the larger linear term leave the others above it.
4. Gibbs-Duhem: one system, or two halves
Equilibrium is set by chemical potentials, that is by derivatives of the activities with respect to composition. So the test that matters is whether
cs3 = ChemicalSystem([dict[s] for s in split("H2O@ Na+ Cl-")], ["H2O@", "Na+", "Cl-"])
M_W = ustrip(us"kg/mol", cs3.species[only(cs3.idx_solvent)][:M])
n_w = 1.0 / M_W
function gd_residual(mod, m, dn)
μ = build_potentials(cs3, mod)
p = (ΔₐG⁰overRT = zeros(3), T = 298.15, P = 1.0e5, ϵ = 1.0e-30)
n0 = [n_w, m, m]
dμ = ForwardDiff.jacobian(n -> μ(n, p), n0) * dn
return abs(sum(n0 .* dμ)) / max(norm(n0 .* abs.(dμ)), 1.0)
end
for (name, dn) in ("dissolution dn = (0, +1, +1)" => [0.0, 1.0, 1.0],
"ion exchange dn = (0, +1, -1)" => [0.0, 1.0, -1.0],
"water removal dn = (-1, 0, 0)" => [-1.0, 0.0, 0.0])
println("\n── ", name)
println(" m dilute Davies B-dot Cemdata18")
for m in (0.1, 0.3, 1.0, 3.0)
r = [gd_residual(mod, m, dn) for (_, mod) in models]
@printf("%6.2f %10.3e %10.3e %10.3e %10.3e\n", m, r...)
end
end
── dissolution dn = (0, +1, +1)
m dilute Davies B-dot Cemdata18
0.10 4.532e-17 0.000e+00 9.933e-17 2.922e-16
0.30 0.000e+00 1.866e-16 9.932e-17 9.364e-17
1.00 0.000e+00 0.000e+00 0.000e+00 0.000e+00
3.00 0.000e+00 9.427e-17 0.000e+00 0.000e+00
── ion exchange dn = (0, +1, -1)
m dilute Davies B-dot Cemdata18
0.10 0.000e+00 0.000e+00 0.000e+00 0.000e+00
0.30 0.000e+00 0.000e+00 0.000e+00 0.000e+00
1.00 0.000e+00 0.000e+00 0.000e+00 0.000e+00
3.00 0.000e+00 0.000e+00 0.000e+00 0.000e+00
── water removal dn = (-1, 0, 0)
m dilute Davies B-dot Cemdata18
0.10 4.337e-19 4.337e-19 8.674e-19 0.000e+00
0.30 1.735e-18 1.735e-18 0.000e+00 0.000e+00
1.00 0.000e+00 6.939e-18 0.000e+00 6.939e-18
3.00 0.000e+00 2.776e-17 2.776e-17 0.000e+00In sodium chloride every model is consistent to rounding, along every direction: each builds its solvent row from its own solutes' terms, the ideal model as
csm = ChemicalSystem([dict[s] for s in split("H2O@ Na+ Ca+2 Cl- SO4-2 CO2@")],
["H2O@", "Na+", "Ca+2", "Cl-", "SO4-2", "CO2@"])
amt = Dict("H2O@" => n_w, "Na+" => 0.2, "Ca+2" => 0.02, "Cl-" => 0.2,
"SO4-2" => 0.02, "CO2@" => 0.01)
nm = [amt[symbol(s)] for s in csm.species]
pm = ChemistryLab._build_params(ChemicalState(csm, nm .* u"mol"))
println(" symmetry Gibbs-Duhem")
for (name, mod) in models
J = ForwardDiff.jacobian(n -> activity_model(csm, mod)(n, pm), nm)
sym = ChemistryLab._jacobian_asymmetry(J)[1]
gd = ChemistryLab._gibbs_duhem_defect(J, nm)[1]
@printf("%-10s %10.3e %10.3e\n", name, sym, gd)
end symmetry Gibbs-Duhem
dilute 0.000e+00 1.254e-16
Davies 1.000e+00 2.343e-03
B-dot 1.000e+00 6.565e-03
Cemdata18 1.000e+00 4.841e-02The ideal model stays exact. The other three are not the gradient of a Gibbs energy here: Davies through the salting-out term of the dissolved carbon dioxide alone (with bₙ = 0 it is exact), the B-dot model through its ion sizes, its linear term and that same salting-out, and the Cemdata18 constants, which give the neutral species the ions' linear coefficient, most of all. Their certified equilibria are then compositions consistent with their own activities rather than minima of an energy, which is what their certificate's scope says, and an optimizer minimizing
What to take from this
below
mol/kg the choice hardly matters, andDiluteSolutionModelis the best-conditioned objective;between there and about a molal, use
HKFActivityModel, whose ion sizes distinguish the ions Davies treats alike, and which follows the measured coefficients further than Davies once their linear terms take over. For the pore solution of a cement,cemdata18_activity_modelgives it the parameters Cemdata18 prescribes, which Lothenbach et al. (2019) state valid to about 1 mol/kg, and a certified answer reports its ionic strength against that;above a few molal, none of these is defensible, and no warning is issued because none of them knows.
solvent_fractionis the guard that does.
Where to go next
The expressions compared here are derived in Activity models, and the same exercise on the mole-fraction side is Solid solution models, in numbers.