Hostname: page-component-7b7567c8c-lpg2g Total loading time: 0 Render date: 2026-11-15T22:06:18.924Z Has data issue: false hasContentIssue false

Transformer-based in-context policy learning for efficient active flow control across various airfoils

Published online by Cambridge University Press:  19 December 2024

Changdong Zheng
Affiliation:
Center for Engineering and Scientific Computation, Zhejiang University, Zhejiang 310027, PR China
Fangfang Xie*
Affiliation:
Center for Engineering and Scientific Computation, Zhejiang University, Zhejiang 310027, PR China
Tingwei Ji
Affiliation:
Center for Engineering and Scientific Computation, Zhejiang University, Zhejiang 310027, PR China
Hongjie Zhou
Affiliation:
Center for Engineering and Scientific Computation, Zhejiang University, Zhejiang 310027, PR China
Yao Zheng
Affiliation:
Center for Engineering and Scientific Computation, Zhejiang University, Zhejiang 310027, PR China
*
†Email address for correspondence: fangfang_xie@zju.edu.cn

Abstract

Active flow control based on reinforcement learning has received much attention in recent years. Indeed, the requirement for substantial data for trial-and-error in reinforcement learning policies has posed a significant impediment to their practical application, which also serves as a limiting factor in the training of cross-case agents. This study proposes an in-context active flow control policy learning framework grounded in reinforcement learning data. A transformer-based policy improvement operator is set up to model the process of reinforcement learning as a causal sequence and autoregressively give actions with sufficiently long context on new unseen cases. In flow separation problems, this framework demonstrates the capability to successfully learn and apply efficient flow control strategies across various airfoil configurations. Compared with general reinforcement learning, this learning mode without the need for updating the network parameter has even higher efficiency. This study presents an effective novel technique in using a single transformer model to address the flow separation active flow control problem on different airfoils. Additionally, the study provides an innovative demonstration of incorporating reinforcement-learning-based flow control with aerodynamic shape optimization, leading to collective enhancement in performance. This method efficiently lessens the training burden of the new flow control policy during shape optimization, and opens up a promising avenue for interdisciplinary intelligent co-design of future vehicles.

Information

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

Figure 1.Whole architecture of the active flow control policy learning framework via policy improvement operator.

Figure 1

Figure 2.Neural network architecture of policy improvement operator.

Figure 2

Figure 3.Configuration of airfoil flow and active flow control.

Figure 3

Figure 4.NACA-4-digit airfoil data buffer for collecting data.

Figure 4

Figure 5.Results display of train cases on airfoil flow separation environment. (a) Sum of rewards improvement between controlled flow and uncontrolled flow. (b) Learning progress via policy improvement operator on 12 new airfoils.

Figure 5

Figure 6.Episode performance of policies via policy improvement operator on Munk M-6 airfoil. (a) Three jet action trajectory. Four special annotations correspond to figure 7(a–d). (b) Comparison of lift coefficient. (c) Comparison of drag coefficient. (d) Comparison of periodic-averaged surface pressure distribution. The results of controlled episode are represented in red, while those of uncontrolled episode are represented in black. The reason why the pressure near the tail of the upper surface actually increases is because the vortex is enhanced by the jet when it reaches the tail, but the overall pressure on the upper surface decreases, as explained with figure 7.

Figure 6

Figure 7.Flow field snapshot of Munk M-6 airfoil with flow control. Black represents streamline, and the background is instantaneous pressure contour. (a) Jet 1 maximizes the suction to create an attachment effect. (b) Jet 2 maximizes the suction to strengthen the attachment effect. (c) Jet 3 minimizes the injection to avoid enhancing local backflow. (d) Jet 3 maximizes the injection to promote vortex shedding, but also enhances the backflow effect at the tail end. (a) $t=16.6$, (b) $t=17.3$, (c) $t=17.9$ and (d) $t=18.5$.

Figure 7

Figure 8.Evaluation performance of policy improvement operator (in red) and reinforcement learning (in blue) on airfoil flow separation. Under limited number of interactions, the policy improvement operator outperforms in three evaluation new cases. (a) Evaluation LIBECK L1003, (b) evaluation NASA LRN 1015 and (c) evaluation LANGLEY NLF 0414F.

Figure 8

Figure 9.Integration of reinforcement learning and aerodynamic shape optimization. (a) Flowchart of aerodynamic shape optimization framework. (b) Dynamic optimization process of surrogate model.

Figure 9

Figure 10.Learning progress via policy improvement operator on new airfoils generated from aerodynamic shape optimization progress.

Figure 10

Figure 11.Performance enhancement from aerodynamic shape optimization and active flow control. The shape of the corresponding airfoil is drawn below the horizontal axis.

Figure 11

Figure 12.Comparison between shape-optimized, controlled and uncontrolled periodic-average surface pressure distribution. The pressure near the tail of the upper surface has also increased, similar to the situation of Munk M-6. (a) Periodic-averaged surface pressure distribution of benchmark and shape-optimized airfoil and (b) periodic-averaged surface pressure distribution of shape-optimized airfoils with control and without control.

Figure 12

Figure 13.Comparison between controlled and uncontrolled periodic-average pressure field. The flow field results are consistent with the pressure distribution results. (a) Uncontrolled periodic-average pressure field and (b) controlled periodic-average pressure field.

Figure 13

Figure 14.Control cost-efficiency $\eta$ and force coefficients across different weightings $\gamma$. (a) Case $\gamma =0.0$ drag and lift force coefficient in one episode. (b) Case $\gamma =0.05$ drag and lift force coefficient in one episode. (c) Case $\gamma =0.1$ drag and lift force coefficient in one episode. (d) Case $\gamma =0.5$ drag and lift force coefficient in one episode. (e) Case $\gamma =1.0$ drag and lift force coefficient in one episode.

Figure 14

Figure 15.Decomposition of the vortex fluid force on the wake oscillator and the centroid displacement of vortex-induced vibration.

Figure 15

Figure 16.Results display of train cases on vortex-induced vibration environment. (a) Reinforcement learning progress of train cases 6, 9 and 21. (b) Parameter sets for 30 train cases (in black) and 6 evaluation cases (in red).

Figure 16

Figure 17.Evaluation performance of policy improvement operator and reinforcement learning on vortex-induced vibration. The line is the average $SoR$ among five repeated tests and the area within the standard deviation is filled with the corresponding light colour. The learning speed of policy improvement operators on new cases is generally fast and more stable.

Figure 17

Table 1.Verification of grid independence of CFD solver (NACA0012, $Re=1000$, time step $= 0.002$, $\beta =20^{\circ }$, 20 cores, Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50 GHz).

Figure 18

Table 2.Verification of time-step convergence of CFD solver (NACA0012, $Re=1000$, grid cell number $= 41\,903$, $\beta =20^{\circ }$, 20 cores, Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50 GHz).

Figure 19

Figure 18.Comparison between different grid-sizes and time steps. (a) Grid independence. (b) Time-step convergence.