Skip to content

What the choice of activity model costs ​

Before this page

Activity models.

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.

julia
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

namevaluedescriptionwhere
edh_ion_size_KOH3.67Common 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_NaOH3.31Common 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_25C0.123 kg/molCommon 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_25C0.098 kg/molCommon 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_strength1.0 mol/kgEffective 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

pairalpha0alpha1gap_fromgap_to
AFt SO4/CO31.670.9460.10.55
AFm SO4/OH0.1882.490.50.97
AFt Al/Fe2.1-0.1690.250.65
AFm Al/Fe1.261.570.450.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)

phaseprintedlog_Ks0
ettringite(Al-)ettringite-44.9
tricarboalutricarboaluminate-46.5
Fe-ettringiteFe-ettringite-44.0
thaumasitethaumasite-24.75
C3AH6C3AH6-20.5
C3AS0.41H5.18C3AS0.41H5.18-25.35
C3AS0.84H4.32C3AS0.84H4.32-26.7
C3FH6C3FH6-26.3
C3FS0.84H4.32C3FS0.84H4.32-32.5
C3AFS0.84H4.32C3(F,A)S0.84H4.32-30.2
C3FS1.34H3.32C3FS1.34H3.32-34.2
C4AH19C4AH19-25.45
C4AH13C4AH13-25.25
C2AH7.5C2AH7.5-13.8
CAH10CAH10-7.6
hemicarbonateC4Ac0.5H12-29.13
monocarbonateC4AcH11-31.47
monosulphate14C4AsH14-29.26
monosulphate12C4AsH12-29.23
straetlingiteC2ASH8-19.7
C4AClH10Friedel's salt-27.27
C4AsClH12Kuzel's salt-28.53
mononitrateNitrate-AFm-28.67
Nitrite-AFm-26.24
C4FH13C4FH13-30.75
Fe-hemicarbonateFe-hemicarbonate-30.83
FemonocarbonateFe-monocarbonate-34.59
Fe-monosulphateFe-monosulfate-31.57
Fe-Friedel's salt-28.62
AnhCs (anhydrite)-4.357
GpCsH2 (gypsum)-4.581
hemihydrateCsH0.5 (hemihydrate)-3.59
syngenitesyngenite-7.2
AlOHamAl(OH)3(am)0.24
AlOHmicAl(OH)3(mic)-0.67
GbsAl(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
FeOOHmicFeOOH(mic)-5.6
GtFeOOH(goethite)-8.6
PortlanditeCH-5.2
Amor-SlSiO2(am)-2.714
QtzSiO2(quartz)-3.746
Mg3AlC0.5OH1/2M6AcH13-33.29
Mg3FeC0.5OH1/2M6FcH13-33.64
M075SHM1.5S2H2.5-28.8
M15SHM1.5SH2.5-23.57
zeoliteP_CaZeolite P(Ca)-20.3
natroliteNatrolite-30.2
chabaziteChabazite-25.8
zeoliteXZeolite X(Na)-20.1
zeoliteYZeolite Y(Na)-25.0
hydrotalciteM4AH10*-56.02
M4A-OH-LDHM4AH10**-49.7
M6A-OH-LDHM6AH12**-72.0
M8A-OH-LDHM8AH14**-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

phasespeciescoefficient
ettringiteCa+26.0
ettringiteAlO2-2.0
ettringiteSO4-23.0
ettringiteOH-4.0
tricarboaluCa+26.0
tricarboaluAlO2-2.0
tricarboaluCO3-23.0
tricarboaluOH-4.0
Fe-ettringiteCa+26.0
Fe-ettringiteFeO2-2.0
Fe-ettringiteSO4-23.0
Fe-ettringiteOH-4.0
thaumasiteCa+23.0
thaumasiteHSiO3-1.0
thaumasiteSO4-21.0
thaumasiteCO3-21.0
thaumasiteOH-1.0
C3AH6Ca+23.0
C3AH6AlO2-2.0
C3AH6OH-4.0
C3AS0.41H5.18Ca+23.0
C3AS0.41H5.18AlO2-2.0
C3AS0.41H5.18HSiO3-0.41
C3AS0.41H5.18OH-3.59
C3AS0.84H4.32Ca+23.0
C3AS0.84H4.32AlO2-2.0
C3AS0.84H4.32HSiO3-0.84
C3AS0.84H4.32OH-3.16
C3FH6Ca+23.0
C3FH6FeO2-2.0
C3FH6OH-4.0
C3FS0.84H4.32Ca+23.0
C3FS0.84H4.32FeO2-2.0
C3FS0.84H4.32HSiO3-0.84
C3FS0.84H4.32OH-3.16
C3AFS0.84H4.32Ca+23.0
C3AFS0.84H4.32AlO2-1.0
C3AFS0.84H4.32FeO2-1.0
C3AFS0.84H4.32HSiO3-0.84
C3AFS0.84H4.32OH-3.16
C3FS1.34H3.32Ca+23.0
C3FS1.34H3.32FeO2-2.0
C3FS1.34H3.32HSiO3-1.34
C3FS1.34H3.32OH-2.66
C4AH19Ca+24.0
C4AH19AlO2-2.0
C4AH19OH-6.0
C4AH13Ca+24.0
C4AH13AlO2-2.0
C4AH13OH-6.0
C2AH7.5Ca+22.0
C2AH7.5AlO2-2.0
C2AH7.5OH-2.0
CAH10Ca+21.0
CAH10AlO2-2.0
hemicarbonateCa+24.0
hemicarbonateAlO2-2.0
hemicarbonateCO3-20.5
hemicarbonateOH-5.0
monocarbonateCa+24.0
monocarbonateAlO2-2.0
monocarbonateCO3-21.0
monocarbonateOH-4.0
monosulphate14Ca+24.0
monosulphate14AlO2-2.0
monosulphate14SO4-21.0
monosulphate14OH-4.0
monosulphate12Ca+24.0
monosulphate12AlO2-2.0
monosulphate12SO4-21.0
monosulphate12OH-4.0
straetlingiteCa+22.0
straetlingiteAlO2-2.0
straetlingiteHSiO3-1.0
straetlingiteOH-1.0
C4AClH10Ca+24.0
C4AClH10AlO2-2.0
C4AClH10Cl-2.0
C4AClH10OH-4.0
C4AsClH12Ca+24.0
C4AsClH12AlO2-2.0
C4AsClH12Cl-1.0
C4AsClH12SO4-20.5
C4AsClH12OH-4.0
mononitrateCa+24.0
mononitrateAlO2-2.0
mononitrateNO3-2.0
mononitrateOH-4.0
C4FH13Ca+24.0
C4FH13FeO2-2.0
C4FH13OH-6.0
Fe-hemicarbonateCa+24.0
Fe-hemicarbonateFeO2-2.0
Fe-hemicarbonateCO3-20.5
Fe-hemicarbonateOH-5.0
FemonocarbonateCa+24.0
FemonocarbonateFeO2-2.0
FemonocarbonateCO3-21.0
FemonocarbonateOH-4.0
Fe-monosulphateCa+24.0
Fe-monosulphateFeO2-2.0
Fe-monosulphateSO4-21.0
Fe-monosulphateOH-4.0
AnhCa+21.0
AnhSO4-21.0
GpCa+21.0
GpSO4-21.0
hemihydrateCa+21.0
hemihydrateSO4-21.0
syngeniteK+2.0
syngeniteCa+21.0
syngeniteSO4-22.0
AlOHamAlO2-1.0
AlOHamOH--1.0
AlOHmicAlO2-1.0
AlOHmicOH--1.0
GbsAlO2-1.0
GbsOH--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
FeOOHmicFeO2-1.0
FeOOHmicOH--1.0
GtFeO2-1.0
GtOH--1.0
PortlanditeCa+21.0
PortlanditeOH-2.0
Amor-SlSiO2@1.0
QtzSiO2@1.0
Mg3AlC0.5OHMg+23.0
Mg3AlC0.5OHAlO2-1.0
Mg3AlC0.5OHCO3-20.5
Mg3AlC0.5OHOH-4.0
Mg3FeC0.5OHMg+23.0
Mg3FeC0.5OHFeO2-1.0
Mg3FeC0.5OHCO3-20.5
Mg3FeC0.5OHOH-4.0
M075SHMg+21.5
M075SHSiO2@2.0
M075SHOH-3.0
M15SHMg+21.5
M15SHSiO2@1.0
M15SHOH-3.0
zeoliteP_CaCa+21.0
zeoliteP_CaAlO2-2.0
zeoliteP_CaSiO2@2.0
natroliteNa+2.0
natroliteAlO2-2.0
natroliteSiO2@3.0
chabaziteCa+21.0
chabaziteAlO2-2.0
chabaziteSiO2@4.0
zeoliteXNa+2.0
zeoliteXAlO2-2.0
zeoliteXSiO2@2.5
zeoliteYNa+2.0
zeoliteYAlO2-2.0
zeoliteYSiO2@4.0
hydrotalciteMg+24.0
hydrotalciteAlO2-2.0
hydrotalciteOH-6.0
M4A-OH-LDHMg+24.0
M4A-OH-LDHAlO2-2.0
M4A-OH-LDHOH-6.0
M6A-OH-LDHMg+26.0
M6A-OH-LDHAlO2-2.0
M6A-OH-LDHOH-10.0
M8A-OH-LDHMg+28.0
M8A-OH-LDHAlO2-2.0
M8A-OH-LDHOH-14.0
mononitriteCa+24.0
mononitriteAlO2-2.0
mononitriteNO2-2.0
mononitriteOH-4.0
C4FCl2H10Ca+24.0
C4FCl2H10FeO2-2.0
C4FCl2H10Cl-2.0
C4FCl2H10OH-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

phaseprinteddfG [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
mononitriteC4A(NO2)2H10-6606.8-7493.1799.0565.00.99-2.24e6703.0275.0[34-36]
C4FCl2H10C4FCl2H10-5900.1-6528.01286.0481.00.961-16100.01503.0278.0[37]
aqueous_species: 19 rows

Table D.1, the aqueous species with HKF parameters that the package's tests check

speciesdfG [kJ/mol]dfH [kJ/mol]S [J/(mol*K)]Cp [J/(mol*K)]V [cm^3/mol]a1_e1a2_em2a3a4_em4c1c2_em4omega_em5
Al+3-483.71-530.63-325.1-128.7-45.24-3.3802-17.007114.5185-2.075810.7-8.062.753
AlO2--827.48-925.57-30.21-49.049.473.72213.9954-1.5879-2.944115.2391-5.45851.7418
AlOH+2-692.6-767.27-184.9355.97-2.732.0469-2.78136.8376-2.663929.7923-0.34571.7247
Ca+2-552.79-543.07-56.48-30.92-18.44-0.1947-7.2525.2966-2.47929.0-2.5221.2366
Ca(SO4)@-1310.38-1448.4320.92-104.64.72.4079-1.89926.4895-2.7004-8.4942-8.1271-0.001
CaOH+-717.02-751.6528.036.055.762.7243-1.13036.1958-2.732211.1286-2.74930.4496
Cl--131.29-167.1156.74-122.4917.344.0324.8015.563-2.847-4.4-5.7141.456
CO2@-386.02-413.84117.57243.0832.816.24667.47112.8136-3.087940.03258.8004-0.02
CO3-2-527.98-675.31-50.0-289.33-6.062.8524-3.98446.4142-2.6143-3.3206-17.19173.3914
Fe+2-91.5-92.24-105.86-32.44-22.64-0.7867-9.69699.5479-2.37814.786-4.64371.4382
FeO2--368.26-443.8244.35-234.930.452.3837-1.96026.5182-2.6979-13.3207-14.50281.4662
HCO3--586.94-690.0198.45-34.8524.217.56211.15051.2346-2.826612.9395-4.75791.2733
HSiO3--1014.6-1144.6820.92-87.24.532.9735-0.51815.9467-2.75758.1489-7.31231.5511
K+-282.46-252.14101.048.399.013.559-1.4735.435-2.7127.4-1.7910.1927
Mg+2-453.99-465.93-138.07-21.66-22.01-0.8217-8.5998.39-2.3920.8-5.8921.5372
Na+-261.88-240.2858.4138.12-1.211.839-2.2853.256-2.72618.18-2.9810.3306
NO3--110.91-206.89146.94-66.828.667.31616.7824-4.6838-3.05947.7-6.7251.0977
OH--157.27-230.01-10.71-136.34-4.711.25270.07381.8423-2.78214.15-10.3461.7246
SO4-2-744.46-909.718.83-266.0912.928.3014-1.9846-6.2122-2.6971.64-17.9983.1463
aqueous_species_cp: 3 rows

Table D.1, last block: species extrapolated by Cp(T) integration or by a log K(T) fit

speciesdfG [kJ/mol]dfH [kJ/mol]S [J/(mol*K)]Cp [J/(mol*K)]
SiO2@-833.41-887.8641.3444.47
SiO3-2-938.51-1098.74-80.2119.83
CaSiO3@-1517.56-1668.06-136.6888.9
aqueous_cp_polynomial: 1 rows

Table D.1, last block: Cp = a0 + a1 T + a2 T^-2

speciesa0 [J/(mol*K)]a1 [J/(mol*K^2)]a2 [J*K/mol]
SiO2@46.940.034-1.13e6
gases: 7 rows

Table D.2, gaseous species; Cp = a0 + a1 T + a2 T^-2

speciesdfG [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.81186.2635.752479.023.640.0479-192464.0
CO2-394.39-393.51213.7437.152479.044.220.0088-861904.0
H20.00.0130.6828.822479.027.280.003350208.0
H2O-228.68-242.4187.2540.072479.052.99-0.04355472.0
H2S-33.75-20.63205.7934.22479.032.680.0124-192464.0
N20.00.0191.6129.132479.028.580.0038-50208.0
O20.00.0205.1429.322479.029.960.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).

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,   and   at 25 °C, are therefore derived — and they agree with the values the LLNL aqueous model tabulates (Parkhurst and Appelo, 2013; p. 118), printed beside them:

julia
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])
end
T = 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

namevaluedescriptionwhere
uncharged_log_gamma_coefficient0.1Coefficient 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_CABB_dot
0.010.49390.32530.0374
25.00.51140.32880.041
60.00.54650.33460.0438
100.00.59950.34210.046
150.00.68550.35250.047
200.00.79940.36390.047
250.00.95930.37660.034
300.01.2180.39250.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

phasegasT_c [K]P_c [101325*Pa]omega
CO2(g)CO2304.272.860.225
H2O(g)H2O647.3217.60.344
O2(g)O2154.649.80.021
H2(g)H233.212.8-0.225
N2(g)N2126.233.50.039
H2S(g)H2S373.288.20.1
CH4(g)CH4190.645.40.008
NH3(g)NH3405.6111.30.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.

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 rises: hot water screens worse, so the same ionic strength costs more.

2. The screening length, in nanometers ​

  is in ångström when is in  ; the table gives it in nanometers:

julia
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.176

A cement pore solution sits near  – mol/kg, so its screening length is a few ångström — two or three water molecules, and the width of the gel pores where a hydrating paste keeps its last water. That coincidence is discussed in the water budget; it is the reason to treat an extended Debye-Hückel model as a correlation in bulk solution rather than a theory of confined water.

3. The activity coefficients, and the water activity ​

julia
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.86789

Read the columns first. The ideal model is already several percent off at a millimolal, which is worth knowing before treating ideality as a safe default. The two corrections agree to about 1 % up to a tenth molal and part company above it — 8 % apart at 0.5 mol/kg — and by 3 mol/kg Davies (Davies, 1962) has returned   while the B-dot model is still below 1: the term has taken over, which is the ceiling of the B-dot construction arriving.

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 columns: they barely separate below a molal, within 0.4 % of one another at 1 mol/kg. At 3 mol/kg the ideal 0.898 and the B-dot 0.895 still sit together, while Davies and the Cemdata18 constants, whose linear terms weigh more, take the water activity to 0.860 and 0.868. Each of these is the solvent row the Gibbs-Duhem relation pairs with the model's own activity coefficients, so a difference in is a difference in seen from the solvent.

Seen as curves rather than as a table, the separation is a matter of where each model leaves the limiting law:

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

julia
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    holds along a composition change, measured here along three directions, with the derivative taken by automatic differentiation so that nothing but the algebra is measured.

julia
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+00

In 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 , Davies by a closed form, the B-dot model by integrating its , and , and with two ions of one charge and one size nothing is left to break the relation. What breaks it is what a single salt cannot show: ions of different sizes or charges under a linear term, and neutral species carrying a salting-out coefficient that the ions' coefficients do not return. A mixed solution, sodium and calcium chlorides and sulfates with dissolved carbon dioxide, shows it, through the symmetry of the Jacobian of the log activities and the Gibbs-Duhem relation over all its columns:

julia
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-02

The 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   would not find them: see One equilibrium, whatever the back end.

What to take from this ​

  • below   mol/kg the choice hardly matters, and DiluteSolutionModel is 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_model gives 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_fraction is 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.