Introduction

A serious problem in the production of high sulfide-containing natural gases is the presence of sulfur and scale deposits in production facilities. Herein, sulfur and scale deposits can cause a substantial and drastic reduction in the velocity of fluids. In the produced water treatment facilities, sulfide-containing gas-saturated produced water is stored in a water tank for environmental consideration, whereas the sulfide-containing natural gas carrying the produced water is distinctly separated from the produced water owing to the decrease in pressure and temperature in the produced water tank. Subsequently, this natural gas is poured into the breathing pipe and finally discharged to the vent for combustion treatment. With the decrease in the temperature and velocity of flow of sulfide-containing natural gas in the long breathing pipe, elemental sulfur and carried produced water precipitate from sulfide-containing natural gas. These precipitates adhere to the inner wall of the breathing pipe owing to the long-term direct contact between the breathing pipe and precipitating water saturated with hydrogen sulfide. Subsequently, deposits are formed through physical and chemical reactions.

Although the deposit components are specific to their gas fields, most deposits are generally composed of a limescale or corrosion scale. The limescale may include CaSO4, MgSO4, BaSO4, SrSO4, and a predominant amount of CaCO3 (Du 2016). There have been many studies on lime-scaling thermodynamics, lime-scaling probability prediction models, lime-scaling rates, and limescale prevention and removal measures (Shahzad et al. 2018; Kan et al. 2019). Environmental factors influence limescale formation. For example, the solubility of lime-scaling salts, such as CaSO4, increases drastically with increasing temperature within lower temperature range and decreases within higher temperature range, so the solubility of CaSO4.2H2O has the maximum value at the investigated temperatures. In contrast, the solubility of BaSO4 and SrSO4 decreases with increasing temperature. Furthermore, the scaling probability increases with decreasing pressure. Scale formation takes place readily with the increase in the pH of the solution. Additionally, the smaller the flow velocity, the stronger the scaling probability (Song et al. 2011). At present, the saturation index models (Oddo–Tomson saturation index model, Davis–Stiff saturation index model, Ryznar stability index model, and CaSO4 scaling index model) are used to calculate the relevant scaling index, determine the scaling type, and predict the scaling probability (Yu et al. 1999; Tang et al. 2011; Liu et al. 2016). Moreover, the saturation index model has been used to predict the formation of different types of limescales, such as carbonate scale, sulfate scale, scale consisting of carbonate and sulfate, and silica scale, in the production process of oil and gas fields. The limitations of various models have been pointed out (Shun et al. 1999; Kan et al. 2019). In addition to the formation of scales, the pipe will be corroded in a wet hydrogen sulfide environment. Iron ions generated during corrosion react with hydrogen sulfide, sulfate ions, and hydroxide ions in the environment to generate corrosion scales, such as sulfide, sulfate, oxide, and carbonate (Shahzad et al. 2018). Among above corrosion scales, iron sulfide behaves at least nine phases reported from field studies, such as mackinawite, troilite, pyrrhotite, and pyrite (Nasr-El-Din and Al-Humaidan 2001; Verri et al. 2017; Liu et al. 2017; Ramanathan et al. 2020). FeS solid can transform from one phase to another with the dependence of many factors, including temperature, solution pH, aging time, ionic strength, and oxidation potential (Rickard and Luther 2007; Lemire et al. 2013; Liu et al. 2017; Ahmed et al. 2020). Pyrite is typically the most thermodynamically stable phase, which have been built the thermodynamical prediction model (Bryndzia et al. 2020). It has also been predicted that mackinawite (FeSm), with chemical stoichiometry of Fe to S 1:1, is usually kinetically favored and is the primary corrosion and precipitation product. A novel thermodynamic model for iron sulfide solubility prediction, which combines Pitzer theory and ion complexation, has been developed (Wang et al. 2022). And the stability constant of FeSO4 complex has been calculated (Cifuentes et al. 2006). With the decreasing temperature, the limescales and corrosion scale are deposited on the inner surface of pipe. Corrosion under deposits may occur in oil and gas environments (Obot et al. 2021). When the pressure increases, the blocked and corroded pipe may burst owing to the limescale and corrosion scale and result in adverse consequences. The scaling probability is predicted primarily based on the saturation index model. However, there is no prediction study on the scaling probability of coexisting corrosion scales and elemental sulfur scales in sulfide-containing environments.

The content of hydrogen sulfide in the sulfide-containing natural gas stations and mineralization in the produced water is high, which leads to serious deposit formation. Based on the thermodynamics of deposit formation, the deposit prediction models proposed in this study as well as other prediction models are validated. Validation is performed by combining the data of chemical composition of the gas and the precipitating water in the breathing pipe, which is poured through the sulfide-containing natural gas with the carried water.

Scale identification of breathing pipe

The TB101-X1 well was produced on November 15, 2008. By December 31, 2020, the accumulated gas production was 6.76 × 108 m3 and the cumulative water production was 1.73 × 104 m3. The breathing pipe of the produced water tank was blocked and perforated thrice in November 2015, July 2017, and April 2020 (Fig. 1). Figure 1 shows different formation of deposits at the opposite ends of the breathing pipe. An obvious black, dense, and hard deposit was formed on the inner wall of the front-end of the breathing pipe, among which earthy red and yellow white deposits are distributed on the black scale in the 6 o’ clock direction. The bottom of the tube was thicker than the top of the pipe. The rear portion of the breathing pipe was completely clogged by deposits. In addition, similar deposits and blockage degrees were found in the breathing pipe of well L14.

Fig. 1
figure 1

Morphologies of deposit at front end and rear end of breathing pipe

Samples of deposits inside the breathing pipe of the sulfide-containing natural gas station were taken and observed using an S-3700 N scanning electron microscope (SEM). It was found that the scale was dense, and the elements of the scale were composed of S, O, and Fe, among which S was the predominant element (Fig. 2).

Fig. 2
figure 2

Micro-morphology and element composition of deposit in breathing pipe

The composition of the deposit in the breathing pipe of the TB101-X1 and L14 wells was analyzed by X-ray diffraction (XRD). The scale was composed of elemental sulfur S8, ferrous polysulfide and ferrous sulfate (S8 47.2wt. %, FeSO4(H2O)4 29.3wt.%, FeS2 16.7wt.%, Fe3S4 6.8wt.%), wherein ferrous polysulfide consisted of sulfides with different atomic ratios. The deposit inside the L14 gas field water tank breathing riser was composed of S8, ferrous polysulfide and FeSO4 (S8 53.8%, FeS 22.6%, FeSO4 43.6%) (Fig. 3). No ferrous carbonate was found in the deposits formed in the breathing pipes of wells TB101-X1 and L14 because the precipitation kinetics are much faster for ferrous sulfide than for iron carbonate. Because of the low solubility of iron sulfide, which is several orders of magnitude lower than other common oilfield scales such as calcite (CaCO3) or siderite (FeCO3) (Pagenkop 1978; Lu et al. 2010; Hamid et al. 2016; Bryndzia et al. 2020), iron sulfide scale can easily form. Moreover, the solubility limit of ferrous sulfide is lower (Marcus et al. 1990; Zheng et al. 2016). Therefore, a ferrous sulfide thin film was formed initially on the surface of the steel, followed by damage and breakdown of the thin ferrous sulfide layer, which lead to pit initiation. The role of CO2 in high content of hydrogen sulfide-containing natural gas is to supply the H+ buffering effect supplied by H2CO3 to propagate the pit (Zhang et al. 2021).

Fig. 3
figure 3

Chemical composition of deposit in breathing pipe: a well TB101-X1; b well L14

Scale formation model

Elemental sulfur formation model

The dissolution and deposition of elemental sulfur in sulfide-containing natural gas are a pair of reversible processes (Eq. 1). When the temperature and pressure of the fluid increase, the reaction proceeds toward the formation of hydrogen polysulfide (H2Sx+1), and the solubility of elemental sulfur in natural gas increases. Conversely, when the fluid temperature and pressure decrease, hydrogen polysulfide is decomposed into H2S and elemental sulfur (Roberts 1997).

$${\text{H}}_{2} {\text{S}}_{{1 + {\text{x}}}} \rightleftharpoons {\text{H}}_{2} {\text{S}}_{{\text{g}}} + {\text{S}}_{{\text{x}}} .$$
(1)

When the reaction in Eq. 1 is in an equilibrium state, the reaction equilibrium constant can be expressed by Eq. 2,

$${\text{K}}_{{{\text{H}}_{2} {\text{S}}_{{1 + {\text{x}}}} }} = \frac{{[{\text{H}}_{2} {\text{S}}_{{\text{g}}} ]\left[ {{\text{S}}_{{\text{x}}} } \right]}}{{\left[ {{\text{H}}_{2} {\text{S}}_{{1 + {\text{x}}}} } \right]}}$$
(2)

where \({\text{K}}_{{{\text{H}}_{2} {\text{S}}_{{1 + {\text{x}}}} }}\) is the equilibrium constant of reaction (mol/L) in Eq. 1; \(\left[ {{\text{S}}_{{\text{x}}} } \right]\) is the elemental sulfur solubility in sulfide-containing natural gas (mol/L); \(\left[ {{\text{H}}_{2} {\text{S}}_{{1 + {\text{x}}}} } \right]\) is the content of hydrogen polysulfide in the gas (mol/L); and \([{\text{H}}_{2} {\text{S}}_{{\text{g}}} ]\) is the content of hydrogen sulfide in the gas ( mol/L).

Based on previous studies (Chrastil 1982; Roberts 1997), the temperature dependence of the equilibrium constant \({\text{K}}_{{{\text{H}}_{2} {\text{S}}_{{1 + {\text{x}}}} }}\) (Jiang et al. 2012) is expressed by Eq. 3:

$$- 4.5711)$$
(3)

where \({\mathrm{T}}_{\mathrm{K}}\) is the absolute temperature (K).

The conversion reaction between hydrogen sulfide in the gas and hydrogen sulfide in the produced water is given by Eq. 4:

$${\text{H}}_{2} {\text{S}}_{{\text{g}}} .$$
(4)

Additionally, the equilibrium constant of the reaction is given by Eq. 5:

$${\text{K}}_{{{\text{H}}_{2} {\text{S}}}} = \frac{{[{\text{H}}_{2} {\text{S}}_{{{\text{aq}}}} ]}}{{[{\text{H}}_{2} {\text{S}}_{{\text{g}}} ]}}$$
(5)

where \([{\text{H}}_{2} {\text{S}}_{{{\text{aq}}}} ]\) is the concentration of hydrogen sulfide dissolved in the produced water (mol/L). The equilibrium constant \({\text{K}}_{{{\text{H}}_{2} {\text{S}}}}\) is temperature-dependent (Suleimenov and Krupp 1994) and is given by,

$${\text{K}}_{{{\text{H}}_{2} {\text{S}}}} = 10^{{634.27 + 0.2709{\text{T}}_{{\text{K}}} - 1.11132 \times 10^{ - 4} {\text{T}}_{{\text{K}}}^{2} - 16719/{\text{T}}_{{\text{K}}} - 261.9{\text{logT}}_{{\text{K}}}^{{}} }} .$$
(6)

where \({\text{T}}_{K}\) is expressed in Kelvin.

Combining Eqs. 2 and 5, Eq. 7 is obtained,

$$\left[ {{\text{S}}_{{\text{x}}} } \right] = \frac{{{\text{K}}_{{{\text{H}}_{2} {\text{S}}_{{1 + {\text{x}}}} }} \left[ {{\text{H}}_{2} {\text{S}}_{{1 + {\text{x}}}} } \right]{\text{K}}_{{{\text{H}}_{2} {\text{S}}}} }}{{[{\text{H}}_{2} {\text{S}}_{{{\text{aq}}}} ]}}.$$
(7)

In the flow process of sulfide-containing gas, the elemental sulfur solubility in the gas, \(\left[ {{\text{S}}_{{\text{x}}} } \right]\), will decrease with decreasing temperature and pressure. Consequently, the undissolved elemental sulfur in the gas precipitates and gets deposited.

Ferrous polysulfide scale formation model

When hydrogen sulfide is dissolved in a thin liquid film, it decomposes according to Eq. 8,

$${\text{H}}_{2} {\text{S}}_{{{\text{aq}}}} \rightleftharpoons {\text{H}}^{ + } + {\text{HS}}_{{{\text{aq}}}}^{ - } .$$
(8)

The equilibrium constant \({\text{K}}_{{{\text{a}},1}}\) (mol/L) is expressed as,

$${\text{K}}_{{{\text{a}},1}} = \frac{{\left[ {{\text{H}}^{ + } } \right]\left[ {{\text{HS}}_{{{\text{aq}}}}^{ - } } \right]}}{{\left[ {{\text{H}}_{2} {\text{S}}_{{{\text{aq}}}} } \right]}}$$
(9)

where the temperature-dependent equilibrium constant \({\text{K}}_{{{\text{a}},1}}\) is given by (Suleimenov and Steward. 1997) as:

$${\text{K}}_{{{\text{a}},1}} = 10^{{\left[ {782.43945 + 0.361261{\text{T}}_{{\text{K}}} - 1.6722 \times 10^{ - 4} {\text{T}}_{{\text{K}}}^{2} - \left( {\frac{20565.7315}{{{\text{T}}_{{\text{K}}} }}} \right) - \left( {142.741722\ln {\text{T}}_{{\text{K}}} } \right)} \right]}} .$$
(10)

With an increase in pH, more sulfide ions are produced. When iron corrodes in a thin liquid film resulting from the precipitation of the produced water carried by sulfide-containing natural gas, ferrous ions are generated. Once the concentration of ferrous ions exceeds the required concentration for scale formation, ferrous polysulfide precipitates in the thin liquid film according to Eqs. 11 and 12. Conversely, ferrous polysulfide also dissolves in a hydrogen-ion-containing environment,

$${\text{Fe}}_{{{\text{aq}}}}^{2 + } + H_{2} S_{aq} + S_{0} \to {\text{FeS}}_{2} + 2{\text{H}}_{{{\text{aq}}}}^{ + } .$$
(11)
$$3{\text{Fe}}_{{{\text{aq}}}}^{2 + } + 3HS_{aq}^{ - } + S_{0} \to Fe_{3} {\text{S}}_{4} + 3{\text{H}}_{{{\text{aq}}}}^{ + }$$
(12)

At constant temperature and pH, ferrous polysulfide is precipitated when the activity product of ferrous ions and sulfide ions, \(\frac{{\left[ {{\text{Fe}}_{{{\text{aq}}}}^{2 + } } \right]\left[ {H_{2} S_{aq} } \right]}}{{\left[ {{\text{H}}_{{{\text{aq}}}}^{ + } } \right]^{2} }}\) and \(\frac{{\left[ {{\text{Fe}}_{{{\text{aq}}}}^{2 + } } \right]^{3} \left[ {HS_{aq}^{ - } } \right]^{3} }}{{\left[ {{\text{H}}_{{{\text{aq}}}}^{ + } } \right]^{3} }}\), is higher than the solubility product constants of \({\text{K}}_{{{\text{sp}},{\text{ FeS}}_{2} }} \left( {10^{ - 16.4} } \right)\) and \({\text{K}}_{{{\text{sp}},{\text{ Fe}}_{3} {\text{S}}_{4} }} \left( {10^{ - 12.84} } \right)\) at 25℃ (Richard and Luther 2007), irrespectively.

Ferrous sulfate scale formation model

Ferrous ions produced during iron corrosion combine with sulfate ions to produce ferrous sulfate,

$${\text{Fe}}^{2 + } + {\text{SO}}_{4}^{2 - } \to {\text{FeSO}}_{4} .$$
(13)

When the reaction is in equilibrium, the relationship between the solubility product constant and the product of the ion activity \({[{\mathrm{Fe}}^{2+}]}_{\mathrm{eq}}\) and \({\left[{\mathrm{SO}}_{4}^{2-}\right]}_{\mathrm{eq}}\) is given by Eq. 14:

$${\text{K}}_{{{\text{sp}},{\text{FeSO}}_{4} }} = \left[ {{\text{Fe}}^{2 + } } \right]\left[ {{\text{SO}}_{4}^{2 - } } \right]$$
(14)

However, the solubility product constant \({\text{K}}_{{{\text{sp}},{\text{FeSO}}_{4} { }}}\) is temperature-dependent (Reardon et al. 1987) and is given by Eq. 15,

$${\text{logK}}_{{{\text{sp}},{\text{ FeSO}}_{4} }} = 1.447 - 0.004153{\text{T}} - \frac{214949}{{{\text{T}}_{{\text{K}}}^{2} }}.$$
(15)

When the activities of ferrous ions and sulfate ions in actual thin films satisfy the condition \(\left[ {{\text{Fe}}^{2 + } } \right]\left[ {{\text{SO}}_{4}^{2 - } } \right] > {\text{K}}_{{{\text{sp}},{\text{ FeSO}}_{4} }}\), ferrous sulfate scale is precipitated.

Verification of deposit formation models

To verify the deposit formation models of elemental sulfur, ferrous polysulfide, and ferrous sulfate, the data of the chemical composition of precipitating water and sulfide-containing natural gas in the breathing pipe of the produced water tank of the TB101-X1 well were chosen as examples. The gas in the breathing pipe of the TB101-X1 well-produced water tanks was composed of methane (98.41%), ethane (0.24%), hydrogen sulfide (0.35%), and carbon dioxide (0.439%). The precipitating water exhibited a pH of 8.31, high degree of mineralization (52.66 g/ L), and primarily contained chloride, sodium, and sulfate ions (Table 1). The annual atmospheric temperature range of well TB101-X1 was large (− 4.5–41.2 °C); additionally, the temperature variation of the breathing pipe was large. For example, the measured temperature of the breathing pipe in May 2020 was in the range 22.0–30.3 °C. Here, the activity coefficients were calculated by Pitzer theory (Lewis et al. 1961) for Fe2+, H2S1+x, H2Saq, SO42− and H+ activity in calculating the activity product constant. PHREEQC or Visual Minteq did not consider in this paper because above software has big deviation of saturation index (SI) due to different activity coefficient model and lower KSP (Liu 2017). The models in this paper are based on the Pitzer model; however, the other two software were based on SIT or Debye–Hückel expression or Debye–Hückel-modified expression.

Table 1 Chemical composition of the precipitating water in the breathing pipe of well TB101-X1 (mg/L)

Prediction of elemental sulfur formation

When \([{\mathrm{H}}_{2}{\mathrm{S}}_{1+\mathrm{x}}]\) = 0.058 mmol/L and \({[\mathrm{H}}_{2}{\mathrm{S}}_{\mathrm{aq}}]\) = 21.7 mmol/L, the change in solubility of elemental sulfur with temperature in sulfide-containing natural gas (Fig. 4) is established according to sulfur deposit model (Eq. 7). As shown in Fig. 4, the solubility of elemental sulfur increased linearly with the temperature of the gas. As the gas temperature of the breathing pipe decreased, the solubility of elemental sulfur decreased and supersaturated elemental sulfur was deposited from the gas. The higher the temperature drop in the gas flow process in the breathing pipe, the more the release of sulfur.

Fig. 4
figure 4

Change in solubility of sulfur with temperature

Prediction of ferrous polysulfide deposit formation

When \(\left[{\mathrm{Fe}}_{\mathrm{aq}}^{2+}\right]\)= 3.559 mmol/L, \(\left[{\mathrm{H}}_{2}{\mathrm{S}}_{\mathrm{aq}}\right]\)=0.739 mg/L and pH = 8.31 during corrosion of iron, the change in \(\frac{\left[{\mathrm{Fe}}_{\mathrm{aq}}^{2+}\right][{H}_{2}{S}_{aq}]}{{[{\mathrm{H}}_{\mathrm{aq}}^{+}]}^{2}}\) and \(\frac{{\left[{\mathrm{Fe}}_{\mathrm{aq}}^{2+}\right]}^{3}{\left[{HS}_{aq}^{-}\right]}^{3}}{{[{\mathrm{H}}_{\mathrm{aq}}^{+}]}^{3}}\) with temperature can be obtained by using Eqs. 11 and 12 (Fig. 5). It can be seen from Fig. 5 that \(\frac{\left[{\mathrm{Fe}}_{\mathrm{aq}}^{2+}\right][{H}_{2}{S}_{aq}]}{{[{\mathrm{H}}_{\mathrm{aq}}^{+}]}^{2}}\) and \(\frac{{\left[{\mathrm{Fe}}_{\mathrm{aq}}^{2+}\right]}^{3}{\left[{HS}_{aq}^{-}\right]}^{3}}{{[{\mathrm{H}}_{\mathrm{aq}}^{+}]}^{3}}\) are larger than \({\mathrm{K}}_{\mathrm{sp}, {\mathrm{FeS}}_{2}}\) and \({\mathrm{K}}_{\mathrm{sp}, {\mathrm{Fe}}_{3}{\mathrm{S}}_{4}}\) at 25℃, which indicates that the scaling occurs. And scaling probability of ferrous polysulfide increases with a decrease in temperature. However, the scaling probability of the breathing pipe is obvious within the range of 0–40 °C.

Fig. 5
figure 5

Change in activity product and solubility product constants of ferrous polysulfide with temperature

Prediction of ferrous sulfate scale formation

Based on the ferrous sulfate formation model (Eq. 15), the evolution probability of ferrous sulfate at different temperatures (Fig. 6) was determined. As shown in Fig. 6, the solubility product constant of scale formation \({\mathrm{K}}_{\mathrm{sp},\mathrm{ FeS}{\mathrm{O}}_{4}}\) increased with increasing temperature. When the \(\left[{\mathrm{Fe}}^{2+}\right]\) activity in condensed water was lower than 34.82 mmol/L, ferrous sulfate had no scaling tendency in the precipitating water with 81.05 mmol/L \(\left[{\mathrm{SO}}_{4}^{2-}\right]\). In contrast, when the \(\left[{\mathrm{Fe}}^{2+}\right]\) ion concentration was higher than 34.82 mmol/L, ferrous sulfate had a scaling probability of 81.05 mmol/L \(\left[{\mathrm{SO}}_{4}^{2-}\right]\). Under the thin electrolyte film formed on the inner surface of pipe, iron ion continually produced in the process of hydrogen sulfide corrosion. The concentration of iron ion and sulfate increased in the film due to the evaporation of the water in the film with big change of temperature. For example, if the precipitating film contained 5600 mg/L \(\left[{\mathrm{Fe}}^{2+}\right]\) and 7781 mg/L \(\left[{\mathrm{SO}}_{4}^{2-}\right]\), then \(\left[{\mathrm{Fe}}^{2+}\right]\left[{\mathrm{SO}}_{4}^{2-}\right]\) = 0.0081 (mol/L)2 (shown as red dotted line in Fig. 6). This satisfies the condition \(\left[{\mathrm{Fe}}^{2+}\right]\left[{\mathrm{SO}}_{4}^{2-}\right]>{\mathrm{K}}_{\mathrm{sp},\mathrm{ FeS}{\mathrm{O}}_{4}}\) when the temperature is within the range of 0–35 °C; accordingly, ferrous sulfate was deposited. However, it did not satisfy the condition \(\left[{\mathrm{Fe}}^{2+}\right]\left[{\mathrm{SO}}_{4}^{2-}\right]>{\mathrm{K}}_{\mathrm{sp},\mathrm{ FeS}{\mathrm{O}}_{4}}\) within the range of 36–40 °C; accordingly, ferrous sulfate was not deposited.

Fig. 6
figure 6

Change in solubility product constant of ferrous sulfate with temperature

According to the above deposit model prediction and validation (Fig. 3), the deposits in the breathing pipe of the produced water tank of the TB101-X1 well are composed of both the corrosion scale (ferric polysulfide and ferrous sulfate) and the elemental sulfur scale. The deposit formation prediction results are consistent with the actual composition of the deposit, which validates the accuracy and reliability of the deposit formation model.

Conclusion

  1. 1)

    The deposition of the breathing pipe in a sulfide-containing natural gas station is consisted of elemental sulfur and the corrosion scale of ferric polysulfide and ferrous sulfate.

  2. 2)

    The elemental sulfur scale in sulfide-containing natural gas is deposited with the decrease of the solubility of sulfur according to the thermodynamic deposit formation model of elemental sulfur.

  3. 3)

    The corrosion scales of ferrous polysulfide and ferrous sulfate form when the ion activity product exceeds the solubility product constant of ferrous polysulfide and ferrous sulfate according to the thermodynamic deposit formation model of ferrous polysulfide and ferrous sulfate.

  4. 4)

    The larger amounts of elemental sulfur, ferrous polysulfide and ferrous sulfate are formed with larger temperature drop according to above thermodynamic deposit formation models.

  5. 5)

    The deposits of elemental sulfur, and the corrosion scale of ferrous polysulfide and ferrous sulfate were predicted to form in the breathing pipe of the produced water tank of the TB101-X1 well.