1. Introduction
The investigation of complex fluid flows, which are characterized by their nonlinear dynamics and multifaceted interactions, has long been a pivotal area of inquiry within the realm of fluid dynamics research. Traditional numerical methods, while robust and widely utilized, frequently encounter significant challenges in accurately capturing the intricate complexities associated with nonlinear behaviors, particularly in scenarios that involve shock waves, discontinuities, and transitional flow phenomena. This limitation is compounded by the increasing demand for computationally efficient flow simulations that can address fluid-related problems without the prohibitive costs associated with conventional fluid mechanics approaches.
The advent of artificial neural networks (ANNs) [
1,
2,
3,
4,
5] offers a promising avenue for overcoming these obstacles, as ANNs are adept at modeling the complex, nonlinear relationships that are intrinsic to dynamic systems. In recent years, a growing corpus of research has also emerged that investigates the utilization of ANNs for modeling fluid dynamics. For instance, Morimoto et al. [
6] emphasized the importance of generalization techniques in neural networks for fluid flow estimation, highlighting the challenges associated with the need for extensive datasets and the difficulties of generalizing models across varying flow conditions. Razdan and Shah [
7] provided a comprehensive review of the optimization of fluid modeling and flow control processes through machine learning, detailing various methodologies and their applications across diverse fluid dynamics scenarios. Furthermore, Mendez et al. [
8] delved into the challenges and opportunities presented by the integration of machine learning with fluid mechanics, addressing critical issues such as data requirements, model generalizability, and the implementation of physical constraints. Roy et al. [
9] utilized Graph Network-based Simulators (GNSs) to solve complex fluid dynamics problems, achieving prediction accuracies of around 99% while generalizing well across different conditions. Khan et al. [
10] demonstrated the ability of the NN-BLMM model to handle nonlinear partial differential equations and provided insights into non-Newtonian fluid behaviors by simulating magnetohydrodynamic stagnation point flows. Morra et al. [
11] investigate hypersonic three-dimensional Navier–Stokes flow over a cone geometry, optimizing the training dataset and demonstrating that a neural network—surpassing a linear surrogate model in capturing nonlinearities—can be applied as a surrogate model to solve an inverse problem and reconstruct three-dimensional flow from experimental measurements.
However, the application of machine learning techniques to directly predict complex fluid flows (usually 3D) is still fraught with challenges, primarily due to the substantial volume of training data required. The acquisition of these data can prove to be a formidable task, particularly for complex flows that exhibit structures across a wide range of scales. At present, the computational resources and data availability required for direct predictions remain insufficient, creating a significant bottleneck in the development of effective predictive models. Moreover, the generalizability of neural networks presents an additional hurdle. A model that has been trained on a specific dataset may not perform adequately when applied to a different dataset, which is particularly problematic in complex flow scenarios (either with a complex domain or complex flow structures) where even minor changes in boundary conditions or within the flow field can lead to substantial alterations in the downstream flow characteristics. This sensitivity complicates the training of standard neural network models, as they may struggle to adapt to these dynamic changes.
Nevertheless, machine learning, particularly deep learning, has shown significant potential in addressing some of these challenges by efficiently predicting flow fields and offering an alternative to traditional computational fluid dynamics (CFD) methods. Convolutional Neural Networks (CNNs) have been employed to approximate steady-state fluid flows, demonstrating substantial reductions in computational cost while maintaining reasonable accuracy, though some trade-offs remain when compared to conventional solvers [
12]. Recent advancements, such as DeepCFD, have refined CNN architectures, specifically optimizing laminar flow predictions with improved efficiency and data utilization [
13]. The Physics-Informed Neural Network (PINN) integrates physical laws directly into the neural network’s architecture, allowing for efficient and accurate simulations of fluid flows without the need for extensive labeled datasets [
14]. Additionally, alternative neural network structures are being explored to predict more complex and turbulent flows, addressing the nonlinearity and multi-scale nature inherent in these regimes [
15]. While these approaches offer promising advancements, challenges still persist in balancing computational efficiency, accuracy, and generalizability, especially for flows that span diverse physical conditions.
On the other hand, there has been limited research on the ability of machine learning methods to resolve or understand the underlying dynamics in various fluid flows. Overly complex models may overfit sparse data, leading to poor generalization, while overly simplistic models may fail to capture essential physical phenomena. There is a need to evaluate the capability of machine learning methods, especially artificial neural networks, in understanding complex fluid dynamics involving discontinuities and small-scale structures. When given some information about the characteristics of the fluid motion (such as a set of velocity profiles obtained from experiments or calculations), can machine learning predict the overall picture of the flow field (other motion characteristics)? This will help subsequent research, which is committed to using machine learning on a larger scale to reduce the existing amount of computation and obtain more flow field information.
In this study, we employed a multilayer perceptron (MLP) artificial neural network to scrutinize the complex nonlinear dynamics exhibited in flow profiles derived from numerical simulations of compressible fluids. Our research focuses on the application of ANNs to enhance the understanding and prediction of nonlinear behaviors in complex fluid flows. By utilizing flow profile pairs generated from numerical simulations of canonical benchmark cases, such as the 1D Sod tube problem and the Shu–Osher problem, we aimed to capture essential features, including discontinuities and small-scale waves that are prevalent in complex flows. These benchmark cases provide a solid framework for evaluating the efficacy of ANNs in fluid dynamics applications.
Additionally, this study sought to explore how machine learning methodologies can enrich our comprehension of complex fluid dynamics phenomena. Through the analysis of averaged velocity profiles associated with boundary layer transition problems, we sought to uncover nonlinear correlations among various flow parameters within the context of the Navier–Stokes equations, thereby offering deeper insights into the fundamental physics at play. We underscore the capability of ANNs to elucidate nonlinear relationships among multiple flow variables, thereby demonstrating their potential for predicting the evolution of complex fluid flows.
The structure of this paper is organized as follows:
Section 2 presents the mathematical foundations of the problems under investigation and the methodologies employed. In
Section 3, we showcase the numerical results obtained from the 1D benchmark cases as well as the averaged velocity profiles derived from the 3D transition problem. Finally,
Section 4 concludes with a summary of our findings and offers final reflections on the implications of our research.
2. Mathematical Background and Methodologies
2.1. One-Dimensional Benchmark Problems
A comprehensive grasp of compressible fluid dynamics is essential for a multitude of engineering and scientific applications, ranging from aerospace engineering to environmental studies. This intricate field encompasses a variety of complex scenarios, including the behavior of shock waves, which are abrupt changes in pressure and density, as well as boundary layer transitions that occur when fluid flow interacts with solid surfaces. To effectively analyze and predict these phenomena, researchers frequently turn to the one-dimensional Euler equations. These fundamental equations serve as a cornerstone in the mathematical modeling of compressible fluid behavior, encapsulating the principles of conservation of mass, momentum, and energy. Their applicability extends to a range of benchmark problems that are pivotal for validating numerical methods and theoretical approaches. Notably, the Sod shock tube problem provides a classic example of how shock waves propagate through a medium, enabling researchers to observe the dynamics of rarefaction and contact discontinuities. Similarly, the Shu–Osher problem offers insights into the interaction of shock waves with smooth density interfaces, serving as a critical test case for assessing the accuracy of computational fluid dynamics (CFD) algorithms. Through the study of these equations and associated benchmark problems, engineers and scientists can enhance their understanding of compressible flow phenomena, paving the way for advancements in technology and improved designs across various fields.
The one-dimensional Euler equation, expressed in vector and conservation form, is given as follows:
where
,
, and
represent density, velocity, and total energy, respectively.
represents pressure and is calculated by
.
2.1.1. Sod Shock Tube Problem
The Sod shock tube problem [
16] is a well-known example in computational fluid dynamics that models the dynamics of a shock wave moving through a tube filled with gas, which is initially divided by a diaphragm. Once the diaphragm is taken away, the resulting shock wave allows us to assess the precision of numerical techniques in representing shock wave behavior, including propagation, rarefaction waves, and contact discontinuities. It acts as a standard for evaluating the precision and effectiveness of numerical methods in representing shock wave phenomena, such as shock wave propagation, rarefaction waves, and contact discontinuities. The Sod shock tube problem has the following initial conditions defined:
where the indices
and
denote conditions on the left- and right-hand sides, respectively, with the center located at
.
2.1.2. Shu–Osher Problem
The Shu–Osher problem [
17,
18] constitutes a quintessential benchmark scenario within the realm of computational fluid dynamics, particularly within the framework of shock wave interactions. This problem entails the modeling of a one-dimensional compressible gas flow over a wedge, which leads to the generation of both shock waves and rarefaction waves. This challenge is named in honor of its creators, Chi-Wang Shu and Stanley Osher, and functions as a standard validation case for numerical methodologies intended to precisely resolve shock structures while effectively capturing intricate flow phenomena. This problem is particularly challenging due to the sensitivity of entropy waves to numerical dissipation, which may lead to excessive damping. The same governing Equation (1) is solved, with the initial conditions specified as follows:
where the indices
and
denote conditions on the left- and right-hand sides, respectively, with the center located at
.
2.2. Transitional Boundary Layer
The transitional boundary layer is a critical region in fluid dynamics that lies adjacent to solid surfaces, where the flow transitions from a smooth, orderly laminar state to a chaotic, turbulent state. This boundary layer is of paramount importance in various engineering fields, including aerodynamics, heat transfer, and boundary layer control, as it significantly influences the performance and efficiency of aerodynamic surfaces, such as wings and fins, as well as heat exchangers used in thermal systems. In this transitional zone, the characteristics of the fluid flow undergo a profound transformation. Initially, the flow is laminar, marked by streamlined layers of fluid that glide past one another with minimal mixing and turbulence. However, as the flow progresses through this boundary layer, it begins to experience instabilities that disrupt the orderly arrangement of the laminar flow. This instability results in a gradual breakdown of the smooth flow patterns, leading to the development of turbulent fluctuations. These fluctuations are characterized by random, chaotic movements of fluid particles, which enhance mixing and energy transfer within the flow. The dynamics of the transitional boundary layer are complex and involve various physical phenomena, including changes in velocity gradients, pressure fluctuations, and the influence of surface roughness. Understanding these dynamics is crucial for engineers and researchers who seek to optimize design strategies for a wide range of applications. For instance, in aerodynamics, managing the transition from laminar to turbulent flow can reduce drag on aircraft wings, thereby improving fuel efficiency and overall performance. In the realm of heat exchangers, effectively controlling the boundary layer can enhance heat transfer rates, leading to more efficient thermal management systems.
The Navier–Stokes equation in curvilinear coordinates was used in our DNS of the transitional boundary layer, as follows:
where the vector of conserved quantities
, inviscid flux vector
and
, and viscous flux vector
and
are
The components of viscous stress are
We can write the governing equations in curvilinear coordinates as
where
The Jacobian
of the coordinate transformation between the curvilinear
and Cartesian
frames is
and
The reference values for length, density, velocity, temperature, and pressure are
and
respectively, where
is the inflow displacement thickness. And the Mach number
and Reynolds number
are expressed as
where
is the ideal gas constant,
the ratio of specific heats, and
the viscosity.
The computational grid system employed in our simulation is structured with dimensions of
, delineating the number of grid points allocated in the streamwise (
), spanwise (
), and wall-normal (
) directions, respectively. A schematic for the spatial domain is displayed in
Figure 1. In the wall-normal direction (
), the grid exhibits a stretching characteristic, which is crucial for resolving the boundary layer phenomena near the wall, where gradients can be steep. This stretching allows for a finer resolution close to the wall, enhancing the accuracy of the simulation results in regions where flow behavior is most complex. Conversely, in the streamwise (
) and spanwise (
) directions, the grid is uniformly distributed, ensuring a consistent and systematic approach to capturing the flow characteristics across the computational domain. At the inlet of the simulation, the first grid interval in the wall-normal direction is set to 0.43 wall units (
). This specific value is strategically chosen to balance the need for resolution in the boundary layer while maintaining computational efficiency.
For a comprehensive understanding of the simulation parameters,
Table 1 provides a detailed overview of the geometric parameters, while
Table 2 enumerates the flow parameters utilized in our computational study. Key flow parameters include the Mach number, which indicates the flow speed relative to the speed of sound, and the Reynolds number, which characterizes the flow regime and influences the turbulence characteristics of the simulation. Additionally, the variable
denotes the distance from the leading edge to the inlet. The lengths of the computational domain in the respective directions are represented by
,
, and
. Lastly,
signifies the wall temperature, a crucial factor influencing heat transfer and flow behavior near the wall. This meticulous setup ensures that the simulation captures the essential physical phenomena with high fidelity.
The validations of our DNS code can be found in [
19,
20]. The DNS results are well-verified by comparison with theoretical and experimental data and are consistent with other DNS results [
21].
2.3. Artificial Neural Networks
Artificial neural networks (ANNs) represent a sophisticated class of computational models that draw inspiration from the intricate architecture and operational mechanisms of the human brain. These networks are comprised of a multitude of interconnected nodes, commonly referred to as artificial neurons, which are systematically organized into distinct layers. The flow of information within an ANN initiates at the input layer, where raw data are introduced into the system. These data then traverse one or more hidden layers, where complex computations and transformations occur, before culminating in the output layer, which generates the final results.
The training of ANNs is a critical aspect of their functionality, involving sophisticated algorithms designed to optimize the connections between neurons based on empirical data. This training process enables ANNs to discern and learn intricate patterns and relationships inherent in the data, making them exceptionally adept at handling nonlinear relationships and processing vast quantities of information. As a result, ANNs have found extensive applications across diverse domains, including image recognition, natural language processing, and predictive analytics, where their capacity to model complex interactions is invaluable.
In the context of fluid dynamics, flow profiles encapsulate a range of flow variables such as pressure, density, velocity, vorticity, and temperature. Particularly within profile pairs—such as pressure–density and vorticity–velocity—the relationships among these variables exhibit nonlinear characteristics that necessitate the resolution of the Navier–Stokes equations alongside other related parameters. Traditional analytical methods can be cumbersome and computationally intensive; however, the advent of machine learning techniques offers a promising avenue for approximating these nonlinear relationships. Given an adequate volume of training data in the form of flow profile pairs, machine learning models can effectively learn these complex interactions, even in instances where certain variables are not explicitly provided.
In our research methodology, we commence by generating a substantial dataset of profile pairs, which serves as the foundational training data for the neural network. These profile pairs consist of input–output combinations representing various flow variables or parameters, such as pressure–density, vorticity–velocity, or streamwise vorticity–streamwise velocity. To analyze and learn from this dataset, we employ a multilayer perceptron (MLP), a specific architecture of artificial neural networks known for its effectiveness in function approximation.
The MLP undergoes a rigorous training regimen, wherein it iteratively adjusts its internal parameters to minimize the deviation between the predicted outputs and the actual outputs corresponding to the provided inputs. This process involves the application of advanced optimization techniques aimed at refining the relationship encoded within the nonlinear mathematical model that the MLP embodies. Through this iterative optimization, we enhance the predictive accuracy of the model, enabling it to make reliable forecasts on unseen data or extrapolate to novel flow conditions. Ultimately, this optimized ANN model not only facilitates improved predictive performance but also yields valuable insights into the fundamental physics governing the fluid dynamics of the system under investigation.
4. Conclusions
This comprehensive study delves into the innovative application of ANNs to unravel the intricate nonlinear behaviors exhibited in complex fluid flows. By leveraging flow profile pairs meticulously generated from numerical simulations of well-established benchmark cases—most notably the one-dimensional Sod tube problem and the Shu–Osher problem—this research demonstrates how ANNs can adeptly capture critical features such as discontinuities and small-scale waves, which are quintessential characteristics of complex fluid dynamics. The findings reveal that in transitional flow scenarios, the predictions made by the ANN exhibit remarkable congruence with results obtained from DNS. This alignment not only underscores the ANN’s proficiency in modeling complex flow behaviors but also emphasizes its ability to track the nuanced evolution of flow profiles over time. Such capabilities are essential for understanding the dynamics of fluid flows that are often subject to rapid changes and intricate interactions.
Moreover, this study accentuates the transformative potential of machine learning methodologies in enhancing our comprehension of complex fluid dynamics phenomena. By showcasing the utility of ANNs across a variety of flow scenarios, the research provides valuable insights into the intricate correlations that exist among different flow parameters. This ability to discern relationships between variables is pivotal for advancing predictive modeling in fluid dynamics.
The integration of numerical simulation with machine learning techniques marks a significant step forward in the development of more accurate and insightful models. These models are not only capable of predicting fluid behavior with greater precision but also serve as powerful analytical tools in both engineering and scientific contexts. In summary, this study illustrates the substantial promise held by machine learning approaches, particularly artificial neural networks, in propelling our understanding of complex fluid dynamics.