Petroleum Knowledge Base

Drilling Fluid Contamination and Treatment

Drilling fluid contamination is the deterioration of drilling fluid properties caused by contaminants introduced from the formation or by operations; the common types are calcium contamination, salt and salt water contamination, cement contamination, carbon dioxide (carbonate and bicarbonate) contamination, and hydrogen sulfide contamination. The approach to treatment is to identify the contaminant by ion analysis, then remove it or adapt to it by precipitation, complexation, or conversion of the system, while replenishing thinners and fluid loss additives and maintaining a suitable pH.

Concept

While drilling, salt, gypsum, salt water, and acid gases in the formation, as well as cement drilled out and hard water used during operations, all bring unwanted ions into the drilling fluid. When these ions cause the rheological properties, fluid loss, or pH to deviate from the design requirements, the drilling fluid is said to be contaminated. In severe cases the rheological and filtration properties are destroyed, and some contaminants also aggravate corrosion of the drill string and casing, so contamination must be detected and treated promptly. Common types are calcium contamination, salt and salt water contamination, cement contamination, carbonate and bicarbonate contamination caused by CO₂, and hydrogen sulfide contamination. Dispersed drilling fluids have the weakest resistance to contamination and are the most noticeably affected, see Dispersed Drilling Fluid.

Procedure

Treatment generally takes four steps:

  1. Detection. Watch whether the viscosity, gel strength, fluid loss, and pH of the drilling fluid returning at the wellhead change abruptly, especially before and after drilling into gypsum beds, salt beds, and cement plugs;
  2. Identifying the contaminant. Measure the Cl⁻, Ca²⁺, Mg²⁺, and alkalinity (Pf, Mf) of the filtrate; for the methods see Ion Analysis of Drilling Fluids and pH and Alkalinity;
  3. Pilot test. Estimate the additive dosage from the contaminant content, and run a pilot test with the field mud before treating in bulk;
  4. Treatment and retesting. Retest while adding chemicals; the treatment must address both rheological properties and fluid loss.

Key Technical Points

Calcium Contamination

There are five sources: gypsum beds, calcium-bearing formation brines, cement plugs (calcium hydroxide is released after the cement hydrates), make-up water of high hardness, and lime added as an additive. The water phase of calcium-treated drilling fluids and invert emulsion muds needs a certain amount of Ca²⁺; in other systems Ca²⁺ is a contaminant ion. Ca²⁺ exchanges with the Na⁺ in sodium bentonite and hydrates less strongly than Na⁺, so the clay flocculates and the viscosity, gel strength, and fluid loss rise; tests show that a Ca²⁺ concentration of only about one part in several tens of thousands is enough to make a dispersed drilling fluid lose its suspension stability.

There are two treatment routes: convert beforehand to a calcium-treated drilling fluid (see Calcium-Treated Mud), or remove the calcium with chemicals. The basic chemical for removal is soda ash: Ca²⁺ + Na₂CO₃ = CaCO₃↓ + 2Na⁺, and the excess Na⁺ can also exchange calcium bentonite back to sodium bentonite; an excess of soda ash will cause CO₃²⁻ contamination. Removing 1 mg/L of Ca²⁺ requires about 0.00266 kg/m³ of soda ash.

Example (assumed data) If the Ca²⁺ in the filtrate exceeds the requirement by 250 mg/L and must be removed, the theoretical amount of soda ash is about 250 × 0.00266 = 0.665 kg/m³; the actual dosage should be determined in a pilot test, avoiding an excess.

When the calcium contamination from a gypsum bed is at a low concentration, treat it with soda ash plus a thinner; the reaction is CaSO₄ + Na₂CO₃ = CaCO₃↓ + Na₂SO₄.

Cement Contamination and Lime Contamination

Cement contamination brings in Ca²⁺ and OH⁻, so the pH is also high. When soda ash reacts with Ca(OH)₂ to form CaCO₃, caustic soda is formed as well, which raises the pH further and increases the risk of solidification, so soda ash is not recommended for treating cement contamination. Sodium bicarbonate or sodium acid pyrophosphate (SAPP) can be used instead; both remove Ca²⁺ while lowering the pH moderately. But for Ca(OH)₂, sodium bicarbonate neutralizes only half of its OH⁻ and the other half becomes NaOH, so the pH may still be high, and at higher temperatures (above about 120 °C) the drilling fluid may solidify. Another practice is to lower the pH with organic acids such as lignite, tannic acid, humic acid, or ferrochrome lignosulfonate powder, converting the lime contamination into a lime-base drilling fluid.

Salt Contamination and Salt Water Contamination

When a rock salt bed is drilled, rock salt near the wellbore wall dissolves and the NaCl concentration rises; when a salt water zone is drilled and the salt water cannot be held back, salt water enters the drilling fluid. As NaCl is added, the viscosity and gel strength of a dispersed drilling fluid first rise and then fall, while the fluid loss keeps rising; the viscosity and gel strength reach their maximum at an NaCl content of about 3% (values from one group of tests, varying with the properties and amount of bentonite). At the same time Na⁺ displaces the H⁺ in the clay, and the pH gradually decreases.

Na⁺ is very difficult to remove chemically, and the practical approach is to convert the system: when the salt concentration is not high, dilute with fresh water and replenish polymers and organic dispersants; when salt contamination is severe, large amounts of salt-resistant thinners (SMT, FCLS, chrome-free lignosulfonate), fluid loss additives (SMP, SPNH, PAC, starch derivatives), and viscosifiers such as MMH and XC must be added to convert the whole system to a salt water system, see Saltwater and Saturated Saltwater Drilling Fluids. Powdered additives are best made up as fresh water solutions before being added, so that they are hydrated and dissolved in advance. For the overall measures for drilling salt-gypsum beds see Salt-Gypsum Bed Drilling.

Seawater or some formation waters contain MgCl₂; Mg²⁺ combines with OH⁻ to form a Mg(OH)₂ precipitate, which lowers the pH, so caustic soda must be added continuously to maintain the pH, and this also serves to control the solubility of calcium in the filtrate. For contamination with Mg²⁺ and Ca²⁺ only, caustic soda can be added first to remove Mg²⁺, and then soda ash to remove Ca²⁺.

Carbonate and Bicarbonate Contamination

The main sources of carbonate are: CO₂ from the air mixed in during agitation by surface equipment, drilling through CO₂-bearing formations, excess soda ash added when treating calcium and cement contamination, decomposition of lignin-type additives at high temperature, and carbonate impurities brought in by weighting materials and lost circulation materials. When CO₂ dissolves in water it forms HCO₃⁻ and CO₃²⁻, and which form predominates depends on the pH: at low pH carbonic acid predominates, at intermediate pH HCO₃⁻, and at higher pH CO₃²⁻. The effect shows in the yield point: as the HCO₃⁻ concentration increases, the yield point generally rises; as CO₃²⁻ increases, the yield point first falls and then rises, more markedly at high temperature. The fluid loss also rises and the pH falls. Such contamination is very hard to correct by adding additives, and the ions can only be removed.

The method of removal is to precipitate CaCO₃ with Ca²⁺ supplied by lime or gypsum. HCO₃⁻ cannot be precipitated directly and must first be converted to CO₃²⁻ by reaction with OH⁻. If lime is chosen, the pH will rise, and it can be held down by combining with organic acid additives or gypsum; if gypsum is chosen, lime or caustic soda must be added at the same time, otherwise the pH will drop. Each 1 mg/L of CO₃²⁻ requires about 0.00043 lb/bbl of lime, and each 1 mg/L of HCO₃⁻ about 0.00021 lb/bbl; converted at 1 lb/bbl ≈ 2.853 kg/m³, these are equivalent to about 1.23 mg/L and 0.60 mg/L of Ca(OH)₂ respectively. During treatment, thinners and fluid loss additives must be used at the same time so that the rheological and filtration properties meet the requirements. In hole sections where CO₂ is likely to be encountered, keeping 50–75 mg/L of Ca²⁺ in the filtrate is empirically appropriate. This is not in conflict with the treatment of calcium contamination (removing Ca²⁺); different methods are chosen for different contaminations.

Hydrogen Sulfide Contamination

The main source of H₂S is sulfur-bearing formations; sulfur-containing organic additives and lignosulfonates may also release a small amount when they decompose at high bottomhole temperature. H₂S is highly toxic and strongly corrodes the drill string and casing (see H₂S and CO₂ Corrosion). When H₂S intrusion is found or suspected, first act according to the site hydrogen sulfide protection procedure: sound the alarm immediately; on-site personnel wear positive pressure air respirators, and unnecessary personnel evacuate to a safe area upwind and entry is restricted; monitor the H₂S concentration continuously. When H₂S enters the well with formation fluids, first carry out a flow check, and if a kick is found or suspected, shut in the well according to well control procedures. Only after personnel protection measures are in place is the chemical treatment below carried out.

Chemically, the practice is to add caustic soda or lime to keep the pH above 10, and then add a hydrogen sulfide scavenger such as basic zinc carbonate so that sulfide forms a ZnS precipitate. A high pH alone is only a preventive and auxiliary measure; once the pH drops, sulfide already formed may release H₂S again, so it is advisable to raise the pH first and then add the scavenger.

Influencing Factors and Considerations

  • Identify the contaminant before acting. The symptoms of Ca²⁺, CO₃²⁻, Cl⁻, and other contaminations are similar, and their treatments conflict with one another: soda ash is used to remove calcium, and calcium to remove carbonate. Carbonate and bicarbonate contamination is often mistaken for other causes, and must be judged from the combined changes in ion analysis, rheological properties, fluid loss, and pH.
  • Interactions among additives. Phosphates (such as SAPP and sodium hexametaphosphate) can complex Ca²⁺ and Mg²⁺, but their temperature resistance is poor, and above 80 °C their thinning capacity falls sharply. Lignite-caustic solution and hydrolyzed polyacrylonitrile form calcium salt precipitates with calcium and become ineffective; soda ash can be used to convert Ca²⁺ to CaCO₃, so that the additives return to the sodium salt form.
  • Determine the dosage by pilot tests. Excess soda ash, lime, and the like will itself become a new contaminant.
  • Guard against solidification in high-temperature wells. After sodium bicarbonate is used to treat lime or cement contamination, the pH may still be high, and above about 120 °C the drilling fluid may solidify.

References

  1. Yan Jienian. Drilling Fluid Technology (in Chinese). China University of Petroleum Press, 2001.
  2. Drilling Handbook (in Chinese).