Abstract
Turbulence is a complex phenomenon that has a chaotic nature with multiple spatio-temporal scales, making predictions of turbulent flows a challenging topic. Nowadays, an abundance of high-fidelity databases can be generated by experimental measurements and numerical simulations, but obtaining such accurate data in full-scale applications is currently not possible. This motivates utilising deep learning on subsets of the available data to reduce the required cost of reconstructing the full flow in such full-scale applications. Here, we develop a generative-adversarial-network (GAN)-based model to reconstruct the three-dimensional velocity fields from flow data represented by a cross-plane of unpaired two-dimensional velocity observations. The model could successfully reconstruct the flow fields with accurate flow structures, statistics and spectra. The results indicate that our model can be successfully utilised for reconstructing three-dimensional flows from two-dimensional experimental measurements. Consequently, a remarkable reduction in the complexity of the experimental setup and the storage cost can be achieved.
Similar content being viewed by others
Introduction
Turbulence is probably the unresolved problem of classical physics with the most applications in daily life. The drag caused in the first millimeters of the flow surrounding vehicles or inside pipelines is responsible for up to 5% of the \(\text{CO}_2\) emissions caused by humanity every year1. Increasing our knowledge of wall-bounded flows is thus a first-order priority. However, the highly non-linear and chaotic nature of turbulent flows has been a great challenge for centuries. Furthermore, the analytical solution of the equations describing the flow around an object, the Navier–Stokes equations, is still impossible today for almost all practical purposes2.
With the development of computational power and experimental tools, an accurate description of various types of turbulent flows can be achieved. Different strategies have been proposed when predicting turbulence, namely, the Reynolds-averaged Navier–Stokes (RANS) equations, where all scales are modeled; the large-eddy simulation (LES), where the largest scales are simulated, and the direct numerical simulation (DNS). In DNS, no empirical modeling is needed to account for turbulent effects. The approximations of the solutions of the Navier–Stokes equations are obtained through highly-accurate numerical schemes. The main problematic issue of DNS is its high computational cost since even the smallest scales of turbulence, the Kolmogorov scales3, have to be simulated. Hence, this limits DNS to very simple canonical geometries, such as the ones used in this work. However, DNS has the same validity as experiments, and almost any imaginable quantity can be computed.
In the area of experimental fluid dynamics, significant technical advances have been achieved through particle-image velocimetry (PIV)4, tomographic-PIV (tomo-PIV)5 and four-dimensional time particle-tracking velocimetry (4D-PTV)6. However, in both the numerical and experimental approaches, substantial costs are required to describe the physics of the turbulent flows accurately and these costs are proportional to the Reynolds number. This nondimensional parameter is proportional to the size of the problem, its characteristic velocity, and inversely proportional to the fluid kinematic viscosity.
On the other hand, an enormous amount of data can be generated from experimental and numerical studies. Turbulence is now a science that needs, more than ever, new questions more than new data to solve those questions. This motivates developing data-driven methods that can practically utilise the data for addressing various turbulence-related problems. With the recent rapid advances of machine-learning algorithms and the remarkable improvement in the graphic-processing-unit (GPU) capabilities, machine learning has been applied in various fields, including image processing, natural language processing, robotics, weather forecasting, etc. In terms of fluid dynamics, deep-learning algorithms have been effectively applied to tackle a wide range of problems7,8,9, where deep learning is a subset of machine learning in which neural networks with multiple layers are utilised in the model10. Unlike conventional linear methods, deep-learning-based techniques can deal with complex non-linear problems. This makes the deep-learning approach a good candidate to be applied for various problems in turbulence, such as turbulence modelling11,12,13, prediction of turbulent flows14,15,16, reduced-order modelling17,18, turbulent-flow control9,19,20,21 and non-intrusive sensing22,23. The reconstruction of turbulent flows from spatially-limited data using deep-learning-based models has been recently a topic of interest, considering the ability of several deep-learning models to map the flow fields that are represented by spatially-limited or low-resolution data to high-resolution flow fields23,24,25,26,27,28,29,30,31,32. The results obtained from the cited studies indicate that several deep-learning models have a remarkable potential to map turbulent flow fields with limited spatial distribution to high fidelity flow fields by making use of the available training data. Thus, such deep-learning models possibly can reconstruct the missing regions in the flow fields by compensating them with approximation functions represented by the trainable parameters in the models.
In this study, we present a deep-learning-based method to reconstruct three-dimensional (3D) turbulent flows from two-dimensional (2D) data, in such a way that mimics the reconstruction of 3D turbulent flows from 2D PIV measurements. In contrast with the proposed studies in the literature, which are based on simple approaches such as assumptions of frozen velocity33,34,35 and frozen turbulence via Taylor hypothesis36, exploiting homogeneity in the flow37 and proper-orthogonal decomposition (POD)38,39, we apply a deep-learning-based approach to map unpaired intersected 2D turbulent flow sections to 3D flow fields. We propose a generative-adversarial-network (GAN)-based model, 2D3DGAN, to reconstruct 3D turbulent flows. Unlike the traditional convolutional-neural-networks (CNNs)-based models, GAN-based models40 have shown the ability to capture high-frequency data in detail, and remarkable accuracy in terms of image transformation and super-resolution problems41,42,43,44. In a typical GAN, two networks, namely the generator (G) and the discriminator (D), compete with each other. Here, G generates artificial samples similar to the real ones, whereas D distinguishes the artificial samples from the real ones. The goal of the training process is to make G generate artificial samples that are difficult to distinguish using D. We utilise a combination of 2D and 3D CNNs to build the 2D3DGAN, which can use both the supervised deep-learning method and the adversarial networks, i.e. G and D networks. We remark that the 2D3DGAN is robust to increasing Reynolds number and the complexity of the flow.
To perform this study, we have selected two different geometries: Turbulent channel flow and the flow around a finite wall-mounted square cylinder. Turbulent channel flows are the simplest complete example of a fully-developed turbulent flow. The flow is between two parallel plates and is driven by a streamwise pressure gradient. Since the seminal simulation of Kim, Moin, and Moser45, the complexity of the flows simulated has grown steadily45,46,47,48,49,50,51,52. Turbulent channel flow exhibits most of the phenomena needed to understand turbulent flow over surfaces in more general cases. Due to its characteristics, turbulent channel flow is the guinea pig of wall-bounded turbulent flows. Note that each instantaneous flow field in52 requires around 400 GB of storage, whereas saving just two-dimensional planes would imply a storage saving of 99.9%. The second flow of interest, the flow around a finite wall-mounted square cylinder53,54, is a first representation of a simplified urban flow. This flow represents a different challenge, as the interaction of the flow with the cylinder is extremely complex. In both cases, our method exhibits very good performance, opening the way to use it in more realistic environments.
Results
Building 2D3DGAN architecture
The process of training GAN can be expressed as a min-max two-player game with a value function V(D, G) such that:
where \(\chi _r\) represents real data and \(P_{\textrm{data}} (\chi _r)\) is its distribution. Note that \({\mathbb {E}}\) represents the operation of calculating the average of all the data in the training mini-batch. In the second term of the right-hand side of Eq. (1), \(\zeta\) is a random vector used as an input to G, whereas \(D(\chi _r)\) represents the probability that the data is real and not artificial. The output from G, i.e. \(G(\zeta )\), is expected to generate data that is similar to the real one, such that the value of \(D(G(\zeta ))\) is close to 1. On the other hand, in D, \(D(\chi _r )\) returns a value close to 1, whereas \(D(G(\zeta ))\) returns a value close to 0. Thus, G is trained in a direction that minimizes V(D, G), and D is trained in a direction that maximizes V(D, G). Additional details are provided in the “Methods” section.
The proposed 2D3DGAN is inspired by the works of Wang et al.43 and Yousif et al.29, where the input to the network is represented by data that contains limited information about the flow instead of the random vector z in Eq. (1). While the models of Refs.29,43 are designed to reconstruct 2D high-resolution flow fields from 2D low-resolution data, our 2D3DGAN is designed to map 2D data to 3D flow fields. More details regarding the architecture of the 2D3DGAN can be found in the “Methods” section. As shown in Fig. 1, the input to the 2D3DGAN is data represented by a cross-plane of unpaired intersected 2D flow-observation planes, i.e. each plane contains data of two velocity components, and the data are collected at a period that is different from that of the other plane. Hence, the velocity fields in the planes are at different instants.
In this study, two cases are used to evaluate the performance of the proposed model: a turbulent channel flow at two different friction Reynolds numbers, \(Re_\tau =\)180 and 500, and the flow around a finite wall-mounted square cylinder with aspect ratio, \(AR =\)4, at a Reynolds number based on the free stream velocity and the cylinder width d of \(Re_d = 500\). In both cases, DNS is utilised to generate the flow data.
Let us take the case of turbulent channel flow in Fig. 1 as a demonstration of matching the unpaired data before feeding it to the 2D3DGAN. The data from the two sections are synthetically unpaired such that no instantaneous velocity of each section is found at the same time as the instantaneous velocity in the other section. After that, the flow data of the (\(x-y\)) section is matched with the data of (\(y-z\)) section by utilising the square of \(L_2\) norm error for the intersection line of the wall-normal velocity such that:
where v and w are the wall-normal and spanwise instantaneous velocity components. Here, \(v_{(x-y)}^y\) represents the wall-normal velocity in the \((x-y)\) plane, and \(v_{(y-z)}^y (t)\) represents the wall-normal velocity in the \((y-z)\) plane as a function of time, t. The superscript ‘\(*\)’ indicates the matched velocity data using Eq. (2). This procedure mimics the matching of two data sets from two planar PIV experiments, each of them conducted for a different plane. The first plane is the observation plane, which is here represented by the (\(x-y\)) plane, with velocity components (u, v), where u is the instantaneous streamwise velocity component. The second one is the \((y-z)\) plane with velocity components (v, w). Note that the selection of the planes is based on maximising the flow information and the 3D label data used for training the model are at the same instants of the observation plane. A similar approach is followed for the case of flow around a finite wall-mounted square cylinder with the observation plane being the central \((x-y)\) plane \((z/d = 0)\). The \((x-z)\) plane at \(y/d =2\) is used to provide the matched velocity data with the data from the observation plane.
Instantaneous flow reconstruction
First, we examine the ability of the model to reconstruct the 3D instantaneous velocity fields. Figure 2a shows the reconstructed instantaneous velocity fields of the case of turbulent channel flow \((u^+, v^+, w^+ )\) at the \((x-z)\) plane, located at \(y^+ = 16.78\) and 46.95, for the flow at \(Re_\tau = 180\) and 500, respectively. As can be seen in the figure, the velocity fields are successfully reconstructed by the model with commendable precision even though the \((x-z)\) plane is not introduced to the model during the training process. Note that the superscript ‘\(+\)’ indicates that the quantity is scaled in inner units using the fluid viscosity, \(\nu\) and the friction velocity, \(u_\tau\). The flow structure is investigated in Fig. 2b by utilising the Q-criterion for vortex identification56. As shown in the figure, the reconstructed instantaneous velocity fields reveal a vortical structure \((Q^+)\) that is similar to that obtained from the DNS data, indicating that the model could successfully reproduce the flow fields with high accuracy.
Figure 2c shows the reconstructed instantaneous velocity fields for the case of flow around a finite wall-mounted square cylinder \((u/U_\infty ,v/U_\infty ,w/U_\infty )\) at the (x − z) plane, located at \(y/d = 3\), where \(U_\infty\) is the free stream velocity. As shown in the figure, all the three velocity fields are in good agreement with the DNS data. Note that the velocity fields along the height of the cylinder show very good agreement with the DNS data even for this region, i.e. near the free end of the cylinder, which is not seen by the model as input during the training process. This indicates that the model can reconstruct the complex three-dimensional turbulent flow around the cylinder within all the regions. Furthermore, the vortical structure obtained from the reconstructed instantaneous velocity fields is generally consistent with the results from DNS as shown in Fig. 2d.
Finally, the accuracy of the reconstruction is examined via the \(L_2\)-norm relative error:
where \(\alpha _j^{\textrm{DNS}}\) and \(\alpha _j^{\textrm{REC}}\) represent the ground truth (DNS) and the reconstructed instantaneous velocity components, respectively, and J represents the number of the test snapshots. As can be observed from Table 1, for the case of turbulent channel flow, no significant increase in the error values is observed in the channel when increasing \(Re_{\tau }\) from 180 to 500, indicating the robustness of the model to increasing Reynolds number. Also, for the case of flow around a finite wall-mounted square cylinder, the error values are acceptable as compared to the error values of the turbulent channel, a fact that further supports the ability of the model to reconstruct the velocity fields of complex flows. Note that the errors in u are low, while the errors in v and w are comparatively higher. This is explained by the fact that in these flows the main physics is driven by the streamwise component, which is the main focus of the deep learning model when performing the predictions. It is worth noting here that in GAN-based models, the mapping of high frequency fluctuations in the data is related to the adversarial loss. In other words, in GAN-based models, synthetic data is generated for the high frequency fluctuations. This is the main difference between GAN-based models and traditional CNNs, where the results are usually blurry with few flow details that can be predicted. Also, it is important to note that, despite the deviations in v and w error values, the main flow features are very well reproduced (as observed in Fig. 2), and as discussed from the statistical and spectral perspectives next.
Spatial distribution of the flow
In order to examine the ability of the proposed model to reconstruct the velocity fields with accurate spatial distribution, the probability density function of each velocity component, pdf is calculated for both cases. As shown in Fig. 3a, the pdf plots of the reconstructed velocity components for the case of turbulent channel flow show a remarkable agreement with those obtained from the DNS data, for all the regions along \(y^+\). Also, for the case of flow around a finite wall-mounted square cylinder (Fig. 3b), we can see that the pdf plots are consistent with the DNS data for all the three velocity components. Here, the results indicate the ability of the model to reconstruct the instantaneous velocity fields with accurate spatial distributions.
Furthermore, the ability of the model to reproduce the spectral content of the flow in the turbulent channel is investigated by utilising the premultiplied streamwise and spanwise power-spectral densities, i.e. \(k_x \Phi _{\alpha \alpha }\) and \(k_z \Phi _{\alpha \alpha }\), where \(k_x\) and \(k_z\) are the streamwise and spanwise wavenumbers, respectively, and \(\Phi _{\alpha \alpha }\) represents the corresponding wavenumber spectrum of each velocity component, \(\alpha\). Figure 3c shows \(k_x^+ \Phi _{\alpha \alpha }^+\) and \(k_z^+ \Phi _{\alpha \alpha }^+\) as a function of \(y^+\) and the corresponding inner-scaled wavelengths, \(\lambda _x^+\) and \(\lambda _z^+\). The spectra of the reconstructed velocity components are generally in agreement with the results obtained from DNS, with a slight deviation at high-wavenumber regions. These results further support the performance of the proposed model to properly represent the spatial distribution of the velocity fields.
Turbulence statistics
To examine the capability of the proposed model to reproduce the turbulence statistics, the first and second-order turbulence statistics of the reconstructed velocity fields are calculated and shown in Fig. 4. As can be observed in Fig. 4a, for the case of turbulent channel flow at \(Re_\tau = 180\), the profile of the mean streamwise velocity \((U^+ )\) and the root-mean-square (rms) profiles of the velocity components \((u_{\textrm{rms}}^+, v_{\textrm{rms}}^+, w_{\textrm{rms}}^+)\) are in excellent agreement with the results obtained from DNS. The Reynolds stress profile \((-\overline{u'v'}^+)\) exhibits a relatively good agreement with the results obtained from DNS, with a slight deviation in the range between \(y^+\) = 50 and 125. The fluctuating streamwise vorticity \((\omega _{x, \textrm{rms}}^+)\) profile is also in agreement with the results obtained from DNS. Here the results indicate that the model can reproduce the turbulence statistics of the flow with remarkable accuracy. The turbulence statistics for the flow at \(Re_\tau = 500\) indicate that the reconstructed data are generally in good agreement with the DNS. Nonetheless, the Reynolds shear-stress profile exhibits a slight underprediction for a region that starts from the maximum shear stress and continues along \(y^+\). As can be seen in Fig. 4b, for the case of the flow around a wall-mounted square cylinder, the streamwise, as well as the spanwise profile of the mean streamwise velocity \(({\overline{u}}/U_\infty )\) exhibit an excellent agreement with the results obtained from the DNS for the examined elevations along the cylinder height. The comparison of the spanwise profile of the Reynolds shear stress \((\overline{u'w'}/{U_\infty ^2})\) also reveals generally good agreement with the results obtained from the DNS. However, it exhibits a slight deviation at the examined wall-normal location, i.e. \(y/d = 3\). This might be attributed to the increase in the complexity of the flow as the wall-normal distance increases54,57,58,59.
Discussion and conclusions
This study presents a deep-learning-based method to reconstruct 3D turbulent flows from 2D data. A combination of 2D and 3D CNNs was utilised to build a model based on GAN, named 2D3DGAN. The model is designed to reconstruct 3D turbulent flows from a cross-plane of unpaired data (the data of each plane in the cross-plane is collected at a different time interval), such that it can be utilised to reconstruct 3D turbulent velocity fields from two-dimensional PIV measurements.
The reconstructed instantaneous velocity fields and the 3D flow structures show an excellent agreement with the DNS results for both the cases used to test the model, i.e. turbulent channel flow and the flow around a finite wall-mounted square cylinder, even for the regions where the data are not introduced to the model during the training process. The error analysis reveals that the model is robust to increasing Reynolds number and the complexity of the flow. The model also successfully reproduces the turbulence statistics with very good accuracy. Furthermore, the flow spectra for the case of turbulent channel flow also reveal a commendable agreement with the result obtained from the DNS data, indicating a great ability of the model to maintain a realistic spatial behaviour of the velocity fields.
This study demonstrates for the first time that GAN-based models can be successfully used for reconstructing 3D turbulent flows from 2D data. This approach opens the door to discovering new data-driven methods that can reconstruct the 3D turbulent flows from 2D experimental measurements and can be extended to discover more features of the model such as reconstructing 3D flow fields from 2D data for various geometries and Reynolds numbers. This would not only result in a remarkable reduction in the complexity and the cost of the experimental setup required to achieve accurate 3D experimental measurements but also in significant savings in terms of storage.
Methods
Building the 2D3DGAN architecture
The architecture of 2D3DGAN is shown in Fig. 5a. Here, G consists of two stages. First, two sections of 2D data are introduced to G and passed through a 2D CNN and two stages of reshaping with a dense layer between them. After that, the 3D data are passed through a deep 3D CNN represented by residual in residual dense blocks (RRDBs) and multi-scale part (MSP). The MSP, which consists of three parallel 3D convolutional sub-models with different kernel sizes, is applied to the data features extracted by the RRDBs. More details regarding MSP can be found in Yousif et al.29,30. The outputs of the three sub-models are summed and passed through a final 3D convolutional layer to generate an artificial 3D data (\(\mathrm{3D_a}\)). The artificial and real data are fed to D and passed through a series of 3D convolutional, batch normalization, and leaky-ReLU layers. As a final step, the data are passed through a 3D convolutional layer. The non-transformed discriminator outputs using the real and artificial data, i.e. \(\mathrm{C(3D_r )}\) and \(\mathrm{C(3D_a )}\), are used to calculate the relativistic average discriminator value (\(D_{Ra}\))60:
where \(\sigma\) is the sigmoid function. In Eqs. (4) and (5), \(D_{Ra}\) represents the probability that the output from D using the real 3D data is relatively more realistic than the output using the generated 3D data.
The discriminator loss is then defined as:
The adversarial loss for the generator can be expressed in a symmetrical form as:
The total loss function of G is defined as:
where \(L_{\textrm{voxel}}\) is the error calculated based on the voxel (volume pixel) difference between the generated data and the ground truth data. \(L_{\textrm{perceptual}}\) represents the difference in the extracted features of the real and the generated data. In this study, we use a 3D convolutional auto-encoder (3DCAE) to extract the features from the data obtained from the generator and the ground truth data as shown in Fig. 5b. Note that \(L_{\textrm{continuity}}\) and \(L_{\textrm{momentum}}\) represent the error of the continuity and momentum equations. In the loss function, \(\beta _1\), \(\beta _2\) and \(\beta _3\) are the coefficients used to balance the loss terms, and their values are set to 10, 1000 and 2000, respectively. The square of the \(L_2\) norm error is used to calculate all the loss terms of the generator except \(L_G^{Ra}\), such that:
where M represents the number of snapshots in the training mini-batch, which is fixed in this study to 8, and \({\mathscr {F}}_{FE}\) in Eq. (10) represents the function of the feature extractor, i.e. the 3DCAE.
Overview of the training setup
The 2D3DGAN is trained separately with the data of turbulent channel flow at \(Re_\tau = u_\tau \delta /\nu = 180\) and 500, and with the data of flow around a finite wall-mounted square cylinder with \(AR =\) 4, and at \(Re_d = U_{\infty}d /\nu = 500\), where, \(\delta\) is the channel half-width. For the case of turbulent channel flow, the transfer-learning technique16,22,29 is used to train the model for the flow at \(Re_\tau = 500\), in order to further reduce the computational cost (represented by the training time) and the required training data. For both cases, 80% of the collected data are used as training set and the rest, i.e. 20%, are used as testing set. The open-source library TensorFlow 2.4.061 is used for the implementation of the 2D3DGAN. The adaptive moment estimation (Adam) optimization algorithm62 is used to update the weights of the model. The learning rate is initially set to \(10^{-4}\) and progressively decreased during the training process to finally reach \(1.25 \times 10^{-5}\). The number of trainable parameters in the model is approximately 5.7 million for the generator network and 3.74 million for the discriminator. The training of the model using a machine with a single NVIDIA TITAN RTX GPU for the case of turbulent channel flow requires approximately 48 h for \(Re_\tau = 180\) and for \(Re_\tau = 500\), with the aid of transfer learning, requires approximately 30 h. The training of the case of flow around a wall-mounted square cylinder requires approximately 40 h.
Direct numerical simulation of turbulent channel flow
DNS calculations of a fully-developed incompressible turbulent channel flow at friction Reynolds numbers \(Re_\tau = 180\) and 500 are performed to generate the training and testing datasets. The incompressible Navier–stokes equations are solved using the LISO code48, similar to the one described by Lluesma-Rodriguez et al.63. This code has successfully been employed to run some of the largest simulations of wall-bounded turbulent flows52,64,65. Briefly, the code uses the same strategy as that described by Kim et al.66, but uses a seven-point compact-finite difference scheme in the y direction with fourth-order consistency and extended spectral-like resolution67. The temporal discretization is a third-order semi-implicit Runge-Kutta scheme68. The wall-normal grid spacing is adjusted to keep the resolution to \(\Delta y = 1.5 \eta\), i.e. approximately constant in terms of the local isotropic Kolmogorov scale \(\eta = \left( \nu ^3 / \varepsilon \right) ^{0.25}\), where \(\varepsilon\) is the isotropic dissipation of turbulent kinetic energy.
The dimensions of the computational domain for both simulations are set to \(8 \pi \delta , 2 \delta\) and \(3 \pi \delta\) in the streamwise, wall-normal and spanwise directions, respectively. The total number of grid points is around 50 million for the flow at \(Re_\tau =\) 180 and 444 million for the flow at \(Re_\tau =\) 500. A uniform distribution of the grid points is used in the streamwise and spanwise directions and a non-uniform distribution is used in the non-homogeneous wall-normal direction. For the flow at \(Re_\tau = 180\), the grid spacings in the streamwise (\(\Delta x^+\)) and spanwise directions (\(\Delta z^+\)) are 8.55 and 4.27, respectively, while for the flow at \(Re_\tau =\) 500, \(\Delta x^+ = 8.33\) and \(\Delta z^+ = 4.16\). The grid spacing near the wall in the wall-normal direction is \(\Delta y_w^+ = 0.53\) and 0.74 for the flow at \(Re_\tau =\) 180 and 500, respectively. The simulation time step (\(\Delta t^+\)) is set to 0.07 and 0.09 for the flow at \(Re_\tau =\) 180 and 500, respectively. The flow is periodic in the streamwise and spanwise directions, whereas the no-slip condition is applied to the channel walls. A total of 1000 consecutive snapshots are collected for each of the two simulations.
Direct numerical simulation of flow around a finite wall-mounted square cylinder
In the second case, we consider the flow around a finite wall-mounted square cylinder with \(AR =\) 4, at \(Re_d = 500\). The spectral-element-method (SEM)-based open-source code Nek5000 developed by Fischer et al.55 is used to perform the DNS. In the SEM69, the computational domain is decomposed into elements, and the solution is expressed in terms of Lagrange interpolants of order N within those elements. The location of the nodes inside the elements follows the Gauss–Lobatto–Legendre (GLL) distribution, whereas there is an isoparametric mapping for the shape of the elements and there are no restrictions regarding the position of the elements in the domain. This means that this method allows the flexibility to compute complex geometries, while still preserving the characteristics of a high-order spectral method. In the present study, the velocity field is expressed in terms of Lagrange interpolants of order \(N=5\), and order \(N-2=3\) is considered for the pressure field. The nonlinear terms are treated explicitly by third-order extrapolation (EXT3), whereas the viscous terms are treated implicitly by a third-order backward differentiation scheme (BDF3). The no-slip boundary condition is applied for the cylinder walls and the ground, while periodic boundary conditions are used in the spanwise direction. At the top of the domain, we impose a constant streamwise velocity, a zero spanwise velocity and zero stress in y. Furthermore, the input is a laminar boundary layer, and the output is the stabilized boundary condition by Dong et al.70. The dimensions of the simulation domain are \(( L_x, L_y, L_z )d = (60, 12, 12)\) in x, y and z, respectively, and the total number of grid points is around 20 million. We collect a total of 10,000 snapshots with a time setp among snapshots of \(\Delta t U_\infty / d = 0.02\).
Data preparation and pre-processing
To reduce the computational cost of training the model and to increase the training and testing data, each simulation domain in the case of turbulent channel flow is divided into 12 identical sub-domains having a size of \(2 \pi \delta\), \(2 \delta\) and \(\pi \delta\). Furthermore, the grid size of each sub-domain is interpolated and reduced to \(64 \times 48 \times 48\) grid points with a uniform distribution in the x and z directions and a non-uniform distribution in the y direction. For the case of flow around a wall-mounted square cylinder, the size of the domain that is used for training and testing the model is set to \(10d \times 7.6d \times 8d\), and the data are interpolated and reduced into a uniform grid distribution of \(48 \times 48 \times 48\) points. The input data to the model are normalised using the min-max normalisation to obtain values between 0 and 1.
Data availability
All the data analysed in this paper were produced with the in-house and open-source softwares described in the code-availability statement. Reference data and the scripts used to produce the data figures, as well as instructions to train and test the 2D3DGAN are available on the following web page: https://fluids.pusan.ac.kr/fluids/65416/subview.do.
Code availability
The DNS calculations of the turbulent channel flow case are performed using in-house code LISO, contact SH for the code availability. The DNS calculations of the case of flow around a finite wall-mounted square cylinder are performed using the open-source code Nek5000 (https://nek5000.mcs.anl.gov/). The open-source library TensorFlow 2.4.0 is used for the implementation of the 2D3DGAN (https://www.tensorflow.org/). The source code of the presented model is available on the following web page: https://fluids.pusan.ac.kr/fluids/65416/subview.do.
References
Jiménez, J. Near-wall turbulence. Phys. Fluids 25(10), 101302 (2013).
Pope, S. B. Turbulent Flows (Cambridge University Press, 2000).
Kolmogorov, A. N. The local structure of turbulence in incompressible viscous fluid for very large Reynolds numbers. C. R. Acad. Sci. URSS 30, 301–305 (1941).
Adrian, R. J. Scattering particle characteristics and their effect on pulsed laser measurements of fluid flow: Speckle velocimetry vs particle image velocimetry. Appl. Opt. 23(11), 1690–1691. https://doi.org/10.1364/AO.23.001690 (1984).
Scarano, F. Tomographic piv: Principles and practice. Meas. Sci. Technol. 24(1), 012001. https://doi.org/10.1088/0957-0233/24/1/012001 (2012).
Schanz, D., Gesemann, S. & Schroder, A. Shake-the-box: Lagrangian particle tracking at high particle image densities. Exp. Fluids 57(5), 70. https://doi.org/10.1088/0957-0233/24/1/01200110.1007/s00348-016-2157-1 (2016).
Brunton, S. L., Noack, B. R. & Koumoutsakos, P. Machine learning for fluid mechanics. Ann. Rev. Fluid Mech. 52(1), 477–508. https://doi.org/10.1146/annurev-fluid-010719-060214 (2020).
Kutz, J. N. Deep learning in fluid dynamics. J. Fluid Mech. 814, 1–4. https://doi.org/10.1017/jfm.2016.803 (2017).
Vinuesa, R. & Brunton, S. L. Enhancing computational fluid dynamics with machine learning. Nat. Comput. Sci. 2(6), 358–366. https://doi.org/10.1038/s43588-022-00264-7 (2022).
LeCun, Y., Bengio, Y. & Hinton, G. Deep learning. Nature 521(7553), 436–444. https://doi.org/10.1038/nature14539 (2015).
Duraisamy, K., Iaccarino, G. & Xiao, H. Turbulence modeling in the age of data. Ann. Rev. Fluid Mech. 51(1), 357–377. https://doi.org/10.1146/annurev-fluid-010518-040547 (2019).
Gamahara, M. & Hattori, Y. Searching for turbulence models by artificial neural network. Phys. Rev. Fluids 2(5), 054604. https://doi.org/10.1103/PhysRevFluids.2.054604 (2017).
Ling, J., Kurzawski, A. & Templeton, J. Reynolds averaged turbulence modelling using deep neural networks with embedded invariance. J. Fluid Mech. 807, 155–166. https://doi.org/10.1017/jfm.2016.615 (2016).
Lee, S. & You, D. Data-driven prediction of unsteady flow over a circular cylinder using deep learning. J. Fluid. 879, 2017–254. https://doi.org/10.1017/jfm.2019.700 (2019).
Srinivasan, P. A., Guastoni, L., Azizpour, H., Schlatter, P. & Vinuesa, R. Predictions of turbulent shear flows using deep neural networks. Phys. Rev. Fluids 4(5), 054603. https://doi.org/10.1103/PhysRevFluids.4.054603 (2019).
Yousif, M. Z., Yu, L. & Lim, H. Physics-guided deep learning for generating turbulent inflow conditions. J. Fluid Mech. 936, A21. https://doi.org/10.1017/jfm.2022.61 (2022).
Nakamura, T., Fukami, K., Hasegawa, K., Nabae, Y. & Fukagata, K. Convolutional neural network and long short-term memory based reduced order surrogate for minimal turbulent channel flow. Phys. Fluids 33(2), 025116. https://doi.org/10.1063/5.0039845 (2021).
Yousif, M. Z. & Lim, H.-C. Reduced-order modeling for turbulent wake of a finite wall-mounted square cylinder based on artificial neural network. Phys. Fluids 34(1), 015116. https://doi.org/10.1063/5.0077768 (2022).
Fan, D., Yang, L., Wang, Z., Triantafyllou, M. S. & Karniadakis, G. E. Reinforcement learning for bluff body active flow control in experiments and simulations. Proc. Natl. Acad. Sci. 117(42), 26091–26098. https://doi.org/10.1073/pnas.2004939117 (2020).
Han, B.-Z. & Huang, W.-X. Active control for drag reduction of turbulent channel flow based on convolutional neural networks. Phys. Fluids 32(9), 095108. https://doi.org/10.1063/5.0020698 (2020).
Rabault, J., Kuchta, M., Jensen, A., Reglade, U. & Cerardi, N. Artificial neural networks trained through deep reinforcement learning discover control strategies for active flow control. J. Fluid Mech. 865, 281–302. https://doi.org/10.1017/jfm.2019.62 (2019).
Guastoni, L. et al. Convolutional-network models to predict wall-bounded turbulence from wall quantities. J. Fluid Mech. 928, A27. https://doi.org/10.1017/jfm.2021.812 (2021).
Güemes, A. et al. From coarse wall measurements to turbulent velocity fields through deep learning. Phys. Fluids 33(7), 075121. https://doi.org/10.1063/5.0058346 (2021).
Fukami, K., Fukagata, K. & Taira, K. Super-resolution reconstruction of turbulent flows with machine learning. J. Fluid Mech. 807, 106–120. https://doi.org/10.1017/jfm.2019.238 (2019).
Fukami, K., Fukagata, K. & Taira, K. Machine-learning-based spatio-temporal super resolution reconstruction of turbulent flows. J. Fluid Mech. 909, A9. https://doi.org/10.1017/jfm.2020.948 (2021).
Kim, H., Kim, J., Won, S. & Lee, C. Unsupervised deep learning for super-resolution reconstruction of turbulence. Journal of Fluid Mechanics 910, A29. https://doi.org/10.1017/jfm.2020.1028 (2021).
Liu, B., Tang, J., Huang, H. & Lu, X.-Y. Deep learning methods for super-resolution reconstruction of turbulent flows. Phys. Fluids 32(2), 025105. https://doi.org/10.1063/1.5140772 (2020).
Buzzicotti, M., Bonaccorso, F., Di Leoni, P. C. & Biferale, L. Reconstruction of turbulent data with deep generative models for semantic inpainting from TURB-Rot database. Phys. Rev. Fluids 6, 050503. https://doi.org/10.1103/PhysRevFluids.6.050503 (2021).
Yousif, M. Z., Yu, L. & Lim, H.-C. High-fidelity reconstruction of turbulent flow from spatially limited data using enhanced super-resolution generative adversarial network. Phys. Fluids 33(12), 125119. https://doi.org/10.1063/5.0066077 (2021).
Yousif, M. Z., Yu, L. & Lim, H.-C. Super-resolution reconstruction of turbulent flow fields at various Reynolds numbers based on generative adversarial networks. Phys. Fluids 34(1), 015130. https://doi.org/10.1063/5.0074724 (2022).
Fukami, K., An, B., Nohmi, M., Obuchi, M. & Taira, K. Machine-learning-based reconstruction of turbulent vortices from sparse pressure sensors in a pump sump. J. Fluids Eng. https://doi.org/10.1115/1.4055178 (2022).
Ihme, M., Chung, W. T. & Mishra, A. A. Combustion machine learning: Principles, progress and prospects. Prog. Energy Combust. Sci. 91, 101010 (2022).
Brucker, C., Hess, D. & Kitzhofer, J. Single-view volumetric PIV via high-resolution scanning, isotropic voxel restructuring and 3D least-squares matching (3D-LSM). Meas. Sci. Technol. 24(2), 024001. https://doi.org/10.1088/0957-0233/24/2/024001 (2012).
Brucker, C. Digital-particle-image-velocimetry (DPIV) in a scanning light-sheet: 3d starting flow around a short cylinder. Exp. Fluids 19(4), 255–263. https://doi.org/10.1007/BF00196474 (1995).
Zhang, W., Hain, R. & Kahler, C. J. Scanning PIV investigation of the laminar separation bubble on a SD7003 airfoil. Exp. Fluids 45(4), 725–743. https://doi.org/10.1007/s00348-008-0563-8 (2008).
Ganapathisubramani, B., Lakshminarasimhan, K. & Clemens, N. T. Investigation of three-dimensional structure of fine scales in a turbulent jet by using cinematographic stereoscopic particle image velocimetry. J. Fluid Mech. 598, 141–175. https://doi.org/10.1017/S0022112007009706 (2008).
Chandramouli, P., Memin, E., Heitz, D. & Fiabane, L. Fast 3D flow reconstructions from 2d cross-plane observations. Exp. Fluids 60(2), 30. https://doi.org/10.1007/s00348-018-2674-1 (2019).
Braud, C., Heitz, D., Braud, P., Arroyo, G. & Delville, J. Analysis of the wake mixing-layer interaction using multiple plane PIV and 3D classical POD. Exp. Fluids 37(1), 95–104. https://doi.org/10.1007/s00348-004-0789-z (2004).
Hamdi, J., Assoum, H., Abed-Meraim, K. & Sakout, A. Volume reconstruction of an impinging jet obtained from stereoscopic-PIV data using pod. Eur. J. Mech. B/Fluids 67, 433–445. https://doi.org/10.1016/j.euromechflu.2017.09.001 (2018).
Goodfellow, I. et al. Generative adversarial nets. Adv. Neural Inf. Process. Syst. 27, 2672–2680 (2014).
Ledig, C. et al. Photo-realistic single image super-resolution using a generative adversarial network. arXiv:1609.04802 (2017).
Mirza, M. & Osindero, S. Conditional generative adversarial nets. (2014).
Wang, X. et al. Esrgan: Enhanced super-resolution generative adversarial networks. arXiv:1809.00219 [Cs] (2018).
Zhu, J.-Y., Park, T., Isola, P. & Efros, A., A. Unpaired image-to-image translation using cycle-consistent adversarial networks. 2017 IEEE International Conference on Computer Vision (ICCV), 2242–2251 https://doi.org/10.1109/ICCV.2017.244 (2017).
Kim, J., Moin, P. & Moser, R. Turbulence statistics in fully developed channels flows at low Reynolds numbers. J. Fluid Mech. 177, 133–166 (1987).
Moser, R. D., Kim, J. & Mansour, N. N. Direct numerical simulation of turbulent channel flow up to \({R}e_\tau =590\). Phys. Fluids 11(4), 943–945 (1999).
Del Alamo, J. C., Jiménez, J., Zandonade, P. & Moser, R. D. Scaling of the energy spectra of turbulent channels. J. Fluid Mech. 500, 135–144 (2004).
Hoyas, S. & Jimenez, J. Scaling of the velocity fluctuations in turbulent channels up to \({{ {Re}}}_\tau =2003\). Phys. Fluids 18, 011702. https://doi.org/10.1063/1.2162185 (2006).
Bernardini, M., Pirozzoli, S. & Orlandi, P. Velocity statistics in turbulent channel flow up to \({R}e_\tau =4000\). J. Fluid Mech. 758, 327–343 (2014).
Lee, M. & Moser, R. Direct numerical simulation of turbulent channel flow up to \({R}e_\tau \approx 5200\). J. Fluid Mech. 774, 395–415 (2015).
Yamamoto, Y. & Tsuji, Y. Numerical evidence of logarithmic regions in channel flow at \(Re_\tau =8000\). Phys. Rev. Fluids 3, 012602 (2018).
Hoyas, S., Oberlack, M., Alcántara-Ávila, F., Kraheberger, S. V. & Laux, J. Wall turbulence at high friction Reynolds numbers. Phys. Rev. Fluids 7, 014602. https://doi.org/10.1103/PhysRevFluids.7.014602 (2022).
Vinuesa, R., Schlatter, P., Malm, J., Mavriplis, C. & Henningson, D. S. Direct numerical simulation of the flow around a wall-mounted square cylinder under various inflow conditions. J. Turbul. 16(6), 555–587. https://doi.org/10.1080/14685248.2014.989232 (2015).
Lazpita, E. et al. On the generation and destruction mechanisms of arch vortices in urban fluid flows. Phys. Fluids 34(5), 051702. https://doi.org/10.1063/5.0088305 (2022).
Fischer, P. F., Lottes, J. W. & Kerkemeier, S. G.: NEK5000: Open source spectral element CFD solver. https://nek5000.mcs.anl.gov/ (2022).
Lozano-Duran, A. & Jimenez, J. Time-resolved evolution of coherent structures in turbulent channels: Characterization of eddies and cascades. J. Fluid Mech. 759, 432–471. https://doi.org/10.1017/jfm.2014.575 (2014).
Bourgeois, J. A., Sattari, P. & Martinuzzi, R. J. Alternating half-loop shedding in the turbulent wake of a finite surface-mounted square cylinder with a thin boundary layer. Phys. Fluids 23(9), 095101. https://doi.org/10.1063/1.3623463 (2011).
Saha, A. K. Unsteady flow past a finite square cylinder mounted on a wall at low Reynolds number. Comput. Fluids 88, 599–615. https://doi.org/10.1016/j.compfluid.2013.10.010 (2013).
Yousif, M. Z. & Lim, H. Improved delayed detached-eddy simulation and proper orthogonal decomposition analysis of turbulent wake behind a wall-mounted square cylinder. AIP Adv. 11(4), 045011. https://doi.org/10.1063/5.0045921 (2021).
Jolicoeur-Martineau, A.: The relativistic discriminator: A key element missing from standard GAN. arXiv:1807.00734 [Cs, Stat]. (2018)
Abadi, M. et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv:1603.04467 [Cs]. (2016)
Kingma, D.P. & Ba, J. Adam: A method for stochastic optimization. arXiv:1412.6980 (2017)
Lluesma-Rodriguez, F., Alcantara-Avila, F., Perez-Quiles, M. J. & Hoyas, S. A code for simulating heat transfer in turbulent channel flow. Mathematics 9(7), 756. https://doi.org/10.3390/math9070756 (2021).
Alcantara-Avila, F., Hoyas, S. & Jezabel Perez-Quiles, M. Direct numerical simulation of thermal channel flow for \({{\mathit{Re}}_\tau } = 5000\) and \({{\mathit{Pr}}} = 0.71\). J. Fluid Mech. 916, 29. https://doi.org/10.1017/jfm.2021.231 (2021).
Oberlack, M., Hoyas, S., Kraheberger, S. V., Alcántara-Ávila, F. & Laux, J. Turbulence statistics of arbitrary moments of wall-bounded shear flows: A symmetry approach. Phys. Rev. Lett. 128, 024502. https://doi.org/10.1103/PhysRevLett.128.024502 (2022).
Kim, J., Moin, P. & Moser, R. Turbulence statistics in fully developed channel flow at low Reynolds number. J. Fluid Mech. 177, 133–166. https://doi.org/10.1017/S0022112087000892 (1987).
Lele, S. K. Compact finite difference schemes with spectral-like resolution. J. Comput. Phys. 103, 16–42. https://doi.org/10.1016/0021-9991(92)90324-R (1992).
Spalart, P. R., Moser, R. D. & Rogers, M. M. Spectral methods for the Navier-Stokes equations with one infinite and two periodic directions. J. Comput. Phys. 96(5), 297–324. https://doi.org/10.1016/0021-9991(91)90238-G (1991).
Patera, A. T. A spectral element method for fluid dynamics: Laminar flow in a channel expansion. J. Comput. Phys. 54(3), 468–488. https://doi.org/10.1016/0021-9991(84)90128-1 (1984).
Dong, S., Karniadakis, G. E. & Chryssostomidis, C. A robust and accurate outflow boundary condition for incompressible flow simulations on severely-truncated unbounded domains. J. Comput. Phys. 261, 83–105. https://doi.org/10.1016/j.jcp.2013.12.042 (2014).
Acknowledgements
This work was supported by ‘Human Resources Program in Energy Technology’ of the Korea Institute of Energy Technology Evaluation and Planning (KETEP), granted financial resource from the Ministry of Trade, Industry & Energy, Republic of Korea (no. 20214000000140). In addition, this work was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIP) (no. 2019R1I1A3A01058576). This work was also supported by the National Supercomputing Center with supercomputing resources including technical support (KSC-2021-CRE-0244). R.V. acknowledges the financial support from the ERC Grant No. “2021-CoG-101043998, DEEPCONTROL”. SH was funded by Contract No. PID2021-128676OB-I00 of Ministerio de Ciencia, innovación y Universidades/ FEDER.
Author information
Authors and Affiliations
Contributions
M.Z.Y. and H.L. designed the research. M.Z.Y. and L.Y. wrote the code of the deep-learning model with input from R.V. R.V. and S.H. performed the simulations and provided the data. M.Z.Y., L.Y. and H.L. wrote the manuscript. R.V. and S.H. reviewed and edited the manuscript. H.L. supervised the project.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Yousif, M.Z., Yu, L., Hoyas, S. et al. A deep-learning approach for reconstructing 3D turbulent flows from 2D observation data. Sci Rep 13, 2529 (2023). https://doi.org/10.1038/s41598-023-29525-9
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-023-29525-9
This article is cited by
-
Synthetic Lagrangian turbulence by generative diffusion models
Nature Machine Intelligence (2024)
-
Reconstructing Three-Dimensional Bluff Body Wake from Sectional Flow Fields with Convolutional Neural Networks
SN Computer Science (2024)
-
Super-resolution analysis via machine learning: a survey for fluid flows
Theoretical and Computational Fluid Dynamics (2023)
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.