PO.FA.Scale.SI.OddoTomson(mineral, t, p, ionic, ca, mg, sr, ba, sulfate, bicarb, p_co2)

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.

PO.FA.Scale.MixRatio(formation, injection, fraction)

The ion concentrations of a mixture of formation water and injection water, the input a scale-compatibility study needs at each mixing ratio. When seawater breaks through to a producer, the barium and strontium of the formation water meet the sulfate of the seawater, and the mixture can be far more supersaturated in barite or celestite than either water alone. Each ion mixes in proportion to the volumes: c = (1 − f)·c_formation + f·c_injection, with f the injection water's volume fraction. Pass the two analyses as matching rows of ions and a single fraction for one mixture, or a column of fractions for the whole mixing table; feed each mixed analysis to `PO.FA.Scale.SI.OddoTomson` in sheet cells.

PO.FA.Scale.InhibitorDose(si, mic, qw, sg_w, sg_i, output)

The continuous scale-inhibitor injection a produced water needs, on a stated basis: the minimum inhibitor concentration (MIC), in ppm of product by mass of water, that the inhibitor's qualification test (a static jar or dynamic tube-blocking test on this water at these conditions) found to stop the scale, applied whenever the water's saturation index is above 0, and nothing when it is not. The function returns that dose, the product's mass rate for the water rate and the product's volume rate, the number a chemical pump is set to. It does not predict the MIC: that comes from the test, and grows with the saturation index, which is why the index gates the dose here rather than scaling it.

Need a custom LAMBDA? Request a Lambda