1 Introduction

Corrosion is an exceedingly challenging and harmful progression that comprises the continuous and spontaneous degradation of metallic structures through chemical and/or electrochemical reactions with the ingredients of the environment [1,2,3]. Many industries, especially petroleum-based industries where metallic materials are extensively used, are badly affected by corrosion-related failures [4,5,6]. Many methods and strategies are developed to minimize the corrosion-related failures and subsequent cost of corrosion. Many methods of corrosion prevention have been developed but in the solution phase, the use of organic compounds, principally heterocyclic, is one of the most significant, effective, and economic methods [7, 8]. These compounds contain some structural features such as a combination of polar groups and conjugation in the form of aromatic ring, double and triple bonds through which they strongly interact with the metal surface [9,10,11,12]. Obviously, these electron dense centers are called as adsorption centers or adsorption sites. These compounds adsorb at the interface of environment and metal surface and build corrosion-protective film. The word “ecofriendly corrosion inhibitors” was talking about the compounds that are biocompatible, because these were organic origin. They were not affecting health and the environment in contending corrosion [13,14,15]. Literature investigation suggests that research and development on the synthesis, modification, characterization, and implementation of Shiff base as ecofriendly corrosion inhibitors are growing rapidly in the different fields of science, engineering, and technology. Barmatov and Hughes studied the corrosion inhibition efficiency of the Schiff base, and its hydrolysis products on steel in HCl. All these compounds act as good inhibitors and they have similar inhibition efficiency at similar molar concentration [16]. Zhang et al. determined the inhibition efficiency of Schiff base-based cationic Gemini surfactants toward carbon steel in the corrosive medium by electrochemical impedance spectroscopy, potentiodynamic polarization, and weight loss measurements. These results reveal that these Gemini surfactants are efficient corrosion inhibitors for metal. [17] In terms of molecular parameters, Satpati et al. explained the variation in the inhibition efficiency of cinnamaldehyde and three different amino acids, using quantum mechanical calculation and molecular dynamics simulation.. It was found that all the three inhibitors impart appreciable extent of corrosion inhibition efficiency under the extreme [18]. Jafari et al. have tested two N2O4 Schiff base ligands for the corrosion inhibition of carbon steel in 0.5 M H2SO4 using potentiodynamic polarization and EIS methods. The results showed that two ligands behaved as a mixed inhibitor and the inhibition took place through adsorption of the compounds on the steel surface [19]. In this work, it is aimed to examine the corrosion rate and inhibition performance with and without the use of 2,2’- (((2,2-dimethylpropane-1,3-diyl)bis(azanediyl)bis(methylene)disphenol (RSH2) in 0.5 M H2SO4 solution. For this purpose, the weight loss, potentiodynamic polarization curves, DFT, and AC impedance measurements for carbon steel samples are used to determine the optimal concentrations of the inhibitor. The adsorption isotherm of the corrosion inhibitor on the carbon steel samples is investigated to determine the equilibrium constant and standard free energy. Finally, the surface morphology of the sample in 0.5 M H2SO4 with inhibitor and without inhibitor is studied using scanning electron microscopy (SEM) and atomic force microscopy (AFM) method.

2 Experimental Procedure

The first step in all corrosion tests is preparing of the test samples. Square carbon steel samples with an exposed area of 1 cm2 were cooled in cold epoxy resin then polished with grade emery paper number 220 to 2000 and washing them with distilled water and acetone (its purity was 95% and trade mark was Xilong). After that, they were dried with air and kept as a working electrode in a desiccator until use. The samples were prepared from ST-37 carbon steel which had the chemical composition (wt. C: 0.61, Si: 0.23, Ni: 0.07, Mo: 0.08, Mn: 0.75, Cr: 0.1%w, Fe:Rest).

H2SO4 solution was prepared from 98% H2SO4 of Merck Product and distilled water. The compound named 2,2’- (((2,2-dimethylpropane-1,3-diyl)bis(azanediyl)bis(methylene)disphenol (RSH2) was prepared according to the described procedure [20, 21]. The concentration of inhibitors employed was 0.5, 1, 1.5, and 2 mg L−1. Figure 1 shows the Schiff base ligand of this study.

Fig. 1
figure 1

Chemical structure of inhibitor

Weight loss (mass loss) of the mild steel in the 0.5 M H2SO4 solution without and with RSH at 308 K with different immersion period (0 to 14 h). After the specified time, the steel samples are submerged from the 0.5 M H2SO4 solution and weight loss of steel sample was recorded. The protection efficiency of the corrosion inhibitor is calculated from the below equation [22]:

$${\text{Corrosion}}\; {\text{inhibition}}\; {\text{efficiency}}\; \left(\%\right)=\frac{( {W}_{1}-{W}_{2} )}{{\text{W}}_{1}} \times 100$$
(1)

where W1 = unprotected steel weight loss, and W2 = protected steel weight loss of the system.

Autolab device was used to perform potentiodynamic polarization tests. The tests were performed on a standard cell containing platinum foil (the immersed active area was 2 × 2  cm2) as an auxiliary electrode and calomel as a reference electrode (EG&G Model 273). The experiments were performed at room temperature. At the beginning of each experiment, an interval of about 30 min was applied to stabilize the potential of the components in solution. From the potential range of about − 800 to  −200 mV compared to the open circuit potential and scan rate of 1 mV s−1.

Electrochemical test was performed for steel samples after 30 min of immersion in the solutions. For this purpose, a three-electrode electrochemical cell including counter electrode (graphite), reference electrode (Calumel electrode), and working electrode (steel sample) is connected to a computer-controlled AutoLab potentiostat/galvanostat system (PGSTAT 302) and tested in open circuit potential in the frequency range of 100 kHz to 10 mHz with a peak amplitude of 10 mV A.C. .

Atomic forced microscopy was used to study the morphology of the samples surface. In this method, steel samples were immersed for 24 h in 0.5 M H2SO4 solution without inhibitor and also containing 2 mg of inhibitor at room temperature. The samples were then removed from the solution and we washed them with distilled water and acetone, they were photographed by atomic force microscopy (AFM) NanoSurf easyscan2.

The FMOs were studied using the Materials Studio software program's DMol3 module. A double numerical basis set and polarization were used in conjunction with the M06-L [23,24,25] functional to improve the geometrical properties of all inhibitors in order to better understand electronic interaction and correlation (DNP) [26]. A shift in energy of less than 10–7 Ha was required for the self-consistent field to converge. The conductor-like screening model (COSMO) [27,28,29] was used in this investigation to account for the influence of the solvent – water.

The Material Studio program's Adsorption Locator tool was used to investigate potential interactions between the inhibitor molecules and the Fe (110) surface atoms. The interactions were investigated using a Monte Carlo (MC) method. A cell with the dimensions 1.986 nm × 1.986 nm × 1.419 nm, with a vacuum slab extending 3 nm beyond the cell's Fe (110) surface. The MC simulations were carried out by continuously loading the inhibitor molecules into a modeled cell, along with aqueous solutions of corrosive species such as H2O (350), H3O+ (10), and SO42− (5), and simulating the effects of these corrosive species using the Adsorption locator module in Material Studio. The target atoms for the MC simulation were particularly chosen from the topmost layer of the Fe (110) slab because it was thought to include plausible places for the inhibitor molecule's adsorption. The equilibrium adsorption configuration with the least amount of energy was studied and characterized as a consequence of the simulation's conclusion.

MD simulations are used to simulate inhibitor chemical adsorption on metal surfaces. Material Studio was used for the DFT, MC, and molecular dynamics simulations in this investigation. Compass was used to optimize the geometries of the inhibitor, water, sulfate, and hydronium in Material Studio's Forcite module [30,31,32,33,34,35,36,37]. Inhibitor molecule, 350 water molecules, and 10 hydronium + 5 sulfate ions were added to each system randomly. MD simulation is presented in this article in order to explore the interactions that take place between the metal surface of an inhibitor and aqueous sulfuric acid corrosion media. Following this, the slab is subjected to optimization. To begin, a cell of iron with a (110) plane was built using nine atom layers of thickness as its building blocks. The name "Fe" has been given to this surface (110). The simulations were done on the Fe (110) plane because of its dense structure and low energy surface [38, 39]. Following its development, the simulation box was geometrically altered to eliminate unfavorable chemical combinations and build an energetically minimal model for future simulations. A "smart" algorithm was used in the optimization process. The temperature and energy fluctuation curves remained constant as a result of optimization. Our next step was to use the widely used COMPASS forcefield and run MD simulations in Material Studio's Forcite module at 295 K with all Fe (110) atoms save the two top layers frozen (with a time step of 1.0 fs). The simulation acquired 0.8 ns [32, 33]. Using the trajectory of the MD simulation, the radial distribution function (RDF) was generated in order to predict how the inhibitor molecule adsorbs.

3 Results

3.1 Weight Loss Method

An important tool for preventing corrosion is the use of compounds with high efficiency, low cost, and low toxicity [40]. Figure 2 presents the results of the inhibition efficiency of RSH2 at 25 °C and various concentrations. As shown in the figure, the corrosion rate was increased significantly in the absence of the corrosion inhibitor over time. After 28 h of immersion of the carbon steel samples in the H2SO4 solution, the inhibition efficiency was higher than 80 in the absence of the inhibitor. The addition of the inhibitor reduced the corrosion rate. It is related to the adsorption of the reagent on the surface of the carbon steel samples. As can be seen, with an increase in the inhibitor concentration, the corrosion rate was decreased, and the inhibition efficiency was increased, reaching a constant value. This means that the values of the surface coverage and the corrosion efficiency were enhanced markedly by increasing the concentration of inhibitor. The optimal concentration of RSH2 was obtained 2 mg L−1, as the corrosion rate and inhibition performance were not noticeably changed at higher concentrations. As shown in Fig. 2, the corrosion rate and inhibition efficiency after 28 h at 2 mg L−1 were 78%.

Fig. 2
figure 2

Inhibition efficiency of the inhibitor at 25 °C

3.2 Potentiodynamic Polarization Diagram

Figure 3 shows the potentiodynamic polarization diagram of steel in 0.5 M H2SO4 without the presence of inhibitor and different concentrations of inhibitor. Electrochemical parameters including corrosion potential (Ecorr), corrosion current intensity (Icorr) and anodic and cathodic Toefl slopes (βa, βc) are measured and are shown in Table 2. The degree of surface coverage (θ) and inhibitory efficiency (IE%) are calculated by the following equations [41, 42]:

Fig. 3
figure 3

Tafel plots without and with corrosion inhibitor: blank (1), 1 (2), 1.5 (3), 2 (4) mg L−1

$$\theta =\frac{I^\circ -I}{I^\circ }$$
(2)
$${\text{IE}}\mathrm{\%}=\frac{I^\circ -I}{I^\circ }\times 100$$
(3)

İcorr and Icorr are the density of corrosion currents in solution without inhibitor and in the presence of inhibitor, respectively. As shown in Table 2, the corrosion current density decreases with increasing inhibitor concentration. Also, with increasing Schiff base concentration, both tofel anode and cathode slopes do not have a specific trend. This confirms that the inhibitor prevents corrosion by covering the active points on the metal surface [43]. The amount of corrosion potential in the presence of inhibitor is reduced compared to the solution without Schiff base and the corrosion potential decreases with increasing concentration of the inhibitor. Figure 3 shows the results of the polarization test which confirms this. Considering that at low concentration, the corrosion potential is reduced compared to the solution without inhibitor. This inhibitor did not have an impressive effect on the anodic and cathodic tafel slopes. It can be concluded that the inhibitory function of Schiff base ligand reduced the exchange rate of anodic and cathodic reactions which have a greater effect on the cathode branch. However, as the inhibitor concentration increases, the corrosion potential moves to more negative values (Fig. 3), which indicate that as the inhibitor concentration increases, its effect on the cathode branch increases. According to Table 1, with increasing the ligand concentration, inhibition efficiency increased. The inhibitor was mixed type due to its effect on the anodic reaction of metal dissolution and the cathodic reaction of hydrogen and oxygen reduction. However, the effect on the cathodic reaction is more pronounced. In other words, the increase in anodic dissolution energy is less than the increase in hydrogen reduction energy. In addition, the corrosion potential changes slightly with increasing concentration, indicating a mixed mechanism [44,45,46,47].

Table 1 Tafel curves results

3.3 EIS Test

Figure 4 shows the Nyquist diagram in H2SO4 solution without inhibitor and at different concentrations of inhibitor. As shown in the Fig. 4, the radius of the semicircle increases with increasing concentration. This indicates that with increasing inhibitor concentration, the resistance to electric charge (Rct) increases and, consequently, the degree of corrosion of the steel in solution decreases. The plots show a depressed capacitive loop which arises from the time constant of the electrical double layer and charge transfer resistance. As can be seen, higher charge transfer resistance was obtained in the presence of the inhibitor. The data for the impedance test are shown in Table 2. As the inhibitor concentration increases, the amount of dual-layer capacitor (Cdl) decreases. This indicates that the inhibitory molecules replace the water molecules on the metal surface. Increasing the load transfer resistance and decreasing the capacitive hardness indicate that the charge transfer is a process that controls the corrosion of steel [43]. The results demonstrate that the presence of inhibitors enhance the value of Rct obtained in the pure medium while that of Qdl is reduced. The decrease in Qdl values was caused by adsorption of inhibitor indicating that the exposed area decreased. On the other hand, a decrease in Qdl, which can result from a decrease in local dielectric constant and/or an increase in the thickness of the electrical double layer, suggests that Schiff base inhibitors act by adsorption at the metal–solution interface. As the Qdl, exponent (n) is a measure of the surface heterogeneity, values of n indicates that the steel surface becomes more and more homogeneous as the concentration of inhibitor increases as a result of its adsorption on the steel surface and corrosion inhibition. The increase in values of Rct and the decrease in values of Qdl with increasing the concentration also indicate that Schiff bases act as primary interface inhibitors and the charge transfer controls the corrosion of steel under the open circuit conditions.

Fig. 4
figure 4

Nyquist plots in the absence and presence of the corrosion inhibitor: blank (1), 1 (2), 1.5 (3), 2(4) mg L−1

Table 2 AC impedance studies

3.4 Adsorption Isotherm of the Corrosion Inhibitor

The main information on the interaction of the inhibitor with the surface of carbon steel can be obtained from the adsorption isotherm [47]. To obtain isotherms, it is necessary to find linear relationships between the values of the surface coverage (θ) and the inhibitor concentration (Cinh). Adsorption isotherms were tested for their fit to the experimental data. The linear regression coefficient values (R2) are determined from the plotted curves. According to these results, it can be concluded that the best description of the adsorption behavior of three compounds can be explained by Langmuir adsorption isotherm. The Langmuir isotherm, in contrast to other isotherms, most fully described the adsorption behavior of the molecules of the studied inhibitors. According to this isotherm, θ is related to Cinh by the following equation [46]:

$$\frac{{C}_{\text{inh}}}{\theta }={C}_{\text{inh}}+\frac{1}{{K}_{\text{ads}}}$$
(4)

where Cinh is the inhibitor concentration, and Kads is the equilibrium constant of the adsorption process of the inhibitor.

According to Eq. 4, Kads can be determined from the intersection point of the straight line on the graph of Cinh/θ versus Cinh. Also, the standard free energy of adsorption (ΔG°ads) can be represented by the following equation [46]:

$${\Delta G^\circ }_{\mathrm{ads}}=-\mathrm{RTln}(55.5{K}_{\mathrm{ads}})$$
(5)

where ΔG°ads is the standard free energy of adsorption (J mol−1), R is the universal gas constant (8.314 J mol−1 K−1), and T is the temperature (K).

As shown in Fig. 5, the plot of Cinh/θ versus Cinh is a straight line, which depicts that the adsorption of all corrosion inhibitors on the surface of the carbon steel samples obeys the Langmuir isotherm. In this case, RSH was tested at 25 °C. The coefficient of determination (R2) was practically equal to unity for all reagents. The high values of the coefficients of determination show that the surface of carbon steel samples was protected by the adsorption of inhibitor molecules, which fully corresponded to the Langmuir isotherm. Moreover, the equilibrium constant of the adsorption process (Kads) is determined according to Eq. 4. The results are presented in Table 3. High Kads values indicate that the inhibitor molecules have strong adsorption capacity on the surface of the carbon steel samples. The mixture of inhibitor had the highest Kads value. In addition, the standard free energy of adsorption (ΔG°ads) was calculated using Eq. 5 for the compound. The results are also shown in Table 3. Negative values of ΔG°ads are consistent with the spontaneity of the adsorption process and the stability of the adsorbed layer on the surface of carbon steel samples. The values of ΔG°ads for the corrosion inhibitor was around − 32 kJ mol−1, which indicates that the adsorption mechanism on the surface of carbon steel in 0.5 M H2SO4 solution corresponds to the chemisorption of molecules.

Fig. 5
figure 5

Langmuir isotherm adsorption model RSH2 on the surface of steel in H2SO4 solution

Table 3 The adsorption parameters of the corrosion inhibitor determined on the Langmuir isotherm

The negative values of ∆Gads suggest that the adsorption of Schiff bases on the carbon steel surface is spontaneous. Generally, the values of ∆Gads around or less than − 30 kJ mol−1 are associated with the electrostatic interaction between charged molecules and the charged metal surface (physisorption), while those around or higher than − 40 kJ mol−1 mean charge sharing or transfer from the inhibitor molecules to the metal surface to form a coordinate type of metal bond (chemisorption). The values of Kads and ∆Gads are listed in Table 3. The ∆Gads values are around − 30 kJ mol−1, which means that the absorption of inhibitors on the carbon steel surface belongs to the physisorption and the adsorptive film has an electrostatic character [11,12,13].

3.5 Surface Morphology Study

The morphology of the surface of steel samples in half-molar acid solution was examined by AFM microscope in the presence of 2 mg RSH2 and without the inhibitor at 25 °C and after 24 h of immersion. The results are shown in Figs. 6 and 7. In the absence of inhibitor due to rapid corrosion by rough acid solution is observed. Corrosion in this case is relatively uniform and there is no sign of local corrosion. In the presence of the inhibitor, the steel surface roughness is reduced, which indicates the formation of a film on the metal surface and its inhibitory effect.

Fig. 6
figure 6

a AFM images without corrosion inhibitor, b AFM images with corrosion inhibitor (3D View)

Fig. 7
figure 7

a AFM images without corrosion inhibitor, b AFM images with corrosion inhibitor (Line Graph)

SEM images of abraded mild steel metal in 0.5 M H2SO4 solution without and with 2 mg L−1 of RSH2 is shown in the Fig. 8a and b. The surface of steel in the nonattendance of the inhibitor is highly corroded which is due to aggressive attack of sulfuric acid ions, whereas, in the presence of Schiff base compound, the significant enhancement in the steel surface smoothness was observed. This is due to adsorption of the inhibitor on the steel in 0.5 M H2SO4 solution.

Fig. 8
figure 8

a SEM images without corrosion inhibitor, b SEM images with corrosion inhibitor

3.6 DFT

The molecule's lowest thinkable beginning energy was gained by exploit a conformer search (Boltzmann jump technique; number of conformers: 3000; utilizing the COMPASS II forcefield) during the early phase of the process. Figure 9 shows the lowest energy conformer which was used as the starting point for DFT calculations.

Fig. 9
figure 9

Energies of the conformer search and the corresponding resulting structure of the inhibitor

The σ-profile shows the charge density spreading on the molecule's surface and may be used to define the solubility of the inhibitor molecule (in our case water) [27, 29]. Utilizing the COSMO model's calculations allows for the generation of a charge density curve complete with a sigma profile. In COSMO, the electrostatic potential of atomic nuclei is represented by nuclei of atomic particles that have just a partial charge [28, 29, 48,49,50].

As can be seen in Fig. 10, inhibitor is capable of performing the dual role of H-bond acceptors and donors. When an inhibitor is dissolved, H-bond acceptor/donor associations are formed between water molecules, and the solubility of the inhibitor is controlled by its potential to establish H-bonds. O and N heteroatoms, which are located close to the HOMO electron density of the inhibitor, are also located close to the LUMO electron density, as is seen in Fig. 11. Figure 11 shows that the HOMO electron density is diffused toward the heteroatoms of the molecules (O and N) onto the phenyl ring, which suggests that these molecules are able to transmit electrons to the surface of the iron. This is something that can be seen in the figure. Coating of a protective organic layer on metal surfaces results from this electron sharing, which safeguards metal from corrosion [51,52,53,54]. LUMOs are electron acceptors that are related to sections of the inhibitor that get electrons from an electron surface that is rich in metals like that found in mild steel. These electrons come from an electron surface that has been enriched from a metal. LUMOs are electron acceptors that accept electrons from an electron surface that is rich in metals, such that found in mild steel. These electrons come from an electron surface that has a high concentration of metals [52, 53, 55, 56].

Fig. 10
figure 10

σ-profile of the inhibitors

Fig. 11
figure 11

HOMO, LUMO, and ESP surface of the inhibitor

It is anticipated that surface adsorption will be marginally enhanced as a result of the exchange of lone pair electrons between heteroatoms (N and O) and the vacant iron d-orbital [47]. This will lead to a marginal increase in the surface absorption potential on the metal's surface. Surface adsorption will be somewhat amplified [52, 53, 57]. The most often reported qualifiers are included in Table 4, which is sorted by the frequency with which they have been used (the equations used to calculate them can be found elsewhere). It is feasible to obtain a better knowledge of the adsorptive behavior of inhibitors if one looks at the DFT simulations of inhibitors' adsorbing activities [54, 58, 59]. It is generally believed, in light of the inhibitors' low electron affinity and high ionization potential, that the adsorption of the inhibitors onto the Fe(110) surface is supported by the inhibitors' ability to exchange electrons with the metal surface. This is because the electron affinity of the inhibitors is high (Table 4) [38, 58, 60]. Chemical softness and hardness are predicted values that represent the inhibitor's adsorption affinity for the metal surface, and high values of chemical softness are expected as a result of this adsorption affinity. The inhibitors ∆E is − 0.572, indicating that they have ability to accept electrons from the Fe(110) surface [38, 60,61,62,63,64,65,66,67].

Table 4 Calculated theoretical chemical parameters for the inhibitor

When it comes to metal adsorption, Mulliken atomic charges (MAC) are a reliable and convincing indicator of the inhibitory sites (atoms) that are engaged in the process. A great number of suggestions have been put up in an effort to explain why a certain atom on the surface of Fe (1 1 0) and a variety of inhibitor chemicals are more likely to interact with one another [53, 54, 59]. Figure 12 is a representation of the inhibitor's MAC which is of particular importance to us. The oxygen and nitrogen atoms in inhibitor have very negative charges, which indicate that these centers have the maximum density of electrons and, as a result, are the most effective in adhering to metallic surfaces. Inhibitors' oxygen and nitrogen atoms are responsible for the inhibition process. Figure 10 provides a visual representation of the molecular electrostatic potential (MEP) of the inhibitors at a range of different doses (area in red).

Fig. 12
figure 12

Optimized structures of the inhibitors and their Mulliken atomic charges (MAC)

3.6.1 Monte Carlo and Molecular Dynamic Simulations

Starting with the Fe(110) surface as a point of departure makes it possible to calculate the adsorption energies of the system with a level of easiness that is comparable to that of the calculation. The adsorption energy, also known as Eads, of a molecule may be determined with the use of the following equation [31, 32, 37, 38, 42, 43]:

$${E}_{\text{adsorption}}={E}_{{\text{Fe}}{\left(110\right)}_{||}{\text{inhibitor}} }-\left({\text{Fe}}_{\left(110\right)}+{E}_{\text{inhibitor}}\right)$$
(6)

where \({E}_{{\text{Fe}}{\left(110\right)}_{||}{\text{inhibitor}}}\) is the total energy of the simulated system, EFe, and \({E}_{\text{inhibitor}}\) is the total energy of the Fe(110) surface and the corresponding free inhibitor molecules.

Following the fruitful conclusion of the MC calculations, a thorough investigation into the adsorption geometry of the inhibitor was carried out in order to validate the findings. A comparison of the values of the steady-state energy to the values of the starting energy may be used to evaluate the capability of the MC simulation to reach a state of equilibrium. The simulation had progressed to the point where the system had attained the condition of operation that required the least amount of energy. Figure 13 is a representation of the actual arrangement of the adsorbent inhibitors, which corresponds to the actual arrangement of the adsorbent inhibitors. This representation is made on a simulated Fe (110) plane. During the MD procedure, the surface of Fe (110) is decorated by the inhibitor in a direction that is virtually almost parallel to the inhibitor's orientation on the side of one of the phenyl rings. As seen in Fig. 9, we have a hypothesis that this adsorption pattern on the Fe (110) plane is caused by the backbone of an inhibitor molecule sticking to the surface atoms of the plane. This hypothesis is supported by the data (subject to the control of heteroatoms). The tendency of molecules to bring their heteroatoms and electron rings to the surface makes it possible for such molecules to adsorb, which is what gives those molecules their adsorptive properties [38, 52, 54, 65, 68].

Fig. 13
figure 13

A. MC and B. MD poses the lowest adsorption configurations for inhibitors adsorption in the simulated corrosion media on the Fe (1 1 0) substrate

The development of sizeable Eads (Fig. 14) on the surface of the metal is the consequence of inhibitors being adsorbed to the surface. Because of the exceptionally high adsorption energies of the inhibitor, it has a considerable adsorption interaction with the metal. The surface of the metal is protected against corrosion as a result of this behavior, which results in the formation of a protective layer on the metal's surface [52, 53, 55, 60, 61, 66, 68, 69]. MD is widely considered as a more accurate representation of the adsorption dynamics [39,40,41, 43].

Fig. 14
figure 14

The distribution of the adsorption energies of the inhibitors used in the simulated corrosion media obtained from MC calculations

After several hundreds of ps of NVT simulation, it is clear that the inhibitors shown in Fig. 13 adopt a somewhat planar geometry on both sides of the phenyl rings onto the metal surface. This results in a strong adsorption of the inhibitors onto the Fe surface. The RDF analysis of the MD trajectory obtained during corrosion simulations is a straightforward method that may be used to investigate the corrosion inhibitor adsorption on metal surfaces. This method is straightforward and doesn't involve any complications [54, 55, 59, 61].

If peaks emerge at a certain distance away from the metal surface, it is feasible to observe the adsorption processes that take place on metal surfaces by looking at the RDF graph [47, 67, 70]. When perceived in the 1–3.5 Å range in span, heights are regarded to be representative of chemisorbable processes; however, RDF peaks are ordinary to be present at distances higher than 3.5 Å in distance when representing physical adsorption processes. Numerous studies [47, 51, 55, 56, 59, 64, 68, 69] found that RDF peak values for Fe surface and inhibitor heteroatoms (N and O) were seen at distances smaller than 3.5 Å (Fig. 15). When the inhibitor interacts with the metal surface, it looks to be applying a significant interaction on it, as shown by its comparatively high negative energy value and RDF peaks. In our case, judging from the RDF graph, the inhibitor interacts with the Fe surface mainly through the O atoms.

Fig. 15
figure 15

RDF of heteroatoms (O and N) for the inhibitor on the Fe (110) surface accomplished from MD trajectory analysis

4 Conclusion

In this study, the effects of corrosion inhibition and the ability of adsorption of new compound (RSH2) on carbon steel surface were investigated and the following results were obtained. This organic compound has inhibition properties in 0.5 M H2SO4 medium. AFM analysis supports the creation of a preventive layer of inhibitor on steel surface layer which facilitates the lowering of corrosion rate. This inhibitor affects both anodic and cathodic branches and reduces the corrosion rate by reducing the exchange current of reactions by blocking existing sites. As a result of the MD calculations, it has been demonstrated that inhibitor is relatively flat-adsorbed on both sides of the phenyl rings, which result in the exposure of their adsorption centers to the surface of iron. The high negative adsorption energy of the inhibitor is supported also from experimental results.