Hostname: page-component-6766d58669-bp2c4 Total loading time: 0 Render date: 2026-05-14T18:39:10.088Z Has data issue: false hasContentIssue false

Optimised flow control based on automatic differentiation in compressible turbulent channel flows

Published online by Cambridge University Press:  14 May 2025

Wenkang Wang
Affiliation:
International Research Institute for Multidisciplinary Science and Frontiers, Beihang University, Beijing 100191, PR China
Xu Chu*
Affiliation:
Faculty of Environment Science and Economy, University of Exeter, EX4 4QF Exeter, UK
*
Corresponding author: Xu Chu, xu.chu@simtech.uni-stuttgart.de

Abstract

This study presents an automatic differentiation (AD)-based optimisation framework for flow control in compressible turbulent channel flows. Using a differentiable solver, JAX-Fluids, we designed fully differentiable boundary conditions that allow for the precise calculation of gradients with respect to boundary control variables. This facilitates the efficient optimisation of flow control methods. The framework’s adaptability and effectiveness are demonstrated using two boundary conditions: opposition control and tunable permeable walls. Various optimisation targets are evaluated, including wall friction and turbulent kinetic energy (TKE), across different time horizons. In each optimisation, there were around $4\times 10^4$ control variables and $3\times 10^{9}$ state variables in a single episode. Results indicate that TKE targeted opposition control achieves a more stable and significant reduction in drag, with effective suppression of turbulence throughout the channel. In contrast, strategies that focus directly on minimising wall friction were found to be less effective, exhibiting instability and increased turbulence in the outer region. The tunable permeable walls also show potential to achieve stable drag reduction through a ‘flux-inducing’ mechanism. This study demonstrates the advantages of AD-based optimisation in complex flow control scenarios and provides physical insight into the choice of the quantity of interest for improved optimisation performance.

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, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Figure 1. Domain of compressible DNS channel flow. The snapshot of the flow field, extracted from the smooth wall channel, serves as the initial condition for control. The blue and red isosurfaces represent streamwise vorticity at levels $\omega _x=\pm \sigma _x$.

Figure 1

Figure 2. The procedure for AD and flow control optimisation.

Figure 2

Figure 3. Vorticity structures above opposition control surfaces. Panels (a,c,e) show cumulative wall friction control with $\Delta t^+=50$, while panels (b,d,f) depict terminal TKE control with the same $\Delta t^+$. The pairs of panels (a,b), (c,d) and (e,f) represent $t^+=50$, $t^+=500$ and $t^+=2000$ from the onset of control, respectively. Blue and red isosurfaces indicate streamwise vorticity at $\omega _x=\pm \sigma _{\omega _x}$, $\sigma _{\omega _x}$ being the standard deviation of $\omega _x$ at $t=0$. Control $\phi$ is illustrated on the wall with coloured contours. Present snapshot profiles of $\langle u\rangle$ and $-\langle u'v'\rangle$ are overlaid on front ($z=1.5\pi$) and back ($z=0$) planes with solid red lines. Black dashed lines show profiles from the smooth wall scenario for comparison. See also supplementary movies 1 and 2 for the full simulation duration.

Figure 3

Figure 4. The development of wall friction $\tau _w$ with opposition control directly targeting loss functions associated with $\tau _w$. In the legend, ‘$\tau _w$(cum), $25^+$’ represents cumulative wall friction control with a time horizon of $\Delta t^+=25$; ‘$\tau _w$(ter)’ indicates terminal wall friction control. This convention is consistently applied throughout the rest of the legend and the paper.

Figure 4

Figure 5. The history of (a) TKE $k$ and (b) wall friction $\tau _w$ with opposition control targeting TKE related loss function. The legend follows the same format as figure 4, with $k$ denoting TKE control.

Figure 5

Figure 6. The opposition control $\phi (t^+=0)$ for wall friction control with different targets and time horizons. (a) Cumulative $\tau _w$ with $\Delta t^+=25$; (b) terminal $\tau _w$ with $\Delta t^+=25$; (c) cumulative $\tau _w$ with $\Delta t^+=50$; (d) terminal $\tau _w$ with $\Delta t^+=50$. The isolines depict the initial $u'$ of the episode at buffer layer ($y^+=15$). The solid and dashed isolines indicate levels $u'/\sigma _{u'}=-1$ and 1, respectively.

Figure 6

Figure 7. The opposition control $\phi (t^+=0)$ for TKE control with different targets and time horizons. (a) Cumulative $k$ with $\Delta t^+=25$; (b) terminal $k$ with $\Delta t^+=25$; (c) cumulative $k$ with $\Delta t^+=50$; (d) terminal $k$ with $\Delta t^+=50$. The isolines depict the initial $u'$ of the episode at buffer layer ($y^+=15$). The solid and dashed isolines indicate levels $u'/\sigma _{u'}=-1$ and 1, respectively.

Figure 7

Figure 8. The joint PDF $f_{\phi u'}$ between control $\phi$ and streamwise fluctuation $u'$ at $y^+=15$. (a) Cumulative $\tau _w$ control with $\Delta t^+=50$; (b) cumulative $k$ control with $\Delta t^+=50$; (c) terminal $\tau _w$ control with $\Delta t^+=50$; (d) terminal $k$ control with $\Delta t^+=50$. The coloured contours show the joint PDF $f_{\phi u^{\prime}_{0}}$ between the control $\phi$ and initial $u'$, and the dashed isolines show the joint PDF $f_{\phi u^{\prime}_{\Delta t}}$ between the control $\phi$ and terminal $u'$.

Figure 8

Table 1. The wall friction of the turbulent channel and the relative change in opposition control cases.

Figure 9

Figure 9. Mean statistics of opposition control cases compared with the smooth wall channel. (a) Mean streamwise velocity $\langle u\rangle$; (b) mean temperature $\langle T\rangle$ and mean density $\langle \rho \rangle$; (c) turbulent intensity $\langle u^{\prime}_{i}u^{\prime}_{i}\rangle$; (d) Reynolds stress $\langle u'v'\rangle$.

Figure 10

Figure 10. Premultiplied integrands (PI) of RD identity as a function of $y^+$ in opposition control cases. Here $C_f^M$, $C_f^F$ and $C_f^T$ are denoted by dashed lines, dotted lines and dash-dotted lines, respectively. The PIs of smooth wall channel are superimposed with circles. (a) Cumulative $\tau _w$ control, $\Delta t^+=50$; (b) cumulative $k$ control, $\Delta t^+=50$; (c) terminal $\tau _w$ control, $\Delta t^+=50$; (d) terminal $k$ control, $\Delta t^+=50$.

Figure 11

Figure 11. Vorticity structures above a tunable permeable wall. Panels (a,c,e) show cumulative wall friction control with $\Delta t^+=25$, while panels (b,d,f) depict terminal TKE control with the same $\Delta t^+$. The pairs of panels (a,b), (c,d) and (e,f) represent $t^+=50$, $t^+=500$ and $t^+=2000$ from the onset of control, respectively. Blue and red isosurfaces indicate streamwise vorticity at $\omega _x=\pm \sigma _{\omega _x}$, $\sigma _{\omega _x}$ being the standard deviation of $\omega _x$ at $t=0$. Control $\phi$ is illustrated on the wall with coloured contours. Present snapshot profiles of $\langle u\rangle$ and $-\langle u'v'\rangle$ are overlaid on front ($z=1.5\pi$) and back ($z=0$) planes with solid red lines. Black dashed lines show profiles from the smooth wall scenario for comparison. See also supplementary movies 3 and 4 for the full simulation duration.

Figure 12

Figure 12. History of wall friction over tunable permeable wall targeting loss functions associated with $\tau _w$.

Figure 13

Figure 13. The history of (a) TKE $k$ and (b) wall friction $\tau _w$ with the tunable permeable wall targeting TKE related loss function.

Figure 14

Figure 14. The $\beta$ map of the permeable wall for wall friction control with different targets and time horizons. (a) Cumulative control with $\Delta t^+=25$; (b) terminal control with $\Delta t^+=25$; (c) cumulative control with $\Delta t^+=50$; (d) terminal control with $\Delta t^+=50$. The grey patches are permeable regions with $\beta \geqslant 0.4$. The colour map shows the $p'$ at buffer layer $y^+=15$.

Figure 15

Figure 15. The $\beta$ map of the permeable wall for TKE control with different targets and time horizons. (a) Cumulative control with $\Delta t^+=25$; (b) terminal control with $\Delta t^+=25$; (c) cumulative control with $\Delta t^+=50$; (d) terminal control with $\Delta t^+=50$. The other settings are the same as figure 14.

Figure 16

Figure 16. The joint PDF $f_{-\beta p', u'}$ between the permeable wall flux and streamwise fluctuation $u'$ at $y^+=15$. (a) Cumulative control of wall friction with $\Delta t^+=25$; (b) cumulative control of TKE with $\Delta t^+=25$; (c) terminal control of wall friction with $\Delta t^+=25$; (d) terminal control of wall TKE with $\Delta t^+=25$. The coloured contours show the joint PDF $f_{-\beta p'_0, u^{\prime}_{0}}$ between wall flux and streamwise fluctuation $u'$ at the initial time of the episodes, and the dashed isolines show the joint PDF $f_{-\beta p'_{\Delta t}, u^{\prime}_{\Delta t}}$ at the terminal time of the episodes.

Figure 17

Table 2. The relative wall friction change in permeable wall cases.

Figure 18

Figure 17. Mean statistics of permeable wall cases compared with the smooth wall channel. (a) Mean streamwise velocity $\langle u\rangle$; (b) mean temperature $\langle T\rangle$ and mean density $\langle \rho \rangle$; (c) turbulent intensity $\langle u_i'u_i'\rangle$; (d) Reynolds stress $\langle u'v'\rangle$.

Figure 19

Figure 18. Premultiplied integrands (PI) of RD identity as a function of $y^+$ for tunable permeable wall cases. Here $C_f^M$, $C_f^F$, $C_f^T$ and $C_{f1}^V$ are denoted by dashed lines, dotted lines, dash-dotted lines and thin solid lines, respectively. The sum of all the integrands $C_{f}^{\prime}$ are denoted by thick solid lines, where the contribution of $C_{f2}^V$ is not included. The PI of the smooth wall channel is superimposed with circles of corresponding colours. (a) Cumulative $\tau _w$ control, $\Delta t^+=25$; (b) cumulative $k$ control, $\Delta t^+=25$; (c) terminal $\tau _w$ control, $\Delta t^+=25$; (d) terminal $k$ control, $\Delta t^+=25$.

Figure 20

Figure 19. Comparison of mean statistics between the current DNS and Yao & Hussain (2020). (a) Mean streamwise velocity $\langle u\rangle$;(b) mean temperature $\langle T\rangle$ and mean density $\langle \rho \rangle$; (c) turbulent intensity $\langle u_i'u_i'\rangle$ and Reynolds stress $\langle u'v'\rangle$.

Figure 21

Figure 20. (a) Opposition control set-up for AD validation. The green regions near the upper and lower walls represent areas where the control amplitude is set to zero, while the orange regions denote areas with a uniform control amplitude $\phi$. (b) Convergence of FD gradients towards AD gradients.. The blue line represents the relative error between FD and AD gradients as a function of the step size. The dashed line indicates second-order convergence.

Figure 22

Figure 21. The sensitivity of the initial control field $\phi$ (terminal $k$ control, $\Delta t^+=25$) and parameter $\beta$ (cumulative $\tau _w$ control, $\Delta t^+=25$). (a) The development of the $L_2$ norm $\|\phi \|_2$ with iteration steps for the opposition control case. (b) The evolution of the loss function $J(\phi )$ with iteration steps. (c) The development of $\|\beta \|_2$ with iteration steps for the permeable wall control case. (d) The evolution of the loss function $J(\beta )$ with iteration steps.

Supplementary material: File

Wang and Chu supplementary material movie 1

Movie 1
Download Wang and Chu supplementary material movie 1(File)
File 7 MB
Supplementary material: File

Wang and Chu supplementary material movie 2

Movie 2
Download Wang and Chu supplementary material movie 2(File)
File 5.3 MB
Supplementary material: File

Wang and Chu supplementary material movie 3

Movie 3
Download Wang and Chu supplementary material movie 3(File)
File 7.6 MB
Supplementary material: File

Wang and Chu supplementary material movie 4

Movie 4
Download Wang and Chu supplementary material movie 4(File)
File 6.3 MB