Introduction

4-oxo-2-thioxo-1,2,3,4-tetrahydropyrimidine-5-carbohydrazide (TC) based materials are a significant core system and they have gained considerable attention because they are found in various natural and synthetic biologically as well as pharmacologically active compounds [1] due to containing an azomethine moiety (-NH-N = CH-). TC-based materials have been reported to possess a broad spectrum of biological activities including, anticancer [2], antihaemostatic activity [2], antiviral [3], anticonvulsant [4], analgesic [5], anti-inflammatory [6], antiplatelet [9], antifungal [7], and antimalarial activities [8].

Because of the great challenge used in new research on renewable energy sources, solar cells (SCs) are considered one of the most significant renewable energies recently [9,10,11,12]. Photovoltaic (PV) technologies have become one of the most important topics in SCs to convert the sun into electrical energy [13, 14]. In addition, the most important challenges are represented in capturing solar energy and converting it into electrical energy at a low cost [15]. It was taken out of the PV devices that are based on inorganic materials in their manufacture, such as crystalline and amorphous silicon (Amorph. Si), cadmium telluride (CdTe), gallium arsenide (GaAs), with the knowledge that they give their efficiency from 10 to 32% [16]. However, since these are expensive materials and scarce, in addition to their toxicity, many researchers have resorted to searching for other new, cheap, and more efficient materials. According to what will be said, SCs based on organic compounds are considered an attractive and appropriate choice due to their flexibility and ease of processing in addition to their low cost, but their efficiency at present time is considered less than those that depend on inorganic materials [17]. The efficiency obtained from these types of cells is still not marketable, as the most efficient devices are 4 to 5% [18].

Recently, new organic compounds used in SCs have been studied and developed. Among these materials are the dyes for sensitive solar cells (DSSCs), as they receive great interest among researchers due to their low cost and high efficiency in converting solar energy into electricity [19]. Moreover, the manufacture of their devices is easy. Also, PV cells based on the DSSCs have many advantages, including their compatibility with many supporting materials and production under moderate conditions that make them less expensive compared to other DSSCs [20, 21]. The first DSSCs were based on titanium dioxide, which was discovered in 1991, and their efficiency was from 7 to 8 percent [13].

In last the study [22], a series of novel N /-(2-thiouracil-5-oyl) hydrazones were designed, chemically synthesized, and characterized [22]. The anticancer results showed that those compounds exhibit the most prominent effect on breast cancer cells [22]. In addition, molecular docking studies were also performed [22]. Hence, it was important to carry out the following important quantum studies in this manuscript; DFT calculations, NBO analysis, Fukui function analysis, MESP, and solar cell application using CAM-B3LYP/6-311G +  + (2d, 2p) level of theory.

Studied Molecular Structures (MSs) and Computational Investigation

The molecular modeling and photoelectronic properties of the studied compounds (BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC) were investigated using Density functional theory (DFT) methods via utilizing CAM-B3LYP [23] level with 6-311G +  + (2d, 2p) [24] basis set. All computational calculations were presented via utilizing the Gaussian 09 program [24]. Upon utilizing DFT/CAM-B3LYP/6-31G +  + (2d, 2p) level, the molecular structures (MSs) of neutral molecules are optimized, and their molecular electronic properties as HOMO, LUMO levels, and the energy gap (Eg) are obtained. The NBO analysis, local reactivity, and electrostatic potential for all studied MSs are calculated via applying the DFT/CAM-B3LYP/6-31G +  + (2d, 2p) level of theory.

All studied MSs(MSs) as shown in Scheme 1 are N'-benzylidene-4-oxo-2-thioxo-1,2,3,4-tetrahydropyrimidine5-carbohydrazide (BTC), N'-(4-chlorobenzylidene)-4-oxo-2-thioxo-1,2,3,4- tetrahydropyrimidine-5-carbohydrazide (CBTC), N'-(4-methoxybenzylidene)-4-oxo-2-thioxo-1,2,3,4- tetrahydropyrimidine-5-carbohydrazide (MOBTC), N'-(4-bromobenzylidene)-4-oxo-2-thioxo-1,2,3,4- tetrahydropyrimidine-5-carbohydrazide (BBTC), N'-[(furan-2-yl)methylene]-4-oxo-2-thioxo-1,2,3,4- tetrahydropyrimidine-5-carbohydrazide and N'-(4-methylbenzylidene)-4-oxo-2-thioxo-1,2,3,4- tetrahydropyrimidine-5-carbohydrazide (MBTC). The six studied MSs under study were prepared, characterized and published in 2021 [22].

Scheme 1
scheme 1

Studied MSs of BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC

Result and Discussions

DFT Calculations

The optimization of the MSs understudy has been obtained via using DFT/CAM-B3LYP/6-31G +  + (2d, 2p) method in a gaseous state; the results of optimized MSs are presented in Fig. 1. Exitance of C = N in all considered MSs, lead to the possibility of much more than one conformer. The possible conformations for each considered MS were investigated and the more stable conformer for each studied MS is presented in Fig. 1. The influence of substituents such as chloride (Cl) in CBTC, bromide (Br) in BBTC, methoxy (CH3-O) in MOBTC, methyl (CH3-) in MBTC, and furane in FMTC on some important selected optimized MS parameters such as (bond length in Å, bond angle and dihedral angle in degree) for BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC optimized MSs have been investigated; the results are collected in Table 1. Some important comments that can be deduced are as follows; (i) Referring to the listed values of dihedral angles, all studied MSs are planar. (ii) Owing to increasing bond order, the C22-C20 bond length is less than C19-C17 bond lengths in all studied MSs by about (0.016–0.088) Å. (iii) Referring to the listed values of bond angles, the type of hybridization overall studied MSs is SP2. (iv) The obtained bond lengths alter because all C–C, ring’s C-N bonds are either doubly bonded or partially multiple bonded. (v) Generally, the stability of MS can be judged via the length of the bond [25], where the more stable molecular structure is combined with the shorter the bond length. As shown in Table 1, the bond lengths of CBTC, BBTC, MBTC, and MOBTC MSs are less than that of the BTC compound. Therefore, the CBTC, BBTC, MBTC, and MOBTC MSs are the highest stable comparable BTC compound. (vi) Also, the bond lengths in FMTC MS are shorter than those in BTC MS. Hence, the FMTC MS is more stable than the BTC compound due to the substitution of furan with the phenyl group.

Fig. 1
figure 1

Optimized MSs of BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC in the gaseous state using CAM-B3LYP/6-311G +  + (2d, 2p) level of theory

Table 1 Selected optimized structural parameters (bond length in ˚A, bond angle, and dihedral angle in degree computed for BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC in gaseous phase via applying CAM-B3LYP/6-311G +  + (2d, 2p) level of theory. For labeling, belong to Fig. 1

The molecular orbitals (MOs) of all studied MSs (BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC) are investigated; the obtained results such as HOMO (H) / LUMO (L), H-1/L + 1, H-2/L + 2 MOs, and energy gaps between the following graphically; H and L (Eg), H-1 and L + 1 (Eg1) and H-2 and L + 2 (Eg2) in the gaseous state via utilizing CAM-B3LYP/6-311G +  + (2d, 2p) level of theory are collected in Figs. 2 and 3. The HOMO MOs are localized on phenyl (-C6-H5) and its derivatives like (4-Cl-C6-H5, 4-Br-C6-H5, 4-CH3-C6-H5, and 4-CH3-O-C6-H5) in CBTC, BBTC, MBTC, and MOBTC MSs respectively. But, upon substitution of the phenyl group with furan, the HOMO MOs become localized on furan substituent instead of phenyl one. On the other hand, the LUMO MOs are localized over the whole studied MSs. The HOMO energy MOs of all studied MSs are ordered as follow; BBTC < BTC < CBTC < MBTC < MOBTC < FMTC. Indicating, that the BBTC MS has the highest stable HOMO MOs while FMTC MS has the highest reactive HOMO MOs. Also, the LUMO energy MOs are arranged in the following order: FMTC < BBTC < CBTC < BTC < MBTC < MOBTC. This refers to the FMTC MS having the highest stable LUMO MOs, but the MOBTC has the highest reactive LUMO MOs. The energy gap (Eg) value is calculated by applying the difference (EL-EH). The calculated Eg values for all studied MSs rise in the following order: FMTC < MOBTC < MBTC < BBTC < CBTC < BTC. These results indicate that the FMTC MS is more reactive compared to the other studied MSs and BTC has the lowest reactivity. Also, the reduction in the Eg value favors the red-shifted of the electronic absorption maximum peak in the UV–Vis absorption spectrum. Therefore, the calculated electronic UV–Vis absorption spectra for FMTC, MOBTC, MBTC, BBTC, and CBTC are red shifted, in contrast to, the UV–Vis absorption spectrum of BTC. The total density of states (TDOS) for BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC MSs using the B3LYP/6-31G* level of theory is investigated; the obtained calculated spectra are collected in Fig. 4. The obtained TDOS for all studied MSs are calculated using Multiwfn software [26]. As presented in Fig. 4, the highest reactive MS is FMTC and the lowest one is BTC.

Fig. 2
figure 2

BTC, CBTC, and BBTC molecular modeling graphical presentation of HOMO (H), LUMO (L), H-1, L + 1, H-2, and L + 2 orbitals as well as energy gaps between the following: H/L (Eg), H-1/L + 1 (Eg1) and H-2/L + 2 (Eg2) in the gaseous state via utilizing CAM-B3LYP/6-311G +  + (2d, 2p) level of theory

Fig. 3
figure 3

MBTC, MOBTC, and FMTC molecular modeling graphical presentation of HOMO (H), LUMO (L), H-1, L + 1, H-2, and L + 2 orbitals as well as energy gaps between the following: H/L (Eg), H-1/L + 1 (Eg1) and H-2/L + 2 (Eg2) in the gaseous state via utilizing CAM-B3LYP/6-311G +  + (2d, 2p) level of theory

Fig. 4
figure 4

Total density of states (TDOS) spectra for BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC MSs using B3LYP/6-31G* level of theory

Quantum Chemical Parameters Calculations

Some important quantum chemical parameters like dipole moment (\(\mu\)), chemical potential (\(\rho\)), electronegativity (\(\chi\)), and chemical hardness (\(\eta\)) were calculated via using EL and EH values. These quantum parameters are calculated using the following equations \(\uprho =\frac{{E}_{H}+ {E}_{L}}{2}\) [27], \(\chi=-\frac{E_H+E_L}2\;\mathrm a\mathrm n\mathrm d\;\mathrm\eta=\frac{E_L-E_H}2\) [27]. Generally, when the chemical structure has high dipole moment, it has a large asymmetry in the electric charge distribution, and then it can be highly sensitive due to the change of chemical structure and electronic properties under an external electric field. Thus, as shown in Table 2, the μ value of the compound BTC is highest in contrasting the rest of the other compounds under study. Therefore, this compound is more active compared to the rest of the compounds under study. As presented in Table 2, the ρ value of BBTC MS is lower compared to the other studied compounds. Indicating, that the escaping electrons from BBTC MS are low compared to the rest of the MSs under study. Also, the high \(\chi\) value for BBTC MS contrasting the other studied MSs (see Table 2) leads to the ability of this compound to attract electrons from other compounds [28]. On another side, the \(\eta\) value for BTC MS is high compared to the rest of the other compounds (see Table 2). This indicates that the BTC compound is exceedingly difficult to liberate electrons, while the other compounds (CBTC, BBTC, MBTC, MOBTC, and FMTC) are good candidates to give electrons to another acceptor molecule.

Table 2 Calculated EH, EL, energy gap (Eg), dipole moment (\(\mu\)), and other quantum chemical parameters as electronegativity (\(\chi\)), chemical potential (\(\rho\)), chemical hardness (\(\eta\)) of the BTC, CBTC, BBTC, MBTC, MOBTC and FMTC MSsin gaseous obtained by CAM-B3LYP/6-311G +  + (2d, 2p) level of theory

NBO Analysis

The NBO analysis gives an efficient methodology for investigating inter-and intramolecular bonding as well as gives a convenient basis for investigating charge transfer or conjugative interactions in molecular systems [29]. The second-order perturbation energies (stabilization or interaction energies) (E2 (Kcal/mol)) and the most significant interaction between Lewis’s type NBOs (donor) and non-Lewis NBOs (acceptor) for all studied MSs are calculated using NBO analysis at CAM-B3LYP/6-311G +  + (2d, 2p) level of theory; the collected data are summarized in Table 3. The results of NBO analysis for BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC MSs indicate that there is a strong hyper conjugative interaction as follows; (1) LP (1) N8 → π*C1-C4 and π*C3-S10, LP (1) N9 → π*C2-O11 and π*C3-S10 as well as LP (1) N13 → π*C12-O16 and π*N15-C17, for all studied MSs (the values of stabilized energy are written in Table 3). Due to furan substituent in FMTC MS, the hyper conjugative energies values for FMTC MS are lowest in contrasting the other studied MSs (BTC, CBTC, BBTC, MBTC, and MOBTC MSs). This indicates the highest reactivity of this compound (FMTC) compared to other studied compounds [29]. As presented in Table 3, the all hyper conjugative interactions values for MBTC and MOBTC are increased compared to BTC MS except πC19-C21 → π*C24-C26, πC20-C22 → π*C19-C21, πC24-C26 → π*C20-C22, LP (1) N8 → π*C1-C4, LP (1) N9 → π*C2-O11, LP (1) N13 → π*N15-C17 and LP (2) O16 → π*C11-N13 hyper conjugative interactions due to electron-donating properties for CH3- and CH3-O- substituent at the para position of the phenyl group in MBTC and MOBTC MSs respectively. On the other side, the following hyper conjugative interactions for CBTC and BBTC MSs; πC1-C4 → π*C2-O11, πC19-C21 → π*N15-C17, πC20-C22 → π*C19-C21, πC24-C26 → π*C20-C22 and π*C19-C21, LP (1) N8 → π*C3-S10, LP (1) N9 → π*C2-O11 and π*C3-S10, LP (2) O11 → π*C2-N9, LP (1) N13 → π*C12-O16 and LP (2) O16 → π*C1-C12 decreased comparable BTC compound due to electron-withdrawing properties for Cl and Br substituents at the para position of the phenyl group in CBTC and BBTC MSs respectively.

Table 3 Selection of most influential second-order perturbation (E2) estimation of the hyper conjugative energies (kcal/mol) of the BTC, CBTC, BBTC, MBTC, MOBTC and FMTC molecular modeling structures which were calculated using CAM-B3LYP/6-311G +  + (2d, 2p)) level of theory

Local Reactivity Using Fukui Function

The local reactivity of all atoms in all studied MSs using the Fukui function at the DFT/CAM-B3LYP/6-311G) +  + (2d, 2p) were investigated; the calculated results are written in Tables 4, 5, and 6 [30]. The electrophilic (f), nucleophilic (f+) and free radical (f0) attack are calculated via utilizing the following equations; f+  = [q(N + 1)-q(N)], f = [q(N)-q(N-1) and f0 = [q(N + 1) – q(N-1)]/2 where q is atomic charge (Mulliken, Hirschfeld or NBO, etc.) at the atomic site in the anionic (N + 1), cationic (N-1) or neutral molecule (N). For all studied MSs, the order of the reactive sites for the electrophilic attack, nucleophilic attack, and free radical attacks was collected in Tables 4, 5, and 6. For BTC MS, the parameters of local reactivity descriptors show that 10S is the more reactive site for nucleophilic and free radical attacks and 13 N for electrophilic attacks due to electron-donating (ED) properties of oxygen atom in carbonyl group and nitrogen atom in azomethine moiety (-NH-N = CH-). For BBTC MS, the most reactive site for nucleophilic, free radical, and electrophilic attack is 26C, 16O, and also 16O respectively due to the ED properties of oxygen atoms in the carbonyl group. For FMTC MS, the most reactive site for nucleophilic, free radical, and electrophilic attack is 10S due to ED effects of the oxygen hetero atom in furan substituent. The highest reactive site of electrophilic attack for CBTC MS is 29Cl and the most reactive site for nucleophilic and free radical attack is 10S due to the high electron-withdrawing (EW) properties of chloride substituent. For MOBTC and MBTC MSs, the most reactive electrophilic and nucleophilic attack is the same which is 1C and 10S respectively. But the free radical attack for MOBTC and MBTC MSs is not the same which is 1C for MOBTC and 16O for MBTC. This is due to the highest ED properties for the CH3-O group in the MOBTC MS contrasting CH3- group in the MBTC compound. (Note: All the compounds under study are compared to the BTC compound, and therefore the reasons for the highest reactive site for nucleophilic, free radical, and electrophilic attacks depend on this comparison).

Table 4 Order of the reactive sites on compounds BTC and BBTC
Table 5 Order of the reactive sites on compounds CBTC and MOBTC
Table 6 Order of the reactive sites on compounds MBTC and FMTC

Molecular Electrostatic Potential (MESP)

The electron density is an incredibly significant factor for investigating the reactivity of electrophilic (E) and nucleophilic (Nu) sites and the interactions of hydrogen bonds [30], as well as this density, is related to the molecular electrostatic potential (MESP). Therefore, for predicting this reactivity of Nu and E sites attacks for all studied MSs, we obtained the MESP of these MSs usage the CAM-B3LYP /6-311G +  + (2d, 2p) level of theory. The numerous colors (red, blue, and green) at the MESP surface indicate different values of the ESP as the regions of highest negative, highest positive, and zero ESP respectively. The negative sites at MESP (red) refer to E reactivity, the positive sites (blue) refer to Nu reactivity, and the green represents regions of zero potential (See Fig. 5). As presented in Fig. 5, the maximum positive region for all studied MSs is localized on a hydrogen atom and is linked to a nitrogen atom (N–H) which indicates that this area is an attracting site of electrons. On the other side, the maximum negative region for all studied MSs is localized on the carbonyl group (C = O) which indicates this area is a donating site of electrons.

Fig. 5
figure 5

Calculated MESP on the molecular surfaces of studied compounds.CAM-B3LYP functional and 6-311G +  + (2d, 2p) basis set

Application

Figure 6 exhibits the MO energy levels of the six MSs BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC in a gaseous state at the DFT/CAM-B3LYB/6-31G +  + (2d, 2p) level of theory. For the MSs understudy, the HOMO energy is lower than the energy of I/I2 (− 4.85 eV). This indicates that all studied MSs (BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC) can more easily recover electrons from electrolytes (I3). In addition, the LUMO energy of the six studied molecules (BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC) is higher than the conduction band (CB) energy of semiconductor TiO2 (− 4.00 eV) as shown in Fig. 6. Indicating, that the electrons can be successfully transferred into TiO2 from the excited state of all studied dyes. Consequently, all studied MSs dyes may be good candidates for application in PV devices.

Fig. 6
figure 6

Frontier molecular orbital energies and energy gaps of TiO2, BTC, CBTC, BBTC, MBTC, MOBTC, FMTC, and I./I2

The conversion efficiency (Ƞ) of sunlight to electrical energy in SC devices is determined by the short-circuit current density (Jsc), the open-circuit PV (Voc), the fill factor (FF), and incident solar power (Pinc). The Ƞ can be estimated via utilizing Eq. (1) [31]:

$$\eta =\frac{{J}_{sc } {V}_{oc} FF}{{P}_{inc}}$$
(1)

from the formula, it can be seen that high VOC and JSC are the basis for producing photoelectric conversion efficiency. The maximum value for Voc is a significant PV parameter that can be obtained computationally via utilizing the difference between the HOMO of dye and the LUMO of the electron acceptor (conduction band of TiO2). The computational value of Voc has been calculated via utilizing Eq. (2) [27, 32]:

$${V}_{oc}=\left|{E}_{HOMO}^{donor}\right|-\left|{E}_{LUMO}^{acceptor}\right|-0.3$$
(2)

However, in DSSCs, Voc can be obtained as the different energy among LUMO of the dye and conduction band (CB) of the semiconductor [27, 32].

$${{TiO}_2\;\left(E_{CB}=-4.0\;eV\right):V}_{oc}=\left|E_{LUMO}^{dye}\right|-E_{CB}$$
(3)

The theoretically calculated value of Voc for all studied MSs is presented in Table 7. The range value of Voc is 1.814 to 3.214 eV for TiO2. These values are positive; indicating the electron transfer will be easy from all studied MSs to TiO2. Furthermore, these values are sufficient to give the best efficient electron injection. Moreover, those studied MSs can be utilized as sensitizers of the electron injection process from the excited dye to the conduction band of TiO2.

Table 7 Energy values of EHOMO, ELUMO, open-circuit voltage (Voc), and light-harvesting efficiency (LHE) by eV

Another parameter denoted (α) was calculated via the difference between the LUMO energy levels of the studied dyes and the LUMO energy level of PCBM (-3.2 eV) [33]. The value can be obtained via using Eq. (4):

$$\alpha =\left|{E}_{LUMO}^{acceptor}\right|- \left|{E}_{LUMO}^{donor}\right|$$
(4)

The light-harvesting efficiency (LHE) is obtained using the following equation (LHE = 1–10f) [33], where f is the oscillator strength of the dye MS; the calculated LHE is presented in Table 7. The f values for all studied MSs were calculated using the TD-DFT/CAM-B3LYP/6-3111G +  + (2d, 2p) method.

As presented in Table 7, the obtained values of α were in the range of (1.014–2.414 eV). Indicating, that all LUMO MO level for all studied MSs is placed higher than the LUMO MO level of PCBM [33]. So, these studied compounds can be utilized as sensitizers being of the electron injection process from the excited dye to the conduction band of PCBM. Since the value of LHE increase in the following order as shown in Table 7; FMTC < BTC < MBTC < CBTC = MOBTC < BBTC therefore the best dye that can act as DSSCs is BBTC dye comparable to the rest compounds under study. The LHE value for BTC was 0.856 eV as shown in Table 7. The presence of chloride (Cl), bromide (Br), methyl (CH3-), and methoxy (CH3-O-) substituents at the para position of the phenyl group in CBTC, BBTC, MBTC, and MOBTC MSs respectively enhance the LHE by the range of (0.078–0.095) eV. This is due to the EW properties of Cl and Br and ED properties of CH3- and CH3-O-. On the other hand, comparable FMTC to BTC, the LHE of FMTC is decreased via 0.22 eV due to the substitution of furan with a phenyl group. The LHE values for BTC, CBTC, BBTC, MBTC, and MOBTC were in the close range (0.856–0.951) indicating that those MSs gave similar photocurrent [34].

Spectroscopic Investigations

The experimental absorption spectra for hydrazone-based materials class were discussed in the past [35, 36]. Those spectra were within the 300–450 nm range, and the reason for those electronic absorption spectra was π-π* electronic transition [36]. The accurate functional used to calculate the electronic UV–Vis absorption spectra for the hydrazone derivatives family was B3LYP [36]. But the reviewer recommended using CAM-B3LYP instead of B3LYP as the density functional B3LYP is well known to poorly handle dispersion interactions. Hence, the computational electronic UV–Vis absorption spectra for TC-based materials in methanol were calculated using the TD/CAM-B3LYP/6-311G +  + (2d, 2p) method; the results calculated spectra are presented in Fig. 7 and the corresponding optical parameters are written in Table 8. The computational UV–Vis absorption spectra for all studied MSs are within 250-450 nm rang as shown in Fig. 7. Comparing the computational results with the experimental one, it was shown that the computational electronic UV–Vis absorption spectra for all studied MSs lie in the same region as the experimental one. Therefore, the collected computational results are nice with the experimental. The calculated electronic absorption spectrum of BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC MSs in methanol appears as three transitions. The electronic transitions for BTC at 314.71, 286.45 and 267.39 nm, for CBTC at 311.10, 285.34 and 266.33 nm, for BBTC at 305.18, 261.29 and 261.29 nm, for MBTC at 304.43, 278.38 and 260.09 for MOBTC at 304.02, 284.24 and 261.64 nm and for FMTC at 307.52, 294.06 and 264.83 nm. The electronic transitions referring to the calculated maximum peak at 286.45 nm (f = 1.2728) for BTC, 266.33 nm (f = 0.3550) for CBTC, 261.29 nm (f = 1.5791) for BBTC, for MBTC, 278.38 nm (f = 1.4876) for MOBTC and 294.06 nm(f = 1.2591) For FMTC respectively arises from transition of MO71—> 72, MO79—> 80, MO88—> 89, MO75—> 76, MO74—> 76 and MO78—> 79 respectively as presented in Table 8.

Fig. 7
figure 7

Calculated electronic absorption spectra for BTC, CBTC, BBTC, MOBTC, MBTC, and FMTC MSs using TD/CAM-B3LYP/6-311G +  + (2d, 2p) method

Table 8 Calculated electronic absorption of hydrazone-based materials using TD/CAM-B3LYP/6-311G +  + (2d, 2p)

Conclusion

In this paper, the optimized molecular structures, NBO analysis, ESP calculation, Fukui function analysis, and DFT calculations of six 1,2,3,4-tetrahydropyrimidine-5-carbohydrazide (BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC) were investigated successfully via utilizing DFT/CAM-B3LYP/6-311G +  + (2d, 2p) method. According to the ground state geometry, we note that all stable conformations are planar. The HOMO/LUMO energy gaps of BTC, CBTC, BBTC, MBTC, MOBTC, and FMTC were calculated at DFT/CAM-B3LYP/6-31G +  + (2d, 2p) levels are 7.007, 6.896, 6.890, 6.847, 6.593 and 3.982 eV respectively. So, the energy gaps differ slightly and decrease in the following order: FMTC < MOBTC < MBTC < BBTC < CBTC < BTC. Consequently, the calculated values of Voc/ TiO2 of our dyes are sufficient for possible efficient electron injection from the donor to the acceptor.