Full text
On a Proper Tensorial Subgrid Heat Flux Model F.Xavier Trias, Firas Dabbagh, Daniel Santos, Andrey Gorobets, Assensi Oliva INFORMATION Keywords: LES SGS models buoyancy-driven flows turbulence DOI: 10.23967/wccm-eccomas.2020.253 Published: 11/03/2021
14th World Congress on Computational Mechanics (WCCM) ECCOMAS Congress 2020 Virtual Congress: 11-15 January 2021 F. Chinesta, R. Abgrall, O. Allix and M. Kaliske (Eds) ON A PROPER TENSORIAL SUBGRID HEAT FLUX MODEL F.X. Trias1, F. Dabbagh2, D. Santos1, A. Gorobets3, A. Oliva1 1Heat and Mass Transfer Technological Center, Technical University of Catalonia, C/Colom 11, 08222 Terrassa (Barcelona) {francesc.xavier.trias,daniel.santos.serrano,asensio.oliva}@upc.edu 2Christian Doppler Laboratory for Multi-Scale Modeling of Multiphase Processes, Johannes Kepler University, Altenbergerstraße 69, 4040 Linz, Austria. firas.dabbag[email protected] 3Keldysh Institute of Applied Mathematics, 4A, Miusskaya Sq., Moscow 125047, Russia. andrey.gorobe[email protected] Key words: LES, SGS models, buoyancy-driven flows, turbulence Abstract. In this work, we aim to shed light to the following research question: can we find a nonlinear tensorial subgrid-scale (SGS) heat flux model with good physical and numerical properties, such that we can obtain satisfactory predictions for buoyancy-driven turbulent flows? This is motivated by our findings showing that the classical (linear) eddy-diffusivity assumption, qeddy ∝ ∇T, fails to provide a reasonable approximation for the actual SGS heat flux, q=uT −uT: namely, a priori analysis for airfilled Rayleigh-B´enard convection (RBC) clearly shows a strong misalignment. In the quest for more accurate models, we firstly study and confirm the suitability of the eddy-viscosity assumption for RBC carrying out a posteriori tests for different models at very low Prandtl numbers (liquid sodium, Pr = 0.005) where no heat flux SGS activity is expected. Then, different (nonlinear) tensor-diffusivity SGS heat flux models are studied a priori using DNS data of an air-filled (Pr =0.7) RBC at Rayleigh numbers up to 1011. Apart from having good alignment trends with the actual SGS heat flux, we also restrict ourselves to models that are numerically stable per se and have the proper cubic near-wall behavior. This analysis leads to a new family of SGS heat flux models based on the symmetric positive semi-definite tensor GGTwhere G≡∇u,i.e. q ∝GGT∇T, and the invariants of the GGTtensor. Finally, relevant numerical aspects regarding the implementation of this type of models are discussed in detail. A list of physical and numerical properties is identified and subsequently imposed, leading to a symmetrypreserving discretization that is based on discrete operators already available in any CFD code. 1 INTRODUCTION In this work, we plan to shed light on the following research question: can we find a nonlinear subgridscale (SGS) heat flux model with good physical and numerical properties, such that we can obtain satisfactory predictions for buoyancy driven turbulent flows? This is motivated by our findings showing that the classical (linear) eddy-diffusivity assumption fails to provide a reasonable approximation for the SGS heat flux. This was shown in a previous work [1] where SGS features were studied a priori for a Rayleigh-B´enard convection (RBC). We also concluded that only nonlinear (or tensorial) models can 1
F.X.Trias, F.Dabbagh, D.Santos, A.Gorobets and A.Oliva give good approximations of the actual SGS heat flux. Briefly, large-eddy simulation (LES) equations arise from applying a spatial commutative filter, with filter length δ, to the incompressible Navier-Stokes and thermal energy equations, ∂tu+(u·∇)u= (Pr/Ra)1/2∇2u−∇p+f−∇·τ,(1) ∂tT+(u·∇)T= (Ra/Pr)−1/2∇2T−∇·q,(2) where u,Tand pare respectively the filtered velocity, temperature and pressure, and the incompressibility constraint reads ∇·u=0. The SGS stress tensor, τ=u⊗u−u⊗u, and the SGS heat flux vector, q=uT −uT, represent the effect of the unresolved scales, and they need to be modeled in order to close the system. The most popular approach is the eddy-viscosity assumption, where the SGS stress tensor is assumed to be aligned with the local rate-of-strain tensor, S=1/2(∇u+∇ut),i.e. τ≈ −2νeS(u). By analogy, the SGS heat flux, q, is usually approximated using the gradient-diffusion hypothesis (linear modeling), given by q≈ −κt∇T(≡qeddy).(3) Then, the Reynolds analogy assumption is applied to evaluate the eddy-diffusivity, κt, via a constant turbulent Prandtl number, Prt,i.e. κt=νe/Prt. These assumptions have been shown to be erroneous to provide accurate predictions of the SGS heat flux [1,2,3]. Namely, a priori analysis showed that the eddy-diffusivity assumption, qeddy (Eq. 3), is completely misaligned with the actual subgrid heat flux, q (see Figure 1, left). In contrast, the tensor diffusivity (nonlinear) Leonard model [4], which is obtained by taking the leading term of the Taylor series expansion of q, q≈δ2 12G∇T(≡qnl),(4) provides a much more accurate a priori representation of q(see Figure 1, left). Here, G≡∇urepresents the gradient of the resolved velocity field. It can be argued that the rotational geometries are prevalent in the bulk region over the strain slots, i.e. |Ω|>|S|(see Refs [1,5]). Then, the dominant anti-symmetric tensor, Ω=1/2(G−GT), rotates the thermal gradient vector, ∇T, to be almost perpendicular to qnl (see Eq.4). Hence, the eddy-diffusivity paradigm is only valid in the not-so-frequent strain-dominated areas. 2 NONLINEAR SGS HEAT FLUX MODELS FOR LARGE-EDDY SIMULATION Since the eddy-diffusivity, qeddy, cannot provide an accurate representation of the SGS heat flux, we turn our attention to nonlinear models. As mentioned above, the Leonard model [4] given in Eq.(4) can provide a very accurate a priori representation of the SGS heat flux (see Figure 1, left). However, the local dissipation (in the L2-norm sense) is proportional to ∇T·G∇T=∇T·S∇T+∇T·Ω∇T= ∇T·S∇T. Since the velocity field is divergence-free, λS 1+λS 2+λS 3=∇·u=0, the eigenvalues of Scan be ordered λS 1⩾λS 2⩾λS 3with λS 1⩾0 (extensive eigendirection) and λS 3⩽0 (compressive eigendirection), and λS 2is either positive or negative. Hence, the local dissipation introduced by the model can take negative values; therefore, the Leonard model cannot be used as a standalone SGS heat flux model, since it can produce a finite-time blow-up. Attempts to overcome these instability issues are the socalled mixed model [2], where the Leonard model is combined with an eddy-diffusivity model, or the regularization technique proposed in [8] that projects the Leonard model onto a tensor with no energy 2
F.X.Trias, F.Dabbagh, D.Santos, A.Gorobets and A.Oliva Figure 1: Joint probability distribution functions (PDF) of the angles (α,β)plotted on a half unit sphere to show the orientation in the space of the mixed model. From left to right, alignment trends of the actual SGS heat flux, q, the Daly and Harlow [6] model (Eq. 6) and the Peng and Davidson [7] model (Eq. 5). For simplicity, the JPDF and the PDF magnitudes are normalized by its maximal. For details the reader is referred to [1]. transfer in case of a negative dissipation event. Similar stability problems are encountered with the nonlinear tensorial model qPD proposed by Peng and Davidson [7], q≈Ctδ2S∇T(≡qPD),(5) q≈ −TSGSτ∇T=−1 |S| δ2 12GGT∇T(≡qDH),(6) whereas the nonlinear model qDH proposed by Daly and Harlow [6] relies on the positive semi-definite tensor GGT. Here, TSGS =1/|S|is the SGS timescale. Notice that the model proposed by Peng and Davidson, qPD, can be viewed in the same framework if the SGS stress tensor is estimated by an eddyviscosity model, i.e. τ≈ −2νeSand TSGS ∝ δ2/νe. These two models have shown a much better a priori alignment with the actual SGS heat flux, especially the DH model (see Figure 1, middle). Moreover, the DH is numerically stable since the tensor GGTis positive semi-definite. Hence, it seems appropriate to build models based on this tensor. However, the DH model does not have the proper near-wall behavior, i.e. q ∝hv′T′i=O(y3)where yis the distance to the wall. An analysis of the DH model leads to GGT∇T=O(y1)[9]. Therefore, the near-wall cubic behavior is recovered if TSGS ∝O(y2). This is not the case of the timescale used in the Daly and Harlow [6] model, i.e. TSGS =1/|S|=O(y0). At this point, it is interesting to observe that new timescales, TSGS, can be derived by imposing restrictions on the differential operators they are based on. For instance, let us consider models that are based on the principal invariants of the tensor GGT q≈ −CMPp GGTQq GGTRr GGTδ2 12GGT∇T(≡qS2),(7) where PGGT,QGGTand RGGTare the first, second and third invariant of the GGTtensor. This tensor is proportional to the gradient model [11] given by the leading term of the Taylor series expansion of the subgrid stress tensor τ(u) = (δ2/12)GGT+O(δ4). Then, the exponents p,qand rin Eq.(7), must satisfy the following two equations −6r−4q−2p=1; 6r+2q=s,(8) 3
F.X.Trias, F.Dabbagh, D.Santos, A.Gorobets and A.Oliva -4 -3 -2 -1 0 1 2 3 -3.5 -3 -2.5 -2 -1.5 -1 -0.5 0 0.5 1 NaN for 2D! Vanishes for 2D q(p) r(p) q,r p slope=0 DH-like model slope=2 S2PQ model S2PR model S2QR model Figure 2: Solutions of the linear system of Eq.(8) for s=0 (red lines) and s=2 (blue lines). Each (r,p,q) represents a tensor-diffusivity model with the form of Eq.(7). 0 0.5 1 1.5 2 0o30o60o90o120o150o180o UNSTABLE MODELS!!!STABLE MODELS qeddy qnl |qS2PR|/|qnl| Angle respect to the eddy-diffusivity model, qeddy 0 0.2 0.4 0.6 0.8 1 -4 -3 -2 -1 0 1 2 3 -3.5 -3 -2.5 -2 -1.5 -1 -0.5 0 0.5 1 NaN for 2D! Vanishes for 2D q(p) r(p) q,r p slope=2 S2PQ model S2PR model S2QR model Figure 3: Joint PDF for the S2PR model (Eq. 10) in the space (|qS2PR|/|qnl|,β)where the angle βis defined in Figure 1. The analyzed data corresponds to the bulk region of the air-filled Rayleigh-B´enard configuration at Ra =1011 studied in Ref. [10]. to guarantee that the differential operator has units of time, i.e. [Pp GGTQq GGTRr GGT] = [T1]and a slope s for the asymptotic near-wall behavior, i.e. O(ys). Solutions for q(p,s) = −(1+s)/2−pand r(p,s) = (2s+1)/6+p/3 are displayed in Figure 2. If we restrict ourselves to solutions with the proper near-wall scaling, i.e. s =2 (blue lines in Figure 2), a family of p-dependent models follows. Considering only 4
F.X.Trias, F.Dabbagh, D.Santos, A.Gorobets and A.Oliva Figure 4: An instantaneous picture of the temperature field (left) and velocity magnitude (right), |u|, of the DNS simulation of RBC at Ra =7.14 ×107and Pr =0.005 (liquid sodium) carried out using a mesh of 966 ×966 × 2048 ≈1911Mgrid points. See the movie in the database (http://www.cttc.upc.edu/downloads/RBC lowPr). solutions involving only two principal invariants of the tensor GGT, three models follow qS2PQ =−Cs2pqP−5/2 GGTQGGT δ2 12GGT∇T,(9) qS2PR =−Cs2prP−3/2 GGTR1/3 GGT δ2 12GGT∇T,(10) qS2QR =−Cs2qrQ3/2 GGTR5/6 GGT δ2 12GGT∇T,(11) for p=−5/2, p=−1.5 and p=0, respectively. These three solutions are represented in Figure 2. Apart from being unconditionally stable, these models display very good a priori alignment trends in the bulk (see Figure 3) similar to the PD model (see Figure 1, middle) but also in the near-wall region [9]. Hence, we consider that they are very good candidates for a posteriori LES of buoyancy-driven flows. 3 ASSESSMENT OF EDDY-VISCOSITY MODELS AT VERY LOW PRANDTL NUMBERS At this stage, a posteriori results are necessary to assess the performance of the newly proposed SGS heat flux models. However, apart from the underlying numerics, such results will be strongly influenced by the SGS stress tensor model. Hence, we first aim to answer the following research question: are eddy-viscosity models for momentum able to provide satisfactory results for turbulent Rayleigh-B´ enard convection? In order to shed light to this, a set of simulations at Pr =0.005 (liquid sodium) have been carried out at Ra =7.14 ×106and Ra =7.14 ×107. Figure 4displays a snapshot of the temperature and velocity magnitude for the DNS simulation at the highest Ra. This clearly illustrates the separation between the smallest scales of temperature and velocity, i.e. the ratio between the Kolmogorov length scale and the Obukhov-Corrsin length scale is given by Pr3/4[12]. Therefore, for a Pr =0.005 (liquid sodium) we have a separation of more than one decade. Hence, it is possible to combine an LES simulation for the velocity field with the numerical resolution of all the relevant scales of the thermal field. Regarding this, results shown in Figure 5seem to confirm the adequacy of eddy-viscosity models for this kind of flows. Namely, Figure 5(left) shows the Nusselt number for a set of meshes and eddy-viscosity 5
F.X.Trias, F.Dabbagh, D.Santos, A.Gorobets and A.Oliva 5.7 5.8 5.9 6 6.1 6.2 6.3 104105106107108109 100101102103104105 Nusselt Number of grid points Computational cost (CPU core-hour) LES-S3QR LES-WALE LES-Vreman LES-QR No model DNS 11 11.5 12 12.5 1051061071081091010 102103104105106107108 Nusselt Number of grid points Computational cost (CPU core-hour) LES-S3QR LES-WALE LES-Vreman LES-QR No model DNS 0 0.05 0.1 0.15 0.2 0.25 0.3 0 0.1 0.2 0.3 0.4 0.5 <k> z DNS No model LES-S3QR LES-WALE 0 0.05 0.1 0.15 0.2 0.25 0.3 0 0.1 0.2 0.3 0.4 0.5 <k> z DNS No model LES-S3QR LES-WALE Figure 5: Comparison of LES (and no-model) versus DNS results of liquid-sodium (Pr =0.005) RBC at Ra = 7.14×106and 7.14×107. Left: average Nusselt for different meshes at Ra =7.14×106(top) and Ra =7.14×107 (bottom). Corresponding computational costs at the MareNostrum 4 supercomputer are shown in the top of the plots. Right: LES results of turbulent kinetic energy at cavity mid-width for a 64 ×36 ×36 (top) and 96 ×52 ×52 (bottom) meshes compared with the DNS results obtained with a mesh of 488 ×488 ×1280 ≈305M. models: the WALE model [13], the Vreman model [14], the QR model [15] and the S3QR model [16]. Results obtained without SGS model are also shown to illustrate the effect of the eddy-viscosity models to improve the solution. At first sight it can be observed that, in general, all LES solutions are in rather good agreement with the DNS data even for the coarsest grids (48 ×26 ×26 for Ra =7.14 ×106and 96 ×52 ×52 for Ra =7.14 ×107whereas only the finest ones (128 ×72 ×72 and 192 ×104 ×104 at Ra =7.14×106and 512×288×288 at Ra =7.14×107) can provide accurate results when the model is switched off. A closer inspection shows that slightly better results are obtained for those eddy-viscosity models (WALE and S3QR) that have the proper near-wall behavior, i.e. νe=O(y3). To emphasize the benefits of LES modeling, the approximate computational cost of the simulations is displayed in the top horizontal axis of Figure 4(left): it was measured on the MareNostrum 4 supercomputer and corresponds to a total integration period of 500 time-units. Finally, to see the effect of eddy-viscosity models in more detail, results for the average turbulent kinetic energy are shown in Figure 4(right) for two meshes and two eddy-viscosity models (WALE and S3QR). All these results seem to confirm the suitability of the eddy-viscosity assumption for buoyancy-driven flows. For more details the reader is referred to [9]. Our future research plans include the extension of this analysis to higher Ra and testing a posteriori the new non-linear SGS heat flux models for air-filled RBC at Ra up to 1011 [10]. Prior to that, we aim to properly discretize tensorial eddy-diffusivity models. A first approximation to this problem is presented below. 6
F.X.Trias, F.Dabbagh, D.Santos, A.Gorobets and A.Oliva 4 ON THE PROPER DISCRETIZATION OF A TENSORIAL EDDY-DIFFUSIVITY MODEL This section is devoted to the discretization of a tensorial eddy-diffusivity model, i.e. ∇·q≈∇·A∇T.(12) Notice that all the tensorial models presented in this work, including the already existing ones, fall in this template. We aim to preserve fundamental physical and mathematical properties when discretizing Eq.(12) where Ais a 3 ×3 real-valued tensor (2 ×2 for 2D flows). Namely, the first property denoted as Property P1 is the conservation of zero-th order moment (integral) of T, ZΩ ∇·(A∇T)dV =Z∂Ω(A∇T)·ndS =0 (no contribution from boundary ∂Ω).(13) The second property [Property P2] is the symmetry preservation: Eq.(12) represents a diffusive operator (no interscale interaction). Hence, ∇·A∇is a symmetric operator if tensor Ais symmetric (A=AT), <ψ,∇·(A∇θ)>=−<∇ψ,A∇θ >A=AT =−<A∇ψ,∇θ >=<∇·(A∇ψ),θ>, (14) where <a,b>=RΩabdV is the usual inner-product of functions. Notice that the gradient is the adjoint of minus the divergence operator (and vice versa) provided that contributions from boundary, ∂Ω, cancel, i.e. RΩ∇·(ab)dV =<a,∇b>+<∇·a,b>=R∂Ω ab ·ndS =0. The third property [Property P3] is the definiteness preservation; that is, given a positive (or negative) definite tensor, A, then the operator ∇·A∇ is negative (or positive) semi-definite, <∇·(A∇θ),θ>=−<A∇θ,∇θ >A=LLT =−<L∇θ,L∇θ >=−||L∇θ||2≤0,(15) where the Cholesky decomposition of tensor A,A=LLT, assumes that Ais a symmetric positive definite tensor. For negative definite tensors, A=−LLT, leading to the conclusion that ∇·A∇is then positive semi-definite. Two more properties of numerical nature can be added to the list. Namely, [Property P4] states that it is preferable to build up discretizations that are entirely based on already existing discrete operators in a standard CFD code. This obviously facilitates the implementation and the verification of the method. Finally, it is also desirable to naturally recover the numerical result obtained for an isotropic diffusive term, i.e. A=κI. This last property will be referred as [Property P5]. First property P1 relies on the Gauss theorem. Thus, Eq.(12) must be the discretized in divergence form, Mqs∈Rn,(16) where M∈Rn×mrepresents the divergence operator in integral form, nand mare respectively the number of control volumes and faces on the computational domain, and qs∈Rmis a discrete vector that contains the (turbulent) heat fluxes defined at the faces of the volumes. The subindices cand srefer to whether the variables are cell-centered or staggered at the faces. Otherwise stated, we follow the same notation used in Ref.[17]. Then, everything relies on the computation of qs; therefore, hereafter we assume that qs=qs(Ac,Tc)∈Rm,(17) where Acis the cell-centered discrete counterpart of tensor Aand Tcis the cell-centered discrete temperature field. Furthermore, we can assume that the following discrete operators are already available: 7
F.X.Trias, F.Dabbagh, D.Santos, A.Gorobets and A.Oliva the discrete gradient operator, G∈Rm×n, diagonal matrices containing the staggered, Ωs∈Rm×m, and cell-centered, Ωc∈Rn×n, control volumes and a cell-to-face interpolator, Πc→s∈Rm×n. To simplify the analysis we consider a 2D Cartesian mesh (extension to 3D is straightforward). In this case, G=Gx Gyand Γc→s=Πc→x Πc→y,(18) where Gx∈Rmx×n(Gy∈Rmy×n) represents the part of the discrete gradient operator, G, that computes the gradient at the mx(my) faces staggered in the x(y) direction. The cell-to-face interpolator, Πc→s, is split in the same way: Πc→x∈Rmx×nand Πc→y∈Rmy×n. Then, the discrete fluxes, qs, can be approximated as follows qs≈Πc→xAxx cΠx→cΠc→xAxy cΠy→c Πc→yAxy cΠx→cΠc→yAyy cΠy→c Gx GyTc,(19) where Axx c∈Rn×n,Axy c∈Rn×nand Ayy c∈Rn×nare diagonal matrices containing the cell-centered components of the symmetric tensor A. Previous expression can be written more compactly as qs≈˜ Πc→s˜ Ac˜ Πs→cGTc,(20) where ˜ Πc→s,˜ Acand ˜ Πs→care block matrices given by ˜ Πc→s=Πc→x0 0Πc→y˜ Ac=Axx cAxy c Axy cAyy c˜ Πs→c=Πx→c0 0Πy→c.(21) At this point, we can investigate the restrictions imposed by property P2 (symmetry preservation). Plugging previous expression into Eq.(16) leads to Mqs=M˜ Πc→s˜ Ac˜ Πs→cGTc=˜ DcTc,(22) where ˜ Dc=M˜ Πc→s˜ Ac˜ Πs→cG. Hence, this matrix must be symmetric, i.e. ˜ Dc=˜ DT c.(23) The above-mentioned duality between the gradient and divergence operator is translated into discrete level as follows (see Refs. [17,18] for details) G=−Ω−1 sMT.(24) Then, plugging this into the definition of ˜ Dcleads to ˜ Dc=−M˜ Πc→s˜ Ac˜ Πs→cΩ−1 sMT.(25) Recalling that matrix ˜ Acis symmetric, then the symmetry of ˜ Dcis obtained by imposing the following relationship between the face-to-cell and the cell-to-face interpolators ˜ Πs→c≡Ω−1˜ ΠT c→sΩs,(26) where Ω=I2⊗Ωc(for 2D) and Ω=I3⊗Ωc(for 3D) where I2∈R2×2and I3∈R3×3are identity matrices. This leads to ˜ Dc=−M˜ Πc→s˜ AcΩ−1˜ ΠT c→sMT.(27) 8