DNS 1-3 Quantification of Resolution: Difference between revisions

From KBwiki
Jump to navigation Jump to search
 
(91 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==
A mesh resulting in approximately 250 million degrees of freedom (DoF). With a stretched grid, the maximum grid resolution in the duct centre is reported at <math>{\Delta z^+ = 11.6}</math>, <math>{\Delta y^+ = 13.2}</math>, <math>{\Delta x^+ = 19.5}</math>. Correspondingly, the wall resolution (in terms of the first grid point) is reported as <math>{z^+ = 0.074}</math>, <math>{y^+ = 0.37}</math> in the spanwise and normal directions, respectively, is used.
 
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>
{|align="center" width=750
|[[Image:DNS_1_3_taylor.png|740px]]
|-
|'''Figure 10:''' Stanford double diffuser, Alya DNS-250M DoF, relation between the mesh size and the Taylor microscale.
|}
 
<div id="figure11"></div>
{|align="center" width=750
|[[Image:DNS_1_3_delta_vs_eta.png|740px]]
|-
|'''Figure 11:''' Stanford double diffuser, Alya DNS-250M DoF, relation between the mesh size and the Kolmogorov length scale.
|}


==Solution verification==
==Solution verification==
The 10000 Reynolds number diffuser has been run and compared with the results with previous DNS data performed by [[lib:DNS_1-3_description#1|Ohlsson ''et&nbsp;al.''  (2010)]]. A P2 mesh of 250 Million of DoF. The resolution is fine enough to be at DNS level.


(figs 5 & 6)
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===
 
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.
 
===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. [[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.
 
<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).
|}


In Figures 5 and 6 results are presented with reference data from [[lib:DNS_1-3_description#1|Ohlsson ''et&nbsp;al.'' (2010)]]. Fair agreement is observed between both calculations, proving that the approach to be used in the present proposal is an optimal strategy. Turbulent inlet was generated in a precursor domain using a long enough duct with a roughness element to trigger the laminar to turbulent transition.
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 21: 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