1 Introduction

Photonic crystal structures can control the propagation of electromagnetic wave [1] and play an important role in developing various optical devices [2]. The multiple reflections of electromagnetic wave at the layer interface in one-dimensional photonic crystal lead to forbidden (photonic bandgap) region where electromagnetic field is reflected and strongly damped (evanescent wave) within the structure [3, 4].

Second harmonic generation (SHG) is important for generating higher frequency waves [5]. Pulsed SHG in one -imensional photonic band gap material doped with \(\chi ^{( 2) }\) medium has been demonstrated [6]. SHG in metal and antiferromagnetic thin film has also been studied [7, 8]. Zhou et al. [9] also investigated SHG from antiferromagnetic film embedded in one-dimensional photonic crystal. It is shown that strong SHG would occur near photonic band edge [10]. In silicon photonic, second- and third-order susceptibilities are used to convert wavelengths in optical communication [11]. In many cases, phased matching is an important factor contributing to SHG enhancement. There are various approaches to enhance SHG in photonic crystal. One method is by using periodically poled photonic crystal [5, 12, 13]. Other methods use defect or cavity quantum electrodynamic effect[14, 15], disorder structure [16], pumping of slow light [17, 18], controlling of pump beam intensity [19] and introduction of Bragg reflector mirrors [20] in which strong localization of fundamental field (FF) enhances coupling of waves in \(\chi ^{(2) }\) medium.

Normally semiconductor or dielectric materials are used. Superconductor has not been used in nonlinear photonic crystal. The presence of bandgap at low-frequency region and its tunability with temperature make superconductor an attractive material for engineering optothermal devices for pulses in the far infrared (FIR) region. The two-fluid model [21, 22] provides a convenient description for investigation of band structure in superconducting photonic crystal [23]. Recently, optical properties of superconductor-ferromagnetic bilayer structure [24] have been studied using the two-fluid model.

Nonlinear PC introduces strong dispersion for spectral broadening and strong nonlinearity which enables pulse shaping and light-control-light functionality. Recent work shows SHG in periodically poled lithium niobate waveguide driven by femtosecond laser pulses [25]. Besides, generation of ultrashort pulse in organic crystal has been demonstrated in the range of 10–30 THz [26]. Split ring resonator [27] and thin wire array [28] can be used to yield frequency-dependent magnetic permeability and permittivity. The feasibility of SHG in metamaterials has been demonstrated [29, 30].

Here, we explore pulsed SHG in bilayer photonic crystal composed of superconductor combined with magnetic resonance to form negative refractive index region [31, 32]. The input pump pulse propagates through the nonlinear photonic crystal (NPC) while generating/producing a SH pulse through nonlinear frequency conversion process (see Fig. 1). The nonlinear photonic crystal converts a small fraction of energy in the pump laser pulse into SH signal by frequency doubling, even in the absence of seed second harmonic. The energy of the SH pulse is supplied by the input pump pulse which is assumed to be sufficiently strong such that the effects of depletion/distortion on the SH process are negligible so that the pump pulse inside the NPC can be assumed to be the input pulse. Also, the SHG can be assumed to be small so that the effects of nonlinear process (the SH signal) on the propagation of the pump pulse can be neglected. The SH pulse exists only when the pump pulse is present. Therefore, the process involves propagation of the pump pulse and production of the SH signal through frequency conversion. We shall analyze transmission and reflection spectra of the FF and SH fields with respect to temperature and the output SH pulse in frequency and time domains and show that the dispersive magnetic-superconductor photonic crystal provides a method for generating short pulse in the infrared (IR) region.

Fig. 1
figure 1

An example of nonlinear photonic crystal with layer 1 and layer 2. One of the layers can be superconducting or/and magnetic. A pump pulse passes through and provides some of its energy to produce second harmonic pulse. The reflected and transmitted pump pulse and second harmonic pulse are shown

2 Model and method

We use transfer matrix method (TMM) to model electromagnetic wave propagation [33], harmonic generation for arbitrary wavevector directions [34] of SHG [35, 36] in the nonlinear photonic crystal driven by a pump laser or a fundamental field (FF). We develop transfer matrix in frequency domain.

For arbitrarily short pulse the SVEA is not valid. In order to obtain solutions where dispersion is fully incorporated, we use the formal solution in frequency domain that satisfies the homogeneous wave equation \(\{\frac{\partial ^{2}}{\partial z^{2}}+\frac{n_{j}^{2}(\omega )\omega ^{2}}{c^{2}}\}\Upomega _{j}(z,\omega )\simeq 0\) for propagation through the jth layer in the photonic crystal, which is

$$ E_{j}\left( z,\omega \right) =\Upomega_{j}^{+}\left( \omega \right) e^{ik_{j}\left( \omega \right) \left( z-z_{j-1}\right) }+\Upomega _{j}^{-}\left( \omega \right) e^{-ik_{j}\left( \omega \right) \left( z-z_{j-1}\right) } $$
(1)

subjected to initial input pulse \(\Upomega_{0}^{+}\left( \omega \right) =\Upomega_{0}^{+}\exp [-\left( \frac{\omega -\omega _{L}}{\sigma_{L}}\right) ^{2}]\) with carrier frequency ω L and bandwidth σ L .

The linear propagation of layer j is governed by the refractive index

$$ n_{j}(\omega )=\sqrt{\mu_{j}\left( \omega \right) \varepsilon_{j}\left( \omega \right)} $$
(2)

where μ j and \(\varepsilon_{j}\) are frequency-dependent (dimensionless) relative permeability and permittivity of the medium induced by magnetic response and electric response. By using Maxwell equation \(\nabla \times \mathbf{E}_{j}^{( 1) }(z,\omega )=i\omega \mu_{0}\mu_{j}\left( \omega \right) \mathbf{H}_{j}(z,\omega ), \) we have the magnetic field (along x-axis)

$$ H_{j}^{( 1) }\left( z,\omega \right) =\frac{\xi _{j}(\omega )}{ c\mu_{0}}\left[\Upomega_{j}^{+}\left( \omega \right) e^{ik_{j}\left( \omega \right) \left( z-z_{j-1}\right) }-\Upomega _{j}^{-}\left( \omega \right) e^{-ik_{j}\left( \omega \right) \left( z-z_{j-1}\right) }\right] $$
(3)

where \(\xi_{j}(\omega )=\frac{n_{j}(\omega )}{\mu_{j}\left( \omega \right) }\)

We arrange Eqs. (1) and (3) in matrix form:

$$ \left[ \begin{array}{ll} E_{j}^{(1)} & \left( z,\omega \right) \\ c\mu_{0}H_{j}^{( 1) } & \left( z,\omega \right) \end{array} \right] =D_{j}\left[ \begin{array}{l} \Upomega_{j}^{+}\left( z,\omega \right) \\ \Upomega_{j}^{-}\left( z,\omega \right) \end{array} \right] $$
(4)

where \(D_{j}=\left[ \begin{array}{ll} 1 & 1 \\ \xi_{j}(\omega ) & -\xi_{j}(\omega ) \end{array} \right] \) is the matrix that describes the refractive index of individual layer.

Consider continuity of \(E_{j}^{(1)}\left( z,\omega \right) \) and \(H_{j}^{( 1) }\left( z,\omega \right) \) and Maxwell boundary condition at interface of odd and even layers and input and output interface (air left and right of photonic crystal), we could obtain transfer matrix of FF wave propagation for N period

$$ \left[ \begin{array}{l} \Upomega_{t}^{+} \\ 0 \end{array} \right] ={\mathcal{T}}^{(1)}\left[ \begin{array}{l} \Upomega_{0}^{+} \\ \Upomega _{0}^{-} \end{array} \right] $$
(5)

where \(\mathcal{T}^{(1)}=D_{0}^{-1}L^{N}D_{0}=\left[ \begin{array}{ll} T_{11}^{( 1) } & T_{12}^{( 1) } \\ T_{21}^{( 1) } & T_{22}^{( 1) } \end{array} \right] \) is the final transfer matrix, \(D_{0}=\left[ \begin{array}{ll} 1 & 1 \\ n_{0}(\omega ) & -n_{0}(\omega ) \end{array} \right] ,\,n_{0}(\omega )\) is the refractive index of the air. The transfer matrix of single period is

$$ L=D_{2}P_{2}D_{2}^{-1}D_{1}P_{1}D_{1}^{-1}. $$
(6)

Here, the propagation matrix that model the phase change is \(P_{j}=\left[ \begin{array}{ll} e^{ik_{j}(\omega )d_{j}} & 0 \\ 0 & e^{-ik_{j}(\omega )d_{j}} \end{array} \right] \) with the layer thickness z j  − z j−1 = d j . To facilitate precision computation, we have expressed \(D_{j}P_{j}D_{j}^{-1}=\left[ \begin{array}{ll} \cos \theta_{j} & i\frac{\sin \theta _{j}}{x_{j}} \\ ix_{j}\sin \theta_{j} & \cos \theta_{j} \end{array} \right] \) where \(x_{j}=\frac{n_{j}^{( 1) }}{\mu_{j}^{( 1) }}\) and θ j  = k j (ω)d j and obtained an analytical matrix for L.

The fields in the odd layers are

$$ \left[ \begin{array}{l} \Upomega_{2j-1}^{+} \\ \Upomega_{2j-1}^{-} \end{array} \right] =D_{1}^{-1}L^{j-1}D_{0}\left[ \begin{array}{l} \Upomega_{0}^{+} \\ \Upomega_{0}^{-} \end{array} \right] $$
(7)

and in the even layers

$$ \left[ \begin{array}{l} \Upomega_{2j}^{+} \\ \Upomega_{2j}^{-} \end{array} \right] =D_{2}^{-1}D_{1}P_{1}D_{1}^{-1}L^{j-1}D_{0}\left[ \begin{array}{l} \Upomega_{0}^{+} \\ \Upomega_{0}^{-} \end{array} \right] . $$
(8)

Equations (7) and (8) are used to compute the propagation of SH fields. The transmission and reflection coefficients are

$$ t^{(1)}=\frac{\Upomega_{t}^{+}}{\Upomega _{0}^{+}}={\mathcal{T}}_{11}^{( 1) }-{\mathcal{T}}_{12}^{( 1) }\frac{{\mathcal{T}}_{21}^{( 1) }}{{\mathcal{T}}_{22}^{( 1) }},\quad r^{(1)}=\frac{\Upomega_{0}^{-}}{\Upomega _{0}^{+}}=-\frac{{\mathcal{T}}_{21}^{( 1) }}{ {\mathcal{T}}_{22}^{( 1) }} $$
(9)

where, here, \(\Upomega_{r}^{(1)}=\Upomega_{0}^{-}\) and \(\Upomega_{t}^{(1)}=\Upomega_{2N}^{+}.\) Hence, we determine the transmission T (1) = |t (1)|2 and the reflection R (1) = |r (1)|2 spectra.

Assuming a nonlinearly generated field in the jth layer is a plane wave which has no radial dependence, the vector wave equation \((\nabla ^{2}+\varepsilon_{r}\mu_{j}\frac{\omega ^{2}}{c^{2}})E_{j}=-\mu_{o}\mu_{j}\omega ^{2}P_{j}^{NL}\) in Fourier frequency domain ω becomes

$$ \left(\frac{\partial ^{2}}{\partial z^{2}}+k_{j}^{2}\left( \omega ^{\prime }\right) \right)E_{j}^{(2)}\left( z,\omega ^{\prime }\right) =-\mu_{0}\mu_{j}\left( \omega ^{\prime }\right) \omega ^{\prime 2}P_{j}^{NL}\left( z,\omega ^{\prime }\right) $$
(10)

where \(k_{j}\left( \omega ^{\prime }\right) =n_{j}(\omega ^{\prime })\frac{\omega ^{\prime }}{c}\) is the SH wavevector in the j-th layer. For SHG, the nonlinear polarization is

$$ \begin{aligned} P_{j}^{NL}\left( z,\omega ^{\prime }\right)&=\varepsilon_{0}\chi _{j}^{(2)}\left( \omega ^{\prime }\right) E_{j}^{(1)}\left( z,\omega \right) ^{2} \\ &=\varepsilon_{0}\chi_{j}^{(2)}( 2\omega ) \left[ \left( \Upomega_{j}^{+}\left( \omega \right) \right) ^{2}e^{i2k_{j}\left( \omega \right) \left( z-z_{j-1}\right) }+\left( \Upomega_{j}^{-}\left( \omega \right) \right) ^{2}e^{-i2k_{j}\left( \omega \right) \left( z-z_{j-1}\right) }+2\Upomega_{j}^{+}\left( \omega \right) \Upomega_{j}^{-}\left( \omega \right) \right] \end{aligned} $$
(11)

where \(\omega ^{\prime }=2\omega . \)

Using Laplace transform to solve Eq. (10), we have the general solution of the SH field as

$$ E_{j}^{(2)}\left( z,\omega ^{\prime }\right) =\left[ \begin{array}{l} E_{j}^{( 2) +}\left( \omega \right) e^{ik_{j}\left( \omega ^{\prime }\right) \left( z-z_{j-1}\right) }+E_{j}^{( 2) -}\left( \omega \right) e^{-ik_{j}\left( \omega ^{\prime }\right) \left( z-z_{j-1}\right) } \\ +A_{j}\left( \Upomega_{j}^{+}\left( \omega \right) \right) ^{2}e^{i2k_{j}\left( \omega \right) \left( z-z_{j-1}\right) }+A_{j}\left( \Upomega _{j}^{-}\left( \omega \right) \right) ^{2}e^{-i2k_{j}\left( \omega \right) \left( z-z_{j-1}\right) }+C_{j}2\Upomega_{j}^{+}\left( \omega \right) \Upomega_{j}^{-}\left( \omega \right) \end{array} \right] $$
(12)
$$ A_{j}\left( \omega \right) = -\left( \frac{\omega }{c}^{\prime }\right) ^{2}\frac{\mu_{j}\left( \omega ^{\prime }\right) \chi _{j}^{(2)}\left( \omega ^{\prime }\right) }{k_{j}^{2}\left( \omega ^{\prime }\right) -4k_{j}^{2}\left( \omega \right) }, $$
(13)
$$ C_{j}\left( \omega \right)=-\left( \frac{\omega ^{\prime }}{c}\right) ^{2}\frac{\mu_{j}\left( \omega ^{\prime }\right) \chi _{j}^{(2)}\left( \omega ^{\prime }\right) }{k_{j}^{2}\left( \omega ^{\prime }\right) }. $$
(14)

The SH magnetic field obtained from the Maxwell equation is

$$ c\mu_{0}H_{j}^{( 2) }\left( z,\omega ^{\prime }\right) =\left[ \begin{array}{ll} &\frac{n_{j}^{( 2) }\left( \omega ^{\prime }\right) }{\mu_{j}^{( 2) }\left( \omega ^{\prime }\right) }\left( E_{j}^{( 2) +}\left( \omega \right) e^{ik_{j}\left( \omega ^{\prime }\right) \left( z-z_{j-1}\right) }-E_{j}^{( 2) -}\left( \omega \right) e^{-ik_{j}\left( \omega ^{\prime }\right) \left( z-z_{j-1}\right) }\right) \\ +&\frac{n_{j}^{( 1) }\left( \omega \right) }{\mu_{j}^{( 2) }\left( \omega ^{\prime }\right) }A_{j} \left( \left( \Upomega_{j}^{+}\left( \omega \right) \right) ^{2}e^{i2k_{j}(\omega )\left( z-z_{j-1}\right) }-\left( \Upomega _{j}^{-}\left( \omega \right) \right) ^{2}e^{-i2k_{j}(\omega )\left( z-z_{j-1}\right) }\right) \end{array} \right] $$
(15)

Arranging \(E_{j}^{(2)}\left( z\right) \) and \(H_{j}^{( 2) }\left( z\right) \) fields in the matrix form, we have

$$ \left[ \begin{array}{l} E_{j}^{(2)}\left( z,\omega ^{\prime }\right) \\ c\mu_{0}H_{j}^{( 2) }\left( z,\omega ^{\prime }\right) \end{array} \right] =G_{j}\left[ \begin{array}{c} E_{j}^{( 2) +}\left( z,\omega ^{\prime }\right) \\ E_{j}^{( 2) -}\left( z,\omega ^{\prime }\right) \end{array} \right] +B_{j}\left[ \begin{array}{l} A_{j}\left( \Upomega _{j}^{+}\left( z,\omega \right) \right) ^{2} \\ A_{j}\left( \Upomega _{j}^{-}\left( z,\omega \right) \right) ^{2} \end{array} \right] +2C_{j}\left[ \begin{array}{l} 1 \\ 0 \end{array} \right] \Upomega _{j}^{+}\left( z,\omega \right) \Upomega_{j}^{-}\left( z,\omega \right) $$
(16)

For simplification, we define \(E_{j}^{( 2) \pm }\left( z,\omega ^{\prime }\right) =E_{j}^{( 2) \pm }\left( \omega \right) e^{\pm ik_{j}(\omega ^{\prime })\left( z-z_{j-1}\right) }\) and \(\Upomega_{j}^{\pm }\left( z,\omega \right) =\Upomega_{j}^{\pm }\left( \omega \right) e^{\pm ik_{j}(\omega )\left( z-z_{j-1}\right) }. \)

Again, we consider the continuity of \(E_{j}^{(1)}\left( z,\omega \right) \) and \(H_{j}^{ (1) }\left( z,\omega \right) \) or the Maxwell boundary condition at the interface of odd and even layers, and input and output interfaces (air left and right ends of photonic crystal). Employing the transfer matrix of FF wave propagation for N period, we compute SH output (forward \(E_{t}^{( 2) +}\)and backward \(E_{0}^{( 2) -}\)) for j = N > 0

$$\begin{aligned} G_{0}\left[ \begin{array}{l} E_{t}^{( 2) +}\left( \omega \right) \\ 0 \end{array} \right] &= S^{N}G_{0}\left[ \begin{array}{l} E_{0}^{( 2) +}\left( \omega \right) \\ E_{0}^{( 2) -}\left( \omega \right) \end{array} \right] \\ &\quad+\sum_{j=1}^{N}S^{N-j}\left[ N_{2}M_{1}\vec{I}_{2j-1}\left( z\right) +M_{2} \vec{I}_{2j}\left( z\right) \right. \\ & \quad \left. +\;N_{2}\vec{J}_{1}\Upomega _{2j-1}^{+}\left( \omega \right) \Upomega_{2j-1}^{-}\left( \omega \right) +\vec{J}_{2}\Upomega_{2j}^{+}\left( \omega \right) \Upomega _{2j}^{-}\left( \omega \right) \right] \end{aligned} $$
(17)

where \(S=N_{2}N_{1},\,N_{j}=G_{j}Q_{j}G_{j}^{-1}( j=1,2) ,\,M_{j}=A_{j}(B_{j}F_{j}-N_{j}B_{j})\) and \(\vec{J}_{j}=2C_{j}\left[ I-N_{j}\right] \vec{J}. \) The matrices are defined as follows: \(Q_{j}=\left[ \begin{array}{ll} e^{ik_{j}^{( 2) }d_{j}} & 0 \\ 0 & e^{-ik_{j}^{( 2) }d_{j}} \end{array} \right] , \,F_{j}=P_{j}^{2}=\left[ \begin{array}{ll} e^{i2k_{j}(\omega )d_{j}} & 0 \\ 0 & e^{-i2k_{j}(\omega )d_{j}} \end{array} \right] ,\,\vec{I}_{\alpha }\left( z\right) =\left[ \begin{array}{l} \left( \Upomega_{\alpha }^{+}\left( z\right) \right) ^{2} \\ \left( \Upomega_{\alpha }^{-}\left( z\right) \right) ^{2} \end{array} \right]\,(\alpha =2j-1,2j\)) and \(\vec{J}=\left[ \begin{array}{l} 1 \\ 0 \end{array} \right] .\)

To prevent accumulated numerical errors, we use the matrix relation below [37] to find Nth power of any unimodular M matrix to compute S N,  S N-j and L N

$$ M^{N}=\left[ \begin{array}{ll} m_{11}U_{N-1}-U_{N-2}& m_{12}U_{N-1} \\ m_{21}U_{N-1} & m_{22}U_{N-1}-U_{N-2} \end{array} \right] $$
(18)

where \(U_{N}\left( a\right) =\frac{\sin \left[ \left( N+1\right) \cos ^{-1}a\right] }{\sqrt{1-a^{2}}}\) and \(a=\frac{1}{2}\left( m_{11}+m_{22}\right) . \)

For convenience, we define \(D_{m}=G_{0}^{-1}S^{N}G_{0}=\left( \begin{array}{ll} D_{11}^{( 2) } & D_{12}^{( 2) } \\ D_{21}^{( 2) } & D_{22}^{( 2) } \end{array} \right) \) and the second term on RHS of Eq. (17) as \(T_{m}=\left( \begin{array}{l} T_{1}^{( 2) } \\ T_{2}^{( 2) } \end{array} \right) . \) Hence, Eq. (17) becomes

$$ \left( \begin{array}{l} E_{t}^{( 2) +} \\ 0 \end{array} \right) =\left( \begin{array}{l} D_{11}^{( 2) }E_{0}^{( 2) +}+D_{12}^{( 2) }E_{0}^{(2) -}+T_{1}^{( 2) } \\ D_{21}^{( 2) }E_{0}^{( 2) +}+D_{22}^{( 2) }E_{0}^{( 2) -}+T_{2}^{( 2) } \end{array} \right) $$
(19)

which gives the reflected and the transmitted SH field, respectively,

$$ E_{0}^{( 2) -} ( 2\omega ) =-\frac{D_{21}^{( 2) }E_{0}^{( 2) +}+T_{2}^{( 2) }}{D_{22}^{( 2) }} $$
(20)
$$ E_{t}^{( 2) +} ( 2\omega ) =\left(\frac{\det D^{( 2) }}{D_{22}^{( 2) }}\right)E_{0}^{( 2) +}-\frac{ D_{12}^{( 2) }T_{2}^{( 2) }}{D_{22}^{( 2) }} +T_{1}^{( 2) } $$
(21)

where \(E_{0}^{( 2) +} ( 2\omega) \) is the input second harmonic (seed) field. It is important to realize that, while the linear reflectivity and transmitivity \(r^{( 1) }\) and \(t^{( 1) }\) depend on ω they do not depend on the spectral content of the pump pulse. However, the nonlinear reflected \(E_{0}^{( 2) -} ( 2\omega ) \) and transmitted \(E_{t}^{( 2) +} ( 2\omega) \) fields can depend on the spectral content of the pump pulse through \(\Upomega_{0}^{+}\left( \omega \right) =\Upomega_{0}^{+}\exp [-\left( \frac{\omega -\omega_{L}}{\sigma_{L}}\right) ^{2}]. \)

To obtain the transmission \(T^{( 2) }=\left| t_{2}\right| ^{2}\) and reflection \(R^{( 2) }=\left| r_{2}\right| ^{2}\) spectra for SH electric fields, we divide the fields by the \(\Upomega _{0}^{+}\left( \omega \right) =\Upomega_{0}^{+}\) amplitude of the pump field, i.e., \(r_{2}=\frac{E_{0}^{( 2) -}}{\Upomega _{0}^{+}}\) and \(t_{2}=\frac{E_{t}^{( 2) +}}{\Upomega _{0}^{+}}. \) The reflected (superscript ‘−’) and transmitted (superscript ‘+’) fields in time domain are obtained by Fourier transform, \(E_{j}^{(2)\pm }\left( z,t\right) =\mathcal{F}\{E_{j}^{(2)\pm }\left( z,\omega ^{\prime }\right) \}\) and \(\Upomega_{j}^{(1)\pm }\left( z,t\right) =\mathcal{F}\{\Upomega_{j}^{(1)\pm }\left( z,\omega \right) \}. \)

3 Superconductor with temperature dependence

Now we apply two-fluid model to describe electromagnetic propagation in the superconducting layer at nonzero temperature [38, 39]. The electrical conductivity of a superconductor is

$$ \sigma =\sigma_{n}+\sigma_{s} $$
(22)

where σ n is conductivity of the unpaired normal electron with density of n n , and σ s is conductivity of paired superelectrons with density of n s . The total electron number density is

$$ n=n_{n}+n_{s} $$

The frequency-dependent conductivity at nonzero frequency is given in [41]

$$ \sigma \left( \omega \right) =\frac{n\tau e^{2}}{m}\left[ \frac{f_{n}}{ 1+\left( \omega \tau \right) ^{2}}+i\left( \frac{f_{n}\omega \tau }{1+\left( \omega \tau \right) ^{2}}+\frac{f_{s}}{\omega \tau }\right) \right] $$
(23)

where \(f_{n}=\frac{n_{n}}{n}\) and \(f_{s}=\frac{n_{s}}{n}\) are fluid fractions and τ is electron mean relaxation time, m and e are mass and charge of electron, respectively.

For excitations involving fields with higher frequencies that may exceed the superconducting bandgap \(2\Updelta (T)\) which depends on temperature T, we must introduce the notch functions [40]

$$ f_{\pm }=\frac{1}{e^{\pm u}+1},\,u=\frac{\omega -2\Updelta }{k_{B}T},\,\Updelta (T)=\Updelta_{0}(1-x^{3})^{4} $$
(24)

into the conductivity

$$ \sigma (\omega ,T)=f_{-}\sigma ^{<}(\omega )+f_{+}\sigma ^{>}(\omega ) $$
(25)

where the conductivity for \(\omega <2\Updelta\) is rewritten as

$$ \sigma ^{<}(\omega )=(1-x^{4})i\frac{ne^{2}}{m\omega }+x^{4}\left(\frac{\sigma_{tot}}{1-i\omega \tau }\right)$$
(26)

where \(\frac{n_{n}(T)}{n}=x^{4}, \) while the conductivity above the bandgap is essentially normal conductor

$$ \sigma ^{>}(\omega )=\frac{\sigma_{tot}}{1-i\omega \tau } $$
(27)

where \(\sigma_{tot}=\frac{ne^{2}\tau }{m}\) and \(n=\frac{m}{\mu _{0}e^{2}\lambda_{d}^{2}(0)}\) with λ d (0) as the penetration depth at absolute zero. Since \(\frac{1}{\lambda _{d}^{2}(T)}=\frac{n_{s}(T)\mu_{0}e^{2}}{m}\) we have \(\frac{\lambda _{d}^{2}(0)}{\lambda_{d}^{2}(T)}=\frac{n_{s}(T)}{n}=1-x^{4}<1. \)

The dielectric function of superconductor is related to \(\sigma \left( \omega ,T\right) \) by

$$ \varepsilon_{s}\left( \omega \right) =\varepsilon _{b}+i\frac{\sigma \left( \omega \right) }{\varepsilon_{0}\omega } $$
(28)

The frequency ω f where Re \(\varepsilon_{s}\) flips from negative to positive can be estimated from

$$ \frac{ne^{2}\tau ^{2}}{\varepsilon _{0}m}\left[f_{-}\left(1-\frac{x^{4}}{1+(\omega_{f}\tau )^{2}}\right)+f_{+}\frac{(\omega_{f}\tau )^{2}}{1+(\omega_{f}\tau )^{2}}\right]=(\omega_{f}\tau )^{2} $$
(29)

We also include dispersive magnetic material as one of the layers, realized for example through interaction between SRR and magnetic field of the incident beam [42].

$$ \mu_{j}(\omega )=1-\frac{F}{\omega ^{2}+\omega_{mj}^{2}+i\omega \Upgamma_{j} } $$
(30)

where F is fraction factor of SRR in the photonic crystal, \(\Upgamma_{j}\) is the dissipation factor and ω mj is the resonant frequency of SRR.

4 Results and discussion

The results in Fig. 2. are obtained using the following parameters without second harmonic seed, \(E^{(2)+}_0\). For the structure, d = 10  μm, d 1 = 0.5 d, N = 10. For superconductor \(\varepsilon_{2}\left( \omega \right) \) (in medium 2): \(\varepsilon_{b}=15,\lambda_{d}=0.2\,{\rm d},\tau =10^{-13}\) s, T c  = 300 K, \(\hbar \Updelta_{0}=0.01\) eV. For magnetic material \(\mu_{2}\left( \omega \right)\) (in medium 2): \(\omega_{m1}=2\Updelta_{0},\Upgamma_{1}=2\times 10^{12}\,{\rm{s}}^{-1},\,F_{1}=0.55.\) The permeability and dielectric in layer 1 are constant: \(\varepsilon_{1}=3,\mu_{1}=1. \) The nonlinearity parameters of strontium barium niobate (SBN) is χ (2)1  = 27.2 pm/V and for the incident laser pulse \(\omega_{L}=2\Updelta_{0},\sigma_{L}=\Updelta_{0}.\)

Fig. 2
figure 2

a Real part (solid line) and imaginary part (dotted line) of \(\mu ,\,\epsilon \) and n versus frequency. Transmission and reflection spectra versus normalized temperature T/T c for the resonance with negative refractive index. b Output (electric field \(\Upomega_{r,t}, E_{r,t}^{( 2) }\) and electric field squared \(I_{r,t}^{( 1) }=|\Upomega _{r,t}|^{2},I_{r,t}^{( 2) }=|E_{r,t}^{( 2) }|^{2}\)) of reflected and transmitted pulses in time and frequency domains. Real part of field (solid line) and imaginary part (dotted line). c Output reflected and transmitted pulses for input pulse with larger bandwidth. The pulses are for temperature T = 0.09 T c . Solid circle shows ω f while the dashed circle highlights the negative refractive index region. The input field is \(\Upomega_{0}^{+}=10^{8}\) V/m

Using the above parameters for superconductor, the frequency ω f where \(\varepsilon_{s}\) in Eq. 29 is zero turns out to be in the far infrared region ∼1013 s−1, which is close to the superconducting gap, \(2\Updelta_{0}\simeq 3\times 10^{13}\,{\rm s}^{-1}.\) The magnetic resonance ω m1 lies below ω f in Fig. 2a. This creates a narrow region of negative refractive index for medium 2 but it has little effect on the output of broadband pulse since it covers only a narrow resonance region of the magnetic permeability. Since medium 1 has constant \(\varepsilon_{1}\) and μ1 it is non-absorptive and non-dispersive.

Several interesting features are found for the pulse propagation in the nonlinear periodic medium. The presence of multiple passbands in the frequency domain (reflection and transmission spectra of Fig. 2a) translates into modulated pulse with short sub-pulses in the time domain (see Fig. 2b). Since the SH pulse exists only when the pump pulse is present, the points where the output pump intensity is zero give no SH signal at output (see Figs. 2 and 3), but the reverse may not be true. The number of subpulses increases with the spectral bandwidth of the input pulse (Fig. 2c), as it covers a larger number of passbands. This could be a new mechanism for generating a modulated or broken pulse containing short sub-pulses by breaking up the dispersion into photonic bands. It is also observed that reflected SH spectra are higher than the transmitted SH spectra by one order of magnitude. This is because the frequency region falls around the resonance frequencies of the magnetic and superconducting layers.

Fig. 3
figure 3

Medium 1 is magnetic and medium 2 is superconducting showing a temperature-dependent spectra, b pulses in spectral and time domains

We observe from Figs. 2b and c the time delayed effect of the output pump and SH pulses. The slow light effect is more significant on the transmitted pulse propagating in the forward direction. It is not uniquely due to the nonlinear effect, but a result of multiple reflection and strong dispersion around the resonance region. Also, the reflected pump and SH pulses are stronger than transmitted pulses because strong reflection usually occurs around the absorption regions of the materials.

The temperature dependence in the reflection and transmission spectra is not prominent except close to the zero point frequency ω f region which shows stronger temperature dependence due to the high sensitivity of the superconducting dielectric function in this region. At around and below ω f , there is essentially no transmitted SH signal except at low temperature.

When medium 1 is magnetic and medium 2 is superconductor, in Fig. 3, the temperature dependence of the SH spectra can be seen more clearly. The reflected SH pulse shows interesting feature, a long pulse containing many sub-pulses, almost periodically spaced, extending over larger times. The slow light effect becomes more significant. This could be due to the strong dispersion and resonance in both medium 1 and medium 2, not only in medium 2 as in case of Fig. 2. This causes the group velocity delay, not just in medium 2 but also in medium 1.

We note that the modulated/distorted output pump pulse shown in Figs. 2 and 3 is entirely due to linear process of multiple scattering in the multilayers while the SH pulse produced is due to nonlinear (second harmonic) process. Significant distortion in the fundamental input pump pulse \(\Upomega_{0}^{+}\) (with Gaussian spectrum) can be seen in Fig. 2 by comparing it with the fundamental output pulses \(\Upomega_{r}^{(1)}\) and \(\Upomega_{t}^{(1)}.\) We find that the peak value of the output pulse is smaller than the peak of the input pulse, but the effective pulse duration is slightly larger. It is the result of absorption and multiple scattering (reflections and transmissions), but nonlinearity has no effect here. Thus, the pulse reshaping is entirely due to linear scattering process. Now, if we compare the second harmonic fields E (2) r , E (2) t with the fundamental fields \(\Upomega_{r},\Upomega_{t}\) in the spectral domain, we see that both are significantly different. They are different because the SH fields are due to the nonlinear process, in addition to the linear process of multiple scattering.

We clarify that the SH output should not be considered as pulses, as it simply appears to have been a fraction of energy from the pump pulse that has been produced by nonlinear frequency conversion and strongly modulated by linear process of multiple scattering into sub-pulses. The multiple peaks of the field amplitude in the spectral domain does not guarantee that there are also similar peaks in the time domain due to the fact that the phase, i.e., the imaginary part, also plays a role when Fourier transforming to the time domain. The output pulse may seem chaotic but there is no statistical nor random process involved. Instead, several underlying physical processes are molding/modulating/shaping the resulting pulse. The output pulse may be useful that it contains some information about the mixture of optical processes; namely multiple scattering, propagation and second harmonic generation in the nonlinear photonic crystal. The results help to better understand the underlying optical processes such as dispersion, phase matching and slow light that lead to intensity modulation or breakup of the pump pulse and production of a strongly modulated SH pulse. Thus, this work forms a foundation for future works aimed at optimizing pulse modulation for applications such as in spectroscopy.

5 Conclusions

We have shown that photonic crystal with superconducting layer and second-order nonlinearity can be used to produce mid- or far-infrared (MIR–FIR) pulse using a nonlinear material through second harmonic generation process. An input (Gaussian) pump pulse is dramatically distorted and becomes shorter due to the strong dispersion and absorption around the resonant region of the magnetic material and the superconducting bandgap, as well as the multiple scattering. The nonlinear photonic crystal with superconducting and magnetic materials provides an alternative way to specialized crystals [43] to convert IR pulse to higher harmonics/frequencies and simultaneously reshaping the IR pulse through multiple scattering and nonlinear process at around the resonances of materials. The input IR pulse may be supplied from free electron laser [44]. We emphasize that there is no amplification nor lasing process involved in the nonlinear photonic crystal due to the small conversion efficiency, the absence of lasing cavity and no continuous energy pumping. The main mechanism here is nonlinear frequency conversion that produces second harmonic pulse in the IR wavelengths. At low temperature, the superconducting layer provides higher SHG conversion efficiency. Thus, the magnetic and superconducting nonlinear photonic crystal provides a new mechanism for reshaping and converting short pulse by combining resonant multiple scattering and nonlinear optical process for photonic spectral engineering.