Water and quartz from 0 to 1000 °C
Before this page
Thermochemistry, §3, for the standard state of the solvent and the domain of the HKF equations.
The standard states of the ThermoFun databases reach 1000 °C and 5000 bar: the solvent by the equation of state of water of Haar et al. (1984), the aqueous species by the HKF equations (Helgeson et al., 1981; Shock et al., 1992), the minerals by their heat-capacity functions. This page takes two equilibria that involve nothing but water and, for the second, one mineral, and compares them over that range with formulations fitted to the measurements: the ionization constant of water of Bandura and Lvov (2006) and the solubility of quartz of Manning (1994). The constants are those of slop98 (Johnson et al., 1992), the database written for this range; nothing is fitted.
1. The ionization constant of water
using ChemistryLab, DynamicQuantities, Printf
include(joinpath(pkgdir(ChemistryLab), "scripts", "water_high_temperature.jl"))
r = hw_bandura_lvov()
Δ = r.ours .- r.ref
@printf("%d states, water denser than 350 kg/m³ and at most 500 MPa\n", length(Δ))
println(" T (°C) states largest |Δ| mean Δ")
for T_C in sort(unique(r.T_C))
i = findall(==(T_C), r.T_C)
@printf("%7.0f %7d %13.2f %+9.2f\n", T_C, length(i), maximum(abs, Δ[i]), sum(Δ[i]) / length(i))
end175 states, water denser than 350 kg/m³ and at most 500 MPa
T (°C) states largest |Δ| mean Δ
0 12 0.30 -0.13
25 12 0.18 -0.07
50 12 0.10 -0.03
75 12 0.05 -0.01
100 11 0.02 +0.01
150 11 0.06 +0.04
200 11 0.10 +0.06
250 11 0.12 +0.07
300 11 0.16 +0.09
350 11 0.18 +0.11
400 10 0.20 +0.11
450 10 0.52 +0.10
500 9 0.27 +0.20
600 8 0.42 +0.38
700 7 0.65 +0.59
800 6 0.91 +0.83
900 6 1.20 +1.10
1000 5 1.48 +1.36Data read above: BanduraLvov2006Bandura, A. V., Lvov, S. N. (2006)1 tables
Bandura, A. V., Lvov, S. N. (2006). The ionization constant of water over wide ranges of temperature and density. Journal of Physical and Chemical Reference Data 35(1), 15-30. doi:10.1063/1.1928231
Read in checked against the source
Transcribed from the published article (PDF from the publisher): Table 4, p. 25, read on its text layer by the positions of the words and checked on the page image
The negative decimal logarithm of the ionization constant of water on the molality scale, computed by the authors with their Model II (Eq. 39), which they fitted to 237 measured points within 0.16 log units. The first row of the table is at 0.1 MPa below 100 C and at the saturation pressure above; only its rows at 0.1 MPa are transcribed, with every row at a stated pressure.
Tables
pKw: 292 rows
Table 4, p. 25
| temperature_C | pressure [MPa] | pKw |
|---|---|---|
| 0.0 | 0.1 | 14.95 |
| 0.0 | 25.0 | 14.85 |
| 0.0 | 50.0 | 14.75 |
| 0.0 | 75.0 | 14.66 |
| 0.0 | 100.0 | 14.58 |
| 0.0 | 150.0 | 14.42 |
| 0.0 | 200.0 | 14.28 |
| 0.0 | 250.0 | 14.14 |
| 0.0 | 300.0 | 14.02 |
| 0.0 | 350.0 | 13.91 |
| 0.0 | 400.0 | 13.8 |
| 0.0 | 500.0 | 13.59 |
| 0.0 | 600.0 | 13.41 |
| 0.0 | 700.0 | 13.24 |
| 0.0 | 800.0 | 13.08 |
| 0.0 | 900.0 | 12.93 |
| 0.0 | 1000.0 | 12.79 |
| 25.0 | 0.1 | 13.99 |
| 25.0 | 25.0 | 13.91 |
| 25.0 | 50.0 | 13.82 |
| 25.0 | 75.0 | 13.74 |
| 25.0 | 100.0 | 13.67 |
| 25.0 | 150.0 | 13.52 |
| 25.0 | 200.0 | 13.39 |
| 25.0 | 250.0 | 13.27 |
| 25.0 | 300.0 | 13.15 |
| 25.0 | 350.0 | 13.04 |
| 25.0 | 400.0 | 12.93 |
| 25.0 | 500.0 | 12.74 |
| 25.0 | 600.0 | 12.56 |
| 25.0 | 700.0 | 12.39 |
| 25.0 | 800.0 | 12.23 |
| 25.0 | 900.0 | 12.09 |
| 25.0 | 1000.0 | 11.95 |
| 50.0 | 0.1 | 13.26 |
| 50.0 | 25.0 | 13.18 |
| 50.0 | 50.0 | 13.1 |
| 50.0 | 75.0 | 13.03 |
| 50.0 | 100.0 | 12.95 |
| 50.0 | 150.0 | 12.82 |
| 50.0 | 200.0 | 12.69 |
| 50.0 | 250.0 | 12.57 |
| 50.0 | 300.0 | 12.45 |
| 50.0 | 350.0 | 12.35 |
| 50.0 | 400.0 | 12.24 |
| 50.0 | 500.0 | 12.05 |
| 50.0 | 600.0 | 11.87 |
| 50.0 | 700.0 | 11.71 |
| 50.0 | 800.0 | 11.56 |
| 50.0 | 900.0 | 11.41 |
| 50.0 | 1000.0 | 11.27 |
| 75.0 | 0.1 | 12.7 |
| 75.0 | 25.0 | 12.61 |
| 75.0 | 50.0 | 12.53 |
| 75.0 | 75.0 | 12.46 |
| 75.0 | 100.0 | 12.39 |
| 75.0 | 150.0 | 12.25 |
| 75.0 | 200.0 | 12.12 |
| 75.0 | 250.0 | 12.0 |
| 75.0 | 300.0 | 11.89 |
| 75.0 | 350.0 | 11.79 |
| 75.0 | 400.0 | 11.69 |
| 75.0 | 500.0 | 11.5 |
| 75.0 | 600.0 | 11.32 |
| 75.0 | 700.0 | 11.16 |
| 75.0 | 800.0 | 11.01 |
| 75.0 | 900.0 | 10.86 |
| 75.0 | 1000.0 | 10.72 |
| 100.0 | 25.0 | 12.17 |
| 100.0 | 50.0 | 12.08 |
| 100.0 | 75.0 | 12.01 |
| 100.0 | 100.0 | 11.93 |
| 100.0 | 150.0 | 11.79 |
| 100.0 | 200.0 | 11.67 |
| 100.0 | 250.0 | 11.55 |
| 100.0 | 300.0 | 11.44 |
| 100.0 | 350.0 | 11.33 |
| 100.0 | 400.0 | 11.23 |
| 100.0 | 500.0 | 11.04 |
| 100.0 | 600.0 | 10.87 |
| 100.0 | 700.0 | 10.71 |
| 100.0 | 800.0 | 10.55 |
| 100.0 | 900.0 | 10.41 |
| 100.0 | 1000.0 | 10.27 |
| 150.0 | 25.0 | 11.54 |
| 150.0 | 50.0 | 11.45 |
| 150.0 | 75.0 | 11.36 |
| 150.0 | 100.0 | 11.28 |
| 150.0 | 150.0 | 11.13 |
| 150.0 | 200.0 | 11.0 |
| 150.0 | 250.0 | 10.88 |
| 150.0 | 300.0 | 10.76 |
| 150.0 | 350.0 | 10.65 |
| 150.0 | 400.0 | 10.55 |
| 150.0 | 500.0 | 10.36 |
| 150.0 | 600.0 | 10.18 |
| 150.0 | 700.0 | 10.02 |
| 150.0 | 800.0 | 9.86 |
| 150.0 | 900.0 | 9.72 |
| 150.0 | 1000.0 | 9.58 |
| 200.0 | 25.0 | 11.19 |
| 200.0 | 50.0 | 11.08 |
| 200.0 | 75.0 | 10.97 |
| 200.0 | 100.0 | 10.88 |
| 200.0 | 150.0 | 10.71 |
| 200.0 | 200.0 | 10.56 |
| 200.0 | 250.0 | 10.43 |
| 200.0 | 300.0 | 10.31 |
| 200.0 | 350.0 | 10.19 |
| 200.0 | 400.0 | 10.08 |
| 200.0 | 500.0 | 9.88 |
| 200.0 | 600.0 | 9.7 |
| 200.0 | 700.0 | 9.54 |
| 200.0 | 800.0 | 9.38 |
| 200.0 | 900.0 | 9.24 |
| 200.0 | 1000.0 | 9.1 |
| 250.0 | 25.0 | 11.05 |
| 250.0 | 50.0 | 10.9 |
| 250.0 | 75.0 | 10.77 |
| 250.0 | 100.0 | 10.65 |
| 250.0 | 150.0 | 10.46 |
| 250.0 | 200.0 | 10.29 |
| 250.0 | 250.0 | 10.14 |
| 250.0 | 300.0 | 10.01 |
| 250.0 | 350.0 | 9.88 |
| 250.0 | 400.0 | 9.77 |
| 250.0 | 500.0 | 9.56 |
| 250.0 | 600.0 | 9.37 |
| 250.0 | 700.0 | 9.2 |
| 250.0 | 800.0 | 9.04 |
| 250.0 | 900.0 | 8.89 |
| 250.0 | 1000.0 | 8.75 |
| 300.0 | 25.0 | 11.12 |
| 300.0 | 50.0 | 10.89 |
| 300.0 | 75.0 | 10.71 |
| 300.0 | 100.0 | 10.57 |
| 300.0 | 150.0 | 10.33 |
| 300.0 | 200.0 | 10.13 |
| 300.0 | 250.0 | 9.96 |
| 300.0 | 300.0 | 9.81 |
| 300.0 | 350.0 | 9.68 |
| 300.0 | 400.0 | 9.55 |
| 300.0 | 500.0 | 9.33 |
| 300.0 | 600.0 | 9.13 |
| 300.0 | 700.0 | 8.96 |
| 300.0 | 800.0 | 8.79 |
| 300.0 | 900.0 | 8.64 |
| 300.0 | 1000.0 | 8.49 |
| 350.0 | 25.0 | 11.55 |
| 350.0 | 50.0 | 11.08 |
| 350.0 | 75.0 | 10.8 |
| 350.0 | 100.0 | 10.6 |
| 350.0 | 150.0 | 10.3 |
| 350.0 | 200.0 | 10.06 |
| 350.0 | 250.0 | 9.87 |
| 350.0 | 300.0 | 9.7 |
| 350.0 | 350.0 | 9.55 |
| 350.0 | 400.0 | 9.42 |
| 350.0 | 500.0 | 9.18 |
| 350.0 | 600.0 | 8.97 |
| 350.0 | 700.0 | 8.79 |
| 350.0 | 800.0 | 8.62 |
| 350.0 | 900.0 | 8.46 |
| 350.0 | 1000.0 | 8.31 |
| 400.0 | 25.0 | 16.57 |
| 400.0 | 50.0 | 11.56 |
| 400.0 | 75.0 | 11.05 |
| 400.0 | 100.0 | 10.74 |
| 400.0 | 150.0 | 10.34 |
| 400.0 | 200.0 | 10.06 |
| 400.0 | 250.0 | 9.84 |
| 400.0 | 300.0 | 9.65 |
| 400.0 | 350.0 | 9.49 |
| 400.0 | 400.0 | 9.34 |
| 400.0 | 500.0 | 9.09 |
| 400.0 | 600.0 | 8.87 |
| 400.0 | 700.0 | 8.67 |
| 400.0 | 800.0 | 8.49 |
| 400.0 | 900.0 | 8.33 |
| 400.0 | 1000.0 | 8.18 |
| 450.0 | 25.0 | 18.13 |
| 450.0 | 50.0 | 12.71 |
| 450.0 | 75.0 | 11.49 |
| 450.0 | 100.0 | 11.0 |
| 450.0 | 150.0 | 10.46 |
| 450.0 | 200.0 | 10.12 |
| 450.0 | 250.0 | 9.86 |
| 450.0 | 300.0 | 9.65 |
| 450.0 | 350.0 | 9.46 |
| 450.0 | 400.0 | 9.31 |
| 450.0 | 500.0 | 9.03 |
| 450.0 | 600.0 | 8.8 |
| 450.0 | 700.0 | 8.59 |
| 450.0 | 800.0 | 8.41 |
| 450.0 | 900.0 | 8.24 |
| 450.0 | 1000.0 | 8.08 |
| 500.0 | 25.0 | 18.76 |
| 500.0 | 50.0 | 14.2 |
| 500.0 | 75.0 | 12.16 |
| 500.0 | 100.0 | 11.38 |
The first 200 of 292 rows; the file holds them all.
Notes
- Temperature in degrees Celsius; pKw = -log10 Kw, Kw on the molality scale.
The file data/literature/BanduraLvov2006.json on GitHub, at the commit this page was built from.
Show the code of scripts/water_high_temperature.jl, included above
The file scripts/water_high_temperature.jl on GitHub, at the commit this page was built from:
# =============================================================================
# water_high_temperature.jl — water and quartz from 0 to 1000 °C
#
# Two equilibria of the solvent with nothing but itself and one mineral, from
# 0 to 1000 °C and up to 5000 bar, computed from the standard states of the
# slop98 database (the equation of state of water for the solvent, HKF for the
# aqueous species, heat-capacity functions for quartz): the ionization constant
# of water, against the formulation Bandura and Lvov (2006) fitted to the
# measurements (their Table 4), and the solubility of quartz, against the
# equation Manning (1994) fitted to the measurements from 25 °C and 1 bar to
# 20 kbar. The page docs/src/tutorials/validation_high_temperature.md compares
# them.
#
# Nothing is fitted: the constants are those of the database.
# =============================================================================
using ChemistryLab
using DynamicQuantities
const HW_DB = Dict(symbol(s) => s for s in build_species(datapath("slop98-inorganic-thermofun.json"); verbose = false))
# The standard Gibbs energy of a species at T (K) and P (Pa), over RT ln 10.
hw_g10(name, T, P) = HW_DB[name][:ΔₐG⁰](T = T, P = P) / (R_GAS * T * log(10))
"""
hw_pkw(T, P) -> Float64
The negative decimal logarithm of the ionization constant of water,
H₂O = H⁺ + OH⁻, on the molality scale, at `T` (K) and `P` (Pa).
"""
hw_pkw(T, P) = hw_g10("H+", T, P) + hw_g10("OH-", T, P) - hw_g10("H2O@", T, P)
"""
hw_quartz_log_m(T, P) -> Float64
The decimal logarithm of the molality of dissolved silica in equilibrium with
quartz, quartz = SiO₂(aq), the activity coefficient of the neutral solute taken
as one: the decimal logarithm of the equilibrium constant.
"""
hw_quartz_log_m(T, P) = hw_g10("Qtz", T, P) - hw_g10("SiO2@", T, P)
"""
hw_density(T, P) -> Float64
The density of water at `T` (K) and `P` (Pa), in g/cm³, by the equation of state
of the solvent.
"""
hw_density(T, P) = ustrip(us"g/cm^3", HW_DB["H2O@"][:M] / (HW_DB["H2O@"][:V⁰](T = T, P = P) * us"m^3/mol"))
"""
hw_manning(T, P) -> Float64
The decimal logarithm of the molality of dissolved silica by the equation of
Manning (1994), at `T` (K), with the density of water of the solvent at `P` (Pa).
"""
function hw_manning(T, P)
c = Dict(
zip(
literature_table("Manning1994", "log_k_coefficients").coefficient,
ustrip.(literature_table("Manning1994", "log_k_coefficients").value)
)
)
ρ = hw_density(T, P)
return c["a"] + c["b"] / T + c["c"] / T^2 + c["d"] / T^3 + (c["e"] + c["f"] / T + c["g"] / T^2) * log10(ρ)
end
"""
hw_bandura_lvov() -> NamedTuple
The ionization constants of Table 4 of Bandura and Lvov (2006) at the states
where the HKF equations hold, water denser than 350 kg/m³ and at most 5000 bar:
the temperature (°C and K), the pressure (Pa), their pKw and this package's.
"""
function hw_bandura_lvov()
t = literature_table("BanduraLvov2006", "pKw")
T_C, P, ref = Float64[], Float64[], Float64[]
for (Tc, p, pk) in zip(t.temperature_C, ustrip.(us"Pa", t.pressure), t.pKw)
T = Tc + 273.15
p <= 5.0e8 || continue
hw_density(T, p) >= 0.35 || continue
push!(T_C, Tc); push!(P, p); push!(ref, pk)
end
ours = [hw_pkw(Tc + 273.15, p) for (Tc, p) in zip(T_C, P)]
return (; T_C, T = T_C .+ 273.15, P, ref, ours)
endusing Plots
default(framestyle = :box, grid = false)
fig = plot(; xlabel = "T (°C)", ylabel = "pKw", legend = :topright, size = (700, 430))
for (k, P_MPa) in enumerate((25.0, 100.0, 300.0, 500.0))
i = findall(P -> P ≈ P_MPa * 1e6, r.P)
keep = [T for T in range(0, 1000; length = 101) if hw_density(T + 273.15, P_MPa * 1e6) >= 0.35]
plot!(fig, keep, [hw_pkw(T + 273.15, P_MPa * 1e6) for T in keep]; color = k, label = "$(Int(P_MPa)) MPa")
scatter!(fig, r.T_C[i], r.ref[i]; color = k, markersize = 3, label = false)
endThe lines are this package, the markers the formulation of Bandura and Lvov (2006). Along each isobar pKw falls with the temperature, then rises again as the expanding solvent screens the ions less.
2. The solubility of quartz
println(" T (°C) P (bar) log m (here) log m (Manning)")
for (T_C, P_bar) in ((25, 1), (100, 1), (200, 500), (300, 1000), (400, 2000), (500, 2000), (600, 5000), (800, 5000))
T, P = T_C + 273.15, P_bar * 1e5
@printf("%7d %9d %13.3f %15.3f\n", T_C, P_bar, hw_quartz_log_m(T, P), hw_manning(T, P))
end T (°C) P (bar) log m (here) log m (Manning)
25 1 -3.999 -4.003
100 1 -3.078 -3.059
200 500 -2.373 -2.366
300 1000 -1.878 -1.862
400 2000 -1.423 -1.402
500 2000 -1.160 -1.102
600 5000 -0.604 -0.578
800 5000 -0.234 -0.115Data read above: Manning1994Manning, C. E. (1994)1 tables
Manning, C. E. (1994). The solubility of quartz in H2O in the lower crust and upper mantle. Geochimica et Cosmochimica Acta 58(22), 4831-4839. doi:10.1016/0016-7037(94)90214-3
Read in checked against the source
Transcribed from the published article (PDF from the publisher): the equation of the abstract, p. 4831, read on the page image
log K = log m(SiO2,aq) of quartz = SiO2(aq) as a function of temperature T (K) and the density of water (g/cm3): a + b/T + c/T^2 + d/T^3 + (e + f/T + g/T^2) log rho. The author derives it from his measurements (500-900 C, 5-20 kbar) and earlier ones at lower pressure, and states that it reproduces measured quartz solubilities from 25 C and 1 bar to his conditions.
Tables
log_k_coefficients: 7 rows
abstract, p. 4831
| coefficient | value |
|---|---|
| a | 4.262 |
| b | -5764.2 |
| c | 1.7513e6 |
| d | -2.2869e8 |
| e | 2.8454 |
| f | -1006.9 |
| g | 356890.0 |
Notes
- b, c, d and f, g carry the powers of the temperature in kelvin they divide; the density is in g/cm3.
The file data/literature/Manning1994.json on GitHub, at the commit this page was built from.
fig2 = plot(; xlabel = "T (°C)", ylabel = "log m SiO₂(aq)", legend = :bottomright, size = (700, 430))
for (k, P_bar) in enumerate((500, 1000, 2000, 5000))
P = P_bar * 1e5
Ts = [T for T in range(25, 900; length = 90) if hw_density(T + 273.15, P) >= 0.35]
plot!(fig2, Ts, [hw_quartz_log_m(T + 273.15, P) for T in Ts]; color = k, label = "$(P_bar) bar")
plot!(fig2, Ts, [hw_manning(T + 273.15, P) for T in Ts]; color = k, linestyle = :dash, label = false)
endSolid lines, the database; dashed lines, the equation of Manning (1994). The two differ by 0.004 to 0.022 in