Introduction

Corrosion is an essential process to consider in terms of safety and economics, especially for metals. Copper is a moderately noble metal1,2,3, and it has great electrical and thermal conductivities, as well as good corrosion resistance and workability. It is used in a lot of heating and cooling systems also it is utilized broadly as a part of industry, because of its warm conductivity. Copper’s major problem is its strong response to the acidic solutions. Several acid solutions (HCl, H2SO4, and HNO3) are it is utilized to remove harmful rust in various industrial operations. Among the commercially available acids, the most frequently used one is HNO3. The utilized corrosion protective of Cu in acid medium is mainly to less the corrosion of Cu at the time of acid descaling and cleaning. Copper corrosion depends on the way of nature as well as the state of utilization of materials. The most used method for copper corrosion protection is the utilization of organic inhibitors. Numerous organic inhibitors utilized are either created from low-cost raw materials or selected from compounds having hetero atoms in their long-chain carbon or aromatic system4. Most organic inhibitors are costly, toxic, and have a negative effect on the corrosion of metal. As a result, it is important and necessary to improve environmentally safe and low-cost corrosion protection5. The majority of the understood acid inhibitors are organic heterocyclic compounds containing O, S, P and/or N atoms6,7,8,9, these atoms enhance the activity of corrosion inhibitor. Adsorption of an inhibitor facilitates the protection of the metal surface10. As a result, covalent bonding (chemisorption) and/or electrostatic interaction (physisorption) can be used to create an adsorption coating on metal, protecting it against corrosive species attack11. It has been thought that it would be more desired and significant to produce novel low- or non-toxic corrosion inhibitors because the majority of conventional organic inhibitors are dangerous to the environment and people12. The presence of these functional groups and hetero-atoms in organic compound molecules promotes their action as copper corrosion inhibitors because these functional groups and hetero-atoms induce chemisorption. Organic derivatives also have a unique aptitude for inhibiting metal corrosion in acidic media13 and other solutions. The protection efficiency of organic inhibitors is primarily due to the presence of a polar group acting as an active center for adsorption on the metallic surface14. The presence of unoccupied d-orbitals in copper atoms that form coordinative bonds with atoms that can give electrons confirms this. There is also interaction with rings having conjugated bonds π-electrons. Heterocycle-containing pyrimidines have been reported to be safe inhibitors with excellent corrosion inhibition actions on copper metal in acidic media15. The corrosion inhibition properties of two pyrimidinone compounds were investigated in this study, coded MA-975 and MA-978C which clearly indicates that these derivatives work well as corrosion inhibitors, and that further research is recommended. Furthermore, considering recent environmental issues, these compounds are of significant concern due to their non-toxic appearances and high solubility in the test solution, which promotes protection efficiency. Some pyrimidine derivatives were utilized as corrosion inhibitors for steel and other metals in HCl and H2SO4 solutions with their percent IE predicted in Table 1. The most popular method of examining inhibitors today is still dazzle filtration. Researchers have coupled molecular dynamics simulation with thickness utility hypothesis calculation to urge deep insights into the barrier component of natural substances in an effort to understand this problem16.

Table 1 List of pyrimidine derivatives utilized as corrosion inhibitors for various metals and alloys.

Our objective is to study more about the inhibitory action of these pyrimidinone compounds because these derivatives have high molecular size, low toxicity (safe) and contain O, N, CH3 groups and benzene rings. Some advanced techniques are used, SEM and EDX were employed to examine the surface, in addition to the application of quantum chemical calculations and Monte Carlo simulation was applied also.

Materials and techniques

Composition of copper samples

The chemical composition of the copper alloy used in this paper is as follows: (weight %) 0.0050 Zn, 0.0023 Pb, 0.0023 P, 0.0018 Co, 0.019 Fe, 0.0015 Si, 0.004 Ni, 0.0011 S.

Solutions

The aggressive solution 0.5 M HNO3 was made by diluting analytical grade HNO3 (69%) with bi-distilled water, and all WL tests were performed in 100 ml unstirred solutions. Every studied compound's 100 ml stock solutions (10–3 M) were prepared by dissolving an accurately weighed quantity of each compound in an appropriate volume of dimethyl formamide (DMF) and absolute ethanol, then diluting with bi-distilled water to the needed concentrations (5 × 10–6–21 × 10–6 M).The solutions of these compounds are completely soluble in HNO3 due to it can be protonated in acid medium.

Inhibitors

The synthesis of two pyrimidinone inhibitors was depicted in Fig. 1 as reported previously31 and their chemical structures and molecular formulas were listed in Table 2. The investigations of the two pyrimidinone compounds were done at different concentrations (5 × 10−6, 9 × 10−6, 13 × 10−6, 17 × 10−6 and 21 × 10−6 M) in the attendance and non-existence of the investigated compounds. In thermostatic conditions, all experiments were conducted.

Figure 1
figure 1

The identified pyrimidinone derivatives' synthetic pathway MA-975 and MA-978C, reagents and conditions: (i) AcONa, H2O, DMSO, 5–10 °C; (ii) EtOH/AcOH, reflux.

Table 2 Pyrimidine-bichalcophene derivatives' molecular structures, formulae, and weights.

Corrosion methods

WL method

In corrosion investigations, WL measurements were utilized to select the best corrosion inhibitor32. The ASTM standard G 31–7231 was used to take this measurement. Mechanical polishing was done on the Cu alloy samples using various grades of emery sheets (1/0, 2/0, 3/0, 4/0, 5/0, and 6/0). The specimens are carefully cleaned with bi-distilled water and then degreased with acetone, dried at room temperature and then weighed. The test pieces were suspended by appropriate glass hooks at the beaker's edge and about 1 cm below the surface of the test fluid. The pieces were removed after a set amount of time, washed with bi-distilled water, dried, and weighed again. For three hours, different concentrations of inhibitors were tested for corrosion. 100 ml of blank without inhibitor and 1 M HNO3 with inhibitor were used to create these concentrations. The average value was calculated after the experiment was repeated three times. The percent Ew of the different solutions is calculated using the WL values acquired after a specified period in the mathematical Eq. (1):

$$\% E_{w} = \theta \times 100 = [1 - \left( {\Delta W/\Delta W^{\circ} } \right)] \times 100$$
(1)

where ΔW and ΔW° are weight losses per unit area (mg.cm−2) in the presence and the absence of the tested inhibitors, respectively.

Potentiodynamic polarization (PP) tests

A three electrode cell assembly with copper as the working electrode, a saturated calomel electrode (SCE) as the reference electrode, and platinum foil as the counter electrode was employed for these electrochemical research. The test sample was given 30 min to attain the steady state value of OCP before beginning the electrochemical studies. The potential range was (-200 to + 200 mV vs. SCE) at OCP with a scan rate of 0.1 mVs-1. The icorr calculation was used to calculate the Ep and the θ from the following Eq. (2):

$$\% E_{p} = \theta \times 100 = \left[ {1 - \left( {i_{corr} /i_{corr}^{\circ} } \right)} \right] \times 100$$
(2)

where icorr and iocorr are the corrosion current densities with and without inhibitors, respectively.

Electrochemical impedance spectroscopy (EIS) tests

EIS measurements were carried out by using AC signal of 10 mV amplitude for the frequency spectrum from 100 kHz to 0.01 Hz. A Gamry Potentiostat / Galvanostat / ZRA" was utilized in electrochemical (PP & EIS) investigations (PCI4-G750). The DC105 DC Corrosion Program, the EIS300 EIS Program, and a data collection computer are all part of Gamry. Echem Analyst version 5.5 was used to plot and calculate data.

Surface morphology investigation by (SEM and EDX) analysis

The applied technique to study metal surface morphology are SEM and EDX it is used to give data about the surface morphology of Cu coins with and without highest degree of concentration of the three pyrimidine inhibitors utilizing (SEM model JOEL, JSM-T20, Japan). An energy dispersive X-ray (EDX) spectroscopy device was also used to evaluate the copper samples (Zeiss Evo 10 instrument model). The beam accelerating voltage was 25 kV.

Quantum chemical calculations

All the quantum chemical tests occurred with finishing geometry similarity utilized Accelrys Material Studio.

Quantum Monte Carlo simulation

MC is a molecular dynamics method based on classical mechanics and is one of the most broadly used theoretical techniques to describe the interaction between metal and inhibitor because it provides some essential parameters such as total energy, adsorption energy, and rigid adsorption energy. In our present study, the Monte Carlo simulation calculation was used to find the lowest energy for the tested system. The outputs and descriptors achieved by the Monte Carlo simulations, such as the whole adsorption, adsorption energy, firm adsorption, and deformation energies represent the most stable low energy configuration for the adsorption of the studied pyrimidine inhibitors on Cu (111) surface obtained through the Monte Carlo simulations 33.

Results and discussion

WL measurements

Effect of concentrations and temperature

The corrosion rate of copper alloy in nonexistence and existence of various concentrations of pyrimidine derivatives (5 × 10–6 M to 21 × 10–6 M) in 1.0 M HNO3 at 25–45 °C was studied. WL-time curves are graphically represented in Fig. 2 of pyrimidine derivatives. Corrosion parameters derived from WL method at different temperatures are given in Table 3, illustrate the calculated values of corrosion rate kcorr (mg.cm-2.min-1), (%Ew) and the (θ) for copper alloy dissolution from which a reduction in kcorr is noticed when copper alloy the concentration of pyrimidine derivatives increases. This behavior can be explained based on the strong interaction among pyrimidine derivatives and copper alloy surface34. In general, when the concentration of these pyrimidine derivatives rises, the value of (percent Ew) rises as well. These findings offer evidence that pyrimidines are effective inhibitors for Cu alloy against dissolution35. By increasing temperature, this lead to increase adsorption of inhibitor molecules on the alloy surface and some chemical changes in the inhibitor molecules may occur, resulting in an increase in electron densities at the adsorption centers of the molecules. There is a slight decrease in the corrosion rate kcorr of pyrimidine derivatives13 and hence the %Ew reaches (89.59%) at the optimum concentration (21 × 10–6 M). The trend of %Ew follows the order MA-975 > MA-978C.

Figure 2
figure 2

WL- time curves for dissolution of Cu alloy in 1 M HNO3 at different pyrimidine derivative concentrations (MA-978C and MA-975) at 25 °C.

Table 3 kcorr and %Ew of pyrimidine derivatives at various temperatures.

Thermodynamic activation parameters

Corrosion reactions obey Arrhenius processes and the apparent activation energy, E*a, for corrosion of copper alloy in 1 M HNO3 solution in the existence, and absence at different concentrations of pyrimidine derivatives at 25–45 °C was calculated from Arrhenius Eq.3:

$$\log k_{corr} = \left( {\frac{{ - E_{a}^{*} }}{{2.303{\text{R}}T}}} \right) + \log A$$
(3)

where \({{\varvec{E}}}_{{\varvec{a}}}^{\boldsymbol{*}}\) is the apparent activation energy of copper alloy dissolution and A is the pre-exponential factor, R is the molar gas constant, T is the absolute temperature. Plots of log kcorr vs. 1/T are displayed as straight lines for the tested inhibitors and the E*a was calculated from the slope of these lines Fig. 3. It can be seen from Table 4 the data that \({{\varvec{E}}}_{{\varvec{a}}}^{\boldsymbol{*}}\) values for the inhibitors attains lower values for inhibitor-containing solutions. Similar results have been obtained in the corrosion inhibition of copper alloy and the decrease in \({{\varvec{E}}}_{{\varvec{a}}}^{\boldsymbol{*}}\) signifies chemisorption36. The transition state equation (4) was used to calculate other important thermodynamic activation parameters36:

$${\text{log k}}_{{{\text{corr}}}} = \log \left( {\frac{{\text{R}}}{{{\text{Nh}}}}} \right) + \frac{{\Delta {\text{S}}^{*} }}{{2.303{\text{R}}}} + \frac{{\Delta {\text{H}}^{*} }}{{2.303{\text{RT}}}}$$
(4)

where, kcorr denotes to the corrosion rate, R is the molar gas constant, ΔH* and ΔS* is the enthalpy and entropy of activation, respectively. Plots of log kcorr/T vs 1000/T in Fig. 4 for the two derivatives, from which the values of ΔH* and ΔS*were calculated and are recorded in Table 4 for the investigated inhibitors Fig. 4 shows \({{\varvec{E}}}_{{\varvec{a}}}^{*}\) for blank solution is 68 0.71 kJ mol−1 and it decreased with increasing the concentrations of pyrimidine inhibitors. The decreased value of \({{\varvec{E}}}_{{\varvec{a}}}^{\boldsymbol{*}}\) when inhibitors are present is owing to their adsorption on the Cu surface. The chemisorption process37 has this tendency. When ΔH* reaches a positive value, the corrosion process is endothermic, and it is classified as chemical adsorption. The activation entropy ∆S* is large and negative, showing that the creation of an activated complex in the transition state involves association rather than dissociation, and that there is a decrease in disorder as reactants transform into the activated complex 38.

Figure 3
figure 3

Arrhenius diagrams for Cu dissolution in the 1 M HNO3 solution of pyrimidine derivatives (MA-978C, MA-975).

Table 4 Activation parameter for Cu dissolution in 1.0 M HNO3 in the absence and presence of (MA-978C and MA-975).
Figure 4
figure 4

Transition state diagrams for Cu dissolution in the 1 M HNO3 solution of pyrimidine derivatives (MA-978C, MA-975).

Adsorption study

Isotherms provide significant information for understanding the nature of the corrosion inhibition process. The best fit was found using the Langmuir isotherm, which created a linear relationship between θ values and inhibitor concentration C. The Langmuir model asserts that the metal surface has a definite proportion of adsorption sites with one adsorbate, and the Gibbs free energy of adsorption for the sites is the same, regardless of the value of ϴ. This adsorption isotherm is described by the following equation Eq. (5) 39

$$\frac{C}{\theta } = \left( {\frac{1}{{{\mathbf{K}}_{{{\text{ads}}}} }}} \right) + C$$
(5)

where Kads is the equilibrium constant of adsorption process and C is the concentration of inhibitor and θ is the fraction of surface coverage. The ∆Gºads of adsorption process was calculated from the following Eq. (6):

$${\mathbf{K}}_{{{\text{ads}}}} = \frac{1}{55}.5\exp \left( {\frac{{ - \Delta {\text{G}}_{{{\text{ads}}}}^{\circ} }}{{{\text{RT}}}}} \right)$$
(6)

Table 4 displays that the ∆Gºads attained slightly more negative values than -40 kJ mol-1 and increases slightly by raising the temperature. This indicates that pyrimidine inhibitors may adsorbed physically or chemically on Cu surface, but the chemical adsorption is acceptable than the physical one 40. Also, other important adsorption parameters were calculated such as the enthalpy (ΔHoads) and the entropy (ΔSoads) of adsorption by applying Vanʼt Hoff (7) and thermodynamic general Eq. (8) 34:

$$\ln {\mathbf{K}}_{{{\text{ads}}}} = \frac{{ - \Delta {\text{H}}^{\circ} }}{{{\text{RT}}}} + {\text{constant}}$$
(7)
$$\Delta G_{ads}^{\circ} = \Delta H_{ads}^{\circ} - T\Delta S_{ads}^{\circ}$$
(8)

Table 5 reveals that positive values of ΔH°ads indicate that pyrimidine derivative adsorption is an endothermic process41, implying that the inhibition efficiency increases as the temperature rises. This behavior can be explained by the fact that as the temperature rose, inhibitor molecules adhered to the metal surface42. In the presence of pyrimidine derivatives, the value of ΔS°ads is positive because the endothermic adsorption process is always accompanied by a rise in entropy. The adsorption of inhibitor onto the Cu surface was propelled by an increase in entropy.44. Figure 5shows Langmuir isotherm plots for the corrosion of Cu in the 1 M HNO3 with optimum concentrations of the investigated inhibitors.

Table 5 Parameters obtained from MA-978C, MA-975 adsorbed on the surface of the copper alloy in 1 M HNO3 acid at altered temperatures.
Figure 5
figure 5

Langmuir diagrams for Cu dissolution in the 1 M HNO3 solution of pyrimidine derivatives (MA-978C, MA-975).

Electrochemical impedance spectroscopy (EIS) measurements

The corrosion manners of copper alloy in 1 M HNO3 solution absence and presence of various doses of investigated pyrimidine was studied at 25 ± 1 °C. The impedance plots including the Nyquist (a) and Bode (b) are presented in Figs. 6 and 7. In the presence of inhibitor, the Nyquist diagram shows two-time constants: the capacitive loop at high frequencies and a straight line perceived as Warburg impedance at low frequencies. The charge transfer process can be related to higher frequency capacitive loops. Surface layer resistance, surface layer capacity, and the Warburg element, which signals a diffusion process across the surface layer, make up the second time constant in the low frequency range. With the addition of MA-978C and MA-975 to the Bode plots recorded in the presence of inhibitor, the Bode amplitude values over the entire frequency range increase. As further inspection in Fig. 7 in most cases of copper alloy corrosion in acid solution, the obtained Nyquist impedance diagrams in most cases does not show perfect semicircle, and this is arising from the frequency dispersion due to the roughness and heterogeneity of the electrode surface42,43. From EIS measurements, the impedance diagram is presented as a large capacitive loop with low frequencies dispersion44. The EIS spectra were analyzed by assuming CPE circuit and modeling the impedance data with the simplest equivalent electrical circuit (Fig. 8). In this equivalent circuit, the solution resistance Rs and the double layer capacitance Cdl are considered in parallel to the charge transfer resistance Rct45. The standard criteria for evaluation of pyrimidine derivatives best-fit were followed: The chi-square error was low (< 10−3) and the acceptable errors of elements in fitting (5%). In inhibited solution of 1.0 M HNO3 with various concentrations of inhibitors, the impedance diagrams follow the same pattern (one capacitive loop), however, the diameter of this capacitive loop increases with increasing concentration46. “n” is the CPE parameter which characterizes the deviation of the system from ideal capacitive behavior. The values n is between -1 and 1. For a perfect resistor, n = 0 and for an inductor n =-1 for solutions contain pyrimidine are higher than those obtained for pyrimidine free solution which reflects their inhibitive action for copper alloy dissolution process. The (n) value is a measure of a surface's roughness, and its rise in this study could indicate a drop in the heterogeneity of the working electrode surface due to inhibitor molecule adsorption and increases with inhibitor concentration, while the reverse is the case with Yo. The EIS parameters such as Rct, Rs, Cdl, and θ and % EEIS were listed in Table 6, from which we can conclude that47, Rct increases and Yο decreases when the concentration of pyrimidine inhibitors increased and hence, the %EEIS increases. This is due to the increased thickness of the double layer or a reduced dielectric constant. The decreased Yο values recommended the decreased thickness of the oxide layer in the presence of inhibitors. The lowering in Cdl, might be caused by a decrease in local dielectric constant and/or an increase in the thickness of the electrical double layer, indicates that the inhibitor molecules have adsorb at the metal/solution interface48. The increase of Rs with inhibitor concentration proofs the increase of the thickness of double layer. Also, single charge transfer process occurred during dissolution of copper alloy in 1.0 M HNO3 which does not change in the presence of investigated pyrimidine. This is indicated from the presence of single semicircle loop 49. The impedance of the CPE represented by the next Eq. (9):

$$Z_{CPE} = 1/Y^{0} \left( {j\omega } \right)^{n}$$
(9)
Figure 6
figure 6

Nyquist bends for dissolution of copper metal in 1.0 M HNO3 attendance and nonattendance different concentrations of (a) MA-1978C, (b) MA-975 at 25 °C.

Figure 7
figure 7

Bode bends for dissolution of copper metal in 1.0 M HNO3 attendance and nonattendance different concentrations of (a) MA-978C (b) MA-975 at 25 °C.

Figure 8
figure 8

Equivalent circuit model for measuring EIS data.

Table 6 Impedance parameters for copper alloy in 1 M HNO3 in presence and absence different concentrations of pyrimidine derivatives at 25 °C.

Yo is referred to CPE constant, j is referring to the imaginary root, ɷ is refer to the angular frequency, n (-1 < n < 1) stands for the deviation index.

The Cdl value was obtained from this eq. (10)50.

$$C_{dl} = \frac{1}{{2\pi f_{\max } R_{ct} }}$$
(10)

The corrosion %η was calculated by using the Eq. (11):

$$\% \eta_{EIS} = \left( {\frac{{R_{ct} - R_{ct}^{*} }}{{R_{ct} }}} \right) \times 100$$
(11)

where Roct, and Rct are the resistance of the charge transfer in the absence and presence of the tested compounds respectively.

Open circuit potential (EOC)

Figure 9 shows the EOC fluctuation with time for copper in an acid corrosive media with no dose of organic component (21 × 10–6) present. Figure 9 shows that after 100 s, the blank solution stabilizes at a value of -7 mV/SCE. Cu oxidizes, resulting in the formation of corrosive products on its surface. As a result, when an organic compound is present at a dose of 21 × 10–6 M, the potential changes quickly and remains stable over time. The resistance of Cu dissolving in the acid corrosive media is indicated by the initial shifts in EOC while adding concentrations of organic substance. The disintegration of the oxide coating and the formation of a protective film on the Cu surface can explain this phenomenon.

Figure 9
figure 9

EOC versus time at 25 °C for Cu in the acid corrosive medium in the absence and attendance dose of organic compound (21 × 10–6 M).

Potentiodynamic polarization (PP) measurements

Tafel polarization curves of copper alloy in uninhibited and inhibited 1 M HNO3 solution with different concentrations of pyrimidine derivatives at 25°Care illustrated in Fig. 10. Cu exposed to an uncontrolled system corroded severely; this is due to the aggressive NO-3 ions, which drive strong Cu dissolution. Fortunately, the addition of pyrimidine analogues to a solution minimized Cu oxidation due to considerable reductions in icorr. The variation of PP parameters with the concentration of pyrimidine compounds are given in Table 7. The PP indicates that, the behavior of pyrimidine derivatives is of Tafel-type because the addition of pyrimidine compounds increases the cathodic and anodic potential with a displacement to more negative and positive values, respectively. The corrosion current density (icorr) drops as the concentration of pyrimidine increases, indicating that the presence of these compounds slows Cu dissolution and that the degree of inhibition is proportional to the concentration. The order of additives is \(\mathrm{MA}-975>\mathrm{MA}-978\mathrm{C}\). The maximum difference in Ecorr values between the inhibited and uninhibited systems was less than 39 mV, indicating that the investigated pyrimidine derivatives are mixed type inhibitors that affect both the cathodic and anodic polarization curves51. Moreover, the cathodic and anodic polarization Tafel lines keep a similar pattern and slightly changed by adding the pyrimidine derivatives. In other words, the nature of the polarization curves remains approximately the same irrespective of different concentration of these derivatives addition to acid solution which suggests that the mechanism of Cu in nitric acid does not change by adding these derivatives to the acid solution. The inhibitive action of pyrimidine compounds is initiated by adsorption on the reactive sites on the electrode surface and blocking corrosion cells and reducing the exposed surface area available for attack from corrosion environment52. The Ep% was calculated next Eq. (12):

$$Ep\% = \left( {\frac{{i_{corr} - i^{\prime}_{{{\text{corr}}}} }}{{i_{corr} }}} \right) \times 100$$
(12)

where i‵corr and icorr refer to the corrosion current of the copper metal presence and absence pyrimidine derivatives, respectively. The results showed that icorr reduces with increasing concentration up to 21 × 10–6 M and then significantly decreases when the concentration of pyrimidine derivatives reaches 25 × 10–6 M. As a result, when the concentration of pyrimidine compounds was raised to 21 × 10–6 M, the inhibitory performance improved. The addition of more pyrimidine derivatives than 21 × 10–6 M may lead to a slower kinetic at the adsorption sites, allowing the desorption of the adsorbed layer and hence lower inhibition efficiency.

Figure 10
figure 10

PP bends for copper alloy in the 1 M HNO3 solution at altered dose of pyrimidine derivatives (a) MA-978C, (b) MA-975 at 25 °C.

Table 7 PP measurements for copper alloy in 1 M HNO3 with and without altered concentrations of the tested pyrimidine derivatives at 25 °C.

Surface analysis

Scanning electron microscope (SEM) and energy dispersive X-ray (EDX) analysis.

The morphology of the copper metal surface was investigated using a scanning electron microscope, when copper samples were immersed in 1 M HNO3 solution for 24 h with and without the tested pyrimidine derivatives53. The effect of these derivatives on the corroding copper metal surface is also analyzed by EDX with SEM images to investigate the pyrimidine derivatives adsorption by comparing the elements identified and detected on the copper metal surface with the elements in the pyrimidine derivatives molecular structure. Figures 11 and 12 show SEM and EDX images, respectively. According to EDX analysis, the copper surface is heavily damaged without the inhibited solution, where the images of inhibited copper surface indicated less corrosion in the presence of examined pyrimidine derivatives. Also, the percentage of iron in the copper surface immersed in inhibited solution is decreasing, while the percentage of the carbon and heteroatoms (S, O and N) is increasing54. From the SEM–EDX tests, we can conclude that the examined derivatives adsorbed on the copper metal surface show an excellent image for preventing severe corrosion of the metal surface55.

Figure 11
figure 11

SEM images of copper alloy without (blank) and with 21 µM of MA-978C, and MA-975 at 25 °C.

Figure 12
figure 12

EDX images of Cu alloy without (blank) and with 21 µM of MA-978C, and MA-975 at 25 °C.

Quantum calculations

To determine whether there is a correlation between the molecular structures of investigated inhibitors and their inhibitory actions, quantum chemical simulations were conducted46. The synthesized MA-978C and MA-975 inhibitors' computed quantum chemical characteristics (EHOMO, ELUMO, and ΔE) were determined and are displayed in Table 8.The EHOMO, ELUMO represented a molecule's capacity for electron donation and acceptance. These values may be seen in Fig. 13 as well. The ability of the inhibitor to give electrons was stronger the higher the EHOMO value, whereas the ability of the inhibitor to receive electrons was stronger the lower the ELUMO value56. A molecule's ability to deliver electrons to a suitable acceptor with unoccupied molecular orbitals is indicated by high values of EHOMO. The ELUMO, on the other hand, demonstrates a molecule's capacity to accept electrons; lower values correspond to a higher electron-accepting capacity.

Table 8 The calculated quantum chemical parameters for the investigated pyrimidine compounds.
Figure 13
figure 13

Molecular structure of the pyrimidine compound, and its frontier molecular orbital density distribution (HOMO and LUMO).

The energy to eliminate an electron from the last orbital occupied is called the gap in the energy band (ΔE = ELUMO − EHOMO)57. Low ΔE facilitates adsorption of the molecule and thus will cause higher inhibition efficiency, as ΔE decreases, the reactivity of the molecule increases leading to increase the inhibition efficiency of the molecule. The dipolar moment (μ) is a measurement of the polarity of the covalent bond between the compounds under examination Eq. (13). The high μ values are thought to improve the adsorption tendency of the compounds examined on metal surfaces. According to theoretical calculations, the band gap energy values ΔE for MA-975 is less than MA-978C, so the inhibition efficiency is supposed to be in the order MA-975 > MA-978C. This reflects a greater correlation between corrosion IE and this result58. The inhibitor (MA-975) has the lowest total energy, which suggests that its adsorption is higher with the highest softness, as shown in all the data in Fig. 13 and Table 8. In addition, the dipole moment is the parameter most used to describe the polarity of a molecule. It is clearly proved in the literature that molecules with high dipole moments are more reactive and hence, MA-975 > MA-978C59. Chemical properties that are important for determining molecular stability and reactivity include chemical hardness (\(\eta\)) (Eq. 15), which evaluates an atom's resistance to charge transfer, and softness (\(\sigma\)) (Eq. 16), which defines an atom or group of atoms' ability to accept electrons. From the results, as the chemical reactivity increases, the percent IE of adsorption increases, and the molecule with the lowest hardness value should have the highest inhibitory efficiency60. Because of the increase in softness  = 0.253, 0.224 eV-1 for MA-975, MA-978C, respectively) and reduction in hardness ((η) = 4.095, 3.955 eV, for MA-975C, MA-978, respectively), the CBIPM inhibitor has high chemical reactivity with the metallic surface. The following equations were used to calculate the global hardness (η), softness (σ), and chemical potential (µ) in terms of IP and EA 61:

$$\mu = - \chi = - \frac{{I_{p } + E_{A} }}{2}$$
(13)
$$\chi = \frac{{I_{p } + E_{A} }}{2}$$
(14)
$$\eta = \frac{{I_{P - } E_{A} }}{2}$$
(15)
$$\sigma = \frac{1}{\eta }$$
(16)

The results show that the hetero atoms (N, S, and O) in the structure of compounds have a significant impact on quantum chemical parameters. This theoretically illustrates that the hetero atom (S) influences the adsorption of inhibitor chemicals on metal. We performed a molecular dynamics simulation on the inhibitors' adsorption on the copper surface.

Monte Carlo (MC) simulation

MC is an excellent technique for determining the most stable adsorption conformations of substituted pyrimidine derivatives in 1 M HNO3. Figure 14 shows the equilibrium adsorption configurations of the inhibitors molecules on the Cu (111) surface: inhibitors side view and top view. Different parameters derived from the Monte Carlo simulation shown in Table 9. The parameters contain total energy of the substrate–adsorbate outline. The sum of the rigid energy and the deformation energy is called to be the adsorption energy. In this study, the substrate energy is considered as zero. In addition, the energy of the adsorption in reports energy liberated when the relaxed adsorbate component is adsorbed on the substrate. The energy of the rigid adsorption reports the energy, liberated when the unrelaxed adsorbate components are adsorbed on the substrate, meaning that before the geometry optimization step. The deformation energy reports the energy, liberated when the adsorbed adsorbate constituents are relaxed on the substrate surface62. Table 9 shows also (dEads/dNi), which reports the energy, of substrate–adsorbate configurations where one of the adsorbate components has been eliminated. As shown in Table 9, MA-975 and MA-978C Inhibitors gave high adsorption energy in negative value found during the simulation process. Furthermore, the protonated form of C23H25N5O6H+ and C16H15ClN6O3H+ molecules in corrosive solution have a higher negative adsorption energy than the neutral form, indicating that the protonated form of C23H25N5O6H+ and C16H15ClN6O3H+ molecules in corrosive solution has a positive impact on the corrosion protection process. Superior inhibition efficiency is typically correlated with high binding energy (Ebinding) between the inhibitor and alloy63. Inhibitor molecule equilibrium adsorption configurations on the Cu (111) surface for neutral and protonated side views and top views are shown in Fig. 14. (MA-975 > MA-978C) is the order of the manufactured inhibitors based on IE percent. It is obvious that both inhibitor molecules, in their various forms, adhere to the surface of Cu (111) in a nearly parallel pattern, covering the Cu alloy's maximum surface area. This behavior is primarily attributed to two inhibitor compounds' strong propensity to donate electrons to the vacant Cu orbitals and to accept electrons from copper's d-orbitals via a back-bonding64.

Figure 14
figure 14

Equilibrium adsorption configurations of the inhibitors molecules on the Cu (111) surface: inhibitors side view and top view.

Table 9 Equilibrium adsorption configurations of the inhibitors molecules on the Cu (111) surface.

Mechanism of corrosion inhibition

Physicochemical characteristics and the Cu charge may be utilized to illustrate adsorption based on the experimental study and theoretical calculations. Figure 15 depicts the inhibitory action of these pyrimidine derivatives on the surface of copper. Several studies have been revealed that the Cu surface in HNO3 solution is positively charged65. The presence of function groups capable of securely attaching the inhibitor molecules on the metal surface explains the inhibitor's propensity for being adsorbed on the metal surface. When the inhibitor concentration is raised, the formation of a protective coating of inhibitor molecules at the metal/solution interface improves inhibition effectiveness. The charge that is positive Cu surfaces encourage NO3- adsorption, resulting in a negative charge surface that makes it simpler to adsorb cations in solution. These organic pyrimidine derivatives can be protonated in solution due to the unshared electron pairs of the N, O, and S electrons. Because of electrostatic interaction the protonated molecules were physisorbed on the metal surface. Meanwhile, as shown in Fig. 15, further adsorption of these inhibitors can be accomplished by forming covalent interactions (chemisorption). Based on quantum chemical measurements of both WL and electrochemical values, the percent IE of the two investigated pyrimidine derivatives is as follows: MA-975 > MA-978C. This is due to the following factors: MA-975 has a larger molecular size than MA-978C, allowing it to cover a larger area from the surface; MA-975 has 5 N and 6O atoms, but MA-978C contains 6 N, 3O, and one Cl, which is a withdrawing group, reducing the electron density on the molecule.

Figure 15
figure 15

Mechanism of corrosion protection of Cu dipped in 1 M HNO3 media using MA-975, and MA-978C.

Conclusion

  1. (1)

    The study revealed that the investigated pyrimidine derivatives were utilized as highly, safe efficient inhibitors for copper in 1 M HNO3.

  2. (2)

    The adsorption of the investigated inhibitors on copper surface follows the Langmuir adsorption isotherm. The development of a protective layer on the copper surface was confirmed using SEM and EDX analyses.

  3. (3)

    Tafel curves indicated that pyrimidine derivatives acted as a mixed-type corrosion inhibitor and provided superior inhibition performance for Cu corrosion in HNO3 medium at different temperatures, which was further confirmed by EIS method. The obtained IE values from EIS increased with increasing pyrimidine derivatives concentration which agreed well with those obtained from Tafel method.

  4. (4)

    The charge transfer resistance increases while the capacitance double layer drops by raising the inhibitor dosage which may be attributed to the adsorption of inhibitor molecules on the copper surface.

  5. (5)

    The high and low Ebinding values indicated substantial pyrimidine derivative adsorption on copper surface. The pyrimidine derivatives' excellent capacity to donate and absorb electrons to/from copper was validated by the flat adsorption orientation of the compounds, creating an anchoring barrier to stop copper from corroding.

  6. (6)

    The obtained results of chemical, electrochemical and theoretical studies are in good agreement.