1. Introduction
The flow over a compressible open cavity has been a subject of numerous studies over the past decades due to its relevance in a wide range of engineering applications (Rowley & Williams Reference Rowley and Williams2006). The flow inside and surrounding the cavity exhibits rich fluid-dynamics phenomena, including flow separation, shear-layer instability and hydrodynamic–acoustic interactions, which drive shear-layer oscillation and the vortex dynamics. As a result, it also serves as a model problem for investigating these phenomena in detail, which are ubiquitous in many other flow configurations. Perhaps the most-researched aspect is how the unstable shear-layer oscillation manifests and causes intense acoustic pressure fluctuations, a phenomenon linked to the Rossiter feedback mechanism (Rossiter 1964). Recent investigations have focused more on identifying the instability mechanism in the cavity and devising ways to suppress it (Liu et al. Reference Liu, Sun, Yeh, Ukeiley, Cattafesta and Taira2021; Godavarthi et al. Reference Godavarthi, Kawamura, Ukeiley, Cattafesta, Louis and Taira2025). A recent investigation showed that the cavity can itself serve as a passive tool for controlling flow separation on an airfoil (Visbal & Garmann Reference Visbal and Garmann2023). They found that downstream-travelling perturbations generated by the cavity can modify the separation zone and delay dynamic stall. The findings open up a question: What are the characteristics of the cavity-generated perturbations that can travel further downstream and cause flow modifications? A cavity can also represent a gap or discontinuity on the airfoil surface due to an imperfect manufacturing process, and answering this question is essential to understanding the perturbations that can cause boundary-layer transition downstream of the gap.
Resolvent analysis has emerged as a valuable tool for understanding perturbation amplification in fluid flow due to external or internal forcing (Jovanović & Bamieh Reference Jovanović and Bamieh2005; McKeon & Sharma Reference McKeon and Sharma2010). In the classical approach, resolvent analysis involves linearising the Navier–Stokes equation (NSE) around a stationary base flow and treating the nonlinear terms as an unknown forcing which can then be formulated in an input–output framework. The resolvent operator acts as the transfer function between the input and output perturbations in the frequency domain. The singular value decomposition (SVD) of the operator provides a way to identify the optimal perturbations that can be generated by a corresponding optimal forcing and an amplification gain between them (Rolandi et al. Reference Rolandi, Ribeiro, Yeh and Taira2024). Resolvent analysis can provide insight into the non-modal instabilities that can materialise even in the absence of any unstable eigenvalue of the linear operator. The analysis has been helpful for various purposes, including identifying flow instability mechanisms, designing flow control strategies and flow estimation (Yeh & Taira Reference Yeh and Taira2019; Liu et al. Reference Liu, Sun, Yeh, Ukeiley, Cattafesta and Taira2021; Ribeiro et al. Reference Ribeiro, Yeh and Taira2023; Jung et al. Reference Jung, Bhagwat and Towne2025)
Recent extensions of the classical resolvent analysis (CRA) modify some fundamental assumptions, thereby improving the modelling framework (Jovanović Reference Jovanović2021). One such assumption is the statistical stationarity of the base flow, which limits the model’s ability to predict instabilities arising from the base flow’s unsteadiness. Most fluid flows are inherently unsteady, and linearising the underlying dynamics about a stationary state, e.g. the mean flow, can lead to inaccurate predictions of the dominant modal structures. Since we are interested in the perturbations amplified by the unsteady cavity flow in the present study, we use the harmonic resolvent analysis (Padovan et al. Reference Padovan, Otto and Rowley2020; Padovan & Rowley Reference Padovan and Rowley2022; Islam & Sun Reference Islam and Sun2024), which models the base flow as periodic in time. The harmonic resolvent analysis (HRA) follows the same approach as the classical one, with the key distinction of linearisation about the unsteady base flow, which, in the frequency domain, results in interactions among perturbations at different frequencies through the base flow. The resulting formulation involves a modified operator, compared with the classical one, that incorporates the effects of both the mean flow and the unsteady part of the base flow. The harmonic resolvent operator acts as a transfer function between the input and the output with frequency components in a specific set. The SVD of the operator yields optimal responses with the same frequency components as the optimal forcing, and the optimal gain quantifies the amplification (Padovan & Rowley Reference Padovan and Rowley2022; Islam & Sun Reference Islam and Sun2024).
Although the HRA naturally accommodates a multi-frequency input–output dynamics, many established flow control tools are based on the linear time-invariant (LTI) assumption, in which inputs and outputs share a single frequency, and the resulting dynamics is more readily interpretable. To retain the time-periodic base flow while recovering an approximate LTI description, we employ the mean resolvent analysis (MRA) (Leclercq & Sipp Reference Leclercq and Sipp2023; Bongarzone et al. Reference Bongarzone, Content, Sipp and Leclercq2026). As discussed later, the mean resolvent (MR) operator can be obtained directly from the harmonic resolvent by introducing a frequency restriction and a prolongation operator. This modification yields the phase-averaged response to a single-frequency input, thereby approximating the LTI input–output dynamics at each frequency of interest. The SVD of the MR operator provides optimal forcing and response structures at a single frequency, along with the corresponding amplification gain. The key distinction between the optimal MR modes and their classical counterparts is that the former capture the best approximate LTI response to perturbations amplified by a time-periodic base flow, whereas the latter are governed by a stationary base flow.
Numerous studies have investigated the effects of cavity geometry, the upstream boundary-layer characteristics, and compressibility on instabilities within the cavity (Rowley et al. Reference Rowley, Colonius and Basu2002; Bres & Colonius Reference Bres and Colonius2008; de Vicente et al. Reference de Vicente, Basley, Meseguer-Garrido, Soria and Theofilis2014; Sun et al. Reference Sun, Taira, Cattafesta and Ukeiley2017) using linear stability analysis. In addition to the two-dimensional (2-D) unstable Rossiter modes, the flow in the cavity is also susceptible to low-frequency three-dimensional (3-D) instabilities. These 3-D instabilities result from the centrifugal effect in the recirculating region of the flow. Recent efforts have used resolvent analysis to identify optimal actuator locations to control cavity oscillations (Liu et al. Reference Liu, Sun, Yeh, Ukeiley, Cattafesta and Taira2021). In analysing the effect of the gap on boundary-layer transition, Victorino et al. (Reference Victorino, Aguirre and Medeiros2023) found that only in the presence of both the Rossiter and centrifugal mechanisms, with a significant growth rate identified by global stability analysis, can flow transition occur downstream. However, the role of any non-modal instability mechanism was not captured due to the nature of the stability analysis.
In this study, we treat the cavity as an amplifier of perturbations that travel downstream and trigger a flow transition after the trailing edge. The goal then is to identify the underlying mechanism that generates these perturbations and their downstream evolution by the base flow. Doing so captures the representative configurations of both the gap-induced transitional flow and the micro-cavity-generated perturbations that can passively modify downstream flow. We hypothesise that the multimodal interactions among cavity-generated perturbations, such as the Rossiter and centrifugal instabilities, will be crucial to explaining the downstream evolution of the flow after the cavity. Moreover, non-modal instabilities can significantly accelerate the transition process. Thus, HRA serves as a powerful tool for uncovering frequency interactions between perturbations and the harmonics of the unsteady base flow, through which the base-flow harmonics indirectly couple perturbations at different frequencies, and for identifying optimal non-modal instabilities in the post-cavity region. The MRA, in turn, allows us to identify the optimal non-modal response to a single-frequency input amplified by the time-periodic base flow, providing an approximate LTI characterisation of the amplification dynamics.
The structure of the paper is as follows. In § 2, we discuss the governing equation and the numerical configuration used to obtain the cavity flow. We provide the theory and its numerical implementations in § 3, including CRA and HRA, which will serve as the primary tools for analysing perturbation amplification. In § 4 we present the results of the CRA, which will help us identify the dominant instability mechanisms in the vicinity of the cavity. Then, in § 5, we investigate the interactions among the cavity-induced perturbations using the MRA and HRA and discuss their downstream evolution. Finally, we provide concluding remarks and future considerations in § 6. In addition, we provide supplemental discussions in the appendices to complement the main text.
2. Numerical configuration of cavity flow
We perform a direct numerical simulation (DNS) of the flow over a rectangular cavity with a length-to-depth ratio of
$L/D=2.0$
. The flow is governed by the compressible NSE that reads in a compact notation
\begin{align} \frac {\partial \boldsymbol{q}(\boldsymbol{x},t)}{\partial t} = \underbrace {-\boldsymbol{\nabla }\boldsymbol{\cdot }\boldsymbol{F}(\boldsymbol{q}(\boldsymbol{x},t))}_{\mathcal{N}(\boldsymbol{q}(\boldsymbol{x},t))}, \end{align}
where
$\boldsymbol{q} = [\rho , \rho \boldsymbol{u},\rho E]^T$
is the vector of conservative variables denoting the density, momentum and total energy of the flow, respectively,
$\mathcal{N}$
is the Navier–Stokes operator, and
$\boldsymbol{F}(\boldsymbol{q})$
denotes the combined Euler and viscous fluxes. The variables are made non-dimensional using the depth of the cavity
$D$
as the reference length, the free-stream speed of sound
$\tilde {a}_{\infty }$
as the reference velocity, the free-stream density
$\tilde {\rho }_{\infty }$
and temperature
$\tilde {T}_{\infty }$
. We introduce the definition of the dimensionless Reynolds numbers
$\textit {Re}_a$
,
$\textit {Re}$
, Prandtl number
$\textit {Pr}$
and Mach number
$\textit {Ma}$
as
where
$\tilde \mu _{\infty }$
is the reference dynamic viscosity,
$\tilde U_{\infty }$
is the free-stream velocity,
$\tilde c_p$
is the specific heat capacity at constant pressure and
$\tilde \kappa$
is the thermal conductivity of the fluid,
$U$
is the velocity magnitude,
$u$
is the streamwise component of velocity, and
$a$
is the speed of sound. Then, the non-dimensional NSE (2.1) reads in an expanded form
where
$\otimes$
denote the tensor product,
$\boldsymbol{\tau } = \mu [\boldsymbol{\nabla }\boldsymbol{u} + (\boldsymbol{\nabla }\boldsymbol{u}^T) -({2}/{3})(\boldsymbol{\nabla }\boldsymbol{\cdot }\boldsymbol u)\boldsymbol{I}]$
is the viscous stress tensor of the Newtonian fluid,
$\boldsymbol{I}$
is the identity tensor,
$\boldsymbol{u} = (u,v,w)^T$
denotes the velocity vector,
$p$
is the pressure,
$T$
is the temperature and
$E = p/[\rho (\gamma _s-1)]+({1}/{2}) \boldsymbol{u}\boldsymbol{\cdot }\boldsymbol{u}$
is the internal energy of the flow for a thermally and calorically perfect gas. To close the system of (2.3a
)–(2.3c
) we use the non-dimensional ideal gas law
The dynamic viscosity is linked to the temperature according to the power law
$\mu (T) = (T/T_{\infty })^{0.76}$
(Garnier et al. Reference Garnier, Adams and Sagaut2009). We assume a constant Prandtl number
$\textit {Pr}=0.7$
and a specific heat ratio
$\gamma _s=1.4$
for the air.
To discretise the governing equations (2.3a )–(2.3c ), we have used the high-fidelity computational fluid-dynamics solver CharLES (Brès et al. Reference Brès, Ham, Nichols and Lele2017), which incorporates the second-order finite-volume method for spatial discretisation. The spatial discretisation of the Euler flux uses the Riemann solver at the cell faces based on the Harten–Lax–Van Leer contact scheme (Toro Reference Toro2019). The simulations are advanced in time using a third-order Runge–Kutta method with explicit time stepping.
We have performed 3-D DNS of the cavity flow at a Reynolds number based on cavity depth of
$\textit {Re} = 1500$
and free-stream Mach number of
$\textit {Ma}=0.6$
. The initial momentum thickness of the boundary layer at the leading edge is set to
$D/\theta _0=26.4$
. The velocity field in the entire domain is initialised using the incompressible Blasius velocity profile with a spreading rate in the streamwise direction, except within the cavity. The flow inside the cavity is initialised with a small Gaussian perturbation of the streamwise-velocity component along the spanwise direction and zero for the other two velocity components. The schematic of the computational domain is shown in the figure 1(a). The origin of the coordinate system is located at the leading edge of the cavity and half-way along the span. The domain extends
$2.4D$
upstream from the leading edge. The outflow of the domain is located at
$15D$
in the streamwise direction. The top boundary of the domain is placed at a distance of
$9D$
from the floor of the cavity, and the spanwise extent of the domain is
$W/D=2$
.
The computational domain is discretised with approximately
$6.77\times 10^6$
grid points, with mesh refinement near the solid boundaries and within the cavity. At the inflow, a Blasius velocity profile is prescribed. A sponge zone (Freund Reference Freund1997) is applied within a spatial extent of
$5D$
from the outflow and
$2\hbox{-}\textrm{D}$
from the top boundary. An adiabatic no-slip condition is imposed at the cavity surface and the upstream and downstream walls. Periodic boundary conditions are applied to the spanwise boundaries.
(a) Computational set-up for the DNS of the flow over a rectangular cavity at
$\textit {Ma}_{\infty }=0.6$
(drawing is not to scale). Instantaneous isosurface of Q-criterion at level
$\textit{QD}^2/\tilde U_{\infty }^2=0.03$
is coloured by streamwise velocity, and the isosurface of fluctuating streamwise velocity is shown at levels
$u'/\tilde U_{\infty }=\pm 0.05$
(red: positive, blue: negative). (b) Power spectral density of the fluctuating vertical velocity (
$v'$
) sampled at (
$x,y,z$
)/D = (1.0, 0.0, 0.0), and (c) norm of the global Fourier modes of the spanwise-averaged vertical velocity fluctuations in the whole domain.

Figure 1. Long description
Panel A: A 3-D diagram shows the computational setup for direct numerical simulation (DNS) of flow over a rectangular cavity. The setup includes inflow, outflow, sponge zones, and a no-slip adiabatic wall. The diagram highlights the formation of hairpin and lambda vortices within the cavity. Panel B: A line graph displays the power spectral density (PSD) of the fluctuating vertical velocity sampled at a specific point. The graph shows two prominent peaks labeled St_I and St_II. Panel C: Another line graph presents the norm of the global Fourier modes of the spanwise-averaged vertical velocity fluctuations across the entire domain. This graph also shows two peaks labeled St_I and St_II.
2.1. Flow characteristics
A representative visualisation of the instantaneous flow field is shown in figure 1(a) using the isosurface of the Q-criterion at the value of
$\textit{QD}^2/\tilde {U}_{\infty }^2=0.03$
and coloured by the streamwise velocity. The roll-up of the shear layer above the cavity and the formation of the spanwise-uniform vortical structures are evident in figure 1(a). These structures, upon impinging on the trailing edge, generate acoustic waves that travel upstream and perturb the shear layer near the leading edge, resulting in a resonant feedback loop. The power spectral density (PSD) of the vertical velocity fluctuation in figure 1(b) from a probe located in the shear-layer region reveals that the dominant frequency of the resonance occurs at the Strouhal number of
$St_{\textrm{II}} = fD/\tilde {U}_{\infty }=0.36$
, where
$f$
is the frequency. The corresponding Strouhal number of
$fL/\tilde {U}_{\infty }=0.72$
based on the cavity length agrees well with the Rossiter mode II frequency predicted from the semi-empirical formula (Rossiter Reference Rossiter1964)
where
$n$
is the index of the Rossiter mode, the phase lag
$\xi$
is 0.25 and the value of
$\varphi$
is
$0.57$
(Heller et al. Reference Heller, Holmes and Covert1971). We also find the presence of a low-frequency peak near the Strouhal number of
$St_{ii}=0.025$
, which is associated with a travelling wave inside the cavity (Bres & Colonius Reference Bres and Colonius2008; Sun et al. Reference Sun, Taira, Cattafesta and Ukeiley2017). To identify whether any other Rossiter mechanism is present in the flow, the frequency spectrum using the norm of the global Fourier modes obtained from the temporal snapshots of the spanwise-averaged vertical velocity fluctuation data in the whole domain is shown in figure 1(c). The oscillation at the Rossiter mode II frequency (
$St_{\textrm{II}}$
) is indeed the dominant mechanism in the flow. Additionally, we observe a frequency peak near
$St_{\textrm{I}}=0.206$
, which we associate with Rossiter mode I and is significantly less dominant than Rossiter mode II.
The spanwise-uniform vortical structure begins to deform near the trailing edge, as evident in figure 1(a). After the trailing edge, the flow field resembles transitional boundary-layer flow, with the appearance of lambda vortices and the subsequent development of hairpin vortices. The question that arises is: What are the characteristics of the perturbation that convects downstream of the cavity to destabilise the flow? To answer this, we will use the CRA and HRA, the theoretical formulations of which are discussed next.
3. Description of the resolvent analysis framework
In this work, we use the classical resolvent (CA) (Jovanović & Bamieh Reference Jovanović and Bamieh2005; McKeon & Sharma Reference McKeon and Sharma2010) and harmonic resolvent (Padovan et al. Reference Padovan, Otto and Rowley2020; Padovan & Rowley Reference Padovan and Rowley2022; Islam & Sun Reference Islam and Sun2024) analyses to model the dynamics of spanwise-homogeneous small-amplitude perturbations inside and after the cavity flow. We also perform a MRA (Leclercq & Sipp Reference Leclercq and Sipp2023) to characterise the approximate LTI input–output dynamics of perturbations at a single frequency, where the amplification is governed by the time-periodic base flow. An overview of the modelling frameworks of the three resolvent analyses is shown in figure 2.
Overview of the modelling framework for resolvent analyses used in the current study.

To derive the resolvent modelling frameworks, we decompose the conservative state variables
$\boldsymbol{q}(\boldsymbol{x},t)$
as
$\boldsymbol{q}(x,y,z,t) = \boldsymbol{Q}(x,y,t)+\boldsymbol{q}'(x,y,z,t)$
, where
$\boldsymbol{Q}(x,y,t)$
is a time-varying base flow and
$\boldsymbol{q}'(\boldsymbol{x},t)$
is an infinitesimal perturbation evolving about the base flow. Substituting the decomposition into the NSE (2.1) and collecting terms of the same order, we get
\begin{align} \frac {\partial \boldsymbol{q}'(\boldsymbol{x},t)}{\partial t} = \underbrace {\mathcal{D}_{\boldsymbol{q}}\mathcal{N}(\boldsymbol{q}(x,y,t))}_{\unicode{x1D63C}(t)}|_{\boldsymbol{q}=\boldsymbol{Q}}\, \boldsymbol{q}'(\boldsymbol{x},t) + \boldsymbol{h}'(\boldsymbol{x},t), \end{align}
where
$\unicode{x1D63C}(t)=\mathcal{D}_{\boldsymbol{q}}\mathcal{N}(\boldsymbol{q}(x,y,t))|_{\boldsymbol{q}=\boldsymbol{Q}}$
is the linear Jacobian operator of the NSE evaluated at the base flow
$\boldsymbol{Q}(x,y,t)$
, and
$\boldsymbol{h}'(\boldsymbol{x},t)$
contains higher-order terms in
$\boldsymbol{q}'(\boldsymbol{x},t)$
.
3.1. CRA
In the CRA, we replace the base flow
$\boldsymbol{Q}(x,y,t)$
by a steady solution of (2.1) or a statistically stationary mean of the unsteady solution computed as
and construct the linear operator
$\unicode{x1D63C}(\overline {\boldsymbol{Q}})$
using the stationary state. We then express the forcing
$\boldsymbol{h}'(\boldsymbol{x},t)$
and steady-state response
$\boldsymbol{q}'(\boldsymbol{x},t)$
using a sum of Fourier modes as
for real-valued frequency
$\omega$
and spanwise wavenumber
$\beta$
, where
$\mathrm{c.c.}$
represents complex conjugate. Then, we substitute the expressions into (3.1) to obtain
where
$\unicode{x1D64D}(\beta ,\omega )=[\mathrm{i}\omega \unicode{x1D644}-\unicode{x1D63C}(\overline {\boldsymbol{Q}},\beta )]^{-1}$
is the CR operator (Jovanović & Bamieh Reference Jovanović and Bamieh2005; McKeon & Sharma Reference McKeon and Sharma2010). Given a forcing
$\hat {\boldsymbol{h}}'_{\beta ,\omega }$
with the frequency
$\omega$
and the spanwise wavenumber
$\beta$
, (3.4) gives a steady-state response
$\hat {\boldsymbol{q}}'_{\beta ,\omega }$
.
Following the discretisation of (3.1), we obtain the discrete resolvent operator of dimension
$\unicode{x1D64D}(\beta ,\omega )\in \mathbb{C}^{(5 N)\times (5 N)}$
, with
$N$
being the number of discrete grid points. In CRA, we are interested in finding the optimal forcing that maximises the gain between the input and output energy of perturbations amplified by the stationary base flow. Here, we measure both the input and output energy using Chu’s (Chu Reference Chu1965; Hanifi et al. Reference Hanifi, Schmid and Henningson1996) compressible energy norm given in non-dimensional form by
\begin{align} ||\boldsymbol{\hat q}'_p||_E^2 = E_{\text{c}} = \frac {1}{2}\int _{\mathcal{V}} \boldsymbol{\hat q}_p^{\prime *} \text{diag}\left (\frac {\overline T}{\gamma \overline \rho },\overline \rho ,\overline \rho ,\overline \rho ,\frac {\overline \rho }{\gamma (\gamma -1) \overline T}\right ) \boldsymbol{\hat q}'_p \mathrm{d}\mathcal{V}\, , \end{align}
where
$\boldsymbol{\hat q}'_p=[\hat \rho ',\hat {\boldsymbol{u}}',\hat T']$
is the vector of primitive perturbation variables. The optimisation problem can be shown to result in an SVD of the weighted resolvent operator
where
$\unicode{x1D649}$
is the positive definite matrix containing discrete Chu’s norm weights along the main diagonal, the matrix
$\unicode{x1D64E}$
transforms the primitive perturbation variables to the conservative perturbation variables (Rolandi et al. Reference Rolandi, Ribeiro, Yeh and Taira2024) and
$\boldsymbol{\varSigma }=\text{diag}(\sigma _1,\sigma _2,\dots )$
contains the ranked singular values. The optimal energy gain is given by
$\sigma _1^2$
. The forcing modes at frequency
$\omega$
and wavenumber
$\beta$
correspond to the columns of
$\boldsymbol{\varPhi }=\unicode{x1D649}^{-1/2}\tilde {\boldsymbol{\varPhi }}$
, and the response modes at the same frequency and wavenumber are the columns of
$\boldsymbol{\varPsi }=\unicode{x1D649}^{-1/2}\tilde {\boldsymbol{\varPsi }}$
.
Theoretically, the resolvent analysis, when evaluated along the imaginary axis, is ill posed only if the linear operator
$\unicode{x1D63C}(\overline {\boldsymbol{Q}},\beta )$
has a marginally stable eigenvalue, i.e. an eigenvalue with growth rate zero; otherwise, it remains well defined even for systems with unstable eigenvalues (Sharma & McKeon Reference Sharma and McKeon2025). For systems linearised about an equilibrium steady solution of the NSE, the exponential growth of unstable eigenmodes in the long term will obscure the forced response. In such a case, following Jovanovic (Reference Jovanovic2004), a discounting approach can be adopted, wherein the resolvent operator is replaced by the modified operator
$\unicode{x1D64D}(\beta ,\omega ,\kappa )=[(\kappa +\mathrm{i}\omega )\unicode{x1D644}-\unicode{x1D63C}(\overline {\boldsymbol{Q}},\beta )]^{-1}$
. Since the current base flow
$\overline {\boldsymbol{Q}}$
is not an equilibrium steady solution of the NSE, the growth rates, i.e. real components of the eigenvalues do not carry the same physical interpretation. Nonetheless, we employ discounting here to regularise the operator near marginally stable eigenvalues and to ensure a consistent evaluation axis across all three resolvent analyses performed in the present study. Specifically, in the presence of eigenvalues with positive real components, the discounting value
$\kappa$
is chosen to be greater than the maximum positive real component of the eigenvalues, ensuring that the evaluation axis lies to the right of all eigenvalues in the complex plane. We note that the choice of
$\kappa$
is arbitrary, and for each value of
$\kappa$
, a different spectrum of the resolvent gain (
$\sigma _1^2$
) distribution can be obtained. In general, increasing the value of
$\kappa$
beyond the maximum positive real part of the eigenvalues is found to lower the gain (
$\sigma _1^2$
) at the same frequency in the present study.
We note that the resolvent analyses in the present study are formulated using conservative state variables. As shown in Karban et al. (Reference Karban, Bugeat, Martini, Towne, Cavalieri, Lesshafft, Agarwal, Jordan and Colonius2020), the spectral properties of the linear operator
$\unicode{x1D63C}(\overline {\boldsymbol{Q}})$
depend on the choice of state variables when they are related nonlinearly, as is the case between primitive and conservative variables. Consequently, the CRA results may differ if the problem is formulated in terms of primitive state variables. The MRA and HRA, however, are not affected by the choice of state variables, as shown in Leclercq & Sipp (Reference Leclercq and Sipp2023).
3.2. Harmonic resolvent analysis
In HRA, we consider the base flow
$\boldsymbol{Q}(x,y,t) = \boldsymbol{Q}(x,y,t+T_0)$
to be
$T_0$
periodic (
$T_0=2\pi /\omega _0$
) and consequently,
$\unicode{x1D63C}(t)$
is also
$T_0$
-periodic. For ease of derivation, we can split the linear operator
$\unicode{x1D63C}(t)$
into a time-invariant operator
$\unicode{x1D647}$
and a time-periodic operator
$\unicode{x1D642}(t)$
that depends on
$\boldsymbol{Q}(t)$
(Islam & Sun Reference Islam and Sun2024). Then we expand
$\unicode{x1D642}(t)$
into a Fourier series as
$\unicode{x1D642}(t) = \sum _{k=-\infty }^{\infty } {\skew 3\hat {\unicode{x1D642}}}_k \mathrm{e}^{\mathrm{i} k\omega _0 t}$
. Here, we model the spanwise-homogeneous forcing and the corresponding post-transient response in the frequency domain using the exponentially modulated periodic signal (Wereley & Hall Reference Wereley and Hall1990) as
\begin{align} \boldsymbol{h}'(\boldsymbol{x},t) = \mathrm{e}^{\mathrm{i}\gamma \omega _0 t} \sum _{\beta } \sum _{m=-\infty }^{\infty } \hat {\boldsymbol{h}}'_{\beta ,m}(x,y) \mathrm{e}^{\mathrm{i}(\beta z+ m\omega _0 t)}, \\[-28pt] \nonumber \end{align}
\begin{align} \boldsymbol{q}'(\boldsymbol{x},t) = \mathrm{e}^{\mathrm{i}\gamma \omega _0 t} \sum _{\beta } \sum _{m=-\infty }^{\infty } \hat {\boldsymbol{q}}'_{\beta ,m}(x,y) \mathrm{e}^{\mathrm{i}(\beta z+ m\omega _0 t)}, \\[0pt] \nonumber \end{align}
where
$\gamma ,\beta$
are real numbers and
$m$
is an integer. Substituting the Fourier expansions of
$\unicode{x1D642}(t), \hat {\boldsymbol{q}}'(t),$
and
$\hat {\boldsymbol{h}}'(t)$
into (3.1) we obtain
\begin{align} \mathrm{i}(\gamma +m)\omega _0 \hat {\boldsymbol{q}}'_{\beta ,\gamma +m} = \unicode{x1D647}\hat {\boldsymbol{q}}'_{\beta ,\gamma +m} + \sum _{l=-\infty }^{\infty } {\skew 3\hat {\unicode{x1D642}}}_{m-l} \hat {\boldsymbol{q}}'_{\beta ,\gamma +l} + \hat {\boldsymbol{h}}'_{\beta ,\gamma +m}, \end{align}
which represents a system of infinitely coupled equations where perturbation
$\hat {\boldsymbol{q}}'_{\beta ,\gamma +m}$
is coupled with
$\hat {\boldsymbol{q}}'_{\beta ,\gamma +l}$
through the base flow at frequency
$(m-l)\omega _0$
for a constant spanwise wavenumber
$\beta$
. The infinite-dimensional coupled system of equations in (3.8) can be compactly expressed in matrix form as
where
\begin{align} \unicode{x1D64F}(\beta ) = \left [ \begin{array}{ccccc} \ddots & \vdots & \vdots & \vdots & \substack{\quad \boldsymbol{\cdot}\\[5pt] \,\,\,\boldsymbol{\cdot}\\[5pt] \boldsymbol{\cdot}} \\[5pt] \displaystyle \dots & \unicode{x1D64D}_{-1}^{-1}& {\skew 3\hat {\unicode{x1D642}}}_{-1}& {\skew 3\hat {\unicode{x1D642}}}_{-2} &\dots \\[5pt] \displaystyle \dots & {\skew 3\hat {\unicode{x1D642}}}_1 & \unicode{x1D64D}_{0}^{-1}& {\skew 3\hat {\unicode{x1D642}}}_{-1} &\dots \\[5pt] \displaystyle \dots & {\skew 3\hat {\unicode{x1D642}}}_2& {\skew 3\hat {\unicode{x1D642}}}_1 & \unicode{x1D64D}_{1}^{-1} &\dots \\[5pt] \displaystyle \substack{\quad \boldsymbol{\cdot}\\[5pt] \,\,\,\boldsymbol{\cdot}\\[5pt] \boldsymbol{\cdot}} & \vdots & \vdots & \vdots & \ddots \end{array} \right ] , \\[-28pt] \nonumber \end{align}
\begin{align} \hat {\mathcal Q}_{\beta ,\gamma } = \left [ \begin{array}{c} \vdots \\[8pt] \hat {\boldsymbol q}'_{\beta ,\gamma -1}\\[8pt] \hat {\boldsymbol q}'_{\beta ,\gamma }\\[8pt] \hat {\boldsymbol q}'_{\beta ,\gamma +1}\\[8pt] \vdots \end{array} \right ], \quad \hat {\mathcal F}_{\beta ,\gamma } = \left [ \begin{array}{c} \vdots \\[8pt] \hat {\boldsymbol h}'_{\beta ,\gamma -1}\\[8pt] \hat {\boldsymbol h}'_{\beta ,\gamma }\\[8pt] \hat {\boldsymbol h}'_{\beta ,\gamma +1}\\[8pt] \vdots \end{array} \right ], \\[0pt] \nonumber \end{align}
and
$\unicode{x1D64D}^{-1}_k = (-\mathrm{i}k\omega _0\boldsymbol{I}+\unicode{x1D647}+{\skew 3\hat {\unicode{x1D642}}}_0)$
. We note that, for an unforced time-periodic base flow, there exists a marginally stable eigenvalue of
$\unicode{x1D64F}(\beta =0)$
whose associated eigenmode aligns with the time derivative of the base flow
$\mathrm{d}\hat {\boldsymbol{Q}}/\mathrm{d}t$
. If the system is forced near the frequency of this marginal eigenmode, it will induce a permanent response proportional to
$\mathrm{d}\hat {\boldsymbol{Q}}/\mathrm{d}t$
, which can be isolated by incorporating a projection operator during the SVD computation, as detailed in the study of Padovan & Rowley (Reference Padovan and Rowley2022). Moreover, if the base flow
$\boldsymbol{Q}(t)$
is an exact solution of the NSE, forcing exactly at the marginal eigenvalue frequency (i.e.
$\gamma =0$
in (3.9)) may render the problem ill posed. In such a case, the projection operators (Padovan & Rowley Reference Padovan and Rowley2022) can also be used when computing the SVD of the harmonic resolvent operator using a randomised algorithm to avoid numerical difficulties. However, since the current base flow
$\boldsymbol{Q}(t)$
is not an exact solution of the NSE, the use of projection operators is not essential in the present study. We then define the harmonic resolvent operator as
$\unicode{x1D643}(\beta ,\gamma )=[\mathrm{i}\gamma \omega _0\unicode{x1D644}-\unicode{x1D64F}(\beta )]^{-1}$
that acts on any given input
$\mathcal{F}_{\beta ,\gamma }$
to give the output
$\mathcal{Q}_{\beta ,\gamma }$
.
3.3. Selection of frequency set for harmonic resolvent analysis
Although theoretically, we can assume an infinite number of harmonics for the Fourier expansions of the base flow
$\boldsymbol{Q}(t)$
and perturbations
$\boldsymbol{q}'(t), \boldsymbol{h}'(t)$
, in practical computation, we truncate them to a finite size to keep the computational expense tractable. Henceforth, we will assume a finite set of base-flow frequencies
$k\omega _0\in \varOmega _b=\{-N_b,\dots ,-1,0,1,\dots ,N_b\}\omega _0$
with
$2N_b+1$
harmonics for the Fourier expansion of
$\boldsymbol{Q}(t)$
and consequently of
$\boldsymbol{G}(t)$
. For perturbations, we will consider a finite set of frequencies
$\varOmega _{\gamma } = \gamma \omega _0+ m\omega _0$
with
$m\omega _0\in \{-N_h,\dots ,-1,0,1,\dots ,N_h\}\omega _0$
resulting in
$2N_h+1$
harmonics for the expansions of
$\boldsymbol{q}'(t)$
and
$\boldsymbol{h}'(t)$
in (3.7). For fluid flow,
$\boldsymbol{Q}(t)$
can usually be approximated by some dominant large-scale motion in the flow. It can be represented in the frequency domain with its angular frequency
$\omega _0$
and a few harmonics, yielding
$N_b\leqslant N_h$
. The final problem involves an operator
$\unicode{x1D64F}(\beta )$
with dimension
$N_p\times N_p$
, where
$N_p=5\times N\times (2N_h+1))$
and
$N$
is the number of discrete grid points.
In HRA, we seek the input
$\hat {\mathcal{F}}_{\beta ,\gamma }$
corresponding to a set of temporal frequencies
$\varOmega _{\gamma }$
and constant wavenumber
$\beta$
that maximises the energetic response
$\hat {\mathcal{Q}}_{\beta ,\gamma }$
over the same set of frequencies and the wavenumber. The optimisation problem can be shown to result in an SVD of the weighted harmonic resolvent operator (Islam & Sun Reference Islam and Sun2024), giving
where the matrix
$\unicode{x1D652}= \mathrm{blkdiag}\{\unicode{x1D649}\}$
contains the Chu’s norm weights along the main diagonal, matrix
$\unicode{x1D648}$
converts the primitive perturbation variables in conservative form in the frequency domain (Islam & Sun Reference Islam and Sun2024) and
$\boldsymbol{\varSigma }=\text{diag}(\sigma _1,\sigma _2,\dots )$
contains the ranked singular values. The forcing modes at the set of temporal frequencies
$\varOmega _{\gamma }$
and wavenumber
$\beta$
correspond to the columns of
$\unicode{x1D651}=\unicode{x1D652}^{-1/2}\kern2pt \tilde {\kern-2pt \unicode{x1D651}}$
, and the response modes at the same frequencies and wavenumber are the columns of
$\unicode{x1D650}=\unicode{x1D652}^{-1/2}\kern2pt \tilde {\kern-2pt \unicode{x1D650}}$
.
3.4. Numerical strategies for the resolvent analyses
To compute the base flow
$\boldsymbol{Q}(t)$
about which linearisations are done, we advanced the DNS described in § 2 in time until the initial transient period was over. We collected
$N_s=3000$
snapshots of spanwise-averaged flow state variables
$\boldsymbol{q}(x,y,t)$
spanning over a non-dimensional period of
$t\tilde U_{\infty }/D=120$
. We took the dominant frequency of oscillation in the cavity, i.e. the angular frequency
$\omega _0 = (2\pi \tilde {U}_{\infty }/D)St_{\textrm{II}}$
of the Rossiter mode II, as the fundamental frequency for approximating the base flow
$\boldsymbol{Q}(t)$
. Then, we evaluated the normalised Fourier coefficients of the conservative state variables
$\hat {\boldsymbol{Q}}_k$
at frequencies
$k\omega _0$
as
\begin{align} \hat {\boldsymbol{Q}}_k(x,y) = \frac {1}{N_s} \sum _{j=0}^{N_s-1} \boldsymbol{q}(x,y,j) \mathrm{e}^{-\mathrm{i}k\omega _0 j\Delta t}, \end{align}
where
$k\omega _0\in \varOmega _b=\{-2,-1,0,1,2\}\omega _0$
are the set of base-flow frequencies. A set of perturbation frequencies
$\varOmega _{\gamma }$
with harmonics up to
$N_h=5$
will be considered. For
$k=0$
in (3.12), we obtained the spanwise- and time-averaged base flow
$\overline {\boldsymbol{Q}}$
, also referred to as the mean flow, which is used in the CRA.
We interpolate the base-flow data onto a computational grid with streamwise extent
$x/D \in [-2.4, 14]$
and wall-normal extent
$y/D \in [-1, 8]$
to generate the linear operators. Approximately
$ N=53\,000$
grid points are used to discretise the domain, with mesh refinement near the wall and the cavity. The cavity region is resolved using
$101\times 51$
grid points. Grid refinement to
$151\times 76$
points in the cavity region yields negligible differences in the results. We impose a no-slip adiabatic condition for the perturbations, i.e.
$\hat {\boldsymbol{u}}'=0$
and
$\partial _n T'=0$
, at the walls and cavity surface, where
$\boldsymbol{n}$
is the unit normal vector at the surface. A sponge zone within a
$1\hbox{-}\textrm{D}$
extent from the inflow,
$2\hbox{-}\textrm{D}$
from the top boundary and
$3\hbox{-}\textrm{D}$
from the outflow is applied to bring the perturbation values to zero.
The discretised linear operator for the CRA has size of the order of
$\mathcal{O}(10^5)$
. For the HRA, the size of the linear operator is of order
$\mathcal{O}(10^6)$
. Thus, to efficiently compute the SVD of such large operators, we use a randomised algorithm (Ribeiro et al. Reference Ribeiro, Yeh and Taira2020). The algorithm was implemented in an in-house solver that uses the PETSc (Balay et al. Reference Balay2019) and SLEPc (Hernandez et al. Reference Hernandez, Roman and Vidal2005) libraries for parallelisation. The linear equations in the algorithm are solved directly via a parallel lower–upper decomposition of the sparse linear operators distributed across multiple CPUs using the MUMPS library (Amestoy et al. Reference Amestoy, Duff, L’Excellent and Koster2000). The code used for the CRA was validated for a steady base flow in our earlier study (Sun Reference Sun2017; Sun et al. Reference Sun, Taira, Cattafesta and Ukeiley2017). The HRA code was validated against the airfoil flow results of Padovan et al. (Reference Padovan, Otto and Rowley2020), with details provided in Islam & Sun (Reference Islam and Sun2024). We have used
$10$
random test vectors for the SVD calculation with the randomised algorithm, which we found sufficient to obtain converged results.
4. Optimal perturbations about the mean flow
We begin our analysis by performing a CRA, using the spanwise and time-averaged flow
$\overline {\boldsymbol{Q}}(x,y)$
as the base state. The results are crucial for understanding the origin and nature of the different linear instability mechanisms surrounding the cavity. Meanwhile, the results will serve as a benchmark for the forthcoming analysis, which will involve disturbance evolution around a time-periodic base flow.
As a precursor to the CRA, we first compute the eigenvalue spectrum of the linear operator
$\boldsymbol{A}(\overline {Q},\beta )$
. The objective is to find the presence of any unstable eigenvalues and, if they exist, shift the evaluation axis of the resolvent analysis away from the unstable eigenvalues using the discounting method (Yeh & Taira Reference Yeh and Taira2019; Liu et al. Reference Liu, Sun, Yeh, Ukeiley, Cattafesta and Taira2021). We note that
$\overline {\boldsymbol{Q}}$
is a spanwise- and time-averaged state of the flow, which is not a fixed point of the NSE and therefore departs from the fundamental assumption of a linear stability analysis. Here, the eigenvalue spectrum characterises the property of the operator
$\boldsymbol{A}(\overline {Q},\beta )$
itself for this particular choice of base flow
$\overline {\boldsymbol{Q}}$
, rather than the conventional stability properties associated with an equilibrium flow state. Consequently, the actual values of the real component
$\lambda _r D/2\pi \tilde U_{\infty }$
of the eigenvalues, which classically defines the growth/decay of perturbations, do not carry the same meaning. We still characterise the eigenvalues with
$\lambda _r D/2\pi \tilde U_{\infty }\gt 0$
as unstable in the sense that the global mode associated with those eigenvalues is already amplified in the nonlinear flow or prone to amplification. The imaginary component
$St=\lambda _i D/2\pi \tilde U_{\infty }$
of the eigenvalues, which denotes the frequency of the eigenmode, however, is not meaningless, as it can match well with the frequency of dominant physical phenomena in the nonlinear flow. The real and imaginary components of the non-dimensional eigenvalues of the linear operator for a range of spanwise wavenumbers
$\beta D\in [0,4\pi ]$
are shown in figure 3(a). For 2-D perturbations (
$\beta D=0$
), we find the presence of unstable eigenvalues associated with the Rossiter modes at frequencies
$St_{\textrm{I}}=0.206$
and
$St_{\textrm{II}}=0.36$
(Sun et al. Reference Sun, Taira, Cattafesta and Ukeiley2017), of which the eigenvalue with frequency
$St_{\textrm{II}}$
has a real part close to zero. The frequency
$St_{\textrm{II}}$
obtained from the real part of the eigenvalue agrees well with the dominant oscillation frequency in the nonlinear flow simulation. At frequencies less than approximately an order of magnitude of the Rossiter modes, we can locate an unstable branch of eigenvalues around
$St_{ii}=0.025$
. These eigenvalues are unstable for the spanwise wavenumber within the range
$\beta D\in [1.5,2.75]\pi$
and are associated with the centrifugal instability mechanism in the recirculation region inside the cavity (Bres & Colonius Reference Bres and Colonius2008; Sun et al. Reference Sun, Taira, Cattafesta and Ukeiley2017).
(a) Eigenspectrum of the operator
$\unicode{x1D63C}(\overline {\boldsymbol{Q}},\beta )$
. (b) The optimal singular value (
$\sigma _{1,\textit{CR}}$
) map in the spanwise wavenumber (
$\beta D$
) and frequency (
$St$
) space. The square of
$\sigma _{1,\textit{CR}}$
represents the gain of perturbation amplification about the spanwise- and time-averaged base flow.

Due to the presence of eigenvalues with positive real parts in
$\unicode{x1D63C}(\overline {\boldsymbol{Q}},\beta )$
, we perform the CRA using the discounting approach (Jovanovic Reference Jovanovic2004; Sun et al. Reference Sun, Liu, Cattafesta, Louis, Ukeiley and Taira2020) with
$\tilde {\kappa }=0.005$
, where
$\tilde {\kappa }=\kappa D/(2\pi \tilde {U}_\infty )$
, which exceeds the maximum value of the real part of all eigenvalues. A comparison between the optimal singular values
$\sigma _{1,\textit{CR}}$
obtained using
$\tilde {\kappa }=0$
and
$\tilde {\kappa }=0.005$
for
$\beta D=2\pi$
within the frequency range
$St\in [0,0.15]$
is provided in Appendix B. The results remain qualitatively the same, with the exception of a local elevation of
$\sigma _{1,\textit{CR}}$
near frequencies corresponding to eigenvalues with real parts close to zero. We retain
$\tilde {\kappa }=0.005$
in the subsequent analyses, as it regularises the resolvent operators near marginally stable or unstable eigenvalues and ensures consistency across all three resolvent analyses performed in the current study. We then conduct a parametric study to identify the frequency and spanwise wavenumber of the dominant non-modal linear amplification of perturbation about the stationary base flow using the CRA, considering pairs of frequencies and spanwise wavenumbers within the ranges
$St\in [0,0.5]$
and
$\beta D\in [0,4\pi ]$
, respectively. In figure 3(b), we show the contour map of the square root of the optimal gain, that is, the first singular value (
$\sigma _{1,\textit{CR}}$
) of the CR operator in the wavenumber (
$\beta D$
) and frequency (
$St$
) space. We denote several noticeable disturbance amplification regions in the map and provide the corresponding value of
$\sigma _{1,\textit{CR}}$
in figure 3(b). Based on their location in
$\beta D$
–
$St$
space, we can identify three different classes of disturbance amplification.
-
(i) Two-dimensional (
$\beta D=0$
) Rossiter modes at frequencies
$St_I = 0.205$
(denoted by
$A$
) and
$St_{\textrm{II}}=0.36$
(denoted by
$B$
). Among them, the Rossiter mode II is the dominant mechanism in the nonlinear flow, while the Rossiter mode I frequency is only weakly present. -
(ii) Amplification of 3-D (
$\beta D\neq 0$
) travelling-wave instabilities at
$(\beta D, St)=(2\pi ,0.025)$
(denoted by
$C$
), which we can distinctly locate in the frequency spectrum of the nonlinear flow in figure 1(b). -
(iii) Three-dimensional (
$\beta D\neq 0$
) stationary (
$St=0$
) perturbation amplification (denoted by
$D$
). The optimal gains (
$\sigma ^2_{1,\textit{CR}}$
) for this instability class are prominent within the same wavenumber range as the travelling wave at frequency
$St_{ii}=0.025$
. However, for a particular wavenumber in
$\beta D\in [1.5,2.74]\pi$
, these steady perturbations are suboptimal compared with the travelling-wave perturbations.
(a,b) Streamwise variation of Chu’s energy density
$E$
, and (c–e) isosurfaces of the optimal forcing and response modes at (
$\beta D, St$
) =
$(0.0,0.36),(2\pi ,0.025),(2\pi ,0.0)$
. The forcing and response modes are plotted at levels
$\pm 0.2\max (|\mathcal{R}\{\boldsymbol{\varPhi }_{1,\hat {u}'}\}|)$
(yellow: positive, black: negative) and
$\pm 0.25\max (|\mathcal{R}\{\boldsymbol{\varPsi }_{1,\hat {u}'}\}|)$
(red: positive, blue: negative), respectively.

Figure 4. Long description
Panel A: A line graph shows the streamwise variation of energy density for forcing. The x-axis is labeled x/D and the y-axis is labeled E(x). Three lines are plotted: a solid black line, a dashed blue line, and a dashed-dotted orange line. Panel B: Another line graph displays the streamwise variation of energy density for response. The axes are labeled similarly to Panel A. Panel C: A 3-D visualization shows isosurfaces of the optimal forcing mode, with yellow representing positive values and black representing negative values. Labels indicate the presence of K-H and T-S waves. Panel D: A 3-D visualization depicts the response mode with red representing positive values and blue representing negative values. Panel E: Another 3-D visualization shows the response mode with streaks, using the same color scheme as Panel D.
To understand the underlying physical mechanism of the identified instability waves, we look into the streamwise variation of the integrated Chu’s energy density of the optimal forcing and response modes in figure 4(a,b) obtained using
\begin{align} E(x) = \frac {1}{2} \int _y \left [\frac {\overline T}{\gamma \overline \rho } |\hat {\rho }'|^2 + \overline \rho (|\hat {u}'|^2+|\hat {v}'|^2+|\hat {w}'|^2)+\frac {\overline \rho }{\gamma (\gamma -1) \overline T}|\hat {T}'|^2\right ] \mathrm{d}y. \end{align}
Integrating
$E(x)$
along the streamwise direction yields unity by construction. The spatial mode shapes of the optimal forcing/response are also shown alongside in figure 4(c,e). The forcing energy of the planar instability wave, denoted by
$B$
with
$(\beta D, St)=(0.0,0.36)$
, is mostly concentrated upstream of the cavity leading edge. The energy in response gradually increases across the cavity length, indicating a convective nature of perturbation amplification. The response modal structures at
$(\beta D, St)=(0.0,0.36)$
in figure 4(c) show that the instability mechanism in the shear-layer region is associated with the Kelvin–Helmholtz (K–H) waves that propagate downstream. These K–H waves interact with the upstream-propagating acoustic waves within the cavity, forming an unstable Rossiter mode. Downstream of the trailing edge, the modal structures near the surface resemble the Tollmien–Schlichting (T–S) wave typically found in wall-bounded shear flows (Schmid & Henningson Reference Schmid and Henningson2012). The amplification of T–S waves is facilitated by the Orr mechanism (Orr Reference Orr1907; Symon et al. Reference Symon, Rosenberg, Dawson and McKeon2018), which is evident from the tilting of the forcing and response structures against and along the mean shear direction, respectively. The secondary instability of the T–S waves is one of the different ways that can lead to the laminar-to-turbulent flow transition in the boundary layer (Kachanov & Levchenko Reference Kachanov and Levchenko1984; Herbert Reference Herbert1988). The forcing and response energy of the travelling wave, denoted by
$C$
with
$(\beta D, St)=(2\pi ,0.025)$
, are mostly confined within the extent of the cavity. This is also evident from the forcing and response mode structures in figure 4(d). The response mode structures are located in the recirculating flow region inside the cavity, and the instability mechanism is due to a centrifugal effect (Bres & Colonius Reference Bres and Colonius2008). Another class of instability, which is stationary, has most of its energy in forcing located within the cavity, as shown for
$(\beta D, St)=(2\pi ,0.0)$
in figure 4(a). The response energy of this perturbation is amplified within the cavity and persists after the trailing edge. As evident in figure 4(e), the response modal structures at
$(\beta D, St)=(2\pi ,0.0)$
are present both in the shear layer and inside the cavity. The elongated structures after the trailing edge resemble streaks observed in wall-bounded shear flows such as the Blasius boundary layer (Monokrousos et al. Reference Monokrousos, Åkervik, Brandt and Henningson2010; Rigas et al. Reference Rigas, Sipp and Colonius2021). The existence of a stationary (
$St=0.0$
) branch of eigenvalues has been noted in the works of Bres & Colonius (Reference Bres and Colonius2008) and de Vicente et al. (Reference de Vicente, Basley, Meseguer-Garrido, Soria and Theofilis2014), the activity of which is mainly confined within the cavity. To verify whether the structures after the trailing edge are streaks, we further look into the streamwise variation of the disturbance energy in the three velocity components of the optimal response at
$(\beta D, St)=(2\pi ,0.0)$
in figure 5(a). We observe that the response energy after the trailing edge is dominated by the streamwise-velocity component (
$\hat {u}'$
) compared with the other two components (
$\hat {v}',\hat {w}'$
), which is a salient characteristic of streaks (Schmid et al. Reference Schmid, Henningson and Jankowski2002; Monokrousos et al. Reference Monokrousos, Åkervik, Brandt and Henningson2010). The generation of streaks through a linear non-modal lift-up mechanism (Landahl Reference Landahl1980; Symon et al. Reference Symon, Rosenberg, Dawson and McKeon2018) involves optimal forcing in the form of streamwise rolls (i.e. vorticity). To figure out whether such a mechanism is at play for the generation of the streaks, we show, in figure 5(b), the contours of the streamwise-velocity response superimposed with the streamwise vorticity forcing in the
$y$
–
$z$
plane at the streamwise locations
$x/D=2.05$
and
$6.0$
. At both locations, we observe that the streamwise-elongated streaky perturbations are induced by counter-rotating streamwise vortices located between alternating high- and low-speed streamwise-velocity perturbations, confirming that the amplification mechanism is the lift-up effect.
(a) Streamwise variation of the energy density in three velocity components of the optimal CR response mode, and (b) planar (
$y$
–
$z$
) view of the spatial structures of the optimal streamwise-velocity response (filled contour) and streamwise vorticity forcing (contour lines; solid positive, dashed negative), at
$(\beta D, St)=(2\pi ,0.0)$
.

Figure 5. Long description
Panel A: A line graph shows the streamwise variation of the energy density in three velocity components of the optimal CR response mode. The x-axis represents the streamwise distance normalized by diameter (x/D), and the y-axis represents the energy density. The blue solid line represents the streamwise velocity component (u’), the red dashed line represents the wall-normal velocity component (v’), and the orange dashed line represents the spanwise velocity component (w’). Panel B: Two contour plots show the planar view of the spatial structures of the optimal streamwise-velocity response and streamwise vorticity forcing at specific streamwise locations. The top plot is at x/D = 2.05, and the bottom plot is at x/D = 6.0. The filled contours represent the streamwise-velocity response (Ψ1, û), with red indicating positive values and blue indicating negative values. The contour lines represent the streamwise vorticity forcing, with solid lines for positive values and dashed lines for negative values.
In summary, the CRA reveals that the planar waves (
$\beta D=0$
) at the Rossiter mode frequencies are the most amplified perturbations about the mean, i.e. spanwise- and time-averaged flow. The perturbations take the form of K–H instability in the separated shear layer over the cavity and T–S waves in the boundary layer after the trailing edge. A modal 3-D travelling-wave perturbation is present within the cavity due to a centrifugal instability. Near the cavity trailing edge, a non-modal lift-up mechanism generates stationary, streaky perturbations that exist after the trailing edge. In § 5 we will study the amplification of perturbations evolving around a time-periodic base flow.
5. Optimal perturbations about the time-periodic base flow
In this section, we apply the MRA and HRA to understand how base-flow unsteadiness affects amplified perturbations within and after the cavity through different linear mechanisms. To perform both resolvent analyses, we first compute the 2-D time-periodic base flow from the spanwise-averaged temporal flow snapshots of the DNS using the method discussed in § 3.4. Note that we will use the non-dimensional frequency expressed using the Strouhal number
$St=\omega D/2\pi \tilde {U}_{\infty }$
instead of the angular frequency
$\omega$
throughout this section. Thus the set of frequencies
$\varOmega _b= \{-2,-1,0,1,2\}St_{\textrm{II}}$
, where
$St_{\textrm{II}}=0.36$
is the Rossiter mode frequency, constitute the base flow
$\boldsymbol{Q}(t)$
. The set of perturbation frequencies considered here is
$\varOmega _{\gamma } = St_{\gamma } + \{-5,\dots ,-1,0,1,\dots ,5\}St_{\textrm{II}}$
, where
$St_{\gamma }=\gamma \omega _0 D/2\pi \tilde {U}_{\infty }$
is the centre frequency in the set.
(a) Normalised Floquet exponents
$s$
of the operator
$\unicode{x1D64F}(\beta )$
in the complex plane for
$s_iD/2\pi \tilde {U}_{\infty }\in [0,St_{\textrm{II}}/2]$
. (b) A zoomed plot of Floquet multipliers
$\alpha =\mathrm{e}^{sT_0}$
of
$\unicode{x1D64F}(\beta )$
.

5.1. Harmonic resolvent analysis
We compute the eigenspectrum of the operator
$\unicode{x1D64F}(\beta )$
that precedes the HRA to determine whether a discounting parameter is needed, as in the CRA, due to the presence of unstable eigenvalues. If the time-periodic base flow
$\boldsymbol{Q}(t)$
is an equilibrium state of the NSE, the Floquet–Hill theory can be used to formulate the eigenvalue problem involving the operator
$\unicode{x1D64F}(\beta )$
as a Floquet analysis in the frequency domain (Franceschini et al. Reference Franceschini, Sipp, Marquet, Moulin and Dandois2022). Since the current time-periodic base flow with period
$T_0=D/(St_{\textrm{II}} \tilde {U}_{\infty })$
is an approximate solution, the eigenvalues of
$\unicode{x1D64F}(\beta )$
are an approximation of the Floquet exponents, and their growth rate does not carry the same rigorous interpretation as in the classical Floquet analysis performed about a true periodic base flow. Nonetheless, in the following discussion, we refer to the eigenvalues of
$\unicode{x1D64F}(\beta )$
as the Floquet exponents (
$s$
), the properties of which are specific to this choice of
$\boldsymbol{Q}(t)$
. In figure 6(a), we show the complex-valued Floquet exponents obtained for a range of non-dimensional spanwise wavenumbers (
$\beta D$
). We remark here that the Floquet exponents repeat along the imaginary axis at an interval of
$St_{\textrm{II}}$
, that is, the Floquet exponents on a section of
$s_iD/2\pi \tilde {U}_{\infty }\in [(2k-1)St_{\textrm{II}}/2,(2k+1)St_{\textrm{II}}/2]$
, where
$k$
is an integer, uniquely represent the spectrum of
$\unicode{x1D64F}(\beta )$
(Wereley & Hall Reference Wereley and Hall1991; Franceschini et al. Reference Franceschini, Sipp, Marquet, Moulin and Dandois2022). Here, we consider
$k=0$
, and show the Floquet spectrum within the interval
$s_i D/2\pi \tilde {U}_{\infty }\in [0,St_{\textrm{II}}/2]$
in the figure 6(a). We find the presence of two unstable (
$s_rD/2\pi \tilde {U}_{\infty }\gt 0.0$
) branches of Floquet exponents located around
$s_iD/2\pi \tilde {U}_{\infty }=0.0$
and
$0.025$
. The equivalent representation of the eigenvalues of
$\unicode{x1D64F}(\beta )$
using the Floquet multipliers
$\alpha =\mathrm{e}^{sT_0}$
in figure 6(b) again shows two unstable (
$|\alpha |\gt 1.0$
) branches. For 2-D perturbations (
$\beta D=0$
), all the modes are stable. Since the time-periodic base flow in the present case is self-sustained without external forcing, a marginally stable Floquet mode exists for
$\beta D = 0$
, as shown in figure 6(b), with a Floquet multiplier
$|\alpha | \approx 0.99$
. The corresponding eigenmode is aligned with
$\mathrm{d}\hat {\boldsymbol{Q}}/\mathrm{d}t$
, as confirmed by a weighted projection coefficient of 0.95 between the two.
(a) The optimal singular value (
$\sigma _{1,\textit{HR}}$
) map in the spanwise wavenumber (
$\beta D$
) and frequency (
$St_{\gamma }$
) space, where
$St_{\gamma }$
is the centre frequency of the set
$\varOmega _{\gamma }$
. (b) Map of the projection coefficient (
$\varGamma$
) between the optimal response mode
$\boldsymbol{U}_{1,\textit{HR}}$
and the time derivative of base flow
$\text{d}\hat {\boldsymbol{Q}}/{\text{d}t}$
.

Since the operator
$\unicode{x1D64F}(\beta )$
has eigenvalues with positive real parts, we modify the harmonic resolvent operator as
$\unicode{x1D643}(\beta ,\gamma ,\kappa )=[(\kappa +\mathrm{i}\gamma \omega _0)\unicode{x1D644}-\unicode{x1D64F}(\beta )]^{-1}$
using the discounting approach, where we choose the value
$\tilde {\kappa }=0.005$
, which is higher than the non-dimensional positive real part of all the Floquet exponents, and the same as the discounting used in the CRA. We conduct the discounted HRA over a range of spanwise wavenumbers
$\beta D\in [0,4\pi ]$
with a
$0.25\pi$
interval. Similar to the Floquet exponents, the singular values of the harmonic resolvent operator are also periodic with an interval of
$St_{\textrm{II}}$
, and thus, we vary
$St_{\gamma }$
in the range
$[0, St_{\textrm{II}}/2]$
for a particular wavenumber to obtain the unique singular values. The distribution of the first singular values (
$\sigma _{1,\textit{HR}}$
) of
$\unicode{x1D643}(\beta ,\gamma ,\kappa )$
across the range of wavenumbers (
$\beta D$
) and centre frequencies (
$St_{\gamma }$
) corresponding to a set
$\varOmega _{St_{\gamma }}$
are shown in figure 7(a). Unlike CRA, here,
$\sigma _{1,\textit{HR}}$
represents the square root of the optimal gain between input and output, comprising frequencies in a set
$\varOmega _{\gamma }$
rather than a single frequency (
$St$
). For planar wave (
$\beta D=0$
) perturbations, the highest value of
$\sigma _{1,\textit{HR}}$
corresponds to the frequency set with centre frequency
$St_{\gamma }=0$
. The optimal response (
$\boldsymbol{U}_{1,\textit{HR}}$
) associated with this
$\sigma _{1,\textit{HR}}$
is dominated by the marginally stable Floquet mode aligned with
$\text{d}\hat {\boldsymbol{Q}}/\text{d}t$
, as confirmed by the projection coefficient
$\varGamma = |\boldsymbol{U}_{1,\textit{HR}}^* \unicode{x1D652} \hat {\boldsymbol{q}}_d|$
shown in figure 7(b), where
$\hat {\boldsymbol{q}}_d$
is a unit-norm vector along
$\mathrm{d}\hat {\boldsymbol{Q}}/\mathrm{d}t$
, i.e.
$||\hat {\boldsymbol{q}}_d||_{\boldsymbol{W}}=1$
. We note that since we perform the HRA with discounting by shifting the evaluation axis away from the unstable poles of
$\unicode{x1D64F}(\beta )$
in the complex plane, the harmonic resolvent operator is rendered well posed. However, without discounting, a projection operator such as that used by Padovan & Rowley (Reference Padovan and Rowley2022) would be necessary to avoid numerical difficulty when forcing exactly at the marginally stable pole location, for example, at
$\beta D=0$
and
$\gamma =0$
here. We emphasise that projecting out the marginal pole has a global effect on the entire pseudospectrum, not only at the position where the pole was removed. Even with discounting, the optimal response at
$\beta D=0$
and for
$St_{\gamma }\in [0,0.05]$
shows significant alignment with
$\text{d}\hat {\boldsymbol{Q}}/\text{d}t$
, as indicated by
$\varGamma \gt 0.9$
in figure 7(b). The same projection coefficient computed for the suboptimal response (
$\boldsymbol{U}_{2,\textit{HR}}$
) yields
$\varGamma \ll 1$
across all values of
$\beta D$
and
$St_\gamma$
considered (not shown here for brevity), confirming that the suboptimal response modes are not at all influenced by the marginally stable Floquet mode.
Amplification of the output at frequency
$(\gamma +j)St_{\textrm{II}}$
by the input at frequency
$(\gamma +k)St_{\textrm{II}}$
through sub-blocks of the harmonic resolvent operator
$\unicode{x1D643}_{j,k}(\beta ,\gamma ,\kappa )$
shown using the quantity
$E_{j,k}$
for (a)
$\gamma =0$
, and (b)
$\gamma =0.07$
at the spanwise wavenumber
$\beta D = 2\pi$
.

The dominant 3-D perturbation (
$\beta D\neq 0$
) amplification belongs to the frequencies in the set with centre frequency
$St_{\gamma }= 0$
and
$St_{\gamma }= 0.025$
. These perturbations are amplified over a range of wavenumbers, with the optimal singular value (
$\sigma _{1,\textit{HR}}$
) increasing to a maximum at
$\beta D=2\pi$
and then decreasing. Because the optimal singular values (
$\sigma _{1,\textit{HR}}$
) computed this way correspond to a discrete set of frequencies
$\varOmega _{\gamma }$
, they are not directly comparable to
$\sigma _{1,\textit{CR}}$
discussed in § 4. The SVD of the sub-blocks of the harmonic resolvent operator
$\unicode{x1D643}_{j,k}(\beta , \gamma ,\kappa )$
, however, provides a useful way to analyse the amplification of perturbation at individual input–output frequency pairs within the set
$\varOmega _{\gamma }$
. Each sub-block
$\unicode{x1D643}_{j,k}(\beta , \gamma , \kappa )$
maps the input at frequency
$(\gamma +k)St_{\textrm{II}}$
to the output at frequency
$(\gamma +j)St_{\textrm{II}}$
, so that the diagonal blocks (
$j=k$
) capture the amplification of same frequency input–output, while off-diagonal blocks (
$j\neq k$
) capture cross-frequency input–output amplification. We emphasise that the amplification captured by each sub-block already accounts for interactions with the steady and unsteady harmonics of the time-periodic base flow. To quantify the relative contribution of amplification through each block to the total amplification, we define the metric
$E_{j,k}$
as
\begin{align} E_{j,k} = \frac {\sum _{i=1}^5 \sigma _{i}^{2}(\unicode{x1D643}_{j,k}(\beta ,\gamma ,\kappa ))}{\sum _{i=1}^5 \sigma _{i}^{2}(\unicode{x1D643}(\beta ,\gamma ,\kappa ))}, \end{align}
providing a measure of the fraction of total amplification attributable to each input–output frequency pair. The resulting maps of
$E_{j,k}$
at
$\beta D = 2\pi$
for
$\gamma = 0$
and
$\gamma = 0.07$
, corresponding to the centre frequencies
$St_{\gamma }=0$
and
$0.025$
at which the dominant 3-D perturbation amplification occurs, are shown in figure 8. Both maps show that the dominant contribution to the overall amplification within the set is due to the sub-block
$\unicode{x1D643}_{0,0}(\beta , \gamma ,\kappa )$
corresponding to the pair of input–output frequencies
$(St_{\gamma }, St_{\gamma })$
. This further suggests that single-frequency forcing aligned along the optimal forcing of
$\unicode{x1D643}_{0,0}(\beta , \gamma ,\kappa )$
represents an effective input for flow control. However, due to the cross–frequency coupling introduced by the unsteady base-flow harmonics, an input at, for example,
$St_\gamma (k=0)$
also excites responses at neighbouring frequencies separated by
$j St_{\textrm{II}}$
; the extent of this cross-frequency excitation is revealed by the non-negligible off-diagonal entries in the column at the same input index, here
$k=0$
, in the map.
The multi-frequency nature of the HRA input–output framework, while capturing the full effect of the time-periodic base flow, may complicate physical interpretation since the physical forcing responsible for different instability mechanisms is not necessarily confined to a discrete frequency set
$\varOmega _{\gamma }$
. To obtain an approximate LTI characterisation of the amplification by the time-periodic base flow that allows direct comparison with the CRA, we restrict both the input and output to the centre frequency, which is equivalent to performing a MRA (Leclercq & Sipp Reference Leclercq and Sipp2023), as described in the following section.
(a) Schematic showing the application of a frequency prolongation and a restriction operator
$\unicode{x1D64B}_h$
and
$\unicode{x1D64B}_y$
, respectively, on
$\unicode{x1D643}(\beta ,\gamma ,\kappa )$
to get the MR operator
$\unicode{x1D643}_{0,0}(\beta ,\gamma ,\kappa )$
. (b) Map of optimal singular value (
$\sigma _{1,\textit{MR}}$
) of the operator
$\unicode{x1D643}_{0,0}(\beta ,\gamma ,\kappa )$
in wavenumber (
$\beta D$
) and frequency (St) space.

5.2. MRA
The MR operator (Leclercq & Sipp Reference Leclercq and Sipp2023; Bongarzone et al. Reference Bongarzone, Content, Sipp and Leclercq2026), which yields the phase-averaged response to a single-frequency input amplified by the time-periodic base flow, can be obtained from the harmonic resolvent operator by introducing a frequency prolongation operator
$\unicode{x1D64B}_h = \text{diag}(\boldsymbol{0},\dots ,\unicode{x1D644},\dots ,\boldsymbol{0})\in \mathbb{R}^{N_p\times (5 N)}$
and a frequency restriction operator
$\unicode{x1D64B}_y = \text{diag}(\boldsymbol{0},\dots ,\unicode{x1D644},\dots ,\boldsymbol{0})^T\in \mathbb{R}^{(5 N)\times N_p}$
, where
$(\boldsymbol{\cdot })^T$
defines matrix transposition. The operator
$\unicode{x1D64B}_h$
takes an input of size
$5 N\times 1$
and puts it as the centre frequency (
$St_{\gamma }$
) component in an augmented vector of size
$N_p \times 1$
comprising all the frequency components in a set
$\varOmega _{\gamma }$
. Conversely, the operator
$\unicode{x1D64B}_y$
extracts the output at the centre frequency component from a vector of size
$N_p\times 1$
. Then the operator
$\unicode{x1D643}_{0,0}(\beta ,\gamma ,\kappa )$
that maps input–output at the same frequency can be obtained from the harmonic resolvent operator after multiplying by
$\unicode{x1D64B}_y^T$
and
$\unicode{x1D64B}_h$
from left and right, respectively, as shown in figure 9(a). Whereas in CRA, we computed the optimal LTI input–output dynamics about a time-invariant base flow, the forcing and response of
$\unicode{x1D643}_{0,0}(\beta ,\gamma ,\kappa )$
provide an optimal LTI approximation of the input–output dynamics about the time-periodic flow (Leclercq & Sipp Reference Leclercq and Sipp2023). We compute the SVD of the operator
$\unicode{x1D643}_{0,0}(\beta ,\gamma ,\kappa )$
using the same method described in § 3.4. Since the poles of the MR operator are the same as those of the harmonic resolvent operator (Leclercq & Sipp Reference Leclercq and Sipp2023), we use a discounting value of
$\tilde {\kappa }=0.005$
for the MRA, the same as that used for the HRA and CRA. The resulting distribution of the optimal singular values
$\sigma _{1,\textit{MR}}$
in the wavenumber and frequency
$\beta D$
–
$St$
space is plotted in figure 9(b). Here, we show the temporal frequencies of the input in the range
$St\in [0.0,0.18]$
, which allows us to study the mean response amplified by the unsteady base flow evolving at the Rossiter frequency
$St_{\textrm{II}}=0.36$
to low-frequency perturbations. We note that, unlike the leading singular value
$\sigma _{1,\textit{HR}}$
of the harmonic resolvent operator, which is periodic in the input frequency
$St_\gamma$
, the
$\sigma _{1,\textit{MR}}$
of the MR operator is not periodic with respect to
$St$
. Within this temporal frequency range, the 3-D perturbations (
$\beta D\neq 0$
) are amplified more than the 2-D perturbations. In particular, the perturbation amplifications are most pronounced at the temporal frequencies of
$St=0.0$
and
$0.025$
and in the immediate vicinity of them, over a range of spanwise wavenumbers
$\beta D\in [\pi ,3\pi ]$
. We find that the maximum gain (
$\sigma ^2_{1,\textit{MR}}$
) occurs at the spanwise wavenumber
$\beta D = 2\pi$
for both temporal frequencies. We choose this spanwise wavenumber of
$2\pi$
to further investigate the amplification characteristics of perturbations by the stationary and unsteady base flows.
We compare the optimal singular values obtained from the CRA (
$\sigma _{1,\textit{CR}}$
) and the MRA (
$\sigma _{1,\textit{MR}}$
) within the frequency range
$St\in [0.0,0.18]$
at
$\beta D =2\pi$
in figure 10(a). Both analyses using the stationary and time-periodic base flows, respectively, show peak amplification at the centrifugal instability frequency, as indicated by the peak at
$St=0.025$
, where (
$\sigma _{1,\textit{MR}}\gt \sigma _{1,\textit{CR}}$
). Furthermore, a distinct peak at
$St=0$
is present in the optimal singular value from MRA but absent in the CRA, indicating strong amplification of stationary perturbations by the unsteady base flow. The gain difference between the CRA and MRA at these frequencies can be attributed to the additional contribution of the unsteady base flow evolving at the Rossiter frequency (
$St_{\textrm{II}}$
) and its harmonics.
(a) The variation of optimal singular values obtained from the CRA and MRA as a function of
$St\in [0.0,0.18]$
at
$\beta D=2\pi$
. (b) Streamwise variation of the energy density in the three velocity components of the CR response mode (
$1/2\int _y \overline {\rho } |\boldsymbol{\varPsi }_{1,\hat {\boldsymbol{u}}^{\prime }}|^2 \mathrm{d}y$
) and MR mode (
$1/2\int _y \overline {\rho } |\boldsymbol{U}_{1,\textit{MR},\hat {\boldsymbol{u}}^{\prime }}|^2 \mathrm{d}y$
) at
$(\beta D,St)=(2\pi ,0.0)$
. (c,d) Isosurfaces of optimal MR forcing and response mode at
$St=0.025$
and
$0.0$
and wavenumber
$\beta D = 2\pi$
(isosurface levels and colour representations are the same as in figure 4).

Figure 10. Long description
Panel A: A scatter plot shows the variation of optimal singular values obtained from CRA and MRA as a function of St. The x-axis represents St, and the y-axis represents the singular values. The plot includes two data series: one for CRA (square markers) and one for MRA (circle markers). Panel B: A line graph illustrates the streamwise variation of the energy density in the three velocity components of the CR response mode and MR mode at beta D equals 2 pi. The x-axis represents x/D, and the y-axis represents the energy density. The graph includes multiple lines representing different velocity components and modes. Panel C: A 3-D plot displays isosurfaces of optimal MR forcing and response mode at beta D equals 2 pi and St equals 0.0. The axes represent y/D, x/D, and z/D. Panel D: Another 3-D plot shows isosurfaces of optimal MR forcing and response mode at beta D equals 2 pi and St equals 0.025. The axes represent y/D, x/D, and z/D.
The real parts of the optimal streamwise-velocity forcing and response modes at
$St=0.0$
, computed from the MRA, are shown in figure 10(d). For this stationary perturbation, we observe streamwise-elongated structures extending downstream from the cavity, similar to the CRA mode in figure 4(e). The influence of the unsteady base flow on the modal structures is quantified through the streamwise variation of the response energy of the three velocity components in figure 10(b). As in the CRA, an order-of-magnitude separation between the streamwise-velocity response energy and that of the other two components is maintained after the trailing edge, confirming that the structures remain streaks. However, unlike the CRA mode, a noticeable decrease in
$\hat {u}'$
energy near the trailing edge is observed, followed by a gradual increase that saturates around
$x/D=6.0$
.
Furthermore, we examine the
$y$
–
$z$
planar view of the stationary streamwise-velocity response, along with the superimposed streamwise vorticity forcing at
$x/D =2.05$
and
$6.0$
in figure 11(a,c). The forcing and response show a spatial phase shift along the spanwise direction, with counter-rotating vortices located between the velocity response structures. However, the structures are slightly inclined along the
$y$
-direction compared with the CRA modes in figure 5(b). In the immediate vicinity of the trailing edge (
$x/D=2.05$
), the prominent response structures are elevated from the wall in the cross-stream direction (
$y$
) in contrast to the CRA mode. Further downstream, the response structures at
$x/D=6.0$
in the cross-stream direction exhibit two maxima, resulting in a two-lobe structure, a feature not observed in the CRA mode. A similar two-lobe structure in the cross-stream direction of the MRA response mode has also been reported for jet flows by Bongarzone et al. (Reference Bongarzone, Content, Sipp and Leclercq2026). The differences relative to the CRA modes reflect the contribution of the unsteady base-flow harmonics in amplifying perturbations captured by the MRA.
The optimal mode from the MRA at the centrifugal instability frequency (
$St=0.025$
) is shown in figure 10(c). Within the cavity, the modal structures are located along the recirculating region driven by the centrifugal instability. After the trailing edge, streamwise-elongated structures are observed near the boundary layer, which are absent in the CRA mode. The modal structures in the
$y$
–
$z$
plane at
$x/D=2.05$
and
$6.0$
are plotted in figure 11(b,d) to illustrate the streamwise development. Near the trailing edge at
$x/D=2.05$
, there is a spatial phase shift between the modal structures in the top and bottom layers along the
$z$
-direction. Unlike the stationary perturbations, the counter-rotating streamwise vorticity forcing is not located precisely between the high-speed and low-speed velocity perturbations. At
$x/D=6.0$
, the velocity perturbations in the upper and bottom layers are tilted against each other along the
$y$
-direction. Next, we will address the question of how these amplified perturbations arise after the trailing edge due to the interaction of the low-frequency centrifugal perturbation with the unsteady Rossiter base flow.
Planar (
$y$
–
$z$
) view of the spatial structures of the optimal streamwise-velocity response (contour plots) and streamwise vorticity forcing (contour lines; solid positive, dashed negative) obtained from MRA at (a,c)
$(\beta D,St)=(2\pi ,0.0)$
and (b,d)
$(\beta D,St)=(2\pi ,0.025)$
.

5.3. Role of unsteady Rossiter base flow in perturbation amplification
To understand how perturbations are amplified through interactions with the unsteady part of the base flow, we examine the block structure of the harmonic resolvent operator
$ [(\kappa +\mathrm{i}\gamma \omega _0)\unicode{x1D644}-\unicode{x1D64F} ]^{-1}$
, where
$\unicode{x1D64F}$
is given in (3.10a
). We can decompose the inverse of the harmonic resolvent operator as
where
$\unicode{x1D63F}$
contains the main diagonal blocks and
$\unicode{x1D642}$
contains the off-diagonal blocks of
$(\kappa +\mathrm{i}\gamma \omega _0)\unicode{x1D644}-\unicode{x1D64F}$
, with their explicit expressions given in Appendix A. The diagonal blocks in
$\unicode{x1D63F}$
are the inverses of the resolvent operators constructed around the mean Jacobian of the base flow. The off-diagonal blocks in
$\unicode{x1D642}$
are the Jacobians evaluated at the non-zero frequency components of the base flow, representing the unsteady harmonic interactions. We note that, for incompressible flow, the Jacobian about the mean flow and the mean Jacobian are equivalent due to the quadratic nonlinearity, regardless of the strength of the unsteady component of the base flow. In compressible flow, the nonlinearities include cubic terms, and the two operators are therefore not equivalent in general; notable differences may arise if the nonlinearity is strongly non-quadratic.
To understand how energies get redistributed from the input to the other harmonics, following Leclercq & Sipp (Reference Leclercq and Sipp2023) we can express the harmonic resolvent operator in the following form:
where the right-hand side represents a feedback loop between
$\unicode{x1D63F}^{-1}$
and
$\unicode{x1D642}$
, as illustrated in figure 12(a). The operator
$\unicode{x1D63F}^{-1}$
forms the main loop, amplifying the input through the diagonal blocks at each frequency in
$\varOmega _{\gamma }$
, while
$\unicode{x1D642}$
introduces cross-frequency interactions through the feedback path. This feedback loop can be expanded as the Neumann series
where each successive term captures an increasing number of interactions with the harmonics of the unsteady base flow. The first term represents zero interactions with the unsteady base flow and is equivalent to the mean-flow resolvent response, provided the nonlinearity is not strongly non-quadratic; the second term captures the effect of a single interaction with the unsteady harmonics; and so on. For the MRA, the terms on the right-hand side are multiplied by the operators
$\unicode{x1D64B}_y^T$
and
$\unicode{x1D64B}_h$
from the left and right, respectively.
(a) Block diagram representation showing the operator
$\unicode{x1D642}$
as a feedback loop to the main block, consisting of the operator
$\unicode{x1D63F}$
. (b) Optimal streamwise-velocity component of the CR forcing at
$(2\pi ,0.025)$
taken as input and the output at
$(2\pi ,0.025)$
obtained by multiplying (c) by
$\unicode{x1D63F}^{-1}$
, representing the amplification due to the steady part of the base flow, and (d) by the MR operator considering interactions with both the steady and unsteady part of the base flow.

Figure 12. Long description
Panel A: A block diagram showing a feedback loop. The main block contains the steady part of the base flow operator labeled as D inverse. Internal forcing is added to the input, and the response is outputted. The unsteady part of the base flow is labeled as G and interacts with the response. Panel B: A 3-D plot showing the optimal streamwise-velocity component of the CR forcing at a specific input point. The plot has axes labeled from 0 to 10 and -1 to 1. Panel C: A 3-D plot showing the response obtained by multiplying by the steady part of the base flow. The plot has axes labeled from 0 to 10 and -1 to 1. Panel D: A 3-D plot showing the response obtained by the MR operator considering interactions with both the steady and unsteady part of the base flow. The plot has axes labeled from 0 to 10 and -1 to 1.
We note that the convergence of the series in (5.4) is not guaranteed and depends on the spectral radius of
$\unicode{x1D63F}^{-1}\unicode{x1D642}$
. The series converges if either the base-flow unsteadiness is weak or the discounting value (
$\kappa$
) is sufficiently large (Leclercq & Sipp Reference Leclercq and Sipp2023). The terms on the right-hand side of (5.4) can always be computed provided the operator is not evaluated exactly at a pole; however, they lose physical meaning if the series does not converge. To this end, we take the optimal forcing at
$(\beta D,St)=(2\pi ,0.025)$
obtained from the CRA and compute the zeroth-order response through
$\unicode{x1D63F}^{-1}$
, shown in figure 12(b,c). This response is identical in modal structure to that obtained from the CR about the mean flow, with the response mainly concentrated within the cavity, and the ratio of the output to input norm yields a gain consistent with the mean-flow resolvent (CRA) (see table 1). The first-order correction, i.e. the second term of the series, yields a null contribution to the MR response by construction. The second-order correction (third term of the series) degrades alignment with the true MR response mode compared with the zeroth-order response at
$\tilde {\kappa }=0.005$
, indicating that the truncated series does not provide a reliable approximation of the true MRA response at this discounting value. Even at
$ \tilde {\kappa } = 0.05$
, an order of magnitude higher than the value used here, the second-order correction only marginally improves the alignment (see table 1). At the current discounting value
$\tilde {\kappa }=0.005$
, the post-cavity amplification at the centre frequency is therefore best characterised by the true MR response computed directly via SVD, shown in figure 10(d), which captures the combined effect of all harmonic interactions without relying on the series expansion. We further show the response obtained by applying the MR operator to the CR input (cf. figure 12
b) in figure 12(d). The post-cavity structures in this response, absent in the zeroth-order response confined within the cavity, therefore arise from the full effect of the interactions with both steady and unsteady base-flow harmonics.
We remark that, while we find that the additional interactions with the unsteady base flow yield a higher gain (
$\sigma _{1,\textit{MR}}^2$
) than the mean-flow resolvent (CRA) in the present study, this is not universally the case. Bongarzone et al. (Reference Bongarzone, Content, Sipp and Leclercq2026) demonstrated that the MR gain can be lower than the mean-flow resolvent gain in some cases, despite the additional interactions with the unsteady base flow, highlighting that the relationship between base-flow unsteadiness and amplification is not straightforward.
Streamwise-velocity perturbation Fourier modes from the forced 2-D DNS in response to a small-amplitude time-varying volumetric forcing at frequency
$St_{\textrm{II}}$
compared with the suboptimal response mode from the HRA at frequencies 0,
$St_{\textrm{II}}$
and
$2St_{\textrm{II}}$
and the optimal response mode from the CRA at the frequency
$St_{\textrm{II}}$
.

Figure 13. Long description
Panel A: Three line graphs show the streamwise variation of integrated Chus energy density for different frequencies. The x-axis represents the streamwise direction (x/D) and the y-axis represents the energy density. Panel B: Three line graphs display the spatial mode shapes of the optimal forcing/response at different frequencies. The x-axis represents the streamwise direction (x/D) and the y-axis represents the cross-stream direction (y/D). Panel C: Three line graphs illustrate the response modal structures at different frequencies. The x-axis represents the streamwise direction (x/D) and the y-axis represents the cross-stream direction (y/D).
5.4. Comparison of resolvent-based predictions with forced 2-D nonlinear DNS
We perform a 2-D forced nonlinear DNS to examine how the resolvent-predicted response modes compare with the actual nonlinear flow response to a prescribed forcing. The numerical set-up follows our previous study (Islam & Sun Reference Islam and Sun2024). The DNS is performed using a spatial domain of extent
$x/D\in [-5,9]$
and
$y/D\in [-1,9]$
. The domain is discretised using approximately
$0.12\times 10^6$
grid points. The flow conditions are the same as the 3-D DNS. The oscillation in the unforced base flow is dominated by a Rossiter mode II frequency of
$St_{\textrm{II}}=0.37$
. We use the optimal forcing from the CRA at
$St_{\textrm{II}}$
and introduce it as a small-amplitude, time-varying volumetric forcing in the DNS. The forced DNS response is obtained by subtracting the unforced base flow from the forced flow solution, and the resulting perturbation field is decomposed using a temporal Fourier transform to extract the response at the forcing frequency
$St_{\textrm{II}}$
, its first harmonic
$2St_{\textrm{II}}$
and the zeroth frequency component.
We compare the streamwise-velocity perturbation structures at frequencies 0,
$St_{\textrm{II}}$
and
$2St_{\textrm{II}}$
extracted from the DNS with the response modes from the HRA and CRA in figure 13. We note that the forcing frequency
$St_{\textrm{II}}$
belongs to the set
$\varOmega _{0}$
, and the optimal HRA response mode aligns with the time derivative of the base flow
$\mathrm{d}\hat {\boldsymbol{Q}}/\mathrm{d}t$
due to the presence of a marginally stable pole, as discussed in § 5.1, and thus the suboptimal HRA response mode is used for the comparison. At the forcing frequency
$St_{\textrm{II}}$
, the DNS response shows perturbation structures that are well captured by the HRA suboptimal response mode, with the dominant structures concentrated near the cavity trailing surface and extending into the post-cavity shear layer. The CRA response, while capturing the dominant shear-layer structures, shows weaker agreement near the cavity trailing surface and within the cavity, which we attribute to the absence of cross-frequency interactions with the unsteady Rossiter base-flow harmonics in the CRA framework. The close agreement between the DNS and the linear predictions at
$St_{\textrm{II}}$
confirms that the resolvent analyses correctly identify the dominant amplification mechanism at the forcing frequency. At the zeroth frequency component and the harmonic frequency
$2St_{\textrm{II}}$
, the DNS reveals perturbation structures that are well predicted by the HRA but cannot be captured by the CRA due to its assumption of time invariance of the base flow. These comparisons show that even when the DNS is forced with the optimal CRA forcing mode, the HRA predictions align more accurately with the DNS response than those of the CRA, particularly at the zeroth frequency and
$2St_{\textrm{II}}$
, where the CRA framework cannot capture any response.
6. Conclusion
The focus of this study is to uncover the origin and characteristics of the cavity-generated perturbations present in the transitional flow downstream of the cavity. The perturbation amplifications are analysed using CRA, HRA and MRA, obtained by linearising the flow dynamics about a spanwise- and time-averaged flow and a spanwise-averaged unsteady flow oscillating at the Rossiter mode II frequency present in the DNS. The CRA predicts significant linear amplification of perturbations at the Rossiter mode frequencies, associated with the K–H instability in the shear layer, and at frequencies well below the Rossiter modes, associated with the centrifugal instability mechanism within the cavity. In addition, stationary streaks originating near the cavity trailing edge represent a significant non-modal amplification mechanism. The most prominent response structures in the post-cavity region are the 2-D Rossiter modes and 3-D streaky perturbations, while the centrifugal instability response is mainly confined within the cavity and near the trailing edge.
Harmonic and MRAs are employed to understand the role of base-flow unsteadiness in amplifying spanwise-homogeneous 3-D perturbations within and downstream of the cavity. The results reveal that the unsteady Rossiter base flow most strongly amplifies the 3-D steady streaky perturbations. Notable amplification also occurs at the centrifugal instability frequency, leading to the generation of streamwise-elongated structures downstream of the cavity, a feature absent in the CRA, which confines the centrifugal instability response near the cavity. By recasting the unsteady part of the linearised Jacobian as a feedback loop to the steady part, we model the origin of the additional perturbations arising downstream of the trailing edge. Specifically, the unsteady base flow generates internal forcing through interactions with perturbations amplified by the steady flow component, and the subsequent amplification of this internal forcing by the steady flow produces perturbation structures extending downstream of the cavity. The findings not only deepen understanding of traditional cavity studies but also expand the knowledge for potential uses and applications of cavity flow that leverage its downstream flow patterns.
Acknowledgements
This work used the Anvil supercomputer at Purdue University through allocations PHY250015 and PHY250306 from the ACCESS program, which is supported by U.S. National Science Foundation. We also acknowledge the computing resources provided by Syracuse University Research Computing. We thank the anonymous reviewers for helping improve the manuscript.
Funding
This material is based upon work supported by the Air Force Office of Scientific Research under award number FA9550-24-1-0136 (Program Officer: Dr G. Abate).
Declaration of interests
The authors report no conflict of interest.
Data availability statement
The data that support the findings of this study will be made available upon reasonable request.
Appendix A. Expressions of the operators
$\unicode{x1D63F}$
and
$\unicode{x1D642}$
\begin{align} \unicode{x1D63F} = \left [ \begin{array}{ccccc} \ddots & \vdots & \vdots & \vdots & \substack{\quad \boldsymbol{\cdot}\\[5pt] \,\,\,\boldsymbol{\cdot}\\[5pt] \boldsymbol{\cdot}} \\[5pt] \displaystyle \dots & (\kappa +\mathrm{i}\gamma \omega _0)\unicode{x1D644}-\unicode{x1D64D}_{-1}^{-1}& \boldsymbol{0}& \boldsymbol{0} &\dots \\[5pt] \displaystyle \dots & \boldsymbol{0} & (\kappa +\mathrm{i}\gamma \omega _0)\unicode{x1D644}-\unicode{x1D64D}_{0}^{-1}& \boldsymbol{0} &\dots \\[5pt] \displaystyle \dots & \boldsymbol{0}& \boldsymbol{0} & (\kappa +\mathrm{i}\gamma \omega _0)\unicode{x1D644}-\unicode{x1D64D}_{1}^{-1} &\dots \\[5pt] \displaystyle \substack{\quad \boldsymbol{\cdot}\\[5pt] \,\,\,\boldsymbol{\cdot}\\[5pt] \boldsymbol{\cdot}} & \vdots & \vdots & \vdots & \ddots \end{array} \right ], \\[-28pt] \nonumber \end{align}
\begin{align} \unicode{x1D642} = \left [ \begin{array}{ccccc} \ddots & \vdots & \vdots & \vdots & \substack{\quad \boldsymbol{\cdot}\\[5pt] \,\,\,\boldsymbol{\cdot}\\[5pt] \boldsymbol{\cdot}} \\[5pt] \displaystyle \dots & \boldsymbol{0}& {\skew 3\hat {\unicode{x1D642}}}_{-1}& {\skew 3\hat {\unicode{x1D642}}}_{-2} &\dots \\[5pt] \displaystyle \dots & {\skew 3\hat {\unicode{x1D642}}}_1 & \boldsymbol{0}& {\skew 3\hat {\unicode{x1D642}}}_{-1} &\dots \\[5pt] \displaystyle \dots & {\skew 3\hat {\unicode{x1D642}}}_2& {\skew 3\hat {\unicode{x1D642}}}_1 & \boldsymbol{0} &\dots \\[5pt] \displaystyle \substack{\quad \boldsymbol{\cdot}\\[5pt] \,\,\,\boldsymbol{\cdot}\\[5pt] \boldsymbol{\cdot}} & \vdots & \vdots & \vdots & \ddots \end{array} \right ]. \\[0pt] \nonumber \end{align}
Appendix B. Effect of discounting
The effect of the discounting parameter
$\tilde {\kappa }$
on the leading singular value of the CRA (
$\sigma _{1,\textit{CR}}$
) and MRA (
$\sigma _{1,\textit{CR}}$
) at
$\beta D = 2\pi$
is shown in figure 14. For both analyses, the results obtained with
$\tilde {\kappa } = 0$
exhibit large spikes in
$\sigma _1$
near frequencies corresponding to eigenvalues with near-zero real parts, reflecting the near-singular behaviour of the resolvent operator in the vicinity of these poles. With
$\tilde {\kappa } = 0.005$
, the operator is regularised near these poles, and the gain curves are smooth, while remaining in close quantitative agreement with the
$\tilde {\kappa } = 0$
results across the remainder of the frequency range, confirming that the choice of
$\tilde {\kappa } = 0.005$
does not significantly alter the physically relevant amplification characteristics of either analysis.
Variation of the first singular value (
$\sigma _1$
) of the (a) CR and (b) MR operator, computed using
$\tilde {\kappa }=0.0$
and
$\tilde {\kappa }=0.005$
at the spanwise wavenumber
$\beta D = 2\pi$
.

Appendix C. Convergence of truncated Neumann series response
The convergence of the truncated Neumann series expansion for the MRA is assessed at
$\beta D = 2\pi$
and
$St_\gamma = 0.025$
for different values of
$\tilde {\kappa }$
, and the results are summarised in table 1. The zeroth-order response norm
$||\hat {\boldsymbol{q}}^{\prime 0}||_E$
agrees closely with
$\sigma _{1,\textit{CR}}$
across all
$\tilde {\kappa }$
, confirming the equivalence of the zeroth-order term and the mean-flow resolvent (i.e. CRA) response. At
$\tilde {\kappa } = 0.005$
, the gain from the second-order correction significantly overshoots the true MRA value and decreases the alignment with the optimal MR response mode compared with the zeroth-order response. Across all the discounting values considered here, only the second-order correction computed with
$\tilde {\kappa }=0.05$
increases the alignment with the true MRA response marginally compared with the zeroth-order response, whereas computation with lower discounting values degrades the alignment. Since the CRA and MRA are computed directly via SVD, their results at
$\tilde {\kappa } = 0.005$
used in all the analysis remain valid independently of the series convergence.
Convergence study of the truncated Neumann series expansion for the MRA at
$\beta D = 2\pi$
and
$St_\gamma = 0.025$
. The table shows the leading singular value obtained from the CRA (
$\sigma _{1,\textit{CR}}$
) and MRA (
$\sigma _{1,\textit{MR}}$
), the norm of the zeroth-order series response
$||\hat {\boldsymbol{q}}^{\prime 0}||_E$
, the norm of the truncated series response including the second-order correction
$||\hat {\boldsymbol{q}}^{\prime 0} + \hat {\boldsymbol{q}}^{\prime 2}||_E$
and the alignment between the truncated series response and the true MR optimal response mode
$|\boldsymbol{U}^*_{1,\textit{MR}} \boldsymbol{W} \hat {\boldsymbol{q}}^{\prime \,0}|$
and
$|\boldsymbol{U}^*_{1,\textit{MR}}\boldsymbol{W}(\hat {\boldsymbol{q}}^{\prime 0} + \hat {\boldsymbol{q}}^{\prime 2})|$
, for different values of the discounting parameter
$\tilde {\kappa }$
.

Table 1. Long description
The table presents a convergence study of the truncated Neumann series expansion for the MRA at specific values. It includes five rows and seven columns. The columns are labeled with mathematical notations and parameters. The rows correspond to different values of the discounting parameter. Each row lists values for the leading singular value obtained from the CRA and MRA, the norm of the zeroth-order series response, the norm of the truncated series response including the second-order correction, and the alignment between the truncated series response and the true MR optimal response mode. The values are presented as follows: Row 1: 0.005, 163.4, 232.8, 164.7, 414.6, 0.85, 0.74. Row 2: 0.008, 79.9, 103.6, 81.6, 180.2, 0.84, 0.80. Row 3: 0.02, 42.7, 43.2, 45.8, 42.7, 0.9, 0.86. Row 4: 0.05, 16.2, 15.1, 16.3, 15.9, 0.94, 0.95.


Ma∞=0.6
QD2/U~∞2=0.03
u′/U~∞=±0.05
v′
x,y,z
𝘼(Q¯,β)
σ1,CR
βD
St
σ1,CR
E
βD,St
(0.0,0.36),(2π,0.025),(2π,0.0)
±0.2max(|R{Φ1,u^′}|)
±0.25max(|R{Ψ1,u^′}|)
y
z
(βD,St)=(2π,0.0)
s
𝙏(β)
siD/2πU~∞∈[0,StII/2]
α=esT0
𝙏(β)
σ1,HR
βD
Stγ
Stγ
Ωγ
Γ
U1,HR
dQ^/dt
(γ+j)StII
(γ+k)StII
𝙃j,k(β,γ,κ)
Ej,k
γ=0
γ=0.07
βD=2π
𝙋h
𝙋y
𝙃(β,γ,κ)
𝙃0,0(β,γ,κ)
σ1,MR
𝙃0,0(β,γ,κ)
βD
St∈[0.0,0.18]
βD=2π
1/2∫yρ¯|Ψ1,u^′|2dy
1/2∫yρ¯|U1,MR,u^′|2dy
(βD,St)=(2π,0.0)
St=0.025
0.0
βD=2π
y
z
(βD,St)=(2π,0.0)
(βD,St)=(2π,0.025)
𝙂
𝘿
(2π,0.025)
(2π,0.025)
𝘿−1
StII
StII
2StII
StII
σ1
κ~=0.0
κ~=0.005
βD=2π
βD=2π
Stγ=0.025
σ1,CR
σ1,MR
||q^′0||E
||q^′0+q^′2||E
|U1,MR∗Wq^′0|
|U1,MR∗W(q^′0+q^′2)|
κ~