DNS 1-3 Computational Details: Difference between revisions

From KBwiki
Jump to navigation Jump to search
Line 12: Line 12:


In a nutshell, the convective term is discretized using a Galerkin finite element (FEM) scheme recently proposed by [[lib:DNS_1-3_computational#6|Charnyi ''et al.''  (2017)]], which conserves linear and angular momentum, and kinetic energy at the discrete level (see [[lib:DNS_1-3_computational#7| Olshanskii and Rebholz (2020)]]). Neither upwinding nor any equivalent momentum stabilization is employed. In order to use equalorder elements, numerical dissipation is introduced only for the pressure stabilization via a fractional step scheme ([[lib:DNS_1-3_computational#3|Codina  (2001)]]), which is similar to the approach for the pressure-velocity coupling in unstructured, collocated finite-volume codes (see, for example, [[lib:DNS_1-3_computational#2|Jofre ''et al.''  (2014)]]). The set of equations is integrated in time using a third order Runge-Kutta explicit method (see [[lib:DNS_1-3_computational#8| Capuano ''et al.''  (2017)]]) combined with an eigenvalue-based time-step estimator (see [[lib:DNS_1-3_computational#4|Trias and Lehmkuhl (2011)]]). This approach has been shown to be significantly less dissipative than the traditional stabilized FEM approach (see [[lib:DNS_1-3_computational#5|Lehmkuhl ''et al.''  (2019)]]). Thus, is an optimal methodology for high-fidelity simulations of complex flows as the ones required in the present project.
In a nutshell, the convective term is discretized using a Galerkin finite element (FEM) scheme recently proposed by [[lib:DNS_1-3_computational#6|Charnyi ''et al.''  (2017)]], which conserves linear and angular momentum, and kinetic energy at the discrete level (see [[lib:DNS_1-3_computational#7| Olshanskii and Rebholz (2020)]]). Neither upwinding nor any equivalent momentum stabilization is employed. In order to use equalorder elements, numerical dissipation is introduced only for the pressure stabilization via a fractional step scheme ([[lib:DNS_1-3_computational#3|Codina  (2001)]]), which is similar to the approach for the pressure-velocity coupling in unstructured, collocated finite-volume codes (see, for example, [[lib:DNS_1-3_computational#2|Jofre ''et al.''  (2014)]]). The set of equations is integrated in time using a third order Runge-Kutta explicit method (see [[lib:DNS_1-3_computational#8| Capuano ''et al.''  (2017)]]) combined with an eigenvalue-based time-step estimator (see [[lib:DNS_1-3_computational#4|Trias and Lehmkuhl (2011)]]). This approach has been shown to be significantly less dissipative than the traditional stabilized FEM approach (see [[lib:DNS_1-3_computational#5|Lehmkuhl ''et al.''  (2019)]]). Thus, is an optimal methodology for high-fidelity simulations of complex flows as the ones required in the present project.
== Solution smoothing ==
TBD


== Spatial and temporal resolution, grids ==
== Spatial and temporal resolution, grids ==

Revision as of 17:37, 18 November 2022


Front Page

Description

Computational Details

Quantification of Resolution

Statistical Data

Instantaneous Data

Storage Format

Computational Details

This section provides details of the computational strategies employed to compute the present case. Firstly, details of the numerical solver are given. Then, information about the computational grid is provided. Finally, the statistical quantities and their computation are explained.

Computational approach

Alya is a parallel multi-physics/multiscale simulation code developed at the Barcelona Supercomputing Centre to run efficiently on high-performance computing environments. For this DNS, the data has been obtained using the incompressible Navier-Stokes solver of Alya since the flow is not subject to compressibility effects. The general code is described in Vazquezet al. (2016) while the latest numerical schemes for the incompressible flow solver are described in Lehmkuhl et al. (2019).

In a nutshell, the convective term is discretized using a Galerkin finite element (FEM) scheme recently proposed by Charnyi et al. (2017), which conserves linear and angular momentum, and kinetic energy at the discrete level (see Olshanskii and Rebholz (2020)). Neither upwinding nor any equivalent momentum stabilization is employed. In order to use equalorder elements, numerical dissipation is introduced only for the pressure stabilization via a fractional step scheme (Codina (2001)), which is similar to the approach for the pressure-velocity coupling in unstructured, collocated finite-volume codes (see, for example, Jofre et al. (2014)). The set of equations is integrated in time using a third order Runge-Kutta explicit method (see Capuano et al. (2017)) combined with an eigenvalue-based time-step estimator (see Trias and Lehmkuhl (2011)). This approach has been shown to be significantly less dissipative than the traditional stabilized FEM approach (see Lehmkuhl et al. (2019)). Thus, is an optimal methodology for high-fidelity simulations of complex flows as the ones required in the present project.

Solution smoothing

TBD

Spatial and temporal resolution, grids

The computational grid resulted in about 250 million elements and approximately 1,000 million degrees of freedom (DoF). Details of the computational grid are provided in Fig. 8 and Fig. 9.

DNS 1 3 computational grid1.png
Figure 8: Details of the computational mesh. XY (top) and XZ (bottom) plane views in the entrance (left) and mid (right) sections of the diffuser. Only every 4th grid line is shown.


DNS 1 3 computational grid2.png
Figure 9: Details of the computational mesh in various cross-sections corresponding to: inlet duct (top left), diffuser expansion (top right), diffuser mid section (bottom left) and diffuser exit (bottom right). Only every 4th grid line is shown.


With a stretched grid, the maximum grid resolution in the duct centre is reported at , , . Correspondingly, the wall resolution (in terms of the first grid point) is reported as , in the spanwise and normal directions, respectively. This resolution was deemed sufficient to compute the flow in the diffuser and is based on the previous work of Ohlsson et al. (2010). For the temporal resolution, a third order explicit Runge Kutta was used with a dynamic time stepping that ensured a CFL below 0.9.

Computation of statistical quantities

The statistical quantities are computed a posteriori from the velocity and pressure fields gathered during an additional 21 flowthrough-times. In a first step, the time-averaged pressure and velocity fields are gathered among 1881 snapshots. These snapshots are considered to be loosely correlated (i.e., as independent experiments) hence a simple average is performed. Afterwards, the time-averaged pressure and velocity gradients are computed from the time-averaged pressure and velocity fields.

Then, the fluctuating quantities are obtained as:

  • Fluctuating pressure
  • Fluctuating velocity

along with their gradients as:

  • Gradient of fluctuating pressure
  • Gradient of fluctuating velocity

Using these quantities, the Reynolds stress tensor is easily recovered, along with the pressure autocorrelation, pressure-velocity correlation and triple velocity correlation:

  • Reynolds stresses
  • Pressure autocorrelation
  • Pressure velocity correlation
  • Triple velocity correlation

The Reynolds stress budget equation terms are recovered using the aforementioned quantities and their gradients using matrix and vectorial math:

  • Convection
  • Production
  • Turbulent diffusion
  • Pressure diffusion
  • Viscous diffusion
  • Pressure strain
  • Dissipation

Finally, Taylor lengthscale and Kolmogorov length and time scales are recovered as:

  • Taylor microscale
  • Kolmogorov length scale
  • Kolmogorov time scale

Where stands for the dissipation in the budget equation for the turbulent kinetic energy . The absolute value is taken to avoid negative roots and is a small value to avoid numerically dividing by zero. For a more in-detailed explanation on how these quantities have been obtained, the reader is referred to this document (PDF).

References

  1. Charnyi, S., Heister, T., Olshanskii, M. A. and Rebholz, L. G. (2017): On conservation laws of NavierStokes Galerkin discretizations. In Journal of Computational Physics, Vol. 337, pp. 289-308.
  2. Jofre, L., Lehmkuhl, O., Ventosa, J., Trias, F. and Oliva, A. (2014): Conservation properties of unstructured finite-volume mesh schemes for the Navier-Stokes equations. In Numerical Heat Transfer, Part B: Fundamentals, Vol. 54, no. 1, pp. 289-308.
  3. Codina, R. (2001): Pressure stability in fractional step finite element methods for incompressible flows. In Journal of Computational Physics, Vol. 170, no. 1, pp. 112-140.
  4. Trias, F. X. and Lehmkuhl, O. (2011): A self-adaptive strategy for the time integration of NavierStokes equations. In Numerical Heat Transfer. Part B, Vol. 60, no. 2, pp. 116-134.
  5. Lehmkuhl, O., Houzeaux, G., Owen, H., Chrysokentis, G. and Rodriguez, I. (2019): A low-dissipation finite element scheme for scale resolving simulations of turbulent flows. In Journal of Computational Physics, Vol. 390, pp. 51-65.
  6. Vázquez, M., Houzeaux, G., Koric, S., Artigues, A., Aguado-Sierra, J., Arís, R., Mira, D., Calmet, H., Cucchietti, F., Owen, H., Taha, A., Burness, E. D., Cela, J. M., & Valero, M. (2016): Alya: Multiphysics engineering simulation toward exascale. In Journal of Computational Science, Vol. 14, pp. 15-27.
  7. Olshanskii, M. A., & Rebholz, L. G. (2020): Longer time accuracy for incompressible Navier–Stokes simulations with the EMAC formulation. In Computer Methods in Applied Mechanics and Engineering, Vol. 372, pp.  113369.
  8. Capuano, F., Coppola, G., Rández, L., & Luca, L. De (2017): Explicit Runge – Kutta schemes for incompressible flow with improved energy-conservation properties. In Journal of Computational Physics, Vol. 328, pp.  86–94.
  9. 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.
  10. 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.




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