PO.FA.Scale.SI.OddoTomson


Description

Will this water lay down calcite, barite or celestite at these conditions? Oddo and Tomson's saturation index is the log of the scale-forming ions' concentration product over a conditional solubility product, fitted as a function of temperature, pressure and ionic strength so that no activity coefficients are needed. Above 0 the water is supersaturated and can scale; below 0 it is undersaturated. The method was built for oilfield brines, up to 200 °C, about 1,380 bar and an ionic strength of 4 mol/L. Calcite's index comes from the water's bicarbonate and the CO2 partial pressure of the gas it is in contact with, so it captures the scale that forms when the pressure falls and CO2 leaves the water. Barite's and celestite's use the free sulfate left after the calcium, magnesium, strontium and barium sulfate ion pairs. The mineral is a required argument: one call per mineral.

Formula

=LAMBDA(mineral, t, p, ionic, ca, mg, sr, ba, sulfate, bicarb, p_co2, LET( ok, IF(mineral="Calcite", AND(ca>0, bicarb>0, p_co2>0), IF(mineral="Barite", AND(ba>0, sulfate>0), IF(mineral="Celestite", AND(sr>0, sulfate>0), FALSE))), IF(OR(NOT(ok), p<0, ionic<0, ca<0, mg<0, sr<0, ba<0, sulfate<0, bicarb<0, p_co2<0), NA(), LET( mca, ca/40078, mmg, mg/24305, msr, sr/87620, mba, ba/137327, mso, sulfate/96060, mhc, bicarb/61017, ri, SQRT(ionic), kst, 10^(1.86+0.0045*t-0.0000012*t^2+0.000107*p-2.38*ri+0.58*ionic-0.0013*ri*t), bq, 1+kst*(mca+mmg+msr+mba-mso), fso, (SQRT(bq^2+4*kst*mso)-bq)/(2*kst), den, 1+kst*fso, IF(mineral="Calcite", LOG10((mca+(mca<=0))*(mhc+(mhc<=0))^2)-LOG10(p_co2+(p_co2<=0))+5.85+0.01519*t-0.00000164*t^2-0.0000527*p-3.334*ri+1.431*ionic, IF(mineral="Barite", LOG10((mba+(mba<=0))*(fso+(fso<=0))/den)+10.03-0.0048*t+0.0000114*t^2-0.000048*p-2.62*ri+0.891*ionic-0.002*ri*t, LOG10((msr+(msr<=0))*(fso+(fso<=0))/den)+6.11+0.002*t+0.0000064*t^2-0.000046*p-1.89*ri+0.67*ionic-0.0019*ri*t))))))

Parameters

Parameter Unit Description
mineral text "Calcite" (CaCO3), "Barite" (BaSO4) or "Celestite" (SrSO4)
t °F Temperature
p psia Absolute pressure; 0 or more
ionic mol/L Ionic strength of the water, ½·Σ ci·zi² over all its ions; 0 or more
ca mg/L Calcium; above 0 for calcite
mg mg/L Magnesium (sulfate ion pairs only); 0 or more
sr mg/L Strontium; above 0 for celestite
ba mg/L Barium; above 0 for barite
sulfate mg/L Sulfate; above 0 for barite and celestite
bicarb mg/L Bicarbonate; above 0 for calcite
p_co2 psia CO2 partial pressure of the gas in contact with the water, total pressure × CO2 mole fraction (× its fugacity coefficient where known); above 0 for calcite

Examples

Invocation Expected
=PO.FA.Scale.SI.OddoTomson("Calcite", 200, 3000, 1.3, 2000, 300, 300, 250, 10, 500, 50) -0.4505526103
=PO.FA.Scale.SI.OddoTomson("Barite", 200, 3000, 1.3, 2000, 300, 300, 250, 10, 500, 50) 0.2271660084
=PO.FA.Scale.SI.OddoTomson("Celestite", 200, 3000, 1.3, 2000, 300, 300, 250, 10, 500, 50) -1.684668493
=PO.FA.Scale.SI.OddoTomson("Calcite", 100, 150, 1.3, 2000, 300, 300, 250, 10, 500, 5) -0.7701576103
=PO.FA.Scale.SI.OddoTomson("Barite", 120, 1000, 1, 1206, 795, 154, 125.005, 1361, 321, 10) 2.610040207
=PO.FA.Scale.SI.OddoTomson("Celestite", 120, 1000, 1, 1206, 795, 154, 125.005, 1361, 321, 10) 0.2427862272
=PO.FA.Scale.SI.OddoTomson("Barite", 77, 14.7, 0.01, 0, 0, 0, 0.1, 50, 0, 0) 0.01735496458
=IF(ISNA(PO.FA.Scale.SI.OddoTomson("Gypsum", 77, 14.7, 0.01, 0, 0, 0, 0.1, 50, 0, 0)), 1, 0) 1

Need a custom LAMBDA? Suggest a New Lambda