Introduction

Corrosion is an electrochemical process by which metallic structures are destroyed gradually through anodic dissolution [1]. Protection of metallic surfaces can be achieved by the addition of specific compounds known as corrosion inhibitors [2]. Among the numerous corrosion prevention measures available, corrosion inhibitors, which have the advantages of economy, high-efficiency, and facile and feasible use, have been widely applied in various fields. As the importance of environmental protection has become increasingly recognized, the development of new green corrosion inhibitors has received increasing attention [35]. A variety of organic compounds containing heteroatoms (N, O, S) that can donate electron pairs have been used to inhibit brass corrosion in various aggressive electrolytes [611]. The use of organic inhibitors for preventing corrosion is a promising alternative. These inhibitors are usually adsorbed on the metal surface by the formation of a coordinate covalent bond (chemical adsorption) or an electrostatic interaction between the metal and inhibitor (physical adsorption) [12]. This adsorption produces a uniform film on the metal surface, which reduces or prevents contact with the corrosive medium [13]. Because organic inhibitors act by adsorption on the metal surface, the efficiency of these compounds depends strongly on their ability to form complexes with the metal [14]. Both p electrons and polar groups containing sulfur, oxygen and nitrogen are fundamental characteristics of this type of inhibitor. The polar functional groups serve as the chelation center for chemical adsorption [15]. Considerable effort has been devoted to studying the metallic corrosion inhibition properties of benzimidazole and its derivatives [1620]. Benzimidazole is a heterocyclic aromatic organic compound with a bicyclic structure comprising fused benzene and imidazole rings [21]. The hydrogen atoms on the rings can be substituted by other groups or atoms. Some derivatives of benzimidazole are excellent corrosion inhibitors for metals and alloys in acidic solution; the level of inhibition varies with substituent groups and substituent positions on the imidazole ring [2226]. The effects of the molecular structure on chemical reactivity have been studied extensively [2731]. Density functional theory (DFT) was recently successfully applied to describe the structural importance of corrosion inhibitors and their adsorption efficiency on metal surfaces [32, 33]. As part of the development of novel, more efficient organic corrosion inhibitors, several quantum-chemistry studies have been performed that relate inhibition efficiency to the molecular properties of the different types of compounds. The molecular structure and the electronic parameters, which can be obtained from theoretical calculations and include the HOMO (highest occupied molecular orbital) energy, the LUMO (lowest unoccupied molecular orbital) energy, and the energy of the gap, influence the inhibitor activity as well as reactivity, which can be treated by HSAB theory [3442]. The aim of this work is to elucidate the electron configuration of benzimidazole (BI), 2-methylbenzimidazole (2-CH3-BI) and 2-mercaptobenzimidazole (2-SH-BI) inhibitors using DFT and determine the relationship between molecular structure and inhibition efficiency. The established correlation will facilitate the design and synthesis of new inhibitors with improved inhibition efficiency.

The calculation method

To calculate the ground-state geometries, Gaussian 03, Revision C.01 [43] was optimized to a local minimum without symmetry restrictions using the valence and polarization basis set (6-31G++(d,p)) [44, 45]. A combination of the Becke three-parameter hybrid (B3) [46, 47] exchange functional and the Lee-Yang-Parr (LYP) [48] correlation functional (B3LYP) [49, 50], a version of the (DFT) method [51, 52] was used to determine all optimized geometries, HOMO energies (EHOMO), LUMO energies (ELUMO), and physical properties for the molecules in this study.

Results and discussion

Two different groups were chosen as substituents of the corrosion inhibitor molecules BI, 2-CH3-BI, and 2-SH-BI to include the most important electronic effects. The first group (nitro (-NO2)) is a strong acceptor, while the second (amino (-NH2)) is a strong donor. The nitration of corrosion inhibitor molecules yielded four models for each of the corrosion inhibitor molecules, and the same number of models was obtained for the reduced nitro group [53].

Benzimidazole (BI)

The four positions of the nitro group substituent on the benzene ring in BI were C-4, C-5, C-6 and C-7. These positions make the same contribution to both the HUMO and LUMO levels with a small difference, as shown in Figure 1. Figure 1 also shows the structures of the optimized geometries for BI and the models studied. Table 1 presents the EHOMO, ELUMO and energy gap values for (BI) and all models. The ionization potential (I) and the electron affinity (A) were calculated by application of Koopman’s theorem [54]. This theorem establishes a relationship between the energies of the HOMO and the LUMO and the ionization potential and electron affinity, respectively.

Figure 1
figure 1

B3LYP/6-31G++(d,p) optimized geometries, HOMO and LUMO of benzimidazole (BI) and the optimized geometries of the eight models.

Table 1 Quantum-chemical parameters for benzimidazole (BI) and eight models as determined by DFT at the B3LYP/6-31G++ (d,p) level

I = - EHOMO

A = - ELUMO

Table 2 presents the calculated values of inhibition efficiency % for BI and eight models, which were determined using the following formula:

I add . % = I BI - I x - BI I BI × 100 %
I e add . % = I add . % × I e BI %
I e theor . % = I e BI % + I e add . %
Table 2 The calculated inhibition efficiency % of benzimidazole (BI) and eight models

Where Iadd.% is the percentage ionization potential of the additive for model (x - BI), Ieadd.% is the inhibition efficiency %of the additive, and Ietheor.% is the theoretically calculated percentage inhibition efficiency.

These results demonstrate that the nitration of corrosion inhibitor molecules lead to a decrease in inhibition efficiency; the most efficient inhibitor was model (4-NO2-BI), which displayed an inhibition efficiency of 64.075%. By contrast, reduction of the nitro group led to an increase in inhibition efficiency; the most efficient inhibitor was model (7-NH2-BI), which displayed an inhibition efficiency of 85.609%. The inhibition efficiency of BI was 73.8%. These results represent a significant improvement in the inhibition efficiency of BI.

Methylbenzimidazole (2-CH3-BI)

The nitro group can be substituted at positions C-4, C-5, C-6 and C-7 on the benzene ring in 2- CH3-BI. These positions make the same contributions to the HUMO and LUMO levels, with the exception of position C-7, which is poor in the HUMO level as shown in Figure 2. Figure 2 also presents the structures of the optimized geometries for 2-CH3-BI and the studied models. Table 3 presents the EHOMO, ELUMO and energy gap values for (2-CH3-BI) and all models. Koopmans’ theorem was used to calculate I and A [50].

Figure 2
figure 2

B3LYP/6-31G++(d,p) optimized geometries, HOMO and LUMO of 2-methylbenzimidazole (2-CH 3 -BI) and the optimized geometries of eight models.

Table 3 Quantum-chemical parameters for 2-methylbenzimidazole (2-CH 3 -BI) and eight models obtained using DFT at the B3LYP/6-31G++ (d,p) level

Table 4 presents the calculated values of inhibition efficiency % for 2-CH3-BI and eight models, which were determined using the following formula:

I add . % = I 2 - C H 3 - BI - I x - 2 - C H 3 - BI I 2 - C H 3 - BI × 100 %
I e add . % = I add . % × I e 2 - C H 3 - BI %
I e theor . % = I e 2 - C H 3 - BI % + I e add . %
Table 4 Calculated inhibition efficiency % for 2-methylbenzimidazole (2-CH 3 -BI) and eight models

Where Iadd.% is the percentage of ionization potential additive for model (x - 2 - CH3 - BI), Ieadd.% is the percentage of inhibition efficiency additive, and Ietheor.% is the theoretical calculated percentage of inhibition efficiency.

These results demonstrate that the nitration of corrosion inhibitor molecules decreases the inhibition efficiency; the highest inhibition efficiency, 66.001%, was obtained for the model (5-NO2-2-CH3-BI). By contrast, reduction of the nitro group led to an increase in inhibition efficiency; the highest inhibition efficiency, 87.44%, was observed for the model (7-NH2-2-CH3-BI). The inhibition efficiency of 2-CH3-BI was 76.3%. These results represent a significant improvement in the inhibition efficiency of 2-CH3-BI.

Mercaptobenzimidazole (2-SH-BI)

The positions on the benzene ring in 2-SH-BI that were substituted with nitro groups were C-4, C-5, C-6 and C-7. These positions make the same contribution to both the HUMO and LUMO levels, with a small difference as shown in Figure 3. Figure 3 also shows the structures of the optimized geometries for 2-SH-BI and the studied models. Table 5 presents the EHOMO, ELUMO and energy gap values for 2-SH-BI and all models. Koopman’s theorem was used to calculate I and A [50].

Figure 3
figure 3

B3LYP/6-31G++(d,p) optimized geometries, HOMO and LUMO of 2-mercaptobenzimidazole (2-SH-BI) and the optimized geometries of eight models.

Table 5 Quantum-chemical parameters for 2-mercaptobenzimidazole (2-SH-BI) and eight models determined using DFT at the B3LYP/6-31G++ (d,p) level

Table 6 presents the calculated values of inhibition efficiency % for 2-SH-BI and eight models, which were determined using the following formula:

I add . % = I 2 - SH - BI - I x - 2 - SH - BI I 2 - SH - BI × 100 %
I e add . % = I add . % × I e 2 - SH - BI %
I e theor . % = I e 2 - SH - BI % + I e add . %
Table 6 Calculated inhibition efficiency % for 2-mercaptobenzimidazole (2-SH-BI) and eight models

Where Iadd.% is the percentage of ionization potential additive for model (x - 2 - SH - BI), Ieadd.% is the percentage of inhibition efficiency additive, and Ietheor.% is the theoretically calculated percentage of inhibition efficiency.

These results demonstrate that the nitration of corrosion inhibitor molecules led to a decrease in inhibition efficiency; the highest inhibition efficiency, 79.217%, was obtained for the model (5-NO2-2-SH-BI). By contrast, reduction of the nitro group led to an increase in inhibition efficiency; the highest inhibition efficiency, 101.382%, was obtained for the model (5-NH2-2-SH-BI). The inhibition efficiency of 2-SH-BI was 90.1%. These results represent a significant improvement in the inhibition efficiency of 2-SH-BI.

Conclusions

DFT quantum-chemical calculations established a correlation between parameters related to electronic structure and the corrosion inhibition potential of the three corrosion inhibitor molecules BI, 2-CH3-BI, and 2-SH-BI, as well as eight models for each inhibitor molecule. Most of the molecular parameters calculated at the B3LYP/6-311G++(d,p) level indicated that the nitration of corrosion inhibitor molecules led to a decrease in inhibition efficiency, while reduction of the nitro group led to an increase in inhibition efficiency. These results represent a significant improvement in inhibition efficiency compared to previously reported corrosion inhibitor molecules. An excellent correlation between inhibition efficiency and the studied models was obtained, confirming the reliability of the method employed.