1 Introduction

Nowadays, optical sensors as high-tech and well-known tools have numerous applications in various fields such as chemistry, medicine, biology, health, safety and laboratory, which requires a very compact, accurate, reliable and albeit cost-effective optical device [1, 2]. Due to the high accuracy and high sensitivity of recognition and detection of chemical products, optical gas sensors have been considered by researchers in the field of chemistry [3]. The presence of toxic and dangerous gases in an environment that endangers human health and even leads to human death, more and more reveals the requirement for the highly sensitive optical sensor for sensing toxic gases [3]. Methane gas is a highly flammable gas which has potential to be combined with other chemicals at very low levels of about 5% and has the risk of explosion [4]. Typically, when methane gas is combined with hydrogen sulfide, it smells unpleasant that might represent a dangerous alarm for a painful explosion. Methane gas, however, itself is not toxic, but when combined with some substances, it has a high potential for toxicity [4]. Methane gas, on the other hand, is one of the most valuable fossil fuels that is naturally extracted from the ground, thus optical methane gas sensor can be identified as a capable explorer to discover methane gas resources that are worth exploiting.

Nowadays, different photonic structures are considered by many optical sensor manufacturers including ridge waveguides, PhC cavities, Mach–Zehnder interferometers, surface plasmon resonators, microring resonators, and fiber Bragg gratings [5,6,7,8,9]. The structure and dielectric elemental parts of these photonic circuits should be capable of fully transmitting light to achieve passive functions such as emission, detection, amplification, and switching [10]. It is clear that only one class of materials cannot fully meet these requirements simultaneously, but it can be assured that silicon photonics, as a key technology, produces ultra-compact photonic integrated circuits (PICs) [10]. The transparency of the SOI waveguides in the telecommunication windows and the high refractive index contrast between silicon and silica in these structures have made it possible to fabricate ultra-compact photonic wires with very low light losses (\(\sim 2\,\hbox {dB/cm}\)), which provide requirements of many highly sensitive optical sensors [10].

The SOI waveguides are popular photonic wires due to the creation of a light transmission mechanism in a low-refractive-index material (which is requisite of the biochemical liquid and gas sensing) and compatibility with ultra-compact CMOS-manufacturing technology and subsequently have found applications in different fields such as optical sensor, optical polarizer, optical mode converter, mode filtering, and PICs [1, 11,12,13,14]. The integrated structures of optical waveguides such as SOI with high-refractive-index contrast, as a robust PIC optical sensor, in addition to supporting sensing modes with very low losses, enable coupling these modes effectively with other optical modes and facilitate sensory operations to a much higher degree of sensitivity [15, 16].

The particular advantage of the SOI slotted photonic wires is the amplification and strong confinement of the electric field in the slot region (low-refractive-index material) which is created in the core (high-refractive-index region) [17]. Such optical structures that are introduced in the references [18] and [19] have found outstanding applications in the field of optical sensors, electro-optic modulators and lasers due to their capability of confining the electric field and trapping the desired optical mode in the slot region [20].

The PhC microcavities with high-quality (Q) factor are able to filter undesired optical modes by means of the photonic band gap (PBG) and to intensify/confine certain optical modes in a cavity with very small effective modal volume (\({V}_{\mathrm{eff}}\)). Thus, the photons lifetime in the cavity can be increased to provide low-threshold nanolasers. They could have a very high Q/V ratio and play a significant role in the cavity quantum electrodynamics studies, minimization of nonlinear optical processing for classical and quantum optical applications and development of the nano-photonic devices, especially optical sensors [21,22,23,24]. By increasing the interaction of the electric field of light with the sensing material, these structures are suitable for designing highly sensitive refractive index optical sensors, that deliver sensor operation in a wide range of frequencies by generating the broad bandgap [25, 26].

In this paper, we propose different designs for sensors with high sensitivity based on SOI photonic wires, including slotted strip waveguides, slot-cylinders including a couple of para-axial cylindrical hollows, and arrays of semi-elliptical-shape holes in the slotted 1D PhC system.

2 Photonic structures toward sensing

Among sensing approaches, a couple of approaches are used in this article: a) sensing by slotted SOI photonic wires and b) sensing by slotted SOI PhC cavity.

Sensing by slotted SOI photonic wires The basis of sensing in photonic wires is the interaction of the electric field of the guided mode of waveguide with the targeted sensing material, and consequently, the variations of the different optical parameters such as the effective refractive index (\({n}_{\mathrm{eff}}\)) for the materials with different densities and concentrations [3]. Normally, the amount of the interaction of optical guided mode with the sensing material is measured by the amount of the evanescent electrical field confinement around the waveguide core (confinement factor) and the evanescent field ratio (EFR) of the power in the cover medium to the total power of the guided mode [4, 27]. Homogenous sensing is a great sensing mechanism for detecting changes in the concentration of gas analytes and chemical solutions surrounding the optical waveguide. This mechanism determines the sensitivity of the photonic wires to these analytes through changing the refractive index of the chemical analyte (that is dependent on its concentration), which results in variations in the effective refractive index of the waveguide [3]. One of the finest optical structures for sensing chemical gases is slotted SOI photonic wire. These structures significantly reduce the optical losses that slow down the sensing process, by very high confinement of the electromagnetic field in the slot region of waveguide, in addition to providing a suitable region for the proper interaction of light–matter [28].

The preferred sensitivity measurement mechanism for the slotted photonic structures \(({S}_{\mathrm{h}})\) presented in this paper is homogenous sensing, and characterization of the quantity of the interaction of light with the target gas defines by the confinement factor in the cover medium \((\Gamma _{\mathrm {C}})\) and in the slot region \((\Gamma _{\mathrm {S}})\) illustrated in the form of Eqs. (1)–(3) [3]:

$$\begin{aligned} S_\mathrm{h}=\frac{\partial n_\mathrm{eff}}{\partial n_\mathrm{c}}=\frac{2n_{\mathrm {c}}^{0}}{Z_{0} {\mathbf {P}}}\iint _{{\text {medium}}} {{\vert {\mathbf {E}}(x,y)\vert }^{2}\mathrm{d}x\mathrm{d}y}=\frac{2n_{\mathrm {c}}^{0}\Gamma _{\mathrm {c}}}{Z_{0} {\mathbf {P}}}\iint _{{\text {total}}} {{\vert {\mathbf {E}}(x,y)\vert }^{2}\mathrm{d}x\mathrm{d}y} \end{aligned}$$
(1)

where

$$\begin{aligned} P= & {} \iint _{{\text {total}}} {\left[ \left( {\mathbf {E}}\times {\mathbf {H}}^{{{*}}}+{\mathbf {E}}^{{{*}}}\times {\mathbf {H}} \right) .\hat{z} \right] \mathrm{d}x\mathrm{d}y} \end{aligned}$$
(2)
$$ \begin{aligned} \Gamma _\mathrm{c}= & {} \frac{\iint _{{\text {medium}}} {{\vert {\mathbf {E}}(x,y)\vert }^{2}\mathrm{d}x\mathrm{d}y}}{\iint _{{\text {total}}} {{\vert {\mathbf {E}}(x,y)\vert }^{2}\mathrm{d}x\mathrm{d}y}}\quad \& \quad \Gamma _{s}=\frac{\iint _s {{\vert {\mathbf {E}}(x,y)\vert }^{2}\mathrm{d}x\mathrm{d}y}}{\iint _{{\text {total}}} {{\vert {\mathbf {E}}(x,y)\vert }^{2}\mathrm{d}x\mathrm{d}y}} \end{aligned}$$
(3)

In the above relations, \(n_{\mathrm {c}}^{0}\) is the unperturbed refractive index value for the cover medium, Z is the free space impedance, E and H, are the electric and magnetic field vectors, respectively. The quantity P is the Poynting vector component along \(\hat{z}\) which represents the direction of the guided mode propagation in the photonic structure. According to Eq. (1) based on the homogenous sensing mechanism, we can see that the increase in the sensitivity of the slotted photonic wire \(S_\mathrm{h}\) to the gas analyte requires an increase in the interaction of light with gas, which results in a decrease in the energy flow per unit area in the time unit of the waveguide P and thus increases of the \({n}_{\mathrm {eff}}\) compared to \(n_{\mathrm {c}}^{0}\)

Sensing by slotted SOI PhC cavity A PhC cavity mode with high Q factor and small modal volume can play a significant role in increasing the light–matter interactions and can provide the basis for making ultrasensitive sensors [8]. Therefore, by utilizing this photonic structure, we propose a slotted PhC microcavity based on SOI which is capable of detecting smallest methane surface levels, in addition to sensing gas flow through the structure with very high sensitivity. This structure has also led us to the development of sensing operations in a wide range of wavelengths by creating a very wide photonic bandgap.

The mechanism of the proposed sensor is similar to the slotted SOI photonic wire-based sensor in the homogenous sensing, but the method of measuring optical interaction with the target gas is determined by calculating shift of the cavity mode wavelength \(\varDelta \lambda _\mathrm{res}\). Different deviation of wavelengths, \(\varDelta \lambda _\mathrm{res}\), related to different levels of methane gas concentrations in the simulations has made it possible to perform detecting and sensing with very high sensitivities by using Eq. (4) [3]:

$$\begin{aligned} S_\mathrm{h}=\frac{\partial \lambda _\mathrm{res}}{\partial n_\mathrm{c}}=\frac{\Delta \lambda _\mathrm{res}n_\mathrm{g}}{\lambda _\mathrm{res}\Delta n_\mathrm{c}} \end{aligned}$$
(4)

where

$$\begin{aligned} n_\mathrm{g}=n_\mathrm{eff}\left( \lambda _\mathrm{res} \right) -\lambda _\mathrm{res}\frac{\partial n_\mathrm{eff}}{\partial \lambda _\mathrm{res}} \end{aligned}$$
(5)

where \(n_\mathrm{g}\) is the group refractive index, \(\lambda _\mathrm{res}\) is the resonant wavelength of the cavity mode, and \(\varDelta n_\mathrm{c}\) is the change in the refractive index of the gas analyte, that means the cover medium.

3 Sensor models based on soi photonic wires

3.1 SOI slotted strip waveguide

From the spectroscopic point of view, the transitions energy spectra for chemical gasses such as \(\hbox {CH}_{\mathrm {4}}, \hbox {H}_{\mathrm {2}}\hbox {O}, \hbox {CO}_{\mathrm {2}}, \hbox {CO}, \hbox {NO}_{\mathrm {2}}, \hbox {NO}\), and \(\hbox {N}_{\mathrm {2}}\hbox {O}\) are within the spectral range of vibrational, and rotational energy levels in the mid-IR (\(>2.5\,\upmu \hbox {m}\)), and they have the absorption and consequently a strong optical interaction in this region [4]. Due to the absorption spectrum peak of methane at the wavelength \(3.39\,\upmu \hbox {m}\), we utilized all of our gas sensor simulations with He–Ne laser (\(\lambda =3.392\,\upmu \hbox {m}\)) as the source for optical excitation to provide effective light–matter interactions. The basis of the entire optical gas sensor structures in our simulations presented in this paper is the slotted strip waveguide SOI with a silicon substrate and methane gas cover medium; a typical schematic of such structure consists of a silicon core with width W-Slab and height H, which slotted/separated by means of width W-Slot as shown in Fig. 1a.

In fact, this optical structure is used primarily to tune the geometrical parameters for sensing. Thus, the optimized parameters are utilized for the next parts including a couple of para-axial cylindrical hollows (PACHs) (shown in Fig. 1b) and arrays of semi-elliptical-shape holes (ASESH) in the slotted PhC systems (with unit cell depicted in Fig. 1c).

Fig. 1
figure 1

Schematic of the optical gas sensor based on SOI a slotted strip waveguide, with \(\hbox {CH}_{{4}}\) as a cover medium, b strip waveguide with Slot-cylinders including (PACHs). c Partial unit cell in the structure including arrays of semi-elliptical-shaped holes (ASESH) in the slotted 1D PhC system

3.2 SOI slot-cylinders and slot-elliptical-holes strip WGs

The dimensions and geometry of the optical waveguide cores play a significant role in determining the optical parameters such as optical field profiles, frequency cutoff, numerical aperture, and optical polarization [29, 30]. Therefore, by using two-dimensional (2D) and three-dimensional (3D) FEM simulations and optimizing the dimensions of the silicon core of this photonic wire in order to maximize the confinement factor in the slot and cover medium, this optical structure has been optimized for a gas sensor, as the schematics are shown in Fig. 1b, c. As can be seen in Fig. 1b, a couple of para-axial hollows with circular cross sections (radii r) are considered in the core of slotted waveguide that can increase the sensitivity of structure containing methane gas. Also, in another proposed structure, as can be seen in the unit cell of Fig. 1c, semi-elliptical-shaped holes (SESH) are made symmetrically on both sides of the slot with dimensions depicted in the figure. The unit cell has been extended as an array throughout the axis of the slotted PhC waveguide structure.

The refractive index \(({n}_{\mathrm {c}})\) and the absorption of methane gas (\(\alpha \)) at wavelength \(3.392\,\upmu \hbox {m}\) are 1.00044 and \(8.2\times 10^{{-5}}\, \hbox {Pa}^{{-1}}\hbox {cm}^{{-1}}\) (\(8.3\,\hbox {atm}^{{-1}}\hbox {cm}^{{-1}}\)), respectively. The refractive indices of silicon core \(({n}_{\mathrm {Si}})\) and the silica substrate \(({n}_{\mathrm {SiO2}})\) at wavelength 3.392 \(\upmu \hbox {m}\) are 3.430 and 1.411, respectively. We used the quasi-TE polarization to provide more effective interaction between light and matter in the structure of gas sensors as it delivers stronger evanescent electric field at the lateral boundaries of the silicon core, while quasi-TM polarization does this at the lower boundary of the waveguide, so penetrates more into the substrate, and reduces the interactions.

4 Modeling the gas sensor based on photonic wires

4.1 Sensing by SOI slotted strip waveguide

In the first step, by using 2D and 3D FEM simulations, for the preparation of a SOI structure gas sensor which is basis for the other gas sensors proposed in this paper, the core dimensions, slot width, and waveguide length are optimized in order to maximize the confinement factors in the slot and cover medium), and consequently maximize the sensitivity of the structure for methane gas. The results of these optimizations, as shown in Figs. 2 and 3, led to \({W}\_\hbox {slab}=824\,\hbox {nm}\) and \({H}=536\,\hbox {nm}\) for silicon core, and width of slot \({W}\_\hbox {slot}=100\,\hbox {nm}\), and \({L}=3.5\,\upmu \hbox {m}\) for the length of the wire.

Fig. 2
figure 2

Characteristics values of the confinement factor and the sensitivity of gas sensor SOI slotted photonic wire structures. a For different widths of silicon core, \({W}\_\hbox {slab}\) (with a constant \({W}\_\hbox {slot} = 100\,\hbox {nm}\) and \({H}=600\,\hbox {nm}\)); and b for different heights of silicon core, H (with constant \({W}\_\hbox {slab} = 824\,\hbox {nm}\) and \({W}\_\hbox {slot} = 100\,\hbox {nm}\))

Fig. 3
figure 3

Characteristics values of the confinement factor and the sensitivity of gas sensor SOI slotted photonic wire structures. a For the various widths of the slot, \({W}\_ \hbox {slot}\) (with a constant \({W}\_\hbox {slab} = 824\,\hbox {nm}\) and \({H} = 536\,\hbox {nm}\)); and b for different lengths of photonic wires, L (with constant \({W}\_\hbox {slab} = 824\,\hbox {nm}\), \({H}= 536\,\hbox {nm}\) and \({W}\_\hbox {slot} = 100\,\hbox {nm}\))

An example of the field distributions of quasi-TE polarization in the slotted photonic wire structures with optimal dimensions \({W}\_\hbox {slab} = 824\,\hbox {nm}\) and \({H}= 536\,\hbox {nm}\) for the silicon core, \({W}\_\hbox {slot} = 100\,\hbox {nm}\), and the length of photonic wires \({L}= 3.5\,\upmu \hbox {m}\), which results in a maximum sensitivity of \({S}\sim 1.72\), is shown in Fig. 4.

Fig. 4
figure 4

The normalized quasi-TE polarization field variation and distribution: a variation across waveguide x coordinate, b and c 2D and 3D view of field distribution in xy cross section, respectively, and d the 3D structure of the slotted photonic wire gas sensor with the geometrical parameters: \({W}\_\hbox {slab} = 824\,\hbox {nm}\), \({H}=\,536\hbox {nm}\), \({W}\_\hbox {Slot}= 100\,\hbox {nm}\) and \({L}= 3.5\, \upmu \hbox {m}\)

As is evident in the figure, the concentration of the TE field in the slot region is maximized and significant evanescent fields are observed in the waveguide sides.

4.2 Sensing by SOI slot-cylinders strip waveguide

To further enhance the sensitivity of the optimized photonic wire to methane, we included a couple of PACHs which are para-axial cylindrical hollows with a circular cross section containing methane gas, shown in Fig. 1b. The results of the optimization of the hollows radii, r, in order to maximize the confinement factors in the slot and cover medium region and the sensitivity of slot-cylinders strip waveguide structure, are shown in Fig. 5d. The maximum sensitivity value of \({S}\sim 2.50\) is achieved for radii \({r} = 195\,\hbox {nm}\); the related normalized quasi-TE polarization field variation and distribution in the optimized structure are shown in Fig. 5a–c. The improvement in the sensitivity is attributed to the presence of mixed slot and cylindrical hollows that makes larger effective refractive index variation in the structure.

Fig. 5
figure 5

a The normalized quasi-TE polarization field variation and distribution: a variation across waveguide x coordinate, b and c 2D and 3D view of field distribution in xy cross section, respectively, related to the slot-cylinders strip waveguide gas sensor with the geometrical parameters: \({W}\_\hbox {slab} = 824\,\hbox {nm}\), \({H}=536\,\hbox {nm}\), \({W}\_\hbox {Slot} = 100\,\hbox {nm}\), and \({r}=195\,\hbox {nm}\). d Confinement factor and sensitivity of the structure for the above dimensions and various radii r of the cylinders

4.3 Sensing by SOI ASESH strip waveguide

Another structure that is simulated toward a gas sensing purpose is based on ASESH that is consist of arrays of semi-elliptical-shape holes in the slotted PhC system that the partial unit cell is shown in Fig. 1c. The results of these optimizations in 2D and 3D FEM simulations for different radii \({r}_{{1}}\) and \({r}_{{2}}\) (introduced in Fig. 1c), and different distance of ellipsoid long axis to the horizontal reference line (\({y}=0\)), d, which are shown in Figs. 6 and 7, indicate that the optimized values are \({r}_{{1}}=790\,\hbox {nm}\), \({L}= 400\,\hbox {nm}\) (\({r}_{{2}}= 200\,\hbox {nm}\)) and \({d} = -150\,\hbox {nm}\). The sensitivity value is \({S}\sim 2.97\) which is the best provided in this article so far. Therefore, we chose this structure as the unit cell in designing a Bragg mirror of 1D PhC microcavity that will be presented in the next section.

Fig. 6
figure 6

Graphs of a confinement factor and b sensitivity of gas sensor SOI ASESH strip waveguide, for the various \({r}_{{1}}\) (with a constant \({r}_{{2}}= 100\,\hbox {nm}\) and \({d}= 0\,\hbox {nm}\)), and for the various \({r}_{{2}}\) (with constant \({r}_{{1}}= 790\,\hbox {nm}\) and \({d}=0\,\hbox {nm}\)). (\({W}\_\hbox {slab} = 824\,\hbox {nm}, {H} = 536\,\hbox {nm}\) and \({W}\_\hbox {slot} = 100\,\hbox {nm}\))

Fig. 7
figure 7

Graphs of the confinement factor and the sensitivity of gas sensor SOI ASESH strip waveguide, a and c for the different distance of ellipsoid long axis to the horizontal reference line (\({y}= 0\)), d, (with a constant \({r}_{{1}}= 790\,\hbox {nm}\) and \({r}_{{2}}= 80\,\hbox {nm}\)); and b and d for different lengths of the structure, L (with constant \({r}_{{1}} = 790\,\hbox {nm}\) and \({d}= -150\,\hbox {nm}\)). (\({W}\_\hbox {slab} = 824\,\hbox {nm}, {H} = 536\,\hbox {nm}\) and \({W}\_\hbox {Slot} = 100\,\hbox {nm}\))

The distribution of a quasi-TE field in an SOI ASESH strip waveguide sensor structure with optimal dimensions \({r}_{{1}}= 790\,\hbox {nm}, {L} = 4\,\upmu \hbox {m}\) (\({r}_{{2}}= 200\,\hbox {nm}\)) and \({d}= -150\,\hbox {nm}\), shown in Fig. 8, confirms the unique ability of this structure to confine optical field in the waveguide slot region.

Fig. 8
figure 8

The normalized quasi-TE polarization field variation and distribution: a variation across waveguide x coordinate, b and c 2D and 3D view of field distribution in xy cross section, respectively, and d the 3D structure of the SOI ASESH strip waveguide, for optimal dimensions \({r}_{{1}}= 790\,\hbox {nm}, {L} = 4\upmu \hbox {m}\) (\({r}_{{2}}=200\,\hbox {nm}\)), and \({d}= -150\,\hbox {nm}\). (\({W}\_\hbox {slab} = 824\,\hbox {nm}\), \({H}=536\hbox {nm}\) and \({W}\_\hbox {Slot} = 100\,\hbox {nm}\))

The SOI-based ASESH in the slotted PhC system proposed in this paper, facilitates the sensing operation for methane gas flux sensing with high sensitivity by preventing the excessive penetration of modes beyond neighboring regions of waveguide (which are found in sensors based on conventional strip and rib waveguides) and concentrating it in the region of the slotted PhC structure, in addition to reducing optical losses in the waveguide.

5 Modeling gas sensor based on PhC microcavity

5.1 PhC microcavity design

The unique ability of PhC cavities to confine and intensify optical modes with a high Q factor and a small modal volume provides motivations for designing a slotted PhC microcavity-based structure for methane gas sensing. For this purpose, the structure ASESH discussed in the previous section was used as Bragg mirrors. The schematic of such optimized Bragg mirror design consisting 11 pairs of semi-elliptical-shaped holes (with \({r}_{{1}} = 790\,\hbox {nm}\) and \({r}_{{2}}= 200\,\hbox {nm}\)) with a period constant of \({a} = 704.225\,\hbox {nm}\) in the silicon core including slot along the z (with optimal dimensions \({W}\_\hbox {slab} = 824\hbox {nm}\) and \({W}\_\hbox {Slot} =100\hbox {nm}\)) is shown in the upper-left corner in Fig. 9. The designed PhC Bragg mirrors that sandwich the cavity, offer a very large bandgap (about \(1.9\,\upmu \hbox {m}\)) around the center wavelength of \(3.39\,\upmu \hbox {m}\), as shown in Fig. 10a that causes sensor functionality in a wide range of wavelengths.

The microcavity is defined as a Fabry–Pérot cavity with a length of a lambda, as the schematic is shown in Fig. 9, consisting of two ASESH type Bragg mirrors modeled in the z-direction. The results of our 2D FEM simulation (Fig. 10b) show that for the cavity with a length \(3.392\,\upmu \hbox {m}\) (\(\lambda \) cavity) fundamental TE mode has a high-enough Q factor of 110 and a small effective volume of \({V}\_\hbox {eff} = 1.8\,(\upmu \hbox {m})^{{3}}\), that is capable of detecting very small levels of methane gas with an extremely high sensitivity of \({S}\sim 27.45\), which has improved more than nine times better than normal ASESH sensor structure.

Fig. 9
figure 9

Schematic of ASESH as Bragg mirror (top-left corner), and 1D PhC Fabry-Pérot microcavity design, with cavity length D

Fig. 10
figure 10

Reflectivity and transmission spectra in the proposed 1D PhC structures a for the Bragg mirrors, b microcavity design in the wavelength range 2.1–4.9 \(\upmu \hbox {m}\); c the average energy density of the mode; d and e the electric field mode map and distribution

To tune the ASESH system as Bragg mirror and the \(\lambda \)-Cavity in our 1D PhC structure for the resonance wavelength \(\lambda \_\hbox {res} = 3.392\upmu \hbox {m}\) with a high Q factor and a small effective modal volume \({V}\_\hbox {eff}\), the following equations were used:

$$ \begin{aligned} 2r_{2}=\frac{\lambda _\mathrm{res}}{4n_\mathrm{air}}\quad \& \quad a=\frac{\lambda _\mathrm{res}}{4n_{Si}}\quad \& \quad D=\frac{\mathrm {m}{\lambda }_{\mathrm {res}}}{2n_{Si}} \end{aligned}$$
(6)

where

$$ \begin{aligned} Q=\frac{\lambda _\mathrm{res}}{\Delta \lambda _{FWHM}}\quad \& \quad V_\mathrm{eff}=\frac{\left( \int _V {\varepsilon (\vec {r}){\vert \vec {E}(\vec {r})\vert }^{2}d^{3}\vec {r}}\right) }{{\mathrm {max}}(\varepsilon (\vec {r}){\vert \vec {E}(\vec {r})\vert }^{2})} \end{aligned}$$
(7)

The optimized radius \({r}_{{2}}\) that is introduced in Fig. 1c is \({r}_{{2}}= 200\,\hbox {nm}\)), \({n}_{\mathrm {air}}\) is the refractive index of the air, \({n}_{\mathrm {Si}}\) is the silicon core refractive index (\({n}_{\mathrm {Si}}= 3.43\)), m is an integer (\({m}=2\)), \(\Delta \lambda _{\mathrm {FWHM}}\) is the cavity mode’s width, \(\varepsilon \) (r), the dielectric constant of the silicon core and E (r) is the electric field of the cavity mode. Our calculations and optimizations of the transmission and reflection spectra by the 2D FEM method, for a cavity length of \({D}= 0.988\,\upmu \hbox {m}\) and 11 pairs in the Bragg mirrors with a periodic constant of \({a}=704.225\,\hbox {nm}\) for the fundamental mode with a wavelength of \(3.392\,\upmu \hbox {m}\) in the structure, are illustrated in Fig. 10c–e, assure very high capability of microcavity provided for the sensing wavelength of 3.392 \(\upmu \hbox {m}\) (methane gas absorption peak).

5.2 Sensing by 1D PhC microcavity

Based on the structure introduced in the previous section, with the tuned cavity wavelength of \(\lambda _{\mathrm {res}}= 3.392\,\upmu \hbox {m}\), we examined the proposed structure for detecting and sensing methane gas with different gas analyte densities. Due to the optical cavity mode with gas material interactions, the mode’s wavelength shifts with different amount depends on the different gas densities. To illustrate the sensitivity of this structure to the various methane gas densities, we consider proximate regions as a gas chamber with a length of \(D\approx \) 0.988 \(\upmu \hbox {m}\) (\(\approx \) equal to the cavity length) and thickness of g which make a gas chamber region, as the schematic is shown in Fig. 11. By calculating the cavity wavelength mode shift \((\Delta \lambda _{\mathrm {res}})\) and the optical field confinement factor in the gas chamber region in terms of different g thickness for gas flow region (with \({W}\_\hbox {Slot}\) and length D as constants and parameter “g” as a variable), we attained the sensitivity of the microcavity structure and all the relevant results are depicted in Fig. 12a, b and their insets. A significant shift of the resonant wavelength of the microcavity mode \(\Delta \lambda _{\mathrm {res}}= 12.23\,\hbox {nm}\) at a resonant wavelength \(\lambda _{\mathrm {res}}= 3.392\,\upmu \hbox {m}\) due to the strong interaction of the optical field of the microcavity structure with a very small methane gas level of \(0.36062\,\upmu \hbox {m}^{{2}}\) (for \({g}= 365\,\hbox {nm}\)), depicted in the inset of Fig. 12b, shows the ability of this 1D PhC microcavity design to detect and sense even the smallest gas densities, with a high amount of sensitivity \({S}\sim 27.45\).

Fig. 11
figure 11

Schematic of the gas chamber with a length of \(D\approx 0.988\,\upmu \hbox {m}\) (\(\approx \) equal to the cavity length) \({W}\_\hbox {Slot} = 100\,\hbox {nm}\) and thickness of g in the 1D PhC microcavity sensor

Fig. 12
figure 12

a The reflection spectra of the microcavity sensor; inset: corresponding shift of the resonant wavelength; b the optical field confinement factor in the gas chamber region and sensitivity of the designed sensor structure for different levels of methane gas; inset: The interactions of the TE mode with methane gas in the region with cross-sectional area \(0.36062\,\upmu \hbox {m}^{{2}}\) (for a width \({g} = 365\,\hbox {nm}\))

Finally, to examine the performance of the structure for sensing in terms of the concentration of methane gas, we exposed the system to the flow of surrounded gas especially around the slotted cavity, as depicted in the inset of Fig. 13. The shift in the cavity resonance wavelength of the mode as a function of increased methane gas concentration in simulation is calculated via linear fit to the data. The result for the sensitivity was \({S}= \Delta \lambda _{\mathrm {res}}/\Delta {C} = 2.47\,\hbox {nm}/\%\) which corresponds to \({S} = \Delta \lambda _{\mathrm {res}}/\Delta {n}\approx 404\,\hbox {nm/RIU}\)

Fig. 13
figure 13

The resonance wavelength shift of the cavity mode as a function of increased methane gas concentration; inset: schematic of the structure showing gas flow region

Since the molecules containing the C–H bond have an intense absorption and interaction in the spectral region 3.0–3.7 \(\upmu \hbox {m}\), and the sensor wavelengths of all the gas sensor structures presented in this paper are around \(\lambda \approx 3.392\,\upmu \hbox {m}\) is the methane gas absorption peak, the proposed gas sensors here can be generalized to other analytes that have the CH bond.

6 Conclusions

In this paper, through 2D and 3D FEM simulations, we presented three highly sensitive sensors based on SOI photonic wires, including slotted strip waveguides, slot-cylinders including (PACHs), and arrays of semi-elliptical-shaped holes (ASESH) in the slotted 1D PhC system. These structures are characterized by operating He-Ne laser (\(\lambda = 3.392\,\upmu \hbox {m}\)) as the source for optical excitation (at methane gas absorption spectrum peak). By means of strong confinement control of the quasi-TE modes in the slot region of waveguides in addition to reducing optical losses in the slotted waveguides, very high sensitivity obtained for the three structures \({S}\approx 1.72, 2.50, 2.97\), respectively, enables detecting methane gas in the environment in addition to sensing the gas flux from the hole/slot regions. Subsequently, we simulate a 1D PhC microcavity sensor structure based on ASESH as mirrors to enhanced TE mode and increase the interaction of the optical field with the target gas. The structure can achieve the ability to sense the smallest methane gas level, \(0.36062\,\upmu \hbox {m}^{\mathrm {2}}\) with high sensitivity, \({S}= 27.45\), that is nearly one order of magnitude improvement in comparison with the normal ASESH sensor structure. Besides, through Bragg mirrors of such simulated microcavity structures, the ultra-wide bandgap (\(1.9\,\upmu \hbox {m}\)) can be created to facilitate a system for spreading out the sensing in a wide range of wavelengths. Moreover, since the transitions energy spectra for chemical gasses, such as \(\hbox {CH}_{\mathrm {4}}\), \(\hbox {H}_{\mathrm {2}}\hbox {O}\), \(\hbox {CO}_{\mathrm {2}}, \hbox {CO}, \hbox {NO}_{\mathrm {2}}, \hbox {NO}\), and \(\hbox {N}_{\mathrm {2}}\hbox {O}\) are within the spectral range of vibrational and rotational energy levels in the mid-IR (\(>2.5\,\upmu \hbox {m}\)), and also molecules containing the C–H bond have an intense absorption and accordingly a strong optical interaction in the spectral region 3.0–3.7 \(\upmu \hbox {m}\), all the designed gas sensors in this paper can be generalized to analytes for sensing these gases.