Introduction

Molecular substitution-oriented designing is a novel strategy for developing new materials with new properties [1]. The technique might be expanded to the finding of high-performance ultraviolet (UV) nonlinear optical (NLO) solid-state materials by carefully adjusting the replacement atoms [2]. Organic materials (OMs) are utilized in a variety of semiconductor devices due to their high charge transportation with photo-adjustable characteristics [3]. These OMs find a wide range of possibilities in semiconductor devices such as energy conversion [4], optoelectronics [5], and photovoltaics [6]. They have recently created numerous technologies inside Organic Light-Emitting Diodes (OLEDs) [7], as well as organic field-effect transistors (OFETs) [8]. Because of their multi-purpose uses, OMs are a subject of research for synthetic specialists as well as scientific theorists [9]. Organic-based π-conjugated compounds as semiconductors also have promising uses in optoelectronics [10]. The most recent research on π-conjugated acenes and hydrocarbons has rapidly expanded their use in the electronics sector [11]. It is critical to generate tunable organic substituents with improved mobility and stability [12]. At the present, quantum chemical techniques are being used to reveal different characteristics of interest [13]. Various structural changes are well-planned as an unrivalled strategy for tuning the optical and charge transport characteristics of organic semiconductor materials (OSMs) [14]. To analyze their properties, the energy of molecular orbitals (EHOMO and ELUMO, etc.), electron affinities (EA), ionization energies (IE), and relevant global chemical reactivity properties have been investigated. Density functional techniques have advanced, and they now have the first-rate predictive capability for calculating charge transport and electro-optical characteristics [15].

Nonlinear optical (NLO) materials have been acknowledged to interface with light to generate a nonlinear behavior and their organic/inorganic composition. Nonlinear optical (NLO) materials hold the potential to play a function in processing applications, fibre optics, telecommunications, and information management [16]. Nonlinear optics has become increasingly significant in current optical fibre networking systems enabling ultrafast processing applications [17]. Nonlinear dynamics have both positive and/or negative side effects for light travelling via an optical cable. Due to various relatively simple reaction chemistry, cheap cost creation, and structurally feasible alterations to allow for a distinct NLO response, NLO compounds produced from the organic framework became the topic of recent research [18]. Optical devices such as lenses, reflectors, prisms, polarizing filters, sensors, and modulators may bend, refract, broadcast, disperse, polarize, monitor, and change light [19]. The intramolecular charge transfer (ICT) across charge transfer components through π-conjugated linkers underpins these NLO properties of materials [20]. Computational and experimental results suggest that building robust donor (D) and acceptor (A) groups on opposing sides of π-linkers can result in a wide second-order NLO responding [21]. Electronic charge transitions are accelerated in compounds containing conjugated π-electrons [22]. The molecular electrostatic potential (MEP) is a useful measure for studying the reactivity of various molecules and/or species [23].

Since expensive synthetic procedures have hampered the advancement of UV laser technologies, new strategies for developing superior UV NLO materials are critically needed [24]. Transfer of inter/intramolecular charges, concerning both the electron donors and the withdrawing group [25], can be used to optimize the bandgap and govern transitions in a novel donor–acceptor system employing various donor or acceptor moieties with large initial dipole moment values [26]. The electronic characteristics of D–π–A organization with the novel π-conjugated network are introduced in the system consisting of 2,2′-(pyrimidine-4,6-diyl)bis(1,3-benzothiazole) (PB) with conjugates benzenes serving as second π-linkers between the donor and acceptor moieties. TFM has been employed in many hole-transporting materials as a donor unit because of its potential for electron donation and charge transfer [27]. Seven newly designed PB–TFM-based dyes (AH1––AH7) of D––π––A type have been created with varied combinations of first and second π-conjugates. Such theoretical evaluation helps estimate NLO attributes as well as investigate the influence of various π-conjugated linkers on this activity without any expense. The newly developed dyes (AH1––AH7) were computed using density functional theory (DFT) for their electronic properties, electronic features, and polarizability/hyperpolarizabilities (Scheme 1). This study should hopefully lead to the development of novel organic dyes to exhibit good NLO characteristics.

Scheme 1
scheme 1

Structural design of compounds (AH1–AH7) with the acceptor, linkers, and donor designs

Computational methodology

The standard research design was carried out to investigate the structural, electronic and quantum chemical characteristics [28]. PB–TFMs derived new dyes at their ground state geometry (S0) had been optimized using Becke’s three-parameter hybrid (B3LYP) and the 6-31G + (d,p) basis set at the density functional theory level. Different long-range and range separated functionals, B3LYP, CAM-B3LYP, B97XD, and APFD, were investigated using the 6-311G + (d,p) basis set at density functional theory (DFT) level for PB at its UV–vis studies. The absorption spectra of TDDFT-based findings were found to match with experimental data at the B3LYP level. Although the B3LYP functional employed for TD-DFT calculations does not compensate for long-range interactions, the theoretical and experimental [29] UV–vis spectra were in good agreement, demonstrating that the functional was suitable in this context (Fig. 1). The B3LYP model, which contains Hartree–Fock exchange, local exchange, gradient exchange adjustment, local correlation, and gradient correlation correction, is the most well-known hybrid density functional theory model [30]. The basis sets of 6-311G + (d,p) are frequently used in conjunction with B3LYP and are recommended when hydrogen plays a significant role [31]. It does not consider dispersion effects and lacks polarization functions. At ground state (S0) optimization, the conventional DFT functional (B3LYP) has offered the best justification for geometry optimizations at their energy minima [32]. Time-dependent density functional theory (TD-DFT) calculations were employed to calculate the absorption spectra of newly designed dyes at the same basis set level using the B3LYP functional. TD-DFT calculations are still proved to be an efficient approach for calculating the various electronic (absorption, emission and dipole moment, etc.) features of molecules [33] which play a critical role in their charge transferability [34]. In the majority, coupling activities were aided by their increased charge mobility [35], which might be inhibited by organic-organic contacts [36], when contrasted to polaron-localized relaxation energy when examining individual entities [37].

Fig. 1
figure 1

UV–vis benchmark study of PB at B3LYP, CAM-B3LYP, B97XD, and APFD with the 6-311G + (d,p) to simulate its experimental result

The polarizability, as well as hyperpolarizability tensors of the designed dyes, was calculated using Eqs. (1) and (2).

$$<a>=1/3({a}_{xx}+{a}_{yy}+{a}_{zz})$$
(1)

Similarly, second-order hyperpolarizability (β) are computed as follows:

$$\begin{aligned}{\beta }_{\mathrm{tot}}=& \bigg[{\left({\beta }_{\mathrm{xxx}}+{\beta }_{\mathrm{xyy}}+{\beta }_{\mathrm{xzz}}\right)}^{2}+{\left({\beta }_{\mathrm{yyy}}+{\beta }_{\mathrm{xxy}}+{\beta }_{\mathrm{yzz}}\right)}^{2}\\&+{\left({\beta }_{\mathrm{zzz}}+{\beta }_{\mathrm{xxz}}+{\beta }_{\mathrm{yyz}}\right)}^{2}\bigg]^{^1/_2}\end{aligned}$$
(2)

Light-harvesting efficiency (LHE) is another crucial component that affects optical performance. The compounds with the highest photocurrent responsiveness are those with a high LHE value [38]. Equation (3) was used to calculate the LHE of newly designed chromophores.

$$LHE=1-{10}^{-f}$$
(3)

The oscillator strength of substances is represented by “f” in the preceding equation [39]. As an unparalleled technique for tweaking the optical and charge conduction properties of organic semiconductors, different structural alterations are well (Eq. (4)).

$${\beta }_{CT}=\frac{{\Delta \mu }_{gm}{f}_{gm}}{{E}_{gm}^{3}}$$
(4)

The difference between excited to ground states is defined by Egm [40], and the dipole moment is proportional to hyperpolarizabilities. The oscillator strength from a ground state to the nth excited state (fgm) is proportional to ß, while E3gm, the transition energy inside the cube, is contrariwise related to ß [41].

All the global chemical reactivity parameters were calculated by utilizing the Koopmans theorem [42]. By the Eqs. (5) and (6)

$${\varvec{I}}{\varvec{P}}={-E}_{HOMO}$$
(5)
$${\varvec{E}}{\varvec{A}}={-E}_{LUMO}$$
(6)

The chemical potential (μ) of a molecular system is related to the following equation:

$${\varvec{\mu}}=-\left(\frac{{\varvec{I}}{\varvec{E}}+{\varvec{E}}{\varvec{A}}}{2}\right)$$
(7)

Hardness (η) and softness (σ) of a molecular system are also very important global reactivity parameters which are computed as follows:

$${\varvec{\eta}}=\frac{1}{2}[\text{H-L}]$$
(8)
$$\sigma =\frac{1}{2\eta }$$
(9)
$${\varvec{x}}=\left(\frac{{\varvec{I}}{\varvec{E}}+{\varvec{E}}{\varvec{A}}}{2}\right)$$
(10)
$${\varvec{\omega}}=\left(\frac{{{\varvec{\mu}}}^{2}}{2{\varvec{\eta}}}\right)$$
(11)

The NBO analysis sought to learn more about the charge transfer (CT) from the donor to such acceptor [43]. The title dyes with their stabilization energy were calculated at their second-order perturbations theory analysis.

$${E}^{\left(2\right)}= {\mathrm{q}}_{\mathrm{i}}\frac{{\left({\mathrm{F}}_{\mathrm{i},\mathrm{j}}\right)}^{2}}{{\upvarepsilon }_{\mathrm{j}}-{\upvarepsilon }_{\mathrm{i}}}$$
(12)

Results and discussion

Structural optimization of modulated D–π–A systems

For donor–linker–acceptor type dyes, screening the π-spacers is critical for achieving a good NLO performance. The goal of this study is to create a new 2,2′-(pyrimidine-4,6-diyl)bis(2,3-dihydro-1,3-benzothiazole)-based potential NLO materials by structural customization with different -bridges and to forecast their photoluminescence, electrical, and NLO characteristics for the modern optoelectronics. A synthetic metal-free heterocyclic PB is employed in this study for theoretical design. Four optimized structures (AH1AH4) are given in Figs. 1 and 2 as representative structures while all other structures are elaborated in the Supplementary Information (Tables S1S7) Our dyes are made up of three primary components: (i) 2,2′-(pyrimidine-4,6-diyl)bis(2,3-dihydro-1,3-benzothiazole) (PB) as a donor moiety, (ii) the first and second π-spacers (phenyl), which together served as a bridge, and (iii) Trifluoromethyl (TFM) as the acceptor moiety. Two phenyl-conjugates were used to create a total of 7 dyes with altering acceptor atoms. In all studied compounds, the dihedral angle involving C–C–C in the benzene ring of the PB molecule was determined to be 117.65°–118.09° (AH1–AH7). C–C–N connected bond angles were discovered to be 106° and 110°, respectively. At 112.43°–113.03°, the lateral benzene ring was observed to be comparable. The benzene ring C–C–C of benzyl facing thiazole had a 120° dihedral angle, whereas the TPA side had a 108° geometric angular position. C–C–N in the pyrrole unit and C–N–N in the thiazole unit have dihedral angles of 106.43°–106.65° and 110.34°–110.39°, correspondingly.

Fig. 2
figure 2

Optimized structures of representative compounds (AH1–AH4) at the DFT level

For the research of NLO attributes, DFT and TD-DFT calculations are used to evaluate electronic oscillations, (and tot), NBO analysis, and spectrum absorption analysis, as well as light-harvesting efficiency (LHE).

Electronic and global reactivity features

FMOs analysis is a valuable tool for determining the stabilities and photovoltaic characteristics of compounds [44]. The FMOs, or the highest occupied molecular orbital (HOMO) or the lowest unoccupied molecular orbital (LUMO), are important in optical absorption for mechanical simulation of substances [45] (Fig. 3). The bandgap (ELUMOEHOMO) is the most important element in determining the stability and chemical reactivity of novel compounds (AH1–AH7) [46]. Enhanced HOMO–LUMO design for a molecule is associated with its low reactivity, more stability, as well as a hard molecule, whereas smaller ELUMOEHOMO energy gaps are associated with more reactivity, lesser stability, and softer molecules which are more polarized and start serving as a finer competing product in offering the best NLO response. The bandgap across the molecular orbitals was calculated to utilize its significance for their promising photophysical characteristics. Table 1 shows that AH4 having the first π-conjugated link with the highest number of TFMs had the smallest bandgap (0.84 eV) among all. Additionally, AH5 and AH6 which had two π-spacers and 2 and 3 acceptor TFMs respectively were more sensitive after AH4. The rising bandgap ordering of such dyes revealed that TFMs had delivered the best results with phenyl spacers to reduce the energy gap. 0.84–3.67 eV. It was also discovered that dyes containing more π-spacers had a narrower bandgap and therefore stabilizing the molecule more. Overall, the maximum energy gap was found in AH3 (3.67 eV), while the lowest bandgap found in AH4 was 0.84 eV. The energy band gap of all analyzed dyes is evaluated in the following order: AH4 (0.84) > AH6 (1.35) > AH7 (2.35) > AH1 (2.43) > AH5 (2.86) > AH2 (2.97) > AH3 (3.67). In specific, the charge concentrations on the surface of orbitals were studied and depicted in Fig. 3. The charge distributions in HOMOs were distributed throughout the molecule, whereas in LUMO, they are distributed mostly at accepter moiety and partially across the pi spacers.

Fig. 3
figure 3

Frontier molecular orbitals of new dyes (AH1–AH7) at their H-1, H, L, and L + 1 orbital levels

Table 1 Frontier molecular orbital energies (EHOMO and ELUMO), their energy gaps (ΔEHOMO–LUMO), and their related global reactivity parameter values

By examining the global reactivity parameters (GRP) [47] comprising such ionization potential (IP), electron affinity (EA), electronegativity (x), global hardness (η), chemical potential (μ), global electrophilicity (ω), and global softness (σ), the ELUMOEHOMO has been used to depict reactivity and stability. The results for the examined dyes were computed from their molecular orbital analysis by utilizing proper quantum chemistry implications. Ionization potential, as well as electron affinity amplitudes, were used to determine a compound with its electron-donating and electron-accepting capacities respectively [48]. The ionization potential (IP) represents the energy necessary to liberate one electron from that molecule. Increased IP values suggest greater chemical resistance to oxidation and stability. AH6 had the highest IP value of 7.02 eV, while AH4 had the lowest value of 0.89 eV. Their overall order was found as follows: AH6 (7.02) > AH3 (3.78) > AH2 (3.24) > AH1 (2.97) > AH5 (2.94) > AH7 (2.84) > AH4 (0.89). Furthermore, AH6 also had the highest EA value of 5.67 eV, while AH4 had a value of just 0.05 eV. The overall order was noted as follows: AH6 (5.67) > AH1 (0.54) > AH7 (0.49) > AH2 (0.27) > AH3 (0.11) > AH5 (0.08) > AH4 (0.05). The IP values were found to be much higher than the EA values, implying that the proposed compounds had outstanding electron-accepting capacity. Chemical potential values (μ) are considered while determining the stability of compounds. This is related to molecule electronegativity; wherein low values indicate an easy acceptance of electrons and explain electron attraction. Overall order of all the dyes was found as follows: AH4 (−0.47) > AH5 (1.51) > AH7 (−1.66) > AH1 (1.76) > AH2 (1.76) > AH3 (1.94) > AH6 (−6.35). The greater hardness values in the investigated dyes imply their stability, as evidenced by their negative chemical potentials. The rising energy gap sequence of entitled dyes corresponds to the ascending order for their global hardness. This design was in perfect agreement with the HOMO–LUMO bridging, illustrating that compounds with a significant Eg value are considered hard molecules, with greater kinetic stability, lower reactivity, and resistance against electronic conformation change. Overall order was noted as follows: AH7 (1.84) > AH5 (1.49) > AH2 (1.43) > AH4 (1.22) > AH6 (1.17) > AH3 (0.68) > AH1 (0.42). Another factor to consider is global softness, which is connected to its chemical potential. The rising ordering of softness values was in a complete reversal of the growing energy gap order, displaying AH2 (0.27) as the weakest reactive component with the lowest softness value; meanwhile, AH4 (1.19) is the most reactive molecule with the greatest softness value as shown in their order: AH4 (1.19) > AH3 (0.74) > AH1 (0.43) > AH7 (0.41) > AH6 (0.35) > AH5 (0.34) > AH2 (0.27). Global reactivity descriptors exhibited a high association with HOMO–LUMO band gap order (Table S4).

UV–visible analysis

Computed Ultraviolet–Visible (UV–visible) spectroscopy at TD-DFT level with B3LYP/6–311 + G (d, p) basis sets was investigated using DFT simulations. The lowest singlet–singlet six energy transformations were investigated during TD-DFT calculations (Fig. 4). Table 5 shows the calculated transition energy (Ege), oscillator strength (fos), the character of transitions, and optimum absorption wavelengths (λmax), whereas Fig. 2 shows the spectra of AH1AH7. In general, all the dyes demonstrated the UV–visible absorbance span. The greatest value for λmax is investigated in AH3 for all compounds with one pi-spacer (436 nm) and two TFMs. As the π-linker increased, the maximum absorption value dropped, with the lowest value being 369 nm found in AH5. All the dyes were appeared to be in their descending order as follows: AH3 > AH1 > AH4 > AH2 > AH6 > AH7 > AH5 (Table 2). The majority of electronic shifts (HOMO → LUMO) occurred between the donor (PB) and the acceptor (TFM). The transition in AH2 and AH4 differed from the complete sequence of these dyes in which the transitions occur from HOMO-1 LUMO HOMO → LUMO + 3 respectively. The investigation of materials that harvest photons of solar light are known as light-harvesting [49]. This encompasses research into the light-harvesting characteristics of photosynthetic systems as well as artificial devices created to enhance photocatalytic processes or generate photovoltaic fuels [50]. In Table 5, the light-harvesting efficiency (LHE) values (Table 2) for the dyes AH1AH7 are shown. The dye AH7 had the highest LHE value of 0.04, which is the highest across all compounds.

Fig. 4
figure 4

UV–visible analysis of new dyes (AH1–AH7) at the DFT level

Table 2 Excitation energies (Eg), maximum absorption (λmax), light-harvesting efficiency (LHE), and major electronic transitions of novel compounds

Nonlinear optical parameters

The idea that lower HOMO–LUMO gaps boost the NLO behavior is well acknowledged [51]. This assertion holds in our researched systems, which offer significant promise for the prospective use of explored compounds in optoelectronic applications due to their robust NLO response. Table 3 shows that the highest is found in AH1 (−276.09 Debye) which contains a π-linker and no acceptor, then reduces to AH2 (−306.83 Debye), which contains a π-conjugated linker with one acceptor TFM; furthermore, it decreases to −474.48 Debye in AH5. The overall order was noted as follows: AH1 > AH2 > AH7 > AH3 > AH4 > AH6 > AH5.

Table 3 First-order polarizability ˂α > vales (Debye-Angstrom.−1) of compounds with their tensors

A classical two model approach proposed by Oudar and Chemla [52] with the TD-DFT/6–31 G + (d,p) basis sets may be used to undertake a more extensive investigation of hyperpolarizability. The product of the two (or SOS) approach is used to implement a two-level model and it is widely used in the literature to study the NLO response [53]. It is calculated as follows:

$${{\varvec{\beta}}}_{{\varvec{t}}{\varvec{o}}\mathbf{t}\mathbf{a}\mathbf{l}}=\frac{\Delta \mu \mathrm{X}{f}_{0}}{\Delta {E}^{3}}$$

It contains the critical excited and ground state expressions with the polarizability description. The transition moments [54] and oscillation strengths are important components and NLO materials, with large transition moment and oscillator strength and low energy CT have demonstrated high values [55] (Fig. 5). The excitation wavelength is a significant feature in hyperpolarizability, where it is now being explored in various already reported excessive electronic systems.

Fig. 5
figure 5

Molecular orbitals, their energy gaps, and their hyperpolarizability values

The highest ßtot value 230.11 Debye-Angstrom−1 AH5 was identified which had two π-linkers with one acceptor TFM (Table 4). The remaining compounds also showed good agreement with previously published Thiophene [56, 57] and thiazole-based [58, 59] relevant compounds. These findings show that the compounds studied, particularly AH5 have had the potential to be employed as NLO candidates. Figure 4 depicts the good match between hyperpolarizability and thus the two-level approach for investigated molecules. AH5 > AH4 > AH6 > AH7 > AH1 > AH3 > AH2. All the compounds had outstanding hyperpolarizability scores, indicating that structural alteration using efficient π-conjugated linkers in between donor and acceptor units is a successful approach for obtaining a pleasing NLO response. According to the foregoing conclusions, altering various types of bridges provides a critical notion in the modelling of unique D–A frameworks, resulting in outstanding NLO outcomes that can improve photoelectric as well as optical qualities.

Table 4 First-order polarizability ˂β > vales (Debye-Angstrom.−1) of compounds with their tensors

Natural bond orbitals

Analysis of natural bond orbitals (NBOs) provides a very effective indicator for charge transfer relationships involving empty and filled orbitals [60]. It is often accepted that in processes, charge transfer is shifted from donors to the accepters over the molecular systems [61]. As a result, NBO analysis was carried out to better understand the charge transfer processes of our proposed compounds. This research revealed that all donor moieties had favourable charge transfer values, indicating that our developed compounds had a high potential for donation (Table 5). Furthermore, the very lowest (0.39–0.98 kcal/mol) NBO energies of all acceptors demonstrated that all dyes can efficiently take electrons. The charge dispensation across the π-linkers revealed that they provide a pathway for electronic transfers. Overall, the investigation found that charge is successfully moved from donor to accept or via pi-spacers, resulting in a charge segregation state in which all donor and π-conjugated bridging display good ratings while all acceptors exhibit smaller values. The compound AH7 with higher charge transfer capabilities has the greatest NBO values at π-conjugated linkers, whereas the AH5 has the lowest values. All the other dyes that have been created are in good harmony with one another.

Table 5 Natural bond orbital charge analysis between donor and acceptor groups with the role of π-linkers

Molecular electrostatic potentials

The electrostatic potential (ESP) mapping is extremely useful for determining molecules with electrophilic and nucleophilic interaction areas. The positive (most electron-poor) component is represented in blue, while the neutral component is depicted in green, and the negative (most electron-rich) section is indicated in red (Fig. 6). Within MEP, greater negative potential zones, shown by a red color spot, are advantageous for electrophilic substitution, whereas higher positive potential zones, represented by a blue color spot, are advantageous for nucleophilic substitution approach.

Fig. 6
figure 6

Electrostatically mapped surfaces of start shaped new dyes ((AH1AH7)

Conclusions

The impact of various π-spacers on NLO characteristics was investigated when 2,2′-(pyrimidine-4,6-diyl)bis(2,3-dihydro-1,3-benzothiazole) (PB) chromophores (AH1–AH7) were hypothetically created by structural customizing with various pi-spacers. The results show that the π-linker had a promising influence on the D–π–A architecture, tuning the electrical, photo physical, and NLO characteristics of developed chromophores significantly. All the new dyes studied herein had a wider spectral response and had good LHE with the lowest transition energy. In AH3, the highest redshift (λmax = 436 nm) was explored. According to the FMO investigations, HOMO was partially moved across PB and partially on π-linkers or acceptors (TFM). Most LUMOs, on the other hand, were mounted on TFMs (acceptor) and partially on phenyl π-conjugates. Furthermore, the least bandgap 0.84–3.67 eV in AH1–AH7 was investigated. The findings of the NBO revealed that electrons are efficiently transported from PB to TFM via the π-linker, resulting in the formation of a charge transferring state. Electronic transitions from donor to acceptor moieties through π-conjugated linkers were shown to have a larger linear and nonlinear response. When compared to pyrrole, molecules having an imidazole spacer had a reduced bandgap and stronger NLO characteristics. Overall, all the designed compounds exhibited a strong NLO response with higher polarizability and first hyperpolarizability values, with AH5 having the highest ßtot value of 230.11 Debye-Angstrom−1, which was about 5 times higher than the thiazole-based identified molecules. These organic metal-free dyes based on the D–A frameworks are important in research and bring fresh insights into trials to produce high-performance NLO components.