Simple Science

Cutting edge science explained simply

# Physics# Fluid Dynamics# Machine Learning

Advancements in Turbulent Flow Modeling with Machine Learning

Researchers merge machine learning with fluid dynamics to improve turbulence modeling.

― 7 min read


ML Meets Turbulent FlowML Meets Turbulent FlowModelingfluid dynamics simulations.New methods enhance predictions in
Table of Contents

Turbulence is a complex behavior seen in fluid flow where the movement becomes chaotic and unpredictable. Scientists and engineers study this behavior to understand how fluids move in various situations, from air around an airplane to water flowing in a river. The equations that describe this movement are known as the Navier-Stokes Equations. These equations are well understood but solving them accurately can be challenging, especially for turbulent flows.

Computational Fluid Dynamics (CFD) is a field that uses computer simulations to solve these equations. While CFD can provide insights into fluid behavior, accurately simulating turbulence often requires a lot of computational power and resources. This makes studying turbulent flows difficult, especially when trying to apply findings to real-world situations.

The Role of Machine Learning in Fluid Dynamics

Recently, machine learning (ML), a branch of artificial intelligence that focuses on teaching computers to learn from data, has been used to improve the study of fluid dynamics. By using ML, researchers hope to develop better models that can predict turbulent behavior without relying solely on traditional CFD methods. Machine learning can help simplify the complex relationships found in fluid data, allowing for more efficient simulations.

Incorporating ML into CFD involves creating models that can learn from existing simulation data and make predictions about new or unseen flows. These models can be trained on historical data, where they learn the patterns and relationships within the fluid dynamics. The ultimate goal is to create a system that can generate accurate predictions while requiring less computational power.

Challenges of Simulating Turbulent Flows

Simulating turbulence accurately is not easy. The chaotic nature of turbulent flows means that small changes in initial conditions can lead to completely different outcomes. This sensitivity requires simulations to be highly detailed, often resulting in the need for millions of calculations. Many traditional CFD methods, such as direct numerical simulations (DNS), attempt to capture all the small-scale details of turbulence, but this approach can be impractical, especially for high Reynolds number flows, where inertial forces dominate.

Reynolds number is a measure that helps predict the flow regime in fluid mechanics. High Reynolds Numbers indicate a greater likelihood of turbulence, making accurate simulations even more challenging. The computational cost associated with these simulations increases significantly with the Reynolds number.

Due to these challenges, researchers have developed various modeling techniques to simplify turbulence simulations. One such approach is reduced-order models (ROMs), which focus on capturing only the most important aspects of the flow, allowing for quicker computations.

Integrating Machine Learning with CFD

To combine the strengths of machine learning and traditional CFD methods, researchers are investigating how ML can be used to improve turbulence modeling. By integrating ML with CFD algorithms, it may be possible to create models that learn from data to adjust turbulence predictions while still adhering to the physical laws governing fluid motion.

This hybrid approach aims to balance the low computational cost of ML with the accuracy of physics-based models. The idea is to use machine learning to enhance existing closure models that account for unresolved scales in turbulence simulations. Closure models are mathematical representations that estimate the effects of small-scale turbulence on larger scales.

The Backwards-Facing Step

A common test case used in the study of turbulent flows is the flow over a backwards-facing step. In this scenario, fluid flows through a channel that suddenly widens, creating a step in the flow. This configuration provides a clear example of flow separation and the complex interactions between different flow regions, making it an ideal candidate for testing new modeling approaches.

Researchers can study the flow behavior as it separates at the step and then reattaches downstream, observing how turbulence develops in this process. This situation allows for valuable insights into the challenges of modeling turbulence and the effectiveness of new approaches.

Framework for Machine Learning Integration

To improve turbulence modeling for flows like the backwards-facing step, researchers have developed a framework that integrates Deep Learning into traditional PDE (Partial Differential Equation) solvers used in CFD. This framework enables the deep learning models to directly influence the predictions made by the CFD algorithm.

A deep learning model can be trained to learn specific relationships between flow parameters, such as velocity and pressure, using data from previous simulations. Once trained, the model can be integrated into the CFD solver, allowing it to provide real-time predictions while the traditional equations are being solved. This end-to-end training process enables the model to continuously improve its predictions based on new data.

Deep Learning Models and Graph Neural Networks

To create an effective model for predicting turbulent flow characteristics, researchers have turned to advanced deep learning techniques, such as graph neural networks (GNNs). GNNs are particularly well-suited for modeling spatial relationships and have shown promise in various applications, including fluid dynamics.

In the context of fluid modeling, GNNs can capture the interdependencies of flow properties at different points in space. By treating fluid flow as a graph, where nodes represent points in the flow field and edges represent relationships between them, the model can learn how local conditions influence flow behavior.

The architecture of the GNN allows for the incorporation of both local and non-local information, enhancing the model's ability to predict complex turbulence characteristics. By using a process that includes encoding the flow data, processing it through several layers, and decoding the predictions, researchers can develop a model that is both accurate and efficient.

Training the Machine Learning Model

To train the GNN model, researchers use high-resolution data from previous simulations of the backwards-facing step flow. This data provides a rich source of information about how the flow behaves under different conditions. During training, the model learns to predict the sub-grid scale (SGS) stress, which accounts for the effects of turbulence at scales smaller than what can be directly resolved in simulations.

The training process involves minimizing the difference between the model's predictions and the actual flow measurements obtained from high-fidelity simulations. By optimizing the model over multiple time steps, it can learn to refine its predictions continuously.

Testing and Evaluation of the Model

Once trained, the model is tested on different configurations of flow over the backwards-facing step, including variations in Reynolds number and geometry. By evaluating the model's performance against traditional CFD methods and high-resolution simulations, researchers can assess its accuracy and generalizability.

Metrics used for evaluation include error measurements, which compare the model's predictions to ground truth data from high-resolution simulations. Additionally, researchers analyze the coefficients of reduced-order models to gain insights into the capturing of important flow characteristics.

Results and Discussion

The results of the testing phase demonstrate the effectiveness of the integrated machine learning approach. The GNN-based closure model shows promising accuracy in predicting turbulent flow features, often matching or exceeding the performance of traditional models while significantly reducing computational costs.

For example, when comparing the GNN model to a traditional Smagorinsky closure model, it is noted that the GNN model can achieve similar accuracy while being approximately ten times faster in computation. This speedup highlights the potential benefits of using machine learning in turbulence modeling.

Furthermore, the model displays good generalization capabilities, meaning it can adapt to new flow conditions without requiring extensive retraining. This adaptability is crucial for real-world applications where flow conditions may vary significantly.

Future Directions

The integration of machine learning and CFD represents a significant advancement in turbulence modeling. Researchers aim to extend these techniques to more complex three-dimensional flows and to explore the use of different deep learning architectures for even better performance.

As the field continues to grow, the potential for real-time prediction of turbulent flows using these integrated approaches can transform engineering applications, from aerodynamics in aviation to fluid transport in pipelines. Addressing the challenges of turbulence modeling will have a lasting impact on both scientific research and industrial practices.

Conclusion

The study of turbulent fluid flow is a challenging yet essential field within fluid dynamics. By leveraging the capabilities of machine learning, particularly through integrated approaches like deep learning and graph neural networks, researchers are making strides in creating more efficient and accurate models.

The work done on flows over backwards-facing steps illustrates how these methods can enhance traditional CFD approaches, providing promising results that could reshape future simulations across various applications. As new technologies and techniques continue to be developed, the understanding and prediction of turbulent flows will become increasingly sophisticated, leading to better-informed engineering decisions and solutions.

Original Source

Title: Differentiable Turbulence II

Abstract: Differentiable fluid simulators are increasingly demonstrating value as useful tools for developing data-driven models in computational fluid dynamics (CFD). Differentiable turbulence, or the end-to-end training of machine learning (ML) models embedded in CFD solution algorithms, captures both the generalization power and limited upfront cost of physics-based simulations, and the flexibility and automated training of deep learning methods. We develop a framework for integrating deep learning models into a generic finite element numerical scheme for solving the Navier-Stokes equations, applying the technique to learn a sub-grid scale closure using a multi-scale graph neural network. We demonstrate the method on several realizations of flow over a backwards-facing step, testing on both unseen Reynolds numbers and new geometry. We show that the learned closure can achieve accuracy comparable to traditional large eddy simulation on a finer grid that amounts to an equivalent speedup of 10x. As the desire and need for cheaper CFD simulations grows, we see hybrid physics-ML methods as a path forward to be exploited in the near future.

Authors: Varun Shankar, Romit Maulik, Venkatasubramanian Viswanathan

Last Update: 2023-07-25 00:00:00

Language: English

Source URL: https://arxiv.org/abs/2307.13533

Source PDF: https://arxiv.org/pdf/2307.13533

Licence: https://creativecommons.org/licenses/by/4.0/

Changes: This summary was created with assistance from AI and may have inaccuracies. For accurate information, please refer to the original source documents linked here.

Thank you to arxiv for use of its open access interoperability.

More from authors

Similar Articles