1 Introduction

Pipelines play an important role in gas and oil transportation. Reduction of failure to increase a possible safe service life is one of the major challenges for oil and gas industry to prevent economic, life and ecological damages. Pipe corrosion is one of the major causes for material loss encountered in oil/gas industry and it is primarily caused by the presence of water together with acidic gas [1,2,3]. For natural gas transmission pipeline accidents due to corrosion, 36% were caused by external corrosion and 63% were caused by the internal corrosion [4,5,6,7,8,9]. Failure cases recorded in oil and gas industry, confirmed that the internal corrosion is caused by the effect of traces of H2S, HCl, or CO2 [10]. The concentration of these parameters increases as the pipes get older. This requires the development of an in situ process to stop any further corrosion from taking place. The system provides a continuous protective properties using inhibitor/coating application after the cleaning process. Inhibitors are substances or mixtures that once added in low concentration and in aggressive environment to a protection system, it inhibit, prevent or minimise the corrosion [11]. Generally the mechanism of action of the added inhibitor is one or more of the following mechanisms:

  • The inhibitor is chemically adsorbed (chemisorption) on the surface of the metal and forms a protective thin film with inhibitor effect or by combination between inhibitor ions and metallic surface.

  • The inhibitor leads a formation of a film by oxide protection of the base metal.

  • The inhibitor reacts with a potential corrosive component present in the aqueous media and the product is a complex.

Inhibitors form a layer on the corroding metal surface modifying the surface to reduce the apparent corrosion rate. They represent the largest class of inhibitive substances. Adsorption-type inhibitors are the most common barrier layer inhibitors. In general, these organic compounds are adsorbed and form a stable bond with the metal surface. The apparent corrosion rate decreases as surface adsorption is completed.

The objective of this paper is the study of efficiency of the green inhibitor to protect the pipe network for the internal corrosion phenomena which is caused by the 1 M/l of HCl acid media.

For this reason, we study the influence of the green inhibitors, on the mechanical properties of steel grade APL 5L X 52 manufactures to SONATRACH company. This research is divided into two parts, the first part investigates the influence of the 30% of synthetic and green inhibitors in HCl media on the corrosion materiel by the tensile test, for 7 days of immersion time. The second part studies the degradation of the mechanical properties of the API 5L X52 steel by different concentrations of the 1M/l of HCl acid media by using the Charpy test. The specimen preparation is passed through the following steps: The pipe is cut into shapes of bars of 15 mm width with a chain saw to the transverse direction. The bars were adjusted by a hydraulic press machine. Machining the bars so that their sections are of dimensions 10 × 10 mm by a conventional milling machine. The bars were cut in the form of lengths of 55 mm specimens by an electric saw. Correcting curvatures of specimens. Each specimen was notched in the middle V-shaped by a manual sewing machine.

Neutralising inhibitors reduce hydrogen ions in the environment. Typical neutralising inhibitors are amines, ammonia and morpholine. Scavenging inhibitors remove corrosive ions from solutions. Some well-known scavenging inhibitors are hydrazine and sodium sulphite. Cleaning and protecting process by inhibitor is used in steel pipeline diameters from 4 to 36 inches and larger diameters are possible. The protected system using corrosion inhibitor is made by injection in steel pipelines, and works with oil, gas, water, petroleum products, food and chemical products. It has the ability to cover pits and channel corrosion and will cover all lateral and girth welds. Injection of inhibitors is made according to the device described in Fig. 1.

Fig. 1
figure 1

Injection point of the corrosion inhibitor at the well and b detail of a

When the pipeline is in service, it is necessary to pig the line to maintain efficiency and to control the corrosion. It is necessary to remove liquids in wet gas systems, remove accumulated water in product pipelines and paraffin in crude oil pipelines. Table 1 shows some reported results that highlight the difference in efficiency between synthetic corrosion inhibitors from a study conducted at production aerial facilities of crude gas in Hassi R’Mel field (Algeria).

Table 1 The experimental results of the synthetic corrosion inhibitors A and B

The results reported in the above-mentioned table are for two used two commercial inhibitors labelled A and B. The protection methodology using these synthetic inhibitors is very expensive, toxic for humans and not friendly to the environment [12]. The use of “Green” inhibitors to replace toxic synthetic inhibitors was the subject of many recent studies [13,14,15,16,17].

Recently, various “Green” inhibitor solutions for pipe protection were obtained by extraction of the inhibitive solutions from natural plants. The developed “Green” inhibitors contain many families of natural organic compounds (flavonoids, alkaloids, tannins....), readily available and renewable.

In this paper, hydrogen embrittlement which occurs by chemical reaction of hydrochloric acid on iron is evaluated by tensile and bending properties as well as Charpy energy and dynamic fracture toughness. The prevention of hydrogen embrittlement was achieved using a green inhibitor which was obtained from the Mediterranean plant (Ruta chalepensis). A significant amelioration of mechanical properties was obtained by using this green inhibitor. The inhibition action can be attributed to the formation of a thin film of the inhibitor on the metal surface. The influence of both inhibitor concentration and immersion time was carefully addressed in this study.

2 Material

This study is related to pipe steel API 5L X52. The material is delivered as tubes which are manufactured by hot rolling. The chemical composition of steel and mechanical properties are correspondingly given in Tables 2, 3 and 4.

Table 2 Chemical composition of steel API 5L X52
Table 3 Tensile properties of steel API 5L X52
Table 4 Coefficients of Ludwik’s law for steel API 5L X52

The microstructure of this steel was investigated by optical microscope after etching the surface of the specimen with 2% nital solution. Microstructure reveals bands of ferrite and perlite along the rolling direction (Fig. 2).

Fig. 2
figure 2

Microstructure of steel API 5L X52

3 Green Inhibitor from R. chalepensis

In this study, the extracts of R. chalepensis plant were used as green inhibitors against steel hydrogen embrittlement. R. chalepensis is a species of flowering plant in the citrus family known by the common name “fringed rue”. It is native to Eurasia and North Africa. It has been found elsewhere as an introduced species. It is a perennial herb growing up to 80 cm tall. The leaves are compound, each divided into several segments which are subdivided into smaller leaflets. The inflorescence is a cluster of flowers, each with four or five bright yellow petals with rolled, fringed edges. The fruit is a textured capsule which is divided into pointed lobes. In traditional medicine, the plant is used as a herbal remedy for a number of ailments, such as fever and inflammation. The aerial part of the plant was harvested in May 2015 from the Sidi-Maafa Forest (Chlef western Algeria). The dried plant material was stored in the laboratory at room temperature (298 K) and in shade before extraction.

The corrosion inhibitor was prepared at the Laboratory Industrial Chemistry department of Faculty of Technology, University of Chlef Algeria, as to maintain a constant composition throughout experiments. R. chalepensis plant leaves (Fig. 3) were soaked in deionized water (500 mL) and refluxed for 5 h. The aqueous solution was filtered and concentrated to 100 mL. This concentrated solution was used to prepare solutions of different concentrations by dilution method. To obtain the mass of plant extract, drying at 100 °C under vacuum in vaporizer was made. From the weight of the vacuum-dried liquid, plant extract was found to contain 50 mg mL−1 of plant compounds.

Fig. 3
figure 3

Photos of the plant R. chalepensis: a leaves, b flowers

4 Influence of Green Inhibitors on Tensile Properties of Steel API 5L X52 After Immersion in Hydrochloric Acid Solution

The stress–strain curves have been obtained from specimens made of API 5L X52 steel and immersed in different solutions of hydrochloric acid of the following compositions: 1.2 M/l HCl, 1 M HCl + 30% green inhibitor and 1M HCl + 30% synthetic inhibitor. The immersion time for the steel samples in these solutions was 7 days at 298 K. Table 5 shows the tensile properties (yield stress σy, ultimate tensile strength σul and elongation A%) after these different immersions. Results are the mean value of two test specimens and a reference value (non-immersed) is also included.

Table 5 Tensile properties of steel API 5L X52 after immersion in different solutions (1.2 M/l HCl, 1 M HCl + 30% green inhibitor and 1 M HCl + 30% synthetic inhibitor)

Hydrogen embrittlement for this kind of steel affected particularly the elongation at failure which was reduced by 46% after immersion in HCl. One notes that only the use of green inhibitor is able to recover the initial elongation at the failure step. The use of synthetic inhibitors induced a lower degradation of A% of 35%. Degradation of tensile properties is attributed to hydrogen content produced by chemical reaction of hydrochloric acid on iron. The green inhibitor is chemically adsorbed (chemisorption) on the surface of the metal and forms a barrier to hydrogen diffusion (Fig. 4).

Fig. 4
figure 4

Stress–strain curves of properties of steel API 5L X52 after immersion in different solutions (1.2 M/l HCl, 1 M HCl + 30% green inhibitor and 1 M HCl + 30% synthetic)

5 Influence of Green Inhibitors on Bending Properties of Steel API 5L X52 After Immersion in Hydrochloric Acid Solution

Charpy V-notched specimens were used as three-point Single Edge Bending specimens (SEB) to quantify the evolution of fracture energy and toughness as a function of green inhibitor concentration. Four corrosion green inhibitor concentrations (0, 5, 20 and 30%) with 1 M hydrochloric acid were considered in the present study. Specimens were loaded by bending (with a span of 40 mm) until a fracture of 1 mm/min cross head speed. The load–midspan deflection curves were recorded until fracture (Fig. 5). The values of fracture energy were obtained from these curves by integration.

Fig. 5
figure 5

Load–midspan displacement curves of 3 PB Charpy specimen tests after immersion in different solutions (1.2 M/l HCl, 1 M HCl + 5; 20 and 30% green inhibitor)

The curves in Fig. 5 exhibit three stages: the first stage describes a linear load which increases by until general yielding Pgy. The second stage is a non-linear load which increases until maximum load Pmax and for the last stage, the load decreases until failure. Load at general yielding Pgy does not affect by immersion in hydrochloric acid with or without green inhibitors. Maximum load Pmax and failure displacements affect by immersion in hydrochloric acid with or without green inhibitors. The results are reported in Table 6. The area under the curve load–displacement until failure is equal to failure energy Uc. Fracture toughness represents the resistance of fracture initiation by the form of energy to initiation Ui. This energy is the area under the curve load–displacement until initiation or critical load which occurs before maximum load. A conventional definition of critical load is given by (1):

Table 6 Fracture initiation energy of API 5L X52 determined by static bending after immersion in different solutions (1.2 M/l HCl, 1 M HCl + 5; 20 and 30% green inhibitor)
$${P_C}=\frac{{{P_{Max}} - {P_{GY}}}}{2}+{P_{GY}}$$
(1)

It notes that the severe degradation of the energy to fracture initiation occurs after immersion in hydrochloric acid. With the 30% of green inhibitor sample, the fracture initiation energy had practically recovered its initial value.

6 Influence of Green Inhibitor on Charpy Energy of Steel API 5L X52 After Immersion in Hydrochloric Acid Solution

6.1 Charpy Energy After Immersion in Hydrochloric Acid

Charpy V-notch made in steel API 5L X52 was immersed in hydrochloric acid solution with the following concentrations 0.25, 0.5, 0.75 and 1 M. Immersion times before tests were: 0.25, 5, 10 and 15 days. Only the specimen notch was subjected to the action of hydrochloric acid (Fig. 6) and the rest of the specimens were coated with epoxy-based anticorrosive paint. The Charpy impact test energy was measured for different hydrochloric acid concentrations for the same exposure time (0.25 day). Results are presented in Table 7 and show a decrease in the Fracture energy (J) upon increasing the HCl concentration.

Fig. 6
figure 6

Immersed coated Charpy specimen in hydrochloric acid

Table 7 Variation of the Charpy energy of the steel API 5L X52 versus concentration of hydrochloric acid HCl

The Charpy impact test energy was measured versus immersion time for the same hydrochloric acid concentration (0.25 M). Results are presented in Table 8 and show an opposite relationship between the fracture energy and the immersion time.

Table 8 Dynamic fracture toughness of steel API 5L X52 after immersion in hydrochloric acid solution with and without green inhibitors compared to the static test results

6.2 Charpy Energy After Immersion in Hydrochloric Acid Solution with Green Inhibitors

We have also studied the influence of adding a green inhibitor to the HCl acid solution (100 mL, 1 M) on the mechanical properties of immersed steel specimens in the above corrosive solution containing 5, 20 and 30% of the R. Chalepensis extract. Tests were conducted during four time durations (6 h, 5, 10 and 15 days) in the presence and absence of corrosion inhibitors.

The modification of fracture energy in the presence of inhibitors occurred in a relatively narrow band [195–180 J] and close to the reference value. Charpy energy decreased slowly with time while increased with concentration. The decrease in the Charpy energy was severe when the corrosion inhibitor was absent which confirms the beneficial effect of corrosion inhibitors on the mechanical properties. Figure 7 shows the results of the fracture energy versus the immersion time. In the absence of any added green corrosion inhibitor to the system, fracture energy decreased from 195 to 165 J after 15 days of continuous immersion in the corrosive medium.

Fig. 7
figure 7

The influence of immersion time and inhibitor concentration on Charpy energy of the steel API 5L X52 after immersion in hydrochloric acid having and free of added green inhibitor

7 Influence of Green Inhibitors on Dynamic Fracture Toughness of API 5L X52 Steel

Dynamic fracture toughness was determined from load–displacement curve obtained from instrumented Charpy impact test. A typical recorded load–displacement curve is shown in Fig. 8.

Fig. 8
figure 8

Typical recorded load displacement obtained by instrumented Charpy impact test

Critical load Pc was determined according to the definition of Eq. 1 which allows the determination of fracture initiation energy Ui. Fracture toughness Jc was assumed to be proportional to the specific energy for initiation \({U_{\text{i}}}/Bb,\) where B is the specimen thickness and b the ligament width [18].

$${J_{\text{C}}}=\frac{{\eta {U_{\text{i}}}}}{{B.b}},$$
(2)

where η is a coefficient of proportionality which has the value of 1.65 for a TPB specimen with a notch of relative depth a/W = 0.2 (a notch depth, W specimen width) and a notch radius ρ = 0.25 mm [19] (Figs. 9, 10).

Fig. 9
figure 9

Load displacement obtained by instrumented Charpy impact test after immersion in hydrochloric acid solution with and without green inhibitor

Fig. 10
figure 10

The influence of green inhibitor concentration on the dynamic fracture toughness of steel API 5L X52 after immersion in hydrochloric acid solution having and free of green inhibitors

Charpy specimens were immersed in hydrochloric acid solution having and free of green inhibitors for 7 days. The concentrations of green inhibitor in the solution were 3, 5, 10 and 30%. Results are depicted in Table 8.

Figure 11 depicts the beneficial effect of increasing the green inhibitor concentration on the static fracture toughness of steel API 5L X52 after immersion in hydrochloric acid solution containing and free of added green inhibitors.

Fig. 11
figure 11

Effect of green inhibitor concentration on fracture toughness of steel API 5L X52 after immersion in hydrochloric acid solution

8 Influence of Immersion Time in Hydrochloric Solution with Green Inhibitors on Dynamic Fracture Toughnesss of Steel API 5L X52

Charpy specimens were immersed in hydrochloric acid solution with and without green inhibitors for an immersion time vary from 3 to 10 days at a temperature of 80 °C. The concentration of the added green inhibitor was fixed to be 5%. Instrumented Charpy impact tests were performed on specimens after immersion. Load–displacement diagrams were recorded (Fig. 12). The critical load Pc, the fracture initiation energy Ui and dynamic fracture toughness Jc were extracted from these recorded diagrams according to the above-mentioned procedure. Results are presented in Table 9.

Fig. 12
figure 12

Load–displacement diagrams obtained by instrumented Charpy impact test after immersion the samples in a hydrochloric acid solution having and free of 5% added green inhibitor for 3, 7 and 10 days at 80 °C

Table 9 Influence of immersion time on dynamic fracture toughness of API 5L X52 steel after immersion in hydrochloric acid solution without and with 5% green inhibitor

Table 9 indicates clearly that the beneficial effect of the added green inhibitor on the dynamic fracture toughness of API 5L X52 steel after immersion in hydrochloric acid solution free and containing 5% of the green inhibitor. Detrimental effect of immersion in hydrochloric acid solution increased upon increasing the immersion time.

9 Hydrogen Embrittlement of Steel API 5LX52

The detrimental effect of immersing steel API5L X52 samples in hydrochloric acid is attributed to the hydrogen embrittlement. Anodic dissolution of iron is done according to chemical reaction:

$${\text{Fe }}+{\text{ 2}}{{\text{H}}^+} \to {\text{ 2}}{{\text{H}}_{{\text{ad}}}}+{\text{ F}}{{\text{e}}^{{\text{2}}+}}$$
(3)

Recombination of adsorbed hydrogen

$${\text{2}}{{\text{H}}_{{\text{ad}}}} \to {\text{ }}{{\text{H}}_{\text{2}}}\left( {{\text{gas}}} \right)$$
(4)

Absorption of Had

$${{\text{H}}_{{\text{ad}}}} \to {\text{ H }}\left( {{\text{dissolved}}} \right)$$
(5)

Hydrogen diffuses very rapidly to defect where its concentration increases locally due to the effect of the stress triaxiality [20, 21]. When the local concentration is great enough, the transition ductile to brittle fracture occurs and cleavage occurs as mentioned. Hydrogen embrittlement of API 5LX52 has been studied recently by [22,23,24,25,26]. Specimens are hydrogen charged in NS4 solution at some constant potential of polarisation, which is slightly negative than free corrosion potential for the given steels. The hydrogen-charging process is controlled by registration of the cathodic polarisation current \({I_{{\text{cath}}}}\left( \tau \right)\). The total quantity of evaluated hydrogen on metal surface can be assessed as:

$$Q_{H}^{{{\text{ev}}}}=\mathop \smallint \limits_{0}^{{{\tau _{{\text{exp}}}}}} {I_{{\text{cath}}}}\left( \tau \right)d\tau {\text{under}}{E_{{\text{cath}}}}={\text{const.}}$$
(6)

Hydrogen concentration in metal has been determined on the basis of hydrogen discharging process under anodic polarisation using hydrogen electrochemical oxidation method proposed in this work. Here, the standard three-electrode electrochemical cell has been used. According to the recommendation of work (Capelle et al. [22]), the hydrogen discharging of specimen is carried out in 0.2 M NaOH (pH 12.4) solution under anodic polarisation \({E_{{\text{anodic}}}}=+{\text{168mV}}\left( {{\text{SCE}}} \right)\) during some defined time \({\tau _{{\text{dis}}}}\). The total quantity of absorbed hydrogen by metal can be defined as:

$$Q_{H}^{{{\text{abs}}}}=\mathop \smallint \limits_{0}^{{{t_{{\text{dis}}}}}} \left[ {{I_H}\left( t \right) - {I_{{\text{ref}}}}\left( t \right)} \right].dt{\text{under}}{E_{{\text{anodic}}}}={\text{const.}},$$
(7)

where \({I_H}\left( \tau \right)\) is an anodic polarisation current for hydrogen-charged specimen and \({I_{{\text{ref}}}}\left( \tau \right)\) is anodic polarisation current for specimen without hydrogen (reference curve). The calculation of hydrogen concentration was done according to the following formula:

$${C_H}=\frac{{Q_{H}^{{{\text{abs}}}}}}{{{\text{zFv}}}},$$
(8)

where z is the number of electrons take in reaction; F is the Faraday constant; v is the effective volume of specimen: \({C_H}\left[ {{\text{mol}}/{\text{c}}{{\text{m}}^3}} \right]\);\(~Q_{H}^{{{\text{abs}}}}\left[ {A \cdot s} \right]\); \(z=1\); \(F=9.{\text{65}} \cdot {\text{1}}{{\text{0}}^4}\,{\text{C}}/{\text{mol}}\); \(v=0.{\text{256c}}{{\text{m}}^3}\).

Tensile tests were also performed and the tensile properties (yield stress σy, ultimate tensile strength σul and elongation at failure) after hydrogen embrittlement are reported in Table 10.

Table 10 Tensile properties of X52 steel in air and with hydrogen absorption

Hydrogen has a reduced influence on the stress–strain behaviour of API 5L X52 steel. Tensile tests indicate that the strain hardening exponent n and coefficient k are increasing of about 10% of their values obtained by test made with steel specimens without hydrogen absorption. In local fracture test, the initiation was detected by acoustic emission and energy to fracture initiation Ui deduced from load–displacement diagram (Fig. 13).

Fig. 13
figure 13

Scheme for determining the parameters Ui and Uf

The main observation based on the results is the existence of some critical time of exposition and as a consequence of some critical hydrogen concentration \(C_{H}^{{}}\), when the essential decreasing of fracture toughness value occurs (Fig. 14) [23]. The value of \(C_{H}^{{}}\)for steel X52 is 4.3 × 10−6 mol/cm3.

Fig. 14
figure 14

Determining of critical hydrogen concentration \(C_{H}^{{}}\) in steels API X 52 [23]

10 Role of Green Inhibitors in Prevention of Hydrogen Embrittlement of Steel

The influence of corrosion inhibitors for the protection of steel against hydrogen embrittlement has been studied since a long time as Tkachenko et al. in 1968 [11]. It has been found that a concentration of the combination of propargylamine and an ethylene oxide adduct of phenylbutynol between 0.01 and 0.5% by weight of the aqueous sulphuric acid solution is an effective hydrogen embrittlement-inhibiting concentration, with a concentration between 0.01 and 0.1% being particularly advantageous even for aqueous acid systems.

The US patents US 3337469 A [12] is based on this chemical composition. The use of green inhibitors is more recent and the study of their effects on hydrogen embrittlement has started at the beginning of this century. Green corrosion inhibitors are biodegradable and do not contain heavy metals or other toxic compounds and these are the major reasons for their choice. Several plant extracts have been recognised as potential green inhibitors for steel; see Table 11.

Table 11 A non-exhaustive list of plants used to produce green inhibitors to protect steel against hydrogen embrittlement

The performance of an organic inhibitor is related to the chemical structure and physicochemical properties of the compound like functional groups, electron density at the donor atom, p-orbital character, and the electronic structure of the molecule. The inhibition could be due to:

  1. (i)

    Adsorption of the molecules or its ions on anodic and/or cathodic sites,

  2. (ii)

    Increase in cathodic and/or anodic over voltage, and the formation of a protective barrier film. Some factors that contribute to the action of inhibitors are (i) chain length, (ii) size of the molecule,

  3. (iii)

    Bonding, aromatic/conjugate,

  4. (iv)

    Strength of bonding to the substrate,

  5. (v)

    Cross-linking ability,

  6. (vi)

    Solubility in the environment.

The role of inhibitors is to form a barrier of one or several molecular layers against acid attack. This protective action is often associated with chemical and/or physical adsorption involving a variation in the charge of the adsorbed substance and transfer of charge from one phase to the other. The plastic deformation of metals is influenced by the surface. Surface effects can be modified with the chemical environment. The principal effects are on yield stress and strain hardening which appears after appreciable strain. This effect was fist mentioned by Roscoe [24] and called now “Roscoe effect”.

11 Conclusion

Immersion of API 5L X65 in hydrochloric acid induces hydrogen embrittlement. Hydrogen embrittlement is prevented through the use corrosion inhibitors. The use of synthetic inhibitors is very expensive, toxic for humans and not friendly to the environment. Therefore, it is preferable to use green inhibitors. In order to protect Algerian pipelines, a Mediterranean plant which is based on R. chalepensis has been chosen to produce a green inhibitor.

Extracts of this plant have improved their efficiency against degradation of mechanical properties such as elongation to failure, Charpy energy, energy for fracture initiation and fracture toughness. Efficiency increases with green inhibitor concentration and time of immersion. Adsorption of green inhibitor and formation of a protective layer which prevents the formation of adsorbed hydrogen is the proposed mechanism of action.