Paper commentary
Scientific multi-agent reinforcement learning for wall-models of turbulent flows
Multi-agent reinforcement learning trains wall models for turbulent flow simulations
- Problem Wall-resolved large-eddy simulations need grid points that grow quickly with Reynolds number. Existing wall models rely on empirical coefficients calibrated for one flow state, so they break down in separated or rough flows.
- Method SciMARL makes grid points along the wall into cooperating agents. Each agent learns to adjust the modeled wall-shear stress from its local state, with a reward for reducing the wall-stress error.
- Results The log-law-based wall model kept friction velocity error below 4% in channel flow. The simulations cut computational cost by several orders of magnitude relative to fully resolved simulations.
Why wall modeling is still hard
LES cannot simply resolve the near-wall region because the stress-producing eddies shrink in proportion to the distance from the wall. Modeling the near-wall flow so that only the outer large-scale motions are resolved reduces the grid-point requirement to at most O(Re). Moving the near-wall physics into a model therefore saves cost, but only if that model is accurate.
Many wall models rely on RANS-type parametrizations that need a priori empirical coefficients calibrated for one flow state, typically equilibrium turbulence over a flat plate. These coefficients break down where separation, roughness or transition coexist, and those are the flows where wall models matter most. The dynamic wall model removes the a priori coefficients at a negligible additional cost, but it stays sensitive to the numerical method and the SGS model.
That methodology has mostly been exploited for structured, incompressible flow solvers, so it has limited applicability for compressible flows or complex geometries.
Supervised learning offers a data-driven route, but its networks are usually trained on single-step target values taken from DNS. Such a network can look accurate in a priori tests and still drift once it is integrated in time, because its single-step cost function never sees the compounding errors. The authors expect wall models to be even more sensitive to this drift than SGS models, which is why they look for a different training signal.
They propose reinforcement learning, which can be trained in-situ with the LES, as that different signal.
Two state designs for the agents
Each agent sits at a point along the wall and reads a local state, so the state design decides what the agent can learn from. The states are nondimensionalized with viscosity and the modeled friction velocity, not the true one, so they can be computed without knowing the flow in advance. The modeled friction velocity is built from the modeled wall-shear stress, which is the only wall quantity the model outputs.
The action is a multiplication factor between 0.9 and 1.1 applied to the modeled wall-shear stress at each time step. The reward is incremental, proportional to the improvement in the wall-stress error over the previous step, and it earns extra credit when the error is within 1%.
The velocity-based wall model, VWM, uses the streamwise velocity at the sampling height, its wall-normal derivative and the sampling height itself as its state. Its agents learn to raise or lower the wall stress depending on whether the velocity lies above or below the log law, without being given the log-law constants. The VWM learns this without prior knowledge of the log-law coefficients, which the authors stress as the point of training through the RL process.
Because the training set covers only a limited range of the sampling height, the VWM may struggle to extrapolate to much larger values. The authors suggest refining the wall-normal grid, with Ny∼Re[4–6], to alleviate this extrapolation problem.
The log-law-based wall model, LL WM, instead feeds the agent two instantaneous log-law coefficients built from the local velocity and its gradient. The states are 1/κm = (∂u*/∂y*) at y* and Bm = u* − (1/κm) log(hm)*, both evaluated at the sampling height. Because these values come from the instantaneous flow rather than the sampling height alone, the authors expect the LL WM to learn log-law behavior at sampling heights it never saw in training.
The LL WM uses the same actions and reward as the first model, so the state is the only change between the two designs. The LL WM takes only the instantaneous streamwise velocity, its wall-normal gradient and the distance from the wall, which the authors say doesn't depend heavily on numerics or SGS models.
Figure 2(b) shows the LL WM joint density of 1/κm and Bm, where the majority of states center around the true 1/κ and B.
How the training loop runs
Training separates the work of running simulations from the work of updating the policy. Workers run the flow simulations and collect, for each agent, an episode of states, rewards, policy statistics and actions. When a simulation concludes, each worker sends one episode per agent to the central learning process, called the master. The master stores these episodes in a replay memory (RM) and sends back updated policy parameters.
Each training iteration advances the simulation for 2 δ/uτ and updates the model at every time step.
The master samples the replay memory to update the policy parameters with Remember-and-Forget Experience Replay (ReF-ER). V-RACER trains a neural network with weights w that outputs the mean and standard deviation of the policy, plus a state-value estimate. Monte Carlo sampling of B observations from the RM approximates the policy and value gradients, with B = 512 in the training runs.
The agents are placed every four grid cells in x and z, so each agent's state is interpolated to the chosen sampling height hm. Each episode starts from a white-noise perturbation of a previous WMLES flow field, with the initial wall stress within ±20% of the correct value. The action multiplies the modeled wall stress by a factor between 0.9 and 1.1, and the reward for VWM and LL WM is defined in equation (8).
Its outer weights are small and the bias is shifted so that the initial policy is approximately N(1, 10−4). Each training run is advanced for 10 to the power 7 policy gradient steps.
Channel flow results
The VWM is expected to perform as intended as long as the sampling height (h_m)+ stays inside the training range of 150 to 1200. Refining the grid so the first point off the wall lands inside the trained range brought those errors down significantly.
The LL WM kept the error in friction velocity below 4%, and its mean profiles stayed close to the log law regardless of the value of (h_m)+. That error grows with Reynolds number, which the authors attribute to stronger variation of the streamwise wall-normal gradient and to (h_m)+ leaving the trained range. The authors note that this Reynolds number range is enough for many external aerodynamic and geophysical flows.
Boundary layer, wall-stress correlation and cost
The LL WM, trained only on channel flow, was run in a zero-pressure-gradient flat-plate turbulent boundary layer. The simulated Reθ range runs from 1000 to 7000, a range chosen so the results can be compared against relevant DNS. The modeled skin friction coefficient Cmf over the full simulation domain stays comparable to the empirical Cf values.
The authors read this as showing that the model adapts to variations of wall-shear stress in the streamwise direction.
The EQWM's predicted wall-shear stress is perfectly correlated with the velocity fluctuations at the sampling location. This perfect correlation follows from the deterministic structure of the EQWM, as the paper describes it. DNS shows a correlation coefficient of 0.3 between these two quantities. The LL WM gives a smaller correlation between off-wall velocity and wall-shear stress, with a maximum of approximately 0.3.
The authors say this maximum matches the expected correlation from DNS, so the LL WM keeps the stress-control mechanism of resolved flow.
For supervised learning, generating the DNS data would require O(107) CPU-Hours and more than 100TB of storage. Training the LL WM takes O(103) CPU-hours at Reτ = 4200 with less than 1GB of storage. The authors argue that the DNS overhead makes supervised learning less practical for real-world wall modeling. Because the LL WM takes only the streamwise velocity, its wall-normal gradient and the wall distance as states, it extends easily to other numerics and SGS models.
Limitations and open expectations of the LL WM and VWM
The VWM was trained on a limited range of sampling heights, so its extrapolation to much larger heights may be challenging. The authors propose refining the grid in the wall-normal direction as a remedy, with Ny∼ Re[4–6]. Taken together, the VWM needs more wall-normal grid points as the Reynolds number rises, since the first grid point must stay inside the trained range of (hm)+.
The paper reports this need for refinement at Reτ = 2× 104 and 5× 104, where high errors appeared before the grid was refined.
The LL WM's prediction error in the friction velocity stays below 4%, but it grows with Reynolds number. The boundary layer test placed the sampling point at the third grid point off the wall, so its results depend on that choice.
The training and the boundary layer test both rely on the authors' in-house LES solver. The channel flow training is the only training case, and the boundary layer test uses LL WM trained on that channel flow. Roughness, stratified and compressible flows are extensions the authors anticipate, and they didn't test them. Claims about complex geometries and different numerical methods rest on the argument that LL WM needs only one off-wall state, not on tests in those settings.
Paper info
- Authors
- H. Jane Bae, Petros Koumoutsakos
- Venue
- arXiv · Preprint
- First published
- 2021-6-21
- Added
- 2026-11-6
- Updated
- 2022-2-1
- Version
- v2
- arXiv
- 2106.11144
- DOI
- 10.1038/s41467-022-28957-7
- Category
- physics.flu-dyn · cs.LG · physics.comp-ph
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
The predictive capabilities of turbulent flow simulations, critical for aerodynamic design and weather prediction, hinge on the choice of turbulence models. The abundance of data from experiments and simulations and the advent of machine learning have provided a boost to turbulence modeling efforts. However, simulations of turbulent flows remain hindered by the inability of heuristics and supervised learning to model the near-wall dynamics. We address this challenge by introducing scientific multi-agent reinforcement learning (SciMARL) for the discovery of wall models for large-eddy simulations (LES). In SciMARL, discretization points act also as cooperating agents that learn to supply the LES closure model. The agents self-learn using limited data and generalize to extreme Reynolds numbers and previously unseen geometries. The present simulations reduce by several orders of magnitude the computational cost over fully-resolved simulations while reproducing key flow quantities. We believe that SciMARL creates unprecedented capabilities for the simulation of turbulent flows.
Quote from the paper
H. Jane Bae, Petros Koumoutsakos (2021). Scientific multi-agent reinforcement learning for wall-models of turbulent flows. arXiv:2106.11144v2. https://doi.org/10.1038/s41467-022-28957-7
BibTeX
@article{bae2021scientific,
title = {{Scientific multi-agent reinforcement learning for wall-models of turbulent flows}},
author = {H. Jane Bae and Petros Koumoutsakos},
year = {2021},
eprint = {2106.11144},
archivePrefix = {arXiv},
doi = {10.1038/s41467-022-28957-7},
url = {https://arxiv.org/abs/2106.11144v2}
}