Introduction

The presence of corrosive gases, such as oxygen, carbon dioxide, and hydrogen sulfide, or salts in water-based drilling mud causes several corrosion problems during the drilling process [15].

Several compounds were investigated as corrosion inhibitors including ionic and nonionic surfactants in acidic media. Carbon steel is the common metal used in industrial fabrication. Several studies focused on surfactants as corrosion inhibitors for carbon steel. Nonionic surfactants are characterized by polyethylene or polypropylene glycol head groups. The uncharged head groups of nonionic surfactants facilitate their applications as corrosion inhibitors in the oil field owing to the unstable emulsion formed during oil processing and production, and their high efficiency in protection of carbon steel dissolution in saline media. In previous works, ethoxylated surfactants were used as corrosion inhibitors to prevent the dissolution of carbon steel in acidic solutions. The inhibition efficiency increased with an increase of ethylene oxide or propylene oxide units [612]. In the present study, we prepared and investigated four nonionic surfactants based on vanillin as carbon steel corrosion inhibitor in water-based drilling mud. The evaluations were performed by using three different techniques: weight loss, electrochemical polarization, and electrochemical impedance. The corrosion inhibition efficiency of the tested compounds was correlated with their chemical structures and surface activities.

Materials and Methods

Chemicals Inhibitors

The chemical structures of the studied inhibitors are shown in Scheme 1. The synthesis of these inhibitors was described previously [13].

Scheme 1
scheme 1

Chemical structures of the inhibitors

Measurements

Surface Tension

The surface activity of the investigated nonionic surfactants was determined from surface tension measurements. The surface tension values of surfactant solutions were measured at concentration range of 1 × 10−2 to 5 × 10−6 M/L using a Du Noüy tensiometer with a platinum ring at 25, 40, and 55 °C. The solutions were poured into a clean Teflon cup and then left for 2 h to allow stabilization and complete adsorption at the solution surface. The surface tension values were measured a minimum of three times and the recorded values were taken as the average of these. The critical micelle concentration (CMC) and surface parameters were determined from surface tension profiles [13, 14].

Weight Loss Method

Solution

  1. 1.

    The drilling muds were prepared using salt water (35,000 g/L of NaCl) and bentonite clay 6.42 % [15].

  2. 2.

    The samples were mixed for 20 min.

  3. 3.

    VE15, VE20, VE40, and VE60 were added to local bentonite mud batches in a ratio of 0.05, 0.10, 0.15, 0.20, 0.25, and 0.5 %.

  4. 4.

    Each sample was stirred for 15 min before corrosion measurements.

Procedure

Tests were performed on carbon steel for the following composition (wt %): 0.11 % C, 0.45 % Mn, 0.04 % P, 0.05 % S, 0.25 % Si, and the reminder is Fe.

Weight loss measurements were performed (in triplicate) on rectangular samples of carbon steel with dimensions of 7 × 2.0 × 0.5 cm in water-based drilling mud containing salt (3.5 % NaCl solution) with and without addition of different concentrations of VE15, VE20, VE40, and VE60 (0.1, 0.15, 0.20, 0.25, and 0.50 %). Accurately weighed samples were placed in the water-based drilling mud for 3 days at 298 K. Corrosion tests were performed using a specially designed cell. The cell consists of a container with a cap and a motor for continuously mixing to simulate circulation in the rotary drilling process. The motor rotates at a speed of 100–600 rpm. The corrosion rate (C r), surface coverage (θ), and inhibition efficiency (η %) were determined using Eqs. (13) [16, 17]:

$$ C_{\text{r}} = \frac{{w_{\text{o}} - w_{\text{i}} }}{At} $$
(1)
$$ \theta = \frac{{w_{\text{o}} - w_{\text{i}} }}{{w_{\text{o}} }} $$
(2)
$$ \eta_{w}\, \% = \frac{{w_{\text{o}} - w_{\text{i}} }}{{w_{\text{o}} }} \times 100 $$
(3)

where w i and w o are the weight loss values in the presence and absence of inhibitor, respectively. A is the total area of the specimen and t is the immersion time.

Electrochemical Polarization

Electrochemical polarization experiments were carried out using a VoltaLab 40 PGZ301 potentiostat (France). A conventional cylindrical glass cell of 250 mL with three different electrodes was involved in the test. The reference electrodes consist of a platinum sheet of 2 cm2 area and a saturated calomel electrode (SCE). A carbon steel sample with area 0.8 cm2 was used as the working electrode. We obtained the electrochemical polarization curves via changing the potential from −1,000 to −200 mV versus the open circuit potential (OCP) with a scan rate of 3 mV s−1. The test solution was water-based mud containing 3.5 % NaCl at a temperature of 298 K.

The inhibition efficiency (η %) was calculated using Eq. (4) as follows [18, 19]:

$$ \eta_{\text{p}} \quad \% = \frac{{i_{\text{corr}} ({\text{uninh}}) - i_{\text{corr}} ({\text{inh}})}}{{i_{\text{corr}} ( {\text{uninh}})}} \times 100 $$
(4)

i corr(uninh) and i corr(inh) are the corrosion current density values without and with inhibitors, respectively.

Electrochemical Impedance Spectroscopy (EIS)

Electrochemical impedance measurements were carried out using a VoltaLab 40 PGZ301 potentiostat (France). The measurements were performed in the frequency range of 100 kHz–50 mHz at 298 K. The difference between impedance values at lower and higher frequencies was used to calculate the charge transfer resistance (R ct) as suggested by Hsu and Mansfeld [20]. The double layer capacitance (C dl) was calculated using Eq. (5) [21]:

$$ C_{\text{dl}} = \, 1/(2\pi R_{\text{ct}} f( - Z^{\prime \prime }_{\text{img}} )) $$
(5)

where f (−Zimg) is the frequency at maximum imaginary component of the impedance and R ct is the charge transfer resistance. The inhibition efficiency (η %) of the nonionic surfactant was calculated on the basis of R ct values using Eq. (6) [21]:

$$ \eta_{\text{I}}\, \% \, = \, (1 - \, (R_{\text{ct}}^{\text{o}} R_{\text{ct}} ) ) { } \times \, 100 $$
(6)

\( R_{\text{ct}}^{\text{o}} \) and R ct are charge transfer resistance values with and without inhibitors, respectively.

Results and Discussion

Weight Loss Method

The corrosion rates of carbon steel specimens in the presence and absence of VE15, VE20, VE40, and VE60 were investigated in water-based drilling mud. The corrosion rates and inhibition efficiencies of the inhibitors are listed in Table 1 (more tables are presented in the electronic supplementary material). The obtained data indicated that the presence of the inhibitors in water-based drilling mud inhibited the corrosion of carbon steel. The inhibition efficiency depends on the extent of the coverage of the carbon steel surface by the inhibitors [21] and increased with increasing inhibitor concentration (Fig. 1).

Table 1 Inhibition efficiency of carbon steel in water-based drilling mud at different concentrations of VE15, VE20, VE40, and VE60 at 298 K using different methods
Fig. 1
figure 1

Effect of inhibitor dose on carbon steel inhibition efficiency in water-based mud at 298 °K

It is obvious from Table 1 (in the electronic supplementary material) that the corrosion rate is low in inhibited solutions relative to uninhibited ones. This behavior can be explained by the fact that the amount of dissolved oxygen decreased upon by increasing the salt concentration up to 3.5 %. One possible mechanism is that the anodic dissolution continually increases with increasing chloride ion concentration. That leads to high conductivity of the aqueous environments which increase the weight loss values (dissolution) of carbon steel [22].

The inhibition efficiencies of the tested inhibitors are arranged as follows: VE60 > VE40 > VE20 > VE15 at 298 K. Generally, the alkyl hydrophobic and ethoxylated hydrophilic chains of the different inhibitors adsorb on the carbon steel surface and create a steric barrier which can inhibit the metal dissolution. Also, the increase of ethoxylated hydrophilic chain from 15 to 60 ethylene oxide units increases the adsorption of inhibitor molecules on the carbon steel surface. As a result, the inhibition efficiency decreases gradually in the order of VE60 > VE40 > VE20 > VE15 [23, 24].

Electrochemical Polarization

Figure 2 (more figures are presented in the electronic supplementary material) shows typical potentiodynamic polarization curves for carbon steel in water-based mud solution at 298 K in the presence of VE15, VE20, VE40, and VE60 inhibitors. Electrochemical parameters including corrosion potentials (E corr), cathodic and anodic Tafel slopes (b c and b a), and corrosion current densities (i corr) obtained by extrapolation of Tafel lines as well as inhibitor efficiencies (η p %) are given in Table 1 (and Table 2 in the electronic supplementary material).The results revealed that the addition of VE15, VE20, VE40, and VE60 inhibitors afforded similar trends in polarization. The cathodic and anodic polarization curves are parallel to the blank curve. This suggests that the addition of the inhibitors does not modify the kinetics of the electrochemical reactions occurring at the metal surface. The presence of inhibitors decreases the corrosion current density dramatically compared to the blank solution. The corrosion potential (E corr) shifted slightly to the negative (cathodic) and positive (anodic) directions with increasing inhibitor concentration. Therefore, the inhibitors could be classified as mixed-type inhibitors [25, 26], and the parallel Tafel lines suggest that the inhibition mechanism occurs by the adsorption of the inhibitors on the metal surface [27].

Fig. 2
figure 2

Polarization profile of carbon steel in the presence of VE15 inhibitor in water-based mud containing 3.5 % NaCl at 298 °K

On the other hand salt concentration in the medium has a significant effect on the polarization behavior of carbon steel corrosion, as reported elsewhere [24, 28]. For the cathodic polarization curves, cathodic current density increases with increasing salt concentration, which results in an increase in the corrosion rate of carbon steel. This result is in good agreement with the obtained weight loss data [29].

Electrochemical Impedance Spectroscopy (EIS)

Nyquist diagrams of carbon steel in uninhibited and inhibited water-based mud solutions of different inhibitors are shown in Fig. 3 (more figures are presented in the electronic supplementary material). As shown in Fig. 3, a depressed capacitive loop is obtained in high and medium frequency ranges. The total impedance can be represented in terms of the equivalent electrical circuit (EEC). The compounds showed open semicircles with a linear trend toward lower frequencies. This can be attributed primarily to the charge transfer and dissemination of either corrosion products into the solution or corrosive species into the metal surface [3034].

Fig. 3
figure 3

Nyquist plots of the corrosion of carbon steel in the presence of VE15 inhibitor in water-based mud containing 3.5 % NaCl at 298 °K

Also, it can be seen that the impedance response of carbon steel in water-based solution showed significant changes by adding inhibitors (at 0.05, 0.1, 0.15, 20, 25, and 0.5 %). The impedance spectra show a single semicircular capacitive loop, while the diameters of that semicircle increase with inhibitor concentrations [35, 36]. The impedance parameters are given in Table 3 (in the electronic supplementary material).

Table 1 shows that the inhibition efficiency and R ct of the investigated compounds was increased by increasing the inhibitor concentrations, which suggests that the studied inhibitors can inhibit carbon steel dissolution in salt solution effectively at 298 K.

The replacement of water molecules and other ions on the surface by adsorption of the surfactant inhibitors molecules at the metal–solution interface leads to the formation of a protective thin film, which decreases the dissolution reaction and increases the inhibition efficiency [37]. The fitting of impedance data can be performed by using the EEC in Fig. 4 (in the electronic supplementary material).

The EEC could be proposed to model the electrolyte–steel interface. The EEC comprises one constant phase element, R s refers to the solution resistance, and R ct is the charge transfer resistance. The impedance, Z CPE, for a circuit including a CPE was calculated from Eq. (7) [38, 39]:

$$ Z_{\text{CPE}} = 1/ \, Y_{\text{o}} (J\omega )^{n} $$
(7)

where Y o is a proportionality factor, J 2 = −1, x = 2πf, and n is the phase shift. For n = 0, Z CPE represents a resistance with R = Y −1o ; for n = 1, a capacitance with C = Y o; for n = 0.5, a Warburg impedance with W = Y o; and for n = −1, an inductive behavior with L = Y −1o . The coefficient n can therefore characterize different physical behavior like surface inhomogeneity resulting from surface roughness, impurities, inhibitor adsorption, and porous layer formation.

Bode Plots

Bode plots can give more details for more complicated system. The Bode plots of the investigated inhibitors (VE15 as representative sample) are shown in Fig. 4. The low frequency impedance modulus Z mod is one of the parameters which can be used to compare corrosion resistance of different compounds. A larger Z mod demonstrates a better protection process [40].

Fig. 4
figure 4

Bode plots for carbon steel in 1.0 M HCl in the absence and presence of different concentrations of the inhibitor (VE15) at 25 °C: 1 1 M HCl, 2 0.05 %, 3 0.10 %, 4 0.15 %, 5 0.20 %, 6 0.25 %, and 7 0.50 %

Figure 4 shows that Z mod increases with the concentration of the tested inhibitors. This behavior can be explained as follows: the high frequency region (105–104 Hz) of the impedance spectra reflects the character of an outer layer, the middle frequency region (104–102 Hz) displays the character of an inner layer, while the low frequency region (less than 102 Hz) reflects the properties of the electrical double layer details [41]. The high frequency behavior results from the porous nature of the thick outer layer and the middle frequency region may be due to the penetration of aggressive chloride ions through a defect in the inner barrier layer of the investigated inhibitors.

As shown in Fig. 4, the Bode plots imply the existence of an EEC that contains a single constant phase element at the metal–solution interface [42].

Surface Activity

The surface tension profile of the tested nonionic surfactant at 25, 40, and 55 °C is shown in Fig. 5 (in the electronic supplementary material). It is clear that the surface tension vs. −log C relationship is characterized by two distinguishable regions, one at low concentration and another region at high concentration.

The CMC values were determined from Fig. 5 (in the electronic supplementary material) and are listed in Table 2. It is clear that an increase in the number of oxyethylene (EO) units increases the CMC values [43]. That can be attributed to the increase in the hydrophilic character of surfactants in water. Such improvements in the solubility lower the tendency for surfactants to form micelles in water, which consequently increases the CMC values.

Table 2 Critical micelle concentration (CMC), maximum surface excess (Γmax), and minimum surface area (A min) of the synthesized nonionic surfactants based on vanillin at 25, 40, and 55 °C

The extracted data from the surface tension curve showed that the CMC values increase with an increase in the number of EO units (15, 20, and 40). Increasing the number of EO units also reduced the surface tension further. Compound VE60 showed the lowest CMC values at 25, 40, and 55 °C.

It was observed that increasing the temperature from 25 to 55 °C leads to a decrease in CMC values. That can be attributed to the breaking of hydrogen bonds. As a result, the surfactant molecules separate from the aqueous phase to form micelles [44].

The maximum surface area (Γmax) in mol/cm2 was calculated from Eq. (8) [45]:

$$ \varGamma_{\hbox{max} } = 1/3\; \times \;2.303 \, RT \, (\partial \gamma /\partial \log \, C) $$
(8)

where R = gas constant (8.314 J mol−1 K−1) and T = t + 273 (K). The Γmax values in Table 2 were used to calculate the average minimum area per molecule at the interface at saturated conditions (A min) using Eq. (9) [4651]:

$$ A_{\hbox{min} } = \, 10^{14} /N_{A} \Gamma_{\hbox{max} } $$
(9)

where N is Avogadro’s number. From the data Table 2, it can be concluded that the Γmax values decrease by increasing the number of EO units in the nonionic chain, as does increasing the temperature from 25 to 55 °C. It is apparent from Table 2 that A min increases by increasing the temperature of the measurement, which could be due to the coiling of the nonionic hydrophobic chains at the interface.

Conclusion

The synthesized nonionic surfactants have good inhibition effects on the dissolution of carbon steel in the water-based mud medium. The inhibiting properties are increased by increasing both the inhibitor concentrations and the number of ethylene oxide units in the following order: VE60 > VE40 > VE20 > VE15. The synthesized surfactants act as mixed-type inhibitors in the water-based mud medium.