DNS 1-3 Computational Details: Difference between revisions
Line 73: | Line 73: | ||
#<div id="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.</div> | #<div id="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.</div> | ||
#<div id="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.</div> | #<div id="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.</div> | ||
#<div id="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.</div> | |||
#<div id="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.</div> | |||
<br/> | <br/> | ||
---- | ---- |
Revision as of 16:49, 18 November 2022
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.
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.
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. |
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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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)
© copyright ERCOFTAC 2024