1 Introduction

Corrosion is a natural process which results from physicochemical interactions between a metal and its environment that leads to a weakening of the metal surface, its surroundings and that could affect the technical systems of which they make a part of it. Generally, the resistance of the material depends upon the surrounding environment and of course is not an intrinsic property. Corrosion can be controlled by proper selection of the materials and an irrational control of the chemical composition of the environment. Corrosion affects the world’s economy, people’s health and safety like how corona in these two years affecting the entire world. Almost in all industries, mild steel (MS) is a common and cheap metal used because of its good mechanical, physical and chemical properties. The ferromagnetic properties of MS make it more perfect for the manufacture of electrical devices and motors. Nearly most of the industries are extensively using sulfuric acid medium as corrosive solution, which induced a great deal of research on MS (Ref 1). The deterioration of the metal caused by this medium makes the research more anticipated toward the use of corrosion inhibitors (Ref 2). Though many corrosion controlling methods are available, application of inhibitors to acidic medium was found to be effective in industries like electroplating, boilers, energy, etc. In these industries, corrosion occurs during acid pickling, descaling, etc., because these processes are taking place frequently.

In past few decades, organic inhibitors are more preferred due to environment safety and also they perform well in almost all environments. Moreover, corrosion inhibitors that are usually operative only for specific metal/alloys in some environment, but the rust environments are vastly variable; thus, an inhibitor may not work well in all the environments. So, it is required to develop and design new compounds that can act well for different environment and plentiful compounds are designed (Ref 3). Compounds containing nitrogen, oxygen, phosphorous, π-bonds, etc., are considered to be active corrosion inhibitors (Ref 3, 4) and the molecules get adsorbed on the metal surface via adsorption phenomenon; thereby creates a barrier to corrodent attack. Physicochemical properties such as aromaticity, functional groups, molecular size, molecular weight, steric factor, molecular structure, orbital character of donating π electrons and electron density of the donor atoms are mainly responsible for adsorption process.

In this context, many researchers have studied a variety of compounds containing heterocycles in their structure (Ref 5,6,7,8). Recently, the carbon dot inhibitors have been reported in order to replace the conventional inhibitors and to avoid environmental pollution (Ref 9, 10). Among the organic inhibitors reported so far, the isoxazoline derivatives were selected for this study based on the fact that they are five membered organic structures that contain oxygen and nitrogen heteroatoms which are mainly responsible for corrosion inhibition. Substituted isoxazoline derivatives find an extensive range of applications in the field of pharmaceutical, agrochemical agents and medicinal research. These are also used as corrosion inhibitors for fuels and lubricants and show good potency in animal lubricants (Ref 11, 12).

N&O-containing azole heterocyclic molecules possess lone pair of electrons on the oxygen and nitrogen atoms that have beneficial effects that are related to their special affinity to adsorb on the metallic surfaces. These lone pair of electrons can interact favorably with the vacant orbitals of metal, leading to the formation of protective barrier film. Only 7% of the papers have been reported on the isoxazole derivatives so far (Ref 13). These properties expressed their antitoxic environment and eco-friendly. These compounds are believed to give good efficiency toward corrosion prevention of MS because of the presence of polar groups in their molecular structure and they have tendency to form a complex with the metal surface, both of these features make possible to strengthen the adsorption process on the metal surfaces in aggressive solution.

Three isoxazoline compounds were synthesized in our laboratory and they are characterized using Fourier transform infrared (FTIR) and 1H nuclear magnetic resonance (NMR) spectroscopy techniques. The effectiveness of the synthesized isoxazoline derivatives has been assessed as corrosion inhibitors for MS in 1M H2SO4 by electrochemical and non-electrochemical techniques. The morphology of MS with the isoxazoline derivatives has been verified by scanning electron microscope (SEM) and atomic force microscopy (AFM) techniques. To complement the experimental evidence, density-functional theory has been applied to compute electronic properties possibly relevant to the inhibition action (Ref 14). The experimental data can be correlated well with molecular dynamic (MD) simulations (Ref 15,16,17).

2 Materials and Methods

2.1 Synthesis of Inhibitors

Isoxazoline derivatives were synthesized in two steps as per the reported procedure (Ref 18). The structure of the investigated compounds was shown below.

FTIR spectra were recorded using IR Affinity 1 spectrometer (Shimadzu) and Bruker model using DMSO (solvent) for NMR have been used for the characterization of the synthesized compounds.

PAMHI Yield: 87%, brown solid, IR Spectrum (ν/cm-1): 3295.52 (NH); 1590.38 (C=N), 1317.44 (>C-O-N<); 3380.40 (OH), 1546.98, 1417.74 >C=C< (Ar). 1H NMR (300 MHz, DMSO solvent-d6) δ (ppm): 5.37 (1H, OH), 4.01 (1H, C-NH), 5.93 (CH methine), 3.84 (3H, -OCH3), 6.48-7.29 (5H, Ar-H), 6.94-7.23 (4H, Ar-H).

PAMI Yield: 77%, pale brown color solid, IR Spectrum (ν/cm-1): 3294.56 (NH); 1599.06 (C=N), 1306.83 (>C-O-N<); 1529.62, 1472.71 >C=C< (Ar); 1H NMR (300 MHz, DMSO solvent -d6) δ (ppm): 4.0 (1H, C-NH), 5.95 (CH methine), 3.83 (3H, -OCH3), 6.45-7.25 (5H, Ar-H), 6.95-7.27 (4H, Ar-H).

PAHI Yield: 75%, Gray color solid, IR Spectrum (ν/cm-1): 3325.42 (NH); 1551.80 (C=N), 1369.52 (>C-O-N<); 3449.84 (OH), 1551.80, 1420.63 >C=C< (Ar); 1H NMR (300 MHz, DMSO solvent-d6) δ (ppm): 5.36 (1H, OH), 4.02 (1H, C-NH), 5.95 (CH methine), 6.48-7.21 (5H, Ar-H), 6.68-7.17 (4H, Ar-H).

2.2 Electrode Composition

Composition of MS (in %) is 0.084 - C, 0.369 - Mn, 0.129- Si, 0.025 -P, 0.027 - S, 0.022 - Cr, 0.011 - Mo, 0.013 - Ni and the remaining iron were used for weight loss and electrochemical measurements. MS specimen of size 1cm × 3cm × 0.0 cm and 0.785 cm2 area was used for the same measurements mentioned above. MS coupons were polished by using emery sheets of different grades (200, 400, 600 and 1200) and solvent (trichloroethylene) for degreasing purpose, then the coupons are dried, then finally kept in a desiccator (absorption of moisture can be avoided).

2.3 Non-Electrochemical and Electrochemical Measurements

ASTM standard G31-72 procedure was followed to carry out gravimetric corrosion measurements. Inhibition efficiency (IE %), corrosion rate (CR) and surface coverage (θ) were calculated by the formulae used in the literatures (Ref 4).

The electrochemical measurements were recorded using computer-controlled potentiostat (IVIUM Compactstat Potentiostat/Galvanostat). MS specimens were immersed, half an hour for stabilization period was observed for Eocp prior to the impedance measurements in order to get stable value. Corrosion potentials over a frequency range of 10-0.01 Hz, 10 mV as signal amplitude was set to measure the impedance parameters. Real part (Z′) as well as imaginary part (Z″) were measured at various frequencies. The parameters such as charge transfer resistance (Rct) and double layer capacitance (Cdl) were calculated from a plot of Z′ Vs Z″. In the same cell, after EIS studies, potential range of -200 mV to +200 mV with respect to open circuit potential at a sweep rate of 0.5 mV/sec were set for polarization measurements and the electrochemical parameters and inhibition efficiency were determined from the plot.

2.4 Surface Examination Study

SEM and AFM studies were carried out to observe the changes in the MS surface with and without inhibitors. At 303 K, MS specimens were dipped into the corrosive solution containing with and without optimal concentration of the inhibitors for 6 hours using the equipment NTMDT, NTEGRA prima.

2.5 Computational Details

Quantum chemical computations were used to sketch the inhibitors' molecular structures. DFT (density-functional theory) using (B3LYP) with 6-311G (d,p) basis set implemented in Gaussian09 software package was used to accomplish complete geometrical optimization of the examined molecules (Ref 19,20,21,22,23,24,25). This method has been demonstrated to produce advantageous geometries for a wide range of systems. Because electrochemical corrosion occurs in the liquid phase, the impact of the solvent must be included into the calculations. The molecular properties obtained, such as the energy of the highest occupied molecular orbital (EHOMO), the energy of the lowest unoccupied molecular orbital (ELUMO), the energy gap (ΔE), electronegativity (χ), global hardness (η), global electrophilicity index (ω) and total energy (TE), were then used to elucidate the reactive sites in the various structures and the reactivity trends among structures. In addition, the experimental data were compared to the trends in the computed quantum chemical descriptors.

The study of the behavior of reactivity between the active sites of the selected isoxazolines and the iron atoms (110) of the metal surface was carried out by molecular dynamics (MD) simulation (Ref 26). This simulation was carried out taking into account the experimental conditions. For this purpose and utilizing Material studio software (Ref 27). We have built a crystalline system that carries six layers of iron atoms emptied by a distance of 19.9 Å with a supercell of size 27.30* 27.30* 37.13 Å3 and with a supercell range (11 x 11). This vacuum contains 5H3O+, 5Cl, 500 H2O and an only one monomer optimized for each simulation. Before starting the simulation, the compass was utilized as a force field, the dynamics run parameter are Ensemble NVT at 303 et 333 K, simulation time 400 ps with time step 1 fs, spline width 1 Å, cutoff distance 15.5 Å, buffer width 0.5 Å and Thermostat Andersen (Ref [28, 29]).

The interaction (Einteraction) and binding (Ebinding) energies of our system were defined as follows, respectively (Ref 30):

$$E_{{{\text{interaction}}}} \; = \;E_{{{\text{total}}}} \;{-}\;\left( {E_{{{\text{surface}} + {\text{solution}}}} + \, E_{{{\text{inhibitor}}}} } \right)$$
(1)
$$E_{{{\text{binding}}}} = \, E_{{{\text{interaction}}}}$$
(2)

Where Etotal translates total energy of our system.

3 Results and Discussion

3.1 Non-Electrochemical Method - Weight Loss Method

Various concentrations (0.5-10 mM) of the isoxazolines synthesized for this study were tested in 1 M H2SO4 for a period of 3 hours. The values in Table 1 indicates that by increasing the concentration of isoxazoline concentrations, weight loss as well as corrosion rate of MS were found to decrease which tends to increase the percentage inhibition efficiency (ηWL %). This trend could result from the adsorption of isoxazoline molecules and also the area of surface coverage rises with an increase in the inhibitor concentrations that is owing to the formation of stable film on the MS surface (Ref 31,32,33,34,35). At highest concentrations of isoxazolines say 10 mM, more than 90% inhibition efficiency was achieved which confirmed that synthesized isoxazolines were agreed to be potential inhibitors for the prevention of MS. This happened due to the presence of active sites in the isoxazoline derivatives like –NH group, π-bonds in benzene group and N, O atoms where the lone pair of electrons are present on those atoms (Ref 36,37,38,39). According to their inhibition efficiencies, the ranking order of the isoxazoline derivatives follows the sequence order: PAMHI > PAMI > PAHI.

Table 1 Mass loss, Corrosion rate, inhibition efficiency and surface coverage (θ) of mild steel immersed in 1 M H2SO4 at various concentrations of PAMHI, PAMI and PAHI at 303 K

3.2 Electrochemical Measurements

3.2.1 Electrochemical Impedance Spectroscopy (EIS)

Impedance parameters like charge transfer resistance (\({\mathrm{R}}_{\mathrm{p}}\)), double layer capacitance (\({\mathrm{C}}_{\mathrm{dl}}\)) and inhibition efficiency are presented in Table 2 for the absence and the presence of various concentrations of isoxazolines (PAMHI, PAMI and PAHI) in 1 M H2SO4 and the impedance curves are depicted in Fig. 1. From both figure and table, it is revealed that when the inhibitors (PAMHI, PAMI and PAHI) concentration increases, there is an increase in diameter of the semicircle and then the impedance spectra displayed one single depressed semicircle which suggested that MS corrosion is controlled by the charge transfer process and furthermore addition of isoxazoline inhibitors did not change any mechanism of MS dissolution (Ref 40). The polarization resistance is measured by the difference in real impedance at lower and higher frequencies. When the concentrations of the isoxazoline inhibitors increases, its electrical capacity decreases may be revealed that protective layer might get formed on the electrode surface (Ref 41). The equivalent circuit (Fig. 1) is used to match the impedance spectra and extract various characteristics like electrolyte resistance (\(R_{e}\)), charge transfer resistance (\(R_{ct}\)), inhibitor film resistance (\(R_{f}\)) and polarization resistance (\(R_{P}\)).

Table 2 EIS data for MS in 1 M H2SO4 electrolyte alone and with PAMHI, PAMI and PAHI.
Fig. 1.
figure 1

Nyquist diagram for mild steel in 1 M H2SO4 for selected concentrations of inhibitors: PAMHI, PAMI and PAHI and the employed circuit for fitting EIS spectra

The \(R_{P}\) denotes the sum between \(R_{f}\) and \(R_{ct}\). As a result of the electrode surface heterogeneity, constant phase elements (CPE) are employed in place of double layer capacitance (\(C_{dl}\)) (Ref 42). The physical expression of CPE impedance is (Ref 42):

$${\rm Z}_{{{\text{CPE}}}} = \frac{1}{{Q^{1} \times \left( {i \times \omega } \right)^{n} }}$$
(5)

Where \(Q\), i, \(\omega\) and \(n\) stand for CPE constant, imaginary number, angular frequency and phase shift, respectively. \(n\) symbolizes the deviation from the ideal behavior ranging from 0 and 1. Equation. (6) defines the relationship between the impedance of the CPE and the \(C_{dl}\) (Ref 43):

$$C_{{{\text{dl}}}} = \left( {Q^{1/n} \left( {R_{P} } \right)^{1 - n/n} } \right)$$
(6)

with (τ), the charge transfer process's time constant is computed as:

$$t = C_{{{\text{dl}}}} R_{p}$$
(7)

Chi-square element was surveyed to verify the accuracy of the fitted data. All the outcomes provided a less (10-3) values of Chi-square (Table 2), mirroring the good agreement between the fitting information and the experimental finding. The inhibiting performance (\(\eta_{Z}\)) generated by EIS is given by the next expression:

$$\eta_{Z} \left( \% \right) = \left( {1 - \frac{{R_{p}^{0} }}{{R_{p} }}} \right) \times 100$$
(8)

where \(R_{p}^{0}\) and \(R_{p}\) corresponding to the polarization resistances in the uninhibited and inhibited electrolyte, respectively.

When there is an increase in isoxazoline inhibitor concentration, the thickness of the protective layer increases because more PAMHI, PAMI and PAHI would be adsorbed on the electrode surface electrostatically, which results in an observable decrease in Cdl. This tendency is in accordance with Helmholtz model. A barrier was created by the inhibitor film between MS surface and aggressive solution (Ref 44) for the studied inhibitors where the inhibition efficiency was increased due to the protective film formation on the MS surface. The uncontrolled electrolyte had higher Q values than the inhibited electrolyte, indicating that the studied molecules interacted with the MS surface, inhibiting the metal's exposed active sites. Indeed, the uninhibited system's n value is smaller than that of the system with PAMHI, PAMI and PAHI, indicating a decrease in surface heterogeneity (Ref 45). Values of inhibitive performance \(\eta_{Z}\) rise with the amount of PAMHI, PAMI and PAHI up to 93.3% for PAMHI, 92.6% for PAMI and 89.6% for PAHI at 10 mM. It is worth mentioning that the value of the relaxation time constant (s) slowly increases with isoxazoline derivatives concentration as well and the time of adsorption process becomes therefore much higher which means a slow adsorption process (Ref 46, 47). PAMHI has the highest value of s, implying that PAMHI was the slowest in the adsorption processes.

3.3 Potentiodynamic Polarization Measurements

Electrochemical parameters such as icorr, Ecorr, ba and bc values obtained from Tafel plots extracted from these curves are shown in Table 3 for MS in 1 M H2SO4 containing various concentrations of isoxazolines as shown in Fig. 2. The obtained icorr values were decreased with increase in inhibitor concentration and percentage ηP increased as well. After the addition of isoxazoline compounds to the acid solution, anodic metal dissolution of iron and cathodic reactions were inhibited and this trend can be seen from Fig. 2.

Table 3 The extracted parameters from Tafel plots for the MS/1 M H2SO4 system in the presence and absence of PAMHI, PAMI and PAHI at 303 K
Fig. 2.
figure 2

Tafel plots for the MS/ 1 M H2SO4 system in the presence and absence of various amounts of PAMHI, PAMI and PAHI at 303 K

The results revealed that the adsorption takes place on the active sites of MS surface by the isoxazoline inhibitor molecules (Ref 48). Moreover, when the isoxazoline concentration increases, both anodic and cathodic reactions are more pronounced which indicates that the cathodic Tafel slopes (bc) of isoxazolines derivatives changed with inhibitor concentration which denote that inhibitors controlled by cathodic reactions. However, the anodic polarization plot is less pronounced compared to that of the cathodic polarization plot. The addition of isoxazolines to the aggressive solution does not modify the reduction mechanism because the parallel lines were obtained by the cathodic current potential curves and the reduction takes place mainly through a charge transfer mechanism at MS surface (Ref 49,50,51). These results suggested that the presence of isoxazolines (PAMHI and PAHI) inhibited iron oxidation and in a lower extent undergoes cathodic reduction reaction. Further inspection of the isoxazoline (PAMI) revealed that on increasing the concentration both anodic and cathodic current densities were shifted. Hence, it can be concluded that PAMI behaved as mixed type, since electrode potential displacement is lower than 85 mV in any direction. However, in inhibitors (PAMHI and PAHI) minor shift of Ecorr values toward negative direction suggests the predominant cathodic control over the reaction.

The inhibiting performance (\(\eta_{p}\)) comes from polarization measurement is determined by the following equation:

$$\eta_{p} \left( \% \right) = \left( {1 - \frac{{i_{cr} }}{{i_{cr}^{0} }}} \right) \times 100$$
(9)

where \(i_{cr}^{0}\) and \(i_{cr}\) corresponding to the corrosion current densities values in the uninhibited and inhibited electrolyte, respectively.

3.4 Adsorption Isotherm

How the interaction between the studied isoxazoline molecules as inhibitors and metal surface (MS) can be studied? The answer is it can be studied by the adsorption isotherm which provides basic and important information (Ref 52, 53). To obtain an isotherm, it is necessary to find the linear relation between θ values and C. Based on the experimental findings, Langmuir adsorption was obeyed by the inhibitor and it was plotted by considering one of the most accurate studies, viz., polarization measurements. According to Langmuir’s assumptions, all the adsorption sites are comparable and the binding of the particle takes place independently from nearby sites whether occupied or not.

According to this isotherm, the following equation relates θ and C

$$\frac{{{C}}}{{{\theta}}}= \frac{{{1}}}{{{{K}}_{ads} }}\,+ \,{{C}}$$
(3)

Intercept values were calculated from the plot of C/θ-axis (Fig. 3) and calculated Kads values can be related to free energy of adsorption, \(\user2{\Delta G}_{{{\varvec{ads}}}}^{\user2{^\circ }}\) as given by

$$K_{{{\text{ads}}}} = \frac{1}{{C_{{H_{2} O}} }} \times e^{{\frac{{ - \Delta G_{{{\text{ads}}}}^{0} }}{RT}}}$$
(4)

where R is the universal gas constant, T is the temperature, which equal to 303 K and is the concentration of water in solution, which equal to 55.5 mol L-1.

Fig. 3.
figure 3

Langmuir plot of inhibitors in 1 M H2SO4

The validity of this approach was confirmed with the regression coefficients values (R2= 0.9982). A straight line was obtained when a graph was plotted C/θ versus C (Fig. 3) where slope value is close to unity which indicates that adsorption of isoxazolines comply with Langmuir’s adsorption isotherm which also implies that adsorbed inhibitor molecules form monolayer on the surface of MS and there is no interaction among the adsorbed inhibitor molecules (Ref 54). In case of isoxazoline molecules, the calculated \(\user2{\Delta G}_{{{\varvec{ads}}}}^{\user2{^\circ }}\) values were found between −28.52 and −33.44 kJ mol-1 which confirmed the mixed type of adsorption (Table 4).

Table 4 Adsorption parameters of PAMHI, PAMI and PAHI for MS in 1M H2SO4 electrolyte

3.5 Surface Characterization

The surface morphologies of MS after being exposed to the acid solution with and without inhibitors are presented in Fig. 4 and 5 for SEM and AFM, respectively.

Fig. 4.
figure 4

SEM images for (a) MS recorded in 1 M H2SO4 (b) MS recorded in 1 M H2SO4 for with inhibitor (PAMHI)

Fig. 5.
figure 5

AFM micrographs for mild steel in 1 M H2SO4 in (a) absence of inhibitor (Blank) (b) presence of inhibitors (PAMHI)

As far as SEM is considered, the surface of MS without inhibitor in acid solution is extremely spoiled with clear cracks, whereas for the inhibited MS is smooth with some white stripes, which may be the protective film. The predominant difference of appearance between the exposed and unexposed MS surface implies that the adsorption of active isoxazolines on the MS surface prevents the metal from the corrosion attack. In relation to the AFM method, it is being used mainly for measuring the three dimensional topography (Ref 55). It is known from the images that the surface of the specimen immersed in 1 M H2SO4 presented more roughness of 145.71 nm whereas MS immersed in the acid solution containing PAMHI whose roughness was 26.37 nm. The decreased roughness value in the presence of PAMHI confirmed the formation of protective layer on the MS surface.

3.6 Quantum Chemical Studies

3.6.1 Neutral Form of the Studied Inhibitors

Relation between the molecular structures of the inhibitors and their inhibitive effects toward acid corrosion can be studied through quantum chemical calculations (Ref 56, 57). In addition, DFT is also used to study the physical characteristics of the inhibitor/surface process (Ref 58,59,60). In non-protonated form of the isoxazoline derivatives, optimized structures, HOMOs and LUMOs in aqueous phase have been depicted in Table 5. It became clear that the HOMO electron density distribution occupies the majority of the surface skeleton of the selected molecules. This result indicates that the acceptability of electrons from the iron surface is very high, in this case, there are several active local electrons accepted sites distributed throughout the structure of the molecules studied. While the HOMO electron density distribution is localized over most of the surface of the molecules studied except for the substitutional grouping of PAMI and PAHI molecules. In addition, the attached substitutional group of the PAMHI molecule carries a lower proportion of the HOMO density is possibly due to OH and OCH3 substituents. This observation justified the inhibitory performance of this molecule.

Table 5 Optimized structures and FMO electron density distribution for the neutral forms of PAMHI, PAMI and PAHI at B3LYP/6-311G (d, p) in aqueous phase

The main quantum chemical descriptors for the inhibitors PAMHI, PAMI and PAHI were tabulated in Table 6. Based on the calculated values of the EHOMO and ΔN descriptors of the three compounds, it is well known that PAMHI molecule has high values of these descriptors, reflecting a high electron donating power of the vacant orbitals of the iron atoms located on the surface of the metal (Ref 61). This result confirmed the high value of the inhibitory efficiency obtained by this molecule. Thus, the very close values of EHOMO and ΔN between the two molecules PAHI and PAMI show that the two electron donor groups by OH and OCH3 mesomeric effect behave in the same way.

Table 6 Calculated quantum chemical parameters for the inhibitors in non-protonated form obtained utilizing DFT at the B3LYP/6-311G(d,p) basis set in aqueous phase

ELUMO is a very interesting molecular property that identifies the electrophilic capacity of the inhibitory molecule (Ref 62). This characteristic would be able to form π-back bonds by receiving electrons from the metal via the π* orbitals (Ref 63). The low ELUMO values of the molecules studied reflects high capability to receive electrons from the metal surface. Gap energy (ΔEgap), dipole moment (μ), global hardness (η) and total energy (TE) are critical factors defining the reactivity of the molecule. Since the values of ΔE, η and TE are low and the μ value is high, the inhibitory molecule is more reactive (Ref 64). The values of these three descriptors of three studied molecules are joined together in Table 6, it is well noted that the PAHMI molecule satisfies the preceding criteria, which affirms its larger capacity to inhibit the corrosion of metal. The calculations results obtained from the neutral inhibitor molecules in the aqueous phase confirm the order of the inhibitory efficiency of these inhibitors.

3.6.2 Protonated Form of the Studied Inhibitors

The optimized structures, HOMOs and LUMOs of the isoxazolines derivatives in protonated form in aqueous phase are given in Table 7.

Table 7 Optimized structures and FMO electron density distribution for the protonated forms of PAMHI, PAMI and PAHI at B3LYP/6-311G (d, p) in aqueous phase

The nitrogen atom N9 is considered to be the most available site for fixing the proton H+. It is evident that the HOMO and LUMO electron density distribution has changed very remarkably compared to the neutral forms of the molecules under investigation. The quantum chemical descriptors values are grouped in Table 8. It seems very interesting to view that the majority of the values of these descriptors are in agreement with the order of inhibitory efficiency of the molecule tested (PAMHI > PAMI > PAHI). In acid medium, the obtained results revealed that the protonated form of the inhibitors should make a higher contribution to the corrosion inhibiting effect of the isoxazolines on the metal surface (Ref 65).

Table 8 Quantum chemical descriptors for the neutral and protonated forms of PAMHI, PAMI and PAHI at B3LYP/6-31G (d, p) in aqueous phase

3.6.3 Mulliken Charge Density Distribution

Tables 9 and 10 show the values of Mulliken charge distributions for non-protonated and protonated forms. It has been reported in the literature that if the atomic charges of adsorbed atoms present in the molecules are more negative, then the atom can easily donate its electrons to the unoccupied orbital of the metal atoms (Ref 66,67,68).

Table 9 Condensed Fukui functions of non-protonated forms PAMHI, PAMI and PAHI in aqueous phase
Table 10 Condensed Fukui functions of protonated forms PAMHI, PAMI and PAHI in aqueous phase

In non-protonated form, higher charge densities are observed for O and N atoms which are the regions of the highest electron density and electrophiles can attack easily. N atoms have negative charge so they are the active centers and have the ability of bonding to the metal surface is too strong. In protonated form, O and some of the carbon atoms in the isoxazolines have negative charges which are capable of bonding to the metal surface. Conversely, nitrogen and some carbon atoms carry positive charges, which are the active sites to nucleophiles for the attack. These factors will add strength to the adsorption of the isoxazolines on the MS surface leading to a stable protective layer and thus impeding the further metal corrosion in sulfuric acid solution.

3.6.4 Molecular Dynamic (MD) Simulation

This method is based on the intermolecular interactions between the most relevant atoms and the atoms of the first iron layer (Ref 67). Figure 6 shows the most stable configurations of the inhibitor system and temperature influence.

Fig. 6.
figure 6

Active electron donor and acceptor sites of inhibitory molecules using Dmol3 at the GGA/DNP level

It is very remarkable that the three compounds adsorb in the same way in which the 4-(3-(phenylamino)-4,5-dihydroisoxazol-5-yl skeleton is the most active part that adsorbs in parallel with the metal surface. While phenyl substituted by either the methoxy group (PAMI) or the hydroxy group (PAHI) or both (PAMHI) are positioned inclined with respect to the metal surface, therefore, this motive does not participate in the protection of iron steel. In addition, the introduction of substituents (OH and OCH3) into the phenyl group is not important. This explains the values closest to the inhibitory efficiencies, for example in the optimal concentration (10 mM) in the experimental part. The temperature increases from 303 to 333 K does not affect the structure of the adsorbed molecules (Fig. 7). Hence, the skeleton of the adsorbed molecules remains unchanged in the two simulated temperatures. The energy values of Einteraction and Ebinding in the two temperatures studied are grouped in Table 11. The comparative analysis of the results obtained shows that the negative values of Einteraction reflect a strong interaction between the 4-(3-(phenylamino)-4,5-dihydroisoxazol-5-yl) for the three molecules and the Fe (110) surface atoms (Ref 69).These values are close to each other, reflecting the same interaction behavior of the inhibitors tested.

Fig. 7.
figure 7

Stablest configurations of adsorption of isoxazoline derivatives on the Fe (110) surface at 303 and 333 K

Table 11 E interaction and E binding of PAMHI, PAMI and PAHI adsorbed on the iron surface at 303 and 333 K, all in kJ mol-1

In addition, high binding energy (Ebinding) values indicate that our inhibitors adsorb more efficiently on the substrate surface (Ref 70). The increase in temperature leads to the increase in the values of Einteraction and Ebinding, indicating that temperature influences the interaction and adsorption of skeletal atoms of the inhibitory metal surface, respectively. As a result, the substitution effect has no role in this study.

Temperature is a very important kinetic factor that influences the bonds formed between the inhibitor and the metal surface, this influence has occurred in particular on physical bonds. In this context, we will study the behavior of the interatomic bonds that are established between the hetero atom pairs (N7, N9 and O10) and the iron atoms of the first layer utilizing the RDF function (Ref 71). With the assistance of molecular dynamics simulation, the variation of g (r) vs. r is given in Fig. 8 under the influence of temperature. This figure shows that the RDF for the species studied appeared for the first very noticeable and more intense peak. This indicates the presence of strong interactions between the hetero atoms selected for the three inhibitors (PAMHI, PAMI and PAHI) and iron atoms (Ref 72). This result is demonstrated by the values of interatomic distances (Fe-heteroatom), which are included in the chemisorption interval (1 \(\sim\) 3.5 Å) (Ref 73). This indicates that our compounds are effective against corrosion despite the increase in temperature. All these simulation results are in good agreement with those obtained in the experimental part.

Fig. 8.
figure 8

RDFs of isoxazoline derivatives on Fe (110) surface at 303 and 333 K

3.7 Mechanism of Inhibition and Evaluation of Inhibitors

The inhibitive nature of MS by isoxazolines in 1 M sulfuric acid solution can be studied based on the molecular adsorption theory (Ref 74,75,76). An adsorption of inhibitor on the metal surface is so fast in acid solution; therefore surface of MS is protected in acid solutions (Ref 77). Inhibition efficiency of the investigated isoxazolines at 10 mM is in the range 93.24-94.22%. The highest inhibition efficiency of the isoxazolines may be due to the presence of aromatic rings, >C=N- groups, -NH and electron donating substituents in the aromatic ring such as OH, OCH3, which enhances the electron density of the aromatic ring leading to greater adsorption. In acid solution, increasing inhibition efficiency of the isoxazolines follows the order: PAMHI \(\cong\) PAMI > PAHI. PAMHI exhibits maximum inhibition efficiency (94.46%) due to the presence of electron donating –OCH3 and –OH groups in the benzene ring attached at fifth position of the isoxazoline ring compared to PAMI and PAHI whereas PAMI shows slightly lower IE 94.22% which is attributed to the presence of only one -OCH3 group. The inhibitor PAHI shows 93.24% as it contains only one –OH group. The results are in accordance with to the fact that when the number of electron releasing groups increases the electron density on the benzene ring increases, which in turn enhances the %IE (Ref 78,79,80).

4 Conclusions

In this present study, the isoxazoline derivatives were synthesized, characterized and their corrosion inhibition efficiency were evaluated using weight loss, electrochemical, surface and computational studies. The main conclusions were as follows

  1. 1.

    The studied isoxazolines showed very good inhibition performance in 1M H2SO4 and examined their inhibition efficiency values which follows the order: PAMHI \(\cong\) PAMI > PAHI at 10 mM concentration.

  2. 2.

    The obtained results proved that the isoxazolines inhibit the corrosion, get adsorbed on the metal surface and followed Langmuir adsorption isotherm. The inhibitors adsorbed through both physical and chemical adsorption processes.

  3. 3.

    Polarization measurements also revealed that the inhibitors are effective and the type of these inhibitors are mixed type.

  4. 4.

    Impedance measurements indicate the charge transfer resistance increase with increasing concentration of the inhibitor.

  5. 5.

    The presence of isoxazoline molecules on the mild steel surface is further supported and confirmed by SEM and AFM analysis.

  6. 6.

    The results obtained from Langmuir adsorption isotherm, SEM and AFM proposed that the mechanism of corrosion inhibition occurs merely through the adsorption method.

  7. 7.

    The results obtained from MD simulation and DFT methods proved that the protonated isoxazoline derivatives were consistent with the experimental results.