A pure solid has : it is its own standard state, its chemical potential does not depend on how much of it there is, and it either precipitates or it does not. A solid solution is a single crystalline phase whose composition varies continuously between end-members, and that changes the thermodynamics qualitatively: the activity of an end-member depends on the composition of the phase, so the phase can absorb a component gradually instead of appearing all at once.
This matters in cement more than anywhere else. C-S-H is not a compound with a formula but a phase of variable Ca/Si; the AFm phases exchange sulfate, carbonate and hydroxide on the same interlayer site; alkalis partition into hydrates rather than staying in solution. A model that only knows pure phases predicts sharp appearances and disappearances that are not observed.
1. Ideal mixing: the activity is the mole fraction
Put moles of each end-member into one phase, with mole fractions . Even with no interaction at all, mixing lowers the Gibbs energy, because there are more ways to arrange a mixture than a pure solid. Per mole of phase,
which is entropy alone — the of mixing. Differentiating for one end-member gives its chemical potential and hence its activity:
That is IdealSolidSolutionModel, and it is the default. It already gives this: an end-member at has , so its saturation index is shifted by decades relative to the pure phase. A trace component is stabilized by being diluted in a host, which is why a solid solution can take up an ion that would never precipitate as its own phase.
The curve, its tangent, and the plane of the rest of the system
Per mole of phase, the Gibbs energy of a binary of end-members A and B is the straight line of the two end-members unmixed, , plus , negative between the two: the curve lies below the line, and the same matter costs less mixed than apart (left panel). The tangent to the curve at a composition meets the edges and at the chemical potentials of the two end-members in the phase, and it is through these potentials that the phase exchanges matter with the rest of the system.
At equilibrium each element has one potential, shared by every phase, and those potentials give each end-member a potential in units of , which defines a plane over the compositions of the phase (right panel). A curve lying above that plane everywhere is the Gibbs energy of an absent phase, none of its compositions being as cheap as what the rest of the system already offers; a curve touching it is that of a present phase, at the composition of the contact; a curve dipping below it is that of a phase which would lower the Gibbs energy by forming, so that the state is not yet an equilibrium. With , the phase is present exactly when , which the certifying solver uses as an equation. For ideal mixing , and is then the saturation ratio end-member would have as a pure phase: an ideal solid solution forms as soon as reaches one, while every is still below one and no end-member would precipitate on its own. Solid solutions in a calculation reads these ratios on a C-S-H gel.
Real end-members interact. Everything beyond the ideal term is collected into the excess Gibbs energy , and the activity coefficient is its partial molar derivative:
and then . The code does exactly this: for these models _ss_log_activities! writes log(x[k] + ϵ) + _excess_ln_gamma(model, k, x, T) into the log-activity vector, so the two terms are visibly separate and a model supplies only the second. The model of section 7 is written differently, and has its own method.
3. RegularSolutionModel — one interaction energy per pair
The simplest non-ideal form keeps only pairwise contacts, with one energy per pair of end-members:
which is the symmetric multicomponent Margules expression, and it is _excess_ln_gamma(::RegularSolutionModel, …) line for line. For a binary it collapses to the form usually quoted:
In the picture of nearest neighbors behind the model, (J/mol) is the energy of an – contact less the mean of the – and – contacts, counted over the contacts of a mole. Fitted to data, it often has to depend on temperature or pressure, and it then mixes enthalpy and entropy, but its sign keeps the sign of the departure from ideal mixing (Richet, 2001; Sec. 11.4b, pp. 262–263), and that sign is physical:
— unlike neighbors are unfavorable. , the phase resists mixing, and above a threshold it unmixes;
— unlike neighbors are favorable. , mixing is stabilized beyond ideal, and the phase may order.
W must be square and symmetric, which a validating inner constructor enforces; the reason it is inner rather than outer is recorded in the source, and it is a mistake worth not repeating.
For a symmetric binary, the molar Gibbs energy of mixing is . A phase is unstable to unmixing where that function is concave, and
which at is : negative as soon as . So — about 5 kJ/mol at 25 °C — is the critical point of a symmetric regular solution: below it one homogeneous phase, above it a miscibility gap that widens as grows. The threshold is evaluated, and the sign of the second derivative tabulated on either side of it, in Solid solution models, in numbers.
This matters in practice because nothing in the activity expression detects it. Past the threshold it goes on returning values, and those values describe a single phase that should have split. The check is therefore made at construction: SolidSolutionPhase evaluates the second derivative and refuses a model that unmixes at the temperature given, naming the interval, unless the phase is declared with two instances (section 6) or the check is switched off with check_convexity = false.
4. RedlichKisterModel — a binary that need not be symmetric
A regular solution is symmetric by construction: swapping the end-members leaves unchanged. Real binaries often are not, so the excess is expanded in a polynomial of the composition difference. As implemented, for two end-members,
with in J/mol. Read the roles off the formulas: is the symmetric term and is exactly a regular solution's ; and are the asymmetric corrections, so setting them to zero must reproduce the regular model. That is an identity between two independently written methods, and it is checked rather than trusted in Solid solution models, in numbers, where the two agree to the last digit.
RedlichKisterModelrequires exactly two end-members, and SolidSolutionPhase refuses the combination at construction rather than letting a ternary reach an expression written for a binary. For three or more end-members the choices are the ideal model, RegularSolutionModel with a full matrix, or the asymmetric models of section 9: the subregular model, whose binaries are this model to the first order, the series of every order, and the van Laar model.
Published dimensionless parameters, and the temperature
Cemdata18 gives its non-ideal AFt and AFm binaries dimensionless Guggenheim parameters and (Lothenbach et al., 2019) (its Table 1, notes a, b, g and h, in data/literature/Lothenbach2019.json), and no temperature dependence for them. The package turns them into with K and keeps in J/mol at every temperature: the excess Gibbs energy is then all enthalpy, and the interaction it puts into at another temperature is , 7 % larger at 5 °C and 16 % smaller at 80 °C. Holding itself constant would make the excess all entropy and leave the same at every temperature. The two limits have classical names, a regular solution for the first and an athermal one for the second (Richet, 2001; Secs. 11.4b and 11.5e, pp. 262 and 270). Neither choice is in the source, and no data in the package decides between them; the edges of a gap measured at two temperatures would. What the choice does to the gap of the AFm SO₄/OH binary, monosulfate and C₄AH₁₃, whose printed edges are the 25 °C ones:
julia
using ChemistryLab, DynamicQuantities, Printfp = literature_row("Lothenbach2019", "guggenheim_parameters", "AFm SO4/OH")α0, α1 = ustrip(p.alpha0), ustrip(p.alpha1)rk(T) = RedlichKisterModel(a0 = α0 * R_GAS * T, a1 = α1 * R_GAS * T)@printf("printed gap: %.2f to %.2f\n", ustrip(p.gap_from), ustrip(p.gap_to))println(" °C a in J/mol held (the package) α held")for T_C in (5, 25, 50, 80) T = T_C + 273.15 held_a = common_tangent(rk(298.15); T) held_α = common_tangent(rk(T); T) @printf("%3d %.3f to %.3f %.3f to %.3f\n", T_C, held_a..., held_α...)end
printed gap: 0.50 to 0.97 °C a in J/mol held (the package) α held 5 0.478 to 0.977 0.500 to 0.970 25 0.500 to 0.970 0.500 to 0.970 50 0.528 to 0.959 0.500 to 0.970 80 0.565 to 0.943 0.500 to 0.970
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
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).
Both give the printed gap at 25 °C. The package's choice narrows it as the temperature rises, from 0.48–0.98 at 5 °C to 0.57–0.94 at 80 °C (the mole fraction of C₄AH₁₃, the OH end, as the edges are printed); the other keeps it where Cemdata18 prints it.
Evaluated over the whole composition range in Solid solution models, in numbers, with kJ/mol — inside the stable range of §3, so that the numbers describe a phase that stays homogeneous. Two things to read off it.
A positive pushes the activity of a dilute end-member above its mole fraction: the host is rejecting it. A negative pulls it below: the host is stabilizing it. And at all three models converge, because as the phase becomes pure — the standard state of an end-member is the pure end-member, so they agree there by construction.
The ideal case is the one to keep in mind for cement. An end-member at has , so its saturation index sits three decades below the pure phase: a trace component is stabilized simply by being diluted in a host. That is how a solid solution takes up an ion which would never precipitate as a phase of its own, and it is the whole reason C-S-H and the AFm phases can absorb alkalis, sulfate and carbonate continuously instead of in jumps.
6. The spinodal, the common tangent, and why one amount is not enough
Sections 3 and 4 gave models whose excess term can be strong enough to make the molar Gibbs energy of mixing concave over an interval. This section is about what that means for the equilibrium, because it is not a detail of the model: it changes what the answer is.
Convexity is the hypothesis under everything else
For a binary write the molar Gibbs energy of mixing, in units of , as
The ideal part is convex everywhere — its second derivative is — so unmixing is always the excess term's doing. Where
the phase is inside its spinodal, and there the straight line joining two compositions lies below the curve between them. A system at an intermediate overall composition therefore lowers its energy by separating into those two, and the minimum of is not a point but a pair.
For the symmetric regular solution of section 3 the criterion is exactly at , so unmixing begins at — the threshold section 3 already quoted, here derived from the same inequality. spinodal_interval evaluates the second derivative on a grid rather than in closed form, which is why the same routine covers the asymmetric Redlich-Kister case without a separate derivation.
Which pair? Write now for the molar Gibbs energy of the phase with its standard terms included,
the mole fraction of the end-member B and the energy of mixing above; the linear terms change neither the second derivative nor, as shown below, the pair. Let moles of the phase, of overall composition , be shared between two parts and holding and moles at compositions and . At fixed and the equilibrium minimizes
the conservation of the two end-members. With a multiplier for the first constraint and for the second, the Lagrangian is , and its stationarity with respect to the compositions and to the amounts, both parts being present (), reads
The four equations say one thing: the straight line passes through the curve at and at and has the slope of the curve at both, so that it is tangent to at the two compositions, the common tangent. Eliminating gives the two equations in two unknowns that common_tangent solves:
The multipliers are chemical potentials. The tangent to at a composition meets the vertical at , the chemical potential of A at that composition, and the vertical at , that of B, partial molar quantities being read as the intercepts of the tangent (Richet, 2001; Sec. 3.2c, Fig. 3.2, pp. 51–52). The stationarity therefore states that and in both parts: each end-member has the same chemical potential in the two compositions, which is the condition of equilibrium between any two phases (Richet, 2001; Sec. 7.3, Fig. 7.5, pp. 167–169).
Nothing requires the two points to be at the same height: , which vanishes only for a horizontal tangent, , as for a symmetric mixing energy between end-members of equal standard potentials. Nor are they the minima of , where while here . A term linear in , as the standard potentials add, tilts the curve and its tangent alike and moves neither point: the pair depends on the mixing model only.
What the split gains follows from the lever rule, : the Gibbs energy of the two parts is , the height of the tangent at , below the of a single composition wherever the curve rises above its tangent. Between and the equilibrium is this mixture, and the energy follows the tangent rather than the curve. Stationarity alone does not select it, however: a single composition, , satisfies the same equations with the tangent drawn at . What separates the two is a condition on the whole curve, that it lie nowhere below the line, which is the tangent-plane test of Michelsen (1982), the subject of a subsection below.
The common tangent construction is wider than the spinodal: the binodal contains the spinodal, and between the two the phase is metastable rather than unstable. Inside the spinodal any small fluctuation of composition lowers and grows by itself; between the spinodal and the binodal every small fluctuation raises it, and the phase splits only through a nucleus large enough to pay for its interface (Richet, 2001; Sec. 7.3c, p. 170). A minimization sees only the tangent.
The right panel states the difficulty the rest of this section resolves: inside the gap the equilibrium holds the phase at two compositions at once, in the proportions of the lever rule, which a formulation carrying one amount per end-member has no means to express.
The pair is not found by minimizing. It is computed from the model alone, by common_tangent: two equations in two unknowns, solved by Newton with ForwardDiff supplying the derivatives. Nothing about the rest of the chemical system enters — not the aqueous solution, not the other phases, not the element budget — which is why it costs microseconds and can be used as the starting point of a full equilibrium rather than as its result.
The construction is that of Glynn and Reardon (1990) for binary solid solutions, which PHREEQC (Parkhurst and Appelo, 2013) uses as well. It was validated here against a case with a closed form: for a symmetric model the pair must be symmetric about , and it comes out at with a residual of and the symmetry exact to the last bit. For a symmetric regular model the pair has a closed form, (Richet, 2001; Sec. 10.4b, Eq. (10.29), p. 230), which these two compositions satisfy with to the six figures given.
miscibility_split then applies the lever rule. Inside the gap the two compositions are fixed and only their proportions move with the overall composition — which is what makes a miscibility gap flat in a phase diagram, and what a single-composition answer cannot reproduce at any resolution.
Why a formulation with one amount per species cannot hold it
The composition vector of a ChemicalSystem has one entry per species, so a species belongs to exactly one phase and a phase has exactly one composition. A common-tangent pair is two compositions of one substance, and there is no way to write that down with one amount each.
So the formulation has to be given the substance twice. That is what SolidSolutionPhase(...; instances = 2) does: ChemicalSystem builds a second copy of each end-member under a derived symbol (monosulphate12#2) sharing the same thermodynamic record, and each copy belongs to its own phase. The groups stay disjoint, the duplicated columns of the conservation matrix are copies of columns already there — so the row rank, and with it conservation, is untouched — and the minimization is free to populate either lobe or both.
It is refused for a convex model, and the reason is worth stating because it is not conservatism. Two instances of a convex phase are degenerate: the energy is the same however the amount is split between them, so the minimum becomes a flat manifold and the optimizer is asked to pick a point on it arbitrarily. Inside a spinodal the common-tangent pair is unique and no such direction exists.
Michelsen's tangent-plane distance, which is what detects it
Representation is one problem; knowing that it is needed is another. A phase sitting inside its own spinodal satisfies every first-order condition — its end-members are stationary, the element balance closes, nothing absent is supersaturated — so stationarity alone certifies a non-minimum.
The test that separates them is Michelsen's (Michelsen, 1982): for a trial composition of the phase, the tangent-plane distance
measures how far the Gibbs surface at lies above the tangent plane drawn at the reported composition . If is negative anywhere, some other composition lies below that plane and the reported state is not a minimum. At the distance is exactly zero and is a stationary point of the search, which is why the measure has to be started from the end-member corners — the other lobe is where the negative value lives.
OptimaSolver's phase_split_measure computes this for every present mole-fraction phase and folds the result into the certificate. Concretely: check_convexity = false stops being a silent loss of the proof — a concave declaration that does unmix now fails to certify, with the phase named.
A second composition, declared or added when needed
The certificate's measure of a phase is the sum over its members of their activities from the dual solution divided by their activity coefficients from the primal one, an estimate of the mole fraction the phase would take:
It is the phase stability index of Kulik et al. (2013), who derive it from the same KKT conditions and call "a generalization of the saturation index". The package evaluates it in two places: as (the ideal case, ) when it repairs a start, and through the log-sum-exp of in phase_split_measure.
Holding a gap takes the phase twice. Cemdata18 ships the AFm and AFt binaries under two names each, so that the database itself declares each binary twice; instances = 2 declares the second composition with a keyword. instances = :auto asks for less: the phase is solved with one composition, and a second instance is added only when the certificate finds it wanting to split. On a binary whose overall composition the element budget holds inside the gap, calcite and magnesite in equal amounts, that finds the common-tangent pair:
julia
using ChemistryLab, DynamicQuantities, Printfsp = Dict(symbol(s) => s for s in build_species(datapath("slop98-inorganic-thermofun.json"); verbose = false))gap = RedlichKisterModel(a0 = 14_000.0)carbonate_ss = SolidSolutionPhase("carbonate", [sp["Cal"], sp["Mgs"]]; model = gap, instances = :auto)cs = ChemicalSystem([sp[s] for s in split("H2O@ H+ OH- CO2@ HCO3- CO3-2 Ca+2 Mg+2 Cal Mgs")], ["H2O@", "H+", "Ca+2", "Mg+2", "CO3-2", "Zz"]; solid_solutions = [carbonate_ss])st = ChemicalState(cs)set_quantity!(st, "H2O@", 1.0u"kg"); set_quantity!(st, "Cal", 0.025u"mol"); set_quantity!(st, "Mgs", 0.025u"mol")eq, cert = equilibrate_certified(st; b = budget(st))n = ustrip.(us"mol", eq.n)@printf("certified %s, instances added to %s\n", cert.optimal, cert.instances_added)for (g, ph) in zip(eq.system.ss_groups, eq.system.solid_solutions) @printf(" %-12s %.5f mol, x(calcite) = %.4f\n", name(ph), sum(n[g]), n[g[1]] / sum(n[g]))end@printf("common tangent of the model: %.4f and %.4f\n", common_tangent(gap)...)
certified true, instances added to ["carbonate"] carbonate 0.02486 mol, x(calcite) = 0.0037 carbonate#2 0.02495 mol, x(calcite) = 0.9963common tangent of the model: 0.0037 and 0.9963
It does not make a nonconvex problem easy: the certificate names a phase to split only once the one-composition solve has converged.
The executed counterpart of this section is the miscibility-gap page, which runs one cement three ways and reports the certificate each time.
Sections 1 to 4 mix end-members. In a C-S-H the entities that actually mix are smaller: a few structural positions of the silicate chain and of the interlayer, each held by one species or another. An end-member is then one particular filling of those positions, and mixing is random on each position separately. That is the model of Kulik (2011) for CSH3T and of Myers et al. (2014) for the CNASH gel, and it is what SublatticeModel implements.
The model. A formula unit has sites , site counted times, and end-member puts the species on site . The fraction of site held by species is the total mole fraction of the end-members that put it there, , and the configurational Gibbs energy is the ideal one of each site:
The implication is , exact because every end-member fills every site once. One site counted once is section 1 again. Kulik (2011) and Myers et al. (2014) write the same model as a fictive activity coefficient, which is what excess_ln_gamma_expression returns for this model.
CSH3T. Two bridging-tetrahedral sites hold either Si or Ca. TobH puts Si on both, T2C puts Ca on both, and the ordered T5C puts Ca on the first and Si on the second (Kulik, 2011; Eq. 19). The Cemdata18 records are half of its formula units, so on them each site counts one half:
julia
using ChemistryLabsubs = Dict(symbol(s) => s for s in build_species(datapath("cemdata18-thermofun.json"); verbose = false))csh3t = sublattice_model("Kulik2011:csh3t", [subs[n] for n in ("CSH3T-TobH", "CSH3T-T5C", "CSH3T-T2C")])csh3t.multiplicity
2-element Vector{Float64}: 0.5 0.5
Data read above: Kulik2011Kulik, D. A. (2011)6 tables
Kulik, D. A. (2011). Improving the structural consistency of C-S-H solid solution thermodynamic models. Cement and Concrete Research 41, 477-495. doi:10.1016/j.cemconres.2011.01.012
Read in Section 4.2: Eqs. (17), (19) and (20), Tables 2 and 3 checked against the source
Transcribed from the published article (PDF), Section 4.2 and Tables 2 and 3 read on the rendered page
The ternary CSH3T model of tobermorite-like C-S-H: two bridging-tetrahedral sites BTI1 and BTI2, each holding one Si0.5OH+ or one HO0.5Ca0.5+ species (abbreviated Si and Ca here), with coefficient 1 in the sublattice formula of Eq. (17), per formula unit of Table 2 (3 tetrahedral sites). Eq. (19) gives the activity of each end-member as the product of its two site fractions; the model is ideal. Table 2 writes the sublattice formula of T5C with its Si species first, [Si0.5OH+]1:[HO0.5Ca0.5+]1, while Eq. (19) puts its Ca on BTI1 and its Si on BTI2. The two readings differ only by the names given to the two sites, which changes no activity; the occupancy transcribed here follows Eq. (19).
Tables
csh3t_sites: 2 rows
Eq. (17)
site
multiplicity
BTI1
1
BTI2
1
csh3t_species: 2 rows
Table 2 and Section 4.2
species
formula
Si
Si0.5OH
Ca
HO0.5Ca0.5
csh3t_occupancy: 6 rows
Eq. (19)
end_member
printed
site
species
CSH3T-TobH
TobH
BTI1
Si
CSH3T-TobH
TobH
BTI2
Si
CSH3T-T5C
T5C
BTI1
Ca
CSH3T-T5C
T5C
BTI2
Si
CSH3T-T2C
T2C
BTI1
Ca
CSH3T-T2C
T2C
BTI2
Ca
csh3t_end_members: 3 rows
Table 3, bulk formulas (Table 2 prints the same compositions factored)
end_member
printed
formula
CSH3T-TobH
TobH
(CaO)2(SiO2)3(H2O)5
CSH3T-T5C
T5C
(CaO)2.5(SiO2)2.5(H2O)5
CSH3T-T2C
T2C
(CaO)3(SiO2)2(H2O)5
csh3t_shared_sites: 2 rows
Table 2, structural sublattice formulas
species
multiplicity
CaSiO3.5
2
H2O
4
csh3t_site_mixing_terms: 6 rows
Eqs. (19a)-(19c)
equation
printed
coefficient
sum_of_mole_fractions
19a
TobH
1
TobH + T5C
19a
TobH
1
TobH
19b
T5C
1
TobH + T5C
19b
T5C
1
T2C + T5C
19c
T2C
1
T2C
19c
T2C
1
T2C + T5C
Notes
csh3t_site_mixing_terms is Eq. (19) transcribed on its own, independently of csh3t_occupancy: each row is one term coefficient x ln(sum of the listed mole fractions) of the logarithm of the activity of the end-member the equation is written for. The test suite requires the two transcriptions to give the same activities.
The end-members of the Cemdata18 file (CSH3T-TobH, CSH3T-T5C, CSH3T-T2C) are half the formula units of Table 3. The site coefficients of a model built on them are therefore halved, which sublattice_model does from the formulas.
The species formulas are given without their charge (+1 each); the vacancy site VCH and the shared sites carry no species that varies between end-members.
Section 4.2 also gives a variant with the two BTI sites doubled (Eqs. (22)-(24)); it is not transcribed here.
sublattice_model finds that factor itself, by comparing each record's formula with the one Kulik (2011) prints, and refuses a record that is not such a multiple. At the first site holds Si only through TobH, the second through TobH and T5C:
and the fictive activity coefficient of T5C is Eq. (20) of Kulik (2011), halved:
The block below builds that expression from the model and subtracts the formula above; the difference simplifies to zero:
julia
using Symbolicsx = [Symbolics.variable(:x, i) for i in 1:3] # x₁ = TobH, x₂ = T5C, x₃ = T2Cλ = excess_ln_gamma_expression(csh3t, 2, 3)simplify(expand(λ - (0.5log(x[1] + x[2]) + 0.5log(x[3] + x[2]) - log(x[2]))))
Two properties the solver relies on.
Convexity. is a sum of convex functions of the site fractions, which are linear in , so it is convex, and strictly so when the occupancy matrix (one row per site and species, one column per end-member) has full column rank, stored as rank. The activities are the gradient of that energy, so a certificate keeps its :global_minimum scope.
The dilute limit. As only the site fractions of the species alone carries vanish with it: , with the multiplicity of those sites, stored as exponents. T5C owns no species of its own, : its activity stays finite as it disappears, and it can be absent from a CSH3T that is present.
julia
csh3t.exponents
3-element Vector{Float64}: 0.5 0.0 0.5
What the solver does with it. The composition of a mixing phase is found by successive substitution, and on a sublattice model that iteration diverges: its rate is set by the sum of the multiplicities, nine for the CNASH gel. Such a phase is therefore inverted by Newton's method, and the members with are declared to the certificate as able to leave the phase, which then tests them by the inequality a pure phase obeys (OptimaSolver's SolutionPhase, keywords newton and bounded_members). A system with a sublattice phase is first solved with that phase mixing its end-members ideally, and the answer is the start of the sublattice solve.
data/solid_solutions.toml ships CNASH_ss as the model of Myers et al. (2014) and CSH3T as Cemdata18 ships it, ideal between end-members; sublattice_model("Kulik2011:csh3t", members) gives the site form.
8. Sites with the energies of the compounds: CompoundEnergyModel
Section 7 mixes ideally on the sites and keeps the end-members' own standard energies, . That is exact only when the end-members are independent in the site fractions. The CASH+ model of C-S-H (Kulik et al., 2022) has two mixing sites: the bridging tetrahedron holds a silicate, a vacancy or a calcium (S, v, C), and the interlayer a vacancy or a calcium (v, C). Its six end-members are the six ways of filling them, TSvh to TCCh, but three site fractions fix the composition, and the six members are not independent. The reciprocal reaction
leaves every site fraction unchanged, yet its standard Gibbs energy is not zero. The compound energy formalism, in which Kulik et al. (2022) write the model, gives such a reaction its energy. CompoundEnergyModel implements it.
The Gibbs energy. The end-members must be every compound of the sites, each once. Compound puts species on site (the of section 7). Per formula unit,
The first term, the reference surface, equals at compound and is linear in the fractions of each site, so a reaction between compounds that changes no site fraction keeps its energy. The last term is a regular interaction between two species of one site, symmetric, with the parameters of Kulik et al. (2022). depends on the site fractions alone.
The activities. With , the chemical potential of member is . For a function of the site fractions, , so
On the reference surface for every site, because is linear in each site's fractions. With mixing sites, and writing ,
The middle term vanishes at every compound. It also does not change when each is shifted by the energies of its elements, since those are a sum over the sites of the species' shares, which the reference surface interpolates exactly. So the convention of the database does not matter, but the energies of the members do: the solver hands them to the model at the temperature of the solve.
Three consequences.
The amounts are not unique. Every split of the same site fractions between the members has the same and the same element content: in CASH+, six amounts for three independent site fractions and one total. Left to choose, the solver returns one of them, which one depending on where the search started. It is therefore given one split, the product of the site fractions, , by adding to the energy it minimizes , with
is the divergence of from the product of its own site fractions: it is never negative, and it vanishes only at that product, where its gradient vanishes too. The minimum over the splits of one set of site fractions is therefore the product, with the energy and the chemical potentials of the model. The activity of a vanishing member now goes as its mole fraction, as in a mixture of end-members. Measured on twelve pastes of CASH+NK, the equilibria certify with or without , at the same cost; what adds is an answer that does not depend on the start.
Convexity must be decided. The reference surface is multilinear, and a reciprocal energy can make concave somewhere. In the site fractions, each site contributes a curvature of at least , the configurational bound of section 9 plus the smallest tangent eigenvalue of its interactions , and with two sites the reference surface couples them through a constant matrix , the of the compounds projected on the two tangent spaces. So is convex when . That proves the CASH+ core convex (34.3 against 13.2 at 25 °C), and a certificate on it keeps its :global_minimum scope as far as the gel goes; the bound does not decide CASH+NK, whose sampled Hessian shows no concave point, and its scope is then :local_minimum or :kkt_point, according to the curvature at the answer (mixing_convexity).
Euler's relation holds. for any amounts with the site fractions , as it must for a Gibbs energy.
The block below checks the gradient and the last point on the core model, at a composition of the six members. The activities are compared with the gradient of coded from the formulas above and differentiated by ForwardDiff; at the product split, and its gradient vanish:
julia
using ChemistryLab, DynamicQuantities, ForwardDiff, LinearAlgebrasubs = Dict(symbol(s) => s for s in build_species(datapath("cemdata18-cashplus.json"); verbose = false))members = ["TSvh", "TSCh", "Tvvh", "TCvh", "TvCh", "TCCh"]cash = compound_energy_model("Kulik2022:cashplus", [subs[m] for m in members])T = 298.15g = [ustrip(us"J/mol", subs[m][:ΔₐG⁰](T = T * u"K", P = 1.0e5u"Pa"; unit = true)) for m in members] ./ (ChemistryLab.R_GAS * T)o = cash.lattice.occupancyfunction nG(n; split = true) x = n ./ sum(n) y = site_fractions(cash, x) G = sum(g[j] * y[1][o[1, j]] * y[2][o[2, j]] for j in 1:6) + sum(v * log(v) for ys in y for v in ys) G += sum(W / (ChemistryLab.R_GAS * T) * y[s][i] * y[s][l] for (s, i, l, W) in cash.interactions) split && (G += sum(v * log(v) for v in x) - sum(v * log(v) for ys in y for v in ys)) # D(x) return sum(n) * Gendn = [0.10, 0.25, 0.05, 0.20, 0.15, 0.25]lna = ChemistryLab._ss_log_activities!(zeros(6), 1:6, n ./ sum(n), cash, T, 0.0, g)μ = ForwardDiff.gradient(nG, n)y = site_fractions(cash, n ./ sum(n))xp = [y[1][o[1, j]] * y[2][o[2, j]] for j in 1:6] # the product split(gradient = maximum(abs, lna .+ g .- μ), euler = dot(n, μ) - nG(n), D_at_product = nG(xp) - nG(xp; split = false))
Data read above: Kulik2022Kulik, D. A., Miron, G. D., & Lothenbach, B. (2022)12 quantities, 8 tables
Kulik, D. A., Miron, G. D., & Lothenbach, B. (2022). A structurally-consistent CASH+ sublattice solid solution model for fully hydrated C-S-H phases: Thermodynamic basis, methods, and Ca-Si-H2O core sub-model. Cement and Concrete Research 151, 106585. doi:10.1016/j.cemconres.2021.106585
Read in Section 2.3, Tables 2, 4, 8 and 9, Section 3.3 (p. 10); Supplementary Material, Appendix A1 (Eqs. 1-27) checked against the source
Transcribed from the published article (PDF) and its Supplementary Material (Appendix A1), every table read on the rendered page and compared with the text layer
The core CASH+ model of C-S-H in the Ca-Si-H2O system. Its formula unit has four sites: DU, a fixed dreierketten unit T = Ca2Si2O5(OH)2; BT, the bridging tetrahedron, holding a silicate S = SiO2OH-, a vacancy v = OH- or a calcium C = CaOOH-; IC, the interlayer cation, holding a vacancy v = H+ or a calcium C = CaH(OH)2+; IW, a fixed interlayer water h = H2O. Each site has coefficient 1, and each end-member puts one moiety on each site, so the six end-members are named T, the BT moiety, the IC moiety and h. The G and H of the end-members are those of Table 8, final step 5; their S and Cp are the VBT estimates of Table 4, their V the volumes of Table 4 (from the densities of Section 3.4).
Quantities
name
value
description
where
CaSiO3_aq_G
-1514.14 kJ/mol
Standard Gibbs energy of formation of the aqueous complex CaSiO3@ at 25 C, refitted with the core model (log K = 4.0 for Ca+2 + SiO3-2 = CaSiO3@).
Standard enthalpy of formation of CaSiO3@ at 25 C.
Table 9 (p. 13), accepted variant
CaSiO3_aq_S
-50 J/(mol*K)
Standard entropy of CaSiO3@ at 25 C, constrained on the C-S-H solubility at 50 and 85-90 C.
Table 9 (p. 13), accepted variant (boldface)
CaSiO3_aq_Cp
206.9 J/(mol*K)
Standard heat capacity of CaSiO3@ at 25 C, taken as constant.
Table 9 (p. 13), accepted variant (boldface)
CaSiO3_aq_V
40.0 cm^3/mol
Standard molar volume of CaSiO3@.
Table 9 (p. 13), accepted variant
silica_saturation_Ca_Si
0.72
Bulk Ca/Si below which amorphous silica is stable beside C-S-H in the Ca-Si-H2O system at 25 C.
Section 3.3, p. 10
portlandite_saturation_Ca_Si
1.64
Ca/Si of C-S-H at portlandite saturation in the Ca-Si-H2O system at 25 C.
Section 3.3, p. 10 ('Above C/S = 1.64'); the fit constrained the Ca/Si of C-S-H beside portlandite close to 1.65 (p. 9)
edh_ion_size
3.67
Common ion-size parameter of the extended Debye-Hueckel equation used for the fit, in Angstrom (KOH as major electrolyte).
Section 2.7, Eq. (13), p. 7
edh_b_gamma
0.123
Extended-term parameter b_gamma of the extended Debye-Hueckel equation used for the fit (KOH as major electrolyte).
Section 2.7, Eq. (13), p. 7
CaSiO3_aq_dH_reaction
2.988 kJ/mol
Standard enthalpy of the reaction Ca+2 + SiO3-2 = CaSiO3@ at 25 C.
Table 9 (p. 13), accepted variant
CaSiO3_aq_dS_reaction
86.6 J/(mol*K)
Standard entropy of the reaction Ca+2 + SiO3-2 = CaSiO3@ at 25 C.
Table 9 (p. 13), accepted variant (boldface)
CaSiO3_aq_dCp_reaction
118 J/(mol*K)
Standard heat capacity of the reaction Ca+2 + SiO3-2 = CaSiO3@, taken as constant.
Table 9 (p. 13), accepted variant (boldface)
Tables
cashplus_sites: 2 rows
Sections 2.2 and 2.3, Table 2 (p. 4)
site
multiplicity
BT
1
IC
1
cashplus_shared_sites: 2 rows
Sections 2.2 and 2.3, Table 2 (p. 4)
site
species
formula
multiplicity
DU
T
Ca2Si2O5(OH)2
1
IW
h
H2O
1
cashplus_species: 5 rows
Sections 2.2 and 2.3, Table 2 (p. 4)
site
species
formula
charge
BT
S
SiO2OH
-1
BT
v
OH
-1
BT
C
CaOOH
-1
IC
v
H
1
IC
C
CaH(OH)2
1
cashplus_occupancy: 12 rows
Table 2 (p. 4)
end_member
printed
site
species
TSvh
TSvh
BT
S
TSvh
TSvh
IC
v
TSCh
TSCh
BT
S
TSCh
TSCh
IC
C
Tvvh
Tvvh
BT
v
Tvvh
Tvvh
IC
v
TCvh
TCvh
BT
C
TCvh
TCvh
IC
v
TvCh
TvCh
BT
v
TvCh
TvCh
IC
C
TCCh
TCCh
BT
C
TCCh
TCCh
IC
C
cashplus_end_members: 6 rows
Table 10 (p. 14), bulk formulas; Table 2 gives the same compositions as moieties
end_member
printed
formula
TSvh
TSvh
Ca2Si3O11H6
TSCh
TSCh
Ca3Si3O13H8
Tvvh
Tvvh
Ca2Si2O9H6
TCvh
TCvh
Ca3Si2O10H6
TvCh
TvCh
Ca3Si2O11H8
TCCh
TCCh
Ca4Si2O12H8
cashplus_standard_properties: 6 rows
G and H: Table 8 (final step 5), p. 11; S, Cp (VBT estimates) and V: Table 4, p. 6; density: Section 3.4, p. 10
end_member
G [kJ/mol]
H [kJ/mol]
S [J/(mol*K)]
Cp [J/(mol*K)]
V [cm^3/mol]
density [g/cm^3]
TSvh
-4647.54
-5032.03
369.4
348.1
138.6
2.5
TSCh
-5561.94
-6045.81
414.4
389.9
155.8
2.7
Tvvh
-3777.08
-4120.51
284.1
269.0
106.1
2.7
TCvh
-4450.98
-4821.14
338.6
319.6
126.8
2.7
TvCh
-4684.56
-5119.05
356.1
335.8
133.5
2.7
TCCh
-5347.54
-5808.79
410.5
386.3
154.3
2.7
cashplus_interactions: 4 rows
Table 8 (final step 5), p. 11; the symmetric Berman site-interaction model of Section 2.6 and Appendix A1, Eqs. (13)-(17)
printed
site
species_1
species_2
W [kJ/mol]
ICW_Cv
IC
C
v
-17.12
BTW_Sv
BT
S
v
-19.07
BTW_CS
BT
C
S
-8.56
BTW_Cv
BT
C
v
-7.87
portlandite_saturated_site_fractions: 5 rows
Section 3.3, p. 10 (text; Fig. 5 D)
site
species
fraction
BT
C
0.77
BT
v
0.2
BT
S
0.03
IC
C
0.55
IC
v
0.45
Notes
Table 10 repeats the end-member data with its G and H columns out of step with the rows: the G printed on the TSvh row (-5347.54) is the G of TCCh in Table 8, and so on down the table, and the column header says J/mol where the values are in kJ/mol. The formulas and volumes of Table 10 are in step with its rows; the G and H transcribed here are those of Table 8, the table the footnote of Table 10 names as their source.
With the element entropies of CODATA, G = H - T (S - sum of the element entropies) holds to 0.01 kJ/mol for five end-members and for CaSiO3@. It holds to 0.28 kJ/mol for TSvh, whose printed H (-5032.03) would give it exactly as -5032.31: the printed H is most probably a transposition of digits. The printed values are kept; G is the fitted quantity and is what fixes the equilibria at 25 C.
The G of CaSiO3@ is 3.42 kJ/mol above that of Cemdata18 (-1517.5569 kJ/mol): the core model is fitted together with this value, and a database running the model carries it.
Portlandite and amorphous silica are those of PSI-Nagra 12/07 and Cemdata18 (Table 10, footnote); both databases give them the same G at 25 C.
The site fractions at portlandite saturation are printed as rounded percentages.
All three are at the rounding of the arithmetic. The model and its data are in data/literature/Kulik2022.json, the sodium and potassium of Miron et al. (2022), Miron et al. (2022) in Miron2022a.json and Miron2022b.json, and the twelve end-members in the database cemdata18-cashplus.json. The CASH+ page computes the C-S-H in water and in alkali solutions with it.
Asymmetric mixing of any number of end-members: SubregularSolutionModel
The regular model of section 3 is symmetric on every edge, and the Redlich–Kister model of section 4 is asymmetric but binary. Helffrich and Wood (1989) write the asymmetric Margules model for any number of end-members (their Eq. 5′):
On the edge – the bracket sums vanish and the excess is : is at infinite dilution of in , and the converse. The ternary coefficients are a separate measurement. Helffrich and Wood (1989) show that the binaries do not determine them, even when every binary is symmetric, and that no coefficient of higher order appears.
Helffrich and Wood (1989) give the activity coefficients (their Eq. 6′) without the intermediate steps. They are short once the excess is written on the simplex, where . The bracket of a pair is then
so each pair is a Redlich–Kister term of the first order, and , and two end-members are exactly the model of section 4 with those two coefficients. Write in this form, as a function of . The excess of moles is , , and since ,
The formula holds whatever is off the simplex, since reads only on it. For a pair, has
and a triple, , has equal to three times itself. Collecting, with every coefficient divided by ,
with , which is _excess_ln_gamma(::SubregularSolutionModel, …) term by term. Setting and every to zero leaves the regular model of section 3, . The test suite checks this expression against (Helffrich and Wood, 1989; Eq. 6′), for each end-member of a quaternary with its twelve binary and four ternary coefficients, and Gibbs–Duhem and as identities.
A series for each pair: MulticomponentRedlichKisterModel
Redlich and Kister (1948) write the excess of a binary as a series in the difference of the two mole fractions, which changes sign when the components are exchanged, and that of a ternary as the sum of its three binaries, each evaluated at the mole fractions of the ternary as they are, plus a term in the product of the three (their Eqs. 17 and 18):
The order of a pair matters for its odd terms, which change sign with it, and the order of a triple for and . Beyond three components Redlich and Kister (1948) add the further pairs and triples and a term in four mole fractions, which it does not write out and which is not implemented. Its coefficients are in units of , the paper working with decimal logarithms.
The activity coefficients follow from Eq. (14) of Redlich and Kister (1948), the partial molar derivative written in mole fractions, which is the formula of the subregular model above. For a pair, with , and , the term has
and for a triple, with , the term has
is the sum over every pair and triple of , plus the derivatives with respect to of the terms that contain it, which is _excess_ln_gamma(::MulticomponentRedlichKisterModel, …). Two end-members give the model of section 4 with . To the first order the series is the subregular model above, with and : Redlich and Kister (1948) call the first-order binary "the equation of Margules", and the subregular section shows why the ternary extensions coincide.
Redlich and Kister (1948) also give the ratio of two activity coefficients in a ternary (their Eq. 19). Its term in , , is the value on the binary: in the ternary, Eq. (14) gives , which is that plus . Every other term of Eq. (19) agrees with Eq. (14). The implementation follows Eq. (14), and the test suite checks it against the paper's worked ternary, heptane, methanol and toluene with the coefficients of its Eq. (21) and the association of methanol left out, through its Eqs. (22) and (23).
Holland and Powell (2003) make the regular model asymmetric by giving each end-member a size and weighting the mole fractions by it, :
Only the ratios of the sizes matter. Equal sizes give back the regular model of section 3, which Holland and Powell (2003) call the symmetric formalism, and two end-members give the van Laar binary, asymmetric as soon as the sizes differ. The papers that fit and often make them depend on temperature and pressure; the model takes their values at the conditions of the calculation.
Holland and Powell (2003) write the activity coefficients (their Eq. 2) with interactions rescaled by the size of the end-member considered, , their double sum running over , the range the excess energy implies. A shorter method goes through the excess itself. Substituting ,
a quadratic form over a linear one. The excess of moles is then , homogeneous of degree one in the amounts, and its derivative is
which is _excess_ln_gamma(::VanLaarModel, …). With equal sizes , and , and the regular expression of section 3 comes back; for a binary it is Eqs. (4) and (5) of Holland and Powell (2003), . The test suite checks it against those equations for the alkali feldspar of the paper, against its Eq. (13) for calcite, magnesite and dolomite, with the paper's parameters, and against .
Neither this model nor the series above has the Redlich-Kister form of section 4 with three coefficients, so their binary is scanned for a spinodal and its common tangent found from the excess itself, , in the mole fraction of the first end-member.
A one-dimensional scan decides a binary. With end-members the question is whether the Hessian of is positive on the tangent space of the simplex, , at every composition, and mixing_convexity answers it by model.
For a regular model, with , and the Hessian is . The first term is at least 2 on the tangent space: for a unit with , the Cauchy–Schwarz inequality gives , and the ℓ1 norm of such a is at least (its positive and negative parts have equal sums). Hence
an orthonormal basis of the tangent space. For two end-members this is , the threshold of section 3; for more it is a sufficient condition. In the other direction, a pair with is a witness: at the middle of that edge the second derivative along it is . Between the two, the smallest eigenvalue of the projected Hessian is searched on a lattice of compositions, and a negative one is a witness too; finding none proves nothing, and the verdict is then :undecided. The subregular, the Redlich-Kister and the van Laar models are decided by that search alone beyond two end-members: their Hessian depends on the composition through the asymmetric and the ternary terms, and no bound of the kind above is written for them.
julia
using ChemistryLab, DynamicQuantities, PrintfRT = ChemistryLab.R_GAS * 298.15W(a, b, c) = [0.0 a b; a 0.0 c; b c 0.0] .* RT[mixing_convexity(RegularSolutionModel(W(1.9, 1.9, 1.9)), 3).verdict, mixing_convexity(RegularSolutionModel(W(3.0, 0.0, 0.0)), 3).verdict]
2-element Vector{Symbol}: :convex :nonconvex
A phase whose verdict is :nonconvex is refused at construction, as a concave binary is, and admitted with two instances. The certificate of an answer is not scoped :global_minimum unless every mixing phase is proved convex; it is then :local_minimum where the Hessian over the directions that conserve matter is positive definite at the answer, and :kkt_point otherwise.
Two different things can make one end-member the mixture of two others in composition. In an ordered member the difference of Gibbs energy is the point: the pentameric T5C of CSH3T is the average of TobH and T2C less an ordering energy (Kulik, 2011; Eq. 18), and the siliceous hydrogarnet C3AS0.41H5.18 lies between C3AH6 and C3AS0.84H4.32. When the Gibbs energy is the average as well, the phase holds one substance twice, once as a member and once as a mixture of two, and ideal mixing counts its configurations twice. SolidSolutionPhase warns when that holds within ; the MgAl-OH-LDH ternary of Cemdata18 is the case, its M6A member the average of M4A and M8A:
julia
subs = Dict(symbol(s) => s for s in build_species(datapath("cemdata18-thermofun.json"); verbose = false))g(s) = ustrip(us"kJ/mol", subs[s][:ΔₐG⁰](T = 298.15u"K", P = 1.0e5u"Pa"; unit = true))@printf("MgAl-OH-LDH M6A - (M4A + M8A)/2 = %+.4f kJ/mol\n", g("M6A-OH-LDH") - (g("M4A-OH-LDH") + g("M8A-OH-LDH")) / 2)@printf("CSH3T T5C - (TobH + T2C)/2 = %+.2f kJ/mol\n", g("CSH3T-T5C") - (g("CSH3T-TobH") + g("CSH3T-T2C")) / 2)
The LDH difference, 0.3 J/mol, is about 10⁻⁴ RT, where the −4.35 kJ/mol of T5C is an ordering energy. The shipped LDH entry keeps the published model with acknowledge_degenerate = true.
phase = SolidSolutionPhase("CSHQ", [sp["CSHQ-JenD"], sp["CSHQ-JenH"], sp["CSHQ-TobD"], sp["CSHQ-TobH"]]; model = IdealSolidSolutionModel())
Every end-member must be AS_CRYSTAL, and the phase is checked against its model's arity and against the convexity of its mixing energy at construction; instances is how a declaration asks for more than one coexisting composition, which section 6 is about. Sets of end-members with their interaction parameters are read from a TOML through build_solid_solutions, which is also the only interaction-parameter file format in the package — data/solid_solutions.toml is the shipped example.
Two consequences to keep in mind when reading results:
a ChemicalSystem groups end-members into ss_groups, and every aqueous activity model must call the solid-solution branch or the end-members come back with , i.e. treated as pure phases;
an end-member's saturation_indices entry is relative to its current mole fraction, since its activity is . For an end-member sitting at the solver's lower bound that is a statement about a vanishing phase, not about whether the solid solution would form.