DNS 1-3 Quantification of Resolution: Difference between revisions

From KBwiki
Jump to navigation Jump to search
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:


{{DNSHeaderLib
=Flow in a 3D diffuser=
{{DNSHeader
|area=1
|area=1
|number=3
|number=3
Line 6: Line 7:
__TOC__
__TOC__
= Quantification of resolution =
= Quantification of resolution =
This section provides details of the solution obtained after running the diffuser in Alya. Firstly, details of the mesh resolution are given. Then, the obtained results are compared with those of the literature for the Stanford diffuser. A discussion on the closure of the Reynolds stress equations budgets follows and closes this section.
==Mesh resolution==
==Mesh resolution==


The mesh resolution is quantified by obtaining a relation between the mesh characteristic length (<math>{\Delta}</math>) and the characteristics lengths, i.e., the Taylor microscale (<math>{\eta_T}</math>) and Kolmogorov length scale (<math>{\eta}</math>). The former relation is shown in [[lib:DNS_1-3_quantification_#figure10|Fig. 10]] while the latter is reported in [[lib:DNS_1-3_quantification_#figure11|Fig. 11]]. As it can be seen, both relations indicate that the resolution achieved by the present grid is at DNS level. In particular, it is commonly accepted that DNS is achieved when <math>{\Delta/\eta_T \leq 5}</math>, as shown in [[lib:DNS_1-3_quantification_#figure11|Fig. 11]].
The mesh resolution is quantified by obtaining a relation between the mesh characteristic length (<math>{\Delta}</math>) and characteristic lengths of the turbulence, i.e., the Taylor microscale (<math>{\eta_T}</math>) and Kolmogorov length scale (<math>{\eta_K}</math>). The former relation is shown in [[lib:DNS_1-3_quantification_#figure10|Fig. 10]] while the latter is reported in [[lib:DNS_1-3_quantification_#figure11|Fig. 11]]. As can be seen, both relations indicate that the resolution achieved by the present grid is at DNS level. In particular, it is commonly accepted that DNS is achieved when <math>{\Delta/\eta_K \leq 5}</math>, as shown in [[lib:DNS_1-3_quantification_#figure11|Fig. 11]].


<div id="figure10"></div>
<div id="figure10"></div>
Line 25: Line 29:


==Solution verification==
==Solution verification==
This section aims to provide an insight on the dataset freely available in [[lib:DNS_1-3_statistical_|this wiki]]. Simulation results are compared with the DNS of [[lib:DNS_1-3_description#1|Ohlsson ''et&nbsp;al.''  (2010)]] and the experimental data of [[lib:DNS_1-3_description#5|Cherry ''et&nbsp;al.'' (2008)]]. The grid resolution has been proven to be fine enough to be at DNS level. An animation of the fluctuations of this flow can be seen in [http://kbwiki-data.s3-eu-west-2.amazonaws.com/DNS-1/3/fluct2.mp4 this link].
 
For verification of the quality of the results obtained in the present simulations, these are compared with those of the DNS of [[lib:DNS_1-3_description#1|Ohlsson ''et&nbsp;al.''  (2010)]] and the experimental data of [[lib:DNS_1-3_description#5|Cherry ''et&nbsp;al.'' (2008)]] (available in [[UFR_4-16_Test_Case|UFR 4-16 of the Wiki]]) and a check is made whether the residuals in the budget equations for the Reynolds stresses are sufficiently small.


===Velocity profiles and RMS quantities===
===Velocity profiles and RMS quantities===
The 10000 Reynolds number diffuser has been simulated and compared with the results with previous DNS data from [[lib:DNS_1-3_description#1|Ohlsson ''et&nbsp;al.''  (2010)]] and experimental data from [[lib:DNS_1-3_description#1|Cherry ''et&nbsp;al.''  (2008)]]. [[lib:DNS_1-3_statistical_#figure12|Fig. 12]] and [[lib:DNS_1-3_statistical_#figure13|Fig. 13]] show the averaged velocities and the RMS quantities along the characteristic lines of the diffuser for the experimental data and both DNS simulations. Finally, [[lib:DNS_1-3_statistical_#figure15|Fig. 15]] and [[lib:DNS_1-3_statistical_#figure16|Fig. 16]] show a comparison of the contours of the span-wise velocity and span-wise rms fluctuations respectively.


[[lib:DNS_1-3_statistical_#figure12|Fig. 12]] and [[lib:DNS_1-3_statistical_#figure13|Fig. 13]] show a fair agreement between both numerical simulations, proving that the approach used is an optimal strategy. Moreover, the points where the DNS performed with Alya deviates from the results of [[lib:DNS_1-3_description#1|Ohlsson ''et&nbsp;al.''  (2010)]], this is in favour to move closer to the experimental data of [[lib:DNS_1-3_description#5|Cherry ''et&nbsp;al.''  (2008)]]. Thus, a good agreement is also obtained with the experiment. The inclusion of a roughness element on the long inlet duct, to trigger the turbulence, is shown to have a negligible effect on the quality of the results.
Figs. [[lib:DNS_1-3_statistical_#figure16|16]] and [[lib:DNS_1-3_statistical_#figure17|17]]  presented in the next section ([[lib:DNS_1-3_statistical_|Statistical Data]]) show, respectively, the mean velocities and RMS values of the streamwise fluctuations along characteristic lines of the diffuser for the experimental data and both DNS simulations. Further,  Figs. [[lib:DNS_1-3_statistical_#figure20|20]] and [[lib:DNS_1-3_statistical_#figure21|21]] show, respectively, a comparison of the contours of the streamwise mean velocity and its RMS fluctuations at selected cross sections of the diffuser. As can be seen, there is a fair agreement between the 2 numerical simulations providing confidence in the present simulations, and where these deviate locally from the results of Ohlsson et al (2010),  the present results are closer to the experimental data of Cherry et al (2008)  so that overall good agreement is obtained with these data. An impression of the fluctuations can  be obtained from an animation that can be seen in [http://kbwiki-data.s3-eu-west-2.amazonaws.com/DNS-1/3/fluct2.mp4 this link]. It should be noted that the inclusion of a roughness element in the long inlet duct in order to trigger turbulence has a negligible effect on the quality of the results.


===Other turbulent statistics===
===Reynolds stress equations budgets===


Other relevant statistics from the database are presented in this section. In particular, the turbulent kinetic energy (TKE) and the characteristic length scales (i.e., the Taylor micro-scale <math>{\eta_T}</math> and the Kolmogorov length-scale <math>{\eta_K}</math>) are presented in [[lib:DNS_1-3_statistical_#figure17|Fig. 17]] along some characteristic contours of the diffuser.
The budget terms of the Reynolds-stress and turbulent kinetic energy (TKE) equations are discussed in this section. The first step is to show that Alya can close the budgets. To this aim, Figs. [[lib:DNS_1-3_quantification_#figure12|12]] shows the turbulent kinetic energy equation budget and the streamwise Reynolds-stress budget in a developed channel flow at <math>{Re_\tau = 180}</math>. The results are compared with the DNS data of [[lib:DNS_1-3_quantification#1|Hoyas and Jimenez (2008)]] (in circles) and [[lib:DNS_1-3_quantification#2|Moser ''et&nbsp;al.'' (1999)]] (in triangles) obtained at the same <math>{Re_\tau}</math>. These are found freely available online. As can be seen, the residuals close well within an order of magnitude with respect to the production. This proves that the methodology used in this entry is sound and that Alya can close the budgets if given the necessary grid resolution and integration time.  


===Turbulent kinetic energy budget equation terms===
<div id="figure12"></div>
{|align="center" width=750
|[[Image:DNS_1_3_budget_channel180_TKE.png|740px]]
|-
|[[Image:DNS_1_3_budget_channel180_UU.png|740px]]
|-
|'''Figure 12:''' Channel flow <math>{Re_\tau = 180}</math>, Alya DNS-8M DoF, TKE and stream-wise Reynolds stress budget terms compared with the results of Hoyas and Jimenez (circles) and Moser, Kim and Mansour (triangles).
|}


The turbulent kinetic energy budget equation terms are presented in this section. As it can be seen in [[lib:DNS_1-3_statistical_#figure14|Fig. 14]], the magnitudes of the residuals for the TKE budget equations is very small, of the order of <math>{10^{-2}}</math>, which is deemed sufficient for the present case.
TKE and Reynolds-stress-budget profiles are provided in [[lib:DNS_1-3_statistical_|Statistical Data]] for the inlet duct along the vertical and horizontal mid lines. These profiles have been obtained by extracting the budget terms on representative sections between (<math>{-30<x/h<-25}</math>) for a total of a 100 planes every <math>{\Delta x/h=0.05}</math>. For each of these planes, pairs of slightly off-centered vertical (in y-direction) and horizontal ( in z-direction) lines (see Fig. [[lib:DNS_1-3_statistical_#figure13|13]]) have been chosen along which the budget terms are extracted for a fixed x-position. This data has been averaged three times: 1)  first averaging the data on each of the line pairs over the 100 x-positions;  2) then averaging the values at the 2 horizontal lines across the symmetry plane and likewise those of the two vertical lines;  3) folding the horizontal and vertical lines in one half of the duct at the middle lines onto the other half and then taking the average.  The latter 2 averaging steps are also indicated in Fig. [[lib:DNS_1-3_statistical_#figure13|13]]. This has been done to exploit the duct symmetries and reduce the amount of temporal instants required for convergence. These budget profiles are shown in Figs. [[lib:DNS_1-3_statistical_#figure18|18]] and [[lib:DNS_1-3_statistical_#figure19|19]]. As can be seen, the budgets close reasonably well with residuals around 11.7% and 14.6% of the production for TKE for the vertical and horizontal lines respectively, and 10.4% and 12.2% of the production for the stream-wise Reynolds stress for the vertical and horizontal lines respectively.


<div id="figure13"></div>
{|align="center" width=750
|[[Image:DNS_1_3_averaging.png|740px]]
|-
|'''Figure 13:''' Averaging steps for the duct region. Averaging the values at the 2 horizontal lines across the symmetry plane and likewise those of the two vertical lines, and folding the horizontal and vertical lines in one half of the duct at the middle lines onto the other half and then taking the average.
|}
Regarding the budgets in the diffuser region, budget closure has been found to be more difficult to achieve. In that region massive separation occurs, and being in a full three-dimensional configuration, no symmetry can be exploited to diminish the time integration required to close the budgets. In addition to that, a "slow breathing" mechanism has been observed in the diffuser. This has been reported first by [[lib:DNS_1-3_quantification#3|Malm ''et&nbsp;al.'' (2017)]] (note that due to a change of name Malm and Ohlsson are the same person) and was also observed in POD analysis conducted by the authors. In particular, a spanwise flapping motion has been observed inside the diffuser that corresponds to a period of 7 flow-through times. This means that this motion is only seen 3 times in both our and Ohlsson's 21 flow-through times and hence the budget data are not provided in the Statistical Data section for the diffuser area. As can be seen on Figs. [[lib:DNS_1-3_statistical_#figure14|14]] and [[lib:DNS_1-3_statistical_#figure15|15]], budget closure has not been achieved in the diffuser region. In order to start seeing some convergence, up to <math>{t=U_b/L=100}</math> (5 more times) integration time should be needed.
<div id="figure14"></div>
{|align="center" width=750
|[[Image:DNS_1_3_diffuser_x6_TKE.png|740px]]
|-
|[[Image:DNS_1_3_diffuser_x6_UU.png|740px]]
|-
|'''Figure 14:''' Stanford double diffuser, Re=10000. TKE and stream-wise Reynolds stress budgets at the diffuser area (<math>{x/h=1}</math>).
|}
<div id="figure15"></div>
{|align="center" width=750
|[[Image:DNS_1_3_diffuser_x20_TKE.png|740px]]
|-
|[[Image:DNS_1_3_diffuser_x20_UU.png|740px]]
|-
|'''Figure 15:''' Stanford double diffuser, Re=10000. TKE and stream-wise Reynolds stress budgets at the diffuser area (<math>{x/h=15}</math>).
|}
In the case of Figs. [[lib:DNS_1-3_statistical_#figure14|14]], smoothing does not help much since the physics are not well captured. Smoothing would likely distort the results and produce non-physical solutions. Therefore, it is recommended for future campaigns to increase further the grid resolution but also largely increase the integration time considered. While a DNS at Re=10000 is attainable, massively separated flows still pose a severe challenge regarding the computational effort due to the large integration time required to converge the solution in terms of the Reynolds stress budgets.
<br/>
==References==
#<div id="1">'''Hoyas, S., Jiménez J.(2008)''': Reynolds number effects on the Reynolds-stress budgets in turbulent channels. In ''Physics of Fluids'' Vol.&nbsp;20.10, pp.&nbsp;101511.</div>
#<div id="2">'''Moser, R. D., Kim, J., Mansour, N. N. (1999)''': Direct numerical simulation of turbulent channel flow up to Re_tau 590. In ''Physics of Fluids'' Vol.&nbsp;11.4, pp.&nbsp;943-945.</div>
#<div id="3">'''Malm, J., Schlatter, P., Henningson, D.S. (2012)''': Coherent structures and dominant frequencies in a turbulent three-dimensional diffuser. In ''Journal of Fluid Mechanics Vol.&nbsp;699, pp.&nbsp;320–351.</div>
<br/>
<br/>
----
----
{{ACContribs
{{ACContribs
Line 46: Line 92:
| organisation=Barcelona Supercomputing Center (BSC)
| organisation=Barcelona Supercomputing Center (BSC)
}}
}}
{{DNSHeaderLib
{{DNSHeader
|area=1
|area=1
|number=3
|number=3

Latest revision as of 09:23, 5 January 2023

Flow in a 3D diffuser

Front Page

Description

Computational Details

Quantification of Resolution

Statistical Data

Instantaneous Data

Storage Format

Quantification of resolution

This section provides details of the solution obtained after running the diffuser in Alya. Firstly, details of the mesh resolution are given. Then, the obtained results are compared with those of the literature for the Stanford diffuser. A discussion on the closure of the Reynolds stress equations budgets follows and closes this section.

Mesh resolution

The mesh resolution is quantified by obtaining a relation between the mesh characteristic length () and characteristic lengths of the turbulence, i.e., the Taylor microscale () and Kolmogorov length scale (). The former relation is shown in Fig. 10 while the latter is reported in Fig. 11. As can be seen, both relations indicate that the resolution achieved by the present grid is at DNS level. In particular, it is commonly accepted that DNS is achieved when , as shown in Fig. 11.

DNS 1 3 taylor.png
Figure 10: Stanford double diffuser, Alya DNS-250M DoF, relation between the mesh size and the Taylor microscale.
DNS 1 3 delta vs eta.png
Figure 11: Stanford double diffuser, Alya DNS-250M DoF, relation between the mesh size and the Kolmogorov length scale.

Solution verification

For verification of the quality of the results obtained in the present simulations, these are compared with those of the DNS of Ohlsson et al. (2010) and the experimental data of Cherry et al. (2008) (available in UFR 4-16 of the Wiki) and a check is made whether the residuals in the budget equations for the Reynolds stresses are sufficiently small.

Velocity profiles and RMS quantities

Figs. 16 and 17  presented in the next section (Statistical Data) show, respectively, the mean velocities and RMS values of the streamwise fluctuations along characteristic lines of the diffuser for the experimental data and both DNS simulations. Further,  Figs. 20 and 21 show, respectively, a comparison of the contours of the streamwise mean velocity and its RMS fluctuations at selected cross sections of the diffuser. As can be seen, there is a fair agreement between the 2 numerical simulations providing confidence in the present simulations, and where these deviate locally from the results of Ohlsson et al (2010),  the present results are closer to the experimental data of Cherry et al (2008)  so that overall good agreement is obtained with these data. An impression of the fluctuations can  be obtained from an animation that can be seen in this link. It should be noted that the inclusion of a roughness element in the long inlet duct in order to trigger turbulence has a negligible effect on the quality of the results.

Reynolds stress equations budgets

The budget terms of the Reynolds-stress and turbulent kinetic energy (TKE) equations are discussed in this section. The first step is to show that Alya can close the budgets. To this aim, Figs. 12 shows the turbulent kinetic energy equation budget and the streamwise Reynolds-stress budget in a developed channel flow at . The results are compared with the DNS data of Hoyas and Jimenez (2008) (in circles) and Moser et al. (1999) (in triangles) obtained at the same . These are found freely available online. As can be seen, the residuals close well within an order of magnitude with respect to the production. This proves that the methodology used in this entry is sound and that Alya can close the budgets if given the necessary grid resolution and integration time.

DNS 1 3 budget channel180 TKE.png
DNS 1 3 budget channel180 UU.png
Figure 12: Channel flow , Alya DNS-8M DoF, TKE and stream-wise Reynolds stress budget terms compared with the results of Hoyas and Jimenez (circles) and Moser, Kim and Mansour (triangles).

TKE and Reynolds-stress-budget profiles are provided in Statistical Data for the inlet duct along the vertical and horizontal mid lines. These profiles have been obtained by extracting the budget terms on representative sections between () for a total of a 100 planes every . For each of these planes, pairs of slightly off-centered vertical (in y-direction) and horizontal ( in z-direction) lines (see Fig. 13) have been chosen along which the budget terms are extracted for a fixed x-position. This data has been averaged three times: 1) first averaging the data on each of the line pairs over the 100 x-positions; 2) then averaging the values at the 2 horizontal lines across the symmetry plane and likewise those of the two vertical lines; 3) folding the horizontal and vertical lines in one half of the duct at the middle lines onto the other half and then taking the average. The latter 2 averaging steps are also indicated in Fig. 13. This has been done to exploit the duct symmetries and reduce the amount of temporal instants required for convergence. These budget profiles are shown in Figs. 18 and 19. As can be seen, the budgets close reasonably well with residuals around 11.7% and 14.6% of the production for TKE for the vertical and horizontal lines respectively, and 10.4% and 12.2% of the production for the stream-wise Reynolds stress for the vertical and horizontal lines respectively.

DNS 1 3 averaging.png
Figure 13: Averaging steps for the duct region. Averaging the values at the 2 horizontal lines across the symmetry plane and likewise those of the two vertical lines, and folding the horizontal and vertical lines in one half of the duct at the middle lines onto the other half and then taking the average.

Regarding the budgets in the diffuser region, budget closure has been found to be more difficult to achieve. In that region massive separation occurs, and being in a full three-dimensional configuration, no symmetry can be exploited to diminish the time integration required to close the budgets. In addition to that, a "slow breathing" mechanism has been observed in the diffuser. This has been reported first by Malm et al. (2017) (note that due to a change of name Malm and Ohlsson are the same person) and was also observed in POD analysis conducted by the authors. In particular, a spanwise flapping motion has been observed inside the diffuser that corresponds to a period of 7 flow-through times. This means that this motion is only seen 3 times in both our and Ohlsson's 21 flow-through times and hence the budget data are not provided in the Statistical Data section for the diffuser area. As can be seen on Figs. 14 and 15, budget closure has not been achieved in the diffuser region. In order to start seeing some convergence, up to (5 more times) integration time should be needed.

DNS 1 3 diffuser x6 TKE.png
DNS 1 3 diffuser x6 UU.png
Figure 14: Stanford double diffuser, Re=10000. TKE and stream-wise Reynolds stress budgets at the diffuser area ().
DNS 1 3 diffuser x20 TKE.png
DNS 1 3 diffuser x20 UU.png
Figure 15: Stanford double diffuser, Re=10000. TKE and stream-wise Reynolds stress budgets at the diffuser area ().

In the case of Figs. 14, smoothing does not help much since the physics are not well captured. Smoothing would likely distort the results and produce non-physical solutions. Therefore, it is recommended for future campaigns to increase further the grid resolution but also largely increase the integration time considered. While a DNS at Re=10000 is attainable, massively separated flows still pose a severe challenge regarding the computational effort due to the large integration time required to converge the solution in terms of the Reynolds stress budgets.

References

  1. Hoyas, S., Jiménez J.(2008): Reynolds number effects on the Reynolds-stress budgets in turbulent channels. In Physics of Fluids Vol. 20.10, pp. 101511.
  2. Moser, R. D., Kim, J., Mansour, N. N. (1999): Direct numerical simulation of turbulent channel flow up to Re_tau 590. In Physics of Fluids Vol. 11.4, pp. 943-945.
  3. Malm, J., Schlatter, P., Henningson, D.S. (2012): Coherent structures and dominant frequencies in a turbulent three-dimensional diffuser. In Journal of Fluid Mechanics Vol. 699, pp. 320–351.




Contributed by: Oriol Lehmkuhl, Arnau Miro — Barcelona Supercomputing Center (BSC)

Front Page

Description

Computational Details

Quantification of Resolution

Statistical Data

Instantaneous Data

Storage Format


© copyright ERCOFTAC 2024