Introduction

Aqueous solutions of acids are among the most corrosive media. So, the rate of corrosion at which metals are destroyed in acidic media is very high, especially when soluble corrosion products are formed. Acid solutions are generally used in several processes, for example industrial cleaning, acid descaling, and petrochemical processes. Hydrochloric acid is widely used in the pickling processes of metals. The use of inhibitors is one of the most practical methods for protection against corrosion, especially in acidic media [1].

The corrosion inhibition of metal may involve either physisorption or chemisorption of the inhibitors by the metal surface and subsequent interference with either cathodic or anodic reactions, or both, occurring at the adsorption sites.

Most of the well-known acid inhibitors are organic compounds containing nitrogen, sulfur, or oxygen atoms. Nitrogen-containing compounds function more effectively in HCl [2, 3], whereas sulfur-containing compounds are sometimes preferred for H2SO4. The effect of organic compounds containing both nitrogen and sulfur atoms have been investigated by several authors [47].

It is well known that pyrazole [810], bipyrazole [1116], tripyrazole [17], triazole [1820] and tetrazole [5, 21] derivatives are excellent inhibitors of corrosion of many metals and alloys in aggressive media. Substitution in the pyrazole ring (R = H, CH3, CO2C2H5, etc.) has a pronounced effect on inhibition efficiency.

The objective of this was to study the effect of some pyrazole derivatives, for example 3,5-dimethyl-1H-pyrazole (P1), 3(5)-amino-5(3)-methylpyrazole (P2) and 1′,3,5,5′-tetramethyl-1′H-1,3′-bipyrazole (P3), as corrosion inhibitors for steel in molar hydrochloric acid solution. The behaviour of steel in 1.0 M HCl with and without inhibitor was studied using gravimetric, potentiodynamic, and EIS measurements. These results are complemented with theoretical calculations in order to provide an explanation of the differences between the inhibitors.

Experimental

Synthesis of the pyrazole compounds

Compounds P1 and P2 are commercially available. Product P3 was prepared, as previously described [22, 23], from 3(5)-amino-5(3)-methylpyrazole P2 by diazotation in HCl followed by reduction with tin chloride and condensation with beta-diketones. Finally, the methylation of the precursor in the presence of t-BuOK as base led to one isolated isomer of P3 in good yield. The molecular structures are shown in Scheme 1.

Scheme 1
scheme 1

Chemical formulas of the compounds used

Gravimetric, R p, polarisation and EIS measurements

The aggressive solution (1.0 M HCl) was prepared by dilution of analytical-grade 37% HCl with double-distilled water. Before all measurements, the steel samples (0.09% P; 0.38% Si; 0.01% Al; 0.05% Mn; 0.21% C; 0.05% S and the remainder iron) were polished with different emery paper up to 1200 grade, washed thoroughly with double-distilled water, degreased with AR-grade ethanol and acetone, and dried at room temperature.

Gravimetric measurements were carried out in a double-walled glass cell equipped with a thermostated cooling condenser. The solution volume was 100 mL. The steel specimens used were rectangular in shape (2.5 cm × 2 cm × 0.05 cm). The immersion time for weight-loss measurement was 6 h at 308 K. After the corrosion test, the specimens of steel were carefully washed in double-distilled water, dried and then weighed. The rinse removed loose segments of the film from the corroded samples. Duplicate experiments were performed in each case and the mean value of the weight loss is reported. Weight loss enabled us to calculate the mean corrosion rate, expressed in mg cm−2 h−1.

Electrochemical measurements were carried out in a conventional three-electrode cylindrical Pyrex glass electrolysis cell. The working electrode (WE) in the form of a disc cut from steel has a geometric area of 1 cm2 and is embedded in polytetrafluoroethylene (PTFE). A saturated calomel electrode (SCE) and a disc platinum electrode were used as reference and auxiliary electrodes, respectively. The temperature was thermostatically controlled at 308 ± 1 K. The WE was abraded with silicon carbide paper (grade P1200), degreased with AR-grade ethanol and acetone, and rinsed with double-distilled water before use.

Running on an IBM compatible personal computer, the 352 Soft Corr III Software communicates with EG&G Instruments Potentiostat–Galvanostat model 263A at a scan rate of 0.5 mV/s. Before recording the cathodic polarisation curves, the steel electrode was polarised at −800 mV for 10 min. For anodic curves, the potential of the electrode was swept from its corrosion potential, after 30 min at free corrosion potential, to more positive values. The test solution was de-aerated with pure nitrogen. Gas bubbling was maintained throughout the experiments.

Near E corr, a scan through a potential range was used to perform polarisation resistance measurements. The potential range was ±10 mV around E corr. The resulting current was plotted against potential. Polarisation resistance (R p) values were obtained from the current potential plot. The scan rate was 0.05 mV/s.

The electrochemical impedance spectroscopy (EIS) measurements were carried out with an electrochemical system (Tacussel) which included a digital potentiostat model Voltalab PGZ 100 computer. At E corr, after immersion in solution without bubbling, the circular surface of steel exposing 1 cm2 to the solution was used as working electrode. After determination of the steady-state current at a given potential, a sine wave voltage (10 mV) peak to peak, at frequencies between 100 kHz and 10 mHz, was superimposed on the rest potential. Computer software automatically controlled the measurements performed at rest potentials after 30 min of exposure. The impedance diagrams are given in the Nyquist representation. Values of R t and C dl were obtained from Nyquist plots.

Results and discussion

Weight loss tests

Gravimetric measurements of steel subjected to the effects of 1.0 M HCl in the absence and presence of various concentrations of pyrazole derivatives were made after 6 h of immersion at 35 °C. The inhibition efficiency (E W, %) was calculated by use of the equation:

$$ E_{w} \% = {\frac{{W_{corr} - W{\kern 1pt} {\kern 1pt}_{corr}^{inh} }}{{W_{corr} }}} \times 100 $$
(1)

where W corr and \( W{\kern 1pt} {\kern 1pt}_{corr}^{inh} \) are the corrosion rates of steel in the absence and presence, respectively, of the organic compound.

According to Table 1, for P1, P2 and P3, the rate of corrosion of steel decreased with increasing inhibitor concentration. The E w (%) values increased with increasing inhibitor concentration. At 10−3 M for each inhibitor studied, the inhibition efficiency attained 36, 55 and 94%, respectively, for P1, P2 and P3. From weight loss measurements, we can conclude that the inhibition efficiency of three pyrazole compounds tested follow the order: P3 > P2 > P1. It can be noted that at concentrations lower than 10−5 M, P1 can be regarded as a corrosion stimulator.

Table 1 Gravimetric results of steel in acid without and with addition of P1, P2 and P3

We remark that substitution of a methyl (–CH3) of the pyrazole molecule (P1) by an amino group (–NH2) increased the inhibition efficiency of inhibitor (P2). Whereas we note that the presence of two pyrazole rings in inhibitor (P3) substantially increased the inhibition efficiency of this inhibitor.

It is interest to note that the inhibiting effect of P3 can be attributed to its adsorption at the metal–solution interface, owing to the presence of many active centres (several nitrogen atoms and many π-electrons of the pyrazole rings) for adsorption.

Polarisation measurements

Evaluation of E (%) can also be performed via electrochemical experiments which consist of determination of intensity/potential curves. Cathodic and anodic polarisation curves for steel in 1.0 M HCl in the presence of 10−3  M P1, P2 and P3 at 308 K are shown in Fig. 1. In the cathodic domain, it is clear that the current density decreases with addition of pyrazole compounds; this indicates that these compounds are adsorbed on the metal surface and hence inhibition occurs.

Fig. 1
figure 1

Polarisation curves of steel in 1.0 M HCl without and with 10−3 M P1, P2 and P3

At the same concentration (10−3  M), the value of I corr of steel for P3 is smaller than those of P1 and P2. P3 results in more efficient inhibition than P1 and P2 in 1.0 M HCl; this enhanced efficiency is because of the presence of the two pyrazole rings in molecule P3. The polarisation study confirms the excellent inhibiting character of P3 obtained with weight loss measurements.

In order to better understand the mechanism of inhibition of P3, a detailed study of this compound was carried out. Polarisation curves for steel at various concentrations of P3 in de-aerated normal HCl solutions are shown in Fig. 2. Electrochemical data, including corrosion potential (E corr), corrosion current density (I corr), and cathodic Tafel slopes (β c) calculated by use of Tafel fit, are listed in Table 2.

Fig. 2
figure 2

Polarisation curves of steel in 1.0 M HCl containing different concentrations of P3

Table 2 Electrochemical data for steel at different concentrations of P1, P2 and P3 studied in 1 M HCl, and the corresponding corrosion inhibition efficiencies

Inhibition efficiency (E I %) can also be calculated from polarization tests by using the following equation:

$$ E_{I} \% = {\frac{{I_{corr} - I_{corr}^{inh} }}{{I_{corr} }}} \times 100 $$
(2)

where I corr and \( I_{corr}^{inh} \) are the corrosion current density values without and with the inhibitor, respectively, determined by extrapolation of cathodic Tafel lines to the corrosion potential.

It is clear that addition of P3 hinders acid attack on the steel electrode and comparison of the curves shows that, relative to the blank, increasing the concentration of the inhibitor gave rise to a consistent decrease of cathodic current densities (Fig. 2). As is shown in Fig. 2, the cathodic current–potential curves give rise to parallel Tafel lines, which indicate that the hydrogen evolution reaction is activation-controlled and that addition of the P3 does not modify the mechanism of this process [5].

The analysis of these data shows that:

  • the values of I corr of steel in the inhibited solutions were smaller than that for the inhibitor-free solution in 1.0 M hydrochloric acid;

  • addition of P3 modifies E corr values slightly, and moves them toward negative potentials, and we notice that the inhibition efficiency increased with inhibitor concentration reaching a maximum value at 10−3 M P3. The corresponding efficiency values are 89% in 1.0 M HCl;

  • addition of P3 to the corrosive solution causes slight modification of the cathodic slope of the Tafel line (β c); for example, for 10−3 M P3 in 1.0 M HCl solution, the concentration for which the current densities are weakest, β c equals 176 mV dec−1 which is very near of the value obtained in the reference case (153 mV dec−1). This result suggests that the mechanism of hydrogen reduction on the surface of steel is not modified by addition of P3;

  • the anodic curves indicate that the mode of inhibition of organic compounds depends on electrode potential (Figs. 1, 2). It seems that the presence of the three inhibitors does not change the current versus potential characteristics. These results indicate that the molecules tested act essentially as cathodic inhibitors.

The corresponding polarisation resistance (R P) values of steel in 1.0 M HCl in the absence and presence of different concentrations of the inhibitor (P3) are also given in Table 2. R P was determined by the slope of the potential versus current lines.

We remark that R P increases with increasing inhibitor concentration. This in turn leads to a decrease in I corr values. The inhibition efficiency (\( E_{{R_{\text{P}} }} \) %) from the linear polarization technique is calculated as follows:

$$ E_{{R_{\text{P}} }} {\text{ \% }} = {\frac{{R_{\text{p}}^{\prime } \, - \, R_{\text{p}} }}{{R_{\text{p}}^{\prime } \, }}} \times 100 $$
(3)

R p and R p′ are the polarisation resistance in the absence and presence, respectively, of the inhibitor.

From Table 2, we notice that the \( E_{{R_{\text{P}} }} \) (%) increased with inhibitor concentration reaching a maximum value of 87% at 10−3 M for P3. This is in reasonably good agreement with the value of inhibitor efficiency obtained from polarisation (89%) and weight-loss (94%) measurements.

Effect of the concentration of the P3 inhibitor on the rate of corrosion of steel and on inhibition efficiency at different temperatures

Different experimental techniques can be used to evaluate corrosion rate and inhibition efficiency of P3 inhibitor in 1.0 M HCl. The weight loss method is one of the simplest.

To study the relationship between corrosion rate of steel in the absence and presence of P3 molecule, experiments were carried out in the concentration range of P3 from 10−5 to 10−3 M in 1.0 M hydrochloric acid. Moreover, to investigate the effect of temperature on the corrosion rate of steel, experiments at different temperatures were performed.

The curves showing the values of corrosion rate in the absence and the presence of different concentrations of P3 at different temperatures are drawn in Fig. 3. It is evident that steel corrosion is reduced by the presence of P3 in 1.0 M hydrochloric acid, and the corrosion rate gradually decreases with increasing inhibitor concentration at each experimental temperature, which means that a good inhibition effect can be provided at a higher inhibitor concentration. It is also obvious that in the absence and presence of P3, the corrosion rate of steel increases with increasing temperature.

Fig. 3
figure 3

The relationship between corrosion rate and the concentration of the inhibitor P3

The values of inhibition efficiencies obtained from the weight loss for different concentrations of P3 at different temperatures in hydrochloric acid are given in Table 3.

Table 3 Inhibition efficiencies obtained from the corrosion rate for different concentrations of P3 in 1.0 M HCl at different temperatures

It can be seen from Fig. 4 and Table 3 that inhibition efficiency increases with increasing inhibitor concentration, and decreases with increasing experimental temperature, which suggests that inhibition of the corrosion of steel by P3 might be caused by adsorption of P3 on to the steel surface from acidic solution. So higher temperature might cause desorption of P3 from the steel surface.

Fig. 4
figure 4

Relationship between inhibition efficiency and concentration of P3 in 1.0 M HCl

Adsorption isotherm and thermodynamic data

For organic inhibitors that have the ability to adsorb strongly on metal surface, thus impeding the dissolution reaction, the surface coverage (θ) can be evaluated as the inhibition efficiency (E w %/100) [24]. Surface coverage values for the bipyrazole compound P3 have been obtained from the gravimetric weight loss measurements for various concentrations as reported in Table 3.

Adsorption isotherms are very important for determining the mechanism of organic electrochemical reactions. This process is closely related to adsorption of the inhibitor molecules [25, 26] and adsorption is known to depend on chemical structure [2730].

The most frequently used adsorption isotherms are the Langmuir, Temkin and Frumkin isotherms with the general formula:

$$ f(\theta ,x)\mathop e\nolimits^{ - 2a\theta } \, = \;\mathop K\nolimits_{\text{ads}} {\kern 1pt} C $$
(4)

In hydrochloric acid solution, the organic compound follows the Langmuir adsorption isotherm. This is as follows:

$$ {\frac{\theta }{1\, - \theta \, }}\, = \,\mathop K\nolimits_{\text{ads}} \, + \,C $$
(5)

Rearranging this equation gives:

$$ {\frac{C}{\theta }}\, = \,{\frac{ 1}{{\mathop K\nolimits_{\text{ads}} }}}\, + \,C $$
(6)

where C is the concentration of inhibitor, K ads is the adsorptive equilibrium constant, and θ is the surface coverage.

From the values of surface coverage, the linear regressions between C/θ and C were calculated by the computer, and the adsorption coefficients, slopes, and linear correlation coefficients are listed in Table 4. Figure 5 shows the relationship between C/θ and C at different temperatures. These results show that all the linear correlation coefficients (r) are almost equal to 1.000 and all the slopes are very close to 1.00, which indicates that adsorption of inhibitor on to the steel surface accords with the Langmuir adsorption isotherm.

Table 4 Parameters of the linear regression between C/θ and C for P3
Fig. 5
figure 5

The relationship between C/θ and C for P3

Furthermore, it was found (Table 4) that the adsorption coefficient (K ads) decreased with increasing temperature. It is well known that K ads indicates the adsorption power of the inhibitor on to the steel surface; clearly, P3 gave high values of K ads at low temperatures, indicating that it was adsorbed strongly on to the steel surface. Thus, the inhibition efficiency decreased with increasing temperature as the result of increased desorption of P3 from the steel surface.

The corrosion inhibition of P3 for steel could be well explained by using a thermodynamic model, so, the adsorption heat, the adsorption free energy, and the adsorption entropy were calculated to elucidate the phenomenon for the inhibitive action of P3.

According to the Van’t Hoff equation [31, 32]:

$$ { \ln }\,(K_{\text{ads}} ){\kern 1pt} = \, - \,{\frac{{\mathop {\Updelta H_{\text{ads}}^{^\circ } }\nolimits_{{}}^{{}} }}{RT \, }}\, + \,{\text{Constant}} $$
(7)

where \( \Updelta H_{\text{ads}}^{^\circ } \) and K ads are the heat of adsorption and adsorptive equilibrium constant, respectively.

To obtain the heat of adsorption, the linear regression between ln (K ads) and 1/T was studied; this relationship is shown in Fig. 6. Under these experimental conditions, the adsorption heat could be approximately regarded as the standard heat of adsorption (\( \Updelta H_{\text{ads}}^{^\circ } \)) [32, 33]. The standard free energy of adsorption (\( \Updelta G_{\text{ads}}^{^\circ } \)) was obtained by use of the equation [34]:

$$ K_{\text{ads}} \, = \,{\frac{ 1}{ 5 5. 5}}\;{\text{e}}^{{ - {\frac{{\Updelta G_{\text{ads}}^{^\circ } }}{RT}}}} $$
(8)

where 55.5 is the molar concentration of water in solution, in mol L−1.

Fig. 6
figure 6

The relationship between ln (K ads) and 1/T

According to the basic thermodynamic equation \( \Updelta G_{\text{ads}}^{^\circ } \, = \, \Updelta H_{\text{ads}}^{^\circ } \, - \,T\Updelta S_{\text{ads}}^{^\circ } \), the standard entropy of adsorption \( \Updelta S_{\text{ads}}^{^\circ } \) could be calculated. Adsorption equilibrium constants K ads and other thermodynamic data for the adsorption process that were obtained from Fig. 6 are summarized in Table 4.

It was found that \( \Updelta G_{\text{ads}}^{^\circ } \)increased with increasing temperature (it was more difficult for P3 to be adsorbed on to the steel surface); this phenomenon once again indicated that the adsorption was unfavourable with increasing experimental temperature as the result of the desorption of inhibitor from the steel surface. The negative values of \( \Updelta G_{\text{ads}}^{^\circ } \) (Table 4) ensure the spontaneity of the adsorption process and the stability of the adsorbed layer on the steel surface. Generally, values of \( \Updelta G_{\text{ads}}^{^\circ } \) up to −20 kJ/mol are consistent with the electrostatic interaction between the charged molecules and the charged metal (physisorption) whereas those around −40 kJ mol−1 or higher are associated with chemisorption as a result of sharing or transfer of electrons from organic molecules to the metal surface to form a coordinate type of bond (chemisorption) [35, 36]. One can see that the calculated \( \Updelta G_{\text{ads}}^{^\circ } \) values range from approximately −37.688 to −32.901 kJ mol−1, indicating, therefore, that the mechanism of adsorption of the P3 on steel in 1.0 M HCl solution was typical of chemisorption (Table 4).The possible mechanisms of chemisorption can be attributed to donation of π-electrons by the pyrazole rings, and the presence of nitrogen atoms in the pyrazole molecule as reactive centres.

The values of the thermodynamic data for the adsorption of inhibitors can provide valuable information about the mechanism of corrosion inhibition. The endothermic adsorption process (\( \Updelta H_{\text{ads}}^{^\circ } > 0 \)) is attributed unequivocally to chemisorption [37]. Generally, an exothermic adsorption process (\( \Updelta H_{\text{ads}}^{^\circ } < 0 \)) may involve either physisorption or chemisorption or a mixture of both. In an exothermic process, physisorption is distinguished from chemisorption because the absolute value of a physisorption process is lower than 41.86 kJ mol−1 whereas the heat of adsorption of a chemisorption process approaches 100 kJ mol−1 [38].

In this case; the negative sign of \( \Updelta H_{\text{ads}}^{^\circ } \) indicates that adsorption of inhibitor molecules is an exothermic process [39]. A absolute value of \( \Updelta H_{\text{ads}}^{^\circ } \) (79.142 kJ mol−1) for adsorption of the inhibitor P3 is approaching 100, so we can also confirm that the adsorption mechanism of P3 on steel in 1.0 M HCl solution was typical chemisorption. Usually, adsorption at a surface involves reduction of translational degrees of freedom (i.e., \( \Updelta S_{\text{ads}}^{^\circ } < 0 \)) as was observed in this investigation (Table 4).

In order to confirm the result of the standard heat of adsorption (\( \Updelta H_{\text{ads}}^{^\circ } = - 79.142 \) kJ mol−1) found from the Van’t Hoff equation (eq. 7) we also calculated it by use of Gibbs–Helmholtz equation, which is defined as follows:

$$ \left[ {{\frac{{\partial (\Updelta G_{\text{ads}}^{^\circ } /T )}}{\partial T \, }}} \right]_{P} \, = \, - {\frac{{\Updelta H_{\text{ads}}^{^\circ } }}{{\mathop T\nolimits^{ 2} \, }}} $$
(9)

This equation can be arranged to give the equation.

$$ {\frac{{\Updelta G_{\rm ads}^{^\circ } }}{T \, }}\, = \,{\frac{{\Updelta H_{\rm ads}^{^\circ } }}{T }}{\kern 1pt} + {\kern 1pt} A $$
(10)

The variation of \( \Updelta G_{\text{ads}}^{^\circ } /T \) with 1/T gives a straight line with a slope that equals \( \Updelta H_{\text{ads}}^{^\circ } \) (Fig. 7). It can be seen from the figure that \( \Updelta G_{\text{ads}}^{^\circ } /T \) decreases with 1/T in a linear fashion. The value of \( \Updelta H_{\text{ads}}^{^\circ } \) is negative (\( \Updelta H_{\text{ads}}^{^\circ } = - 7 9. 1 4 2\,{\text{ kJ}}\,{\text{mol}}^{ - 1} \)), reflecting the exothermic behaviour of adsorption on the steel surface.

Fig. 7
figure 7

Relationship between \( \Updelta G_{\text{ads}}^{^\circ } /T \) and the inverse of absolute temperature

The value of the enthalpy of adsorption found by the two methods, Van’t Hoff and Gibbs–Helmholtz, are in very good agreement.

Kinetic parameters

In order to obtain the effect of the inhibitor on the kinetic data, gravimetric weight loss experiments were conducted at 35, 40, 50, 60, and 70 °C in 1.0 M HCl after 1 h of immersion in the absence and presence of P3 at different concentrations. The activation data for the system: the activation energy, enthalpy, and entropy (E a, ΔH* and ΔS*), were calculated from Arrhenius-type plots (eq. 11) and transition state equation (eq. 12) [40].

$$ W = \,A{\text{e}}^{{ - \left( {{\frac{{E_{\text{a}} }}{RT}}} \right)}} $$
(11)

where E a represents the apparent activation energy, R the gas constant, T the absolute temperature, A the pre-exponential factor, and W the corrosion rate.

$$ W = {\frac{RT}{{N_{\text{A}} h}}}\;{\text{e}}^{{ - \left( {{\frac{{\Updelta S^{*} }}{R}}} \right)}} {\kern 1pt} {\text{e}}^{{ - \left( {{\frac{{\Updelta H^{*} }}{RT}}} \right)}} $$
(12)

where h is Planck’s constant, N A is Avogadro’s number, R the universal gas constant, ΔH* the enthalpy of activation, and ΔS* the entropy of activation.

A plot of ln W versus 1/T gave straight lines with correlation coefficients (r) in the range 0.9962–0.9992 (average: 0.9973), and slope −E a/R, as shown in Fig. 8. The E a for the corrosion reaction in the absence and presence of different concentrations of the inhibitor P3 was calculated. The values of E a depend on inhibitor concentration. On the other hand, the plots of ln (W/T) against 1/T (Eq. 12) also gave straight lines with correlation coefficients (r) in the range 0.9959–0.9990 (average: 0.9970), as shown in Fig. 9. The slopes of these lines equals −ΔH*/R and the intercept is ln (RT/N A h) + (−ΔS*/R), from which the values of ΔH* and ΔS* were calculated. Kinetic data obtained from these graphs are given in Table 4.

Fig. 8
figure 8

Arrhenius plots for steel, for different concentrations of P3 in 1.0 M HCl

Fig. 9
figure 9

The relationship between ln (W/T) and 1/T for inhibition of steel in 1.0 M HCl containing different concentrations of P3

Some studies [4143] have shown that compared with the apparent activation energy in the absence of inhibitor, higher values for E a were found in the presence of inhibitors. Other studies [44, 45] have shown that in the presence of inhibitors the apparent activation energy was lower than that in the absence of inhibitors. However, other research has shown that at low inhibitor concentrations the values of E a were higher in the presence of inhibitor than in the absence of inhibitor, whereas at high inhibitor concentrations the values of E a were lower than those in the uninhibited acid solution [46].

The value of the apparent activation energy E a of the hydrogen evolution reaction for 1.0 M HCl without an inhibitor (64.133 kJ mol−1) (Table 5) agrees well with literature data on E a for iron and steel in hydrochloric acid, which are in the range 58–88 kJ mol−1, and most are grouped around 60.7 kJ mol−1 [4749]. Addition of inhibitor modified the values of the apparent activation energies; this modification may be attributed to the change in the mechanism of the corrosion process in the presence of adsorbed inhibitor molecules [50]. The lower value of the activation energy of the process in an inhibitor’s presence compared to that in its absence is attributed to its chemisorption, whereas the opposite is the case with physical adsorption [51, 52].

Table 5 Activation data and pre-exponential factor (A) of the dissolution reaction of steel in 1.0 M HCl solution containing different concentrations of P3

It is apparent from Table 5 that the values of apparent activation energy E a are higher in the presence of inhibitor than in its absence (64.133 kJ mol−1). This type of inhibitor retards corrosion at ordinary temperatures but inhibition is diminished at elevated temperatures.

As can be seen in Table 5, the values of the pre-exponential factor A increase continuously as the concentration increases, and it is the combined effect of the frequency factor A and E a that dictate the rate of steel dissolution. It was clear that from this study that the values of A and E a in the presence of P3 are higher than those of in the uninhibited acid solution. These results are in accord with reported studies [43, 53]. As such the corrosion rate is found to be lowest at a concentration of P3 of 10−3 M, even though it has the highest E a. We remark also (Fig. 10) that when the inhibitor concentration reached 5 × 10−4 M, the values of E a reach a maximum and then do not change obviously. That is, the apparent activation energy acts as a function of inhibitor concentration [32].

Fig. 10
figure 10

The relationship between E a and inhibitor concentration of P3

The positive signs of ΔH* reflect the endothermic nature of the steel dissolution process. The values of E a and ΔH* increase with increasing concentration of P3, suggesting that the energy barrier of corrosion reaction increases as the concentration of P3 is increased. This means that the corrosion reaction will further be pushed to surface sites that are characterized by progressively higher values of E a as the concentration of the inhibitor becomes greater [40].

In this study, it was found that ΔS* increases with increasing concentration of P3, and passes from −17.5 J mol−1 at 10−5 M to 68.2 J mol−1 at 10−3 M, furthermore, we notice that ΔS* changes its sign from negative to positive as a result of a possible change in the mechanism of the corrosion process. This result was similar to the author’s previous outcome [54].

Effect of hydrochloric acid concentration on inhibition efficiency

Figure 11 shows the effect of HCl concentration (1–10 M) at 35 °C on the inhibition efficiency of P3 at 10−3 M. The increasing hydrochloric acid concentration resulted in decreasing E w, and the maximum efficiency was 93% in 1 M HCl.

Fig. 11
figure 11

Effect of HCl concentration on E W (%) of P3 for the steel at 35 °C

Figure 11 also clearly shows that the change of E w with HCl concentration can be divided into four stages. We notice also that in the two domains of concentration 1–3 M and 5–6 M E w decreases slightly with acid concentration; but in the ranges of acid concentration 3–5 M and 6.0–10 M the inhibition efficiency decreases substantially with acid concentration.

Rate constant and reaction constant

Assuming the corrosion rate against the molar concentration of acid concentration obeys the expression proposed by Mathur and Vasudevan [55],

$$ { \ln }\,{\kern 1pt} W{\kern 1pt} = \,\ln \,k\, + \,BC $$
(13)

where k is the specific reaction rate constant, B is a constant for the reaction, and C is the molar concentration of HCl.

Figure 12 shows the relationship between ln W and C. It is seen clearly that the graph of ln W–C in uninhibited HCl is a straight line. After P3 is added, however, two straight lines appear, with a break point at 4 M HCl. Calculated kinetic data are listed in Table 6.

Fig. 12
figure 12

Variation of ln W with the concentration of hydrochloric acid, C, at 35 °C

Table 6 Calculated values of kinetic data for the corrosion of steel in HCl containing P3 at 35 °C

Equation 13 shows that k can be regarded as an initial rate at zero acid concentration, so k means the corrosive ability of HCl for steel [53, 55, 56]. Table 6 clearly shows that k decreases obviously after P3 is added to the HCl solution, which indicates that P3 is a good inhibitor in HCl. Furthermore, the values of k in 1–4 M HCl inhibited solution are smaller than those in 4–10 M inhibited HCl solution, which indicates that the values of E w (%) in 1–4 M HCl are larger than those in 4–10 M HCl (Fig. 12).

According to Eq. 13, B is the slope of the line ln WC, so B indicates the changed extent of W with acid concentration. Values of B in inhibited HCl are higher than in uninhibited HCl, which indicates that the changed extent of W with C in inhibited HCl is bigger than that in uninhibited HCl. Namely, the inhibition efficiency decreases obviously with acid concentration (Fig. 12). In addition, the values of B in 1–4 M inhibited HCl solution are higher than those in 4–10 M inhibited HCl solution, which indicates that the change of E w (%) in 1–4 M HCl is greater than that in 4–10 M HCl.

Electrochemical impedance spectroscopy (EIS)

The impedance diagrams obtained after 30 min of exposure of the samples at 308 K in inhibited and uninhibited solutions containing different concentration of P3 are shown in Fig. 13. It is apparent from these plots that the impedance response of steel in uninhibited HCl solution has significantly changed after addition of P3 to the corrosive solution. This indicates that the impedance of inhibited substrate increases with increasing inhibitor concentration and, consequently, the inhibition efficiency increases. The locus of the Nyquist plots was regarded as one part of a semicircle. The impedance diagrams obtained are not perfect semicircles and this difference has been attributed to frequency dispersion [57, 58].

Fig. 13
figure 13

Nyquist diagrams for steel in 1.0 M HCl containing different concentrations of P3

The impedance data such as the double-layer capacitance (C dl), the charge-transfer resistance (R t) and \( E_{{R_{\text{t}} }} \) (%) derived from Nyquist diagrams are given in Table 7.

Table 7 Characteristic data evaluated from the impedance diagram for steel in 1.0 M HCl containing different concentrations of P3

The charge-transfer resistance, R t, values are calculated from the difference in impedance at low and high frequencies, as suggested by Tsuru and Haruyama [59]. To obtain the double capacitance (C dl), the frequency at which the imaginary component of the impedance is maximum (−Z max) is found and C dl values are obtained from the equation:

$$ f \, \left( { - Z_{ \max } } \right) \, = {\frac{ 1}{{2\pi C_{\text{dl}} \, R_{\text{t}} \, }}} $$
(14)

The inhibition efficiency from the charge-transfer resistance is calculated by use of the relationship:

$$ E_{{R_{\text{t}} }} \% \, = \,{\frac{{R_{tcorr} - R_{tcorr}^{inh} }}{{R_{tcorr} }}}\, \times \,100 $$
(15)

where \( R_{tcorr} \) and \( R_{tcorr}^{inh} \) are the charge transfer resistance values without and with inhibitor, respectively. R t is the diameter of the loop.

The recorded EIS spectrum for steel in 1.0 M HCl, Fig. 13, shows one depressed capacitive loop in the absence and presence of P3 (one time-constant in Bode-phase representation). Addition of increasing concentrations of inhibitor increases the diameter of the capacitive loop, indicating inhibition of the corrosion process. In other words, R ct increases and consequently enhances IE% until reaching their maximum values at 10−3 M (\( E_{{R_{\text{t}} }} \)% = 91). The equivalent circuit for mild steel in molar HCl is widely discussed in the literature (Fig. 14) [60, 61]. The values of the double-layer capacitance (C dl) tend to decrease. The decrease in the C dl values is because of adsorption of the inhibitor on the metal surface [62].

Fig. 14
figure 14

Electrical equivalent circuit used for modeling the interface steel/1 M HCl solution without and with inhibitor

Theoretical calculations

The calculated quantum chemical indices (E HOMO = energy of the highest occupied molecular orbital, E LUMO = energy of the lowest unoccupied molecular orbital) of the three inhibitors are shown in Table 8. Inhibition efficiency increases with increasing values of E HOMO [6366]. The results seem to indicate that charge transfer from the inhibitor takes place during adsorption on the metal surface. Increasing values of the E HOMO may facilitate adsorption (and therefore inhibition) by affecting the transport process through the adsorbed layer. However, the difference ΔE = E HOMOE LUMO is a negative number, whereas the coefficient of Δ is positive, indicating that a smaller absolute value of Δ, and therefore, a lower excitation energy to move an electron from the highest occupied molecular orbital, will cause higher inhibition efficiency. This means that the band gap energy value (Fig. 15) is more favourable for P3 than P1 and P2, which explains the percentage inhibition efficiency.

Table 8 Partial total atomic charges calculated by the PETRA software [61]
Fig. 15
figure 15

Correlation of energy differences ΔE with percentage inhibition by pyrazole derivatives

Table 8 indicates that for compound P3 only N(2) and N(4) have negative charges and, consequently, they are the centres of the adsorption phenomenon. N(1) and N(3) with positive charges do not participate in the adsorption process. The findings obtained by the experimental study and from calculation of the total partial charge on atoms of inhibitor P3 may suggest the adsorption mode as below (Scheme 2):

Scheme 2
scheme 2

Schematic representation of the mode of adsorption of P3

Conclusion

From the above results and discussion, the following conclusions are drawn.

  • Inhibition efficiency increases with inhibitor concentration, and the best performance is seen for P3.

  • P3 acts as a cathodic-type inhibitor.

  • The adsorption of P3 on the steel surface from 1.0 M HCl obeys a Langmuir adsorption isotherm. The adsorption process is a spontaneous and exothermic process accompanied by a decrease in entropy.

  • The efficiency of inhibition by P3 is temperature-dependent and its addition leads to an increase of the activation energy of the corrosion process. The adsorption equilibrium constant (k) decreases with increasing temperature.

  • Calculated thermodynamic data reveal that the mechanism of adsorption of P3 on steel in 1.0 M HCl solution was typical of chemisorption.

  • High E HOMO and low energy gap (E HOMOE LUMO) explain the best inhibition efficiency of P3.

  • The results obtained from weight loss, potentiodynamic polarization, and impedance spectroscopy are in good agreement.