Introduction

Hydrochloric acid solution is commonly used for the removal of undesirable scale and rust in metalworking processes, cleaning of boilers, and heat exchangers [1, 2]. To prevent the metal dissolution and acid consumption during these processes, Inhibitors are often used [35]. The organic compounds containing O, S and/or N atoms act as effective inhibitors [68] throughout the adsorption on the metal surfaces and then decrease the corrosion process [912]. Triazole and triazole-type compounds containing sulfur, and heterocyclic species have attracted more attention because of their excellent corrosion inhibition performance [1319]. Zhang et al. [20] studied the inhibiting action of oxadiazole–triazole derivatives against the corrosion of mild steel in sulfuric acid solution. The results indicated that the compounds are acted as efficient corrosion inhibitors in the acidic solution.

The strategies to control the effects of microbiologically influenced corrosion (MIC) in oil field companies include the reduction of the sulfate-reducing bacteria (SRB) using biocides; in order to: kill the organisms which enter the system, and reduce the growth rate of microorganisms within the biofilm. Microbiologically influenced souring (MIS) is the production of H2S through the metabolic activities of the sulfate-reducing bacteria. A better chance of mitigating MIS in some down-hole environments is using biocides [21]. The objective of this work is to synthesize three triazole derivatives and to study their corrosion inhibition effect on carbon steel dissolution in acidic medium, and their biocidal activity against SRB.

Materials and Methods

Synthesis of 5-(phenyl)-4H-1,2,4-triazole-3-thiol (I)

A mixture of benzoic acid (12.2 g, 0.1 mol) and thiosemicarbazide (91.1 g, 0.1 mol) was heated under reflux at 140 °C in the presence of xylene as a solvent and p-toluene sulfonic acid as a dehydrating agent until the theoretical amount of water was collected in the dean stark trap [22]. The mixture was cooled and the product was filtered to obtain 1-(benzoyl)-thiosemicarbazide, which was refluxed for 3 h in 200 ml of NaOH solution (2 N), then cooled and acidified to pH 4. The precipitate was filtered off and recrystallized from methanol to yield 5-(phenyl)-4H-1,2,4-triazole-3-thiol (I) as shown in Scheme 1 [23].

Scheme 1
scheme 1

Illustrated the chemical structure of the synthesized triazole derivatives

Synthesis of 3-(decylthio)-5-phenyl-1H-1,2,4-triazole (II)

A mixture of 5-(phenyl)-4H-1,2,4-triazole-3-thiol (1.77 g, 0.1 mol) and 1-bromodecane (2.22 g, 0.01 mol) was refluxed in ethanolic alkali (0.08 g KOH in 20 ml ethanol) for 2 h and then cooled to precipitate compound (II) which was recrystallized from ethanol [24].

Synthesis of 3-(benzylthio)-5-phenyl-1H-1,2,4-triazole (III)

A mixture of 5-(phenyl)-4H-1,2,4-triazole-3-thiol (1.77 g, 0.01 mol) and benzyl chloride (1.26 g, 0.01 mol) was refluxed in ethanolic alkali (0.08 g KOH in 20 ml ethanol) for 2 h, and then cooled to precipitate compound (III) which was recrystallized from ethanol [24].

Analyses

The chemical structures of the synthesized compounds (I, II, III) were confirmed by FTIR and 1H-NMR spectroscopy. FTIR spectra showed the following bands: at 940 cm−1 (I), 926 cm−1 (II), 924 cm−1 (III) for (N–C–S), 1,299 cm−1 (I), 1,312 cm−1 (II), 1,309 cm−1 (III) for (N–N–C), 3,365 cm−1 (I), 3,432 cm−1 (II), 3,395 cm−1 (III) for (N–H), 681 cm−1 (I), 682 cm−1 (II), 682 cm−1 (III) (C–S), 3,060 cm−1 (I), 3,059 cm−1 (II), 3,059 cm−1 (III) for (Ar CH), 1,452 cm−1 (I), 1,422 cm−1 (II), 1,418 cm−1 (III) for (C–N), 2,056 cm−1 (I) for (SH), 2,924 cm−1 (II), 2,935 cm−1 (III) and 2,853 cm−1 (II), 2,825 cm−1 (III) for (CH2 asym and sym). 1H-NMR spectra of (I, II, III) showed peaks at: δ = 7.75 ppm (m, 5H, Ar–H), δ = 3.25 ppm (s, 1H, S–H) for compound (I); δ = 7.84 ppm (m, 5H, Ar–H), δ = 3.38 ppm (t, 2H, S–CH2), δ = 1.45 ppm (m, 16H, CH2), δ = 0.81 ppm (t, 3H, CH3) for compound (II); δ = 7.86 ppm, 7.24 ppm (m, 10H, Ar–H), δ = 3.86 ppm (t, 2H, S–CH2) for compound (III).

Corrosion Measurements

Weight Loss Measurements

The weight loss experiments were performed with carbon steel specimens having a composition of: 0.21 C, 0.025 Mn, 0.082 P and the remainder is Fe. The carbon steel sheet dimensions were 6 cm × 3.0 cm × 0.6 cm, the test was done according to ASTM G31-72 (re-approved 2004). The steel coupons were immersed in 1 M HCl with and without the inhibitors I, II and III at concentrations of 100, 200, 400, 600 ppm by weight for 24 h at different temperatures (25, 45 and 65 °C). Then coupons were washed, dried and weighed accurately [25]. The test was repeated three times and the weight loss was their average. The corrosion rate (R) and the inhibition efficiency (η %) were calculated using Eqs. (12):

$$R = W/At$$
(1)
$$\eta\, \% = [(R_{0} {-}R)/R_{0} ] \times 100$$
(2)

where W is the average weight loss of three parallel carbon steel sheets, A is the total surface area of the specimen, t is the immersion time, R and R 0 are the corrosion rate with and without the inhibitor, respectively [26, 27].

Polarization Measurements

The polarization measurements were carried out using a potentiostat (Volta lab 40 PGZ 301 in a conventional three electrode cell system, France). The working electrode was immersed in the test solution for 30 min until the open circuit potential (OCP) is reached. The working electrode was polarized in cathodic and anodic directions. The corrosion current densities (I corr) were calculated by extrapolation of Tafel lines to pre-determine the OCP [28]. A standard ASTM electrochemical glass cell was used and a platinum electrode was used as an auxiliary electrode. All potentials were measured against a saturated calomel electrode (SCE) as a reference electrode. The potential was increased with a rate of 30 mV/min started from 1,000 to 200 mV. The inhibition efficiency (η %) was calculated using Eq. (3):

$$\eta\,\% = [(I_{0} {-}I)/I_{0} ] \times 100$$
(3)

where the I and I 0 are the current density values with and without inhibitors.

Electrochemical Impedance Technique

The Electrochemical Impedance Spectroscopy (EIS) measurements were carried out using alternating current (AC) signals of amplitude 10 mV peak to peak at the OCP in the frequency range of 100 kHz to 30 MHz using a potentiostat.

Antimicrobial Activity Measurements

The growth inhibition of the three prepared compounds on the SRB was measured using the serial dilution method. SRB-contaminated water was supplied from Qarun Petroleum Co. (Western Desert, Egypt). This water was used for the microbial inhibition test. The test was conducted according to ASTM D4412-84 [29]. The tested water was subjected to growth of about 1,000,000 bacteria cells/ml. The prepared compounds were tested as a biocide for the SRB by doses of (50, 100, 200 and 400 ppm). The system was incubated with a contact time of 3.0 h; each system was cultured in SRB specific media for 21 days at 37–40 °C.

Biodegradation Test

The biodegradability test in river water of the synthesized inhibitors I, II, and III was carried out using the surface tension method (Du-Noüy tensiometer, Krüss type K6, Germany) using a platinum ring [30, 31] at 1 % inhibitor concentration. Each inhibitor was dissolved in river water to a concentration of 100 ppm and incubated at 38 °C. A sample was withdrawn daily (for 7 days), filtered and the surface tension value was measured. The biodegradation percentage (D %) was calculated using Eq. (4):

$$D\,\% = (\gamma_{\text{t}} - \gamma_{\text{o}} )/(\gamma_{\text{bt}} - \gamma_{\text{o}} ) \times 100$$
(4)

where: γ t is the surface tension at time t, γ o is the surface tension at time 0 (initial surface tension) and γ bt is the surface tension of river water without addition of inhibitor at time t.

Results and Discussion

Weight Loss Technique

Effect of Inhibitor Concentration

In a steel/water system, the steel surface is covered with a layer of FeOOH through which the interaction of surfactant molecules takes place. The OH groups on the solid surface are the most important sites for surface interactions; these groups can act as acids or bases. The adsorption process is highly dependent on various parameters such as pH and electrolyte content [32].

The corrosion inhibiting efficiencies (η) of the synthesized compounds of the carbon steel corrosion in 1 N HCl were measured. The test was done at different temperatures 30–60 °C. Different inhibitor concentrations (100, 200, 400, 600 ppm by weight) were used. The results were illustrated in Fig. (1), (Figs. 1–2, supplementary file) and listed in Table 1. It was found that the efficiency of synthesized triazole derivatives decreases the corrosion rates of the steel in testing solutions and its inhibition efficiencies are dependent on its concentration in the tested solution. Also, it is clear that gradual increasing the inhibitor concentration from 100 to 600 ppm decreases the steel corrosion rate. The increase of efficiency, η with increasing the inhibitor concentration is attributed to the adsorption of the inhibitor molecules on the steel surface and thus increases the metal surface coverage [33].

Fig. 1
figure 1

Variation of η % against temperatures for inhibitor II

Table 1 Weight loss, corrosion rate, surface coverage and corrosion inhibition efficiency in the absence and presence of 600 (ppm by weight) of compounds I, II and III at different temperatures

A visual examination was carried out after the weight loss measurements were over. It can be noted that, in the absence of inhibitor, a uniform corrosion attack was observed, while on the other hand in the presence of inhibitors, such an attack was not observed: therefore, the surface area was bright and did not present any corrosion form, which is indicative that no attack was occurring on the surface area.

Effect of Temperature

To examine the action of inhibitors at elevated temperatures, mass loss experiments were carried out at different temperatures (30–60 °C). The results indicate that efficiency shows different trends for the testing compounds. It was noticed that at a lower concentration (100 ppm by weight) all compounds show a decrease in efficiency with increasing solution-temperature of all the testing compounds I, II and III. The same trend was obtained for higher concentrations of compound I. Meanwhile at higher concentrations of the solutions (200 to 600 ppm by weight) of compounds II and III, the efficiency increases with increasing the temperature from 30 to 60 °C [33]. At any temperature, the inhibition efficiency of compound (I) was found to decreases in efficiency with the increases in temperature. This is attributed to physical adsorption. At higher temperatures, the physical adsorption was less. The time gap between the process of adsorption and desorption of inhibitor molecules over the metal surface becomes shorter with an increase in the temperature. Hence, the metal surface remains exposed to the acid environment for a longer period, therefore the inhibition efficiency falls at elevated temperatures [33]. A slight increase or constancy in η with the increase in temperature at higher concentrations for (II, III) may be due to the chemical adsorption alone or due to the combination of physical and chemical adsorption [34]. The mass loss experiment showed a rapid increase in weight loss at elevated temperature in the absence of inhibitor. This shows that the tested inhibitor molecules are good corrosion inhibitors for steel in 1 N HCl in the range of temperatures studied.

Apparent Activation Energy (E a) and Pre-exponential Factor (A)

The activation parameters for the corrosion process were calculated from the Arrhenius Eq. (5), and transition state Eq. (6).

$$\ln K = \left( {\frac{{ - E_{\text{a}} }}{RT}} \right) + \ln A$$
(5)
$$\ln \left( \frac{K}{T} \right) = \left( {\ln \left( {\frac{R}{{N_{\text{A}} h}}} \right) + \left( {\frac{{\varDelta S^{*} }}{R}} \right)} \right) - \frac{{\varDelta H^{*} }}{RT}$$
(6)

where: k is the corrosion rate, A is the pre-exponential factor (Arrhenius constant), R is the gas constant and T is the absolute temperature. h is the Plank constant, N A is the Avogadro number, ∆S is the entropy of activation, ∆H is the enthalpy of activation.

The activation corrosion energy (E a) for different concentration of compounds (I, II and III) was calculated by linear regression between ln (K) and 1,000/T as shown in Fig. 2, (Fig. 3, supplementary file) and the results are shown in Table 2. Inspection of Table 2 shows that values of E a obtained in solutions containing triazole derivative compounds (II and III) are lower than those in the inhibitor-free acid solutions at high concentrations (400–600 ppm by weight). The lower values of the apparent activation energy obtained in the presence of triazole derivatives compounds (II and III) compared with those obtained in its absence. This means that this can be attributed to its chemisorption on the steel surface [35]. The inhibition efficiency also increased as the temperature increased (Table 2). The fact that η (%) increased with temperature was explained by Bouyanzer and Hammouti [36] and de Souza and Spinelli [37], as the likely specific interaction between the steel surface and the inhibitor. Ivanov [38] considers the increase in η (%) with temperature increases as the change in the nature of the adsorption mode. The inhibitor is being physically adsorbed at lower temperatures, while chemisorption is favored as the temperature increases. Noor and Al-Moubaraki [39] suggested that with an increase in temperature, some chemical changes occur in the inhibitor molecules, leading to an increase in the electron density at the adsorption centers of the molecule, which causes an improvement in inhibition efficiency. Al-Sabagh et al. [40] explained that, steel corrosion occurs at the uncovered part of the surface. Thus adsorption of inhibitors was assumed to occur at the higher energy sites. The presence of inhibitor compounds which result in the blocking of the active sites must be associated with an increase in the activation energy (E a) of steel in the inhibited sites. The relationships between the temperature dependence of the percentage IE of an inhibitor and the E a can be classified into three groups according to temperature effects [40, 41].

Fig. 2
figure 2

Arrhenius plots of ln (K) versus 1,000/T in the absence and presence of different concentrations of inhibitor I

Table 2 Activation parameter values in the absence and presence of different concentrations of the synthesized triazole derivatives (I, II, III)
  1. (i)

    IE decreases with an increase in temperature, E a (inhibited solution) > E a (uninhibited solution);

  2. (ii)

    IE increases with an increase in temperature, E a (inhibited solution) < E a (uninhibited solution);

  3. (iii)

    IE does not change with temperature, E a (inhibited solution) = E a (uninhibited solution).

Potentiodynamic Polarization

The polarization curves for carbon steel in 1 N HCl with the studied inhibitors, I, II and III at different concentrations at 30 °C are shown in Fig. 3 and (Figs. 4,5, supplementary file). The electrochemical corrosion kinetic parameters, i.e., anodic and cathodic Tafel slopes (β a, β c), corrosion current density (I corr) and inhibition efficiency (η p %) are listed in Table 3. The surface coverage area θ was calculated using Eq. (7):

$$\theta = 1 - (I_{\text{inh}} /I_{\text{corr}} )$$
(7)

where I corr and I inh are the uninhibited and inhibited corrosion current densities, respectively.

Fig. 3
figure 3

Anodic and cathodic polarization curves obtained at 30 °C in 1 M HCl at different concentrations of inhibitor I

Table 3 Potentiodynamic polarization parameters of different concentrations of synthesized triazole derivatives (I, II, III) at 30 °C at a scanning rate of 2 mV s−1

The inhibition efficiency (η p %) of this inhibitor was obtained from Eq. (8):

$$\eta_{\text{p}}\, \% = \theta \times 100$$
(8)

It is clear from the polarization curves that the increases in the inhibitor concentrations of I, II and III decrease the corrosion current density (I corr) which consequently increases the surface coverage values (Table 3). These inhibitors cause changes in the anodic and cathodic Tafel slopes and no definite trend was observed in the shift of E corr values in the presence of different concentrations of the synthesized inhibitors, suggesting that these compounds behave as mixed-type inhibitors mainly anodic.

The results show that the most effective compound is II which has the hydrocarbon chain length C10. The maximum inhibition efficiencies were 83, 91 and 93 %, for compound I, III, and II, respectively [4245].

Electrochemical Impedance Spectroscopy (EIS)

Results obtained from EIS can be interpreted in terms of the equivalent circuit of the electrical double layer shown in Fig. 6 in the supplementary file [46].

Figure 4 and (Figs. 7–8 supplementary file) show the Nyquist plots for carbon steel in 1 M HCl solution with and without different concentrations of the synthesized triazole compounds (I, II, and III) at 30 °C. The Nyquist plots were regarded as one part of a semicircle. The charge transfer resistance values (R ct) were calculated from the difference in impedance at lower and higher frequencies [47]. The double layer capacitance (C dl), values were calculated using Eq. (9) [48].

$$f( - Z_{\hbox{max} } ) = (2\pi C_{\text{dl}} R_{\text{ct}} )^{ - 1}$$
(9)

where f(−Z max) is the frequency of maximum imaginary components of the impedance. The inhibition efficiency was calculated using charge transfer resistance using Eq. (10):

$$\eta\,\% = ((R_{\text{ct}} {-}R_{\text{ct}}^{\text{o}} )/R_{\text{ct}} ) \times 100$$
(10)

where R ct and R oct are the charge transfer resistance values with and without inhibitor for carbon steel in 1 N HCl, respectively. The electrochemical impedance parameters derived from the Nyquist plots and the inhibition efficiency are listed in Table 4. It was clear that, R ct values in the presence of the inhibitor were always greater than their values in the absence of the inhibitor and also increase with increasing inhibitor concentration, which indicates a reduction in the steel corrosion rate. The capacitance, C dl, values were lower due to a decrease in the local dielectric constant and/or an increase in the thickness of the electrical double layer, suggesting that the inhibitor molecules acted by adsorption at the metal/solution interface [49]. The inhibiting efficiency was in the following order: II > III > I.

Fig. 4
figure 4

Nyquist plots for carbon steel in 1 M HCl in the absence and presence of different concentrations of inhibitor I

Table 4 EIS parameters in the absence and presence of different concentrations of synthesized triazole derivatives (I, II, III) at 30 °C

Antimicrobial Activity Against Sulfate-Reducing Bacteria (SRB)

The antimicrobial activity of the three synthesized compounds (I, II, III) against SRB was determined by the serial dilution method at doses of 50, 100, 200 and 400 ppm and the results are listed in Table 5. The three synthesized compounds showed impressive results due to their relatively high efficiency against this type of bacteria. The results indicate that the three synthesized compounds have high antimicrobial activity against the SRB at relatively high doses (200–400 ppm), and that the three synthesized compounds were inactive at the lowest concentration (50–100 ppm). On the other hand, it was capable to killing all the bacteria within 3 h (as contact time) at the highest concentration. To decrease the effect of the microbial induced corrosion, the biocides should be used to inhibit SRB growth and other acid producing bacteria in the oil field.

Table 5 The bacterial count (cell/ml) of different doses of the synthesized compounds (I, II, III)

Biodegradability

The biodegradability of I, II and III was evaluated using the Die-away test as described in Ref. [50]. The results of the biodegradation using surface tension measurements for 7 days (Fig. 5) showed a gradual increase in the biodegradation extent of the different inhibitor solutions by increasing the time. The extent of the biodegradation values of the inhibitor solutions in the river water reached a maximum after 7 days. The gradual increase in biodegradation is ascribed to the loss of the surface activity of the inhibitors dissolved in the river water. The loss of surface activity may be due to the disruption of the inhibitor molecules [51]. The biodegradation products in the start of the test period (i.e., 1–3 days) have surface active characters, which retain the surface activity of the solutions. However, at the end of the test period (4–7 days), the products lose their surface activity due to the severe degradation. The biodegradation ratios of the inhibitor (Table 6) range between 35 and 53.8 % after 7 days. The biodegradation values of these inhibitors specified them as biodegradable compounds [52].

Fig. 5
figure 5

Dependence of biodegradation (%) on the time for the synthesized inhibitors

Table 6 Biodegradation (%) of the synthesized inhibitors

Conclusions

From the above results it may be concluded that

  1. 1.

    The synthesized triazole derivative compounds demonstrate good inhibition of the corrosion process of mild steel in 1 N HCl and they have a high capability to prevent SRB growth.

  2. 2.

    The prepared compounds act as a mixed-type inhibitor in 1 N HCl. The weight loss and polarization curves are in good agreement.