Hostname: page-component-74656f9884-2dmjx Total loading time: 0 Render date: 2026-11-07T00:57:39.872Z Has data issue: false hasContentIssue false

Reinforcement-learning-based actuator selection method for active flow control

Published online by Cambridge University Press:  12 January 2023

Romain Paris*
Affiliation:
DAAA, ONERA, Université Paris Saclay, F-92190 Meudon, France
Samir Beneddine
Affiliation:
DAAA, ONERA, Université Paris Saclay, F-92190 Meudon, France
Julien Dandois
Affiliation:
DAAA, ONERA, Université Paris Saclay, F-92190 Meudon, France
*
†Email address for correspondence: romain.paris@onera.fr

Abstract

This paper addresses the issue of actuator selection for active flow control by proposing a novel method built on top of a reinforcement learning agent. Starting from a pre-trained agent using numerous actuators, the algorithm estimates the impact of a potential actuator removal on the value function, indicating the agent's performance. It is applied to two test cases, the one-dimensional Kuramoto–Sivashinsky equation and a laminar bidimensional flow around an airfoil at $Re=1000$ for different angles of attack ranging from $12^{\circ }$ to $20^{\circ }$, to demonstrate its capabilities and limits. The proposed actuator-sparsification method relies on a sequential elimination of the least relevant action components, starting from a fully developed layout. The relevancy of each component is evaluated using metrics based on the value function. Results show that, while still being limited by this intrinsic elimination paradigm (i.e. the sequential elimination), actuator patterns and obtained policies demonstrate relevant performances and allow us to draw an accurate approximation of the Pareto front of performances versus actuator budget.

Information

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

Figure 1. The RL feedback loop.

Figure 1

Figure 2. The PPO-CMA agent structure: compared with PPO, the actor has one extra output $\sigma$ that allows for a dynamic adaptation of the exploration.

Figure 2

Figure 3. Structure of the stochastic gating layer (SGL) used to filter the actor output. Here $\mu _d$ and $\mu _s$ respectively stand for $\mu _{dense}$ and $\mu _{sparse}$.

Figure 3

Table 1. Values of $\underline {u}$ and $\underline {p}$ during the different phases of the training process.

Figure 4

Figure 4. (a) Schematics of the proposed elimination process. Gates’ opening probability are represented as blue squares in the SGL layer, their colour saturation indicates the opening probability. (b) Illustration of the sequential elimination process proposed. The algorithm iterates over this loop until the breaking condition (i.e. the required number of eliminated actuators) is met.

Figure 5

Figure 5. Action-sparisty seeking PPO-CMA agent structure and training operations. (a) First training phase. Greyed-out structures are not used. (b) Second and third training phase. Phases 2 and 3 see the alternance of policy ${\rm \pi}$ and main critic $V$ training with specific training for each critic $V^i$.

Figure 6

Figure 6. Example of the one-by-one elimination strategy drawn from a Kuramoto–Savishinsky test case (§ 3). The performance curve (red line) has been smoothed using a rolling average of length 20 for the sake of readability. Shaded areas in the background illustrate learning phases. Black dots represent the evaluation runs and the checkpoint back-ups of the agent performed during training.

Figure 7

Figure 7. (a) Spatio-temporal representation of the dynamics of the KS equation on $500$ non-dimensional time units, corresponding to $2000$ control steps. (b) Shape of the three fixed points of the KS equation.

Figure 8

Figure 8. Location of observations (measuring $u$ at these locations) and Gaussian supports of the control actions overlaid on the $E1$ fixed point.

Figure 9

Figure 9. Average learning curve (red line) and evolution of the number of steps needed to reach a given percentage (reported on the line) of the maximum performance (orange lines). Dotted lines describe the ensemble minimum and maximum and shaded areas illustrate the standard deviation across the batch. These averages are computed on a 10-case training batch. Orange lines have been smoothed using a rolling average of width 75 for the sake of readability.

Figure 10

Figure 10. (c) Evaluation performances at the end of the pre-training. Averages are computed using 20 test runs. Normalised performance of the baseline (blue line) and of the controlled cases (red line) is to be read with the two left axes. Action $L_2$ norm (green line) is reported on the right axis. (a,b) Evolution of the state corresponding to the baseline and controlled ‘example’ runs, respectively.

Figure 11

Figure 11. (a) Average training performance with respect to the number of active action components. The results of the proposed method (red line) are to be compared with those of the systematic study (blue line). The red shaded area illustrates the standard deviation across the batch, whereas the blue shaded area represents the performance envelope of all possible layouts. Data points are denoted by grey ‘plus’ signs. (b) Expected performances of the proposed methods after an extra fine-tuning phase of the agents (orange line) compared with the systematic study (blue line).

Figure 12

Figure 12. Detailed elimination history for the three main configurations for each complexity. Stripes connecting layouts have a size proportional to the number of observed transitions (e.g. transitions from the eight-actuator layout to the seven-actuator layout having all active components but the last one, represent 72 out of the 200 test cases). Orange individuals denote overall best layouts for a given number of actuators.

Figure 13

Figure 13. (a) Entropy of the obtained layouts with respect to the number of active actuators. The maximum reachable entropy is that reached by the systematic study (blue line). A random sampling of layouts of the same size as the study (200 test cases) would have the entropy represented by the orange line. (b) Frequency histograms of the obtained layouts (bar plots) compared with the absolute best layout from the systematic study (blue numbered boxes) for 1 to 4 action components. Population sizes (on which frequencies are computed) are reported below each histogram. Fixed point $E_1$ has been plotted in the background as a reference.

Figure 14

Table 2. Averaged relative value error ${\rm \Delta} V = V_{estim.} - V_{obs.}$ for each actuator elimination. Here $V_{estim.}$ is the forecast value for the actuator elimination and $V_{obs.}$ is the observed value function after the elimination; $S(V_{syst.})$ is the standard deviation of the average performances of all possible layouts (without taking any performance threshold into account).

Figure 15

Figure 14. (a) Flow domain geometry, not at true scale. $\alpha$ denotes the angle of attack and $C$ is the (unitary) chord length. (b) Boundary conditions on the airfoil, with $n_{act}=10$. Blue numbered boxes symbolise actuators, number 0 being the upstream-most actuator, number 9 being the downstream-most one.

Figure 16

Figure 15. Instantaneous $Y$ velocity flow field, with an arbitrary control action (here with $n_{act}=20$), in the free-stream reference frame. White dots represent the sensor locations. The coloured triangles nearby the airfoil depict the action, their heights and colours representing each action amplitude. The dashed diamond shapes mark off maximum actions (both positive and negative). The strong variations in velocity in the vicinity of the actuators are due to the presence of interspersed wall boundary conditions in-between actuators.

Figure 17

Figure 16. (a) Evolution of the lift and drag coefficients and of the Strouhal number with the angle of attack $\alpha$. The shaded areas depict the standard deviation of $C_l$ and $C_d$. The secondary Strouhal number emerging for $\alpha \geq 22^{\circ }$ is drawn in a dashed line. The red dotted line shows the predicted Strouhal number for an equivalent cylinder using Roshko's formula. (b,c) The $C_l$ and $C_d$ power spectral density (PSD) spectra plotted for $\alpha =20^{\circ }$ (b) and $\alpha =25^{\circ }$ (c). Green vertical lines denote the main Strouhal numbers. Other Strouhal numbers (for the other values of $\alpha$) are reported as grey lines for comparison.

Figure 18

Figure 17. Snapshots of the flow vorticity around the airfoil over two characteristic periods $T$. Blue-framed thumbnails correspond to $\alpha =20^{\circ }$, orange-framed ones correspond to $\alpha =25^{\circ }$.

Figure 19

Figure 18. Separation (filled areas) and reattachment (hatched areas) points ranges with respect to the angle of attack. For $\alpha =15^{\circ }$, the reattachment takes place at the trailing edge.

Figure 20

Figure 19. Ensemble-averaged learning curves of the pre-training phase for $\alpha =12^{\circ }$ (a), $\alpha =15^{\circ }$ (b) and $\alpha =20^{\circ }$ (c). Dotted lines describe the ensemble minimum and maximum and shaded areas illustrate the standard deviation across the batch.

Figure 21

Figure 20. Ensemble averages of evaluation runs performed at the end of the pre-training phase (epoch $700$) for $\alpha =15^{\circ }$. Here $10$ independent test cases are evaluated on 10 test runs (100 trajectories in total). Dotted lines describe the ensemble minimum and maximum and shaded areas illustrate the standard deviation across the batch. Vorticity snapshots illustrate the flow state at key moments of a randomly chosen run.

Figure 22

Figure 21. Averaged training performance indicators with respect to the number of active action components for $\alpha =15^{\circ }$. Data points are denoted by grey ‘plus’ signs. Ensemble averages are computed on these data points (batch size $5$). The blue dashed line represents the uncontrolled (baseline) performance, solid lines denote the evolution of the ensemble average and shaded areas illustrate the standard deviation across the batch. All indicators are computed on the last 40 control steps of a training run. (a) Evolution of the standard deviation of the drag coefficient $S(C_d)$. (b) Evolution of the standard deviation of the lift coefficient $S(C_l)$. (c) Time-averaged drag coefficient $\overline {C_d}$. (d) Time-averaged lift coefficient $\overline {C_l}$.

Figure 23

Figure 22. Frequency histograms of the obtained layouts (bar plots) for $\alpha =12^{\circ }$ (top row), $\alpha =15^{\circ }$ (middle row) and $\alpha =20^{\circ }$ (bottom row). The blue shaded areas correspond to the range of evolution of the separation point. These frequencies are observed on the test batch of size 10, used in this study.

Figure 24

Table 3. Comparison of the final (in the ‘stabilised phase’) performances in closed-loop and open-loop conditions. Performance variations are measured as a relative variation with respect to the closed-loop performance. Green coloured figures indicate that the open-loop control performs better on the metric than the closed loop whereas red coloured ones state the opposite. Ensemble averages are computed on batches of 10 test runs.

Figure 25

Table 4. Additional numerical parameters.

Figure 26

Figure 23. Duration of the elimination phases with respect to the eliminated action component. The ensemble average (solid line) is computed across the 200 test cases batch. The shaded area illustrates the corresponding ensemble standard deviation.

Figure 27

Figure 24. (e) Comparison of the performances of both one-actuator agents (having only actuator 0 activated) obtained via the systematic study (blue line) and the elimination process (red line) with the non-controlled baseline (grey line) and an eight-actuator agent (orange line). Solid lines represent ensemble averages computed over batches over 100 runs, shaded areas account of the standard deviation across the batch, while dash-dotted lines depict the example run reported on the upper graphs. (a–d) Evolution of the state on example runs for each agent.

Figure 28

Figure 25. Comparison of lift and drag open-loop control performances using actuator number 3 (as prescribed by the sparsification method), upstream to the separation range or using actuator number 6, located nearby the separation range. Ensemble averages are computed on a batch of 40 test runs.

Figure 29

Figure 26. Ensemble average of control actions of the pre-trained policies for $\alpha =12^{\circ }$ (a), $\alpha =15^{\circ }$ (b) and $\alpha =20^{\circ }$ (c). Averages are computed on batches of 50 test runs. Shaded areas illustrate the standard deviation across the batch. Action component numbering follows the notation introduced in figure 14.