Introduction

Corrosion is the damaging effect of metals through chemical or electrochemical reactions with their surrounding environment [1, 2]. Spontaneous dissolution of mild steel in acidic environments presents a dilemma in using steel in storing-containers and oil refineries, and other industrial applications. That is because the acid solutions are commonly employed to get rid of the unwanted scale and rust in many industrial processes [3, 4]. Industrial processes operating in an acidic medium are most vulnerable to metal loss by corrosion, resulting in a substantial economic loss and restraining technological progress [5,6,7]. Some organic inhibitors are either toxic or have an environmental concern [8,9,10]. On the other hand, nontoxic inhibitors are promising candidates for corrosion protection. Azopyrazole-benzenesulfonamide derivative has biological properties, including antitumor activity, highly effective antimicrobial, and antitubercular [11,12,13]. Pyrazole derivatives are among the most heterocyclic compounds that work by adsorption on metal-surface through nitrogen atoms, other than by triple or consecutive double-bonds or aromatic rings in their chemical structures. Various heterocyclic materials were used for the corrosion inhibition of mild steel in acidic media, such as pyrrole, imidazoline, pyridine, triazole, and pyrimidine [14,15,16,17]. Experimental methods help clarify the procedure of the corrosion suppression process, although these methods are often time-consuming. Recently, hardware and software-programs developments have commenced the efficient utilization of chemical theoretic calculations in corrosion inhibition investigations. They also serve to understand the connection between corrosion repression efficacy and molecular properties of the inhibitor [18,19,20].

In this work, the azopyrazole-benzenesulfonamide derivative has been investigated using various electrochemical methods as a new corrosion inhibitor for mild steel in acidic media. The efficacy has been correlated with the chemically quantum factors.

Materials and methods

Inhibitor preparation

The 4-(2-(3-methyl-5-oxo-1-tosyl-1H-pyrazol-4(5H)-ylidene) hydrazinyl)-N-(pyrimidin-2-yl) benzenesulfonamide (MPBS) inhibitor has been synthesized according to the procedure reported in our previous work [21]. Briefly, a solution of 3-methyl-1-tosyl-1H-pyrazol-5(4H)-one [22] (10 mmol) and sodium acetate (2 g( in ethanol (20 mL) was treated with the appropriate diazonium salt of sulfadiazine (10 mmol). This salt was preciously prepared by diazotizing a solution of 4-amino-N-(pyrimidin-2-yl)benzenesulfonamide (10 mmol) in HCl (1.5 mL) with a solution of NaNO2 (10 mmol) in 5 mL water in an ice bath according to the scheme presented in our previous work [21].

Electrochemical measurements

Mild steel plates (sizes 5.0 × 1.0 × 0.1 cm) were supplied by AL-EZZ Company, Alexandria, Egypt. The steel composition was Fe (98.74%), Mn (0.71%), Cu (0.182%), C (0.17%), Ni (0.072%), Cr (0.045%), Si (0.022%), F (0.022%), Al (0.0017%), Sn (0.011%), Mo (0.011%), and P (0.010%) mass percentage. Before the test, the plates were manually sanded using emery paper (SiC paper up to 1000 and 1400 grade) to obtain a mirror finish surface. Specimens were then washed by acetone and dried with air before dipping in the trial/test solution.

A 1.0 mol/LH2SO4 solution is prepared from a 95–98% concentrated solution (Sigma-Aldrich Laborchemikalien, German) and used as a corrosive medium. The inhibitor used herein at concentrations from 1 × 10–4 to 9 × 10–4 M was prepared in 1.0 M sulfuric acid solutions at 30 °C.

The corrosion cell used in this study consists of three electrodes, mild steel as a working/employed electrode, Pt wire as a counter electrode, and saturated calomel as a reference electrode. The exposed surface domain of the employed electrode is 1.0 × 1.0 cm.

The electrochemical behavior of the mild steel sample in 1.0 mol/LH2SO4 solution at various concentrations of MPBS corrosion inhibitor at 30 °C was researched applying open-circuit potential (OCP) for 30 min to an equilibrium state was achieved. Potentiodynamic polarization tests were performed to estimate Tafel slopes using the EG&G potentiostat/galvanostat version 273A with corrosion analysis software 352/252 2.01 (Princeton Applied Research, USA). The linear polarization (LP) was calculated from – 20 to + 20 mV versus corrosion potential (Ecorr). The Tafel plots (TP) were traced from –250 to + 250 mV versus Ecorr. The scanning rates for LP and TP were 0.166 and 0.4 mV/s, respectively [23]. In the existence and non-existence of the MPBS inhibitor, electrochemical impedance spectroscopy (EIS) was utilized to examine the attitude of mild steel after 2 h of inundation. A sinusoidal voltage signal of 10 mV was operated in a frequency limit of 105 to 10–3 Hz. EIS measurements were taken with an AUTO AC DSP device (ACM Instruments) device. All impedance analyses were done at the open-circuit potential and 30 °C [24].

Morphological study

A scanning electron microscope (SEM) is employed to investigate the exterior surface morphology and topology of mild steel in the presence and absence of the inhibitor. SEM was assessed using JEOL (JEOL Ltd, Tokyo, Japan) JSM 5400 LV scanning microscope.

Quantum calculations

Quantum chemical estimations were achieved using the Gaussian 09 W program. Molecular geometries of the studied MPBS inhibitor were optimized with B3LYP/6-311G (d, p) [25, 26]. The chemical quantum factors such as the highest occupied molecular orbital energy (EHOMO), lowest unoccupied molecular orbital energy (ELUMO), energy gap (∆E), electron affinity (EA), ionization potential (IP), electronegativity (χ), global hardness (η), softness (σ), electrophilicity index (ω), dipole moment (Dm), total energy (TE) and the fraction of electrons transferred (ΔN) were considered as the following Eqs. (1)–(8) [27,28,29,30,31]:

$$\Delta E = E_{{{\text{LUMO}}}} - E_{{{\text{HOMO}}}}$$
(1)
$${\text{EA}} = - E_{{{\text{LUMO}}}}$$
(2)
$${\text{IP}} = - E_{{{\text{HOMO}}}}$$
(3)
$$x = \frac{{{\text{IP}} + {\text{EA}}}}{2}$$
(4)
$$\eta = \frac{{{\text{IP}} - {\text{EA}}}}{2}$$
(5)
$$\sigma = \frac{1}{\eta }$$
(6)
$$\omega = \frac{{x^{2} }}{\eta }$$
(7)
$$\Delta N = \frac{{\left[ {x^{{{\text{Fe}}}} - x^{{{\text{inh}}}} } \right]}}{{2\left[ {\eta^{{{\text{Fe}}}} + \eta^{{{\text{inh}}}} } \right]}}$$
(8)

In Eq. (8), theoretical electronegativity and hardness values for iron were taken as (χFe ≈ 7 eV and as ηFe = 0) [32]. The maps of molecular electrostatic potential (MEP) and their contours were calculated to determine electrophilic and nucleophilic sites on the inhibitor's surface.

Results and discussion

Structural characteristics of the synthetic inhibitor

Full characterization data of the prepared inhibitor, including FTIR, 1HNMR, 13CNMR, and elemental analysis (C, H, N, S), are presented and discussed in detail in our previous work [21]. FTIR spectra illustrated the active groups predicted in the fabricated compound inhibitor, as listed in Table 1. 1HNMR data indicated the distribution of hydrogen H+ in the synthesized inhibitor. 13CNMR spectra indicated the expected distribution of carbon atoms within the synthesized inhibitor. In addition, Table 1 shows the elemental composition (C, H, N, and S) indicated that approximately the elemental percentage of the theoretic and real data for each element is closed, proving that the proposed inhibitor is prepared with a high grade of purity.

Table 1 FTIR bands and elemental analysis (C, H, N, and S) of the synthesized MPBS inhibitor

Electrochemical measurements

Figure 1a illustrates the variation of the OCP of the mild steel electrode was submerged for 30 min in 0.1 M sulfuric acid as well as in the existence of numerous concentrations of corrosion inhibitor at 30 °C to establish steady state (OCP). After measuring the steady state (OCP) for blank solution shifts to a slightly negative potential than the immersion potential values, that indicates the destruction of pre-immersion oxide film on the electrode surface [32]. When different concentrations of MPBS are added as an inhibitor to the aggressive medium, values of steady state (OCP) shift towards positive direction of potential than the steady state (OCP) of blank, due to the formation of an outer-layer of MPBS inhibitor molecules on the mild steel exterior-surface which effect directly on the anodic corrosion reaction [33].

Fig. 1
figure 1

Potential time (a) and Tafel polarization (b) curves for mild steel in 1.0 mol/L H2SO4 containing various concentrations of MPBS inhibitor at 30 °C

Linear and Tafel polarization techniques provide two methods for measuring the corrosion rate (CR) of the studied metal electrode. The LP values were obtained from the current I (μA/cm2)/potential E (mV) plots at free corrosion potential. The values of the polarization resistance (Rp), the inhibition efficiency (ηp%), and the corrosion current density (Icorr) are listed in Table 2. The findings revealed that Rp and ηp increased, and Icorr decreased with increasing the inhibitor concentration in blank solution at 30 °C. This indicates that MPBS acts as a suitable inhibitor due to creating a layer on the metal exterior-surface [34]. The Tafel plots of the mild steel corrosion without and with MPBS compound concentrations varied from 1 × 10–4 to 9 × 10–4 M are exhibited in Fig. 1b. The polarization data, such as corrosion potential (Ecorr), cathodic (βc) and anodic (βa) Tafel slopes, CR, ηp, and coverage surfaces (θ), are obtained from Tafel polarization curve extrapolation [31, 35, 36]. These parameters are listed in Table 2. The CR, ηp and θ are calculated using Eqs. (9)–(11).

$${\text{CR}} = 0.13 I_{{{\text{corr}}}} \frac{{\left( {{\text{Eq}} \cdot {\text{Wt}}} \right)}}{A \cdot d}$$
(9)
$$\eta p\% = \left[ {\frac{{\left( {{\text{CR}}_{{{\text{uninh}}}} - {\text{CR}}_{{{\text{inh}}}} } \right)}}{{{\text{CR}}_{{{\text{inh}}}} }}} \right]$$
(10)
$$\theta = \frac{\eta p\% }{{100}}$$
(11)

where Eq·wt is the metal equivalent mass, A is the area (cm2), d is density (g/cm3), and 0.13 is the time conversion factor. CRuninh and CRinh are the corrosion rates in the absence and existence of the proposed corrosion inhibitor. The values of Tafel slopes are markedly changed in the existence of various concentrations of MPBS as a corrosion inhibitor. These results reflect the effect of MPBS on both the anodic and cathodic reactions and thus are deemed to be a mixed type inhibitor for mild steel electrode in 1.0 mol/L H2SO4 [37, 38]. The gained results in Table 2 exhibited that the CR of mild steel in the deficiency of MPBS corrosion inhibitor increased steeply, whereas the CR increases slowly in the present concentrations of MPBS compound as an inhibitor [39]. The corrosion repression efficiency values rise in the presence of MPBS inhibitor, and protective action can be assigned to the electron density. This electron density differs with the substituents in the inhibitor molecules. The nitrogen can more easily provide an unmarried couple of electrons to the mild steel surface and thus reduce corrosion rate [40]. Table 2 indicates better MPBS at 30 °C (ηp = 93.61% at 9 × 10–4 M) due to high molecular weight (513.09 gm) and presence of S, N, O, and aromatic rings, which have the ability to adsorption and formation of shielding and protecting layers on the mild steel surface.

Table 2 Potentiodynamic factors for mild steel in 1.0 mol/L H2SO4 containing various concentrations of MPBS inhibitor at 30 °C

Electrochemical impedance spectroscopy has many advantages over other electrochemical methods in studying corrosion [41]. Figure 2 demonstrates Nyquist plots for mild steel in blank solution and several concentrations of MPBS at 30 °C. It shows one part of semicircles with one capacitive loop that increases in diameter in the presence of the tested compound. The EIS parameters, including charge-transfer reluctance (Rct), double-layer capacitance (Cdl), and corrosion repression efficacy (ηI, %), are analyzed using an equivalent circuit model as shown in the inset of Fig. 2 and listed in Table 3. ηI and Cdl are calculated using Eqs. (12), (13)[42].

$$\eta I \left( \% \right) = \theta \times 100 = \left[ {\frac{{R_{{{\text{ct}}\left( {{\text{uninh}}} \right)}} - R_{{{\text{ct}}\left( {{\text{inh}}} \right)}} }}{{R_{{{\text{ct}}\left( {{\text{uninh}}} \right)}} }}} \right] \times 100$$
(12)
$$C_{{{\text{dl}}}} = \left( {Y_{0} R_{{{\text{ct}}}} ^{1 - n} } \right) ^{\frac{1}{n}}$$
(13)

where Rct(inh) and Rct(uninh) are the charge-transfer resistance in the case of with and without of MPBS inhibitor, Y0 and n are the constant phase element (CPE) and the CPE directrix, respectively.

Fig. 2
figure 2

Nyquist plots and the equivalent circuit (inset) used to fit the impedance data for mild steel in 1.0 mol/L H2SO4 solutions containing various MPBS inhibitor concentrations at 30 °C

Table 3 Impedance data for mild steel in 1.0 mol/L H2SO4 solution containing various concentrations of the MPBS inhibitor at 30 °C

Table 3 illustrates that Rct increases while Cdl reduces in the existence of the corrosion inhibitor. The Rct increment with the growth of corrosion inhibitor concentration is due to the growth of the electrical double-layer thickness as a result of the gradual replacement of water on the mild steel surface by adsorbed corrosion inhibitor molecules [43]. The reduction in Cdl and the expansion in electrical double-layer thickness confirm the inhibitor's adsorption on both anodic and cathode sites [44].

Adsorption isotherm

The adsorption of corrosion inhibitor at the exterior metal boundary exemplifies the first stage in the inhibition process. Calculation of adsorption isotherm is essential to comprehend the interface between MPBS as a corrosion inhibitor and the exterior-metal surface in blank solutions. It is observed that adsorption of the corrosion inhibitor on the mild steel external surface complies with Langmuir isotherm as follows:

$$\frac{\theta }{{1 - \theta }} = K_{{{\text{ads}}}} C$$
(14)

where Kads, C, and θ are the adsorption constant, corrosion inhibitor concentration, and the exterior surface exposure/coverage obtained from the potentiodynamic measurements, respectively. Figure 3 shows that the excellent fitted straight line was achieved from the scheme of C/θ versus C. The correlation factor (R2) was employed to select the isotherm most excellent fit with the experimental findings. The adsorption free energy \(\Delta G_{{{\text{ads}}}}^{ \circ }\) was calculated based on Eq. (15) [45].

$$\Delta G_{{{\text{ads}}}} = - 2.303\left( {{\text{RT}} \log \left( {55.5 K_{{{\text{ads}}}} } \right)} \right)$$
(15)

where T is the temperature (K), and the value 55.5 refers to the molar-concentration of water. The negative value of ∆Gads indicated that the adsorption operation willingly processes and steadiness of the formed layer-shield on the mild steel exterior surface [46]. In general, values from – 20 up and – 40 kJ/mol of ∆Gads are harmonious with the electrostatic attraction between the corrosion inhibitor and the charged metal-surface (physically-adsorption). Extra-negative values of ∆Gads suggest the sharing or shift of electrons from the corrosion inhibitor to the metal exterior surface to create a real coordinate chemical bond (chemically-adsorption) [47]. Based on Fig. 3, \(\Delta G_{{{\text{ads}}}}^{ \circ }\)value was found to be − 10.20 kJ/mol, which is proportionate with the physical adsorption of the corrosion inhibitor on the mild steel exterior surface.

Fig. 3
figure 3

Langmuir adsorption plot for mild steel in 1.0 mol/L H2SO4 solution containing various concentrations of the MPBS inhibitor at 30 °C

Morphological investigations

The SEM micrograph outlines the exterior surface of mild steel, as illustrated in Fig. 4a. The micrograph of the mild steel top-view surface demonstrated an uncompromising attack after dipping in the blank solution for one day, in which situation the external surface seemed to be cruelly harmed due to a few fractures and pits as a result of the offensive of corrosive medium. On the other hand, after inundation in 1.0 mol/L H2SO4 solution for 24 h and the presence of the corrosion inhibitor (9 × 10–4 M, MPBS, Fig. 4b), SEM image displayed the creation of dense adsorbed layers on the exterior surface of mild steel and a lessening in surface coarseness associated to the external surface of blank, mild steel as revealed in Fig. 4a. It has been proved that there is an effective defensive outer-layer of the proposed corrosion inhibitor adsorbed on the mild steel outer-surface. That adsorbed MPBS outer layer is answerable for the safeguard against the corrosion process of the mild steel surfaces.

Fig. 4
figure 4

SEM images of mild steel surface after 1 day immersed in 1.0 mol/L H2SO4 at room temperature in the absence (a) and existence (b) of MPBS inhibitor

Quantum chemical calculations

Optimized geometries of MPBS and its distributions HOMO, LUMO are shown in Fig. 5a. It could be observed that MPBS has a similar distribution of HOMO and LUMO. The HOMO and LUMO of MPBS corrosion inhibitor are found mainly around the (C, N, and O) moiety. The existence of N and O atoms on these molecules, along with many π-electrons, guarantees high adsorption of the corrosion inhibitor on the mild steel external surface. In Table 4, the decrease in value of EL, as well as the increase in the value of EHOMO, reflects an increase in inhibitor efficiency. The high value of EHOMO corresponds to the propensity of the molecule to provide electrons and the higher inhibition behavior for the metal.

Fig. 5
figure 5

The optimized molecular structure HOMO and LUMO (a), and the total charge density (b) of the investigated MPBS using density functional theory 6-311G (d, p) basis set method

Table 4 The calculated theoretical chemical parameters of MPBS at B3LYP/6-311G (d, p) basis set method

In contrast, the low value of ELUMO demonstrates the predisposition of the molecule to receive a lone pair of electrons [48]. The lower value of the energy gap (ΔE = ELUMO − EHOMO) will result in excellent inhibition efficiency. From Table 4, it has been shown that inhibition efficiency will be high due to the low value of hardness equal to 0.781 eV and the high value of softness [49]. The electrophilicity index of MPBS was found to be 61.871 eV, which confirms the high inhibition efficiency. The efficiency of inhibition increases due to the high value of the dipole moment, depending on the type and nature of the molecules employed. Adsorption may be increased by the elevated value of 9.094 Debye. Therefore, it is possible to protect the mild steel surface. Moreover, Table 4 shows that the high total energy (TE) value (− 2367.68 a.m.u) indicates the molecule higher stability, and therefore, its propensity to donate potential is lower [50, 51]. In Lukovits’s study, the inhibition efficacy increases by boosting the electron-providing capability of the corrosion inhibitor on the exterior metal surface, where the value of ΔN is less than 3.6 [51]. The MPBS∆N considerable value of 0.32 eV shows the maximum electron transfer and the higher efficiency of inhibition.

The determination of active sites on inhibitors is essential to the mechanism of corrosion. Among essential parameters for determining active inhibitor-sites are molecular electrostatic potential (MEP) maps and MEP contours. The MEP has been utilized to define the electrophilic and nucleophilic locations on the molecule. The negative (red) regions and the positive (blue) regions of MEP indicate nucleophilic and electrophilic reactivity, respectively. The blue color regions prefer to interact with the electron-rich locations of specific chemical species such as metals, while red color regions prefer to interact with electron-poor locations of the metal surface, according to Fig. 5b, the blue color around the C atom of C=O group in which the pentadactyl chain is attached is dominated; hence this C atom has electrophilic reactivity. Mulliken population assessment was used to assess the adsorption addresses of corrosion inhibitor and the calculations of the charge spreading over the whole scope of the molecule skeleton [52]. In Table 5, the computed Mulliken negative charges of chosen atoms (carbon, oxygen, and nitrogen) are presented. Therefore, they preferred adsorption sites on a mild steel external surface [53]. The contours of the MEP shown in Fig. 5b are red, which is associated with negative charges. The steric effect can be seen in the MEP contour. From the contour of the MEP, the O atom of the other C=O group common to all inhibitors is the active site with less steric effect.

Table 5 Calculated Mulliken atomic charges of the MPBS inhibitor

Mechanism of inhibition

The zero-charge potential of mild steel in acidic solutions is reported to be positive [54]. Therefore, the SO42– ions are electrostatically attracted to the metal surface, creating a layer of negative charges. This will favor the adsorption of MPBS on the surface and thus reduce the dissolution of mild steel. In addition to this electrostatic attraction between the azopyrazole-benzenesulfonamide derivative and the metal exterior-surface, the obtained ∆Gads value is consistent with physical adsorption mode. Nevertheless, the existence of lone pairs of electrons and benzene rings may promote the adsorption process. There may still be a chance for the formation of coordination bonds by the lone pair of electrons and some vacant orbits for metal. However, owing to the obtained results, such a combination is expected to occur on a small scale. The results indicated that the inhibition efficiency was excellent. This could be explained in view of the molecular structures of the tested compound. Thus, the presence of benzene rings, N, O, and S in the MPBS structure promotes its inhibitive action.

Conclusion

The experimental and theoretic findings indicate that the azopyrazole-benzenesulfonamide derivative (MPBS) works at room temperature as an efficient corrosion inhibitor of mild steel corrosion in 1.0 mol/L H2SO4 with maximal inhibition proficiency (93.61%). The values of inhibition efficacy rise with the growth of corrosion inhibitor concentration. The MPBS compound's adsorption on a mild steel exterior-surface of 1.0 mol/L H2SO4 is a physical phenomenon indicated by the values of (∆Gads) obtained and observed by the Langmuir isotherm. SEM analyzed the surface morphology and gave a tangible idea and real perception about creating a shielding layer on the exterior surface of mild steel, which reduces the corrosion level. Some chemical quantum factors have been calculated to interpret the inhibition mechanism further. The parameters were noticed to be close to the inhibition efficiencies of the corrosion resistance established.