Hostname: page-component-74656f9884-j7cmm Total loading time: 0 Render date: 2026-11-07T08:42:12.184Z Has data issue: false hasContentIssue false

Forward and inverse resolvent modelling for instabilities and active control in compressible boundary layers using a Transformer neural operator

Published online by Cambridge University Press:  04 November 2026

Shuo Feng
Affiliation:
Shanghai Key Laboratory of Mechanics in Energy Engineering, Shanghai Institute of Applied Mathematics and Mechanics, School of Mechanics and Engineering Science, Shanghai University , Shanghai 200072, PR China
Bo-Fu Wang*
Affiliation:
Shanghai Key Laboratory of Mechanics in Energy Engineering, Shanghai Institute of Applied Mathematics and Mechanics, School of Mechanics and Engineering Science, Shanghai University , Shanghai 200072, PR China
*
Corresponding author: Bo-Fu Wang, bofuwang@shu.edu.cn

Abstract

Content of image described in text.

Resolvent analysis effectively characterises flow instabilities and guides active control, but repeated singular-value-decomposition-based (SVD-based) calculations remain computationally expensive in high-dimensional parameter studies. Control-oriented workflows also require efficient mappings from prescribed response fields to compatible forcing fields. To address these needs, we introduce ResFormer, a unified Transformer-based neural operator framework for forward resolvent prediction and response-to-forcing reconstruction in compressible boundary layers. The framework is validated across supersonic and hypersonic regimes ($ \textit{Ma}=2.25$–$5.86$), encompassing laminar, turbulent and controlled base-flow configurations. For forward prediction, ResFormer reconstructs the spatial topology, phase structure and amplitude envelope of both low-frequency Tollmien–Schlichting waves and high-frequency second-mode disturbances over the investigated parameter ranges. For response-to-forcing prediction, ResFormer learns a surrogate mapping from prescribed instability responses to compatible forcing fields. When the complete target response and discrete operator are known, the reference forcing is computed directly as $\kern2.5pt \hat {\boldsymbol{\kern-2.5pt f}}_{\textit{ideal}}=\boldsymbol{A}_{\omega ,\beta }\hat {\boldsymbol{q}}_{\textit{decay}}$; the physics term therefore acts as an operator consistency regulariser. The reconstructed forcing topology is then reduced to a compact Gaussian wall actuator prior and evaluated using high-fidelity computational fluid dynamics. ResFormer therefore accelerates repeated SVD-based forward and optimal mode evaluations while providing an operator-consistent learned representation for actuator prior identification and surrogate-assisted control design.

Information

Type
JFM Papers
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Table 1. Summary of numerical cases and their roles in this study.Table 1 long description.

Figure 1

Figure 1. Overall ResFormer framework for forward and inverse resolvent modelling. The physical set-up and base flow are first used to generate harmonic resolvent datasets. ResFormer then learns three parameter-conditioned operator mappings: forcing-to-response approximation, rapid optimal mode prediction and response-to-forcing reconstruction for prescribed target responses.

Figure 2

Figure 2. Forward prediction for Case F (TS instability). (a) Global response norm μL2$\mu _{L_2}$ as a function of spanwise wavenumber β$\beta$ at ω=1.0×10−5$\omega =1.0\times 10^{-5}$. The black dashed line denotes the reference result, and the red hollow circles denote the ResFormer predictions at the test points distributed throughout the training parameter range. (b) Reference and predicted density mode profiles at Rey=1.12×104$ \textit{Re}_y=1.12\times 10^4$ for the representative interpolation sample (ω=1.0×10−5, β=2.2×10−4)$(\omega =1.0\times 10^{-5},\ \beta =2.2\times 10^{-4})$. (c) Spatially weighted relative L2$L_2$ error of the complete five-component response field at the distributed test points; the black dashed line denotes the mean value. (d–f) Reference density fluctuation field, prediction and pointwise absolute error field for the same representative sample.

Figure 3

Figure 3. Figure 3 long description.Forward prediction for Case S (second-mode instability) at Ma=4.5$ \textit{Ma}=4.5$ and β=0$\beta =0$. (a) Global response norm μL2$\mu _{L_2}$ as a function of frequency ω$\omega$. The black dashed line denotes the reference result, and the red hollow circles denote the ResFormer predictions at the test points distributed throughout the training parameter range. (b) Reference and predicted density mode profiles at Rey=8.78×103$ \textit{Re}_y=8.78\times 10^3$ for the representative interpolation sample ω=3.1×10−4$\omega =3.1\times 10^{-4}$. (c) Spatially weighted relative L2$L_2$ error of the complete five-component response field at the distributed test points; the black dashed line denotes the mean value. (d–f) Reference density fluctuation field, prediction and pointwise absolute error field for the same representative sample.

Figure 4

Figure 4. Mach-number interpolation for Case M. (a) Global response norm μL2$\mu _{L_2}$ as a function of Mach number over Ma∈[3.0,4.5]$ \textit{Ma}\in [3.0,4.5]$. The black dashed line denotes the reference result, and the red hollow circles denote ResFormer predictions at the displayed interpolation test points. (b) Reference and predicted streamwise momentum fluctuation profiles ρu^$\widehat {\rho u}$ at Rey=7.52×103$ \textit{Re}_y=7.52\times 10^3$ for the representative test sample Ma=3.50$ \textit{Ma}=3.50$. (c) Spatially weighted relative L2$L_2$ error of the complete five-component response field at the displayed test points; the black dashed line denotes the mean value. (d–f) Reference streamwise momentum fluctuation field, prediction and pointwise absolute error field for the same representative sample.

Figure 5

Figure 5. Figure 5 long description.Inverse forcing reconstruction for the supersonic turbulent boundary layer at Ma=2.25$ \textit{Ma}=2.25$ (Case T). (a) Global forcing norm ‖f^‖Ω$\|\kern2.5pt \hat {\boldsymbol{\kern-2.5pt f}}\|_{\varOmega }$ as a function of spanwise wavenumber β$\beta$ at ω=1.0×10−5$\omega =1.0\times 10^{-5}$. The black dashed line denotes the reference result, and the red hollow circles denote ResFormer predictions on the test set. (b) Reference and predicted profiles of the streamwise momentum forcing component fρu$f_{\rho u}$ at Rey=5.29×103$ \textit{Re}_y=5.29\times 10^3$ for the representative test sample (ω=1.0×10−5, β=1.92×10−4)$(\omega =1.0\times 10^{-5},\ \beta =1.92\times 10^{-4})$. (c) Spatially weighted relative L2$L_2$ error of the complete five-component forcing field at the test points; the black dashed line denotes the mean value. (d–f) Reference fρu$f_{\rho u}$ forcing field, prediction and pointwise absolute error field for the same representative sample.

Figure 6

Figure 6. Inverse forcing reconstruction for the local blowing/suction control case (Case BS). (a) Global forcing norm ‖f^‖Ω$\|\kern2.5pt \hat {\boldsymbol{\kern-2.5pt f}}\|_{\varOmega }$ for all samples sorted according to the reference norm. The black dashed line denotes the reference result, and the red hollow circles denote ResFormer predictions on the test set. (b) Reference and predicted profiles of the streamwise momentum forcing component fρu$f_{\rho u}$ at Rey=4.07×104$ \textit{Re}_y=4.07\times 10^4$ for the representative test sample (ω=4.6×10−5, β=4.0×10−5)$(\omega =4.6\times 10^{-5},\ \beta =4.0\times 10^{-5})$. (c) Spatially weighted relative L2$L_2$ error of the complete five-component forcing field at the test points; the black dashed line denotes the mean value. (d–f) Reference fρu$f_{\rho u}$ forcing field, prediction and pointwise absolute error field for the same representative sample.

Figure 7

Figure 7. Streamwise amplitude envelopes and corresponding forcing distributions for a TS instability wave. The predicted forcing captures the localised peak required for spatial attenuation.

Figure 8

Figure 8. Streamwise amplitude envelopes and corresponding forcing distributions for a second-mode instability wave. The result demonstrates the applicability of the inverse formulation to high-frequency modes.

Figure 9

Figure 9. Figure 9 long description.Two-dimensional spatial comparison for a TS wave (ω=8.7×10−5)$(\omega =8.7\times 10^{-5})$: (a) full domain and (b) locally magnified view.

Figure 10

Figure 10. Two-dimensional spatial comparison for a second-mode case (ω=33×10−5)$(\omega =33\times 10^{-5})$: (a) full domain and (b) locally magnified view.

Figure 11

Figure 11. One-dimensional streamwise slice comparisons of the density-equation forcing component fρ$f_\rho$ for representative (a) TS-wave and (b) second-mode cases. The predictions show close phase and amplitude agreement with the matrix-consistent reference; the corresponding test set phase statistics are reported in table 12.

Figure 12

Table 2. Ablation of the operator consistency weight in Case PI. The interior momentum channel relative error is evaluated in decoded physical variables using the same spatial and variable support as the reported physics loss comparison. Values denote the mean and sample standard deviation over three training seeds. Improvements are calculated by paired seedwise comparison with data-only training.Table 2 long description.

Figure 13

Figure 12. Figure 12 long description.Compact workflow for realisable flow control guidance. A CFD-consistent natural TS response is obtained from CFD simulations through lock-in extraction and modal projection. A smooth attenuation target is then constructed and fed into the inverse ResFormer to predict the ideal forcing distribution. The predicted forcing topology is reduced to a Gaussian wall actuator prior, which is calibrated through CFD phase and amplitude scans. The controlled responses are finally evaluated using modal projection metrics.

Figure 14

Figure 13. Extraction of the CFD-consistent coherent TS response from the upstream forced CFD simulation. The raw lock-in density response, Re(ρ^CFD)${Re}(\hat {\rho }_{\textit{CFD}})$, contains the target frequency near-wall wavepacket together with components outside the selected TS modal subspace. Projection onto the theoretical TS density mode yields a cleaner locally coherent component, Re(q^natproj)${Re}(\hat {\boldsymbol{q}}_{{nat}}^{\textit{proj}})$. A streamwise attenuation mask is then applied to construct a locally attenuated diagnostic target, Re(q^decay)${Re}(\hat {\boldsymbol{q}}_{\textit{decay}})$.

Figure 15

Figure 14. Construction of the operator clean attenuation target for inverse forcing prediction. (a) Envelope level construction. The grey region denotes the interval used to estimate the calibration coefficient ccal$c_{\textit{cal}}$, and the densely spaced black markers appear as a continuous black bar and indicate the selected valid points. The clean natural response is represented as q^natclean=ccalq^TS$\hat {\boldsymbol{q}}_{{nat}}^{{clean}}=c_{\textit{cal}}\hat {\boldsymbol{q}}_{\textit{TS}}$, while the attenuated target is obtained by applying the smooth mask W(x)$W(x)$. (b) Two-dimensional density fields of the clean natural response and the constructed decay target. The decay target preserves the upstream coherent TS structure and smoothly suppresses the downstream response according to W(x)$W(x)$.

Figure 16

Table 3. Actuator parameters extracted from the inverse predicted forcing envelope.Table 3 long description.

Figure 17

Figure 15. Extraction of a realisable wall actuator from the inverse predicted forcing field. (a) Near-wall inverse forcing amplitude. (b) Streamwise envelope and Gaussian approximation. The inverse forcing is first reduced to a near-wall streamwise envelope. The peak of this envelope determines the actuator centre xc$x_c$, and its FWHM determines the Gaussian width σc$\sigma _c$. The complex forcing inside the dominant near-wall region provides the phase reference used for the subsequent CFD phase scan.

Figure 18

Figure 16. Raw lock-in density fields for (a) the uncontrolled baseline and (b) the best-performing tested case with Δϕ=π/2$\Delta \phi =\pi /2$ and Ac=10−6$A_c=10^{-6}$. The green dashed line denotes the actuator centre xc$x_c$, and the shaded region indicates the actuator support xc±σc$x_c\pm \sigma _c$. Both panels use the same spatial coordinates and colour scale.

Figure 19

Figure 17. Phase scan of the coherent TS content at Ac=10−6$A_c=10^{-6}$ based on downstream interval constant projection. The ratio Rcoh=|cId,ctrl|/|cId,base|$R_{\textit{coh}}=|c_{I_d,{ctrl}}|/|c_{I_d,{base}}|$ is used to quantify the globally coherent target mode content. The most effective phase among the tested cases is Δϕ=π/2$\Delta \phi =\pi /2$, which reduces the coherent TS component to approximately 14.0%$14.0\,\%$ of the baseline value.

Figure 20

Table 4. Phase and amplitude sensitivity results for the inverse prior actuator geometry. The coherent amplitude ratio Rcoh$R_{\textit{coh}}$ quantifies the prescribed TS control objective, whereas REallChu$R_{E_{\textit{all}}}^{\textit{Chu}}$ measures the total Chu disturbance energy over the downstream evaluation region ΩE$\varOmega _E$. Both quantities are normalised by the uncontrolled baseline.Table 4 long description.

Figure 21

Figure 18. Amplitude scan at the favourable phase Δϕ=π/2$\Delta \phi =\pi /2$, downstream zoom. The coherent interval projected TS component is minimised at Ac=10−6$A_c=10^{-6}$ among the tested amplitudes. The non-monotonic trend indicates that the wall control amplitude must be calibrated in the nonlinear CFD setting rather than directly inferred from the magnitude of the inverse predicted volumetric forcing.

Figure 22

Figure 19. Downstream coherent TS content for the actuator location and width sensitivity cases at Δϕ=π/2$\Delta \phi =\pi /2$ and Ac=10−6$A_c=10^{-6}$. The curves are normalised by the interval projected coherent amplitude of the uncontrolled baseline. The inverse prior and narrow cases provide the strongest attenuation of the selected coherent TS component, whereas the response peak and wide actuator cases provide substantially weaker modal suppression.

Figure 23

Table 5. Sensitivity of the coherent TS component and total Chu disturbance energy to actuator location and width. All controlled cases use Δϕ=π/2$\Delta \phi =\pi /2$ and Ac=10−6$A_c=10^{-6}$.Table 5 long description.

Figure 24

Table 6. Detailed parameter ranges and data partitions for the neural operator cases.Table 6 long description.

Figure 25

Table 7. Architecture and training settings of the independently trained ResFormer models. The loss weights correspond to (5.4).Table 7 long description.

Figure 26

Table 8. Random seed sensitivity under a common 5000-epoch training budget. The entries are unweighted samplewise test relative L2$L_2$ errors in percent.Table 8 long description.

Figure 27

Table 9. Representative FNO comparison for Case S. The entries are unweighted samplewise test relative L2$L_2$ errors in percent, reported as the mean and sample standard deviation over three independently trained models. This metric is distinct from the spatially weighted field error reported in Figure 3.Table 9 long description.

Figure 28

Table 10. Principal offline and online wall-clock costs of the Case M surrogate and control validation workflows. The database generation times are estimated from the measured 408 s single-case cost using the six-case parallel execution strategy adopted in this study.Table 10 long description.

Figure 29

Table 11. Norm-sensitive evaluation metrics for Case M. Values are reported as the mean, with the worst test value in parentheses, over the ten conditions used in the Case M comparison. For the effective gain error, the worst value is the maximum; for response alignment, it is the minimum.Table 11 long description.

Figure 30

Table 12. Forcing alignment, global phase error and peak localisation error for Case PI. Values are the mean and sample standard deviation of the three seedwise test set means, with 20 held-out samples evaluated for each training seed. The alignment and phase error use the full domain cell-volume-weighted complex momentum forcing inner product, whereas the peak location error is calculated from the near-wall envelope constructed from all five forcing components.Table 12 long description.