1 Introduction

Optical grating metamaterials have been proven to be an essential part of many fields of science and technology. From spectroscopy and metrology [1] to telecommunications [2, 3] and biomedicine, these gratings offer unique and precise capabilities for manipulating and analyzing light in a variety of applications [4,5,6]. At their core, optical gratings consist of a periodic structure that modulates the refractive index of a material on a scale that is comparable to the wavelength of the light being diffracted. This modulation produces diffraction patterns that can be used for spectral analysis [7, 8], beam steering [9], optical sensing [10], and many other functions [11]. Meta-gratings achieve control over light by precisely arranging and designing micro- and nanostructures on a planar surface. These structures can be made of metals, dielectrics, or two-dimension materials, and their size and shape can be accurately manipulated to modulate the properties of incident light, such as refraction, reflection, and transmission. Reference [12] proposed a dynamic beam splitter incorporating all-dielectric metasurface in an elastic substrate. The optical behavior at a wavelength of 720 nm indicates that it not only exhibits pure optical diode behavior, but also functions as a dynamic beam splitter, with external mechanical stimulus of stretching. Although the structure is designed with wavelength at 720 nm, the design approach with appropriate materials can be used at any wavelength, including micro wave. Wan et. al. proposed a novel meta-grating design, which hybridizes the metasurface interfacial gradient with the blazed grating profile [13]. References [14] proposed a nanolithography technique to excite surface plasmon polariton (SPP) resonance to achieve nanomanufacturing beyond diffraction limits. This near-field exposure method can achieve high resolution and accuracy in nanomanufacturing.

The beam splitter is a very important type of optical grating, which has the ability to couple incident light into one or multiple diffraction orders [15]. It is understood that many studies have proposed high-performance single-groove beam splitters, which have one groove in a period. Due to the simple and symmetric structure, single-groove beam splitters can usually achieve better beam splitting performance and better uniformity under different polarizations, and single-groove beam splitters are more studied than beam splitters with double grooves. Huang et al. introduced multiple even beam splitters in the terahertz region based on their proposed subwavelength binary periodic rectangular shape, which is a single-groove structure [16]. The proposed beam splitters all show great diffraction efficiency and uniformity under transverse-electric (TE) polarization. Specifically optimized for TE-polarized light, Hsu et al. designed a double-groove blazed grating for a seven-port beam splitter, achieving high efficiency of 91.39% [17]. Guo et al. also presented a beam splitter of double-groove fused-silica grating with three channels, which demonstrated outstanding beam splitter ability for TE polarization [18]. Wen et al. are the first to examine more than three diffracted orders using the modal technique, achieving a seven-port beam splitter with just the TE mode solved [19].

Terahertz waves refer to electromagnetic waves that have frequencies in the terahertz range from 0.1 to 10 terahertz. The wide bandwidth of terahertz waves enables high-speed data transmission and communication [20,21,22], and they are known for their unique ability to penetrate various materials, which makes them an attractive tool for imaging, sensing, detection and diagnostics applications [23,24,25]. Lin et al. proposed polarization-dependent terahertz reflective beam splitters, which can split the light into dual to seven ports [26]. Huang et al. proposed a single-groove beam splitter model with multiple functions [27]. It can function as four different kinds of splitter devices under terahertz waves, all exhibiting great efficiency under transverse-electric (TE) and transverse-magnetic (TM) polarizations.

In this paper, a double-groove grating model is proposed to design multi-function beam splitters working at the frequency of 2.52 THz. A dual-port, three-port, and four-port beam splitters are presented based on the double-groove grating model, which not only can work under TE polarization like the studies with double-groove structures [17,18,19], but also can function efficiently under TM polarization. Using rigorous coupled-wave algorithm (RCWA) [28, 29] and simulated annealing (SA) algorithm [30], the beam splitters optimized with optimum structural parameters show superior performance and great uniformity. To verify the optimal parameters obtained, finite element method (FEM) is also used to acquire the best results, which show agreement with the ones obtained by RCWA combined with SA.

2 Features of the double-groove grating

Figure 1 displays the three-dimensional structure of the double-groove grating. Under normal incidence, a beam of light under TE or TM polarizations is incident. The structure of the grating mainly consists of three parts, which are the grating ridges, reflective layer and the grating substrate. Grating ridges and substrate are both made of fused silica, whose refractive index is n1 = 1.45 and thickness is represented by h1. The reflective layer is made of silver with a refractive index of nm = 0.144 + 11.366i and thickness hm = 10 μm. The period of the grating is defined as d. Different from the common single-groove symmetric grating, grating ridges of the proposed grating structure are composed of two ridges, with width a and b respectively, in one period. As a result, there are two different duty cycle values defined in this grating, f1 = a/(2d) and f2 = b/(2d), making this grating with a periodic but asymmetric structure. Between the ridges are full of air with refractive index n0 = 1.0. The grating structure is designed for the application at the 2.52 THz, with the wavelength λ = 118.83 μm.

Fig. 1
figure 1

Three-dimensional structure of the double-groove grating under normal incidence

In terms of the proposed grating structure, the grating equation is written as:

$$\begin{array}{*{20}c} {\sin \theta_{m} - \sin \theta_{{{\text{in}}}} = \frac{m\lambda }{d},} \\ \end{array}$$
(1)

where θin is the incidence angle, which is 0 in this case, m signifies the mth diffraction order, θm represents the diffraction angle of mth order. To design reflective splitters with specific diffracted orders, the Eq. (1) can be turned into:

$$\begin{array}{*{20}c} {L\lambda < d < \left( {L + 1} \right)\lambda , } \\ \end{array}$$
(2)

where L = 1, 2, …, n, and the beam splitters can be obtained with maximum 2L ports according to the equation. Therefore, under normal incidence, when period is designed between λ and 2λ, the double-groove grating structure can generate 2 or 3 diffraction orders, and four-port reflective beam splitter can also be designed when the period has a value between 2λ and 3λ.

There are four parameters to deal with base on the double-groove grating to realize reflective beam splitters, which are grating period d, grating depth h1, two duty cycle values f1 and f2. Even if an asymmetric structure as the proposed grating containing two different ridges in one period, the double-groove grating has the periodic characteristics. RCWA is a very effective method to solve the grating diffraction efficiency with the parameters of the grating structure. Hence, original parameters can be acquired using the RCWA.

RCWA is a very effective tool for dealing with electromagnetic field problems of periodic structures, especially diffraction gratings. This method involves expanding the electromagnetic field and the dielectric constant of the material into Fourier series, followed by solving eigenvalue and eigenvector of the matrices to solve Maxwell's equations [28]. By using the eigenvalue method, the solutions to diffraction efficiency of each order are obtained (Ik of the objective functions are solved by RCWA, k = 0, ± 1, ± 2). Subsequently, to use SA algorithm for optimization, objective functions for the beam splitters are required to be set. Based on the specified objective function, the SA algorithm randomly explores the whole solution space for its global optimal solution and finds the best optimization result. The objective functions for dual-port, three-port and four-port beam splitter are written as:

$$\begin{array}{*{20}c} {F_{{{\text{two}}}} = I_{0} ,} \\ \end{array}$$
(3)
$$\begin{array}{*{20}c} {F_{{{\text{three}}}} = \frac{{\mathop \sum \nolimits_{k = - 1}^{1} \left( {I_{k} - I_{v} } \right)^{2} }}{{\mathop \sum \nolimits_{k = - 1}^{1} I_{k} }},} \\ \end{array}$$
(4)
$$\begin{array}{*{20}c} {F_{four} = \left| {I_{0} } \right| + \left| {I_{1} - I_{2} } \right|,} \\ \end{array}$$
(5)

where Ik is the kth-order diffraction efficiency and Iv is the average diffraction efficiency of all the diffraction orders.

As mentioned above, RCWA can quickly calculate the diffraction efficiency of the kth order and along with SA algorithm the optimal parameters are computed. To achieve the polarization-independent feature, the grating needs to be optimized under both TE and TM polarizations. Hence, the ultimate objective function is:

$$\begin{array}{*{20}c} {F = \frac{{F_{{{\text{TE}}}} + F_{{{\text{TM}}}} }}{2}, } \\ \end{array}$$
(6)

when the objective function hits the optimal value, a set of optimal parameters are obtained. Besides showing the performance of the beam splitters by the diffraction efficiency, the uniformity of the beam splitters is also a parameter to measure the beam splitters’ performance, which is defined as:

$$\begin{array}{*{20}c} {U = \frac{{I_{{{\text{max}}}} - I_{{{\text{min}}}} }}{{I_{{{\text{max}}}} + I_{{{\text{min}}}} }}.} \\ \end{array}$$
(7)

For a 2N-port beam splitter, \(I_{{{\text{max}}}}\) and \(I_{{{\text{min}}}}\) are the maximum and minimum diffraction efficiency of every order except the zeroth order, and for a 3-port beam splitter, they are the maximum and minimum diffraction efficiency of every diffraction order.

With the combination of RCWA and SA, three kinds of beam splitters are designed based on the double-groove gratin. There are two even beam splitters: a two-port beam splitter and four-port beam splitter with the feature of zeroth-order inhibition, and a three-port beam splitter. The beam splitters are designed with the conditions that working at a frequency of 2.52 THz, is normally incident by both TE-polarized and TM-polarized beams. The optimal parameters of the beam splitters are shown in Table 1. To simplify the calculation process, the values of f1 and f2 are fixed to 0.3 and 0.7 separately. Duty cycles, representing the widths of the grating ridges, are fixed in this case do not mean the widths of the grating ridges stay invariable. The procedure of determining the width of the grating ridges is being optimized concurrently with the search for the ideal value of the period. As a result, using the previously described method, the structural parameters of the grating have been properly optimized. Besides, based on the parameters obtained by RCWA and SA, the diffraction efficiency of every diffraction order of the designed beam splitters are displayed in Table 2. As the output of the beam splitters shows, the zeroth-order suppression for the dual-port and four-port beam splitters is well obtained with the double-groove structure. The uniformity and overall efficiency are superior and reliable with the output from different channels. To compare with the optimal parameters obtained above, as in Refs. [31, 32], FEM is used to optimize the structure of the grating. FEM is a numerical analysis technique used to solve physical problems in structures, fluid dynamics, heat transfer, electromagnetic fields, and other areas. It converts continuous physical problems into a discrete form by establishing a finite element model. The entire solution domain is divided into numerous small elements, and numerical methods are applied to analyze each individual element. Ultimately, an approximate solution for the entire system is obtained. Tables 3 and 4 display the results obtained by using FEM. Among the results, the dual-port beam splitter has a relatively large offset for the larger tolerance it exhibits. It is obvious that the optimization results obtained from both RCWA with SA and FEM are consistent.

Table 1 Optimal parameters of two-port, three-port, and four-port beam splitters obtained by RCWA and SA
Table 2 Diffraction efficiency and uniformity of two-port, three-port, and four-port beam splitters obtained by RCWA and SA
Table 3 Optimal parameters of two-port, three-port, and four-port beam splitters obtained by FEM, with wavelength λ = 118.83 μm, f1 = 0.3, f2 = 0.7
Table 4 Diffraction efficiency of two-port, three-port, and four-port beam splitters obtained by FEM with the parameters in Table 3

To visualize the reflective effect of the energy when beam is normally incident under both polarizations, the electric field distribution maps of the beam splitters are shown in Figs. 2 and 3. It can be seen from the maps that the energy of the plane waves for both polarizations is basically reflected on the grating ridges and grating grooves when the light hits the grating. With the double-groove structure which is asymmetric, the grating can show descent periodic characteristics. As a result of the reflecting phenomena, nearly no energy is transmitted through the substrate surrounding the reflective layer, which is in line with the outcome of achieving high diffraction efficiency. This further establishes the reflective layer's reasonable design. To maximize the reflection efficiency and eliminate the transmission efficiency, the Ag layer is added, suppressing transmission phenomenon. Taking the four-port beam splitter as an example, the relationship between the thickness of reflective layer and diffraction efficiency is described in Fig. 4. The figure shows that the non-zero order diffraction efficiency steadily grows, while the zeroth-order efficiency remains at a very low efficiency value as the thickness of the reflective layer increases. For the reason of saving manufacturing cost, the thickness can be set at 7 μm. It is worth noting that the design does not work at transmissive state when the Ag reflector is removed.

Fig. 2
figure 2

Electric field distribution maps of the beam splitters for TE polarization under normal incidence with wavelength λ = 118.83 μm: a dual-port, b three-port, c four-port

Fig. 3
figure 3

Electric field distribution maps of the beam splitters for TM polarization under normal incidence with wavelength λ = 118.83 μm: a dual-port, b three-port, c four-port

Fig. 4
figure 4

Relationship between the thickness of the reflective layer hm and diffraction efficiency

3 Investigation and discussion

After the design and optimization processes are complete, beam splitters based on the double-groove grating structure need to be thoroughly analyzed [33, 34]. The symmetry rule predicts that the diffraction efficiency for each non-zero order will be the same on either side of the zeroth order, since the diffracted waves are symmetrically distributed with respect to the normal of the grating surface. Figure 5 illustrates the analytical findings for each beam splitter and the correlation between diffraction efficiency and wavelength. As you can see, diffraction efficiency of the beam splitters can be sufficiently and steadily maintained over a large bandwidth for both TE and TM polarizations, especially for dual-port beam splitter with efficiencies of ± 1st orders exceeding 48% and falling below 5% at the 0th order. Table 5 shows the wavelength tolerance of the beam splitters. It is reasonable to assume that the wavelength tolerance will decrease as the number of output ports increases. Period is a significant parameter since the output ports of the grating are determined by its value when the working frequency is set at 2.52 THz. Figure 6 describes diffraction efficiency versus grating period of the beam splitters under both TE and TM polarizations. Similar to the wavelength, beam splitters with multiple ports are all showing superior and reliable performance on the period, while covering wide tolerance ranges. By comparison, the four-port beam splitter comes with a relatively narrow range as present in Table 5. The grating period tolerance does, however, not significantly affect the diffraction efficiency when employing the method described in Ref. [35] due to the great precision of the fabrication process.

Fig. 5
figure 5

Relationship of the beam splitters between diffraction efficiency and wavelength under TE and TM polarizations: a dual-port under TE polarization, b dual-port under TM polarization, c three-port under TE polarization, d three-port under TM polarization, e four-port under TE polarization, f four-port under TM polarization

Table 5 Comparison of the tolerance for the proposed polarization-dependent terahertz reflective beam splitters and the beam splitters proposed in Ref. [26]
Fig. 6
figure 6

Relationship of the beam splitters between diffraction efficiency and period under TE and TM polarizations: a dual-port under TE polarization, b dual-port under TM polarization, c three-port under TE polarization, d three-port under TM polarization, e four-port under TE polarization, f four-port under TM polarization

One important parameter that affects the diffraction efficiency of a grating is the depth of the grooves. In general, deeper grooves result in higher diffraction efficiency. However, deep grooves can also lead to mechanical instability, fabrication difficulties, and increased sensitivity to environmental factors such as temperature and humidity. Figure 7 displays the influence on the diffraction efficiency made by the grating depth. While other parameters are set with ideal values, the grating depth of the double grooves exhibits great manufacturing tolerance.

Fig. 7
figure 7

Relationship of the beam splitters between grating depth h1 and diffraction efficiency under TE and TM polarizations: a dual-port under TE polarization, b dual-port under TM polarization, c three-port under TE polarization, d three-port under TM polarization, e four-port under TE polarization, f four-port under TM polarization

Table 5 lists the manufacturing tolerance for the performance of the beam splitters with various ports under TE and TM polarizations. Additionally, a comparison between the beam splitters suggested in Ref. [26] and this research is investigated. The data demonstrates that the beam splitters developed in this work achieve higher tolerance. Comparison diffraction efficiency of the proposed beam splitters with 2-port beam splitter suggested in Ref. [36], 4-port beam splitter in Refs. [37, 38] is listed in Table 6. The performance of the beam splitters obtained from the double-groove grating is better than those based on single-groove grating, and the double-groove grating has remarkable universality to create beam splitters with different output ports. The beam splitters based on the same structure in this paper exhibit better efficiency compared with other beam splitters proposed in different researches. It is thought that the grating structure and optimization techniques used in the article can streamline the production process and serve as an example for producing multi-port beam splitters, which would enable beam splitters to perform multiple functions.

Table 6 Comparison of the diffraction efficiency of the beam splitters reported in other researches and this work

The experimental manufacturing process of the multi-port beam splitter proposed in this article can refer to Refs. [39, 40]. As Ref. [39] mentions, the production of high-density gratings can be achieved through holographic interference recording and inductively coupled plasma (ICP) etching technology, which is particularly effective for the manufacturing of fused-silica gratings. They used the RCWA method to optimize a two-port beam splitter and fabricated with the aforementioned techniques. The experimental results obtained were in excellent agreement with the theoretical values. Reference [40] employed RCWA in the optimization of their beam splitter and utilized nanoimprint lithography (NIL) to produce metal wire grating structures on quartz substrates. As anticipated, their grating also achieved good broadband effects. Moreover, relevant experiments on the fabrication of the gratings are demonstrated in Refs. [41, 42], which verified the feasibility of the proposed beam splitters in actual manufacturing.

4 Conclusions

In this paper, a double-groove structure grating is proposed and beam splitters are designed based on it. The investigation of this asymmetric grating structure with double grooves represents a departure from traditional single-groove grating designs. Using RCWA and SA to design and optimize the structure, dual-port, three-port and four-port beam splitters working in terahertz region all present great efficiency and stable uniformity. FEM is also employed to verify the optimal parameters and visualize the phenomenon of the reflection process. In addition to being built to create outstanding beam splitters for TE mode like earlier reported researches, the proposed grating can perform well as a multi-port beam splitter in TM mode. The study of the beam splitters' manufacturing tolerance on a double-groove basis shows excellent results. Overall, a grating that has high tolerance of groove depth is a valuable tool for many applications where stability and reliability are critical. It enables the grating to perform consistently over a wide range of conditions. This research offers promising avenues for further investigation.