1 Introduction

Mild steel finds application in a wide spectrum of industries owing to its high mechanical strength, abundance and low cost. Corrosion, like an insidious cancer, deteriorates the surface of the metals and alloys in different environment [1,2,3]. In industries, acid solutions are more frequently used in boilers for descaling, pickling, etc. Mild steel suffers from severe corrosive attack in this acidic condition. Hence, the study on corrosion of mild steel in aggressive acidic condition assumes significance from industrial point of view [4, 5].

The use of chemical inhibitors is one of the most practiced methods for protecting against corrosion, especially in acid media, to prevent metal dissolution and acid consumption [6]. Various organic and non-organic compounds have been studied as inhibitors to protect metals from corrosion. Usually, organic compounds exert a significant influence on metal surface adsorption and therefore can be used as effective corrosion inhibitors. The efficiency of these organic corrosion inhibitors is related to the presence of polar functions containing S, O or N atoms which are centers for the establishment of the adsorption process [7,8,9,10,11,12].

Theoretical chemistry, including quantum chemical calculation and MD simulations have been proved to be a very powerful tool for studying the mechanism of corrosion inhibition [13,14,15]. This theoretical approach has been widely used to investigate a correlation between molecule structure and inhibition efficiency of an organic compound [16, 17].

In the present work, the corrosion inhibition efficiency of naphthalene derivative (NDA) on mild steel in 1 M hydrochloric acid solution was studied using weight loss measurement, potentiodynamic polarization curves and electrochemical impedance spectroscopy (EIS). Effects of inhibitor concentration and temperature on inhibition action were investigated. The quantum chemical calculations and MD simulations were done to provide additional insights into the corrosion process. The chemical structure of inhibitor is given in Fig. 1.

Fig. 1
figure 1

1,5-Diaminonaphthalene (NDA)

2 Materials and Methods

2.1 Materials

The steel used in this study is a mild steel with a chemical composition (in wt%) of 0.09% P, 0.01% Al, 0.38% Si, 0.05% Mn, 0.21% C, 0.05% S and the remainder iron (Fe). The steel samples were pre-treated prior to the experiments by grinding with emery paper sic (220, 400, 800, 1000 and 1200); rinsed with distilled water, degreased in acetone, washed again with bidistilled water and then dried at room temperature before use.

2.2 Solutions

The aggressive solutions of 1 M HCl were prepared by dilution of analytical grade 37% HCl with distilled water. The concentration range of NDA used was 10−6 to 10−3 M.

2.3 Gravimetric Study

Gravimetric experiments were performed according to the standard methods [18], and the mild steel sheets of 1 × 1 × 0.1 cm3 were abraded with a series of emery papers SiC (120, 600 and 1200) and then washed with distilled water and acetone. After weighing accurately, the specimens were immersed in a 100-mL beaker containing 250 mL of 1 M HCl solution with and without addition of different concentrations of inhibitor. All the aggressive acid solutions were open to air. After 6 h of acid immersion, the specimens were taken out, washed, dried and weighed accurately. In order to get good reproducibility, all measurements were taken few times and average values were reported to obtain good reproducibility. The inhibition efficiency (\({\eta_{WL}}(\% )\)) and surface coverage (θ) were calculated as follows:

$${C_{\text{R}}} = \left[ {\frac{{{W_{\text{b}}} - {W_{\text{a}}}}}{At}} \right]$$
(1)
$${\eta_{WL}}(\%) = \left[ {\frac{{C_{\text{R}}^{\circ} - {C_{\text{R}}}}}{{C_{\text{R}}^{\circ} }}} \right] \times 100$$
(2)

where \({W_{\text{b}}}\) and \({W_{\text{a}}}\) are the weight of the sample before and after immersion in the different solutions, \(C_{\text{R}}^{\circ}\) and \({C_{\text{R}}}\) are the corrosion rate without and with addition of inhibitor respectively, A is the area of the sample (cm2), and t is the time of exposure (h).

2.4 Electrochemical Measurements

The electrochemical measurements were taken using Volta lab (Tacussel–Radiometer PGZ 100) potentiostat and controlled by Tacussel corrosion analysis software model (Voltamaster 4) under static condition. The corrosion cell used had three electrodes. The reference electrode was a saturated calomel electrode (SCE). A platinum electrode was used as auxiliary electrode of surface area of 1 cm2. The working electrode was mild steel of the surface 1.16 cm2. All potentials given in this study were referred to this reference electrode. The working electrode was immersed in test solution for 30 min to a establish steady-state open-circuit potential (Eocp). After measuring the Eocp, the electrochemical measurements were taken. All electrochemical tests have been performed in aerated solutions at 308 K. The EIS experiments were conducted in the frequency range with high limit of 100 kHz and different low limit 0.1 Hz at open-circuit potential, with 10 points per decade, at the rest potential, after 30 min of acid immersion, by applying 10 mV AC voltage peak to peak. Nyquist plots were made from these experiments. The best semicircle can be fit through the data points in the Nyquist plot using a nonlinear least square fit so as to give the intersections with the x-axis. The inhibition efficiency of the inhibitor was calculated from the charge transfer resistance values using the following equation:

$${\eta_{\text{EIS}}}(\% ) = \left[ {\frac{{{R_{\text{p(inh)}}} - {R_{\text{p}}}}}{{{R_{\text{p(inh)}}}}}} \right] \times 100$$
(3)

where \({R_{\text{p(inh)}}}\) and \({R_{\text{p}}}\) are the polarization resistances with and without addition of inhibitor in 1 M HCl.

After AC impedance test, the potentiodynamic polarization measurements of mild steel substrate in inhibited and uninhibited solution were scanned from cathodic to the anodic direction, with a scan rate of 1 mV s−1. The potentiodynamic data were analyzed using the polarization VoltaMaster 4 software. The linear Tafel segments of anodic and cathodic curves were extrapolated to corrosion potential to obtain corrosion current densities (icorr).

The inhibition efficiency was evaluated from the measured icorr values using the following equation:

$${\eta_{\text{PDP}}}(\% ) = \left[ {1 - \frac{{{i_{\text{corr}}}}}{{i_{\text{corr}}^\circ }}} \right] \times 100$$
(4)

\(i_{\text{corr}}^\circ\) and \({i_{\text{corr}}}\) are the current density without and with addition of inhibitor in 0.5 M sulfuric acid.

2.5 Quantum Chemical Calculations

Complete geometry optimization of the inhibitor molecules were performed using density functional theory (DFT) with Beck’s three-parameter exchange functional along with Lee Yang–Parr non-local correlation functional (B3LYP) with 6-31G basis set using the Gaussian 09 program package [19,20,21]. The geometry optimizations were considered to be complete when the stationary point was located. The optimized structures were confirmed to be true minima by frequency analysis (no imaginary frequencies). Frontier molecular orbitals (HOMO and LUMO) were used to interpret the adsorption of inhibitor molecules on the metal surface. The electron affinity (EA) and ionization potential (IP) are deduced from EHOMO and ELUMO by the Eqs. (5) and (6) [22]:

$${\text{IP}} = - {E_{\text{HOMO}}}$$
(5)
$${\text{EA}} = - {E_{\text{LUMO}}}$$
(6)

Mulliken electronegativity (χ) and absolute hardness (η) can be approximated using [23, 24]:

$$\chi = \frac{{{\text{IP}} + {\text{EA}}}}{2}$$
(7)
$$\eta = \frac{{{\text{IP}} - {\text{EA}}}}{2}$$
(8)

The number of transferred electrons (ΔN) is calculated by application of the Pearson method using the equation [25]:

$$\Delta N = \frac{{\phi - {\chi_{\text{inh}}}}}{{2({\eta_{\text{Fe}}} + {\eta_{\text{inh}}})}}$$
(9)

where \(\phi\) and χinh denote the work function and absolute electronegativity of iron and inhibitor molecule, respectively, ηFe and ηinh denote the absolute hardness of iron and the inhibitor molecule, respectively. A theoretical value ηFe=0 is frequently used (since for bulk metallic atoms I = A). The obtained DFT-derived \(\phi\) values for Fe (100), Fe (110) and Fe (111) surfaces are 3.91, 4.82 and 3.88 eV, respectively [26, 27]. In this study, we use only Fe (110) surface due to its higher stabilization energy and packed surface [28].

2.6 Molecular Dynamics (MD) Simulations

Currently, molecular dynamics (MD) simulations have emerged as a very popular exploratory technique to studies of interaction between inhibitor and the concerned metal surfaces. In this present investigation, calculations were carried out using Materials Studio package [29] using the COMPASS force field and the Smart algorithm with NVT ensemble has been employed to study the interactions between the Fe (110) surface and the inhibitor molecules [29] with periodic boundary conditions to model a representative part of the interface devoid of any arbitrary boundary effects. The first step was to import the iron crystal, its surface cleaved along (1 1 0) plane with a thickness of 10.435 Å, and their lattice parameters are a = b = 24.82 Å, c = 10.13 Å. The Fe (110) surface was relaxed by minimizing its energy using smart minimizer method. The second step was to create a super cell (10 × 10) to increase the Fe (1 1 0) surface and change its periodicity. A vacuum slab with zero thickness was built. The third step, a supercell with a size of a = b = 25.72 Å, c = 26.38 Å, contains 491 H2O, 9Cl, 9 H3O+, and one inhibitor molecule was created. Finally, the layer builder was used to create the entire model with a size of a = b = 25.72 Å, c = 37.83 Å. The simulation was carried out in a simulation box (25.72 × 25.72 × 37.83 Å3). Herein, Fe (110) surface has been preferred as it has a packed surface and high stability compared to other Fe surfaces [28]. The temperature was fixed at 303 K with a time step of 1 fs and simulation time of 2000 ps. An Andersen thermostat was used to maintain the system temperature at 303 K. The system was quenched every 5000 steps with the Fe (110) surface atoms constrained. Optimized structure of the inhibitor molecule was used for the simulation. More details of MD simulation are referenced from our published articles [30, 31].

3 Results and Discussion

3.1 Electrochemical Impedance Spectroscopic Study

Nyquist plots of mild steel in 1 M HCl solution without and with different concentrations of NDA are shown in Fig. 2. It is seen that the Nyquist diagram shows a capacitive loop which suggest that the corrosion of mild steel in test solution is mainly controlled by charge transfer process [32, 33]. The diameter of the capacitive loop in the presence of inhibitor is bigger than that in the uninhibited solution and increases with the inhibitor concentrations. The impedance parameters such as polarization resistance (Rp), double-layer capacitance (Cdl), the frequency (fmax) and inhibition efficiency of NDA are listed in Table 1.

Fig. 2
figure 2

Nyquist plots for steel in 1 M HCl solution containing different concentrations of NDA

Table 1 EIS parameters for the corrosion of mild steel in 1 M HCl containing NDA at 308 K

It is seen that the Rp value increases and the Cdl value decreases by the addition of inhibitor. A large polarization resistance (Rp) is associated with a slower corroding system. An increase in polarization resistance values could be ascribed to the adsorption of inhibitor at steel–acid interface, which effectively blocked the active sites on mild steel surface and hence enhances the corrosion resistance of mild steel in acidic medium. The decrease in Cdl values with an increase in the inhibitor concentration, suggesting that either thickness of protective layer increased, or local dielectric constant of film decreased, or both occurred simultaneously [34, 35]. The inhibition efficiency increases with increasing inhibitor concentration due to more coverage of mild steel surface with the inhibitor concentrations.

3.2 Potentiodynamic Polarization Study

Polarization measurements were taken to investigate the behavior of mild steel electrode in 1 M HCl in the absence and presence of inhibitor. The current–potential relationship for the mild steel electrode in various test solutions is shown in Fig. 3, while the electrochemical data obtained from the polarization curves are presented in Table 2.

Fig. 3
figure 3

Polarization curves of mild steel in 1 M HCl containing different concentrations of NDA

Table 2 The electrochemical parameters for mild steel in 1 M HCl solution without and with different concentration of NDA at 308 K

Figure 3 shows that both anodic and cathodic current densities decreased in the presence of the investigated compound. This decrease is more pronounced with the growth in inhibitor concentration. This observation demonstrates that the inhibitor is adsorbed on the mild steel surface. Consequently, this adsorption reduces both anodic dissolution of iron at anodic sites and cathodic evolution of hydrogen at cathodic sites. As the inhibitor concentration rises, the extent of adsorption increases, leading to increased inhibition efficiency.

Comparing the samples without and with inhibitor, it is obvious that when NDA is used as inhibitor, the Ecorr values for mild steel in 1 M HCl shifts slightly toward more positive direction from that for the uninhibited sample (Fig. 3, Table 2) indicating the mixed mode of corrosion with predominately anodic effect.

Compared with the blank experiment, both the cathodic and anodic Tafel slope changed slightly which implied that the cathodic hydrogen evolution and anodic metal dissolved reaction had been compressed. The inhibition efficiencies calculated from potentiodynamic polarization showed the same trend as those obtained from EIS (Tables 1, 2).

3.3 Weight Loss Study

3.3.1 Effect of Inhibitor Concentration

Table 3 shows the results obtained from weight loss measurements for mild steel in 1 M HCl solutions in the absence and presence of different concentrations of NDA. It has been observed from the results that the IE (%) of NDA increases from 7 to 92% with the increase in inhibitor concentration from 10−6 to 10−3 M. Indeed, corrosion rate values of mild steel decreases from 0.56 to 0.04 mg cm−2 h−1 on the addition of 10−6–10−3 M of NDA. The results confirm that NDA is an efficient corrosion inhibitor, which gives efficiency values as high as 92% in room temperature. The inhibiting performance exhibited by the compound may be due to the presence of protonated form of nitrogen atoms of the compound which makes it adsorb quickly on the mild steel surface, thus forming an insoluble stable film on the surface of the mild steel. It is clear that NDA showed good inhibition for mild steel corrosion in 1 M HCl solution because the inhibitor molecule is made of planar aromatic and also contains N atoms and π-electrons (Table 3).

Table 3 Weight loss values of various concentrations of NDA in 1 M HCl solution

3.3.2 Adsorption Isotherm

The extent of adsorption of an inhibitor on the metal surface is usually influenced by the parameters such as the nature, chemical structure, distribution of charge on the molecule and charge on the metal. Basic information regarding the nature of interaction of the adsorbed inhibitor molecule and the mild steel surface can be elucidated using adsorption isotherm [36, 37]. The surface coverage θ can be obtained by using the well-known formula E%/100. The value of θ increased with the increase in inhibitor concentration, demonstrating the more pronounced adsorption of inhibitor on the metal surface. The θ value was fitted to various isotherms like Langmuir, Freundlich, Florry–Huggins and El-awady. Langmuir was found to give the best description on the adsorption of inhibitor. The equation corresponding to Langmuir adsorption isotherm is [38]:

$$\frac{{{C_{\text{inh}}}}}{\theta } = \frac{1}{{{K_{\text{ads}}}}} + {C_{\text{inh}}}$$
(10)

where θ is the surface coverage degree, Cinh is the inhibitor concentration in the electrolyte, and Kads is the equilibrium constant of the adsorption process. A plot of Cinh versus Cinh/θ gave a straight line with a slope around unity (Fig. 4). This suggests monolayer adsorption of inhibitor on the surface of mild steel.

Fig. 4
figure 4

Langmuir adsorption isotherm plot for the adsorption of NDA in 1 M HCl on the surface of mild steel

ΔGads calculated from Langmuir adsorption isotherm using the following equation:

$$\Delta G_{\text{ads}}^\circ = - RT\ln ({K_{\text{ads}}} \times 55.5)$$
(11)

where R is the universal gas constant, T the thermodynamic temperature, and the value of 55.5 is the concentration of water in the solution.

In Fig. 4, the intercept on the vertical axis is the value of 1/Kads, which is 3.20956 × 10−5 M. Generally, values of ΔGads are up to − 20 kJ mol−1, the types of adsorption were regarded as physisorption, the inhibition acts due to the electrostatic interactions between the charged molecules and the charged metal, while values around − 40 kJ mol−1 or smaller are associated with chemisorption as a result of sharing or transfer of electrons from organic molecules to the metal surface to form a coordinate type of bond (chemisorption) [39]. Then, according to Eq. (12), we calculated the ΔGads° = − 36, 78 kJ mol−1. Therefore, it can be concluded that the adsorption of the NDA on the mild steel surface is mainly the chemical adsorption inevitably accompanied by the physical adsorption [5].

3.3.3 Influence of Temperature

The loss in the weight of the steel samples in 1(M) HCl in the absence and presence of various concentrations of NDA at different temperatures was determined. The effect of temperature on the inhibition efficiency of the NDA is shown in Table 4. In all cases, an increase in NDA concentration leads to a decrease in the corrosion rate of samples indicating that the presence of NDA retards the general corrosion of samples in 1 M HCl. On the other hand, an increase in temperature from 308 to 348 K resulted in an increase in the corrosion rate for all the concentration of NDA, probably as a result of desorption of inhibitor molecules from the metal surface.

Table 4 Weight loss values of NDA at various temperatures in 1 M HCl solution

Thermodynamic parameters are important to understand the inhibition mechanism. The thermodynamic functions for dissolution of mild steel without and with the addition of optimum concentration of NDA at various temperatures were calculated from the logarithm of corrosion rate (w) of metal in acidic HCl solution by using the Arrhenius equation:

$$W = A\exp \left( {\frac{{ - {E_{\text{a}}}}}{RT}} \right)$$
(12)

where w is the corrosion rate, Ea is the apparent activation energy, and A is the pre-exponential factor. The Arrhenius plots of Ln W versus 1/T for the blank and optimum concentration of NDA give a straight line and a slope equal to—Ea/R shown in Fig. 5, from which the values of Ea for the inhibited corrosion reaction of mild steel have been calculated and are recorded in Table 5.

Fig. 5
figure 5

Arrhenius plots for mild steel corrosion rates Ln (W) versus 1/T in 1 M HCl in the absence and in the presence of optimum concentration of NDA

Table 5 Values of activation parameters for mild steel in 1.0 M HCl in the absence and presence of 10−3 M of NDA

In 1 M HCl solution, the addition of NDA leads to an increase in the apparent activation energy to value greater than that of the uninhibited solution, suggesting that the energy barrier of the corrosion reaction increases, meaning that the dissolution of the steel is difficult [40].

In order to calculate activation parameters for the corrosion process, an alternative formulation of Arrhenius (14) was used:

$$W = \frac{RT}{Nh}\exp \left( {\frac{{\Delta {S_{\text{a}}}}}{R}} \right)\exp \left( { - \frac{{\Delta {H_{\text{a}}}}}{RT}} \right)$$
(13)

where W is the corrosion rate, h is the Plank’s constant, N is the Avogadro’s number, ∆Ha is the enthalpy of activation , and ∆Sa is the entropy of activation. Figure 6 shows a representative plot for the transition state in 1 M HCl solutions without and with 10−3 M of NDA. Activation parameters obtained from these graphs are given in Table 5.

Fig. 6
figure 6

Transition-state plots for mild steel corrosion rates Ln (w/T) versus 1/T in 1 M HCl in the absence and in the presence of optimum concentrations of NDA

The thermodynamic parameters (∆Ha and ∆Sa) of the dissolution reaction of steel in 1 M HCl in the presence of NDA are higher than that in the absence of inhibitor (blank). The positive signs of the enthalpies ∆Ha reflect the endothermic nature of the steel dissolution process and mean that the dissolution of steel is difficult [41]. In the presence of NDA, the increase in ∆Sa reveals that an increase in disordering takes place on going from reactants to the activated complex [42].

3.4 Quantum Chemical Studies

Figure 7 represents the optimized geometry, HOMO and LUMO orbitals of the inhibitor molecule, while the computed quantum chemical parameters are given in Table 6. It is well known that HOMO is often associated with the electron-donating ability of a molecule, whereas LUMO indicates its ability to accept electrons [41]. Reportedly, excellent corrosion inhibitors are usually those organic compounds which not only offer electrons to unoccupied orbital of the metal, but also accept free electrons from the metal [41]. Figure 7 shows that the HOMO location is mainly distributed on the NDA molecule and LUMO location is distributed on the two-ring benzene. This indicates that electrons are transferred and accepted from the entire molecule of NDA.

Fig. 7
figure 7

Optimized geometry, HOMO and LUMO of the inhibitor molecule

Table 6 Quantum parameters for NDA calculated using DFT method

The value of highest occupied molecular orbital EHOMO indicates the tendency of the molecule to donate electrons to acceptor molecule with empty and low-energy orbital. Therefore, the energy of the lowest unoccupied molecular orbital ELUMO indicates the tendency of the molecule to accept electrons [28]. The energy gap ∆E is an important parameter which is related to reactivity of the inhibitor molecule toward the metal surface. In the present study, the energy gap value reflects the higher inhibition efficiency of NDA because the lower ΔE causes the improvement on the reactivity of the molecule, which facilitates adsorption [43, 44]. The number of transferred electrons (∆N) means also electron-donating ability, which gives us information of the ability of the inhibitor to donate electrons (if ∆N > 1), and the positive value of this parameter is related to the ability of tested compound to donate electron to metal surface [4, 45].

3.5 MD Simulations

The MD simulations were carried out to better understand the interaction between the NDA and Fe (110) surface. The simulations were performed in the system containing 491 water molecules, 9Cl, 9H3O+ and one molecule of the NDA. After 2000 ps, the system reaches the equilibrium which explains that both the temperature and energy reach a balance [46]. By inspection of Fig. 8, it could be observed that the NDA adsorbs nearly to Fe (110) surface, where chemical interactions can possibly occur through reactive sites in the molecule as interpreted in experimental and theoretical study. In this case, the inhibitor molecule protects the steel surface from the aggressive medium by adsorbing on the Fe (110) surface in the possible nearby planar form, reducing the MS dissolution [47, 48]. The interactions and binding energies are calculated using Eqs. (14) and (15) [48]:

$${E_{\text{interaction}}} = {E_{\text{total}}} - ({E_{\text{surface + solution}}}{ + }{E_{\text{inhibitor}}})$$
(14)
$${E_{\text{Binding}}} = - {E_{\text{interaction}}}$$
(15)

where \({E_{\text{total}}}\) is the total energy of the entire system \({E_{\text{surface + solution}}}\) referred to the total energy of Fe (110) surface and solution without the inhibitor and \({E_{\text{inhibitor}}}\) represents the total energy of inhibitor. The corresponding interaction energy value is − 265.9 kJ mol−1 indicating that NDA can more tightly adsorb on iron surface and achieve a better corrosion inhibition effectiveness [5, 49].

Fig. 8
figure 8

Equilibrium configuration of NDA in aqueous systems

4 Conclusion

All the measurements showed that the NDA has excellent inhibition properties against the mild steel corrosion in hydrochloric acid solution. Inhibition efficiency of this inhibitor decreases with the increase in temperature, and further it leads to an increase in activation energy. The inhibitor follows the Langmuir adsorption isotherm in the process of adsorption. EIS measurements also indicate that the inhibitor performance increases due to the adsorption of molecule on the metal surface. Potentiodynamic polarization measurements showed that the inhibitor acts as mixed type of inhibitor. The density distributions of the frontier molecular orbitals (HOMO, highest occupied molecular orbital and LUMO, lowest unoccupied molecular orbital) indicate that the studied inhibitor adsorbs through the active centers N and O atoms and π electrons. MD simulations study showed that the NDA adsorbed on the Fe (110) surface in a near flat orientation and the value of interaction energy of the equilibrium configuration support the experimental inhibition efficiency of the compound. The inhibition efficiencies determined by EIS, potentiodynamic polarization and weight loss studies are in good agreement.