Viscous and hyperviscous filtering for direct and large-eddy simulation

https://doi.org/10.1016/j.jcp.2021.110115Get rights and content

Highlights

  • A new solution filtering technique for direct and large-eddy simulation is proposed.

  • The novelty is that both the molecular and artificial dissipations are represented.

  • Only coefficients have to be coded in a conventional finite-difference routine.

  • This is an efficient alternative to implicit time integration of the viscous term.

  • Connections are established with spectral vanishing viscosity for implicit LES.

Abstract

This work is dedicated to the solution filtering technique for performing direct and large-eddy simulation. It is shown that this approach is equivalent to the use of spectral viscosity as a possible ersatz of subgrid-scale modelling. In the framework of finite-difference schemes, the filter operator can be designed to ensure time consistency while easily controlling the level and scale selectivity of the dissipation thus introduced. Then, a new family of filter schemes is developed in order to represent both the molecular and artificial dissipations. The resulting viscous filter operator is straightforward to implement through a simple modification of its coefficients that depend on the molecular/artificial viscosity and the time step. A definitive advantage in terms of computational efficiency is obtained for computational configurations where the time step is restricted by the Fourier condition, as a simple alternative to implicit time integration of the viscous term. Numerical tests clearly show that this viscous filtering method is flexible, accurate and numerically stable at large Fourier number.

Introduction

In the context of large-eddy simulation (LES), spatial filtering can refer to different concepts and techniques, as a potential source of misunderstanding between users and developers in this field of computational fluid dynamics. The essential meaning of spatial filtering is related to the LES formalism itself as a tool of decomposition between the large-scale component of the solution and its residual small-scale component designated as the subgrid-scale (SGS) part. This first concept has been widely developed with the purpose to derive the governing equations of the large-scale motion while introducing the unknown SGS tensor in the framework of a closure problem. For the general background based on this way to define the LES problem, the reader is referred to the textbooks [1], [2], [3] which also include the presentation of the most popular SGS models. In this study, this primitive meaning of spatial filtering is not addressed. The related SGS modelling is also not considered, avoiding the difficult questions about the way to account for this “implicit filtering” in the SGS model itself. For the most popular SGS model, namely the Smagorinsky model, the spatial filtering, to which the solution is actually subjected, is a model feature. This feature can only be known a posteriori, as an output of the LES, with a major role of the numerical error for the filtering actually obtained [4].

In this study, we are interested in the technique that consists in the application of spatial filtering every time step on the solution during the time advancement of the governing equations. This technique is sometimes referred as “solution filtering” [5] or as “relaxation filtering” [6], [7]. It can also be designated as “explicit filtering”, but this term is potentially confusing with the SGS modelling approach where the non-linear convective terms, based on the implicitly filtered (i.e. large-scale) solution, are themselves filtered with a given operator to define an alternative SGS tensor in a modified closure problem [8], [9], [10]. Here, for simplicity, the term “solution filtering” is preferred to clearly express that the filter operation is applied directly on the solution without any reference to other formalisms or non-linearity treatments. We also only focus on the systematic application of the filter every time step, even if a periodic application every n time steps can also be an option to control the resulting artificial dissipation while saving computational time [11], [12], [13], [14].

The solution filtering approach is shared by a wide community in the field of LES as well as in direct numerical simulation (DNS), see for instance [15], [16], [11], [17], [18], [19]. When used in DNS, it can be viewed as a way to control the development of numerical oscillations, due for instance to aliasing errors, when the viscous term is not strong enough to ensure this control [20]. Typically, it enables simulators to perform DNS at marginal resolution while improving the physical realism of their solutions which can be virtually free from small-scale spurious oscillations. When this idea is pushed further using coarse computational mesh at high Reynolds number, the filtering solution strategy is referred as an ersatz of SGS modelling in a fuzzy formalism mainly based on considerations about the expected functional role of the SGS uncaptured by the computational mesh. Viewed in this perspective, this approach may be classified in the field of implicit LES, the solution filtering corresponding to an artificial regularisation process applied throughout the calculation. Since its very beginning through the MILES approach [21], implicit LES has become very popular with the development of a wide range of technics to ensure regularisation (see for instance the collective book [22]). In this work, the goal is not to propose a new approach for implicit LES but to develop a new technique that can be put in this perspective while being firstly useful for DNS.

To introduce artificial dissipation for regularisation purposes, the most popular method is to differentiate the convective term using upwind schemes. An alternative is to boost artificially the viscous term through an overestimation of the second derivatives at small scales, as proposed by [23] where a comparison with the traditional upwind-based strategy is presented for a one-dimensional (1D) linear convection/diffusion equation. In [23], and in a more detailed way in [4], it has been shown that this type of numerical dissipation is the finite-difference counterpart of spectral vanishing viscosity (SVV) [24], [25], [26], [27]. In this paper, also based on a finite-difference framework, the links between SVV, boosted second derivative and filtering are clarified to open the way for a new technique of solution filtering.

The manuscript is organized as follows. In section 2, a generic finite-difference operator is defined with a classic definition of its coefficient relations up to a given order of accuracy. Then, the role of solution filtering is described in section 3 by considering a 1D model equation where the filtering operation can be clearly expressed inside the time advancement. In this simplified framework, an equivalent SVV is introduced in section 4 as a function of the filter transfer function. Based on this equivalence, the strength and the scale-selectivity of the filter can be controlled through the scaling of the scheme coefficients while ensuring the time consistency of the resulting regularisation operator. This principle is extended in section 5 in order to incorporate the molecular dissipation into the filter scheme. In section 6, the numerical accuracy and stability of this new type of filtering, called “viscous filtering”, is analysed through spatial and temporal convergence tests. Then, DNS/LES results are presented in section 7 to assess the viscous filtering strategy in demanding computational configurations involving fully developed turbulence. The major advantage of viscous filtering, in terms of numerical stability, is clearly exhibited, as an efficient alternative strategy to time implicit integration of the viscous term. The main conclusions are summarized in section 8 while drawing perspectives for further developments. Finally, an appendix is provided to clearly establish the close link between viscous filter and second derivative finite-difference schemes.

Section snippets

Filtering scheme and transfer function

Here, the filtering approach is considered in the framework of finite-difference schemes. For simplicity, the discretization is based on a regular mesh and the formalism is presented in 1D through the basic filtering operator expressed asαffˆi1+fˆi+αffˆi+1=affi+bffi1+fi+12+cffi2+fi+22+dffi3+fi+32+effi4+fi+42 with its associated transfer functionT(kΔx)=af+bfcos(kΔx)+cfcos(2kΔx)+dfcos(3kΔx)+efcos(4kΔx)1+2αfcos(kΔx) where fi=f(xi) are the values of a generic function f(x) on the nodes xi=

Functional role of solution filtering

Despite its name, as already mentioned in the introduction section 1, this type of filtering operator has no direct connection with the filtering framework of the LES formalism. To make clear this essential point, let us considerdudt=λu as a simple model equation of the DNS/LES governing equations. The complex variable λ can be defined to consider a generic convection/diffusion equation with λ=ickνk2 where ν is the molecular viscosity, c is the convective velocity and u(k,t) is the solution

Equivalence with spectral vanishing viscosity

The comparison between the time advancement (13) with its exact counterpart (14) leads to the conclusion that the deviation of T from 1 corresponds to the numerical error introduced, on purpose, by the filtering. It is easy to show that (13) also corresponds to the exact time integration of (11) with λ=ick(ν+νs)k2 where νs can be interpreted as the SVV associated with the filtering. By the exact identification T=exp(νsk2Δt), the expression of νs can be obtained withνs(kΔx)=lnT(kΔx)k2Δt

Viscous filtering

In this work, we propose a new approach where the filter is designed to provide both the molecular and artificial dissipations. Thanks to this feature, the viscous term can be removed from (11) by using λ=ick. In this way, both the artificial and molecular dissipation have to be included in T. To enable this feature, Taylor's expansions must be performed by reference to the viscous kernel to obtain order conditions between the coefficients (αf,af,bf,cf,df,ef). More precisely, the purpose is to

Accuracy analysis

To validate the present viscous filtering procedure while exhibiting its main accuracy features, the standard convection/diffusion equationut+cux=ν2ux2 is solved where u(x,t) is the solution expressed in the physical space. With the initial conditionu(x,0)=exp[(xLx/2σx)2] this equation has an exact solution withu(x,t)=σx2σx2+4νtexp[(xctLx/2)2σx2+4νt] where Lx is the computational domain considered. The problem is solved using periodicity in x while considering a narrow Gaussian

DNS/LES results

In this section, the present viscous filtering technique is used to perform DNS/LES of two academic turbulent flows. The corresponding scheme has been implemented in the finite-difference code Incompact3d that numerically solves the incompressible Navier-Stokes equations. This code is massively parallel and 6th-order accurate in space when free-slip or periodic boundary conditions are used, as in the present study. The computational mesh is Cartesian with nx×ny×nz nodes regularly distributed in

Conclusion and discussion

In this study, a new approach of spatial filtering is proposed for solving the governing equations of fluid mechanics. The general framework of this approach is the concept of solution filtering which consist in the application of a spatial filter operator every step of the time advancement. The method is developed in the context of finite-difference schemes as a simple spatially discrete integrating factor commonly used in spectral Fourier methods for computational fluid dynamics [33], [34].

CRediT authorship contribution statement

Eric Lamballais: Conceptualization, Formal analysis, Methodology, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing. Rodrigo Vicente Cruz: Formal analysis, Methodology, Software, Validation, Visualization, Writing – review & editing. Rodolphe Perrin: Formal analysis, Validation, Writing – review & editing.

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgement

This work was granted access to the HPC resources of TGCC/CINES under the allocation A0052A07624 made by GENCI. The authors are indebted to Damien Biau for his insightful remarks on the topics considered here.

References (51)

  • S.K. Lele

    Compact finite difference schemes with spectral-like resolution

    J. Comput. Phys.

    (1992)
  • J.W. Kim et al.

    Efficient parallel computing with a compact finite difference scheme

    Comput. Fluids

    (2012)
  • C. Bogey et al.

    A shock-capturing methodology based on adaptative spatial filtering for high-order non-linear computations

    J. Comput. Phys.

    (2009)
  • S. Laizet et al.

    High-order compact schemes for incompressible flows: a simple and efficient method with quasi-spectral accuracy

    J. Comput. Phys.

    (2009)
  • S. Laizet et al.

    A numerical strategy to combine high-order schemes, complex geometry and parallel computing for high resolution DNS of fractal generated turbulence

    Comput. Fluids

    (2010)
  • P. Bartholomew et al.

    Xcompact3d: an open-source framework for solving turbulence problems on a Cartesian mesh

    SoftwareX

    (2020)
  • S. Straub et al.

    The influence of thermal boundary conditions on turbulent forced convection pipe flow at two Prandtl numbers

    Int. J. Heat Mass Transf.

    (2019)
  • M. de la Llave Plata et al.

    On the performance of a high-order multiscale DG approach to LES at increasing Reynolds number

    Comput. Fluids

    (2019)
  • F. Navah et al.

    A high-order multiscale approach to turbulence for compact nodal schemes

    Comput. Methods Appl. Mech. Eng.

    (2020)
  • B. Geurts

    Elements of Direct and Large-Eddy Simulation

    (2004)
  • P. Sagaut

    Large Eddy Simulation of Incompressible Flow: An Introduction

    (2005)
  • M. Lesieur et al.

    Large-Eddy Simulation of Turbulence

    (2005)
  • J. Berland et al.

    Filter shape dependence and effective scale separation in large-eddy simulations based on relaxation filtering

    Comput. Fluids

    (2014)
  • Klein

    An attempt to assess the quality of large eddy simulations in the context of implicit filtering

    Flow Turbul. Combust.

    (2005)
  • C. Bogey et al.

    Large eddy simulations of transitional round jets: influence of the Reynolds number on flow development and energy dissipation

    Phys. Fluids

    (2006)
  • Cited by (22)

    • On the role of spectral properties of viscous flux discretization for flow simulations on marginally resolved grids

      2023, Computers and Fluids
      Citation Excerpt :

      While the approaches mentioned above are frequently utilized, one method that uses central schemes that is stable and non-dissipative is the kinetic energy and entropy preserving (KEEP) scheme proposed by Kuya and Kawai [3]. Lamballais et al. [12–14] used the kinetic energy preserving approach for the inviscid fluxes ensuring that kinetic energy dissipation only occurred due to the viscous fluxes in their work. However, they solve the incompressible Navier–Stokes equations, whereas, in this paper, the compressible Navier–Stokes equations are solved.

    View all citing articles on Scopus
    View full text