1 Introduction

Over the past two decades silicon photonics technology has established silicon as an ideal substrate platform for photonic integration. Although most silicon-based photonic devices have been realized in the near-infrared (near-IR) telecommunication bands, the mid-infrared band (mid-IR), i.e. wavelength range between 2 and 20 \(\upmu\)m, presents a significant growth opportunity for the realization of the mid-infrared devices (Dong et al. 2017; Hu et al. 2017; Lin et al. 2017). In fact, due to the molecular fingerprints of many chemical and biological species in their gaseous or liquid forms covered by the mid-IR wavelength range, such mid-IR band is an ideal wavelength range for the realization of the absorption-based photonic sensors (Dong et al. 2018; Chang et al. 2020). Further, such a range of the wavelength enables label-free and damage-free sensing mid-IR sensing and can utilize both changes in the real part and imaginary part of the refractive index to allow tertiary mixture sensing (Chen et al. 2014). Simultaneously, in the last few years, there has been a growing interest in photonic crystal (PhC) nanocavities due to their unique property of strong electromagnetic field confinement, small mode volume, long photon lifetime and low extinction loss. Accordingly, for sensing applications, an enhanced interaction effect gives rise to an optical mode of the PhC cavity with a resonant wavelength that is highly sensitive to the local variations in its surrounding medium. Therefore, during the last few decades, various photonic sensors composed of PhC nanocavities have been widely used in sensing applications including gases (Sünner et al. 2008; Qian et al. 2016; Zhang et al. 2015; Ge et al. 2018), solutions (Dorfner et al. 2008; Liu and Salemink 2012), bio-molecules and chemical (Kang et al. 2010; Kassa-Baghdouche 2019), electric fields (Zhao et al. 2017; Rajasekar and Robinson 2018) and nano-pressure and temperature (Rajasekar and Robinson 2019; Siraji and Zhao 2015). In addition, the effective sensing area of the PhC cavities is of the order of a micrometer or less across, which enables the integration of highly dense photonic crystal sensor arrays to realize multiplexed sensing applications (Zhou et al. 2016).

On the other hand, gas concentration measurement has always played an important role in many industrial, biomedical and environmental applications (Clerbaux et al. 2003). In order to measure and implement high-precision of low concentration gas with fast analysis time and reduced reagent consumption, there has been a growing interest in developing highly-sensitive and miniaturized optical gas sensors (Englert et al. 2014). Among them, PhC nanocavities and PhC waveguides have been designed and analyzed for the measurement of gas concentration with different refractive indices or relative gas pressures (Sünner et al. 2008; Jágerská et al. 2010; Lai et al. 2011; Zhang et al. 2013, 2015; Li et al. 2014; Qian et al. 2016; Kassa-Baghdouche and Cassan 2018; Kraeh et al. 2018; Wang et al. 2019; Vakili and Noori 2019; Maza et al. 2019). Sünner et al. (2008) studied the response of a PhC cavity to changes in the ambient refractive index. The designed heterostructure PhC cavity was formed by modulating the radii of the first row of air holes adjacent to the waveguide, which resulted in a sensitivity of 80 nm/RIU and a quality factor (Q) of 380,000. Such PhC cavities could be used to successfully identify vacuum, nitrogen, and \(SF_{6}\). Besides, when the refractive index changed by \(10^{-4}\), this led to a shift of the resonance by 8 pm when the pressure for \(SF_{6}\) atmosphere was changed in steps of \(0.5\times 10^{4}\) Pa. Jágerská et al. (2010) improved the measurement sensitivity of measuring the refractive index of gases by introducing an air-slot in the heterostructure PhC cavities. The air-slot PhC cavity was based on a W1 waveguide with an air-slot embedded in the line-defect region. In the design, the PhC lattice was kept unchanged, but the width of the air slot was locally reduced by 20 nm to delimit the volume of the cavity. For the measurements of helium, nitrogen, and carbon dioxide, the authors have demonstrated an experimental sensitivity up to 510 nm/RIU with a detection limit higher than \(10^{-5}\) RIU. Moreover, Lai et al. (2011) demonstrated that slow light coupled with a high electric field intensity in a low-index wide slot in a silicon PhC slot waveguide device could be used to enhance the optical absorption path length. A methane concentration of 100 ppm (parts per million) in nitrogen was measured in their work. In another study, Zhang et al. (2013) proposed a high-sensitivity multi-component gas sensing system, in which the slotted PhC waveguide (SPCW) was used as the gas cell. In order to detect different kinds of gases selectively using the system, the working wavelength of the SPCW was tuned to match with one absorption line of the gas that was being measured. In this work, a very high group index of 150 with a flat bandwidth was achieved and the electric field enhancement factor reached 12 which resulted in a minimum detection limit of 1.56 ppm. Li et al. (2014) proposed and experimentally demonstrated a series of Ln slot PhC cavities, which were operated as gas sensors. An L9 slot PhC cavity with a quality factor exceeding 30,000, sensitivity of 421 nm/RIU and a detection limit down to \(10^{-5}\) RIU was experimentally demonstrated. The simple structure and high fabrication tolerance of the proposed Ln PhC cavities extended its application in measuring different gases, such as nitrogen (N\(_{2}\)), helium (He), carbon dioxide (CO\(_{2}\)) and air. Zhang et al. (2015) proposed a gas concentration sensor with cryptophane E infiltrated PhC cavities. By increasing the radii of the defected holes, the proposed cavity was observed to give an RI sensitivity of 363 nm/RIU and a quality factor of the order of \(10^{3}\). Besides, by combining the selective adsorption property of cryptophane E for methane and the excellent resonance property of PhC cavities, the resonant spectrum of PhC cavities was seen to sharply shift with a change in the concentration of methane gas. This resulted in a theoretical detection limit of 697 ppm for methane sensing and thus provided a new direction for the gas sensors based on PhC cavities. Qian et al. (2016) proposed a high-sensitivity gas sensing method, in which, a miniaturized PhC cavity was used as the sensing element and molecular cryptophane E was infiltrated in the defected holes of the PhC cavity as the material sensitive to methane gas. In order to enhance the RI sensitivity, a slow light PhC cavity was engineered from which a sensitivity of 450 nm/RIU and a quality factor of \(10^{5}\) was achieved.

Quite recently, Kassa-Baghdouche and Cassan (2018) proposed a highly efficient SPCW gas sensor working in the mid-infrared wavelength range. The transmission spectrum and sensitivity of the proposed sensor showed that a change in the refractive index of the gas by \(10^{-4}\) led to a shift of the upper band edge wavelength by 540 pm, corresponding to a sensitivity of 1720 nm/RIU. In another study, Kraeh et al. (2018) developed a gas spectrometer consisting of a microtube PhC structure. Owing to the slow light effects, the proposed structure of millimetric form factors minimizes the required absorption path length. In the design of the device, the enhanced absorption of light increased the gas sensitivity and slow-light enhanced gas absorption by a factor of 5.8 at 5400 nm. Wang et al. (2019) proposed a PhC cavity and theoretically demonstrated its possibility in tetrahydrofuran (THF) vapor sensing. In the proposed design of the PhC cavity, a portion of the air holes on both sides of the middle row was first removed to form a waveguide structure following which, two holes on both sides of the central hole were removed. By optimizing the structural parameters of several air holes, the results showed that the RI sensitivity of the proposed PhC cavity could be up to 194 nm/RIU, along with a high Q of \(2\times 10^{5}\) and a detection limit as low as \(4 \times 10^{-5}\) RIU. Besides, it was theoretically verified that the PhC cavity sensor had the ability to maintain an RI sensitivity over a wide refractive index range of 1.33–1.53, enabling it to measure a larger number of parameters. Vakili and Noori (2019) proposed a 2D hole-type hexagonal lattice PhC to detect the RI change of the material infiltrated into the designed circular sensing area. In the design, the accuracy of the detection process was enhanced considering the simultaneous shift of the resonance wavelengths and the intensity modulation which occurred in two separate spectral regions. The authors showed that the structure had the ability to detect liquids, material concentrations in fluids and gases having refractive indices in the range of n = 1–2 with a sensitivity of 61 nm/RIU and a quality factor of 3000. The spectroscopic detection of gases using macroporous silicon photonic crystals as narrow filters is described in another study (Maza et al. 2019). The results obtained by the authors suggest that the response of the filter for longer path lengths and higher concentrations can be predicted, showing broad working ranges and compact sizes for CO\(_{2}\). Moreover, results were extrapolated to other macroporous silicon filters centered on the absorption spectra of N\(_{2}\)O, OCS, NO\(_{2}\), and SO\(_{2}\). Heterostructure and slotted PhC nanocavities structures needed to be carefully optimized and fine-tuned in order to achieve an ultrahigh Q and low mode volumes and as a result, they had a low tolerance to fabrication deviations. Nonetheless, in order to resolve these problems and take into account the advantages of ultra-compact structure and high-sensitivity of PhC cavity-based gas sensors, it is possible to further improve the gas sensing characteristics of the point-defect PhC nanocavities with high Q/V.

With this goal, in this paper, Q/V ratio of two types of point-defect nanocavities based on planar photonic crystal is optimized, while their sensing characteristics are analyzed, to give a new perspective for further research on other gas sensing applications with such device family. The optical properties of point-defect PhC nanocavities including Q factor, mode volume, and resonant wavelength, as well as their basic sensing metrics (e.g. sensitivity, limit of detection) are computed and discussed simultaneously by the combination of three-dimensional finite difference time domain method (3D-FDTD) simulation and the perturbation theory. Firstly, in order to obtain a high sensitivity, low detection limit, and a very narrow bandwidth nanocavity mode for efficient gas sensor resolution, we have carefully maximized the ratio of the quality factor to mode volume (Q/V) and have obtained Q/V around \(10^{5}\). Secondly, using the perturbation theory, the capability of the optimized point-defect PhC nanocavities to measure different gases infiltrated into air holes and claddings are demonstrated. The sensitivity characteristics of the point-defect PhC nanocavities have been optimized and their fabrication difficulty has been greatly relaxed by the chosen approach. Further, as compared to previously proposed PhC nanocavities based gas sensors, the proposed designed point-defect PhC sensors have a much simpler geometry and present higher sensitivity.

2 Design and modeling of PhC nanocavities

It is well known that the periodicity of the dielectric function of a photonic crystal is broken once some defects are introduced in its periodic lattice structure. This makes these structures able to guide and confine light at the scale of a few optical wavelengths. Particularly, when certain point defects are introduced in the orderly arranged lattices of PhC, it may form a PhC nanocavity surrounded by reflecting distributed boundaries. In fact, the new space created at the center of the PhC lattice supports an optical mode having a frequency located inside the photonic bandgap (PBG). Thus, for an extended number of field oscillation cycles, light can be “trapped” there, enabling strong temporal and spatial light confinements and potentially long photon lifetimes (namely, a high-quality factor) in a so-called PhC cavity (Lalanne et al. 2008).

As shown in Fig. 1, the explored point-defect planar photonic crystal cavities can be classified into two types: the H1 cavity formed by removing one lattice point in the center of the PhC lattice (Yoshie et al. 2004) and the L3 cavity formed by removing three adjacent lattice points (Chalcraft et al. 2007; Kassa-Baghdouche et al. 2014, 2015a, b, c; Kassa-Baghdouche 2019). In order to reduce the leaky components responsible for radiation losses as much as possible and thus strenghten the optical confinement within the formed dielectric resonator, the six air holes nearest to the H1 defect region and the holes at the edges of the L3 nanocavity were shifted by a distance d. Such displacement permits to obtain a smoother transition between the defect and PhC and can thus result in higher Q factor values and lower mode volumes. The L3 PhC cavity geometry has been extensively in literature and we based our work on these design guidelines (Chalcraft et al. 2007; Kassa-Baghdouche et al. 2014, 2015a, b, c; Kassa-Baghdouche 2019). The investigated structures were considered as made by air-bridge silicon PhC using a 500-nm thick silicon membrane. PhC nanocavities with triangular lattices of air holes can be fabricated using electron-beam lithography and chemically assisted ion beam etching (Yoshie et al. 2004; Chalcraft et al. 2007), and we thus considered reallistic geometrical parameter values coming these studies.

Fig. 1
figure 1

Schematic structures of two point-defect photonic crystal nanocavities. a H1 PhC cavity and b L3 PhC cavity

In order to calculate the Q factors and mode volumes of the fundamental TE nanocavities modes, we simulated the PhC nanocavities as a 500 nm thick free standing silicon membrane \((n = 3.42)\) and employed the three dimensional finite difference time domain (3D-FDTD) algorithm using a modified version of a freely available MEEP software package with subpixel smoothing for increased accuracy (Oskooi et al. 2010). To ensure a well-confined mode, a \(17\times 17\) lattice periods structure was used and the computational domain was bounded by perfectly matched layers (PMLs) on top and on the sides of the nanocavity surrounded by air. This PML conditions were in the calculations to ensure no back reflection in the limit of the analyzed region, but we used symmetric boundary conditions in the x- and y-directions to reduce the computing time. Nanocavities were lit by a Gaussian wave under normal incidence with a transverse electric (TE) polarized mode. The source field was placed in the middle of the nanocavity in a symmetry position for facilitate the computing of the Q factor and mode volume. To extract the resonance frequency and the cavity Q factor of the simulated structures, we used the “harminv” feature available in MEEP, which employs the filter diagonalization method to extract decay patterns in time series data (Mandelshtam and Taylor 1997). Our design objective was to make point-defect PhC nanocavities with resonant wavelength close to 3700 nm. For this reason, we applies a magnetic dipole source operating at a range of 3000–4000 nm.

3 Q/V optimization of the PhC nanocavities

In order to optimize the Q/V ratio of the proposed point-defect PhC nanocavities, by reducing unwanted reflection due to mismatch and by minimizing the propagation losses, we have performed geometrical optimization of the proposed nanocavities. The geometries of the point-defect nanocavities studied in this work were modified by reducing the radius of the air holes closest to the defect region and then a lateral displacement (d) of the air holes adjacent to the nanocavity was introduced (see Fig. 1). Figure 2 shows a plot of the Q/V ratio and the resonant wavelength (\(\lambda _{c}\)) as a function of d for all point-defect nanocavities. As can be seen from the figure, the Q/V ratio increases with increasing d initially, owing to the strengthened optical confinement by the electric field profile, reaches a maximum and then decreases when d is greater than an optimum value. On the other hand, when the air holes are displaced too much, the electric field penetrates much beyond the displaced holes. As a result, the optical confinement occupies the space around the holes slowly, while, the electric field distribution decays abruptly outside the holes. From Fig. 2 it can be concluded that when the displacement d in the H1 PhC cavity changes by an amount as small as \(\triangle d = 10\) nm, this is enough to obtain a large increase in the Q/V ratio. For such types of nanocavities, a better result was obtained for a displacement of 85 nm, leading to Q/V of \(3.4\times 10^{4}\) at the resonant wavelength \(\lambda _{c} = 3730\) nm.

Moreover, the plotted figure also confirms that L3 PhC nanocavities can have high Q/V values (here around \(10^{5}\) for a displacement of 212 nm at the resonant wavelength of \(\lambda _{c} = 3740\) nm). Further, we observe that an increase of the displacement d leads to a redshift of the resonant wavelength \(\lambda _{c}\), suggesting the scalability of the various designs for operation at various mid-infrared wavelengths. From this, we see that the modes of the proposed point-defect PhC nanocavities with strong electric fields in the region of the displaced holes are strongly redshifted, whereas those with minimal fields in that area are almost unaffected by end-hole displacement. We thus explain the reordering of the modes between the displacement \(d =0a\) and \(d = 0.15a\) in terms of end-hole-field overlap. As results, this design process, based on 3D-FDTD simulations, is important because we started with estimating optimum values of the displacement d/a that allow to approach the desired \(\lambda _{c}\) with a reasonably high Q/V value. Therefore, the above mentioned geometrical parameters are chosen in the design of the refractive gas sensor based on point-defect PhC nanocavities.

Fig. 2
figure 2

The evolution of the Q/V ratio and resonant wavelength (\(\lambda _{c}\)) of the designed point-defect PhC nanocavities mode as a function of the displacement of single air holes d for reduced air-hole radii \(r^{'} = 212\) nm. a H1 PhC cavity and b L3 PhC cavity

As mentioned in the above section, the lateral displacement of the air holes is an important parameter in point-defect PhC nanocavities that can be used for tuning their mode confinement condition. In the case of H1 PhC nanocavities, this displacement d can be optimized because it creates space in order to confine light. On the other hand, in an L3 PhC nanocavity, d defines the confining field envelope in the cavity without a significant shift of the confined wavelengths. In other words, when a Fourier transformation of the electric field is done, the spatial change redistributes the field components in the momentum space (k-space) such that an appropriate amount of light is reflected inside the light cone \((k < 2\pi /\lambda )\) which might otherwise lead to out-of-plane radiation losses. This enhances the photon lifetime inside the cavity (Akahane et al. 2003). Thus, in order to further investigate the ideal method for confining light in the designed point-defect PhC nanocavity modes with optimum displacement d of the single air holes, the modal distributions of the Ey component of the fundamental mode of the designed PhC nanocavities can be analyzed using the spatial Fourier transform (FT), as shown in Fig. 3. As is evident from this figure, the electric field component Ey has an odd symmetry in the x-direction, which leads to a negligible portion of its K-vector components inside the radiation light cone. The spatial components of the leaky fields at \(K_{x} = 0\) are thus greatly suppressed. Furthermore, as indicated by the white circles, we can also see that the leaky components inside the light cone are reduced for optimum values of the displacement d and for the highest values of the quality factor Q. This indicates that the enhanced Q factor during the optimization process results not only from a smoother field profile but also from a more delocalized field.

Fig. 3
figure 3

Fourier space of the \(E_{y}\) field distribution for the designed point-defect PhC nanocavities with optimal displacement d of single air holes. a H1 PhC cavity and b L3 PhC cavity

4 Gas sensing characteristics of the optimized PhC nanocavities

As for the sensing applications, a small variation in the local refractive index of the gases within the PhC nanocavity results in a small shift in the resonant wavelength of the nanocavity mode which is proportional to the concentration of the gas target. This phenomenon can enable the optimized point-defect PhC nanocavities to be used for the purpose of high-sensitivity gas sensing. Indeed, the spectral position, \(\lambda _{c}\), of the resonant wavelength of the PhC nanocavity modes serves as a reference and the measure of the resonant wavelength shift, \(\Delta \lambda\), is then a measure of the variation of the refractive index change \(\bigtriangleup n\) due to a change in the environment of the nanocavity. The resonant frequency shift \(\Delta \lambda\) can be estimated from the electromagnetic perturbation theory for small perturbations in dielectric function, \(\Delta \varepsilon\), (Joannopoulos 2007) using:

$$\begin{aligned} \begin{aligned} \Delta \omega =\displaystyle \frac{-\omega }{2}\displaystyle \frac{\int \int \int \Delta \varepsilon (\mathbf {r}) |\mathbf {E}(\mathbf {r})|^{2} d^{3}(\mathbf {r})}{\int \int \int \varepsilon (\mathbf {r})|\mathbf {E}(\mathbf {r})|^{2} d^{3}(\mathbf {r})} \end{aligned} \end{aligned}$$
(1)

where \((\mathbf {E}(\mathbf {r})\) is the electric field of the undisturbed resonant mode nanocavity. This theory shows that the variation of the resonant frequency of the nanocavity mode depends linearly on both the variation of the refractive index and the fraction of the electric field energy where the refractive index is perturbed \(\int \varepsilon |\mathbf {E}(\mathbf {r})|^{2}\). Therefore, any increase in the refractive index of the environment of the PhC nanocavity induces an increase in the resonant wavelength of the modes.

The evaluation of the sensitivity of the optimized point-defect PhC nanocavities can thus be done by measuring the shift of the resonant wavelength of the nanocavities modes as a function of the change of refractive index induced to the photonic crystal nanocavity environment. For a quantitative understanding of the response of optimized nanocavities to small changes in the RI of the environment, the electric field components \((E_{x}, E_{y} ~and ~E_{z})\) were calculated using the 3D-FDTD method and perturbation theory was used to calculate small wavelength shifts for different RI of the ambiant gas. Figure 4a shows the variation of the resonant wavelength shift \((\Delta \lambda )\) of the nanocavities modes of all optimized point-defect PhC nanocavities as a function of the refractive index of considered gases. The wavelength shift was calculated in the presence of vacuum and different gaseous environments (He, N\(_{2}\), CO\(_{2}\), C\(_{2}\)H\(_{2}\)  and  C\(_{3}\)H\(_{8}\)) under a pressure of 1 bar. As it can be seen from, the resonant wavelength shift indeed increases linearly with small changes in the refractive index of gases \((n_{Gas})\).

Fig. 4
figure 4

a Variation of resonant wavelength shift of the various point-defect PhC cavities modes as a function of the refractive indices (RI) of the gas. b Cavity sensitivity variation of the various point-defect PhC cavities modes as a function of the refractive indices (RI) of the gas

Modification of the refractive index of the surrounding gas involves a variation of the index contrast between the semiconductor and the air holes. This has an influence on the effective index of the photonic crystal and its bandgap. These two effects lead to a shift of the resonant wavelength of the nanocavity modes in the same direction. That is, the resonant wavelength of the nanocavities redshift if the refractive index of gas varies from 1.000 to 1.001 and blueshift in the opposite case, namely in a case of a decrease of the gas refractive index. As the gas refractive index increases, resonance wavelength of the point-defect PhC nanocavities increases linearly. In fact, for a refractive index of gas \(n_{Gas} = 1.001\) (C\(_{3}\)H\(_{8}\)), a variation in the RI of the gas in the surrounding medium induces a wavelength shift of the H1 PhC nanocavity modes as little as compared to that obtained in cases of L3 nanocavities. The H1 and L3 PhC nanocavities cause a shift of 234 pm and 269 pm of cavity resonance wavelengths, respectively. Generally, gases are yet detectable by both types of cavities because their quality factors are large enough \((\gg 10^{5})\).

By exploiting the resonant wavelength shifts estimated with the perturbation theory, the efficiency of the optimized point-defect PhC nanocavities was evaluated quantitatively by the calculation of the sensitivity \(S_{\lambda }=\Delta \lambda /\Delta n ~(expressed ~in~\mathrm{nm/RIU})\) (Liu et al. 2014). This definition was chosen to characterize optimized nanocavities with respect to previous works. More quantitatively, Fig. 4b obtained in the case of the presence of different gases shows that better sensitivities can be obtained for optimized L3 nanocavity. For example, in the case of measure of the gas (C\(_{3}\)H\(_{8}\)), sensitivities of the optimized nanocavities are summarized in Table 1. L3 PhC cavities give higher performance compared to other optimized point-defect nanocavities. However, the sensitivity values of the optimized nanocavities remain low compared to those obtained with air slot introduced in the center of the defect (Li et al. 2014). This is due to the geometry of the studied slotted nanocavities, where light is strongly confined in the slot. However, for these types of the nanocavities, mode volume is smaller than for the L3 case because of the confinement of the mode in air, and thus both situations cannot be directly compared. As shown in Li et al. (2014), the confined mode electric field indeed remains much localized in the slot. However, quality factor of slotted L3 PhC nanocavities generally remains low \((Q \sim ~ 3\times 10^{3})\), even by optimizing the displacement of the holes. This also testifies to the presence of a large number of field components in the cone of light. The low values of the quality factor of slotted PhC nanocavities can be explained by the abrupt termination of the slot at the holes. In this work, the low sensitivity of the optimized point-defect PhC nanocavities lies in the fact that light is well confined in the defect. This therefore makes the electric field confined in silicon.

Another way of estimating the efficiency of the optimized cavities as gas sensor devices can be performed by the calculation of the detection limit (DL) defined by: \(DL = \lambda _{c} /S_{\lambda }Q ~(expressed ~in ~\mathrm{RIU})\) (Liu et al. 2014). This parameter depends both on the sensitivity, the resonant wavelength of the nanocavity mode, and its quality factor. If the quality factor and the sensitivity of the designed PhC nanocavities increase, detection limit of the sensor increases. It brings, in addition to the sensitivity, the information of the fineness of the peak of resonance and it evolves linearly with the quality factor. So, a high Q factor improves the resolution of the resonant wavelength and thus improves the performance of optical sensors. Table 1 summarizes the optimum values of the Q/V ratio, sensitivity \(S_{\lambda }\), detection limit DL, and resonant wavelength \(\lambda _{c}\) for all optimized point-defect PhC nanocavities. In this study, the values of these parameters were obtained in presence of gas (C\(_{3}\)H\(_{8}\)). We can notice that the detection limit (DL) of the optimized point-defect PhC nanocavities is of the order of \(10^{4}\). This phenomenon induces a lower sensitivity which is compensated by a high quality factor.

The distribution of the electric energy density \(\varepsilon |E|^{2}\) of the optimized point-defect PhC nanocavities is shown in Fig. 5, where the distribution profile of the electric energy density was calculated for all PhC nanocavities immersed in acetylene gas. The results show that there is an apparent difference in the distribution of \(\varepsilon |E|^{2}\) between the optimized PhC nanocavities. For PhC nanocavities, the electric energy density distribution indicates that a substantial fraction of the energy of the confined mode is localized at the center of the defect (silicon region), which is a unique property of point-defect PhC nanocavities. However, a small energy density distribution is localized within the air holes surrounding the defect. It is worth mentioning that a small shift of the resonant wavelength of the nanocavity mode occurs even for small changes caused by the penetration depth of the field, thereby implying a much lower sensitivity. Even so, this concentration of the field in the higher refractive index region can be interesting, allowing high confinement of light in the silicon defect, for applications such as temperature sensors.

Fig. 5
figure 5

Distribution of the electric energy density \(\varepsilon |E|^{2}\) for point-defect photonic crystal nanocavities immersed in C\(_{3}\)H\(_{8}\) gas shown in the x–y plane at the optimum displacement

Moreover, the ratio of the quality factor to mode volume (Q/V) of the optimized point-defect PhC nanocavities has been analyzed when it is immersed in different gases. Owing to the small changes in the RI of the gas, the corresponding Q/V of the fundamental mode has been calculated and is shown in Fig. 6. As indicated in the previous section, when the RI of the gas remains unperturbed \((n=n_{o}=1.00)\), Q/V of the optimized nanocavities is as high as \(10^{4}\) and \(10^{5}\) for H1 and L3 PhC nanocavities respectively. However, as can be seen from Fig. 6, even though the refractive index of the gas changes from 1.000 to 1.001, the Q/V ratio remains constant at a high level above \(10^{4}\) and \(10^{5}\) for the H1 and L3 PhC nanocavities respectively, indicating that the confinement of light in the proposed nanocavities is very high.

Fig. 6
figure 6

The variation of the Q/V ratio of the optimized point defect PhC nanocavities with background refractive index (RI)

For the optimized PhC nanocavity based gas sensor, we have focused on the high-Q/V cases and small variations of the refractive index in the range of \(10^{-4}\) were used for the identification of gases. From this study, it has been found that for L3 PhC nanocavity, the sensitivity was about 270 nm/RIU with a very high Q/V of \(10^{4}\). However, H1 PhC cavity had a sensitivity of about 234 nm/RIU and Q/V could be up to \(10^{4}\). We note that the two point-defect PhC nanocavities were chosen as the optimal designs because for gas sensor applications Q/V is crucial to gain high sensitivity. Previous studies have reported that the optimized slotted Ln PhC nanocavities have an extremely high sensitivity as well as very large light confinement in the slot (Li et al. 2014), while, the sensitivity of the improved gas sensor is higher than most of the reported results for other PhC nanocavity sensors. In addition, a measurement resolution of 1 ppm has been achieved for acetylene gas with good temperature stability. In this work, it is important to note that the sensing performance was investigated by changing the position of the air holes nearest to the defect in the direction transverse to the light propagation. In light of the literature on PhC nanocavity sensors, the 3D-Finite-Difference Time-Domain (FDTD) calculations indicated that changing the position of these holes leads to a high-Q/V. Therefore, accompanied by a proper operating wavelength around 3700 nm, our designed point-defect PhC nanocavities with high-Q/V can function as a high-sensitivity ultra-compact gas sensor used for the determination of gas traces.

Table 1 The optimum values of the Q/V ratio, sensitivity \(S_{\lambda }\), detection limit DL, and resonant wavelength\(\lambda _{c}\) for the optimized point-defect PhC nanocavities

5 Conclusion

To conclude, we have designed and simulated in this paper an efficient point-defect photonic crystal nanocavity platform for RI-based gas sensing application for wavelengths near \(\lambda _{c} = 3.7~\upmu\)m. Results show that the Q/V ratio of the point-defect PhC nanocavities can be significantly improved with respect to previously reported results by carefully tuning a few surrounding structural parameters near the defect, i.e., by tuning the exact position of a set of two reduced air holes adjacent to the defect and their displacement in the cavity axis direction. The nanocavity with one and three missing holes has a simple design and enables maintaining a high Q/V larger than \(10^{4}\) and \(10^{5}\) for H1 and L3 PhC nanocavities respectively. From the point of view of its practical application, i.e., the sensing characteristics of the optimized point-defect PhC nanocavities, we have studied the resonant wavelength shift, sensitivity, and detection limit characteristics of the optimized PhC nanocavities using the perturbation theory. The carried out extensive simulation results show that the optimized gas sensor is highly sensitive to a small change in refractive index of the order of \(10^{-4}\), and a high sensitivity of 270 nm/RIU with a detection limit of \(10^{-4}\) RIU were demonstrated at \(\lambda _{c} = 3.7~\upmu\)m for a device of \(37~\upmu\)m total length. Considering the benefits of high-Q/V ratio resonators, high sensitivity, high detection limit and small sensing area, we believe that the optimized point-defect PhC nanocavities can be a suitable and useful platform for on-chip gas sensing arrays.