Introduction

Corrosion refers to the deterioration of metallic materials due to chemical or electrochemical reactions with their environment. This process can lead to significant loss of metal structures and may ultimately result in structural failure1. Several critical factors influence the rate of corrosion, including the metal surface characteristics, the chemical composition of the surrounding environment, as well as pressure and temperature2,3.

Copper is a valuable metal renowned for its remarkable corrosion resistance in various atmospheric and chemical settings4. This resistance mainly arises from developing a protective passive oxide film or a non-conductive layer of corrosion products on the material’s surface5,6. Copper corrosion can occur under certain environmental conditions. Factors leading to copper corrosion include moisture, humidity, sulfur dioxide, strong acids or alkalis, and exposure to saltwater7. This corrosion process and the resulting formation of corrosion products can negatively impact the performance and efficiency of systems made from copper. Hence, the protection of copper from corrosion is a critical concern8.

While various strategies, such as applying anti-corrosive coatings9,10, or alloying copper with other metals, can mitigate copper corrosion11,12, the most effective, secure, and economical method is using corrosion inhibitors13,14,15,16,17. A corrosion inhibitor is a specific chemical additive that, when introduced in low concentrations into a corrosive environment, significantly reduces the corrosion rate18. This reduction occurs without altering the concentration of the corrosive medium itself, allowing for enhanced material longevity and performance in hostile conditions. Corrosion inhibitors like molybdates and chromates are increasingly being substituted with organic alternatives due to their toxicological concerns. Organic corrosion inhibitors function by adsorbing onto the metal surface, forming a protective film that significantly reduces the electrochemical reactions responsible for corrosion in the presence of aggressive electrolytes. This mechanism enhances the metal’s resistance to corrosive environments, effectively mitigating the corrosion process19. Key adsorption sites for bonding with metal surfaces include heteroatoms like S, P, N, and O, along with aromatic rings present in their structures20,21,22,23.

Organic molecules containing nitrogen are proven to be highly effective inhibitors in terms of performance. Azoles, as an important family of heterocyclic compounds including pyrrole, pyrazole, tetrazole, and imidazole24,25,26, along with pyridines27, pyrimidines, and their benzene-fused counterparts28, are frequently employed as potent inhibitors. The triazine molecule distinctly features three nitrogen atoms that are arranged in multiple configurations. Due to their importance in the synthesis of biologically active compounds and the formation of stable complexes with metal ions, the synthesis of 3-thioxo-1,2,4-triazin-5-one derivatives has been of interest to researchers. This has led to a couple of preparation methods that have been reported in the literature29,30. A study by Zhao et al. examined the corrosion inhibition performance of two specific triazine derivatives, 6-N, N-bis(6-methylheptyl)amine-1,3,5-triazine-2,4-dithiol monosodium and 6-dibutylamino-1,3,5-triazine-2,4-dithiol monosodium, on copper in synthetic seawater, observing spontaneous adsorption and strong interactions with the copper substrate31. Similarly, Obot et al. used advanced density functional theory to analyze the adsorption properties of different triazine derivatives, focusing on hexahydro-s-triazine compounds that exhibit variations in the para-position substituents on their phenyl rings, specifically H, CH3, OCH3, NH2, and NO2 ( Inh1 Inh5) and the results revealed strong interaction potentials between these triazine derivatives and steel substrates32. Ayman et al. also studied hydrazino-methoxy-1,3,5-triazine derivatives and confirmed their ability to substantially reduce steel corrosion rates in acidic conditions, even at minimal concentrations. Together, these studies underscore the remarkable promise of triazine derivatives as versatile and robust corrosion inhibitors across different metals and environments, highlighting their potential as effective and economical solutions33.

To develop effective corrosion inhibitors, the triazine ring’s chemical functionalization at the carbon or nitrogen atoms is essential because none of the natural varieties of 1,2,3-triazines, 1,2,4-triazines, or 1,3,5-triazines serve as effective corrosion inhibitors34,35. This can be effectively accomplished by varying alkyl chain lengths, introducing electron-withdrawing or electron-releasing substituents, and incorporating additional heteroatoms, heterocycles, or phenyl rings. Such modifications optimize inhibitory properties and enhance performance in corrosive environments36,37,38. These molecules possess significantly increased active sites that effectively engage with the metal surface and are coupled with a larger geometrical surface area, leading to superior surface coverage. Numerous triazine-based anti-corrosion agents have been thoroughly researched and proven effective for application in both neutral and acidic corrosive environments. A notable structural feature of triazine heterocycles is their capacity to adopt tautomeric forms, especially when specific heteroatoms like oxygen, nitrogen, or sulfur are positioned adjacent to the nitrogen atoms of the heterocycles39.

A study conducted by John et al. explored how three different 1,2,4-triazine compounds inhibit the corrosion of mild steel in a 1 M hydrochloric acid solution. They employed a combination of experimental methods, alongside theoretical calculations. Their findings revealed that the type of functional group attached to the triazine ring significantly influences the corrosion inhibition efficiency, ranking in the order of CH2Ph > But > Me40. In a different study, John et al. investigated the corrosion inhibition efficiency of two compounds: 4-amino-6-methyl-3-thioxo-3,4-dihydro-1,2,4-triazine-5(2 H)-one (AMTDT) and (4-amino-4 H-1,2,4-triazole-3,5-diyl) dimethanol (ATD). They conducted both experimental and theoretical analyses and discovered that, while the inhibitors exhibited nearly identical effectiveness at higher concentrations, AMTDT demonstrated superior efficiency at lower concentrations41. In this study, we focus on two series of triazine derivatives: the first is 4-amino-3-thioxo-6-methyl-1,2,4-triazine-5-one (1a) and its tautomers, designating them as 1b, 1c, and 1d, while the second series involves the introduction of a methyl group at the C5 position of 4-amino-3-thioxo-6-methyl-1,2,4-triazine-5-one which was 4-amino-6-methyl-3-thioxo-3,4-dihydro-1,2,4 triazin-5 (2 H)-one (2a) and its tautomeric forms labeled as 2b, 2c, and 2d. The investigation of substitution effects in organic chemistry is a critical area of study as the integration of substituents can substantially alter the adsorption characteristics, electronic properties, and spatial arrangement of compounds. Specifically, introducing a methyl group can also enhance the hydrophobic nature of the protective film, thereby improving its resistance to moisture and various corrosive agents. We aim to evaluate the impact of introducing a methyl group at the C5 position on both the adsorption behavior and corrosion inhibition efficiency.

What sets this project apart from previous ones is the thorough assessment of the tautomeric forms when adsorbed on copper surfaces with two different Miller indices, Cu (1 1 1) and Cu (1 1 0). The inhibitors were analyzed in both parallel and perpendicular orientations on these surfaces. Previous studies have explored these molecules through both experimental and theoretical approaches; however, this research takes a direction by employing DFT calculations to comprehensively assess the inhibition efficiency of two distinct series of inhibitors. Evaluations included Mulliken charge, Fukui function, partial density of states (PDOS), and various quantum chemical parameters related to the inhibitors. The goal is to identify their active sites, thereby providing a thorough assessment of the computational aspects of inhibitor efficiency, which differentiates this work from earlier studies (Scheme 1).

Scheme 1
scheme 1

Triazine derivatives’ tautomeric forms as inhibitors toward corrosion.

Computational details

Computer simulation techniques have been developed to assess inhibition performance or to delve into the specifics of inhibition mechanisms. Among the various methods of computer simulation, quantum chemistry calculations have become a popular choice for assessing the effectiveness of corrosion inhibitors. This method allows for the prediction of inhibitor molecules’ ability to either donate or accept electrons by analyzing global reactivity parameters. These include factors like the gap of energy between HOMO (the highest occupied molecular orbital) and LUMO (the lowest unoccupied molecular orbital), as well as chemical potential and other relevant metrics42,43.

In this study, all calculations were conducted using the DMol3 program package within the Material Studio software, version 2020, based on density functional theory. Table 1 displays the parameters used in the DMol3 calculation. The dispersion-corrected PW91 functional has been used for the calculation of the interaction of inhibitors with the Cu surfaces44,45,46. The corrected version of this functional can capture the dispersion forces between the metal surface and the inhibitor. The most stable Miller index for copper (Cu) surfaces is typically the (1 1 1) face. The (1 1 1) surface of copper has a close-packed structure, which means that it has a high atomic density and a lower surface energy compared to other Miller indices like (1 0 0) and (1 1 0). Surfaces with lower surface energy exhibit greater stability because they minimize the tendency for atoms to rearrange or migrate47,48.

Fig. 1
figure 1

Schematic of periodic slabs: (a) 4 × 4 supercell of Cu (1 1 1), (b) 4 × 4 supercell of Cu (1 1 0).

Table 1 Parameters used in the DMol3 calculation.

The inhibitors’ energy of adsorption on copper surfaces was calculated by Eq. 149:

$${{\text{E}}_{{\text{adsorption}}}}{\text{ }}={\text{ }}({{\text{E}}_{{\text{complex}}}}){\text{ }}--{\text{ }}\left( {{{\text{E}}_{{\text{inhibitor}}}}+{{\text{E}}_{{\text{surface}}}}} \right)$$
(1)

Ecomplex stands for the total energy of inhibitors on the surface. It has been determined that a greater amount of negative energy tends to demonstrate enhanced stability. Additionally, other quantum parameters were calculated by the following equations50,51, and the highest occupied molecular orbital is represented by the symbol EHOMO, and the lowest unoccupied molecular orbital is represented by the symbol ELUMO:

$${\text{Ionization potential}}:{\text{I}}= - {{\text{E}}_{{\text{HOMO}}}}$$
(2)
$${\text{Electron affinity}}:{\text{A}}= - {{\text{E}}_{{\text{LUMO}}}}$$
(3)
$${\text{Hardness: }}\eta =\left( {{\text{I}} - {\text{A}}} \right)/{\text{2}}$$
(4)
$${\text{Electronegativity}}:{\text{~}}\chi =\left( {{\text{I}}\,+\,{\text{A}}} \right)/2$$
(5)
$${\text{Electrophilicity~index}}:\omega ={\chi ^2}/2\eta$$
(6)
$$\:\text{O}\text{v}\text{e}\text{r}\text{a}\text{l}\text{l}\:\text{s}\text{o}\text{f}\text{t}\text{n}\text{e}\text{s}\text{s}:\:\sigma\:=\frac{1}{\eta\:}$$
(7)
$$\:\text{P}\text{o}\text{r}\text{t}\text{i}\text{o}\text{n}\:\text{o}\text{f}\:\text{e}\text{l}\text{e}\text{c}\text{t}\text{r}\text{o}\text{n}\text{s}\:\text{t}\text{r}\text{a}\text{n}\text{s}\text{f}\text{e}\text{r}\text{r}\text{e}\text{d}:\:\varDelta\:N=\frac{{\upphi\:}-\chi\:}{2\eta\:}$$
(8)
$${\text{Energy gap}}:\Delta {{\text{E}}_{{\text{gap}}}}={{\text{E}}_{{\text{LUMO}}}} - {{\text{E}}_{{\text{HOMO}}}}$$
(9)
$${\text{Mulliken Charge difference}}:\Delta q\,=\,q\left( {{\text{after adsorption}}} \right){\text{ }} - q\left( {{\text{before adsorption}}} \right)$$
(10)

The Cu (1 1 1) surface is contained within a simulation box with dimensions of 10.224 Å × 10.224 Å × 24.174 Å. 48 Cu atoms in a four-layer slab model were used to construct the copper surface. Likewise, the Cu (1 1 0) surface is enclosed within a box measuring 14.459 Å × 10.224 Å × 23.834 Å. A four-layer slab model consisting of 64 copper atoms, was employed in creating the copper surface (Fig. 1).

The symbol φ corresponds to the metal surface’s work function, with specific values for different crystal planes of copper: φCu (1 1 1) = 4.94 eV, and φCu (1 1 0) = 4.48 eV.

Results and discussion

Molecular geometry

To evaluate the efficacy of corrosion inhibitors, the relative stability of tautomers in the gas phase before adsorption is listed in Table 2. Taking a more detailed examination of Table 2, it is clear that the stability trend of series 1 inhibitors is as follows: 1a\(\:>\) 1b\(\:>\) 1c\(\:>\) 1d. For series 2 inhibitors, the stability is as follows: 2a\(\:>\) 2b\(\:>\) 2d\(\:>\) 2c. After adsorption, the intramolecular bond length of inhibitors can either increase or decrease. Indeed, when an inhibitor is adsorbed on the surface, copper atoms can donate or accept electron density via d-orbitals, which interact with the molecular orbitals of the inhibitor. This redistribution of charge can alter electron densities in specific bonds, strengthening some while weakening others, and changing their lengths52. Therefore, Table 3 presents the key intramolecular bond lengths of the inhibitors participating in the adsorption process, both prior to and following adsorption. Except for 1a molecule, all measured bond lengths exhibit an increase upon adsorption, with this change being particularly pronounced in the 1c and 2c inhibitors. For example, after the 2c molecule is adsorbed on the Cu (1 1 0) surface in a parallel mode, the bond length of S1 = C2 increases by 0.234 Å. This indicates a strong interaction, such as chemisorption, where a chemical bond is formed between the inhibitors and the surface. This happens because the electrons involved in the bond after adsorption are shared with the surface atoms, weakening the original bond in the inhibitors.

Table 2 Relative stabilities of inhibitors before adsorption.
Table 3 Bond lengths (Å) of triazine derivatives before and following adsorption.

Evaluation of adsorption energies of triazine derivatives on the Cu (1 1 1)

The adsorption energy of triazine derivatives on the Cu (1 1 1) in two distinct configurations, parallel and perpendicular, is summarized in Table 4, and their optimized adsorption structures are illustrated in Figs. 2 and 3. Consider Table 4, which indicates that the adsorption energies are nearly similar in parallel and perpendicular geometries. To gain a deeper understanding of the effectiveness of triazine derivatives as inhibitors, their adsorption energy on the surface is calculated, and a more negative energy means better performance toward corrosion. It is apparent in Table 4, the most negative energy in series 1 molecules belongs to 1c inhibitor, and in perpendicular and parallel configurations, its energy is -85.75 and − 81.24 kcal mol− 1, respectively, and it is adsorbed to the surface from S1 and N3 positions. After the 1c molecule, the adsorption energy of 1d in perpendicular and parallel configurations with − 65.69 and − 61.11 kcal mol− 1, respectively, has the most negative value in series 1. When 1a is adsorbed from S1, its adsorption energy is nearly the same in both the parallel and perpendicular orientations. However, the parallel form is more stable, exhibiting an adsorption energy of -48.73 kcal mol− 1. 1b molecule is bonded from N4 to the surface and in two adsorption configurations, its Eads is about − 46 kcal mol− 1. The adsorption energies for the series 2 molecules are more negative compared to those in series 1, indicating a heightened corrosion inhibition efficiency associated with the methyl group’s introduction at the C5 position. This increased adsorption energy reflects a stronger interaction arising from the structural modification, underscoring the importance of the C5 substitution in enhancing corrosion resistance. Notably, molecule 2c exhibits the greater negative adsorption energy on the Cu (1 1 1) surface, registering − 97.81 kcal mol− 1 in a perpendicular orientation with bonding through S1 and N3. In a parallel configuration, with bonding through S1 and N4, it shows a value of -93.83 kcal mol− 1. 2d in parallel is adsorbed from two sites of S1 and N4, which showed more negative adsorption energy (-77.57 kcal mol− 1) compared to 2d perpendicular, which is adsorbed from only S1, and the adsorption energy is -71.10 kcal mol− 1. The adsorption energies of 2a and 2b have quite close values and are almost − 60 kcal mol− 1.

The Gibbs free energy of adsorption (ΔGads) for the inhibitors was evaluated. A negative ΔGads signifies a spontaneous adsorption process53; and, in this study, the observed ΔGads on the Cu (1 1 1) surface is negative, indicating that the adsorption is spontaneous.

The interaction between metals and inhibitors can be categorized as either chemisorption or physisorption. Chemisorption involves the formation of covalent bonds between the molecules and the surface, while physisorption relies on van der Waals dispersion forces. Chemisorbed inhibitors offer better protection by reducing the reactivity of the metal to which they are attached. On the other hand, physisorbed inhibitors play a vital role by forming a physical barrier that effectively blocks the entry of corrosive agents, especially when dealing with large molecules54. Therefore, here the covalent radii of N-Cu and S-Cu are compared with the distance of S from Cu and the distance of N from the surface. So, according to the calculations presented in Table 4, the distance between the N atom of inhibitor molecules and the Cu atom of the surface, denoted as d N−Cu, ranges from approximately 1.940 to 2.130 Å, and according to the calculations for covalent radii, the sum of the nitrogen atom radius (\(\:{r}_{cov\:}^{N}\), 0.71 Å) and copper atom radius (\(\:{r}_{cov}^{Cu}\), 1.32 Å) is 2.03 Å. Hence, the length of the N-Cu covalent bond is close to the related molecule-surface distance. Moreover, the distance between the S atom of inhibitor molecules and copper surface, referred to as d S−Cu, is between about 2.34 and 2.60 Å, and the S-Cu covalent bond is 2.34 A˚ (\(\:{r}_{cov}^{s}+{r}_{cov}^{Cu}=\) 1.05+ 1.32 = 2.34 Å), which is close to dS−Cu. So, the similarity of N-Cu and S-Cu covalent bond lengths to the corresponding molecule–surface distances suggests the presence of chemisorption between inhibitor molecules and the copper surface54,55,56, the confirmation of this finding is reflected in the adsorption energy values, which range from − 46 to -98 kcal mol−1. These values go beyond the typical range seen in physisorption, strongly indicating that chemisorption is occurring57. Moreover, to bring this discussion to a close, many studies on corrosion inhibitors employ the standard free energy of adsorption as a criterion to differentiate between physisorption and chemisorption. The classifications are as follows: physisorption occurs when ΔGads\(\:>\) − 4.78 kcal mol−1; mixed physisorption/chemisorption is indicated by − 4.78 kcal mol− 1\(\:<\)ΔGads\(\:<\)− 9.56 kcal mol−1; and chemisorption is characterized by ΔGads\(\:<\)− 9.56 kcal mol− 158,59,60,61,62. As shown in Table 4, all measured ΔGads values are significantly lower than − 9.56 kcal mol−1, which supports our assertion that the inhibitors are chemisorbed onto the surface.

Table 4 Energy of adsorption of inhibitor molecules and Gibbs free energy of adsorption of inhibitor molecules on the Cu (1 1 1) along with the computed distance (d) between the inhibitor’s adsorbed atom and the copper atom.
Fig. 2
figure 2

Optimized structure of Series 1 tautomers of triazine derivatives adsorbed on the Cu (1 1 1) (perpendicular configuration (left columns) and parallel configuration(right columns) ).

Fig. 3
figure 3

Optimized structure of Series 2 tautomers of triazine derivatives adsorbed on the Cu (1 1 1) (perpendicular configuration (left columns) and parallel configuration(right columns) ).

Evaluation of adsorption energies of triazine derivatives on the Cu (1 1 0)

The adsorption energy of triazine derivatives on the Cu (1 1 0) is summarized in Table 5, while the optimized structures in both parallel and perpendicular orientations are depicted in Figs. 4 and 5. The adsorption energies on Cu (1 1 0) exhibit a similar pattern to those observed on Cu (1 1 1), and similarly, the incorporation of a methyl group at the C5 position of series 2 triazine derivatives results in increased adsorption energies. It is evident from Table 5 that the 1c inhibitor in series 1 possesses the most negative energy. When the 1c molecule is oriented perpendicularly, it is adsorbed through S1 and N3, exhibiting adsorption energy of -93.37 kcal mol− 1, and the S1 = C2 and N3 = N4 bonds, as indicated in Table 3, exhibited an increase of 0.104 and 0.101 Å in their bonds, respectively that this increase can be due to the transfer of charge from the S1 and N3 atoms to the surface. In the parallel configuration, the adsorption takes place through S1 and N9, with an energy of -76.07 kcal mol− 1. After that, 1d showed a strong interaction with the surface, and when oriented perpendicularly, it is adsorbed from S1 and N3 with an energy equal to -66.04 kcal mol− 1, and when oriented parallelly, it is adsorbed from S1 and N4 with an energy equal to -62.09 kcal mol− 1. When two series of inhibitors’ adsorption energies on the Cu (1 1 0) are compared, the strongest interaction with the surface belongs to the 2c compound, which is adsorbed from S1 and N3, and energies in perpendicular and parallel are equal to -114.04 and − 99.34 kcal mol− 1, respectively. Moreover, the distance between S1 and Cu atoms is approximately 2.27 to 2.45 Å, and the distance between N and Cu atoms ranges from 1.97 to 2.18 Å. These measurements closely resemble the covalent bond lengths for S-Cu and N-Cu. Given the proximity of the adsorbed atoms to the surface, molecules positioned either vertically or parallelly predominantly engage with the surface by creating a covalent bond. This is supported by the range of adsorption energy levels observed for the inhibitors, which varies from − 44 to -114 kcal mol− 1, clearly pointing to the occurrence of chemisorption. Moreover, the measured ΔGads for the Cu (1 1 0) surface is also negative, similar to that of the Cu (1 1 1), which indicates that adsorption on this surface is likewise spontaneous and as demonstrated in Table 5, all measured ΔGads values fall significantly below − 9.56 kcal mol− 1, reinforcing our claim that the inhibitors are chemically adsorbed onto the surface.

The adsorption characteristics of inhibitors reveal significantly higher absolute adsorption energies on the Cu (1 1 0) surface (Table 5) compared to the Cu (1 1 1) surface (Table 4). For instance, the adsorption energy of the 2c molecule on Cu (1 1 0) is measured at -114.04 kcal mol− 1 when oriented perpendicularly. In contrast, the same molecule exhibits an adsorption energy of -97.81 kcal mol− 1 on the Cu (1 1 1) surface. This disparity suggests that the Cu (1 1 0) surface facilitates stronger adsorption interactions, resulting in more stable and effective bonding of the inhibitors. Consequently, Cu (1 1 0) demonstrates superior performance in terms of adsorption strength and inhibition efficiency relative to Cu (1 1 1).

Table 5 Energy of adsorption of inhibitor molecules and Gibbs free energy of adsorption of inhibitor molecules on the Cu (1 1 0), along with the computed distance (d) between the inhibitor’s adsorbed atom and the copper atom.
Fig. 4
figure 4

Optimized structure of Series 1 tautomers of triazine derivatives adsorbed on the Cu (1 1 0) (perpendicular configuration (left columns) and parallel configuration(right columns) ).

Fig. 5
figure 5

Optimized structure of Series 2 tautomers of triazine derivatives adsorbed on the Cu (1 1 0) (perpendicular configuration (left columns) and parallel configuration(right columns) ).

Partial density of States (PDOS)

To gain a deeper understanding of the electronic interactions between inhibitors and the surface, the partial density of states of the s and p orbitals of the inhibitor molecules, alongside the d orbitals of both the copper surface with two Miller indices of (1 1 1) and (1 1 0) surfaces, were analyzed. These states are examined both before (shown in the bottom panel) and after (shown in the top panel) adsorption, in both parallel and perpendicular orientations. In Fig. 6, the PDOS for inhibitors oriented perpendicularly on the Cu (1 1 0) surface is presented. However, the remaining plots due to the similarity are available in the supplementary information (Figure S1- Figure S3). The Fermi energy level was set to zero, and it is displayed with dotted vertical lines63. In the analysis of the PDOS of the 1c molecule before and after adsorption on the Cu (1 1 0) surface, it is observed that the molecule is adsorbed to the surface via two S1 and N3 atoms. The s orbital of the S1 atom shows a range from − 2390 to approximately + 10 eV before adsorption, while the range after adsorption decreases significantly, falling from − 25 to 0 eV, and the peak intensity reduces to roughly one-third of its original value. The p orbital of the S1 atom presents two minor peaks at -380 and − 266 eV prior to adsorption, with a substantial peak at -150 eV. After adsorption, this orbital exhibits a continuous peak from − 22 to 0 eV, and the peak intensity decreases to approximately one-sixth of its original value. Regarding the d orbital of the copper atom (atomic number 40), a peak with higher intensity is recorded prior to adsorption, reaching a value of 6.5 electrons eV− 1. In contrast, post-adsorption, this intensity reduces to 4.5 electrons eV− 1. For the N3 atom in the s orbital, there is a distinct peak observed at -380 eV, accompanied by a continuous peak ranging from − 22 to + 15 eV prior to adsorption. Following the adsorption process, the sharp peak disappears, resulting in a continuous peak that extends from − 22 to 0 eV. Additionally, the intensity of the peak decreases to approximately one-fourth of its original value. In the p orbital, there are two distinct peaks observed at -376 eV and − 266 eV, along with a continuous peak ranging from − 22 to + 15 eV prior to adsorption. After adsorption, the peaks in the positive energy region are eliminated, leaving a continuous peak from − 22 to 0 eV, which shows a reduction in intensity to half of its original value. Concerning the d orbital of the copper atom before and after adsorption, its range remains stable; however, its intensity decreases from − 6.5 to -4.5 electrons eV⁻¹. When comparing the PDOS of this molecule with other inhibitors on two copper surfaces, both in parallel and perpendicular configurations, a consistent trend is observed across all PDOS profiles. So in general, Triazine derivatives are adsorbed from N, S, or both to the surface as inhibitors. The s orbitals of N atoms before adsorption have peaks ranging from − 380 to + 15 eV, while the range for S atoms is wider, spanning from − 2400 to + 15 eV. This data indicates that S atoms exhibit a broader energy range compared to N atoms before adsorption. Before adsorption, the range of p orbitals in both N and S atoms is between − 380 to + 15 64. After being adsorbed, the peaks of the s and p orbitals are observed within the range of -25 to 0 eV, and this range only varies for the 2b molecule (Figure S1) that is adsorbed on the Cu (1 1 1), which is from − 1 to 0 eV. Initially, the energy levels are distinct, but when triazine derivatives are adsorbed onto the surface, the peaks in the positive range are eliminated, their intensity declines, and peaks are broadened significantly. This change indicates a strong interaction between the inhibitors and the copper surface. The d-orbital of the surface both before and after adsorption was also evaluated. After adsorption, the intensity diminished, and the peaks became slightly broader, suggesting a strong interaction between the inhibitor and the surface65.

Fig. 6
figure 6figure 6figure 6figure 6figure 6

PDOS diagrams of triazine derivatives before (light blue) and after (light red) adsorption perpendicularly on the Cu (1 1 0) surface. (The initial columns on the left illustrate the s orbitals, while the subsequent columns present the p orbitals of the inhibitors. The third set of columns represents the d orbitals characteristic of the copper surface.)

Analysis of the molecular inhibitors’ activity

Quantum chemical parameters

Frontier molecular orbitals (FMOs) are crucial for comprehending the molecules’ reactivity toward the surface and establishing their correlation with the chemical structure66 and FMOs for triazine derivatives are displayed in Fig. 7. The HOMO and the LUMO are the key molecular orbitals that influence reactivity. EHOMO assesses the electron donation ability of a molecule; a higher value indicates a greater inclination to donate electrons to the d orbitals present on the surface. ELUMO reflects the electron-gaining capacity of a molecule, and a lower ELUMO indicates greater inhibition efficiency67,68. A lower value for ΔEgap suggests more favorable adsorption of inhibitors on the surface, subsequently improving their efficacy in mitigating corrosion. ΔEgap values for these inhibitors, as shown in Fig. 8, indicate the following trend: 2b > 1b > 2a > 1a > 1d > 2d > 1c > 2c so their inhibition efficiency order is 2c > 1c > 2d > 1d > 1a > 2a > 1b > 2b and this aligns with the results presented in Tables 4 and 5, where the maximum absolute adsorption values were observed for inhibitors 2c, 1c, 2d, and 1d. Also, a plot of ΔEgap vs. adsorption energies show good correlation with R2 (correlation coefficient) values in the range of 0.7877–0.9956.

A soft molecule is defined by a relatively small energy gap between its HOMO and LUMO69. Conversely, a hard molecule exhibits a larger energy gap between these two orbitals70. As mentioned previously, a molecule with a smaller energy gap exhibited better performance as a corrosion inhibitor. According to the information presented in Table 6, the trend of high softness and low hardness of inhibitors is consistent with the ΔEgap order (2c > 1c > 2d > 1d > 1a > 2a > 1b > 2b). Electronegativity serves as a critical parameter that illustrates the electron transfer dynamics between inhibitors and metal substrates. As electronegativity increases, the propensity for electron transfer from the inhibitor to the substrate decreases. According to Table 6, the 2d and 1d, with electronegativities of 4.109 and 4.221 eV, respectively, demonstrate a strong tendency to preserve the surface against corrosion71. The electrophilicity index (ω) quantifies an electrophile’s ability to accept electrons, indicating its capacity to engage with an adjacent electron reservoir. This measure reflects the potential for electron acceptance, which can be a fraction of unity or greater, thereby characterizing the electrophile’s reactivity in electron-rich environments72. In the present study, compounds 1c and 2c exhibit the highest electrophilicity indices, measuring 14.748 eV and 14.345 eV, respectively, among all examined inhibitor molecules. This suggests that they may act as the strongest nucleophiles in the context of this research. ΔN quantifies the extent of charge transfer interactions occurring at the interface between the surface and the corrosion inhibitors. When ΔN > 0, it indicates that charge moves from the inhibitors to the surface, whereas ΔN < 0 means that electrons are transferred from the surface to the inhibitor. As shown in Table 6, ΔN Cu (1 1 1) for 2d and 1d is equal to 0.384 and 0.327, respectively and ΔN Cu (1 1 0) for 2d and 1d inhibitors is equal to 0.172 and 0.118 and they have the highest charge transfer from the inhibitor to the surface and this leads to improved effectiveness in preventing corrosion73.

In conclusion, an assessment of frontier molecular orbitals, electronegativity, electrophilicity indices, and charge transfer parameters reveals that the triazine derivatives namely, 2c, 1c, 2d, and 1d, will exhibit enhanced adsorption and corrosion inhibition effectiveness on both Cu (1 1 1) and Cu (1 1 0). This observation aligns with their adsorption energies, which display the highest absolute values. Thus, these derivatives hold considerable promise for advancing surface protection strategies.

Fig. 7
figure 7

Optimized structure of inhibitors and their HOMO and LUMO.

Fig. 8
figure 8

ΔEgap for triazine derivatives (left); correlation of ΔEgap values and adsorption energies for the different tatutomers top for the 1a-1d and below for the 2a-2d (rigth).

Table 6 Quantum chemical parameters of triazine derivatives.

Mulliken charges

Table 7 summarizes the Mulliken charges of the molecules before their adsorption on the surface, which helps identify the atoms that are most likely to interact with the copper atoms74. Atoms that have a more negative Mulliken charge are great candidates for donating electrons to the unoccupied d-orbitals of surfaces75,76. As seen in Table 7, heteroatoms have the highest electron density and serve as active sites for inhibitors. These findings are corroborated by the data presented in Tables 4 and 5, which signifies that molecules are adsorbed from heteroatoms onto the surface. The Mulliken charge of molecules after adsorption has changed because of their nature to donate and give electrons, and Table 8 presents the variation in the Mulliken charge of the active sites, comparing values recorded before and following the adsorption process. A positive Δq suggests that electrons are transferred from the inhibitors to the surface, while a negative Δq indicates electron transfer from the surface to the inhibitor77. Most atoms exhibit a positive Δq, indicating their beneficial effect on surface protection. Notably, S1 demonstrates the most positive value, signifying the most effective electron transfer from this atom to the surface, except for 1b and 2b molecules, which do not adsorb to the surface from the S1 atom.

Table 7 Mulliken charge of inhibitors, before adsorption.
Table 8 Mulliken charge difference.

Fukui indices

Active sites of inhibitors for electrophilic or nucleophilic attack can be identified by utilizing Fukui indices78. Nucleophilic attacks and electrophilic attacks are associated with fk+ and fk. A higher fk+ signifies a stronger inclination to donate electrons, while a higher fk value suggests a stronger inclination to accept electrons79,80, and the reactivity increases with a higher Fukui index value, indicating a stronger tendency for electron gain or loss81,82. Calculated Fukui indices in gas and aqueous phases are displayed in Figs. 9, 10, 11 and 12. It is evident that, the highest fk+ and fk are on the S, N, and O, which means these atoms have the highest tendency to donate and accept electrons. They are active donor-acceptor sites, and these results agree with the data in Table 8, which shows Mulliken charges after adsorption. As is obvious in Table 8, the Mulliken charge of some of the heteroatoms increases after adsorption, which means they are capable of accepting free electrons from the filled surface orbitals.

Fig. 9
figure 9

Fukui indices of series 1 inhibitor molecules in gas phase.

Fig. 10
figure 10

Fukui indices of series 2 inhibitor molecules in the gas phase.

Fig. 11
figure 11

Fukui indices of series 1 inhibitor molecules in aqueous phase.

Fig. 12
figure 12

Fukui indices of series 2 inhibitor molecules in aqueous phase.

Comparison of gas and aqueous phases

Solvation energy refers to the change in energy that occurs when a molecule is transferred from the gas phase into a solvent. It considers the interactions that take place between the molecule and the solvent molecules, including hydrogen bonding, van der Waals forces, and electrostatic interactions. In the gas phase, molecules are isolated and interact minimally with their surroundings. In contrast, the aqueous phase introduces significant solvation effects due to water’s high polarity and ability to form hydrogen bonds. These interactions can stabilize or destabilize molecular complexes depending on their structure and charge distribution.

In this study, all adsorption energy calculations referenced previously relate to the gas phase; however, given that corrosion occurs in the presence of water, additional calculations have been implemented to assess the effectiveness of inhibitor molecules in both gas and aqueous phases. To achieve this, the adsorption energy of the inhibitor molecules, when they are adsorbed perpendicularly and parallel to the surfaces of Cu (1 1 1) and Cu (1 1 0) in the aqueous phases, is listed in Table 9. As shown in Table 9, it is evident that the absolute adsorption energy value in the aqueous phase is reduced compared to the gas phase in Tables 4 and 5. For example, the perpendicular orientation of the 2c molecule on the Cu (1 1 0) surface shows a decrease in absolute adsorption energy from 114.04 kcal mol[- [1 to 77.17 kcal mol[- [1. This reduction indicates a significant solvation effect; however, the resulting energy remains sufficiently high to ensure effective corrosion inhibition on copper substrates.

Table 9 Evaluation of the adsorption energy of the inhibitor molecules in both gaseous and aqueous environments on Cu (1 1 1) and Cu (1 1 0) surfaces.

Furthermore, the Fukui indices for the 2c molecule, due to its superior performance relative to other inhibitors when adsorbed on Cu (1 1 1) and Cu (1 1 0) surfaces, in both gas and aqueous phases, are presented in Table 10. In the gas phase, there is a direct interface between the copper surface and the reactants. However, in the aqueous phase, solvation effects can modulate electron density distribution, which may influence nucleophilic and electrophilic activities. However, this study indicates that changes in Fukui indices of inhibitors after adsorption on the surface are negligible in both phases. The minimal variation in Fukui indices observed between gas and aqueous environments may be attributed to the inherent chemical properties of the inhibitors and their interactions with the copper substrate. If the inhibitors possess strong adsorption characteristics that primarily govern their engagement with the surface, then the solvation effects encountered in the aqueous phase are unlikely to significantly impact their electron density profiles. It is noteworthy that S1 demonstrates consistently high reactivity across a range of conditions.

Table 10 Fukui indices of 2c molecule in gas and aqueous phases when adsorbed perpendicularly to Cu (1 1 1) and Cu (1 1 0).

Comparing previous studies with this project

Extensive theoretical and experimental research has been undertaken to identify the most effective corrosion prevention strategies for copper surfaces. The calculated adsorption energy values of inhibitor molecules on the copper surface, as illustrated in Tables 4 and 5, were compared to those of previously reported inhibitors listed in Table 11. The results indicate that the studied molecules exhibited stronger adsorption, with absolute adsorption energy values exceeding those noted in other studies. The weaker adsorption energies reported in prior research highlight the superior performance of inhibitor molecules in this study in terms of interaction strength with the copper surface. These results underscore the potential of the molecules as an effective corrosion inhibitor, offering enhanced adsorption properties compared to existing alternatives.

Table 11 Previous studies for finding inhibitors for copper surfaces.

Conclusion

In this comprehensive study utilizing a density functional theory (DFT) approach, the inhibition efficiency of several compounds, namely 4-amino-3-thioxo-3,4-dihydro-1,2,4-triazin-5(2 H)-one (designated as 1a) along with its tautomers (1b, 1c, and 1d), and 4-amino-6-methyl-3-thioxo-3,4-dihydro-1,2,4-triazin-5(2 H)-one (denoted as 2a) and its corresponding tautomers (2b, 2c, and 2d) was investigated. The primary focus was on their effectiveness in safeguarding copper surfaces exhibiting distinct Miller indices, specifically the Cu(1 1 1) and Cu(1 1 0). In summary, it is confirmed that the interaction between the copper surfaces and the inhibitor molecules has been classified as chemisorption, based on the calculated bond lengths of Cu-N and Cu-S, which suggest the formation of covalent bonds between the inhibitor molecules and the copper surfaces, the adsorption energy of inhibitors on the copper surfaces, and Gibbs free energy of adsorption of inhibitor molecules on the Cu surfaces. The adsorption of inhibitors onto the surface occurs through heteroatoms, in line with calculated quantum chemical parameters such as Fukui indices and Mulliken charges. The Fukui indices demonstrate that heteroatoms act as the main active sites for both electron donation and acceptance. Furthermore, the positive Δq observed for these heteroatoms signifies their tendency to transfer electrons to the surface. Another quantum chemical parameter, ΔEgap, reveals that compounds 2c, 1c, 2d, and 1d exhibit the greatest inhibition efficiency. This finding is further corroborated by the adsorption energy trends, which align remarkably with the ΔEgap values. Ultimately, the analysis of the adsorption energies of molecules across various surface structures indicates a clear trend in efficiency, with Cu (1 1 0) outperforming Cu (1 1 1).