MAOCHAO XIAO

PhD Graduate

PhD program:: XXXVIII


supervisor: Sergio Pirozzoli
co-supervisor: Johan Larsson

Thesis title: Reinforcement learning for wall modeling in large- eddy simulation

This work advances the field of large-eddy simulation for wall-bounded turbulence through four key contributions. We begin by conducting direct numerical simulations of rotating turbulent pipe flow at friction Reynolds numbers up to $\Rey_\tau \approx 3000$, investigating the physical mechanisms underlying drag reduction induced by steady axial rotation. Next, we present CaLES, a GPU-accelerated LES solver featuring advanced subgrid-scale models and numerical schemes, with validation demonstrated on decaying isotropic turbulence, turbulent channel flow, and turbulent duct flow. We then develop SmartFlow, a nearly solver-agnostic deep reinforcement learning framework for computational fluid dynamics deployable on HPC systems, showcasing its versatility through single-agent synthetic-jet control for cylinder flows, multi-agent wake control, and multi-task multi-agent wall-model training. Finally, we employ multi-task multi-agent deep reinforcement learning to construct wall models for large-eddy simulation of wall-bounded turbulence, focusing on model robustness and generalizability across flow conditions. Direct numerical simulations (DNS) of rotating pipe flows up to $\Rey_\tau \approx 3000$ are carried out to investigate drag reduction effects associated with axial rotation, extending previous studies carried out at a modest Reynolds number~\citep{Orlandi1997a, Orlandi2000}. The results show that the drag reduction, which we theoretically show to be equivalent to net power saving assuming no mechanical losses, monotonically increases as either the Reynolds number or the rotation number increases, proportionally to the inner-scaled rotational speed. Net drag reduction up to about $70\%$ is observed, while being far from flow relaminarization. Scaling laws for the mean axial and azimuthal velocity are proposed, from which a predictive formula for the friction factor is derived. The formula can correctly represent the dependency of the friction factor on the Reynolds and rotation numbers, maintaining good accuracy for low-to-moderate rotation numbers. Examination of the turbulent structures highlights the role of rotation in widening and elongating the small-scale streaks, with subsequent suppression of sweeps and ejections. In the core part of the flow, clear weakening of large-scale turbulent motions is observed at high Reynolds numbers, with subsequent suppression of the outer-layer peak in the pre-multiplied spectra. The Fukagata-Iwamoto-Kasagi decomposition indicates that, consistent with a theoretically derived formula, the outer layer yields the largest contribution to drag reduction at increasingly high Reynolds numbers. In contrast, both the inner and the outer layers contribute to drag reduction as the rotation number increases. We introduce CaLES, a GPU-accelerated finite-difference solver designed for large-eddy simulations (LES) of incompressible wall-bounded flows in massively parallel environments. Built upon the existing direct numerical simulation (DNS) solver CaNS, CaLES relies on low-storage, third-order Runge-Kutta schemes for temporal discretization, with the option to treat viscous terms via an implicit Crank-Nicolson scheme in one or three directions. A fast direct solver, based on eigenfunction expansions, is used to solve the discretized Poisson/Helmholtz equations. For turbulence modeling, the classical Smagorinsky model with van Driest near-wall damping and the dynamic Smagorinsky model are implemented, along with a logarithmic law wall model. GPU acceleration is achieved through OpenACC directives, following CaNS-2.3.0. Performance assessments were conducted on the Leonardo cluster at CINECA, Italy. Each node is equipped with one Intel Xeon Platinum 8358 CPU (2.60 GHz, 32 cores) and four NVIDIA A100 GPUs (64 GB HBM2e), interconnected via NVLink 3.0 (200 GB/s). The inter-node communication bandwidth is 25 GB/s, supported by a DragonFly+ network architecture with NVIDIA Mellanox InfiniBand HDR. Results indicate that the computational speed on a single GPU is equivalent to approximately 15 CPU nodes, depending on the treatment of viscous terms and the subgrid-scale model, and that the solver efficiently scales across multiple GPUs. The predictive capability of CaLES has been tested using multiple flow cases, including decaying isotropic turbulence, turbulent channel flow, and turbulent duct flow. The high computational efficiency of the solver enables grid convergence studies on extremely fine grids, pinpointing non-monotonic grid convergence for wall-modeled LES. Deep reinforcement learning (DRL) is emerging as a powerful tool for fluid-dynamics research, encompassing active flow control, autonomous navigation, turbulence modeling and discovery of novel numerical schemes. We introduce SmartFlow, a CFD-solver-agnostic framework for both single- and multi-agent DRL algorithms that can easily integrate with MPI-parallel CPU and GPU-accelerated solvers. Built on Relexi and SmartSOD2D, SmartFlow uses the SmartSim infrastructure library and our newly developed SmartRedis-MPI library to enable asynchronous, low-latency, in-memory communication between CFD solvers and Python-based DRL algorithms. SmartFlow leverages PyTorch's Stable-Baselines3 for training, which provides a modular, Gym-like environment API. We demonstrate its versatility via three case studies: single-agent synthetic-jet control for drag reduction in a cylinder flow simulated by the high-order FLEXI solver, multi-agent cylinder wake control using the GPU-accelerated spectral-element code SOD2D, and multi-agent wall-model learning for large-eddy simulation with the finite-difference solver CaLES. SmartFlow's CFD-solver-agnostic design and seamless HPC integration are promising to accelerate RL-driven fluid-mechanics studies. Finally, we develop wall models for large-eddy simulation of wall-bounded turbulence using multi-task multi-agent deep reinforcement learning. The wall models are trained within the SmartFlow framework coupled with the GPU-accelerated CaLES solver, utilizing turbulent channel flows across multiple Reynolds numbers to enhance generalizability. Model robustness is evaluated through comprehensive testing at various Reynolds numbers and wall-model matching heights, demonstrating the potential of reinforcement learning approaches for developing robust wall models.

Research products

11573/1734040 - 2025 - Cales: a gpu-accelerated solver for large-eddy simulation of wall-bounded flows
Xiao, Maochao; Ceci, Alessandro; Costa, Pedro; Larsson, Johan; Pirozzoli, Sergio - 01a Articolo in rivista
paper: COMPUTER PHYSICS COMMUNICATIONS (Amsterdam: Elsevier BV) pp. 1-17 - issn: 0010-4655 - wos: WOS:001428558600001 (2) - scopus: 2-s2.0-85217797880 (2)

11573/1721677 - 2024 - Direct numerical simulation of drag reduction in rotating pipe flow up to Reτ ≈ 3000
Xiao, Maochao; Ceci, Alessandro; Orlandi, Paolo; Pirozzoli, Sergio - 01a Articolo in rivista
paper: JOURNAL OF FLUID MECHANICS (London: Cambridge University Press.) pp. - - issn: 0022-1120 - wos: WOS:001326622800001 (1) - scopus: 2-s2.0-85206239705 (2)

11573/1689459 - 2022 - MANP Activation Of The cGMP Inhibits Aldosterone Via PDE2 And CYP11B2 In H295R Cells And In Mice
Chen, Yang; Iyer, Seethalakshmi R; Nikolaev, Viacheslav O; Naro, Fabio; Pellegrini, Manuela; Cardarelli, Silvia; Xiao, Ma; Lee, Hon-Chi; Burnett, John C - 01a Articolo in rivista
paper: HYPERTENSION (American Heart Association:7272 Greenville Avenue:Dallas, TX 75231:(800)242-8721, (214)706-1310, INTERNET: http://www.americanheart.org, Fax: (214)691-6342) pp. 1702-1712 - issn: 0194-911X - wos: WOS:000823310100022 (6) - scopus: 2-s2.0-85134389549 (6)

11573/1667768 - 2022 - Enhanced prediction of three-dimensional finite iced wing separated flow near stall
Xiao, Maochao; Zhang, Yufei; Zhou, Feng - 01a Articolo in rivista
paper: INTERNATIONAL JOURNAL OF HEAT AND FLUID FLOW (Butterworth Heinemann Publ:200 Wheeler Road:Burlington, MA 01803:(800)366-2665, INTERNET: http://www.butterworths.co.za, Fax: (617)933-6333 ELSEVIER SCIENCE INC, 360 PARK AVE SOUTH, NEW YORK, USA, NY, 10010-1710) pp. - - issn: 0142-727X - wos: WOS:000875642800001 (5) - scopus: 2-s2.0-85140080630 (6)

11573/1667769 - 2021 - Improved prediction of flow around airfoil accreted with horn or ridge ice
Xiao, Maochao; Zhang, Yufei - 01a Articolo in rivista
paper: AIAA JOURNAL ([New York, etc.] American Institute of Aeronautics and Astronautics.) pp. 2318-2327 - issn: 0001-1452 - wos: WOS:000658581200032 (7) - scopus: (0)

11573/1667762 - 2020 - Assessment of the SST-IDDES with a shear-layer-adapted subgrid length scale for attached and separated flows
Xiao, Maochao; Zhang, Yufei - 01a Articolo in rivista
paper: INTERNATIONAL JOURNAL OF HEAT AND FLUID FLOW (Butterworth Heinemann Publ:200 Wheeler Road:Burlington, MA 01803:(800)366-2665, INTERNET: http://www.butterworths.co.za, Fax: (617)933-6333 ELSEVIER SCIENCE INC, 360 PARK AVE SOUTH, NEW YORK, USA, NY, 10010-1710) pp. - - issn: 0142-727X - wos: WOS:000571586100005 (14) - scopus: 2-s2.0-85087780207 (15)

11573/1667765 - 2020 - Numerical investigation of the unsteady flow past an iced multi-element airfoil
Xiao, Maochao; Zhang, Yufei; Zhou, Feng - 01a Articolo in rivista
paper: AIAA JOURNAL ([New York, etc.] American Institute of Aeronautics and Astronautics.) pp. 3848-3862 - issn: 0001-1452 - wos: WOS:000567528100011 (20) - scopus: 2-s2.0-85090286972 (24)

11573/1667760 - 2019 - Numerical study of iced airfoils with horn features using large-eddy simulation
Xiao, Maochao; Zhang, Yufei; Zhou, Feng - 01a Articolo in rivista
paper: JOURNAL OF AIRCRAFT (American Institute of Aeronautics & Astronautics:1801 Alexander Bell Drive, Suite 500:Reston, VA 20191:(800)639-2422, (703)264-7500, EMAIL: custserv@aiaa.org, INTERNET: http://www.aiaa.org/, Fax: (703)264-7657) pp. 94-107 - issn: 0021-8669 - wos: WOS:000459623700008 (26) - scopus: 2-s2.0-85061894128 (29)

11573/1667780 - 2018 - Application of shear layer adapted sub-grid length scale in SST-IDDES
Xiao, M. - 04b Atto di convegno in volume
conference: Tenth International Conference on Computational Fluid Dynamics (ICCFD10) (Barcelona, Spain)
book: 10th International conference on computational fluid dynamics (ICCFD10) - ()

11573/1667777 - 2017 - Numerical study of an iced airfoil using window-embedded RANS/LES hybrid method
Xiao, Maochao; Zhang, Yufei; Chen, Haixin - 04b Atto di convegno in volume
conference: 9th AIAA Atmospheric and space environments conference (Denver, Colorado)
book: 9th AIAA atmospheric and space environments conference - (978-1-62410-496-1)

© Università degli Studi di Roma "La Sapienza" - Piazzale Aldo Moro 5, 00185 Roma