Hostname: page-component-6898cfcb55-zkb6p Total loading time: 0 Render date: 2026-11-11T11:37:50.563Z Has data issue: false hasContentIssue false

Reinforcement-learning-based control of convectively unstable flows

Published online by Cambridge University Press:  06 January 2023

Da Xu
Affiliation:
Department of Mechanical Engineering, National University of Singapore, 9 Engineering Drive 1, 117575 Singapore
Mengqi Zhang*
Affiliation:
Department of Mechanical Engineering, National University of Singapore, 9 Engineering Drive 1, 117575 Singapore
*
†Email address for correspondence: mpezmq@nus.edu.sg

Abstract

This work reports the application of a model-free deep reinforcement learning (DRL) based flow control strategy to suppress perturbations evolving in the one-dimensional linearised Kuramoto–Sivashinsky (KS) equation and two-dimensional boundary layer flows. The former is commonly used to model the disturbance developing in flat-plate boundary layer flows. These flow systems are convectively unstable, being able to amplify the upstream disturbance, and are thus difficult to control. The control action is implemented through a volumetric force at a fixed position, and the control performance is evaluated by the reduction of perturbation amplitude downstream. We first demonstrate the effectiveness of the DRL-based control in the KS system subjected to a random upstream noise. The amplitude of perturbation monitored downstream is reduced significantly, and the learnt policy is shown to be robust to both measurement and external noise. One of our focuses is to place sensors optimally in the DRL control using the gradient-free particle swarm optimisation algorithm. After the optimisation process for different numbers of sensors, a specific eight-sensor placement is found to yield the best control performance. The optimised sensor placement in the KS equation is applied directly to control two-dimensional Blasius boundary layer flows, and can efficiently reduce the downstream perturbation energy. Via flow analyses, the control mechanism found by DRL is the opposition control. Besides, it is found that when the flow instability information is embedded in the reward function of DRL to penalise the instability, the control performance can be further improved in this convectively unstable flow.

Information

Type
JFM Papers
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Figure 1.Schematic of absolute and convective instabilities. A localised infinitesimal perturbation can grow at a fixed location, leading to (a) an absolute instability, or decay at a fixed location but grow as convected downstream, leading to (b) a convective instability.

Figure 1

Figure 2.Control set-up for a 2-D flat-plate boundary layer flow. Random noise is introduced at point $d$, and a feedback control based on states collected by sensors is implemented at point $u$ to minimise the downstream perturbation measured at point $z$. Here, $U_\infty$ is the uniform free-stream velocity, and $\delta _0^*$ is the displacement thickness of the boundary layer at the inlet of the domain shown by the grey box $\varOmega = (0, 800) \times (0, 30)$, which is non-dimensionalised by $\delta _0^*$.

Figure 2

Figure 3.Contour plots of the 2-D Gaussian spatial distribution $\boldsymbol {b}_{d}(x, y)$: (a) streamwise component; (b) wall-normal component.

Figure 3

Figure 4.The reinforcement learning framework in flow control. The agent is an artificial neural network; the environment is a numerical simulation of the 1-D KS equation or 2-D boundary layer flow. Action is adjustment of the external forcing; reward is reduction of the downstream perturbation; and state is streamwise velocities collected by sensors.

Figure 4

Figure 5.Schematic diagram for sensor placement optimisation. Design variables are $n$ sensor positions $x_1, x_2,\ldots, x_n$. The objective function is the DRL-based control performance quantified by the average absolute value of reward $r_b$ from the 10 best episodes among all the 350 episodes.

Figure 5

Figure 6.Dynamics of the 1-D linearised KS equation when subject to Gaussian white noise with unit variance: (a) spatiotemporal response of the system; (b) temporal signal of noise input $d(t)$ at $x = 35$; (c) output signal $z(t)$ measured by sensor at $x = 700$. The blue arrow represents input, and the red arrow represents output.

Figure 6

Figure 7.DRL-based control for reducing the downstream perturbation evolving in the 1-D linearised KS equation. (a) Average perturbation amplitude at point $z$ recorded during the training process, where the red dashed line denotes the time when the experience memory is full. (b) The r.m.s. value of perturbation along the 1-D domain plotted for both cases, with and without control.

Figure 7

Figure 8.Dynamics of the 1-D linearised KS equation with both the external disturbance and control inputs: (a) spatiotemporal response of the system; (b) temporal signal of noise input $d(t)$ at $x = 35$; (c) temporal signal of control input $u(t)$ at $x = 400$ provided by the DRL agent; (d) output signal $z(t)$ measured by sensor at $x = 700$. The blue arrows represent inputs, and the red arrow represents output; the blue dashed line denotes the control starting time.

Figure 8

Figure 9.Comparison between DRL-based control and LQR control when applied to the 1-D linearised KS system with different action bounds. In each panel, the top left plot presents the time-variation curve of the control action $u(t)$, and the bottom left plot presents the corresponding sensor output $z(t)$; the right-hand plot shows the r.m.s. value of perturbation velocity along the 1-D domain. (a) Control performance of ideal LQR and of DRL with action bound ${[-5,5]}$. (b) Control performance of LQR and DRL both with action bound ${[-3,3]}$. (c) Control performance of LQR and DRL both with action bound ${[-2,2]}$. (d) Control performance of LQR and DRL both with action bound ${[-1,1]}$.

Figure 9

Figure 10.Comparison of LQR control performance with different values of weight $w_z$. (a) The r.m.s. value of perturbation velocity along the 1-D domain. (b) The time-variation curves of control action $u(t)$, with the control starting at $t = 1450$.

Figure 10

Table 1.Average magnitude of action for different methods with different action bounds.

Figure 11

Figure 11.DRL-based control performance with states contaminated by Gaussian noise of three different standard deviations $\sigma _N$. (a–c) The sensor output $z(t)$ plotted for the three cases. (d) The r.m.s. value of perturbation along the 1-D domain plotted for the three cases. Also, the black curve for control with uncontaminated states, and the orange dashed curve for control with the agent trained with $\sigma _N = 0.1$, are shown for comparison.

Figure 12

Figure 12.DRL-based control performance under three different upstream noise conditions: Gaussian noise input at $x_d$ with standard deviation $\sigma _{d(t)}$. (a–c) The sensor output $z(t)$ plotted for the three cases. (d) The r.m.s. value of perturbation along the 1-D domain plotted for the three cases, and that for control testing with the same environment as training, i.e. $x_d = 35$ and $\sigma _{d(t)} = 1.0$, is also given by the black curve, for comparison.

Figure 13

Figure 13.Optimal sensor placement in DRL-based flow control. (a) The optimisation process using PSO presented for cases with different numbers of sensors; the optimal placement is found, which leads to the lowest perturbation amplitude $r_b$. (b) Control performance comparison between the initial placement and the optimised one (taking 2 sensors as an example).

Figure 14

Figure 14.Optimal sensor placement and the effect of the number of sensors. (a) The optimal placement is presented for cases with different numbers of sensors. In addition, three specific layouts with all sensors placed upstream are also considered. (b) Comparison of the corresponding control performance with different sensor placements.

Figure 15

Figure 15.DRL-based control for the 2-D Blasius boundary layer flow, subjected to an upstream disturbance input $d(t)$. (a) Average local perturbation energy around point $z$ recorded during the training process. (b) Global perturbation energy downstream of the actuator recorded during the test process. (c) The r.m.s. value of streamwise velocity along $y=1$ plotted for DRL-based control with different numbers of sensors. (d) The r.m.s. value of streamwise velocity along $y=1$ plotted for DRL-based control with disturbance input of different amplitudes $\sigma _{d(t)}$. Curves for cases without control are also shown for reference.

Figure 16

Figure 16.(a) Contour of streamwise perturbation velocity at $y=1$ induced by an upstream disturbance $d(t)$ with standard deviation $\delta _{d(t)} = 0.0002$. (b) Contour of streamwise perturbation velocity with both disturbance input $d(t)$ and control input $u(t)$. (c) Output signal $z(t)$ comparison between the uncontrolled and controlled cases, i.e. the localised perturbation energy monitored around (550,1). Blue arrows represent inputs, and the red arrows represent outputs.

Figure 17

Figure 17.(a) Contour of streamwise perturbation velocity at $y=1$ induced by an upstream disturbance $d(t)$ with standard deviation $\delta _{d(t)} = 0.0005$. (b) Contour of streamwise perturbation velocity with both disturbance input $d(t)$ and control input $u(t)$. (c) Output signal $z(t)$ comparison between the uncontrolled and controlled cases, i.e. the localised perturbation energy monitored around $(550,1)$. Blue arrows represent inputs, and the red arrows represent outputs.

Figure 18

Figure 18.(a) Contour of streamwise perturbation velocity at $y=1$ induced by an upstream disturbance $d(t)$ with standard deviation $\delta _{d(t)} = 0.001$. (b) Contour of streamwise perturbation velocity controlled by $u(t)$ with the original forcing spatial distribution. (c) Contour of streamwise perturbation velocity controlled by $u(t)$ with the new forcing spatial distribution. (d) Output signal $z(t)$ comparison among the uncontrolled and controlled cases, i.e. the localised perturbation energy monitored around $(550,1)$. (e) Control performance comparison in terms of the r.m.s. value of streamwise velocity at $y=1$. The blue arrows represent inputs, and the red arrows represent outputs.

Figure 19

Figure 19.Contours of the time-averaged perturbation energy field downstream of the actuator with different amplitudes $\sigma _{d(t)}$ of disturbance input. In each panel, the comparison of perturbation energy field with and without control is presented. The colour bar displays the logarithm of the normalised perturbation energy. (a) Disturbance level $\sigma _{d(t)} = 0.0002$. (b) Disturbance level $\sigma _{d(t)} = 0.0005$. (c) Disturbance level $\sigma _{d(t)} = 0.001$.

Figure 20

Table 2.DRL-based control performance quantified by the reduction of perturbation energy.

Figure 21

Figure 20.Stability curves for Blasius flow by solving the Orr–Sommerfeld equation. (a) Neutral curve: $Re$ versus $\omega _r$. (b) Curve for $Re_c = 1474$: $\omega _r$ versus $c_i$.

Figure 22

Figure 21.Instantaneous snapshots of streamwise perturbation velocity at three different time instants $t_1$, $t_2$ and $t_3$. In each panel: the top plot represents the velocity field with only the upstream disturbance input; the middle plot represents the velocity field with only the corresponding control input; the bottom plot represents the velocity field with both the disturbance input and control input turning on. The position of disturbance input and control input is denoted by the blue triangle. Plots are for (a) $t_1 = 1000$, (b) $t_2 = 3100$, (c) $t_3 = 5600$.

Figure 23

Figure 22.Dynamics of the nonlinear KS system when subjected to an upstream random noise. (a) The r.m.s. value of perturbation velocity along the 1-D domain plotted for the KS equation excited by an upstream noise with $\sigma _{d(t)}=1$, with different values of $\varepsilon$. (b) The r.m.s. value of perturbation velocity along the 1-D domain plotted for the KS equation excited by an upstream noise of different standard deviations $\sigma _{d(t)}$, with $\varepsilon$ fixed at 1.

Figure 24

Figure 23.DRL-based control of the nonlinear KS system. (a) The r.m.s. value of perturbation velocity plotted for the uncontrolled case and the controlled cases using both the old policy (trained from the linear condition) and the new policy (retrained in the nonlinear condition with $\varepsilon = 0.005$ and $\sigma _{d(t)} = 1$). (b) The r.m.s. value of perturbation velocity plotted for the uncontrolled and controlled cases of the KS system excited by an external noise of different levels; all the control policies applied are trained from the nonlinear condition with $\varepsilon = 1$.

Figure 25

Figure 24.Time delay removal for DRL-based control of the 1-D KS system. (a) Time delay $t_D$ identified at the turning point when reward turns negative. (b) The r.m.s. value of perturbation along the 1-D domain plotted for control cases with and without time delay.

Figure 26

Figure 25.Time delay removal for DRL-based control of 2-D boundary layer flow. (a) Time delay $t_D$ identified at the turning point when reward turns negative. (b) The r.m.s. value of streamwise velocity along $y=1$ plotted for control cases with and without time delay.

Figure 27

Figure 26.Contours of the time-averaged perturbation energy field downstream of the actuator, with upstream noise input $\sigma _{d(t)} = 0.0002$. (a) Energy field without control. (b) DRL-based control with time delay. (c) DRL-based control with time delay removed.

Figure 28

Figure 27.Convective instability of the 1-D linearised KS system. (a) Relation between wavenumber $\alpha$ and growth rate $\omega _i$. (b) Relation between group velocity $v_g$ and the corresponding growth rate $\sigma$.

Figure 29

Figure 28.DRL-based control performance comparison between using the initial reward and the stability-enhanced reward with different numbers of sensors. The r.m.s. value of perturbation velocity along the 1-D domain is plotted: (a) 1 sensor, (b) 2 sensors, (c) 4 sensors, (d) 6 sensors, (e) 8 sensors, (f) 10 sensors.

Figure 30

Figure 29.Time-variation curve of the leading growth rate evaluated by DMD during the control process, using both the initial reward and the stability-improved reward. The curve for the uncontrolled process is also plotted for comparison.