Introduction

The scientific study of corrosion inhibitors has increased from being a selective issue to becoming a topic of considerable discussion and research with the goal of discovering effective techniques to reduce the danger of recurrence. Mild steel is utilized as a construction material in a variety of industrial sectors, particularly the petroleum industry, due to the valuable mechanical features that it possesses1,2. When it comes to pipe operation, internal corrosion is typically a considerable be concerned, and the primary cause of this concern is stress corrosion cracking3. There has been a recent increase in galvanic corrosion issues that have been linked to the utilization of materials that are not equivalent, which has garnered a substantial amount of attention4. Also, there are the typical issues that are associated with wells, such as failures in the materials, but there are also corrosion issues that develop in the annular region that is located between the steel tubing and the casing, which becomes clogged. Cracks caused by corrosion can develop as a result of these attacks over time5,6. Numerous scientific investigations have been carried out by researchers in order to address the impacts of metal corrosion, and they have also introduced novel compounds in order to improve the resistance of materials5,6,7,8. When compared to other methods of mitigating corrosion, such as coating and plastic deformations, corrosion inhibitors are the most appropriate strategy for protecting metal surfaces by enhancing their capacity to withstand the corrosion process7. : The ability of these compounds to adhere to the surface of mild steel is facilitated by the presence of a multitude of electron-donating atoms, including S, N, O, and P, as well as π-bonds or aromatic rings9,10,11,12. As a result of the fact that these electrons like to interact with metal surfaces in acidic conditions, the incorporation of these atoms into heterocyclic compounds results in considerable enhancement of the corrosion process. In order to enhance the efficiency of inhibition, it is possible to incorporate heterocyclic atoms and π-bonds into intermolecular structures7,13. Bonds are formed as a result of the adsorption process, which can be either chemical or physical, depending on whether the organic inhibitor and the metal surface are strongly attracted to one another14,15. When compared to its building structures, such as aldehyde and amine compounds, Schiff bases have been discovered by researchers to have significantly higher inhibitory efficiency16,17. The low toxicity and inexpensive cost of these chemicals are the reasons for their widespread application18,19. In order to establish whether or not a compound is helpful in reducing corrosion rates, the primary factor that is considered is whether or not it can adsorb onto the surface of the metal20,21. The selection of an efficient anti-corrosive agent is largely influenced by the research findings obtained from experiments. For the purpose of optimizing the protective qualities of the chemical in real-world applications, this selection procedure frequently involves the analysis of a variety of criteria, such as the molecular structure, concentration, and environment22. At the moment, we are utilizing theoretical analyses to evaluate the accessibility of experimental data by contrasting measurements that are empirical and those that are quantum23. Therefore, the purpose of this work was to develop a new Schiff base compound with the intention of investigating the inhibitory process that it faced in the process of corrosion. Computational simulation, which can look into corrosion inhibitor molecules using DFT, MD simulation, and molecular docking methods in both their liquid and gas phase conditions, is one of the many tools that can be used to study molecular structures that come into contact with a solution that contains 1 M of HCl and an MS surface. Other possible tools include molecular docking, molecular dynamics, and nuclear magnetic resonance. These findings provide evidence that there is a correlation between the modeling of prepared molecular structures and the capacity of such structures to prevent corrosion.

Experimental

Synthesis of AEET inhibitor

The studied inhibitor was synthesized via a reaction between the gallic acid and dodecanol to obtain dodecyl gallate after adding two drops of H₂SO₄, then substituted the ester of gallic acid with a concentration of 97% that reacts with diamines (N1-{2-[2-(2-amino-ethylamino)-ethylamino]-ethyl}-ethane-1,2-diamine) with a concentration of 99% to form a solution with a 1:1 M ratio. The compound is named N-(2-{2-[2-(2-amino-ethylamino)-ethylamino]-ethylamino}-ethyl)-3,4,5-trihydroxy-benzamide (AEET). The preparation process of the compound is shown in Scheme 1.

Scheme 1
figure 1

Procedure to prepare AEET compound.

The chemical structure was confirmed by, IR spectra (KBr discs) were recorded on Thermo Scientific Nicolet iS10 FTIR (BRUKER) spectrometer. The 1 H NMR (500 MHz) spectra was recorded on a JEOL spectrometer (ECZR version) using DMSO-d6 as solvents.

Materials and methods

Cylindrical (MS) specimens with the following chemical composition were used to perform the corrosion measurements: wt% (P, Si, Mn, C, S) elements represent 0.019%, 0.246%, 0.47%, 0.167%, and 0.018%, respectively, and the remaining Fe. The cylindrical (MS) were polished using fine-grain emery paper (grade 400 to 2000), followed by a wash in distilled water and drying at room temperature very well. Solution represents concentration. 37% of HCl was diluted to be 1 M of HCl by distilled water. To confirm the solubility of the AEET compound was achieved, a ratio of solution containing 20:80 of ethanol. The stock solution was prepared with 1 M HCl, and different concentrations (7 × 10− 5- 5 × 10− 4 M) were obtained. The Gallic acid purchased from Sigma-Aldrich Company, diamines (N1-{2-[2-(2-amino-ethylamino)-ethylamino]-ethyl}-ethane-1,2-diamine) purchased from Merck Company.

Corrosion measurements

Electrochemical measurements

The Origamaster 5.0 potentiostat/galvanostat was implemented to perform the experiment of electrochemical measurements. Three electrodes are used in the system contained in a Pyrex glass cell: the (MS) electrode with an exposed surface area of 0.384 cm² used as the working electrode, Pt (platinum) acting as an auxiliary electrode, and Ag/AgCl acting as a working electrode, respectively. It was implemented to study the electrochemical measurements of (MS) without the attendance of the prepared (AEET) Schiff bases compound at 298 K to the working electrode, which was ready-fitted by the Origalys (2.4.0.7) software. Open circuit potential (OCP) appeared after 30 min, and electrochemical impedance spectroscopy (EIS) measurements frequency ranged from 100 kHz to 0.1 Hz. The Tafel measurement’s potential range is ± 300 mV with a scan rate of 2 mV/s.

SEM observation

The scanning electron microscope model ZEISS - EVO 15 – UK device was implemented to observe the morphology of the (MS) surface that was treated with a concentration (5 × 10− 4 M) of the AEET compound, also without treatment for 6 h. The images of metal sheets appear to show the surface smooth and rough morphology with the study of the SEM observation.

Computational studies

BIOVIA Materials Studio (20.1) software. was implemented to carry out the computational studies. The obtained geometry optimization simulation of (AEET) was performed by using the DMol3 tool with suitable cutoffs. The optimal inhibitor structures were conducted by using the DFT computation electronic structures to become ready to extract the RDFs analysis, interaction, and binding energies by contacted (MD) simulation.

Biocidal measurements against sulfate-reducing bacteria (SRB)

The inhibition of SRB microorganism growth in anaerobic environments was assessed utilizing the serial dilution technique outlined in ASTM D4412-84. We collected raw samples of water infected by SRB from the concession depths of the Burg AL Arab Petroleum Co. oil production tank in the West Desert of Egypt. This anaerobic water provides an ideal habitat for SRB colonization. In such an environment, SRB can cause significant damage through microbial-induced corrosion (MIC), potentially leading to catastrophic consequences. To combat SRB, we examined the efficacy of a biocide called AEET at two different concentrations: 1 × 10− 4 M and 2 × 10− 4 M. The experiment was conducted over 21 days at 40 °C. The biocidal activity of AEET was evaluated following the standardized test method NACE TM0194-14-SG.

Molecular docking studies

ChemDraw 2014 was used to sketch the tested compounds, and docking studies were implemented to describe the biological activity results of AEET tested compounds based on the interaction of ligand–protein receptors using MOE software. Docking analysis was performed on the active pocket sites of different crystal protein structures obtained using the Protein Data Bank website to match the experimental results conducted here to overcome the SRB issues. Docking studies were carried out using triangle matcher, and the refinement methodology is based on rigid receptors, and the scoring methodology is GBVI/WSA dG to select the best poses and the best acceptable RMSD values.

Result and discussion

Structure characterization

FTIR: the chemical structure of AEET was validated through the using Fourier transform infrared measurements with an exposed region as shown in Fig. 1. Exhibited band at 3650.96 cm− 1(ν OH stretching), 3385.24 cm− 1(ν NH stretching), 3070.43 cm− 1(ν CH-aromatic stretching), 2890.15 cm− 1(ν CH-aliphatic stretching), 1658.60 cm− 1(ν C = O stretching), 1453.85 cm− 1(ν C = C aromatic), 1346.98 cm− 1(ν C-N stretching) and 1100.25 cm− 1(ν C-O phenolic oxygen stretching).

Fig. 1
figure 1

FTIR spectrum of AEET compound.

1H NMR (500 MHz, DMSO-d6) spectrum of AEET was characterized as Fig. 2. δ (ppm): 1.47–1.50 (s, 3 H, NH), 2.18, 2.19,2.24 (s, 2 H,3CH2),2.63(s, 2 H, CH2), 3.80 (br.,2 H, NH2), 3.68 (s, 2 H, CH2), 4.46 (s, 2 H, CH2),4.59–4.61 (s, 4 H, 2CH2), 7.06–7.08 (d,2 H, Ar-H), 7.27 (s,1H, NHCO), 7.47–7.49 (d,2 H, Ar-H) Analy.Calcud. for Formula C15H27N5O4 (341.41).

Fig. 2
figure 2

1HNMR spectrum of AEET compound.

Potentiodynamic polarization (PDP) measurements

After performing OCP measurements and reaching a steady state of potential, the potentiodynamic polarization method was used to examine the corrosion resistance of AEET in 1 M HCl as a blank and with inhibition solutions on the MS surface, as shown in Fig. 324,25. The OCP measurements revealed minimal variation between the blank and inhibited samples, with fluctuations not exceeding ± 85 mV. This indicates the stability of the electrochemical system and supports the reliability of the Ecorr values presented in Table 1.

Fig. 3
figure 3

The OCP- Time curves for the (MS) electrode at various concentrations of AEET in 1 M HCl at room temperature.

The lower current density (i) was observed to shift towards both the cathodic and anodic sides, as demonstrated by the polarization curves, with no significant alteration in the potential (Ecorr). This method illustrates how the generated inhibitor interacts with the metal surface, reducing the interactions between the cathodic and anodic electrodes, functioning as mixed-type inhibitors26,27. The Tafel curve extrapolation method was employed to obtain various significant electrochemical parameters, such as potential corrosion (Ecorr), current density corrosion (Icorr), cathodic (βc) and anodic (βa) Tafel slopes, and corrosion efficiency (IE), all of which were determined from Icorr utilizing equation 0.128. Table 1 presents the parameters.

$$\:EF=\frac{1-{\:\:\:\:\:I}_{corr}^{0}}{{I}_{corr}}$$
(1)

where \(\:{I}_{corr}^{0}\) parameter introduce the current density values if found AEET inhibitor and absence, respectively.

The corrosion (CR) and corrosion current density (Icorr) exhibited a decrease with an increase in the concentration of the AEET inhibitor. This observation indicates that the inhibitor effectively reduces the dissolution of the anodic metal surface. At the same time, the cathodic hydrogen atoms contribute to this process by segregating the surface area that is exposed to the electrolyte29. The Ecorr values for both treated and untreated solutions exhibited a variation of less than 85 mV. As a result, no significant shift was observed, hence confirming the inhibition process30. Figure 4 illustrates that the polarization data obtained indicates a mixed type of corrosion behavior. The calculation of polarization resistance (Rp) is performed using mathematical Eq. 2.

$$\:Rp\:=\frac{\beta\:a\:\times\:\:\beta\:c}{2.303\:{i}_{corr}(\beta\:a\:+\:\beta\:c)}$$
(2)
Fig. 4
figure 4

Polarization curves for the surface of (MS) in 1 M HCl with and without the different concentrations of (AEET) at room temperature .

Table 1 The polarization parameters of the MS in the different concentrations of the AEET in 1 M HCl and the Inhibition efficiency.

Electrochemical impedance spectroscopy

Electrochemical impedance spectroscopy (EIS) measurements are utilized to confirm the previously evaluated electrochemical behavior and to assess the capacitive properties at the mild steel (MS)/solution interface. Figure 5 present the Nyquist and Bode plots for the MS sample immersed in 1 M HCl, both without and with different concentrations of AEET compond. The Nyquist plots obtained demonstrate a consistent pattern, suggesting that the addition of AEET to the corrosive environment effectively mitigates MS corrosion while keeping its fundamental mechanism31. The Nyquist plots exhibit single semicircles at low frequencies, indicating that the corrosion reaction is primarily influenced by charge transfer resistance31. The increased exponent values (n) in Table 2 for the inhibited sample relative to the blank solution indicate that the inhibitor improves surface uniformity via adsorption. Figure 6 present the Bode plots (log Z vs. log F) and phase angle diagrams for MS in 1 M HCl, both with and without different concentrations of AEET32. The figures indicate that the absolute impedance |Z| in the low-frequency domain shows a significant increase, which confirms the enhanced inhibition efficiency at increased concentrations33. The enhancement results from the adsorption of AEET molecules on the MS surface, which effectively obstructs its active sites. The negative shift in phase angle values further corroborates the conclusion that these compounds primarily operate by creating a protective layer on the MS surface34. The double-layer capacitance (Cdl) and inhibition efficiency (η%) are calculated using the following equations:.

Fig. 5
figure 5

Nyquist plots for MS surfce in 1 M HCl in the absence and presence of various concentrations of AEET at room temperature.

Fig. 6
figure 6

Bode and phase diagram for MS surface in 1 M HCl in the absence and presence of various concentrations of AEET at room temprature.

$$\:\text{ƞ}\text{\%}=\frac{{(R}_{ct\left(inh\right)}^{0}-{R}_{ct})}{{R}_{ct\left(inh\right)}}\:\mathsf{x}\mathsf{\:}100$$
(3)

The resistances of the charge transfer for the treated and untreated experimental (\(\:{R}_{ct}^{0}\)) and (Rct) are determined by their respective values. Besides these parameters, the equivalent circuit contained a constant phase element (CPE), which is related to the electrochemical double-layer capacitance (Cdl). The observed value of impedance related to the (CPE) was determined by calculating the below Eqs35,36.

$$\:{Z}_{CPE}=[\frac{1}{{\text{Y}}_{0}{\left(j\omega\:\right)}^{n}}]$$
(4)

where (ZCPE) is related to the impedance parameter of (CPE), (Y0) is the phase element constant of (CPE), (ω) is the parameter referring to angular frequency, the parameter (j) is related to imaginary number value, and (n) refers to the phase change; if the changed value represents (0 < n < 1), when n = 1, that refers to a genuine capacitor, and at n = 0, this means pure resistance impact. The CPE is included in the system’s double-layer capacitance, which is given by Eq. 5.

$$\:{\text{C}}_{dl}={\left({Y}_{0}\:{R}_{ct}^{1-n}\right)}^{1ln}$$
(5)

The parameters obtained from the impedance information as a nonlinear square are represented in Table 2. The represented data can observe the change of the Rct values by increasing the concentration of AEET inhibitor, which can reach 90%. The best inhibition value for the AEET compound was achieved at the maximum concentration selected (5 × 10− 4M), which was the formation of a protective layer at the interface of the metal surface and solution37. In addition, the inhibition concentration could have completely reduced the double-layer capacitance. The main cause of this is the presence of inhibitor molecules in the solution, which replace the highest dielectric particles with the lowest ones in water-inhibitor molecules, which expand in thickness layer after time38. As a result, it would decrease the electron transfer number due to the prevention of the electrical double layer to form, which would cause a decrease in (CR) values. For the calculation of double-layer capacitance, these changes can be taken into account by a Helmholtz model Eq. 639.

$$\:{\text{C}}_{dl}=\frac{{\epsilon\:}_{0}{\epsilon\:}_{s\:A}}{d}$$
(6)

Where (A) is the cathode’s surface area, (d) is the double layer’s thickness, (εs) is the medium’s dielectric constant, and (ε0) is the air permittivity of the electric double layer, and (n) the value is the phase change was located within the range between 0.86 and 0.91, which also protects the metal surface from corrosion due to the exchange charges accumulating between the surface of the metal and the electrolyte40.

Table 2 EIS parameters and Inhibition efficiency values for MS surface in 1 M HCl with and without various concentrations of AEET compound at room temperature.

Surface analysis (SEM)

The scanning electron microscope (SEM) was implemented to examine the morphology of the (MS) surface in a concentration of 1 M HCl solution in both treated and untreated conditions of the optimum concentration of the AEET compound, as shown in Fig. 7. The micrograph reveals that the surface is pitted and rough (cavity) when there is no inhibitor present because of immersion in the corrosive fluid (1 M HCl), which causes the corrosion process to take place41,42. Conversely, the AEET inhibitor effectively reduces the corrosion rate, as evidenced by the decreased presence of localized corrosion sites and the formation of a protective thin film that extensively covers the alloy surface. This material also did not show any signs of a pitted surface, perhaps because a smooth film formed on the surface and may be referred to as a protective layer43,44. Based on SEM analysis, the presence of the investigated inhibitors effectively prevents corrosion on the electrode surface by forming an adsorbed protective layer45,46. The inhibition efficiency results derived from both chemical and electrochemical methods further confirm the protective nature of this film in mitigating rust formation.

Fig. 7
figure 7

SEM image for MS surface: (A) finely polished sample, (B) sample immersed in 1 M HCl without inhibitor, (C) sample immersed in 1 M HCl with 5 × 10− 4M of AEET inhibitor.

Computational analysis

Quantum chemical calculations

The electronic properties of the inhibitor are pivotal in defining its performance and in estimating the adsorption and deformation behavior of compounds on metal surfaces10. This paper aims to evaluate the relationship between computational studies, including molecular structures and experimental tools via DFT, in assessing the physical and chemical properties of Schiff base compounds47. The capacity of a compound to either lose or accept electrons is associated with frontier molecular orbitals (FMOs), specifically the Highest Occupied Molecular Orbital (HOMO) and the Lowest Unoccupied Molecular Orbital (LUMO)48. Figure 8 illustrates the electron density distribution of the HOMO and LUMO in the AEET compound within the gas phase, positioned in the substituted Schiff base chain and connected to the phenyl ring. In the case of LUMO, the electron density is positioned across the phenyl ring of the molecule. The hydroxyl groups in the AEET compound exhibit a high capacity for chemical interaction, attributed to an increase in the electronic cloud that facilitates electronic donation. The efficiency of corrosion inhibitor compounds is depending upon an electrostatic mechanism that involves the donation and acceptance of electrons during a chemical reaction. The capacity to accept electrons can be characterized by the distribution of the highest occupied molecular orbital (HOMO) in the liquid phase. The HOMOs are uniformly distributed throughout the molecule, while the LUMOs are localized within the phenyl ring. The molecular structure measurements of HOMO and LUMO indicate that the AEET compound exhibits significant responses to ion charge transfer substitution. Consequently, the AEET compound shows promise as a corrosion inhibitor molecule. Based on previous analysis, the energy values can be calculated, with (I) expressing the ionization energy and (E) denoting electron attraction, as determined by the following equations49:

$$\:E=\:{-E}_{\left(LUMO\right)}$$
(7)
$$\:I=\:-{E}_{\left(HOMO\right)}$$
(8)

We can represent the (I) and (E) values through using parameters to be useful in determining the findings, such as the reaction chemical potential (µ), absolute electronegativity value (x), and absolute hardness element (η), as in the following equations49.

$$\:\chi\:=-\:\mu\:=\frac{I+E}{2}$$
(9)
$$\upeta=\frac{\text{I}-\text{E}}{2}$$
(10)
$$\:\sigma\:\:=\frac{1}{{\upeta}}$$
(11)

The computed quantum parameters of the investigated (AEET) molecule in their gas and liquid form are represented in Table 3. According to the above-mentioned, HOMO refers to electron donating, and thus, a high EHOMO value indicates an increased probability of donating electrons. On the other hand, LUMO refers to electron accepting, and it is widely known that the lower value of ELUMO refers to a high acceptance of electron capacity50,51. From Table 3, the electron-donating ability matches with our experimental data conducted. The HOMO-LUMO gap (∆E) is one important indicator that determines the stability of the compound52,53. Regarding our results, it can be considered that the calculated gap energy indicates the probability of the AEET compound to act as a corrosion inhibitor to the protection surface of (MS) against corrosion attack. The observed measurements that indicate the corrosion inhibitor’s efficiency can be discussed based on the energy gap, which is essential from a theoretical point of view53,54. Therefore, based on the results we obtained, we can summarize that the presence of three hydroxyl and amino groups located in the AEET molecule has a greater effect on the liquid phase efficiency than the gas phase one. The following equations were used to determine the electrophilic value (ω) and the nucleophilic value (ε)49:

$$\:\omega\:=\frac{{\mu\:}^{2}}{2Ƞ}$$
(12)
$$\:\epsilon\:\:=\frac{1}{\omega\:}$$
(13)

The ability of molecules to accept electrons can be explained by using their electrophilicity as well as chemical potential. This shows the increasing order of the electrophilic character in the element, based on the extent of their electrophilic value54. The electrophilic characters of the AEET compound are represented in Table 3, which matches with their LUMO electrophilic energy values. Furthermore, the ability of molecules to donate electrons is related to nucleophilicity character. Therefore, the large nucleophilicity power refers to strong nucleophilic features54,55. Nucleophilicity results, which are opposite to electrophilicity and refer to the nucleophilic power as in Table 3, can also refer to the LUMO values. As for the liquid phase, that indicates the results are the same object represented in HOMO and LUMO values, which means any increase from compound power to accept electrons decreases the ability to lose electrons in the same compound. Corrosion studies include the (ΔN) parameter, which refers to the electrons transferred fraction and can be mentioned in Eq. 14.

$$\:\varDelta\:N=\frac{[\phi\:-\:{\chi\:\:}_{inh}]}{\left[2\right({\eta\:}_{Fe}\:+\:{\eta\:\:}_{inh}]\:\:\:}$$
(14)

So that, the parameters (φ) correspond to the function of work index, (χ inh) is the inhibitor electronegativity, (η inh) is the inhibitor hardness, and (η Fe) is the hardness of the Fe element metal. It’s important to note that the 4.82 eV refer to the values of work function for the simulated Fe (110) metal surface, while the hardness of iron can be reported as zero.

Fig. 8
figure 8

The molecular orbitals outputs for AEET compound in HOMO (upper), LUMO (middle), and total electron distributions (lower).

The (ΔN) parameter indicates the molecule’s ability to transfer electrons to a metal surface. So, it is possible to transfer the electron from the metal surface in the present inhibitors molecules if ΔN > 0, and conversely, the transfer can take place from the metal to the inhibitor if ΔN < 057.

Table 3 Quantum chemical parameters of the AEET compound in liquid and gas phases.

Molecular dynamic simulations

Quantum chemical calculations describe the physical and chemical properties of an inhibitor molecule. Although the information collected is useful in understanding inhibitor reactions with water, there are limits to studying inhibitor reactions with a simulated metal surface (MS). To address these constraints, researchers have lately attempted to employ molecular dynamic simulations to investigate the behavior of inhibitor molecules on a simulated metal surface in order to detect physical adsorption with a solvent57,58. Figure 9 depicts the adsorption arrangements of the AEET compound on the Fe (110) surface (side and top views). It should concentrate on the primary function groups that have a strong interaction force with inhibitor molecules, which include active function groups such heteroatom chains, imine groups, the power of aromatic ring resonances, and the diverse dimensional positions of molecules (Table 4).

Table 4 The observed energies calculated by (MC) simulation for (AEET) on Fe (110) surface.

The observed results indicate that the prepared inhibitor molecules were adsorbed on the iron surface and lying in a parallel arrangement after data analysis. The parallel arrangement will unquestionably provide evidence of the powerful interactions that exist between function groups that are contained inside the same molecules and that cover the greatest portion of the surface of the simulated iron atom. As an additional feature, Fig. 9 provides a description of the dynamic geometries of the simulated inhibitor molecules that were adsorbed on the surface of Fe (110) in a variety of dimensions. According to the findings that have been reported, the adsorption of the inhibitor molecules is extremely near to that of the neutral molecules when the orientated molecules are slightly parallel to one another. In addition to neutral molecules, it appears that the liquid-phase molecule possesses a high potential for preventing corrosion and may offer robust protection for the surface of the iron10,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59.

Fig. 9
figure 9

Both of side (left) and top (right) dimensioned views of AEET (yellow color) located barrel on iron atoms (110) surface in the box of water and HCl molecules.

Another method for identifying molecular interactions and binding energies, once the adsorption system reaches equilibrium, is important for understanding the interactivity of the molecules60. The interaction and binding energies of the molecule in the gas and liquid phases are presented in Table 5 below. An inhibitor molecule exhibiting high binding energy indicates both a strong interaction with the Fe(110) surface and enhanced adsorption of the inhibitor molecules onto the iron surface59,60. The results in Table 4 indicate that the AEET molecule exhibits significant binding energies in its adsorption performance, suggesting that the inhibitor molecule forms multiple bonds with the iron surface60. The results align with DFT and experimental studies discussed in this paper and others, indicating that electron-donating functional groups may enhance the corrosion inhibition process. The findings indicate that the AEET inhibitor exhibits a high adsorption capacity and functions effectively as an inhibitor61. AEET molecules exhibit greater binding and interaction energies in their liquid phase compared to their gas phase form. This is due to the increased reactivity of these compounds in liquid form, as explained by the DFT tool. The primary reason for these differences is the inhibitor molecule’s capacity to donate electrons. During the inhibition process, notable interactions between gas and liquid molecules and iron atoms are expected62.

Table 5 Binding and interaction energies of the AEET compound adsorbed on simulated iron atoms (110) surface.

RDF’s analysis

The radial distribution function (RDF) is a concept that illustrates how the density of matter in the surrounding area changes as one moves further away from a specific location. It gives us information about the frequency with which particular distances were recorded. When performing an MD simulation, the RDF is calculated by counting the number of atom pairs that are located between the gaps that have been set. The findings can be applied to the average atomic density as a function of distance, which is an objective that is even achievable.

Fig. 10
figure 10

Both of side (left) and top (right) dimensioned views of two AEET (yellow color) located barrel on iron atoms (110) surface in the box of water and HCl molecules.

The additional outcome was the calculation of the Radial Distribution Function (RDF), which aids in identifying the position in space between atoms and molecules, as well as the associated contact and binding energies. Molecules positioned at distances ranging from 1 Å to 3.5 Å are likely to get close to iron atoms and establish covalent bonds with adjacent atoms, whereas those separated by distances exceeding 3.5 Å can only engage in physical interactions63. The RDF findings indicated that the bonding lengths between the ring atoms, Fe-surface, and O-carboxyl, phenol-Fe-surface were below 3.5 Å. In contrast, the bonding lengths between N-amine-Fe-surface exhibited a broader peak, approaching 3.5 Å. This suggests that the interactions between iron atoms and oxygen, amines, and carbon ring atoms were effectively observed during analysis62,63,64. This paper presents calculations of radial distribution functions (RDF) to construct two simulation scenarios involving two cells. The first cell contains a (AEET) molecule in a box with H2O particles and corrosive ions (Cl- and H3O+) directly interacting with the iron atoms (Fe) surface to evaluate the interaction energy and RDF, as illustrated in Fig. 9. The second scenario involves two (AEET) molecules within the same box to simulate the interaction between these inhibitor molecules and their masking effect on the iron surface, as well as their influence on the distribution of corrosive particles, also depicted in Fig. 10. To optimize simulation processes, adjust the NVT and COMPASS force field to align with the calculated Van der Waals and electrostatic interactions using the Ewald summation technique and atom-based selection. A simulation duration of 1000 ps was conducted to obtain results regarding the (AEET) inhibitor within the simulated system62. At the conclusion of the simulations, the (AEET) molecules exited the solvent and aligned parallel to the iron surface, indicating a strong interaction with iron atoms and covering a significant portion of the iron surface. RDF results indicated that functional groups, including O, NH₂, and C atoms, within the ring are positioned approximately 3.5 Å apart. The formation of covalent bonds with Fe atoms is probable when compared to the RDF depicting the Cl-Fe surface, which exhibits a weak bond attributed to OH⁻ groups that hinder ion access to the iron surface during our simulated cell, as illustrated in Fig. 11.

Fig. 11
figure 11

RDF analysis for AEET function groups interact with Fe-surface and environmental surround the molecules.

Antimicrobial activity of AEET against SRB

The number of microbial cells related to SRB that is present in the water sample after undergoing the interaction with the AEET molecule is depicted in Fig. 12. These images represent the sealed glass vials maintained under low oxygen conditions. Concentration serials of the inhibitor at 1 × 10− 4 M and 2 × 10− 4 M were added into the vials. Figure 9 presents images of the vial sets injected with a blank for comparison. The number of black vials (infected) was significantly lower than the blank vials, which proves the biocidal efficiency65,66. Black vials were evidently scanty as compared to the white vials, suggesting the efficiency of the black vials against this strain of bacteria67,68.

Fig. 12
figure 12

SRB growth measurement at various concentrations of infected water samples.

Table 6 elucidates the data derived from the antimicrobial activity test of the tested biocides against SRB growth. Notably, the counts returned were 102 cells/ml and 0 cells/ml in the 1 × 10− 4 M and 2 × 10− 4 M of AEET, respectively, proof that AEET offered the best inhibitor activity in preventing bacterial growth, achieving up to a 100% reduction (Table 6). Biocidal efficacy of AEET against SRB at 40 °C.

Table 6 Media kits of SRB growth injected with infected water samples with different concentrations of AEET.

Docking analysis

Docking studies were conducted to elucidate the biological activity outcomes of AEET-tested compounds through the interaction between ligand and protein receptors. This paper presents a computational docking analysis of active pocket sites in various crystal protein structures sourced from the Protein Data Bank. The analysis aims to align with the experimental results obtained to address the SRB issue. The bacterial strain structures were selected based on their prevalence in industrial applications: A. fumigatus (ID 5HWC)69, G. candidum (ID 4ZZt)70, S. pneumoniae (ID 5LJI)71, and E. coli (ID 3t88)72. These were imported into MOE in 3D structure and energy minimized to a gradient of 0.01. The compound AEET was imported in MDB format for simulation with the selected bacteria. Issues with protein structure were corrected, and atoms were protonated in their 3D geometric structures after the removal of water and solvent particles. The site finder option was then utilized to identify the most suitable amino acids for reaction at various active sites, as detailed in Table 7. Figures 12 and 13 present the docking computations and crystal structures simulated using the Triangle matcher and GBVI/WSA dG refinement methods73. Following the docking process, 10 poses were selected from a total of 200 based on the most favorable score and RMSD, and subsequently adjusted for the export of interaction energy74. Interaction energies with the specified amino acids of the residue pockets are presented in Tables 8 and 9. The study presented an alternative approach to understanding electrostatic interactions with protein active sites75,76,77,78. The AEET molecules exhibited acceptable RMSD values near the original legend site-1 across most receptors; however, crystal structures 5LJI and 3T88 displayed identical binding positions to the original with the AEET inhibitor. The 5LJI residue demonstrated binding interactions with the AEET compound, achieving a score of − 6.36 and an RMSD of 1.38, as illustrated in Fig. 13. The hydrogen bonds are associated with GLU-128 (3.02 Å), indicating a significant binding interaction. The binding interactions of 3T88 with the AEET compound yield a score of − 6.99 and an RMSD of 1.7,as illustrated in Fig. 13. Additionally, hydrogen bonds are formed with GLY-199 at a distance of 2.76 Å, indicating a significant binding interaction72. Our study demonstrates that the AEET inhibitor exhibits biological activity against the selected bacteria, achieving promising binding scores Fig. 14. through the formation of extensive hydrogen bonds with energies of up to − 7 kcal/mol. AEET demonstrates superior binding scores with receptors 4ZZT, 5LJI, 3T88, and 5HWC (− 8.48, − 7.71, − 7.12, and − 5.10, respectively) compared to site 2, the original ligand (− 6.9). This computational analysis aligns with the previously mentioned experimental results, indicating that AEET molecules exhibit notable biological activity against SRB, which contributes to corrosion in mild steel.

Table 7 Binding sites residues extracted from active pocket receptor of 4ZZT, 5HWC, 5LJI, 3T88 during prepared for docking.
Table 8 The finding extracted from Docking process of AEET with receptors in site-1 the large pocket of residues.
Table 9 The finding extracted from Docking process of AEET with receptors in site-2(original ligand site).
Fig. 13
figure 13

The crystal structures of protein targets describe the AEET at large pocket (site-1) in the active pocket of (A) 4ZZT, (B) 5HWC, (C) 5LJI and (D) 3T88.

Fig. 14
figure 14

The crystal structures of protein targets describe the AEET at large pocket (site-2) same site of original legend in the active pocket of (A) 4ZZT, (B) 5HWC, (C) 5LJI and(D) 3T88 .

Conclusion

This study offers experimental and computational analyses to demonstrate the efficiency of the eco-friendly Schiff base compound AEET as a multifunctional corrosion inhibitor for mild steel in 1 M HCl. Electrochemical data demonstrates a concentration-dependent improvement in inhibition efficiency, with IE% increasing from 48.08% at 25 ppm to 90.05% at 5 × 10− 4. A big rise in polarization resistance (Rp: 176.02 to 2593.93 Ω.cm) and a drop in corrosion rate (CR: 6.2 to 0.62 mpy) show that this is true. The observed changes validate the formation of a protective AEET layer on the metal surface, as evidenced by SEM images. Quantum chemical calculations using DFT demonstrate AEET’s electronic suitability for adsorption, characterized by a narrow HOMO-LUMO energy gap (ΔE ≈ 3.2 eV) and a high adsorption energy (-805.91 kJ/mol in solution phase), which suggest strong electron donation and stable binding to the metal surface. Molecular docking demonstrates AEET’s capacity to interfere with microbial corrosion mechanisms, as indicated by significant binding affinities (S scores: -6.2 to -8.5 kcal/mol) with corrosion-related receptors (e.g., SRB enzymes) through hydrogen bonds (2.68–3.72 Å), which reduce microbial activity. Computational simulations (MD, MC) support experimental findings, demonstrating the multifunction inhibition mechanism through the formation of a dense protective barrier that obstructs aggressive ions such as Cl⁻ and H⁺ and the selective disruption of microbial enzymes to mitigate microbiologically influenced corrosion (MIC). The combination of experimental measurements, such as SEM and electrochemical parameters, with theoretical models including DFT, docking, and simulations, highlights the reliability of AEET as a cost-effective and environmentally friendly inhibitor. This integrated strategy connects molecular-level interactions, such as adsorption energy and bond distances, to macroscopic performance, establishing AEET as a useful industrial solution for addressing both chemical and microbial corrosion.