Om(x, flag, var1, var2, k1k2='x', kf='x', ks="d", pHscale="T", b="u74")
flag = 1 pH and CO2 given
flag = 2 CO2 and HCO3 given
flag = 3 CO2 and CO3 given
flag = 4 CO2 and ALK given
flag = 5 CO2 and DIC given
flag = 6
Note that the stoichiometric solubility products with respect to Mg-calcite minerals have not been determined experimentally. The saturation state with respect to Mg-calcite minerals is therefore calculated based on ion activities, i.e.,
$$\Omega_{x} = \frac{ {Ca^{2+}}^{1-x} {Mg^{2+}}^{x} {CO_{3}}^{2-} } { K_{x} }$$
The ion activity {a} is calculated based on the observed ion concentrations [C] multiplied by the total ion activity coefficient, $\gamma_T$, which has been determined experimentally or from theory (e.g. Millero & Pierrot 1998): {a}=$\gamma_T$[C]. Because a true equilibrium cannot be achieved with respect to Mg-calcite minerals, $K_x$ represents a metastable equilibrium state obtained from what has been referred to as stoichiometric saturation (Thorstenson & Plummer 1977; a term not equivalent to the definition of the stoichiometric solubility product, see for example Morse et al. (2006) and references therein). In the present calculation calcium and magnesium concentrations were calculated based on salinity. Total ion activity coefficients with respect to $Ca^{2+}$, $Mg^{2+}$, and $CO_{3}^{2-}$ were adopted from Millero & Pierrot (1998).
The Lueker et al. (2000) constants for K1 and K2, the Perez and Fraga (1987) constant for Kf and the Dickson (1990) constant for Ks are recommended by Dickson et al. (2007). It is, however, critical to consider that each formulation is only valid for specific ranges of temperature and salinity:
For K1 and K2:
For Kf:
For Ks:
The arguments can be given as a unique number or as vectors. If the lengths of the vectors are different, the longer vector is retained and only the first value of the other vectors is used. It is recommended to use either vectors with the same dimension or one vector for one argument and numbers for the other arguments.
Pressure corrections and pH scale:
Andersson A. J., Mackenzie F. T., Nicholas R. B., 2008, Life on the margin: implications of ocean acidification on Mg-calcite, high latitude and cold-water marine calcifiers. Marine Ecology Progress Series 373, 265-273.
Bischoff W. D., Bertram M. A., Mackenzie F. T. and Bishop F.C., 1993 Diagenetic stabilization pathways of magnesian calcites. Carbonates and Evaporites 8, 82-89.
Millero F. J. and Pierrot D., 1998. A chemical equilibrium model for natural waters. Aquatic Geochemistry 4, 153-199.
Morse J. W., Andersson A. J. and Mackenzie F. T., 2006. Initial responses of carbonate-rich shelf sediments to rising atmospheric pCO2 and ocean acidification: Role of high Mg-calcites. Geochimica et Cosmochimica Acta 70, 5814-5830.
Thorstenson D.C. and Plummer L.N., 1977. Equilibrium criteria for two component solids reacting with fixed composition in an aqueous phase-example: the magnesian calcites. American Journal of Science 277, 1203-1233.
Om(x=seq(0.01, 0.252, 0.01), flag=8, var1=8.2, var2=0.00234,
k1k2='x', kf='x', ks="d", pHscale="T", b="u74")
Run the code above in your browser using DataLab