Skip to content

Carbon dioxide in water under pressure (Wiebe and Gaddy 1940) ​

Before this page

Real gases, for the equation of state of the gas, and Standard states §1, for the pressure terms of the solution.

Wiebe and Gaddy (1940) measured how much carbon dioxide dissolves in pure water from 12 to 40 °C and from 25 to 500 atm. At these pressures the gas is far from ideal: below 31 °C it condenses into a liquid above some 50 to 70 atm, and above, a dense supercritical fluid. This page computes their 42 solubilities with the gas ideal and with the equation of state of Peng and Robinson (1976), and separates what each term of the calculation contributes. Nothing is fitted: the critical constants of the gas are those of phreeqc.dat (Parkhurst and Appelo, 2013), the standard energies those of Cemdata18 (Lothenbach et al., 2019).

1. The measurements ​

Wiebe and Gaddy (1940), Table I give the volume of gas, reduced to 0 °C and 1 atm, dissolved per gram of water. Divided by the molar volume of the ideal gas at 0 °C and 1 atm, it is the molality of the dissolved carbon dioxide (wg40_measured); converted to mole fractions, it is the table Spycher et al. (2003) give in their Appendix A, to the last printed digit.

julia
using ChemistryLab, DynamicQuantities, OptimaSolver, Printf
include(joinpath(pkgdir(ChemistryLab), "scripts", "wiebe_gaddy1940_co2.jl"))

d = wg40_measured()
temps = unique(d.T_C)
println("P (atm)  ", join((@sprintf("%8.2f °C", t) for t in temps)))
for P in sort(unique(round.(Int, d.P ./ 101325)))
    cells = map(temps) do t
        i = findfirst(k -> d.T_C[k] == t && round(Int, d.P[k] / 101325) == P, eachindex(d.T))
        i === nothing ? " "^11 : @sprintf("%11.3f", d.m[i])
    end
    println(rpad(P, 9), join(cells))
end
P (atm)     12.00 °C   18.00 °C   25.00 °C   31.04 °C   35.00 °C   40.00 °C
25                        0.870                 0.633      0.578      0.518
50             1.586      1.429      1.215      1.077      0.991      0.908
75             1.621      1.510      1.391      1.309      1.242      1.152
100            1.640      1.516      1.417      1.346      1.300      1.241
125                                                                   1.281
150            1.713      1.595                 1.409      1.362      1.311
200            1.774      1.658                 1.462      1.420      1.416
300            1.832      1.754
400                                  1.723      1.641      1.594      1.556
500                                             1.725      1.695      1.639
Data read above: WiebeGaddy1940Wiebe, R., Gaddy, V. L. (1940)1 tables

Wiebe, R., Gaddy, V. L. (1940). The solubility of carbon dioxide in water at various temperatures from 12 to 40 C and at pressures to 500 atmospheres. Critical phenomena. Journal of the American Chemical Society 62(4), 815-817. doi:10.1021/ja01861a033

Read in checked against the source

Transcribed from the published article (PDF from the publisher, a scan whose text layer is an OCR): Table I, p. 815, read on the page rendered at 500 dpi

Every value read on the image agrees with the OCR of the text layer up to its punctuation; the OCR has the entry at 125 atm and 40 C garbled, which the image gives as 28.71. The solubility is the volume of gas, reduced to 0 C and 1 atm (S. T. P.), dissolved per gram of water. Converted with the molar volume of the ideal gas at 0 C and 1 atm, 22414 cm3/mol, it gives the mole fractions Spycher et al. (2003, Appendix A) tabulate for these data, 1.127 % at 31.04 C and 25 atm and 3.014 % at 500 atm.

Tables

co2_solubility: 42 rows measured

Table I, p. 815

temperature_Cpressure [101325*Pa]solubility [cm^3/g]
12.050.035.54
12.075.036.33
12.0100.036.77
12.0150.038.39
12.0200.039.77
12.0300.041.07
18.025.019.51
18.050.032.03
18.075.033.85
18.0100.033.98
18.0150.035.75
18.0200.037.17
18.0300.039.31
25.050.027.23
25.075.031.17
25.0100.031.75
25.0400.038.62
31.0425.014.18
31.0450.024.15
31.0475.029.33
31.04100.030.17
31.04150.031.59
31.04200.032.78
31.04400.036.78
31.04500.038.67
35.025.012.95
35.050.022.21
35.075.027.84
35.0100.029.13
35.0150.030.52
35.0200.031.83
35.0400.035.73
35.0500.037.99
40.025.011.62
40.050.020.35
40.075.025.81
40.0100.027.81
40.0125.028.71
40.0150.029.39
40.0200.031.74
40.0400.034.87
40.0500.036.73

Notes

  • Temperature in degrees Celsius; pressure in atmospheres, the total pressure over the solution; solubility in cubic centimeters of carbon dioxide at 0 C and 1 atm (S. T. P.) per gram of water.
  • The table has no value at 12 C and 25 atm, at 25 C and 25, 125, 150, 200, 300 and 500 atm, nor wherever else it is left blank; at 10 C and above 50 atm, and at 12 C above 300 atm, the authors report the formation of a solid hydrate.
Show the code of scripts/wiebe_gaddy1940_co2.jl, included above

The file scripts/wiebe_gaddy1940_co2.jl on GitHub, at the commit this page was built from:

julia
# =============================================================================
#  wiebe_gaddy1940_co2.jl — carbon dioxide in water under pressure
#
#  Wiebe and Gaddy (1940) measured the solubility of carbon dioxide in pure
#  water from 12 to 40 °C and from 25 to 500 atm (their Table I). This file
#  computes it at equilibrium, the gas ideal or following the equation of state
#  of Peng and Robinson (1976), the dissolved carbon dioxide and its ions from
#  Cemdata18 (the HKF records of slop98), and splits the logarithm of the
#  dissolved amount into the terms each piece of physics contributes. The page
#  docs/src/tutorials/validation_co2_solubility.md compares them.
#
#  Nothing is fitted: the critical constants of the gas are those of
#  phreeqc.dat, the standard energies those of the database.
# =============================================================================

using ChemistryLab
using DynamicQuantities

const WG40 = "WiebeGaddy1940"
const WG40_DB = Dict(symbol(s) => s for s in build_species(datapath("cemdata18-thermofun.json"); verbose = false))
const WG40_AQUEOUS = ["H2O@", "H+", "OH-", "CO2@", "HCO3-", "CO3-2"]

"""
    wg40_measured() -> NamedTuple

Table I of Wiebe and Gaddy (1940): the temperature in °C (`T_C`) and in K
(`T`), the total pressure in Pa (`P`), and the dissolved carbon dioxide in mol
per kg of water (`m`), from the volume at 0 °C and 1 atm they report through
the molar volume of the ideal gas there.
"""
function wg40_measured()
    t = literature_table(WG40, "co2_solubility")
    # 0 °C and the standard atmosphere, 101325 Pa by definition.
    V_stp = R_GAS * 273.15 / 101325
    T_C = Float64.(t.temperature_C)
    return (; T_C, T = T_C .+ 273.15, P = ustrip.(us"Pa", t.pressure), m = ustrip.(us"m^3/kg", t.solubility) ./ V_stp)
end

"""
    wg40_system(gas) -> ChemicalSystem

Water, its ions and the dissolved carbon dioxide over a gas of carbon dioxide,
ideal (`gas = :ideal`) or following the equation of state of Peng and Robinson
with the constants of phreeqc.dat (`gas = :real`).
"""
function wg40_system(gas::Symbol)
    co2 = gas === :real ? peng_robinson(WG40_DB["CO2"]) :
        gas === :ideal ? WG40_DB["CO2"] :
        throw(ArgumentError("wg40_system: the gas is :ideal or :real; got :$gas"))
    return ChemicalSystem(vcat([WG40_DB[k] for k in WG40_AQUEOUS], [co2]), ["H2O@", "H+", "CO3-2", "Zz"])
end

"""
    wg40_dissolved(cs, T, P; model = HKFActivityModel()) -> Float64

The carbon dissolved in one kilogram of water, in mol/kg, at equilibrium with
twenty moles of carbon dioxide at `T` (K) and `P` (Pa): enough that the gas
remains at every condition of the table, even where an ideal gas would dissolve
some nine moles per kilogram.
"""
function wg40_dissolved(cs, T, P; model = HKFActivityModel())
    st = ChemicalState(cs; T = T * u"K", P = P * u"Pa")
    set_quantity!(st, "H2O@", 1.0u"kg")
    set_quantity!(st, "CO2", 20.0u"mol")
    eq, cert = equilibrate_certified(st; model)
    cert.optimal || error("wg40_dissolved: no certified equilibrium at $T K and $P Pa")
    n = Dict(symbol(s) => ustrip(us"mol", q) for (s, q) in zip(cs.species, eq.n))
    n["CO2"] > 1 || error("wg40_dissolved: the gas is exhausted at $T K and $P Pa")
    kg_water = n["H2O@"] * ustrip(us"kg/mol", WG40_DB["H2O@"][:M])
    return (n["CO2@"] + n["HCO3-"] + n["CO3-2"]) / kg_water
end

"""
    wg40_terms(T, P) -> NamedTuple

The natural logarithm of the molality of the dissolved carbon dioxide in an
ideal solution under the pure gas, split into its terms,
``\\ln m = \\ln K_H + \\ln(P/P^\\circ) + \\ln\\varphi - \\Delta g_{aq}``:
`henry`, the constant of CO2(g) = CO2(aq) at `T` and ``P^\\circ``; `pressure`,
``\\ln(P/P^\\circ)``, all an ideal gas has; `fugacity`, the logarithm of the
fugacity coefficient of the gas; and `volume`, minus the rise of the standard
Gibbs energy of the dissolved carbon dioxide from ``P^\\circ`` to `P` over ``RT``,
the work of its partial molar volume.
"""
function wg40_terms(T, P)
    g(k, Pv) = WG40_DB[k][:ΔₐG⁰](T = T, P = Pv) / (R_GAS * T)
    st = ChemicalState(ChemicalSystem([peng_robinson(WG40_DB["CO2"])], ["CO2"]); T = T * u"K", P = P * u"Pa", n = [1.0u"mol"])
    return (;
        henry = g("CO2", P_STANDARD) - g("CO2@", P_STANDARD),
        pressure = log(P / P_STANDARD),
        fugacity = log(fugacity_coefficients(st)["CO2"]),
        volume = -(g("CO2@", P) - g("CO2@", P_STANDARD)),
    )
end

"""
    wg40_compute() -> NamedTuple

Every point of Table I: the measured molality and those computed with the gas
ideal and real, and the terms of `wg40_terms`.
"""
function wg40_compute()
    d = wg40_measured()
    n = length(d.T)
    ideal, real_gas = zeros(n), zeros(n)
    terms = Vector{NamedTuple{(:henry, :pressure, :fugacity, :volume), NTuple{4, Float64}}}(undef, n)
    # Behind an inference barrier: inferred from here, the whole certified
    # equilibrium is inferred again inside this function, which took the
    # compiler more than ten minutes and 4 GB; called through the barrier, it is
    # compiled once on its own, in under a minute.
    cs_ideal, cs_real = Base.inferencebarrier(wg40_system(:ideal)), Base.inferencebarrier(wg40_system(:real))
    for i in 1:n
        ideal[i] = wg40_dissolved(cs_ideal, d.T[i], d.P[i])
        real_gas[i] = wg40_dissolved(cs_real, d.T[i], d.P[i])
        terms[i] = wg40_terms(d.T[i], d.P[i])
    end
    return (; d..., ideal, real = real_gas, terms)
end

The molality, in mol/kg, rises steeply up to 50 to 75 atm and then slowly: past that point the carbon dioxide is dense, and compressing it further raises its fugacity much less than its pressure.

2. The calculation ​

A kilogram of water is put in contact with twenty moles of carbon dioxide, which leaves a gas phase at every condition of the table, and brought to equilibrium (wg40_dissolved). The aqueous species are the water, its ions, the dissolved carbon dioxide and the bicarbonate and carbonate ions, with the extended Debye–Hückel model; the bicarbonate is a twentieth of a percent of the dissolved carbon. The gas is either the ideal gas of the database or the same species given the critical constants of phreeqc.dat by peng_robinson:

julia
co2 = peng_robinson(WG40_DB["CO2"])
for (T_C, P_atm) in ((25.0, 50), (25.0, 100), (40.0, 100))
    st = ChemicalState(ChemicalSystem([co2], ["CO2"]); T = (T_C + 273.15) * u"K", P = P_atm * 101325.0u"Pa", n = [1.0u"mol"])
    @printf("%4.0f °C, %3d atm:  φ = %.3f,  Z = %.3f\n", T_C, P_atm, fugacity_coefficients(st)["CO2"], compressibility_factor(st))
end
  25 °C,  50 atm:  φ = 0.738,  Z = 0.654
  25 °C, 100 atm:  φ = 0.464,  Z = 0.229
  40 °C, 100 atm:  φ = 0.561,  Z = 0.298
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.

At 25 °C the carbon dioxide is a vapor at 50 atm and a liquid at 100 atm, under a quarter of the volume of the ideal gas; at 40 °C the fluid has no such jump. In either case its fugacity is a fraction of its pressure, and that fraction is what the dissolved amount follows.

julia
r = wg40_compute()
dev_real = 100 .* (r.real ./ r.m .- 1)
dev_ideal = 100 .* (r.ideal ./ r.m .- 1)
@printf("Peng–Robinson: mean %+.1f %%, mean absolute %.1f %%, largest %.1f %%\n",
    sum(dev_real) / 42, sum(abs, dev_real) / 42, maximum(abs, dev_real))
@printf("ideal gas:     from %+.0f %% to %+.0f %%\n", minimum(dev_ideal), maximum(dev_ideal))
Peng–Robinson: mean -2.1 %, mean absolute 3.0 %, largest 7.3 %
ideal gas:     from +12 % to +464 %

3. Measured and computed ​

julia
using Plots
default(framestyle = :box, grid = false)
colors = palette(:viridis, length(temps) + 1)
cs_real, cs_ideal = wg40_system(:real), wg40_system(:ideal)
fig = plot(; xlabel = "P (atm)", ylabel = "dissolved CO₂ (mol/kg)", ylims = (0, 2.2), legend = :bottomright, size = (700, 430))
for (k, t) in enumerate(temps)
    T = t + 273.15
    Ps = 101325.0 .* (t < 15 ? (10:10:300) : (10:10:500))
    plot!(fig, Ps ./ 101325, [wg40_dissolved(cs_real, T, P) for P in Ps]; color = colors[k], label = @sprintf("%.4g °C", t))
    plot!(fig, Ps ./ 101325, [wg40_dissolved(cs_ideal, T, P) for P in Ps]; color = colors[k], linestyle = :dash, label = false)
    i = findall(==(t), r.T_C)
    scatter!(fig, r.P[i] ./ 101325, r.m[i]; color = colors[k], markersize = 4, label = false)
end

The markers are the measurements, the solid lines the real gas, the dashed lines the ideal gas, which leaves the frame above some 75 atm. The real gas follows the shape of every isotherm: the sharp rise to the saturation of the gas at 12, 18 and 25 °C and the plateau of the liquid above it, the smoother rise of the supercritical isotherms. The ideal gas, whose activity is its pressure, has neither: it dissolves 12 % too much at 25 atm and 40 °C, and 5.6 times the measurement at 300 atm and 12 °C.

4. What each term contributes ​

Under the pure gas and with unit activity coefficient, the molality of the dissolved carbon dioxide is the product of four factors, and its logarithm the sum of four terms (wg40_terms):

the Henry constant at the standard pressure, the pressure, the fugacity coefficient of the gas, and the work of the partial molar volume of the dissolved carbon dioxide, which its HKF equation of state (Helgeson et al., 1981) gives as about 33 cm³/mol. The four add up to the molality computed at equilibrium to 0.1 %, the share of the bicarbonate.

julia
i40 = findall(==(40.0), r.T_C)
println("P (atm)   ln KH    ln P/P°   ln φ    volume   ln m: ideal  +φ      +volume  measured")
for i in i40
    t = r.terms[i]
    @printf("%5.0f   %7.3f  %7.3f  %7.3f  %7.3f      %7.3f  %7.3f  %7.3f  %7.3f\n", r.P[i] / 101325,
        t.henry, t.pressure, t.fugacity, t.volume,
        t.henry + t.pressure, t.henry + t.pressure + t.fugacity,
        t.henry + t.pressure + t.fugacity + t.volume, log(r.m[i]))
end
P (atm)   ln KH    ln P/P°   ln φ    volume   ln m: ideal  +φ      +volume  measured
   25    -3.744    3.232   -0.122   -0.032       -0.512   -0.634   -0.666   -0.657
   50    -3.744    3.925   -0.254   -0.064        0.181   -0.072   -0.137   -0.097
   75    -3.744    4.331   -0.400   -0.097        0.587    0.187    0.090    0.141
  100    -3.744    4.618   -0.577   -0.130        0.875    0.297    0.168    0.216
  125    -3.744    4.841   -0.733   -0.162        1.098    0.364    0.202    0.248
  150    -3.744    5.024   -0.856   -0.195        1.280    0.424    0.229    0.271
  200    -3.744    5.311   -1.036   -0.260        1.568    0.531    0.272    0.348
  400    -3.744    6.005   -1.359   -0.517        2.261    0.902    0.385    0.442
  500    -3.744    6.228   -1.414   -0.645        2.484    1.070    0.425    0.494

At 40 °C the fugacity coefficient takes 0.25 from the logarithm at 50 atm and 1.41 at 500 atm, a factor of four; the volume of the solute takes 0.06 and 0.65, a factor of two at the highest pressure. Neither is a correction: without the first the ideal gas misses the measurement by a factor of four, without the second the real gas overshoots it by 80 % at 500 atm.

julia
fig2 = plot(; xlabel = "P (atm)", ylabel = "ln m", legend = :bottomright, size = (700, 400))
t40 = r.terms[i40]
P40 = r.P[i40] ./ 101325
plot!(fig2, P40, [t.henry + t.pressure for t in t40]; label = "ideal gas", linestyle = :dashdot, marker = :circle, markersize = 3)
plot!(fig2, P40, [t.henry + t.pressure + t.fugacity for t in t40]; label = "+ ln φ", linestyle = :dash, marker = :circle, markersize = 3)
plot!(fig2, P40, [t.henry + t.pressure + t.fugacity + t.volume for t in t40]; label = "+ volume", marker = :circle, markersize = 3)
scatter!(fig2, P40, log.(r.m[i40]); label = "measured, 40 °C", color = :black, markersize = 5)

5. What remains ​

The real gas falls 2.1 % short of the measurements on average, 3.0 % in absolute value. Two systematic patterns remain, and one point:

  • Below the critical temperature, above saturation, at 12 °C, the calculation is 2 to 4 % high: the solubility follows the fugacity of liquid carbon dioxide, which the equation of Peng and Robinson (1976), built for the vapor pressures of hydrocarbons, describes less closely than the gas.

  • Above 31 °C, from 50 atm up, it is 3 to 7 % low. The gas phase is taken as pure carbon dioxide, whereas it holds a few parts per thousand of water, 2.3 to 4.8 ‰ at 31 °C between 25 and 500 bar according to the measurements Spycher et al. (2003) compile; counted, that water would lower the fugacity of the carbon dioxide by as much, and widen the gap rather than close it. The fugacity coefficient of the dense fluid, the partial molar volume of the solute and its activity coefficient, unit here, are the terms left to account for it.

  • The point at 40 °C and 200 atm, where the calculation falls 7.3 % short, is also off the trend of its own isotherm: it is within 0.3 % of the measurement at 35 °C, whereas at every other pressure the two isotherms are 2.5 to 11 % apart.

Spycher et al. (2003) fit these data, among others, with equilibrium constants and partial molar volumes of their own and a separate equilibrium constant for liquid carbon dioxide below 31 °C. The calculation here takes every constant from elsewhere, keeps one standard state for the gas whatever its density, and lets the equation of state carry the liquid.