Introduction

Corrosion is the most widespread degradation phenomenon in the oil and gas industries. It is one of the flow assurance issues that can arise anywhere along hydrocarbons paths including, but not limited to, production tubing, downhole valves, wellhead, surface facilities, pipelines, and processing plants (Kermani and Smith 1997; Popoola et al. 2013). Therefore, it is the origin of the majority of pressure equipment failure. Economically, It has been estimated that corrosion destroys a quarter of the world’s annual production in steel, which represents approximately 150 million tons per year, or 5 tons per second (Davis 2000). Tems et al. (Tems and Al-Zahrani 2006) reported that the economic costs associated with the corrosion of natural gas processing plants and oil refining plants range between 10 and 30% of the maintenance budget.

Carbon steel is widely used in petroleum and industries, basically due to its low capital expenditure cost (Hill et al. 2011; Mesquita and Marchebois 2020). The main problem of using carbon steel is its dissolution in acidic solutions (Aiad et al. 2014), in the other hand, the most common types of corrosion occurrences in these industries are general and localized corrosion (Finšgar and Jackson 2014). The other large problem in operating pipe flow lines is internal corrosion (Ghareba and Omanovic 2010; Askari et al. 2019), mainly due to stress corrosion cracking. Martinez et al. (Videm and Koren 1993) claim that the combination of corrosion and erosion is the main problem in pipe deterioration.

Several methods are reviewed in the literature to prevent the internal corrosion in oil and gas industries including the selection of appropriate methods, the application of inhibitors, and the use of internal protective coatings (Popoola et al. 2013; Papavinasam 2013; Ali et al. 2020).

Chemical prevention through the injection of inhibitors is a more cost-effective method in protecting facilities against internal corrosion (Garcia-Arriaga et al. 2010; Trabanelli 1991; Park et al. 2009; Stewart et al. 2009; Davoudi et al. 2014; Obot et al. 2020). Therefore, a range of chemicals have been reported in the literature to control this type of corrosion (Finšgar and Jackson 2014; Miksic et al. 2009; Javidi et al. 2019). However, the selection of an appropriate chemical formulation is still a big challenge due to the complexity of the corrosion sources and the diversity of the fluid compositions in a single field. Hence, the composition of the inhibitor in one well might not be effective in other wells from the same field. It is worth mentioning that the choice of an inhibitor must take into consideration: the materials to be protected, velocity and fluid flow regime, and the nature of the effluents (Finšgar and Jackson 2014; Miksic et al. 2009).

For the prevention of CO2 and H2S corrosions, which are the most prevalent attacks known in the oil and gas industries (Kermani and Morshed 2003; T. das Chagas Almeida, M.C.E. Bandeira, R.M. Moreira, O.R. Mattos 2017), the film-forming inhibitors are particularly useful. These types of inhibitors can be applied in continuous injection or batch treatment either downhole or at the wellhead (Glasgow et al. 2013), where their typical dosages are often in the range of 10 to 100 ppm. Many methods have been reported recently to optimize the dosage of film-forming inhibitors (Miksic et al. 2009; Mackenzie et al. 2010; Jing et al. 2018).

The effectiveness of a film-forming inhibitor is partly determined by the strength of its adsorption on the metal surface and forming a protective layer that prevents corrosive aqueous fluids from penetrating the metal surface (Ramachandran and Bartrip 2003; Wong and Park 2009; Askari et al. 2018).

In the case when no or little formation water is transported with hydrocarbons, a pH stabilizer can be used to protect gas pipelines against corrosion. This product helps in adjusting the pH of the medium which reduces the solubility of iron carbonate. This increases the deposition rate of iron carbonate and leads to the formation of a protective film, which consequently decreases the corrosion rate (Nyborg 2009).

This problem of corrosion manifests inside production surface facilities of raw gas in the studied Algerian field, like piercing and bursting of pipes leading to production interruptions and higher maintenance costs. This paper reviews the main points of the production system affected by corrosion and the program adopted to survey the unstable phenomenon of carbon steel corrosion. Moreover, the present work investigates the efficiency of two categories of inhibitors through the measurement of corrosion parameters and corrosion rate. Thus, two amine-based commercial inhibitors were studied. The first chemical is a film-forming /neutralizing inhibitor, which provides a neutralizing function of carbonic acid by the raising of the pH of the environment, and the covering function to isolate the aggressive water from the metal surface. The second chemical is a film-forming inhibitor, which offers only a covering function of the carbon steel structure. To our knowledge, this is the first study of this type that has been reported in the literature. This work differs from previous studies in the following points: the review of the gas production facilities damaged by internal sweet corrosion and the monitoring protocol to assess this type of corrosion, the assessment of corrosion inhibitor performance in real conditions of the gas field, and the comparison between two different chemicals to protect metals against corrosion are reported for the first time.

Generally, the origin of the corrosion in this field is complex, however, it is mainly promoted by the presence of carbon dioxide in crude gas composition. The key species that are chemically reduced in CO2 corrosion are H+, HCO3, and H2CO3, which are all present in the water phase (Dayalan et al. 1998). After corrosion has been initiated, the iron will be oxidized to iron ions and with carbonate ions may produce (CO3−−) scales of FeCO3 (Kelland 2014) according to the corrosion mechanism presented in Fig. 1.

Fig. 1
figure 1

Corrosion mechanism inside the pipe in the presence of CO2

In the studied gas field, corrosion has a negligible effect on the production tubing, wellhead, descent pipe, and the first pipe upstream of the chock, because they are made of stainless steel. The rest of the facilities are carbon steel structures, and the type of the affected corrosion is localized inside the pipes (Fig. 2), which is promoted by CO2 (Martínez et al. 2009). This phenomenon is accentuated by the mechanical effect of erosion because of the gas flow velocity which can reach 11 m/s. The following facilities are exposed to this kind of corrosion:

  • Well surface equipment: carbon steel pipes downstream of the choke are subjected to severe hydrodynamic regimes due to the geometric variation of the pipe,

  • Junctions, manifolds gas producing wells, and the different collectors,

  • Corrosion occurs mainly at the welding cord and particularly at the lower generating part of the pipes; because every two pipes are joined by welding a flange, and the low points of the collectors constitute a favourable site stagnation of aggressive aqueous fluids where the erosion phenomenon reaches its maximum.

Fig. 2
figure 2

Internal piercing of carbon steel flow line

The external coating from painting these surface production facilities and the dry climate in this region help in avoiding the formation of external corrosion.

Corrosion has many causes, and its effects are different (Popoola et al. 2013; Papavinasam 2013). Therefore, there is no method that provides all of the answers. However, a combination of several methods allows for better identification of problems and solutions. Hence, a periodic monitoring should be carried very carefully to avoid failures and thereby ensure a long life for the equipment. The control program established in this gas field regroups the non-destructive method and chemical laboratory analyses.

Visual inspection is carried out to observe possible corrosion on the metal surface (Fig. 3). Using the naked eye discloses only the major flaws such as excessive deformation (definitive loss of the original geometry of the equipment). Thus, a better and non-destructive method is required to detect defects inside the material. This can be done by using an ultrasound instrument, based on transmission and reflection of ultrasonic waves inside the piece to be tested through a sensor, in which the frequencies are higher than the frequencies audible by the human ear. For this type of test, frequencies between 100 kHz and 25 MHz are required.

Fig. 3
figure 3

Visual inspection of corroded pipe

The ultrasound sensor is placed on four points upstream and downstream of the welding cord (Fig. 4) and it emits ultrasonic waves, which propagate inside the material at various speeds depending on the environment itself and the type of waves used. At the end of the measurement, a direct value of the thickness appears on the apparatus screen. This value is then compared to a threshold called the minimum calculus thickness to assess the state of the piece to be tested.

Fig. 4
figure 4

Thickness measurement of pipeline using an ultrasound device

Beside the non-destructive technique, laboratory analyses of corrosion parameters such as pH and iron content in the water sample (produced water) are systematically conducted to assess the evolution of corrosion and to optimize the injection rates of corrosion inhibitor. However, this monitoring protocol can be adopted for any gas field.

In this work, the performance of two different commercial corrosion inhibitors is evaluated in an Algerian gas field based on field and laboratory tests and analyses. Thus, the rest of this paper is organized as follows. First, the experimental procedure is described in detail. Then, the results are reported and discussed. Finally, the main findings of the study are summarized in the last section.

Experimental procedure

The evaluation of the effectiveness of two commercial inhibitors was studied on two gas producer wells (A and B). One of the chemicals is film-forming/neutralizing and the second inhibitor is film-forming so-called CK981DZ which is purchased from Champion. The selected inhibitors are amine-based, whereas some of their physical properties are illustrated in Table 1. The presence of N–H amine functional groups in both chemicals has been recorded (Fig. 5) by infrared spectroscopy analysis using FTIR NICOLET iS50 spectrometer.

Table 1 Physical properties of the inhibitors
Fig. 5
figure 5

Infrared spectrum of the selected corrosion inhibitors

The film-forming/neutralizing inhibitor was injected in well A, meanwhile, the film-forming chemical was used in the well B. The chemical composition of the produced gas from the selected wells is presented in Table 2.

Table 2 Chemical composition of crude gas of the selected wells

Each inhibitor was injected in the first pipe (testing pipe) downstream of the choke using a dosing pump as shown in Fig. 6. The pump is powered by solar panels and calibrated to provide the optimum concentration of the inhibitor. However, the continuous treatment is carried out in two stages: The first is to make a shock treatment required for forming a layer of the inhibitor on the testing pipe surface (the period of this step reached 24 h with an injection rate of 20 g/m2/d), and the second step is to maintain the inhibitor film; the concentration of the inhibitor is reduced to a low dose in this mode of treatment in order to optimize its injection rate, and the operator must ensure the proper functioning of the pump and the continuous availability of the corrosion inhibitor.

Fig. 6
figure 6

Injection point of corrosion inhibitor at the wellhead

The procedure implemented in this study to assess the performance of corrosion inhibitors involves the laboratory analyses of the formation water and the measurement of corrosion rate before and after inhibitor injection.

During water sampling, we endeavoured to take only water and purge the associated gas. To investigate the performance of the injected inhibitor, all along the produced gas flow path, water samples were taken from four points as illustrated in Fig. 7.

Fig. 7
figure 7

Sampling points of associated water; a: first pipe downstream the chock (testing pipe), b: junction inlet, c: collector departure, d: processing plant inlet

The measurement of water pH is the key factor to optimize and adjust the injection rates; we set as a target, a pH value between 5.9 and 6.2 for better medium neutralization to avoid carbonate scale deposition. The iron content was also determined by titration based on the oxidation of ferrous iron to ferric iron in solution, which gives the mass concentration of iron in the solution. In our case, ethylene diamine tetra-acetic acid (EDTA) was used to determine iron content: 0.5 ml of concentrated HNO3 was added to 50 ml of water sample and shaken very well. The mixture was heated to boiling then cooled. In this stage, five drops of sulphosalicylic acid (1 wt%) was injected into the resulting mixture. The pH of this solution was adjusted by NaOH (2 N) to stabilize the iron complex (pH between 2.22 and 2.26). After this, the solution was titrated with EDTA (0.004 g/ml) to turn the colour from purple to light yellow and to calculate in the end the iron content using Eq. (1):

$$ {\text{Iron content }}\left( {{\text{ppm}}} \right) \, = {\text{ EDTA volume }} \times { 12} $$
(1)

The measurement of corrosion rate before and after inhibitor injection provides us a general idea of inhibitor effectiveness. This measurement is carried out using an electric instrument placed into the pipe, where its low part is made of carbon steel and dissolves more quickly following the corrosive medium, and the value of corrosion rate can be directly read on the apparatus screen; then, this value is used to calculate the inhibitor efficiency "η" by applying the following equation:

$$ \eta = \frac{V\;cor\;b - V\;cor\;a \times 100}{{V\;cor\;b}} $$
(2)

where Vcor b and Vcor a are the corrosion rate measured before and after inhibitor injection, respectively.

Results and discussions

The results of pH analysis in four points before and after film-forming/neutralizing inhibitor injection into the first pipe downstream the shock of the well (Fig. 8) show an increase in the pH value in the testing pipe from 5.96 to 6.49 after inhibitor injection. Then, this value decreased because of a problem in the injection pump causing a lower injection rate. The evolution of pH in the junction inlet increased after the injection from 5.42 to 6.30. The same observation was noticed for the pH of the medium after inhibitor injection in the collector departure and processing plant inlet from 5.26 to 6.45 and from 5.66 to 6.48, respectively. This increase in pH value confirms the neutralizing action of film-forming/neutralized chemical.

Fig. 8
figure 8

pH evolution in four points (a, b, c, and d) before and after film-forming/neutralizing chemical injection

According to Fig. 9, a net decrease in iron content is observed in four points after film-forming/neutralizing inhibitor injection, which means that the film formed on the pipe by this inhibitor acts as a barrier that separates the metal surface from the corrosive medium.

Fig. 9
figure 9

Evolution of iron content in four points (a, b, c, and d) before and after film-forming/neutralizing chemical injection

After the injection of film-forming inhibitor into the first pipe downstream the shock of well 2, there is no significant change in pH of the medium (Fig. 10), where its value is relatively constant with an average of 4.8 to 5.5. Nevertheless, a net reduction in the iron content is observed in the presence of the inhibitor in all points:

Fig. 10
figure 10

Iron content and pH evolutions in four points (a, b, c, and d) before and after film-forming chemical injection

from 250 to 35 ppm in the testing pipe, from 210 to 40 ppm in the junction inlet, from 180 to 80 ppm in the collector departure, and from 180 to 60 ppm in the gas processing plant inlet. This means that the injection of this inhibitor influences only the iron content by forming a protective film on the metal surface against the carbonic acid.

From the corrosion rate measurements without and with inhibitor injection, it was possible to calculate the efficiency of each inhibitor:

$$ - {\text{Film}} - {\text{forming}}/{\text{neutralizingchemical}}\eta = \frac{{\left( {400 - 60} \right) \times 100}}{400} = 85\% $$
$$ - {\text{Film}} - {\text{formingchemical}}:\eta = \frac{{{(1200 } - {10)} \times {100}}}{{{1200}}} = { 99}.{17}\% $$

The results of corrosion rate measurement before and after inhibitor injection show that both inhibitors reduced the corrosion rate. Moreover, the film-forming chemical provided the best protection of the pipeline against corrosion. The unknown composition (the chemical structures) of these commercial inhibitors makes the prediction of the inhibition mechanism more difficult.

In order to optimize the injection rate of corrosion inhibitor, both inhibitors were injected at different rates and the content of iron was measured for each injection rate (Fig. 11). However, the evolution of iron content as a function of the inhibitor injection rate shows that the optimum injection rate for a minimum iron content is about 1.02 l/million sm3 for film-forming/neutralizing inhibitor (Fig. 11a), and 0.5 l/ million sm3 for film-forming inhibitor (Fig. 11b).

Fig. 11
figure 11

The evolution of the iron content as a function of the inhibitor injection; a film-forming/neutralizing inhibitor, b film-forming inhibitor

It is worth noting that the selection of a good inhibitor is not limited by the efficiency of the chemical in protecting carbon steel object, but it covers also its stability and compatibility with the environment (Rahuma 2014; Keewan et al. 2018). Otherwise, it can promote other issues such as the formation of foam, emulsion, and deposits. In this work, the film-forming/neutralizing inhibitor provides a good performance against corrosion. Nevertheless, its injection caused the formation of deposits at the processing plants. In contrast, the film-forming chemical shows great protection with good stabilization (Table 3). It is important to note that it was impossible to detect at which concentration (so-called critical point) the film-forming/neutralizing inhibitor had started the formation of deposits in the processing plant.

Table 3 Results of corrosion inhibitors field test

Summary and conclusions

The following conclusions can be drawn from this study:

  • Corrosion of raw gas production surface facilities in our studied Algerian gas field occurs inside the carbon steel structures by the chemical attack of H2CO3, which causes perforations leading to leaks of effluent, and consequently to disturbances in the production of raw gas in this field.

  • Detection of the corrosion problem in this field is done through the application of specific inspection techniques represented essentially in the chemical laboratory analyses and non-destructive test by piping thicknesses measurement using an ultrasound apparatus.

  • The impact of corrosion inhibitors was analyzed in this study by the measurement of corrosion rate in the field and the chemical examination of pH and iron content of the associated water in laboratory before and after the injection of a film-forming and film-forming/neutralizing commercial chemicals. However, the results of this study show that both amine-based inhibitors increased the resistance of the carbon steel structure against corrosion.

  • Regrouping more than one function; film-forming and neutralizing actions, in a chemical may increase its capacity to protect carbon steel in the presence of the formation water. Nevertheless, this hypothesis is not always true according to the obtained results. However, the film-forming inhibitor (CK981DZ) provides the best protection of carbon steels comparing to the film-forming/neutralizing chemical.

  • The stability and compatibility of corrosion inhibitor with the produced fluids and the other injected chemicals were taken into consideration during the choice of inhibitors. Consequently, the formation of deposit was observed at the processing plant after the injection of the film-forming/neutralizing inhibitor. This outcome reduces the chance of selecting this inhibitor, despite its good performance to protect carbon steel structures.