PHD Aldo Hennink
PHD Aldo Hennink
PHD Aldo Hennink
Dissertation
by
Aldo HENNINK
Independent members:
Prof. dr.ing. E. Laurien, University of Stuttgart, Germany
Prof. dr. ir. B. Koren, Eindhoven University of Technology, the Netherlands
Prof. dr. S. Hickel, Delft University of Technology
Dr. R. Pecnik, Delft University of Technology
Prof. dr. P. Dorenbos, Delft University of Technology, reserve member
Part of this work was funded by the sCO2 HeRo project that has received funding
from the European research and training program 2014–2018 (grant agreement
ID 662116).
Part of this work was supported by the ENEN+ project that has received funding
from the Euratom research and training Work Programme 2016–2017 — 1 #755576.
v
vi Contents
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4 Handling the Enthalpy Equation for LowMach Number Flow 53
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
4.1.1 In Between Compressible and Incompressible. . . . . . 53
4.1.2 Which Enthalpy Equation Should be Solved? . . . . . . 54
4.2 The Temporal Density Gradient . . . . . . . . . . . . . . . . . . 57
4.3 Linearizing the Temporal Derivative of the Enthalpy . . . . . . 58
4.3.1 Error Estimates and Stability . . . . . . . . . . . . . . . 59
4.3.2 Proper Scaling of the Enthalpy Equation . . . . . . . . . 61
4.3.3 Special Case of an Ideal Gas . . . . . . . . . . . . . . . . 62
4.4 Test Case for the Spaceindependent Enthalpy Equation . . . 63
4.5 Test Cases with LowMach Number Flow. . . . . . . . . . . . . 65
4.5.1 Variabledensity Manufactured Solution . . . . . . . . . 65
4.5.2 Validation with Flow Past a Heated Circular Obstacle . 72
4.6 Discussion and Conclusion . . . . . . . . . . . . . . . . . . . . . 73
Appendices 76
A Derivations of the Results in Section 4.3.1. . . . . . . . . . . . 76
A.1 Derivations for Method #1 . . . . . . . . . . . . . . . . . 76
A.2 Derivations for Method #2 . . . . . . . . . . . . . . . . . 78
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
5 Channel Flow and Large Eddy Simulation 83
5.1 Introduction and Governing Equations . . . . . . . . . . . . . . 83
5.2 Subfilter Scale models . . . . . . . . . . . . . . . . . . . . . . . 86
5.3 Numerical Simulation . . . . . . . . . . . . . . . . . . . . . . . . 89
5.3.1 Discretization . . . . . . . . . . . . . . . . . . . . . . . . . 89
5.3.2 Including a Variable Density . . . . . . . . . . . . . . . . 91
5.4 Test Case: Infinite Plane Channel Flow. . . . . . . . . . . . . . 92
5.4.1 Dimensionless Analysis . . . . . . . . . . . . . . . . . . . 93
5.4.2 Initial Condition . . . . . . . . . . . . . . . . . . . . . . . 94
5.4.3 Domain Size and Mesh . . . . . . . . . . . . . . . . . . . 94
5.4.4 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
5.5 Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
6 Conclusion 107
Acknowledgements 109
Curriculum Vitæ 111
List of Publications 113
Nomenclature
General
∇𝑖 gradient in the 𝑖 th Cartesian coordinate (e.g., ∇2 ≔ 𝜕/𝜕𝑦)
𝜌𝑇 , ℎ𝜌 , 𝐻ℎ , … partial derivatives with respect to fluid properties (e.g., 𝜌𝑇 ≔
𝜕𝜌/𝜕𝑇)
𝐮, 𝐅, … vectorvalues quantities (e.g., velocity, force,)
𝒎, 𝒉, 𝒑, … vectors in the discrete global linear system
𝑴, 𝑫, 𝑪, … matrices in the discrete global linear system
List of symbols
Independent variables and domain:
𝐫 = [𝑥, 𝑦, 𝑧] Cartesian spatial coordinate
𝑡 time
Ω spatial domain
𝐧 outward normal vector
𝜕Ω, 𝜕𝑇, … boundaries of Ω, 𝑇, …
𝜕ΩD , 𝜕ΩN parts of 𝜕Ω with a Dirichlet (D) or Neumann (N) boundary con
dition
Related to the spatial discretization:
𝒯 the set of elements (i.e., the computational mesh)
ℱ the set of all faces in the mesh
ℱi , ℱ D , ℱN sets of all internal (i), Dirichlet (D), or Neumann (N) faces
𝒫𝑋 polynomial order of a numerical solution space of quantity 𝑋
Variables in the transport equations:
𝑝th thermodynamic pressure
𝑝 ‘incompressible’ (or ‘hydrodynamic’, or ‘mechanical’) pressure
𝐦 mass flux
𝐮 ≔ (1/𝜌)𝐦 velocity
𝜏 viscous stress tensor
𝐅 volumetric external force
𝑄 volumetric heat source
𝜙D Dirichlet value of a quantity 𝜙 at a boundary (i.e., the inhomo
geneous part of a Dirichlet boundary condition)
𝐟N stress at the outflow boundary (i.e., the inhomogeneous part of
a Neumann boundary condition for the momentum)
vii
viii Nomenclature
𝑞N heat flux out of the domain at the boundary (i.e., the inhomoge
neous part of a Neumann boundary condition for the enthalpy)
Fluid properties:
𝑇 temperature
𝜌 density
ℎ specific enthalpy
𝐻 = 𝜌ℎ volumetric enthalpy
ℎ0 enthalpy offset
𝑐𝑝 ≔ ℎ𝑇 specific heat capacity at constant thermodynamic pressure
𝑘 thermal conductivity
𝛼 ≔ 𝑘/ (𝜌𝑐𝑝 ) thermal diffusivity
𝜇 dynamic viscosity
𝜈 ≔ 𝜇/𝜌 kinematic viscosity
Dimensionless numbers:
Pr ≔ 𝜈/𝛼 Prandtl number
Re Reynolds number
Nu Nusselt number
𝑓D Darcy friction factor
St Strouhal number
Summary
This thesis describes a numerical method for computational fluid dynamics. Special
attention is paid to lowMach number flows.
The spatial discretization is a discontinuous Galerkin method, based on modal
basis functions. The convection is discretized with the local LaxFriedrichs flux. The
diffusion in the enthalpy equation is discretized with the symmetric interior penalty
method, which is generalized in a straightforward manner for the viscous stress in
the momentum equation. The numerical method does not deviate fundamentally
from previous literature.
The temporal derivatives in the enthalpy and momentum equations are dis
cretized with a secondorder backward finite difference method. An algorithmic
pressure correction scheme is used decouple the momentum and the continuity
equations, giving rise to explicit artificial boundary conditions. If the pressure and
the momentum are discretized with an equalorder polynomial space, then the pres
sure equation is stabilized with an extra penalty term to suppress the discontinuities
in the solution, as explained in chapter 2.
Using a timesplitting method is far more difficult when the flow is compressible,
due the variable density. LowMach number flows also do not lend themselves well
to solving the coupled transport equations, because the density is a function of the
enthalpy, not the pressure. This differs from highMach number flows, where one
can solve a transport equation for the density. Chapter 4 describes in great detail
how a nonconstant density can be incorporated into a timesplitting scheme for
lowMach number flows.
Chapter 4 also discusses the best form of the enthalpy transport equation to
solve (primitive or conservative), and for which variable (primitive or conserved).
This question arises in lowMach number flows, because the density is a function of
the temperature. Here the conservative transport equation is solved for the specific
enthalpy.
The main difficulty with this approach is that the temporal enthalpy derivative
is nonlinear due to the variable density. This can be addressed with an easily
implemented adjustment of the finite difference scheme (‘method #2’ in sections
4.3–4.4). The resulting discretization displays secondorder temporal accuracy (as
measured in the spatial 𝐿2 norm) for the enthalpy and the mass flux, without having
to iterate within a time step.
Furthermore, the enthalpy transport equation needs to be stabilized with a sim
ple change of variables, in which the specific enthalpy is ‘offset’ by a constant.
Though it may be counterintuitive, the enthalpy offset is critical to the stability and
the accuracy of the temporal discretization. This would also be true if one were to
solve for the volumetric enthalpy, because the enthalpy offset determines whether
there is a onetoone mapping between the volumetric enthalpy and the density.
ix
x Summary
The spatial and temporal discretizations and their implementations are exten
sively verified and validated with the test cases at the end of the chapters. In
particular, sections 3.3.1, 3.3.2, and 4.5.1 feature exhaustive tests with manufac
tured solutions with nontrivial fluid properties. Sections 2.7, 3.4, and 4.5.2 contain
validations for laminar flows. Chapter 5 also shows simulations of turbulent flows.
Samenvatting
Deze scriptie beschrijft een numerieke methode voor vloeistofdynamica. Er gaat
extra aandacht uit naar stromingen met een laag Machgetal.
De spatiële discretisatie is een discontinue Galerkinmethode, gebaseerd op
modale basisfuncties. Voor de discretisatie van de convectie wordt gebruikt ge
maakt van de LaxFriedrichsflux. Voor de discretisatie van de diffusieve term in de
enthalpievergelijking wordt gebruikt gemaakt van de ‘symmetric interior pentaly’
methode, die in een algemenere vorm ook toepasbaar is op de viskeuze term in
the impulsvergelijking. De numerieke method wijkt niet fundamenteel af van voor
gaande literatuur.
The tijdsafgeleide in de enthalpie en impulsvergelijkingen worden discreet ge
maakt met een impliciete eindigverschilmethode van tweede orde. Een algoritmisch
drukcorrectieschema ontkoppelt de drukvergelijking en de impulsvergelijking, wat
resulteert in expliciete artificiële randvoorwaarden. Als voor de druk en de im
puls een polynome oplossingsruimte van gelijke order wordt gebruikt, dan moet de
drukvergelijking gestabiliseerd worden met een extra ‘penalty’term om de discon
tinuïteiten in de oplossing in toom te houden, zoals wordt uitgelegd in hoofdstuk
2.
In een compressibele stroming wordt de tijdsplitsingsmethode aanzienlijk be
moeilijkt door de variabele dichtheid. Voor stromingen met een laag Machgetal
is het ook niet makkelijk om de gekoppelde transportvergelijkingen op te lossen,
omdat de dichtheid een functie is van de enthalpie, niet van de druk. Hoofdsuk 4
detailleert hoe een nietconstante dichtheid opgenomen kan worden in een tijds
plitsingsschema voor stromingen met een laag Machgetal.
Hoofdstuk 5 behandelt ook in welke vorm de enthalpievergelijking het best kan
worden opgelost (primitief of conservatief) en voor welke variabele (de specifieke
of de volumetrische enthalpie). Deze vraagstukken spelen een rol bij stromingen
met een laag Machgetal, omdat de dichtheid een functie is van de temperatuur. In
dit werk wordt de conservatieve enthalpievergelijking opgelost voor de specifieke
enthalpie.
De grootste uitdaging bij deze aanpak is de nietlineaire tijdsafgeleide van de
enthalpie, als gevolg van de variabele dichtheid. Dit probleem kan worden ge
adresseerd met een eenvoudig te implementeren aanpassing van de eindigver
schilmethode (‘methode #2’ in sections 4.3–4.4). Dit resulteert in tweedeorder
nauwkeurigheid in de tijd (gemeten in de spatiële 𝐿2 norm) voor de enthalpie en
de massaflux, zonder te hoeven itereren binnen een tijdstap.
Daarnaast moet de enthalpievergelijking gestabiliseerd worden met een eenvou
dige substitutie van variabelen, waarbij een constante bij de specifieke enthalpie
wordt opgeteld. Deze ‘enthalpieverspringing’ (‘enthalpy offset’) is essentieel voor
de stabiliteit en de nauwkeurigheid van de discretisatie. Dat zou ook het geval
xi
xii Samenvatting
geweest zijn als we de volumetrische enthalpie zouden hebben gekozen als onbe
kende variabele, omdat de enthalpieverspringing bepaalt of er éénopéénverband
bestaat tussen de volumetrische enthalpie en de dichtheid.
De discretisaties in ruimte en tijd worden uitvoerig geverifieerd en gevalideerd
met de tests aan het einde van de hoofdstukken. Hierbij zijn vooral de tests met
artificiële oplossingen en niettriviale vloeistofeigenschappen noemenswaardig, zie
secties 3.3.1, 3.3.2 and 4.5.1. Secties 2.7, 3.4 and 4.5.2 behandelen validaties met
laminaire stromingen. Hoofdstuk 5 toont ook simulaties met turbulente stromingen.
1
Introduction
This thesis is on computational fluid dynamics for incompressible flows and flows
in the lowMach number limit. Various numerical issues are explored, related to the
spatial discretization, the timesplitting method, and turbulent flows. Special atten
tion is paid to how the discretizations can be adjusted when the density depends
on the temperature.
These are fairly unrelated topics, and it would be infeasible to cover all the basics
in a single chapter. The following chapters therefore contain their own introduc
tions, including extensive literature reviews. Here we merely state the mathematical
problem (i.e., the governing equations with boundary conditions).
It is assumed throughout the thesis that the reader is familiar with common
concepts in computational fluid dynamics.
This text is also not meant as an introduction to the discontinuous Galerkin (DG)
method, though section 1.2 discusses some reasons for its recent gain in popularity,
and can be read without prior knowledge. Chapter 2 (‘Spatial Discretization with a
Discontinuous Galerkin Method’ ) is technically selfcontained, but focuses on what
differs from other literature, while skipping over some important basics. The reader
can instead consult one of several monographs, of which the one by Hesthaven and
Warburton [1] likely provides the gentlest introduction.
1
2 1. Introduction
In the resulting transport equations, the pressure is split into two parts: the
1 0
thermodynamic pressure 𝑝th (of order Ma ), which is used to evaluate the equation
2
of state, and a pressure 𝑝 (of order Ma ) in the momentum equation that acts
as a Lagrange multiplier to enforce continuity, just like in the incompressible flow
equations [2]. We simply refer to 𝑝 as the pressure; it has also been called the
‘hydrodynamic pressure’1 (e.g, [3, 4]), the ‘mechanical pressure’ (e.g., [5]), and
the ‘incompressible pressure’ (e.g., [6]).
Assuming a constant thermodynamic pressure, the transport equations in the
lowMach number limit are
𝜕𝜌
+∇⋅𝐦=0 , (1.1a)
𝜕𝑡
𝜕𝐦
+ ∇ ⋅ (𝐮 𝐦) = ∇ ⋅ 𝜏 − ∇𝑝 + 𝐅 , (1.1b)
𝜕𝑡
𝜕𝜌ℎ
+ ∇ ⋅ (𝐦ℎ) = −∇ ⋅ 𝐪 + 𝑄 (1.1c)
𝜕𝑡
on a domain Ω. Here 𝑡 is the time, 𝜌 is the density, 𝐮 is the velocity, 𝐦 ≔ 𝜌𝐮 is the
mass flux, ℎ is the specific enthalpy, and 𝐅 and 𝑄 are known external sources. The
pressure 𝑝 has no effect on any of the fluid properties.
The general form of the lowMach number equations has a nonconstant ther
modynamic pressure 𝑝th = 𝑝th (𝑡) and a density that is a function of both 𝑝th and
ℎ. The enthalpy equation then gets an extra term d𝑝th /d𝑡, which can be estimated
by integrating the enthalpy equation. Since all variabledensity flows in this work
have an outlet, where 𝑝th is fixed, we simply have d𝑝th /d𝑡 = 0.
Assuming a Newtonian fluid, the stress tensor is
2
𝜏𝑖𝑗 = 𝜇 (∇𝑖 𝑢𝑗 + ∇𝑗 𝑢𝑖 − (∇ ⋅ 𝐮) 𝛿𝑖𝑗 ) . (1.2)
3
• Dirichlet boundaries, denoted by 𝜕ΩD , on which the mass flux and the tem
perature (and, therefore, the enthalpy and the fluid properties) are given, that
is, 𝐦 = 𝐦D and 𝑇 = 𝑇D ;
1 This
is perhaps slightly confusing because of the double meaning of the ‘dynamic pressure’ in the
Bernoulli equations.
1.2. Overview of the Numerical Method 3
for 𝝓, which is therefore known as the solution vector. In practice such a large
linear system can only be solved approximately, and there is an enormous body of
research on how this can be done. This typically has a large impact on the overall
efficacy of the numerical method, but that is not the topic of this thesis. Section
2.6 outlines how we solve the linear equations, and we make occasional reference
to the linear solvers when they are relevant to the rest of the discretization (such
as in section 3.5.1), but the reader can assume that the above equation is solved
with a negligible error.
That leaves the question of how to construct the matrix 𝑨 and righthand side
𝒃. In a finite element method this is done with discrete bilinear and linear operators
𝑎(⋅, ⋅) and 𝑏(⋅) that generate the entries in 𝑨 and 𝒃 with the basis functions, that is,
The test vector 𝒗 has a corresponding test function 𝑣 = 𝒗𝑘 𝜉𝑘 . Using the linearity
1
of 𝑎 and 𝑏, we have 𝒗⊺ 𝑨𝝓 = 𝒗𝑘 𝑎 (𝜉𝑘 , 𝜉𝑞 ) 𝝓 = 𝑎 (𝒗𝑘 𝜉𝑘 , 𝝓 𝜉𝑞 ) = 𝑎 (𝑣, 𝜙) and
𝑞 𝑞
𝒗⊺ 𝒃 = 𝒗𝑘 𝑏 (𝜉𝑘 ) = 𝑏 (𝒗𝑘 𝜉𝑘 ) = 𝑏 (𝑣), so the linear system can also be written as
𝑁
where 𝑉𝜙 = span ({𝜉𝑖 }𝑖=1 ) is the numerical solution space (i.e., the span of all basis
functions). Instead of deriving the linear system directly, we work with statements
like Eq. 1.8, which is known as the discrete weak form.
The precise type of finite element method we use is a discontinuous Galerkin
(DG) method, characterized by the fact that the basis functions are not continuous,
and neither is the numerical approximation. The term ‘Galerkin’ refers to the fact
that the test function in Eq. 1.8 lies in the same solution space as the numerical
solution. As a result of the discontinuities, the DG method shares many characteris
tics with the finite volume method, especially when applied to hyperbolic problems,
as will become clear in Chapter 2.
In practice we have to decouple the spatial and temporal discretizations to make
the computations feasible. For the temporal discretization we use a finite difference
𝑛 𝑛+1
method, resulting in solution vectors {𝝓 , 𝝓 , …} to approximate the solution at
discrete times {𝑡𝑛 , 𝑡𝑛+1 , …}. We also split the full coupled state of the fluid into three
separate solution vectors for the mass flux, pressure, and enthalpy (𝒎, 𝒑, and 𝒉),
as is common for incompressible flows.
with a discontinuous solution space. The unified analysis of DG methods for elliptic
problems by Arnold et al. [11] was foundational for extending the DG method to 1
viscous flow. The required penalty parameter has been estimated by many authors,
including Shahbazi [12]. They later also established the DG method for convection
diffusion problems for incompressible flow with a timesplitting method [13].
An interesting property of the DG solution space is that it supports a lowpass
filter in a natural way, by separating the highorder and loworder polynomials in the
solution space, giving it great potential for a variational multiscale method. Collis
[14] has discussed this as early as 2002. See Hughes et al. [15] for a comparison of
continuous and discontinuous solution spaces in this context. Variational multiscale
with DG is still an ongoing area of research (e.g., [16, 17]).
There are other applications for the natural support for scale separation. For ex
ample, Atkins and Helenbrook [18] and Helenbrook and Atkins [19] have introduced
polynomialbased multigrid methods to DG discretizations in 2005. Separating the
polynomials can also be used for the coarsegrid projection in a dynamic Large Eddy
simulation [20].
Most authors recognize the arbitrarily high order of accuracy on unstructured
meshes as a major benefit of DG discretizations. Several papers have applied the
DG method to nontrivial geometries, such as airfoils. This geometric flexibility could
be valuable for some industrial applications (as discussed in, e.g., [21]). It also
provides support for adaptivity (e.g., [22]). Furthermore, the unstructured nature of
DG methods has been used for arbitrary spacetime domains and moving boundary
problems (e.g., [23–26]).
The most important numerical characteristic of any discretization is perhaps how
well it handles unresolved flows. Turbulent flow simulations are rarely fully resolved,
and that is particularly true for large eddy simulations (LES), where it is standard
practice to rely on a moderate amount of numerical dissipation. This is likely to
increase in importance, as more practical flows are starting to fall within the range
of applications of LES.
There are indications that the DG method handles unresolved flows well. One
reason is that the weak form in a DG method can be written as a local conservation
law for each element in the mesh, much like in finite volume methods. This offers
stability for badly resolved flows, despite the high order of accuracy. Another reason
is the frequency spectrum of the numerical dissipation, which many authors have
studied recently (e.g., [27]). Highorder DG discretizations acts as a lowpass filter.
Moura et al. [28] have argued that this makes them particularly suitable for implicit
large eddy simulations.
More recently, there has been much attention to how the computational struc
ture of DG discretizations can be implemented efficiently on modern hardware archi
tectures. The DG method results in a block matrix, wherein the blocks are coupled
with a compact stencil. Chapelier et al. [17] have claimed that this is beneficial for
MPI parallelization. The block structure also lends itself to acceleration with GPUs
(e.g., [29]). As mentioned by Kronbichler et al. [30], ‘the most common obstacle to
highorder methods is a lack of competitive implementations in generic numerical
software packages, which has limited their application mostly to specialized codes
6 References
References
[1] J. S. Hesthaven and T. Warburton, Nodal Discontinuous Galerkin Methods
(Springer, New York, 2008).
[2] S. Paolucci, On the Filtering of Sound from the NavierStokes Equations, Tech.
Rep. SAND828257 (Sandia National Laboratories, Ananlytical Thermal/Fluid
Mechanics Division, Livermore, 1982).
[3] J. W. R. Peeters, Turbulence and turbulent heat transfer at supercritical pres
sure, doctoral thesis, Delft University of Technology (2016).
[4] F. C. Nicoud, Numerical study of a channel flow with variable properties, in
Annual Research Briefs (Center for Turbulence Research, 1998) pp. 289–310.
[5] M. Hassanaly, H. Koo, C. F. Lietz, S. T. Chong, and V. Raman, A minimally
dissipative lowMach number solver for complex reacting flows in OpenFOAM,
Computers & Fluids 162, 11 (2018).
[6] B. Müller, LowMachNumber Asymptotics of the NavierStokes Equations,
Journal of Engineering Mathematics 34, 97 (1998).
[7] W. H. Reed and T. R. Hill, Triangular mesh methods for the neutron trans
port equation, in Proceedings of the American Nuclear Society (University of
California, Los Alamos Scientific Laboratory, Los Alamos, New Mexico 87544,
1973).
[8] S. S. Collis, Discontinuous Galerkin methods for turbulence simulation, in Sum
mer Program 2002, Center for Turbulence Research (2002) pp. 155–167.
References 7
[9] A. Ern and J.L. Guermond, Discontinuous Galerkin Methods for Friedrichs’
Systems, in Numerical Mathematics and Advanced Applications, edited by A. B. 1
de Castro, D. Gómez, P. Quintela, and P. Salgado (Springer Berlin Heidelberg,
Berlin, Heidelberg, 2006) pp. 79–96.
[12] K. Shahbazi, An explicit expression for the penalty parameter of the interior
penalty method, Journal of Computational Physics 205, 401 (2005).
[13] K. Shahbazi, P. F. Fischer, and C. R. Ethier, A highorder discontinuous Galerkin
method for the unsteady incompressible NavierStokes equations, Journal of
Computational Physics 222, 391 (2007).
[14] S. S. Collis, The DG/VMS Method for Unified Turbulence Simulation, in 32nd
AIAA Fluid Dynamics Conference and Exhibit (Houston, Texas, 2002).
[15] T. J. R. Hughes, G. Scovazzi, P. B. Bochev, and A. Buffa, A multiscale dis
continuous Galerkin method with the computational structure of a continuous
Galerkin method, Computer Methods in Applied Mechanics and Engineering
195, 2761 (2006).
2.1. Introduction
This chapter details the spatial discretization, which is based on the discontinuous
Galerkin (DG) finite element method. To simplify the discussion, we consider the
stationary transport equations
∇⋅𝐦=0 , (2.1a)
∇ ⋅ (𝐮 𝐦) = ∇ ⋅ 𝜏 − ∇𝑝 + 𝐅 , (2.1b)
𝑘
∇ ⋅ (𝐦 ℎ) = ∇ ⋅ ( ∇ℎ) + 𝑄 , (2.1c)
𝑐𝑝
and postpone including the time variable to chapters 3 and 4. The temporal dis
cretization that is discussed there does not depend on the spatial discretization, and
understanding this chapter is not essential to understanding the rest of the thesis.
9
10 2. Spatial Discretization with a Discontinuous Galerkin Method
fluxes that were developed for onedimensional finite volume schemes carry over
naturally to the DG method, making it particularly suitable for hyperbolic systems
(see, e.g., the review [2], and a unified analysis of finite volume and DG discretiza
tions in [3]).
DG methods for the diffusion operator have matured more recently. The dif
2 fusion equation has an ‘instant smoothing’ property, meaning that it has a differ
entiable solution everywhere in the domain, even when there are discontinuities
in the initial condition, the boundary conditions, the forcing term, or the diffusion
parameter. Unsurprisingly, a discontinuous solution space is not the most natural
choice for these problems. Nevertheless, several DG approaches have emerged.
We mention two of them here. See the standard reference [4] for a clear and
thorough analysis.
The first approach is to split the Laplace operator into two equations with first
order derivatives, resulting in two discretizations, which can then be merged. This
socalled ‘local DG’ (LDG) method is straightforward, but it leads to a large stencil,
where each element is coupled to the neighbors of its neighbors.
We avoid this by using another approach, namely the symmetric interior penalty
(SIP) method. Interior penalty methods have a local stencil, where each element is
only coupled to it direct neighbors. One could take the following heuristic viewpoint
of this method. Think of each element as a separate domain in which a spectral
method is used to solve the temperature diffusion equation. The elements are
coupled by providing each other’s boundary conditions, of which we need two at
each interior face: one for each neighbor. One of these boundary conditions is
natural to a finite element framework: the heat flux must be the same at both
sides of the face. The other boundary condition is that the temperature must be
continuous, but enforcing this strongly would break the discontinuous nature of the
solution space. Therefore continuity is enforced weakly by penalizing the jumps of
the solution at the faces.
This gives rise to a userdefined penalty parameter that must be ‘large enough’
in order for the discrete bilinear form to be coercive, which is a sufficient condition
for stability. This has been seen as a disadvantage, but several authors (e.g., [5,
6]) have found useful estimates, and this has been extended to various types of
elements and unstructured meshes [7].
indicate the values at the two sides. On vectors they act elementwise. On boundary
elements, both the jump and the average are defined as the internal numerical value
(i.e., the ‘trace’). The reason for this convention at the boundary is that it allows
for a concise notation of the elementwise application of the divergence theorem:
for an arbitrary piecewise continuous vector 𝐯,
∑ ∫ ∇ ⋅ 𝐯 = ∑ ∫ 𝐯 ⋅ 𝐧𝑇 = ∑ ∫ J𝐯K ⋅ 𝐧𝐹 , (2.4)
𝑇 𝜕𝑇 𝐹
𝑇∈𝒯 𝑇∈𝒯 𝐹∈ℱD,N,i
We use a modal basis, in which the basis functions are constructed such that they
are hierarchical and orthogonal in the 𝐿2 norm. This is just an implementation issue;
all equations in this thesis are valid for nonorthogonal bases. The solution space
within each element is simply spanned by all polynomials up to an order 𝒫. There
are ( 𝒫 ) = (𝒫 + 𝑑)!/(𝑑! 𝒫!) linearly independent polynomials in a 𝑑dimensional
2 𝒫+𝑑
element. In this chapter the polynomial order is the same on all elements, though
this is not a requirement of the numerical method. The order of the polynomials
for the unknown 𝑋 is denoted by 𝒫𝑋 .
so that a consistent discrete weak form of the continuity equation with 𝜕𝜌/𝜕𝑡 = 0
(Eq. 2.1a) is
Find 𝑝 ∈ 𝑉𝑝 , such that, for all 𝑞 ∈ 𝑉𝑝 ,
(2.6)
− 𝑎div (𝐦, 𝑞) = − ∫ 𝑞 𝐦D ⋅ 𝐧 ,
𝜕ΩD
where 𝑉𝑝 is the solution space of the pressure, and 𝐦 is the numerical (discontinu
ous) mass flux.
The weak form of the continuity equation can only be stable if the divergence
operator is surjective. This means that, for every 𝑞 in the pressure space, there
exists a 𝐯 in the velocity (or mass flux) space, such that 𝑞 is the divergence of 𝐯
(and satisfying a constraint on the norm of 𝐯; see [8, pp. 246–252] for a precise
analysis). Surjectivity can be shown to be equivalent to an infsup condition on the
bilinear form of the divergence operator.
The continuous divergence operator is surjective, but the discrete divergence
operator 𝑎div is not for equalorder discretizations of the pressure and the mass
flux (i.e., 𝒫𝑚 = 𝒫𝑝 ). This makes intuitive sense, since the divergence of the mass
flux would lie in a lowerorder polynomial space than the pressure. A solution is
to set 𝒫𝑚 > 𝒫𝑝 , in which case infsup stability has been proven [14]. The lack
of infsup stability is a general aspect of equalorder finite element methods for
incompressible flows. See, for example, John [15] for an extensive discussion in
the context of continuous finite elements.
This is unfortunate, because equalorder methods have often been found more
efficient than mixedorder methods, and therefore methods have been devised to
stabilize the pressure for equalorder DG discretizations. Cockburn et al. [16] as
sumed a homogeneous kinematic viscosity and added a pressure stabilization term,
2.2. Discrete Continuity Equation 13
We set 𝛾0 = 1 without investigating other values. We offer no proof for the validity
of this handling of the variable viscosity, but extensive tests in this thesis (especially
those with manufactured solutions in sections 3.3.2 and 4.5.1) will show that the
discretization is stable.
Another approach to stabilizing equalorder DG methods was taken by Botti
and Di Pietro [17], who used continuous finite elements for the pressure, simply
disposing of the pressure discontinuities altogether. This seems logical, since the
transport equations for an incompressible flow imply a Poisson equation for the pres
sure, and the continuous Galerkin (CG) method is the most effective discretization
for purely diffusive problems, whereas the DG method mostly thrives for hyperbolic
problems. (Though it has been shown that DG and CG methods are asymptotically
equally efficient in the limit of (very) high polynomial orders of approximation [18].)
A possible disadvantage would be the reduced mesh generality compared to a pure
DG discretization. We have not pursued this approach, partly because it would be
demanding to implement.
Krank et al. [19] have instead focused on the momentum equation to stabilize
equalorder DG discretizations. They suppressed the local violation of the continu
ity equation by modifying the discrete NavierStokes equation with elementwise
penalty terms for ∇ ⋅ 𝐮 within an element, and for the jump of 𝐧 ⋅ 𝐦 across the
faces. This assumes a divergencefree velocity field, which is generally not valid for
lowMach number flow. We will use this approach in chapter 5.
These ideas for pressure stabilization can be compared to the artificial compress
ibility method, in which the continuity equation is perturbed with a compressibility
term (1/𝑐 2 )𝜕𝑝/𝜕𝑡 for some parameter 𝑐 > 0. The numerical fluxes in the DG weak
form are then obtained by solving a Riemann problem for the discontinuities at a
face. This also gives rise to penalty terms for the jump of the pressure (as in Eq.
2.8), and the jump of 𝐧 ⋅ 𝐦 across a face (ref., e.g, [20]).
14 2. Spatial Discretization with a Discontinuous Galerkin Method
demonstrating consistency, since the last term is zero when the continuous pressure
is substituted for 𝑞.
The discretization of the convection 𝑎conv and 𝑙 conv will be given in section 2.5.
Solving for the mass flux 𝐦 instead of the velocity 𝐮 complicates the treatment of
the viscous term, which is linear in ∇𝐮, not ∇𝐦. Section 2.3.1 details how this can
be handled with a DG method.
This reduces to the regular SIP method when substituting (𝜇/𝜌)∇𝑖 𝑤𝑗 for 𝐿visc 𝑖𝑗 (𝑤).
Compared to other interior penalty methods and the local DG method, the advan
tages of the SIP method are the optimal convergence rate for all polynomial orders,
its adjoint consistency, and its compact stencil [21].
If the viscosity is constant and the flow is incompressible (i.e., ∇⋅𝐮 = 0), then ∇⋅𝜏
can be simplified to ∇ ⋅ (𝜇∇𝐮) on the continuous level. But note that using a regular
2
SIP method for ∇ ⋅ (𝜇∇𝐮) would always be different from the above discretization
of ∇ ⋅ 𝜏. As one would expect, our numerical tests (not shown in this thesis) show
a negligible numerical difference between these discretizations when 𝜇 is constant
and ∇ ⋅ 𝐮 = 0.
The above discretization of the viscous term can be compared to what is usually
done for compressible flows, where the system of equations 1.1 is solved for a full
state vector 𝑈 ≔ [𝜌, 𝐦, 𝜌ℎ]. In that case all elliptic terms in Eqs. 1.1 can be written
as ∇ ⋅ (𝐺(𝑈)∇𝑈)), where 𝐺(𝑈) is a homogeneity tensor that does not contain any
gradients of the unknowns. (See, e.g., [21, 22].) This tensor is then kept fixed
during an iteration step, while ∇𝑈 can be treated in a timeimplicit manner. If the
density is constant, then that approach is equivalent to the above discretization.
If the density is variable (as it will be in later chapters), then using a homogeneity
tensor is subtly different from the current method in terms of which variables get
treated implicitly. Three of the six terms in Eq. 2.12 contain 𝐝 𝐦, which is a product
of 𝐦, 1/𝜌, and ∇𝜌. When using a homogeneity tensor, 𝐦 and (1/𝜌) are frozen
within an iteration step, and ∇𝜌 is solved for implicitly. In the current discretization,
(1/𝜌) and ∇𝜌 are frozen, and 𝐦 is treated implicitly.
Our approach also differs from that of Klein et al. [23], in that we treat all terms
in the viscous stress (Eq. 1.2) in a timeimplicit manner, whereas they only do this
for the first term (𝜇∇𝑖 𝑢𝑗 ). In our treatment the velocity components are coupled.
We have no a priori estimate for the difference in magnitude between the effects of
the first term (𝜇∇𝑖 𝑢𝑗 ) and its transpose (𝜇∇𝑗 𝑢𝑖 ) on the viscous force ∇ ⋅ 𝜏, especially
when the viscosity varies strongly in space. Note the gradients in the effective
viscosity will increase greatly when a large eddy simulation (LES) model is included
in chapter 5.
Following Hillewaert [7, p. 30], we set the penalty parameter to
‖𝐹‖leb
𝜂𝐹 = max (𝐶𝑇 card(ℱ𝑇 ) ) max (𝐾|𝑇 ) , (2.16)
𝑇∈𝒯𝐹 ‖𝑇‖leb 𝑇∈𝒯𝐹
where 𝐾 = 𝜇/𝜌 is the diffusion parameter, and card(ℱ𝑇 ) is the number of faces
of element 𝑇. The factor 𝐶𝑇 depends on the type of elements in the mesh: for a
polynomial order 𝒫, 𝐶𝑇 = (𝒫 + 1)2 for quadrilaterals and hexahedra, 𝐶𝑇 = (𝒫 +
1)(𝒫 + 2)/2 on triangles, and 𝐶𝑇 = (𝒫 + 1)(𝒫 + 3)/3 for tetrahedra.
We compute the penalty parameter in a pointwise manner, even though Hille
waert took the maximum value of the above expression on the face in his stability
analysis. Our experience suggests no difference in the stability, and taking a local,
pointwise (as opposed to faceaveraged) numerical flux seems more in the spirit of
the DG method, which can have an arbitrarily rich structure within an element. We
16 2. Spatial Discretization with a Discontinuous Galerkin Method
will encounter a similar situation for the stabilization term for the local LaxFriedrichs
flux in section 2.5.1.
Paradoxically Eq. 2.16 depends on the shape, size, and number of faces of the
neighbors, giving the impression that it is still not local to a particular point on a
face, even though we evaluate it in a pointwise manner. However, the norms of a
2 polynomial on a face and on an element are related by wellknown trace inequalities,
which underlie the above expression for the penalty parameter.
Here 𝑤 is a scalar, 𝑣 is the test function, 𝐛 is the convective field, and 𝐻𝐹 is the
numerical flux function on a face 𝐹, which will be defined later.
It is well known that imposing a Dirichlet boundary condition for the velocity at
an outlet results in an illposed problem, and that it is numerically unstable for a
convectiondominated flow, and therefore we would normally have max(0, 𝐧⋅𝐛D ) =
0 on 𝜕ΩD . Here we nevertheless include this term in 𝑎conv , because we will use it
in the TaylorGreen vortex in section 3.3.1, as is standard practice for that laminar
benchmark case (e.g., [12, 24]).
In practice one may know the value 𝜙D at a Dirichlet outlet (𝐧 ⋅ 𝐛D > 0), such as
for the TaylorGreen vortex manufactured solution in section 3.3.1, but we nonethe
less use the internal value 𝑤 in the last term in Eq. 2.21, so as not to overconstrain
the problem. This theoretical point has little practical value, because Dirichlet out
lets are only viable for academic problems anyway.
If (the normal component of) 𝑏 is continuous at each face, then 𝜙 can be up
winded in an unambiguous manner, and there is only one correct discretization
(see, e.g., [21, p. 33]). In practice 𝐛 is a velocity (or a mass flux) that was ob
tained with a DG method, and therefore the flux is discontinuous at each face, and
there are multiple possible discretizations.
• The Roe numerical flux, which has been compared favorably to the local Lax
Friedrichs flux by Winters et al. [29]. They focused on the interplay between
the numerical flux and their underintegrated nodal DG method that required
antialiasing, and so it is hard to say how well their results would translate to
our modal DG method with exact integration in the weak forms.
2
• The Vijayasundaram numerical flux. See, for example, the seminal paper [30]
for a general analysis, and [31] for a DG application. In a DG method this
numerical flux can be shown to be consistent with the numerical flux in the
continuity equation.
The Vijayasundaram flux has also been implemented in DGFlows; our experience
suggests no significant difference with respect to the local LaxFriedrichs flux.
The local LaxFriedrichs flux is given by
1
𝐻𝐹 (𝐛, 𝑤) = J𝑤K 𝛼 𝐹 + {𝑤𝐛} ⋅ 𝑛𝐹 , (2.22)
2
where 𝛼 𝐹 is a function of the normal component of the convecting field (i.e., 𝐛 ⋅ 𝐧).
For a general scalar hyperbolic system of the form ∇ ⋅ 𝐟(𝜙) = 0 with a given vector
valued function 𝐟, the parameter 𝛼 𝐹 is the maximum value of |𝐟′ (𝜙) ⋅ 𝐧𝐹 | on either
side of the face. If 𝜙 is an advected scalar, such as for the enthalpy in Eq. 2.17,
then 𝐟(𝑤) = 𝑤 𝐛, and thus |𝐟′ (𝜙) ⋅ 𝐧𝐹 | = |𝐛 ⋅ 𝐧𝐹 |.
The situation is different for the nonlinear convection in the momentum equation
2.10, where 𝜙 is itself equal to the convecting field 𝐛 (up to a factor of the density).
In that case, 𝜙 = 𝐦, 𝐛 = 𝐮 = (1/𝜌)𝐦, and Eq. 2.18 becomes a vector equation
of the form ∇ ⋅ 𝐹 (𝐦) = 0 with 𝐹𝑖𝑗 (𝐰) = 𝑤𝑖 𝑤𝑗 /𝜌. Now 𝛼 𝐹 is the maximum of the
spectral radii of the Jacobi matrix 𝜕/𝜕𝜙𝑖 (𝐹𝑗𝑘 (𝜙)𝑛𝑘𝐹 ) = 𝜕/𝜕𝑚𝑖 (𝑚𝑗 (𝐦 ⋅ 𝐧𝐹 )) /𝜌 =
(𝐮 ⋅ 𝐧𝐹 ) 𝛿𝑖𝑗 + 𝑛𝑖𝐹 𝑢𝑗 on either side of the face. Its eigenvectors are either parallel to
𝐧 (with eigenvalue 2(𝐮 ⋅ 𝐧𝐹 )), or perpendicular to 𝐮 (with eigenvalue (𝐮 ⋅ 𝐧𝐹 )). This
can be summarized as
𝛼 𝐹 = 𝜘 max |𝐛 ⋅ 𝐧𝐹 |𝑇 (2.23)
𝑇∈𝒯𝐹
with 𝜘 = 1 for advected scalars (such as the enthalpy in Eq. 2.17), and 𝜘 = 2 for
the nonlinear convection in the momentum equation 2.10 (see, e.g., [2, 12]).
Note that we evaluate 𝛼 𝐹 in a pointwise manner in the integral in Eq. 2.21,
which is the only right choice if 𝜙 is an advected scalar. Averaging 𝛼 𝐹 over the
face would be inconsistent, as can beq shown
y by considering the special case of
a continuous convecting field 𝐛̃ (i.e., 𝐛̃ = 0 on internal faces, and 𝐛̃ = 𝐛D on
𝜕ΩD ). With a test function that is 𝑣 = 1 on an element 𝑇 and 𝑣 = 0 elsewhere, the
discretization Eq. 2.19 can be written as
for a test function 𝑞 that lies in the pressure solution space. This can be compared
to the advection discretization in Eq. 2.19 by substituting the continuous solution
1 This is also another way of showing that 𝜘 = 1 for a scalar 𝜙.
20 2. Spatial Discretization with a Discontinuous Galerkin Method
q y
𝜙 ← 𝜙,̃ which satisfies 𝜙̃ = 0 on internal faces and 𝜙̃ = 𝜙D on 𝜕ΩD . Every viable
numerical flux must reduce to the central flux for a continuous solution, that is,
̃ = 𝜙̃ {𝐛} ⋅ 𝐧𝐹 (see, e.g., [21]), so that Eqs. 2.19–2.21 become
𝐻𝐹 (𝐛, 𝜙)
This can clearly only be consistent for a test function 𝑣 that is part of the test
space of the continuity equation. In the special case of a constant solution 𝜙,̃ the
convective term should vanish for all 𝑣, but 𝑎conv (𝐦, 𝜙,̃ 𝑣) = 𝜙̃ 𝑎div (𝐦, 𝑣), which
only vanishes if the test function 𝑣 lies in the pressure solution space, that is, if
𝒫𝜙 ≤ 𝒫𝑝 .
The requirement 𝒫𝜙 ≤ 𝒫𝑝 was not satisfied in some previous literature on mixed
order DG schemes. For example, Klein et al. [23] chose the same solution space
for the temperature as for the components of the velocity field. They probably
found good results because their tests were done at a low Prandtl number of 0.7,
whereas the problem with the solution spaces manifests itself when the convective
term dominates.
In theory the discretization of the convection of a scalar is consistent as long as
its solution space is a subset of the solution space of the pressure, but in practice the
enthalpy has the same solution space as the pressure, because a scalar transport
equation is much cheaper to solve than the momentum and pressure equations,
so there is little reason not to obtain the highest available spatial accuracy for the
enthalpy. In later chapters that address lowMach number flow, the density will be
a function of the temperature (and thus, the enthalpy). Then the choice of the en
thalpy solution space is no longer free: it must be the same as that of the pressure,
because the continuity equation and the enthalpy equation become coupled due to
the temperaturedependent density.
with 𝑤up as in Eq. 2.25, as opposed to ∫𝜕Ω 𝑤 𝐛 ⋅ 𝐧 = 0, which one may have
guessed from the governing equation 2.18. This shows the effect of our treatment
of the Dirichlet boundary condition: the total inflow is determined by the known
D
boundary conditions (i.e., (𝜙𝐛) ⋅ 𝐧), rather than the internal value (i.e., 𝜙 𝐛 ⋅ 𝐧),
which generally contains a numerical error.
Another way of looking at this is to rewrite Eq. 2.27 for the continuous solution
𝜙̃ as
The righthand side acts as a source to counterbalance the deviation of the numer
ical inflow from the imposed inflow at the boundary. Note that the inflow term in
the discrete continuity equation 2.7 must be consistent with the treatment of the
Dirichlet boundary in the convection discretization. Otherwise Eqs. 2.26 and 2.27
in the previous section would not have been consistent in the special case of a
constant continuous solution 𝜙.̃ 2
Eqs. 2.20–2.21 present the only correct treatment of the Dirichlet boundary,
though it is far from standard in recent literature. For example, Piatkowski et al.
[31] used a Vijayasundaram numerical flux 𝐻𝐹 (𝐛, 𝑤) = 𝑤+ max (0, {𝐛} ⋅ 𝐧𝐹 ) +
𝑤− min (0, {𝐛} ⋅ 𝐧𝐹 ) on internal faces, and extended this in a seemingly logical way
to Dirichlet faces by replacing 𝑤− with 𝜙𝐷 , so that the contribution of the Dirichlet
boundary became
This is subtly wrong, because the numerical value 𝐛 ⋅ 𝐧 may have any sign, though
a value for 𝜙𝐷 should not be required at outlets and walls (where 𝐛D ⋅ 𝐧 = 0).
A similar objection can be made to the boundary treatment in Shahbazi et al.
[12], who used a local LaxFriedrichs flux as in Eq. 2.22, and substituted {𝑤 𝐛} ⟵
D
(𝜙𝐛 + (𝜙 𝐛) ) /2 and J𝑤K ⟵ 𝑤 − 𝜙D on 𝜕ΩD , giving a Dirichlet boundary contri
bution
1 D
∫ 𝑣 ((𝑤𝐛 + (𝜙𝐛) ) ⋅ 𝑛 + (𝑤 − 𝜙D ) 𝛼 𝐹 ) . (2.31)
𝜕Ω D 2
They based 𝛼 𝐹 on the average in the boundary element (𝐛avg ) and the Dirichlet
value 𝐛D . For walls, defined by 𝐛D ⋅ 𝐧 = 0, the above term becomes
1
∫ 𝑣 ( 𝑤 𝐛 ⋅ 𝐧 + (𝑤 − 𝜙D ) |𝐛avg ⋅ 𝐧|) . (2.32)
𝜕ΩD 2
They used this discretization for the nonlinear convective term, so that 𝐛 = 𝐮 and
𝜙 = 𝑢𝑖 for some direction 𝑖. Clearly this requires a Dirichlet value for all directions
of the velocity, while the nonnormal components of 𝐮 are not physically relevant
to the convection at a wall.
Many other authors have extended their numerical fluxes to the Dirichlet bound
ary in different but similar ways, with similar problems. Examples include [19,
33, 36] for the local LaxFriedrichs flux, [37] for the LesaintRaviar numerical flux,
and [38, 39] for Riemannsolved artificial compressibility flux.2 These papers have
treated Dirichlet faces like they are internal faces, except with the neighbor values
replaced by the Dirichlet values. This is motivated by an understandable desire to
impose the Dirichlet boundary condition weakly, but note that the present treat
ment is also weak, because we only use the moments ∫𝜕ΩD 𝑣 min (0, 𝐧 ⋅ 𝐛D ) 𝜙D for
all test functions 𝑣, not the inflow value at every point on 𝜕ΩD . The correct Eqs.
2 though in that last case it is possible that the boundary treatment is at least consistent between the
continuity and momentum equations
22 2. Spatial Discretization with a Discontinuous Galerkin Method
2.20–2.21 can also be found in some previous works, such as [13, pp. 27–28] and
[40].
Perhaps the inaccuracies described above have little impact on the numerical
solution in practical calculations, because most convected quantities are also dif
fused, which often weakly enforces the Dirichlet boundary condition for 𝜙 at 𝜕ΩD .
2 Superfluous convective boundary terms, such as Eqs. 2.30 and 2.31, would then
effectively change the penalty parameter in the SIP method at Dirichlet boundaries.
2.6. Implementation
All flow simulations are performed with an inhouse solver DGFlows. Its distin
guishing feature is that it can be coupled with another inhouse solver for particle
transport, called Phantom𝑆𝑁 . This has been used to solve the coupled flow and
neutron transport equations for modeling a theoretical nuclear reactor that is based
on a liquid fuel [41].
As mentioned in section 2.1.2, the basis functions are modal and hierarchical.
As is standard in finite element implementations, they are defined on a ‘local’ ref
erence element, which is mapped to the ‘global’, physical elements in the mesh.
Sometimes this localglobal mapping is affine, such as when the global elements
are triangles, tetrahedrons, rectangles, or rectangular parallelepipeds. In that case
the basis functions can be orthonormalized on the local element, which results in an
orthogonal basis on the global elements, so that the mass matrix is diagonal. This
can be a minor performance gain, especially if one were to use a numerical method
that requires frequent projections of the numerical solution onto lowerorder poly
nomial spaces, such as a 𝑝multigrid solver, or a dynamic large eddy simulation.
All integrals are evaluated with a quadrature set that is sufficiently accurate to
negate the polynomial aliasing effect that has plagued other DG solvers. (See, e.g.,
[42].) This is feasible because there are only (𝒫 + 𝑑)!/(𝑑! 𝒫!) degrees of freedom
in a 𝑑dimensional element with a polynomial order 𝒫. In the limit of large 𝒫 in
𝑑
three dimensions, this is 𝑑! = 6 times less than the (𝒫 + 1) degrees of freedom in
some nodal bases. The abscissa and the weights are taken from Solin et al. [43].
We store the values and derivatives of the basis functions on the quadrature set
for a fast evaluation of integrals and numerical solutions. All results in this thesis
remained unchanged when the accuracy of the quadrature was increased.
All meshes were generated with the opensource software tool Gmsh [44].
The linear systems are solved with the MPIbased software library PETSc [45,
46]. We use a conjugate gradient (CG) method for the pressure equation, and a
GMRES method for the enthalpy and momentum equations, which are asymmetric.
The computations are parallelized by partitioning the mesh with the software
package METIS [47]. Each core is assigned one partition. The parallel matrix
preconditioner is a standard block Jacobi method. We use PETSc’s implementa
tions of the pipelined Krylov methods, which require fewer inner products (meaning
fewer global MPI reductions) at the cost of more serial computations (see [48] for
pipelined CG, and [49] for pipelined GMRES). This provided better performance on
multinode computations.
2.7. Test Case: A Heated Backwardfacing Step 23
The preconditioner for the submatrix within a process depends on the specific
calculation. If the matrix remains constant for all time steps, then we use an incom
plete LU (or Cholesky) decomposition with zero fill (i.e., ILU(0) or ICC(0)). These
can be reused every time that the system is solved. If the matrix is different for
each time step, then the incomplete decompositions are too expensive, and we
instead use a block GaussSeidel method, where the degrees of freedom within an 2
element are treated as one block.
The ordering of the elements within a core is random. It would likely be more
efficient to renumber them based on the flow direction, so that a block GaussSeidel
method for the transport equations would correspond to the upwind direction. Fid
kowski et al. [50] and Diosady and Darmofal [51] have shown significantly increased
performance by forming lines of maximum coupling between elements, and solving
a blocktridiagonal system along each line.
Another obvious improvement is based on the hierarchical highorder solution
space, which strongly suggests a 𝑝multigrid method, based on Galerkin projection
into lowerorder polynomial spaces. Multigrid methods can greatly reduce the com
putational time for the pressure Poisson equation, which is often the most expensive
part of an incompressible flow solver. This idea has been tested successfully for DG
discretizations as early as 2005 [52, 53], and has since been applied to convection
advection problems by several other groups (e.g., [50, 54], [7, pp. 63–73]).
More recently, the high algorithmic intensity and minimal coupling between el
ements in a DG discretization have been exploited for efficient implementations on
graphical processing units (GPUs). Various groups have demonstrated huge poten
tial gains (e.g., [55–57]).
Unfortunately these ideas have not made it into generic numerical software
packages, and we have made no attempt to implement them into DGFLows, which
is purely a research code. Linear solvers are not studied in this thesis.
2𝑆𝑢̄
Re ≔ . (2.33)
𝜈
Some other literature uses the maximum velocity, or the height before the expan
sion. Eq. 2.33 is used because 2𝑆 is the hydraulic diameter at the inlet, making
it consistent with the standard definition of the bulk Reynolds number for three
dimensional channel flow and pipe flow, which we will also see in Chapter 5.
24 2. Spatial Discretization with a Discontinuous Galerkin Method
T0
S
2S
2
y
x T1
L0 L
Figure 2.1: Geometry of the backwardfacing step (not to scale).
The quantities of interest are the dimensionless velocity and temperature gra
dients along the bottom wall. Define the local Darcy friction factor
(bottom)
8 𝜏w 8𝜈
𝑓D ≔ 2
=− 2
𝐧 ⋅ ∇𝑢1 , (2.34)
𝜌(𝑢/2)
̄ (𝑢/2)
̄
(bottom)
where 𝜏w = −𝜇 𝐧 ⋅ ∇𝑢1 is the wall shear stress along the bottom wall, and
(𝑢/2)
̄ is the bulk velocity after the expansion. The local Nusselt number is
𝑆
Nu ≔ 𝐧 ⋅ ∇𝑇 . (2.35)
𝑇0 − 𝑇1
The domain should be long enough in order for the outlet not to influence the
flow near the expansion. The present results were obtained with 𝐿/𝑆 = 70. The
domain length before the expansion has little impact on the laminar solution; here
we let 𝐿0 = 𝑆. The results did not change when we ran the same simulation with
𝐿/𝑆 = 55.
Of course this does not mean that the flow is fully developed near the outlet. Far
from the expansion, the velocity and temperature approach the analytical solutions
2
3 𝑢̄ 𝑦−𝑆
lim 𝑢1 = (1 − ( ) ) ,
𝑥/𝑆→∞ 2 2 𝑆 (2.36)
lim 𝑇 = 𝑇1 ,
𝑥/𝑆→∞
giving
𝜈/𝑆 96
lim 𝑓D = 24 = ,
𝑥/𝑆→∞ 𝑢/2
̄ Re (2.37)
lim Nu = 0 ,
𝑥/𝑆→∞
2.7. Test Case: A Heated Backwardfacing Step 25
Figure 2.2: Computational mesh for the backwardfacing step near the expansion edge.
(For comparison, the Darcy friction factor for laminar flow in a circular channel [i.e.,
HagenPoiseuille flow] is 𝑓D = 64/Re.) The results will show that 𝑓D and Nu are
not close to these values near our outlet.
Fig. 2.2 shows the structured mesh. The mesh is refined near the expansion
edge. There are approximately 35k elements, with a secondorder polynomial ap
proximation for the mass flux, pressure, and enthalpy, resulting in approximately
210k degrees of freedom per unknown.
An accurate solution depends on a sufficiently fine mesh near the expansion
edge. The wall shear stress at the inlet is
(in)
(in) 𝜕𝑢1 𝜇𝑢̄ 𝜇2
𝜏w =𝜇 | =6 = 3 Re 2 , (2.38)
𝜕𝑦 𝑆 𝜌𝑆
𝑦=𝑆
(in)
which can be used to define a wall shear velocity of 𝑢𝜏 ≔ √𝜏w /𝜌 = (𝜈/𝑆)√3 Re,
and a dimensionless wall distance of 𝑦 + ≔ 𝑦𝑢𝜏 /𝜈 = (𝑦/𝑆)√3 Re. The first element
at the wall is placed at 𝑦 + = 1.0.
Fig. 2.3 shows the results for Re = 1 400 and Pr = 0.7132. These conditions
were meant to reproduce one of the numerical test cases by Xie and Xi [58]3 ,
who performed an unsteady simulation with the initial condition 𝑢1 = 0 for 𝑦 < 𝑆,
3 The fact that Pr = 0.7132 in their calculations was obtained from our private correspondence.
26 2. Spatial Discretization with a Discontinuous Galerkin Method
0.2
fD lim fD
x/S→∞
Nu 5
Barkley et al.
0.1
4
2
3
Nu
0.0
fD
2
−0.1
−0.2
0
0 10 20 30 40 50
x/S
Figure 2.3: Steadystate local Darcy friction factor 𝑓D (Eq. 2.34) and local Nusselt number Nu (Eq.
2.35) for the backwardfacing step along the bottom wall. The cross (×) indicates the reattachment
length (where 𝑓D = 0) that was reported by Barkley et al. [61].
(in)
𝑢1 = 𝑢1 for 𝑦 > 𝑆, 𝑢2 = 0, and 𝑇 = 𝑇0 . They reported timeaveraged results.
We performed the same timedependent calculation (with the pressure correction
method that will be the topic of the next chapter), but we found that all transients
die out, and we reached a steady state. Furthermore, our results differ substantially
from Xie and Xi (not shown here). We nevertheless believe our results to be correct
for two reasons. First, several other previous studies have also found a steady
state in 2D at this Reynolds number (e.g., [59, 60]). Second, the location of our
reattachment length (i.e., the largest value of 𝑥 for which 𝑓D = 0) is at 𝑥/𝑆 = 15.342,
which agrees with the value of 𝑥/𝑆 = 15.358 that can be inferred by interpolating
the data from Fig. 5 in Barkley et al. [61].
The numerical fluxes for the convection and diffusion discretizations are based
on the wellknown local LaxFriedrichs and interior penalty methods, but we differ
from the commonly accepted approach of averaging or maximizing the penalty pa
rameters over a region, instead evaluating them in a pointwise manner. The merit
of this is somewhat subjective, though we have argued that pointwise flux defini
tions are more in line with the local nature of the DG method. This is particularly 2
true for the penalty term in the local LaxFriedrichs flux, which is inconsistent for
linear advection when 𝛼 𝐹 is averaged (ref. section 2.5.1, Eq. 2.24). Penalty terms
can have a significant impact on stability, the solution quality, and the stiffness of
the linear system. A numerical comparison between pointwise and averaged or
maximized penalty parameters could therefore be interesting.
The penalty parameter in Eq. 2.16 could be an overestimate of the minimum
value that achieves coercivity of the SIP method, because it was developed for a
nodal basis. For the same minimum polynomial order, our modal basis functions
have a substantially lower maximum polynomial order than the nodal basis functions
(see section 2.1.2). We did not investigate alternative expressions for the penalty
parameter.
The timeindependent test case in section 2.7 shows good agreement with pre
vious literature. It is also fairly simple. The following chapters will feature more
challenging transient simulations, which double as further verification and validation
of the spatial discretization that is described here.
References
[1] A. Hennink, M. Tiberga, and D. Lathouwers, A Pressurebased solver for low
Mach number flow using a discontinuous Galerkin method, Journal of Compu
tational Physics 425, 109877 (2021).
[3] M. Dumbser, D. S. Balsara, E. F. Toro, and C.D. Munz, A unified framework for
the construction of onestep finite volume and discontinuous Galerkin schemes
on unstructured meshes, Journal of Computational Physics 227, 8209 (2008).
[5] K. Shahbazi, An explicit expression for the penalty parameter of the interior
penalty method, Journal of Computational Physics 205, 401 (2005).
[9] B. Krank, M. Kronbichler, and W. A. Wall, Wall modeling via function enrich
ment within a highorder DG method for RANS simulations of incompressible
flow, International Journal for Numerical Methods in Fluids 86, 107 (2018).
[15] V. John, Finite Element Methods for Incompressible Flow Problems, Springer
Series in Computational Mathematics (Springer, Cham, 2016).
[18] K. Shahbazi, A Parallel HighOrder Discontinuous Galerkin Solver For the Un
steady Incompressible NavierStokes Equations in Complex Geometries, Phd
thesis, University of Toronto (2007).
[37] E. Ferrer and R. H. J. Willden, A high order Discontinuous Galerkin Finite El
ement solver for the incompressible NavierStokes equations, Computers &
Fluids 46, 224 (2011).
[44] C. Geuzaine and J. F. Remacle, Gmsh: A 3D finite element mesh genera
tor with builtin pre and postprocessing facilities, International Journal for
Numerical Methods in Engineering 79, 1309 (2009).
H. Zhang, and H. Zhang, PETSc Users Manual, Tech. Rep. ANL95/11 Revi
sion 3.9 (Argonne National Laboratory, 2018).
[47] G. Karypis and V. Kumar, A Fast and High Quality Multilevel Scheme for
Partitioning Irregular Graphs, SIAM Journal on Scientific Computing 20, 359
(1998).
[48] P. Ghysels and W. Vanroose, Hiding global synchronization latency in the pre
conditioned Conjugate Gradient algorithm, Parallel Computing 40, 224 (2014).
[58] W. A. Xie and G. N. Xi, Fluid flow and heat transfer characteristics of separation
2 and reattachment flow over a backwardfacing step, International Journal of
Refrigeration 74, 177 (2017).
[59] A. Fortin, M. Jardak, J. J. Gervais, and R. Pierre, Localization of Hopf bifur
cations in fluid flow problems, International Journal for Numerical Methods in
Fluids 24, 1185 (1997).
3.1. Introduction
This chapter treats the temporal discretization of the transport equations 1.1a–
1.1c with a constant density. The test cases at the end of this chapter use the
discontinuous Galerkin method that was described in chapter 2, which provides
additional confidence in the spatial discretization. This chapter can nevertheless be
read independently.
We assume that the boundary of Ω does not depend on 𝑡, so that the spatial
and temporal discretizations can be entirely uncoupled. The more general moving
boundary problem has previously been approached with a spacetime discontinuous
Galerkin method [2–4]. Our independent variables lie in the spacetime cylinder
(𝑡, 𝐫) ∈ (0, 𝑇) × Ω, which suggests time stepping with a simple finite difference
method.
𝑞
where 𝐦𝑛 is the mass flux at time step 𝑛. The weights {𝛾𝑖 }𝑖=0 are listed in Table
3.1.
If the density depends on the temperature, then the temporal discretization of
the enthalpy equation becomes more involved, as will be explained in great detail in
Parts of this chapter have been published in [1].
33
34 3. Pressure Correction
Table 3.1: Coefficients for the backward difference formula of various orders.
𝛾0 𝛾1 𝛾2 𝛾3
BDF1 1 1
BDF2 3/2 2 1/2
BDF3 11/6 3 3/2 1/3
chapter 4. In this chapter 𝜌 is simply constant, and so the finite difference scheme
3 for 𝜕(𝜌ℎ)/𝜕𝑡 is straightforward.
The fully discrete transport equations can be written as
For the constantdensity flow in this chapter, 𝑻 = 𝜌𝑴. For the variabledensity
flow in the next chapter, 𝑻 depends on how (𝜌ℎ)𝑛 is approximated (see section
4.3);
• 𝒓 corresponds to the rhs of the discrete continuity equation (Eq. 2.7);
• 𝒇, and 𝒒 collect various explicit terms, including those from the temporal
discretization, and from the boundary conditions.
3.2. Pressure Correction Method 35
The matrices 𝑴 and 𝑫 and the vector 𝒓 do not depend on the unknowns (𝒑, 𝒎, 𝒉),
but the other terms depend on the fluid properties, and therefore on 𝒉. The most
important nonlinearity is due to 𝑵, which depends on the convective field (1/𝜌)𝑚.
The pressurebased linear system 3.2a–3.2b for the discrete continuity and mo
mentum equations is very stiff, because the equations form a saddle point problem.
Therefore these equations are approximated with a timesplitting method, as ex
plained in the following section.
We use a secondorder BDF2 scheme (𝑞 = 2 in Eqs. 3.1 and 3.3), thereby fol
lowing previous DG literature (e.g., [5–7]). Discontinuous Galerkin methods for the
NavierStokes equations have traditionally been associated with highorder tempo
3
ral accuracy, which can easily be achieved in densitybased formulations that solve
a coupled system of transport equations. However, splitting methods have an in
herent error of order 3/2 in the 𝐻1 norm [8], so that highorder BDF schemes have
no merit.
𝛾0
( 𝑴 + 𝑵) 𝒎̂ = −𝑫⊺ 𝒑̂ + 𝒇 . (3.4)
𝛿𝑡
These are then corrected to find the solutions at the new time step:
𝒑𝑛 = 𝒑̂ + 𝛿𝒑 , (3.5)
𝑛
𝒎 = 𝒎̂ + 𝛿𝒎 . (3.6)
Subtracting Eq. 3.4 from Eq. 3.2b gives ((𝛾0 /𝛿𝑡)𝑴 + 𝑵) 𝛿𝒎 = −𝑫⊺ 𝛿𝒑. The idea
of the pressure correction method is that 𝑵 𝛿𝒎 is of a higher order in 𝛿𝑡 than the
other terms, and therefore it can be neglected, giving
𝛿𝑡 −1 ⊺
𝛿𝒎 = − 𝑴 𝑫 𝛿𝒑 . (3.7)
𝛾0
36 3. Pressure Correction
This approximation means that the momentum equation 3.2b is not exactly satis
fied by the solution pair (𝒑𝑛 , 𝒎𝑛 ), though it can be made to satisfy the continuity
equation 3.2a exactly. Leftmultiply Eq. 3.7 by 𝑫 and use Eq. 3.2a to eliminate
𝑫𝒎𝑛 , to find
𝛿𝑡
𝑪𝒑𝑛 + 𝒓 − 𝑫𝒎̂ = − 𝑫𝑴−1 𝑫⊺ 𝛿𝒑 , (3.8)
𝛾0
which can be rearranged to
𝛾0 𝛾0
3 (𝑨LDG +
𝛿𝑡
𝑪) 𝛿𝒑 =
𝛿𝑡
(−𝒓 + 𝑫𝒎̂ − 𝑪𝒑)
̂ (3.9)
with
𝑨LDG ≔ 𝑫𝑴−1 𝑫⊺ . (3.10)
In the seminal paper on this method, Chorin [10] simply had 𝒑̂ = 0, but it was
shown later that the incremental approach with 𝒑̂ = 𝒑𝑛−1 is more accurate [11], and
that is what we use. It may be tempting to use a higherorder approximation of 𝒑𝑛
for 𝒑,̂ but this is only conditionally stable [8]. If the convection and the diffusion of
the momentum are treated in a timeexplicit manner, then 𝑵 = 0, and the pressure
correction method yields an exact solution to Eqs. 3.2a–3.2b, regardless of the
choice of 𝒑.̂
Splitting the momentum and continuity equations has created the need for ar
tificial initial and boundary conditions for the pressure, which are not present in
the original system of equations (at least not on Dirichlet boundaries). The initial
condition is not a practical problem; the pressure can be inferred from the initial
condition for the mass flux, or the pressure correction method can be iterated within
the first time step. Often the initial transient behavior is not physically relevant, in
which case one can also just set 𝒑0 = 0.
The pressure boundary condition would have been explicit if the pressure correc
tion method had been derived at the differential level from the continuous equations
1.1a–1.1b. This would have resulted in a continuous Poisson equation (∇2 𝑝 = …)
that needs to be supplemented with boundary conditions before it can be dis
cretized. This could be seen as an argument in favor of ‘algebraic’ splitting methods,
which are derived from the coupled discrete linear system 3.2a–3.2b, as was done
above. Nevertheless, even the discrete Poissonlike pressure equation 3.9 contains
implicit artificial boundary conditions, which are inherent to the construction of the
discrete divergence operator 𝑫 in Eq. 2.5.
In fact, Shahbazi et al. [5] have pointed out that 𝑨LDG (Eq. 3.10) is effectively
a local discontinuous Galerkin (LDG) discretization for a diffusion operator with ho
mogeneous Neumann boundary conditions at the walls and the inlet, so it can be
replaced by an SIP diffusion operator
which has a smaller stencil (as was discussed in section 2.1.1). Note that 𝑨SIP
is equipped with explicit boundary conditions, and the timesplitting scheme is no
3.2. Pressure Correction Method 37
longer of the algebraic kind. A consequence of using this SIP pressure matrix is that
the continuity equation 3.2a does not hold exactly. In the test cases that follow, we
have not noticed a difference between using LDG and SIP pressure discretizations,
which is in line with previous findings (e.g., [12, pp. 33–45]).
It has long been known that the artificial boundary condition is one of the main
drawbacks of timesplitting methods [13]. It creates a numerical boundary layer
that prevents the pressure from converging with secondorder temporal accuracy
in the 𝐿2 norm. The velocity is secondorder accurate in time in the 𝐿2 norm, but
not in the 𝐻1 norm [14].
This problem of a numerical boundary layer can be remedied with the socalled
3
rotational pressure correction method that was introduced by Timmermans et al.
[15], and popularized by a rigorous error analysis due to Guermond and Shen [14].
They showed that the rotational correction results in a consistent pressure bound
ary condition, and that this improves the orders of convergence for the pressure in
the 𝐿2 norm, and the velocity in the 𝐻1 norm, with the exact orders depending on
the geometry and the type of boundary conditions. See also the extensive numer
ical tests and heuristic explanation in [16]. Piatkowski et al. [17] have combined
rotational pressure correction with a discontinuous Galerkin method for the spatial
discretization.
While these works have demonstrated a substantial improvement of the tempo
ral error, they are based on the assumption of a homogeneous density and viscosity.
Deteix and Yakoubi [18] have shown how to incorporate a variable viscosity, at the
expense of having to solve two poisson equations for every pressure correction
step. We have not extended the rotational pressure correction method to our DG
solver with a variable viscosity.
𝑛
In summary, our algorithm to find the solution vectors 𝒑𝑛 , 𝒎𝑛 , 𝒉 at a new time
step 𝑛 is as follows.
4. Solve the pressure Poisson equation 3.9 for 𝛿𝒑, possibly replacing the LDG
discretization by an SIP method (Eq. 3.11), and correct the pressure and the
mass flux with Eqs. 3.5–3.7.
38 3. Pressure Correction
The manufactured solutions in section 3.3 will show full secondorder temporal
accuracy in the enthalpy and the mass flux, even if the fluid properties are non
trivial functions of the enthalpy.
2
‖𝜙 − 𝜙ex ‖2 ∑𝑇∈𝒯 ∫𝑇 (𝜙 − 𝜙ex )
= √ 2 (3.13)
‖𝜙ex ‖2 ∫ (𝜙ex ) Ω
for a quantity 𝜙 with an exact solution 𝜙ex . Each integral in the numerator is evalu
ated with a numerical quadrature, resulting in a large sum over the squares of small
numbers. A naive implementation gives very large rounding errors. We therefore
perform the double summation over the elements and the quadrature points with
the Kahan summation algorithm [19] and a 128bit floating point number.
All integrals in the weak forms are evaluated with a quadrature set with the
usual polynomial accuracy of (3𝒫𝑚 − 1), and we verified that this is sufficient to
integrate up to machine precision by comparing the results with a higherorder
quadrature set of polynomial accuracy (3𝒫𝑚 + 10). This is not surprising, since the
TaylorGreen vortex solution in section 3.3.1 is smooth, whereas the exact solution
in section 3.3.2 is a polynomial, and so are the corresponding forcing terms.
and 𝑛 must be a positive integer in order for ∫Ω 𝑝 = 0. This solves the transport
equations with 𝐅 = [0, 0] and 𝑄 = 0.
3.3. Verification with Manufactured Solutions 39
Pm = Pp = Ph = 4 Pm = 4, Pp = Ph = 3
10−1 10−1
10−2
kT − T exk2 / kT exk2
10−2
3 10−3 10−3
−4
10
10−4
10−5
10−5
−6
10
10−6
10−2 10−2
ku − uexk2 / kuexk2
10−4 N = 64 10−4
N = 32
N = 16
10−6 N =8 10−6
N =4
100
kp − pexk2 / kpexk2
10−1
10−2
10−3
10−4
10−5
Figure 3.1: Convergence toward the 2D Taylor vortex (Eq. 3.14) at time 𝑡̃ = 1 with temporal refinement
for meshes with 𝑁2 square elements. The black dashed lines indicate ideal secondorder convergence
in 𝛿𝑡.
3.3. Verification with Manufactured Solutions 41
Table 3.2: Convergence toward the TaylorGreen vortex in Eq. 3.14 with spatial refinement, keeping 𝛿𝑡
fixed. The data in the last two blocks are taken from the highest temporal refinement in Fig. 3.1.
(0,1) (L,1)
Ny elements
y
x
(0,-1) (L,-1)
3 Figure 3.2: Domain of the manufactured solutions in Sections 3.3.2 and 4.5.1.
of the constant [2, 0] to 𝐦ex ensures that 𝑚1 > 0 everywhere, so that there is no
backflow at the outlet, and no outflow at any of the Dirichlet boundary conditions.
The density is 𝜌 = 1, but the transport properties are nontrivial: 𝜇 = 0.1 + 𝑇(1 − 𝑇)
and 𝑘 = 𝜇𝑐𝑝 /Pr, with Pr = 1. The solution is depicted in Fig. 3.3.
Fig. 3.4 displays the temporal convergence. We consider various meshes, vary
ing the number of elements and the spatial polynomial orders. The equalorder
case does not appear to suffer from the infsup instability for small 𝛿𝑡. The velocity
and the temperature converge with secondorder accuracy in 𝛿𝑡 until the error sat
urates when the spatial error starts to dominate the temporal error. The order of
convergence for the pressure is slightly lower, in the range [1.5,2.0]. These orders
of convergence for the velocity and pressure agree with what is found in previous
literature on constantproperty incompressible flows (e.g., [5], [20]).
The spatial rates of convergence are in Table 3.3. As the mesh is refined, the
mixedorder discretization displays 𝒪 (𝓁𝒫+1 ) convergence for all quantities of poly
nomial order 𝒫, though the convergence rate of the velocity saturates at high spa
tial refinement, as the temporal error starts to become significant. The equalorder
discretization has the same convergence rates, meaning that the velocity shows
hyperconvergence, with the error in 𝑢 behaving as 𝒪 (𝓁𝒫𝑢 +2 ).
(a) 𝑢1 .
(b) 𝑢2 .
(c) Kinematic viscosity (𝜈) and thermal diffusivity (𝛼). (Note that Pr = 1, so 𝛼 = 𝜈.)
Pm = Pp = Ph = 1 Pm = 2, Pp = Ph = 1
−1
10
10−1
kT − T exk2 / kT exk2
10−2
10−2
3
10−3 10−3
10−4 10−4
10−5 10−5
22 23 24 25 26 27 28 29 210 211 212 22 23 24 25 26 27 28 29 210 211 212
100 100
ku − uexk2 / kuexk2
10−1 10−1
Ny = 64 10−2
10−2
Ny = 32
Ny = 16 10−3
10−3
Ny =8
Ny =4 10−4
10−4
Ny =2
10−5
10−5
2 3 4 5 6 7 8 9 10 11 12
2 2 2 2 2 2 2 2 2 2 2 22 23 24 25 26 27 28 29 210 211 212
10−1 10−1
10−2 10−2
kp − pexk2 / kpexk2
10−3 10−3
10−4 10−4
10−5 10−5
Figure 3.4: Convergence of the numerical solution toward the constantdensity manufactured solution
(Eq. 3.16) with temporal refinement. The characteristic element length is inversely proportional to 𝑁𝑦 .
The black dashed lines indicate ideal secondorder convergence in 𝛿𝑡.
3.4. Validation with Flow Past a Circular Obstacle 45
Table 3.3: Convergence toward the constantdensity manufactured solution in Eq. 3.16 (Fig. 3.3) with
spatial refinement and fixed 𝛿𝑡 = 2−12 .
L0 L
H
y
D
H
Figure 3.5: Geometry of flow past a circular cylinder (not to scale). The cylindrical obstacle is centered
at the origin.
46 3. Pressure Correction
requirement for the initial condition at the boundaries. Due to the instant smooth
ing property of the viscous operator, the velocity satisfies the Dirichlet boundary
conditions when the convective term is ‘activated’ after the first 10 time steps. This
causes an instantaneous change in the pressure, but that is neither unphysical in
the incompressible flow limit, nor is it a problem for the pressure correction method.
Second, we found that the combination of a symmetrical mesh and a symmetrical
initial condition does not induce vortex shedding. This is addressed by letting the
cylinder rotate counterclockwise for the first 100 time steps.
We are interested in the force on the cylinder 𝑆, which is given by
3
𝐅(cyl) = − ∫ (𝜏 − 𝑝 𝐼) ⋅ 𝐧 , (3.17)
𝜕𝑆
where 𝐧 is the outward normal of the fluid, pointing into the cylinder. The drag and
the lift coefficients are
(cyl) (cyl)
2 𝐹1 2 𝐹2
𝐶D = and 𝐶L = (3.18)
𝐷 (𝜌𝑢2 )∞ 𝐷 (𝜌𝑢2 )∞
respectively. At our Reynolds number, the flow is laminar, and the force oscillates
in time in a smooth, deterministic manner. This makes it easy to determine the
frequency 𝑓 of the lift coefficient, and the corresponding Strouhal number St ≔
𝑓𝐷/𝑢∞ .
Our numerical experiments indicate that a small domain results in an overesti
mation of the Strouhal number. This likely explains the large discrepancy in the nu
merical predictions of the Strouhal number in previous literature; see Niroobakhsh
et al. [21] for an overview. Collis [22] showed that a domain of (𝐻, 𝐿0 , 𝐿) =
(30𝐷, 15𝐷, 30𝐷) was sufficient for isothermal flow at Re = 100 and a Mach num
ber of 0.2. The results presented here were obtained on a domain of (𝐻, 𝐿0 , 𝐿) =
(40𝐷, 20𝐷, 40𝐷). The domain could probably be substantially smaller if the upper
and lower part were connected with periodic boundary conditions, but DGFlows
did not support this yet when the calculations were done.
Fig. 3.6 shows the mesh. It has approximately 27k elements with 𝒫𝑚 = 2 and
𝒫𝑝 = 𝒫ℎ = 1, resulting in approximately 160k degrees of freedom per direction of
the mass flux, and 64k degrees of freedom for 𝑝 and ℎ. There are 120 boundary
elements at the cylinder, each with a width of 0.005𝐷. The time step is given by
𝐷/(𝛿𝑡 𝑢∞ ) = 82. We find St = 0.166. This number remained unchanged when we
decreased the number of elements to 19k, or when we doubled 𝛿𝑡. It compares
well with the experimental values of St = 0.165 in [23], St = 0.165 in [24], and
St = 0.167 in [25, p. 71].
3.5. Discussion
The tests with the manufactured solutions in section 3.3 show secondorder tempo
ral accuracy in the 𝐿2 norm for the velocity and the temperature. This observation
is based on simulations on many levels of spatial discretization, and time step sizes
3.5. Discussion 47
Z X
Y
Z
Figure 3.6: Mesh for flow past an obstacle. It is structured near the cylinder and most of its wake. The
rest of the mesh is unstructured to allow for large differences in the element size. It is symmetrical
about the axis 𝑦 = 0.
48 3. Pressure Correction
that span many orders of magnitude (ref. Figs. 3.1 and 3.4). Even the pressure is
not far from secondorder accurate in 𝛿𝑡.
An important and obvious improvement is the rotational formulation of the pres
sure correction method, as explained in section 3.2. Even though this requires two
poisson solves per iteration in the case of a nonhomogeneous viscosity, previous
works suggests that the improved accuracy would be worth the cost.
References
[1] A. Hennink, M. Tiberga, and D. Lathouwers, A Pressurebased solver for low
Mach number flow using a discontinuous Galerkin method, Journal of Compu
tational Physics 425, 109877 (2021). 3
[2] C. M. Klaij, J. J. W. van der Vegt, and H. van der Ven, Spacetime discontin
uous Galerkin method for the compressible NavierStokes equations, Journal
of Computational Physics 217, 589 (2006).
[9] F. Saleri and A. Veneziani, Pressure Correction Algebraic Splitting Methods for
the Incompressible NavierStokes Equations, SIAM Journal on Numerical Anal
ysis 43, 174 (2005).
[10] A. J. Chorin, A numerical method for solving incompressible viscous flow prob
lems, Journal of Computational Physics 2, 12 (1967).
[11] M. O. Henriksen and J. Holmen, Algebraic Splitting for Incompressible Navier
Stokes Equations, Journal of Computational Physics 175, 438 (2002).
50 References
[25] A. Roshko, On the development of turbulent wakes from vortex streets, Phd
thesis, California Institute of Technology (1952).
[26] N. Fehn, P. Munch, W. A. Wall, and M. Kronbichler, Hybrid multigrid methods
for highorder discontinuous Galerkin discretizations, Journal of Computational
Physics 415, 109538 (2020).
[27] J.L. Guermond and L. Quartapelle, On stability and convergence of projec
tion methods based on pressure Poisson equation, International Journal for
Numerical Methods in Fluids 26, 1039 (1998). 3
[28] N. Fehn, W. A. Wall, and M. Kronbichler, On the stability of projection methods
for the incompressible NavierStokes equations based on highorder discon
tinuous Galerkin discretizations, Journal of Computational Physics 351, 392
(2017).
[29] E. Ferrer and R. H. J. Willden, A high order Discontinuous Galerkin Finite El
ement solver for the incompressible NavierStokes equations, Computers &
Fluids 46, 224 (2011).
[30] K. Shahbazi, A Parallel HighOrder Discontinuous Galerkin Solver For the Un
steady Incompressible NavierStokes Equations in Complex Geometries, Phd
thesis, University of Toronto (2007).
Handling the Enthalpy
4
Equation for LowMach
Number Flow
4.1. Introduction
4.1.1. In Between Compressible and Incompressible
Several lowspeed flows of practical importance are compressible, that is, the veloc
ity is not divergencefree. This can occur due to mixing, or due to a temperature
dependent density near a heat source. An example is heat transfer in lowMach
number flows of supercritical fluids, where all fluid properties vary strongly with the
temperature, but do not depend significantly on the pressure. Most flow solvers
use either a pressurebased approach and assume a divergencefree velocity field,
or a fully compressible (densitybased) formulation. Neither of these methods is
directly applicable to compressible flows in the lowMach number limit.
Densitybased solvers can be used to simulate zeroMach flows by approximating
the flow with a low, nonzero Mach number (e.g., [2], [3]). This has often been
used for heat transfer in supercritical fluids at low speeds (e.g., [4], [5]). This is
expensive for several reasons. First, the temporal discretization needs to resolve
acoustic effects, and the resulting linear systems tend to be very stiff. Second, the
system of transport equations is solved in a coupled way, which is more expensive
than using a timesplitting method, though the performance may be improved with
suitable preconditioning [6]. Finally, the fluid properties are evaluated as a function
of two thermodynamic variables (usually the density and the volumetric enthalpy),
so that a spline interpolation costs far more memory, thus complicating massively
parallel calculations [4].
Parts of this chapter have been published in [1]
53
54 4. Handling the Enthalpy Equation for LowMach Number Flow
Dℎ 𝜕ℎ 1 𝑘 1
≔ + 𝐮 ⋅ ∇ℎ = ∇ ⋅ ( ∇ℎ) + 𝑄 , (4.1)
D𝑡 𝜕𝑡 𝜌 𝑐𝑝 𝜌
would pose two possible problems. First, the diffusive term is not in the standard
form ∇ ⋅ (𝛼∇ℎ) where 𝛼 ≔ 𝑘/ (𝜌𝑐𝑝 ) is the thermal diffusivity. The difference is
1 𝑘 1 𝑘
∇ ⋅ ( ∇ℎ) − ∇ ⋅ (𝛼∇ℎ) = − (∇ ) ⋅ ∇ℎ = 𝛼 𝐝 ⋅ ∇ℎ , (4.2)
𝜌 𝑐𝑝 𝜌 𝑐𝑝
where
1 𝜌ℎ
𝐝≔ ∇𝜌 = ∇ℎ (4.3)
𝜌 𝜌
is the relative gradient of the density (as in Eq. 2.13). Perhaps the commutation
error in Eq. 4.2 can be neglected in many flows. It is also possible that the diffusion
term in Eq. 4.1 can be discretized by a standard interior penalty method with a
diffusion parameter of 𝑘/𝑐𝑝 , except that the test function is weighed by 1/𝜌.
A more fundamental problem with the primitive transport equation 4.1 is posed
by the advection term. It is not in conservative form, as in Eq. 2.18, and so we do
4.1. Introduction 55
𝐮 ⋅ ∇ℎ = ∇ ⋅ (𝐮 ℎ) − ℎ∇ ⋅ 𝐮 . (4.4)
The first term on the right is in standard form, whereas the second term resem
bles the divergence of the mass flux in the continuity equation, but we are not
sure how to proceed from there. We therefore solve the transport equation in the
conservative form 1.1c.
For highMach number compressible flows, the unknown is normally taken to
be a conserved variable, such as the volumetric enthalpy 𝐻 ≔ 𝜌ℎ. When written in
that variable, the transport equation becomes
𝜕𝐻 1 𝑘 𝐻
+ ∇ ⋅ ( 𝐦 𝐻) = ∇ ⋅ ( ∇ ( )) + 𝑄 . (4.5)
𝜕𝑡 𝜌 𝑐𝑝 𝜌 4
The diffusion term is again not in the standard form (due to the factor of 1/𝜌), in
direct analogy to when the viscous stress tensor is expressed in terms of a conserved
variable (𝑚), as was discussed in section 2.3.1. The generalization of the symmetric
interior penalty method for the viscous stress could also be applied here. That is,
one starts from a standard discretization for ∇ ⋅ (𝛼∇𝐻), and wherever the stress
𝛼∇𝐻 would appear in the weak form, it is replaced by 𝛼 (∇𝐻 + 𝐻𝐝).
Incidentally, there is a curious alternative interpretation of the effect of the vari
able density on the thermal diffusion, namely that it results in an extra advective
flux. Substituting Eq. 4.2 into Eq. 4.1 gives
𝜕ℎ 1
+ 𝐮+
eff ⋅ ∇ℎ = ∇ ⋅ (𝛼∇ℎ) + 𝑄 , (4.6)
𝜕𝑡 𝜌
where
𝐮±
eff = 𝐮 ∓ 𝛼𝐝 = 𝐮 ± 𝛽𝛼∇𝑇 (4.7)
is the effective advecting velocity, and 𝛽 ≔ −(1/𝜌)𝜌𝑇 is the thermal expansibil
ity. Similarly, the conservative transport equation 4.5 has a diffusion term with
commutation error
𝑘 𝐻
∇⋅( ∇ ( )) − ∇ ⋅ (𝛼∇𝐻) = −∇ ⋅ (𝐻𝛼𝐝) = ∇ ⋅ (𝐻𝛼𝛽∇𝑇) , (4.8)
𝑐𝑝 𝜌
so that
𝜕𝐻
+ ∇ ⋅ (𝐮−
eff 𝐻) = ∇ ⋅ (𝛼∇𝐻) + 𝑄 . (4.9)
𝜕𝑡
(Note the different signs of the advection correction ±𝛼𝛽∇𝑇 in Eqs. 4.6 and 4.9.)
This observation is probably only of theoretical significance, though the equa
tions with an adjusted advecting velocity could also be used for the discretization.
The extra term 𝛽𝛼∇𝑇 can treated explicitly (i.e., extrapolated from previous time
steps). Since (𝐮eff 𝐻 − 𝛼∇𝐻) ⋅ 𝐧 = (𝐮 𝐻 − (𝑘/𝑐𝑝 ) ∇ℎ) ⋅ 𝐧, the boundary contributions
in the weak forms are the same as for the regular equation 1.1c. Our brief tests
56 4. Handling the Enthalpy Equation for LowMach Number Flow
(not shown here) suggest that this is feasible, and secondorder temporal accuracy
for the enthalpy is maintained in the 𝐿2 norm.
Coming back to the question of which equation to solve for which unknown,
the main problem with the volumetric enthalpy is that it is not unique to a par
ticular thermodynamic state, which will be a recurring theme in this chapter. The
combination of the specific enthalpy ℎ (or, equivalently, the temperature) and the
thermodynamic pressure 𝑝th fixes the thermodynamic state, but the pair (𝐻, 𝑝th )
does not always do this, making 𝐻 an inconvenient thermodynamic variable. This
problem is not encountered by compressible flow solvers at high Mach numbers,
because they solve a transport equation for both 𝐻 and 𝜌, which implies a specific
enthalpy ℎ from which the fluid properties can be derived.
For example, consider an ideal gas with a specific gas constant 𝑟:
any predictor solves or iterations to handle the unknown density at a new time step.
We will show that the error in our approximation can be made negligible compared
to the error in the finite difference scheme, and that the method can be made
unconditionally stable by offsetting the specific enthalpy with a constant.
could be undefined, or very badly conditioned, since |(𝜌ℎ)𝜌 | can be arbitrarily small.
This problem of a nonunique volumetric enthalpy (𝜌ℎ) will return later in this chap
ter. Perhaps Eq. 4.14 could be used if (𝜌ℎ)𝜌 is made nonzero by a suitable enthalpy
offset, as in section 4.3.2.
Due to the variable density, this equation is not linear in the unknown ℎ𝑛 . We
therefore consider two linearizations in ℎ𝑛 , which we term method #1 and method
#2.
4.3. Linearizing the Temporal Derivative of the Enthalpy 59
Both of these methods use a predictor ℎ∗ and a corresponding 𝜌∗ that are close to
ℎ and 𝜌𝑛 . This predictor can be obtained in several ways, such as by extrapolating
𝑛
from previous time steps. When solving the full system 1.1a1.1c, a predictor for
𝜌𝑛 can also be obtained by solving the continuity equation. The analyses in this
section are for a general (ℎ∗ , 𝜌∗ ), though we will make the reasonable assumption
that (ℎ∗ − ℎ𝑛 ) is at least firstorder accurate in 𝛿𝑡.
The two linearization methods are as follows.
Method #1 is perhaps the most obvious approach: let 𝜌𝑛 ≈ 𝜌∗ , resulting in an
approximation ℎ[1] ≈ ℎ𝑛 that is given by
𝑞
𝛾0 ∗ [1] 𝛾𝑖 𝑛−𝑖
𝜌 ℎ +∑ (𝜌ℎ) = −𝜆ℎ[1] + 𝑄𝑛 . (4.17)
𝛿𝑡 𝛿𝑡
𝑖=1
𝑛
4
Method #2 is based on a Taylor expansion of (𝜌ℎ) about the predictor:
∗ ∗ ∗
(𝜌ℎ)𝑛 ≈ (𝜌ℎ)∗ + (𝜌ℎ)ℎ (ℎ𝑛 − ℎ∗ ) = (𝜌ℎ)ℎ ℎ𝑛 − (ℎ2 𝜌ℎ ) . (4.18)
Substituting this into Eq. 4.16 yields an approximation ℎ[2] ≈ ℎ𝑛 , given by
𝑞
𝛾0 ∗ 𝛾𝑖 𝑛−𝑖 𝛾0 2 ∗
(𝜌ℎ)ℎ ℎ[2] + ∑ (𝜌ℎ) = (ℎ 𝜌ℎ ) − 𝜆ℎ[2] + 𝑄𝑛 . (4.19)
𝛿𝑡 𝛿𝑡 𝛿𝑡
𝑖=1
Define the following deviations from the nonlinear finite difference equation 4.16:
error in the predictor: 𝜖 ∗ ≔ ℎ∗ − ℎ𝑛 ,
linearization error in method #1: 𝜖 [1] ≔ ℎ[1] − ℎ𝑛 , (4.21)
[2] [2] 𝑛
linearization error in method #2: 𝜖 ≔ℎ −ℎ .
The derivations are tedious, and deferred the appendix at the end of this chapter.
Here we summarize the main theoretical results.
The first result is an a priori error estimate. Appendix A shows that both Eq.
4.17 and Eq. 4.19 can be rewritten as
𝑞
𝛾0 𝑛 𝛾𝑖 𝑛−𝑖 𝑛
(𝜌ℎ) + ∑ (𝜌ℎ) = −𝜆eff ℎ𝑛 + 𝑄eff , (4.22)
𝛿𝑡 𝛿𝑡
𝑖=1
60 4. Handling the Enthalpy Equation for LowMach Number Flow
where
2 𝑛 2
𝜆eff = 𝜆 + 𝒪 (𝜖 ∗ /𝛿𝑡) and 𝑄eff = 𝑄𝑛 + 𝒪 (𝜖 ∗ /𝛿𝑡) for method #1, (4.23a)
and
3 𝑛 3
𝜆eff = 𝜆 + 𝒪 (𝜖 ∗ /𝛿𝑡) and 𝑄eff = 𝑄𝑛 + 𝒪 (𝜖 ∗ /𝛿𝑡) for method #2. (4.23b)
That is, the approximations in method #1 and #2 are equivalent to the original Eq.
4.16, except that 𝜆 and 𝑄𝑛 are replaced by their effective values, which are related
to the error in the predictor.
A second important result regards the stability of the linearization methods.
Appendix A.1 shows that the error for method #1 is related to the error in the
predictor as
4 𝜖 [1]
= −(
𝜌ℎ ℎ
∗
) + 𝒪 (𝜖 ∗ )
𝜖∗ 𝜌 + 𝜆 (𝛿𝑡/𝛾0 )
∗ (4.24)
𝜌ℎ ℎ
= −( ) + 𝒪 (𝛿𝑡) + 𝒪 (𝜖 ∗ )
𝜌
Note that 𝜖 [1] /𝜖 ∗ vanishes up to first order as ℎ∗ → 0. Eq. 4.24 also suggests that
method #1 cannot always be made stable by iterating within a time step, that is,
by calculating a new predictor 𝜌∗ from the estimate ℎ[1] , and repeating Eq. 4.17.
Stability of the iteration is guaranteed if the error in the new approximation is always
smaller than the error in the predictor, that is, |𝜖 [1] | < |𝜖 ∗ |. This condition is only
met if ∗ ∗
𝜌 𝑐𝑝
|ℎ∗ | < |− | = ( ) , (4.25)
𝜌ℎ 𝛽
where we have made the reasonable assumptions that 𝜖 ∗ = 𝒪 (𝛿𝑡), and that 𝜌ℎ < 0.
If Eq. 4.25 is not met at every step in the iteration, then it may not converge.
Similarly, iterating method #2 within a time step is stable if |𝜖 [2] | < |𝜖 ∗ |. Ap
pendix A.2 shows that
∗
∗ 𝛿𝑡 𝜖 [2] 1 2
((𝜌ℎ)ℎ + 𝜆) ∗ = (𝜌ℎ + 𝜌ℎℎ ℎ) 𝜖 ∗ + 𝒪 (𝜖 ∗ ) . (4.26)
𝛾0 𝜖 2
Since we can reasonably expect that the error in the predictor (𝜖 ∗ ) is at least first
order accurate in 𝛿𝑡, we always have |𝜖 [2] | < |𝜖 ∗ | (and therefore a stable iteration)
in the limit 𝛿𝑡 → 0, provided that
∗
(𝜌ℎ)ℎ ≠ 0 . (4.27)
In other words, the volumetric enthalpy (𝜌ℎ) must be a strictly monotonic function
of the specific enthalpy ℎ.
This restriction for method #2 also follows more directly from Eq. 4.19 in the
limit of small time steps, because the coefficient of ℎ[2] cannot vanish. In practice
one will want to satisfy the stronger relation
(𝜌ℎ)ℎ > 0 (4.28)
4.3. Linearizing the Temporal Derivative of the Enthalpy 61
̃
𝜕(𝜌ℎ) 𝑘
ℎ0 𝑅 + + ∇ ⋅ (𝐦 ℎ) ̃ +𝑄 ,
̃ = ∇ ⋅ ( ∇ℎ) (4.30)
𝜕𝑡 𝑐𝑝
We cannot know in advance whether this will be satisfied at all time steps. There
is therefore no a priori value for ℎ0 that guarantees stability, though it seems that
ℎ0 is best chosen such that ℎ ≈ ℎ0 at the average temperature.
Conversely, we can find an a priori lower bound for ℎ0 when using method #2.
The stability guarantee (Eq. 4.28) becomes
𝑐𝑝
̃ = (𝜌(ℎ − ℎ0 )) = (𝜌ℎ) − ℎ0 𝜌ℎ > 0
(𝜌ℎ) ⇔ ℎ0 > (𝜌ℎ)𝜌 = ℎ − , (4.32)
ℎ̃ ℎ ℎ 𝛽
𝑐𝑝
ℎ0min = max (𝜌ℎ)𝜌 = max (ℎ − ) , (4.33)
𝑇min ≤𝑇≤𝑇max 𝑇min ≤𝑇≤𝑇max 𝛽
62 4. Handling the Enthalpy Equation for LowMach Number Flow
h0 = hmin
0 − 0.7 hmin
0 h0 = hmin
0
h0 = hmin
0 − 0.3 hmin
0 h0 = hmin
0 + 0.3 hmin
0
125
1.0
100
0.8
ρ(h − h0 ) (MJ/m3 )
75
ρ(h − h0 ) (–)
0.6
50
25 0.4
0 0.2
4 −25
0.0
302 303 304 305 306 307 302 303 304 305 306 307
T (K) T (K)
Figure 4.1: Top: rescaled volumetric enthalpy (𝜌(ℎ − ℎ0 )) of carbon dioxide at the supercritical pressure
of 7.5 MPa, as a function of the temperature for various choices of ℎ0 . Bottom: same data, but with
each line scaled to [0, 1].
The function increases monotonically for ℎ0 ≥ ℎ0min . The thermodynamic reference point is placed at (1
bar, 0 °C). The data are based on [24], accessed through the CoolProp software library [25].
which can of course be negative. Fig. 4.1 shows an example of the rescaled
volumetric enthalpy (𝜌(ℎ − ℎ0 )) for various choices of ℎ0 for a real fluid in the
temperature range (302K, 307K). There is a practical limit on the magnitude of
ℎ0 , because we are solving a transport equation for 𝜌(ℎ − ℎ0 ), which becomes
equivalent to the density 𝜌 for very large values of |ℎ0 |.
On a heuristic level, the change of variables in Eq. 4.29 can be thought of
as a way to discretize something in between the conservative and the primitive
transport equations. The conservative transport equation is merely based on the
conservation of enthalpy, whereas deriving the primitive transport also requires the
conservation of mass. The primitive equation can be obtained by subtracting ℎ𝑅
from the conservative equation. Comparing Eq. 4.30, we are subtracting ℎ0 𝑅 from
the conservative equation, and ℎ0 determines how much of the continuity equation
is used for the enthalpy transport.
Of course a rescaling of the unknowns, such as in Eq. 4.29, is not unknown in
CFD literature, but it has usually been presented as a mere numerical convenience
(e.g., [18]). The above analyses show that the accuracy and stability of the numer
ical scheme depend critically on a proper choice of ℎ0 . In practice this may require
some trial and error, though these analyses offer useful guidelines.
𝜖 [1] ℎ∗
= + 𝒪 (𝛿𝑡) + 𝒪 (𝜖 ∗ ) . (4.34)
𝜖∗ ℎ∗ + ℎ0
Stability for method #1 is guaranteed if |𝜖 [1] /𝜖 ∗ | < 1 for all time steps, which is
equivalent to ℎ∗ /ℎ0 > 1/2. 4
For method #2, the volumetric enthalpy should be a strictly monotonically in
creasing function of the temperature. For an ideal gas, 𝐻𝑇 = 𝜌 (𝑐𝑝 − ℎ/𝑇). In the
case ℎ = 𝑐𝑝 𝑇 − ℎ0 this becomes 𝐻𝑇 = (𝜌/𝑇)ℎ0 , meaning that we must set ℎ0 > 0.
𝜌 = 𝜌0 𝑇 + 𝜌1 (1 − 𝑇) , (4.36)
ℎ = 𝑐𝑝 𝑇 − ℎ0 . (4.37)
The required source term 𝑄(𝑡) follows from Eq. 4.15. For the numerical tests we
let 𝜌0 = 0.5, 𝜌1 = 2, 𝑐𝑝 = 1, and 𝜆 = 0.1. The results presented here were all
obtained at 𝛿𝑡 = 2−11 to investigate the limit of small time steps. We have checked
that lowering the time step size to 𝛿𝑡 = 2−14 does not affect whether the numerical
method is stable. To ensure that rounding errors did not play a significant role with
these tiny time steps, all calculations in this section were performed with 128bit
floating point precision.
The numerical schemes were tested with various orders of the BDF time stepping
scheme. The predictor ℎ∗ is obtained with an 𝑠th order extrapolation from previous
2 Thecode for the finite difference method for the spaceindependent enthalpy equation can be found
on GitHub [26]. It can be used to reproduce the results in this section.
64 4. Handling the Enthalpy Equation for LowMach Number Flow
Table 4.1: Coefficients for extrapolation from previous time steps. (See Eq. 4.38).
𝛼1 𝛼2 𝛼3 𝛼4
EX1 1
EX2 2 1
EX3 3 3 1
EX4 4 6 4 1
Table 4.2: Order of extrapolation for the enthalpy predictor (Eq. 4.38) for the linearization methods
described in Section 4.3. The minimum values satisfy Eq. 4.39; from the maximum value onward, Eq.
4.39 holds with strict inequality.
time steps (denoted by EX𝑠), and the corresponding 𝜌∗ is determined from the
equation of state. Specifically,
𝑠
ℎ = ∑ 𝛼𝑖 ℎ𝑛−𝑖 = ℎ𝑛 + 𝒪 (𝛿𝑡 𝑠 ) .
∗
(4.38)
𝑖=1
or else the linearization error dominates, and the usual order of convergence of
the BDF scheme cannot be achieved. If strict inequality in Eq. 4.39 is satisfied,
then the linearization error is negligible, and increasing the order of extrapolation
is pointless. Table 4.2 lists the range of reasonable extrapolation orders.
Fig. 4.2 shows the error in the numerical temperature as a function of ℎ0 , by
using method #1 (Eq. 4.17). Note how the calculations diverge when ℎ0 is either
4.5. Test Cases with LowMach Number Flow 65
too small or too large. The stability guarantee in Eq. 4.25 cannot be determined a
priori, because ℎ∗ is not known before the calculation. For low extrapolation order,
method #1 sometimes converges even when Eq. 4.25 is not met at all time steps.
According to Table 4.2, the linearization error is negligible compared to the BFD
error for extrapolation orders of at least 2, 3, and 3 for the BDF1, BDF2, and BDF3
schemes. For these cases Eq. 4.25 becomes a strict requirement for stability. Note
that the range of stable values for ℎ0 decreases with higherorder extrapolations,
but all simulations converge with ℎ0 = 0.5, which is the value for which ℎ is closest
to zero.
Fig. 4.3 shows the equivalent error plots for method #2 (Eq. 4.19). For the
current equation of state, we have an explicit, a priori expression for the stability
criterion in Eq. 4.27:
10−4
EX1
10−7
4
10−1
10−4
EX2
10−7
10−1
10−4
EX3
10−7
10−1
10−4
EX4
10−7
-1 0 1 2 3 4 -1 0 1 2 3 4 -1 0 1 2 3 4
h0 h0 h0
Figure 4.2: Error (|𝑇 − 𝑇ex | /𝑇ex ) at 𝑡 = 1 for the test case in Section 4.4 as a function of the enthalpy
offset ℎ0 , using method #1. The red vertical dotted lines bound the values for which Eq. 4.25 held at
all time steps.
4.5. Test Cases with LowMach Number Flow 67
10−3
EX1
10−6
10−9
4
10−3
EX2
10−6
10−9
10−3
EX3
10−6
10−9
10−3
EX4
10−6
10−9
-1 0 1 2 -1 0 1 2 -1 0 1 2
h0 h0 h0
Figure 4.3: Error (|𝑇 − 𝑇ex | /𝑇ex ) at 𝑡 = 1 for the test case in Section 4.4 as a function of the enthalpy
offset ℎ0 , using method #2. The red vertical dotted lines bound the values for which the stability criterion
in Eq. 4.40 is violated at some time 𝑡.
68 4. Handling the Enthalpy Equation for LowMach Number Flow
with 0 < 𝑡 ≤ 1, and the domain is as in section 3.3.2, Fig. 3.2. The addition of
[3/2, 0]⊺ ensures that 𝑚ex
1 > 0, so that there is no outflow at the Dirichlet boundary
condition, and no inflow at the outlet. The density is determined by integrating
(−∇ ⋅ 𝐦) over 𝑡, to find
1 1
𝜌ex = − ( 𝑡4 + 𝑡) (𝑥/𝐿 − 1)2 (2𝑦 + 3/𝐿) + 3 , (4.42)
4 4
4
where the addition of the constant 3 ensures that 𝜌 > 0 everywhere. The specific
heat capacity is constant, so that ℎ = 𝑐𝑝 𝑇 − ℎ0 with 𝑐𝑝 = 1. We use a nonaffine
equation of state: 𝑇 = ((𝜌1 − 𝜌)/(𝜌1 − 𝜌0 ))2 , where 𝜌0 = 2 and 𝜌1 = 4 are lower
and upper bounds for 𝜌, so that the temperature is between 0 and 1. As in Section
3.3.2, the viscosity and conductivity are 𝜇 = 0.1 + 𝑇(1 − 𝑇) and 𝑘 = 𝜇𝑐𝑝 /Pr with
Pr = 1. The solution is depicted in Fig. 4.4.
We base the enthalpy timestepping scheme on a linearization of (𝜌ℎ)𝑛 about
a predictor for ℎ𝑛 , that is, method #2 in Section 4.3. We let ℎ0 = 0.2, so that Eq.
4.28 is satisfied everywhere. Increasing ℎ0 had no noticeable effect. The predictor
ℎ∗ is obtained with a secondorder extrapolation from previous time steps (using
the EX2 weights in Table 4.1). We found that increasing the extrapolation order for
ℎ∗ had no noticeable effect on the stability or the errors, which is in line with the
tests for the BDF2 scheme in Fig. 4.3.
Fig. 4.5 shows the convergence with temporal refinement. The velocity and the
temperature converge with second order, just like for the constantdensity results in
Fig 3.4, though in this case the pressure also shows 𝒪 (𝛿𝑡2 ) behavior. Note that the
mixedorder cases remain fully stable, even for very small 𝛿𝑡, despite the possible
small𝛿𝑡 instability for variabledensity flows that was discussed in Section 4.3.
Fig. 4.6 shows two other examples of temporal convergence with a mixedorder
scheme, but with less effective enthalpy treatments. We found that method #1 was
stable for all ℎ0 ≥ 0, and that the precise value of ℎ0 is of little consequence to the
L2 errors in the final answer. It is clear that the temperature does not converge with
second order when method #1 is used for the enthalpy treatment. The right column
in Fig. 4.6 shows that method #2 can also be unstable when the enthalpy offset is
not sufficiently large (here it is 0.0 instead of 0.2): all quantities still converge with
secondorder accuracy, but the error diverges at small time steps. Some calculations
failed due to numerical backflow at the outlet, which our simple outlet boundary
condition cannot handle.
Table 4.3 collects the spatial convergence rates that were obtained with method
#2 and ℎ0 = 0.2 (i.e., the same conditions are for the temporal convergence in Fig.
4.5). As the mesh is refined, the mixedorder discretization displays 𝒪 (𝓁𝒫+1 ) be
havior for quantities with a polynomial order 𝒫, where 𝓁 ∝ 1/𝑁𝑦 is the characteristic
4.5. Test Cases with LowMach Number Flow 69
0.27 0.29 0.32 0.34 0.36 0.39 0.41 0.43 0.46 0.48 0.5
(a) 𝑢1
-0.16 -0.15 -0.13 -0.11 -0.098 -0.082 -0.065 -0.049 -0.033 -0.016 0
(b) 𝑢2
0.021 0.026 0.032 0.037 0.042 0.048 0.053 0.058 0.063 0.069 0.074
(c) Kinematic viscosity (𝜈) and thermal diffusivity (𝛼). (Note that Pr = 1, so 𝛼 = 𝜈.)
2.5 2.6 2.7 2.8 3 3.1 3.2 3.3 3.5 3.6 3.7
(d) 𝜌
Pm = Pp = Ph = 1 Pm = 2, Pp = Ph = 1
10−2
10−2
kT − T exk2 / kT exk2
10−3 10−3
10−4 10−4
4
10−5
22 23 24 25 26 27 28 29 210 211 212 22 23 24 25 26 27 28 29 210 211 212
100 100
ku − uexk2 / kuexk2
10−1 10−1
Ny = 64
Ny = 32 10−2
10−2
Ny = 16
Ny =8 10−3
10−3
Ny =4
Ny =2 10−4
10−4
22 23 24 25 26 27 28 29 210 211 212 22 23 24 25 26 27 28 29 210 211 212
10−2 10−2
kp − pexk2 / kpexk2
10−3
10−3
10−4
10−4
10−5
10−5
10−6
Figure 4.5: Convergence of the numerical solution toward the variabledensity manufactured solution
(Eq. 4.41) with temporal refinement, using method #2 with ℎ0 = 0.2. The characteristic element length
is inversely proportional to 𝑁𝑦 . The black dashed lines indicate ideal secondorder convergence in 𝛿𝑡.
4.5. Test Cases with LowMach Number Flow 71
10−2 10−2
10−3 10−3
10−4 10−4
4
22 23 24 25 26 27 28 29 210 211 212 22 23 24 25 26 27 28 29 210 211 212
100 100
ku − uexk2 / kuexk2
10−1 10−1
Ny = 32
10−2 Ny = 16 10−2
Ny =8
Ny =4
10−3 10−3
Ny =2
10−2 10−1
kp − pexk2 / kpexk2
10−2
10−3
10−3
10−4
10−4
10−5 10−5
22 23 24 25 26 27 28 29 210 211 212 22 23 24 25 26 27 28 29 210 211 212
1 / δt 1 / δt
Figure 4.6: Equivalent of the mixedorder case (𝒫𝑚 = 2, 𝒫𝑝 = 𝒫ℎ = 1) in Fig. 4.5, but with a different
value of ℎ0 , and comparing method #1 to method #2. The missing values in the figures in the right
column indicate failed calculations.
72 4. Handling the Enthalpy Equation for LowMach Number Flow
Table 4.3: Convergence toward the variabledensity manufactured solution in Eqs. 4.41–4.42 (Fig. 4.4)
with spatial refinement and fixed 𝛿𝑡 = 2−12 .
mesh length. For the equalorder case, the velocity shows 𝒪 (𝓁𝒫𝑢 +2 ) hyperconver
gence in 𝐮.
Paradoxically, the errors in the pressure are much lower for the equalorder
case, despite its a reduced solution space. This could perhaps be explained by
the error in the 𝜕𝜌/𝜕𝑡 term, which is extrapolated from previous time steps (Eq.
4.12). This might induce discontinuities in 𝑝, which would be suppressed by the
pressure stabilization, which is only present for the equalorder discretization. This
explanation is supported by the fact that this phenomenon did not occur for the
constantdensity manufactured solution in section 3.3.2 (Table 3.3). Note that the
orders of convergence are the same for constantdensity and the variabledensity
test cases.
𝜑 = 𝑎0 + 𝑎1 (𝑇 − 𝑇𝐹 ) + 𝑎2 (𝑇 − 𝑇𝐹 )2 , (4.43)
4.6. Discussion and Conclusion 73
Table 4.4: Coefficients for the material properties in Eq. 4.43. Reproduced from [29].
𝜌 (kg 𝑚−3 ) 𝜇 (kg m−1 s−1 ) 𝑘 (W m−1 K−1 ) 𝑐𝑝 (m2 s−2 K−1 )
𝑎0 1.268672727 1.7254e05 2.4195e2 1.00620979e3
𝑎1 (K−1 ) 4.08741e03 4.95611e08 7.5234e5 1.4522145e2
𝑎2 (K−2 ) 7.23864e06 2.7214e11 3.2588e8 4.13753e4
where 𝜑 is one of (𝜌, 𝜇, 𝑘, 𝑐𝑝 ), 𝑇𝐹 = 0°C, and the coefficients 𝑎𝑖 are in Table 4.4.
Since 𝑐𝑝 ≔ ℎ𝑇 is a secondorder polynomial in 𝑇, we need to find the root of the
thirdorder polynomial ℎ = ℎ(𝑇) to map from ℎ to a fluid property. This minor
inconvenience permits a better comparison with the results in Shi et al. .
We obtain our results on the same mesh as for the isothermal case (Fig. 3.6).
Fig. 4.7 shows an example of instantaneous flow fields. Fig. 4.8 shows the lift and
4
drag coefficients and the Nusselt number, which is defined as
𝐷 1
Nu = ∫ 𝐧 ⋅ ∇𝑇 , (4.44)
𝑇w − 𝑇∞ ‖𝜕𝑆‖leb 𝜕𝑆
where ‖𝜕𝑆‖leb = 𝜋𝐷 is the circumference of the circular obstacle. Recall that the
dimensionless shedding frequency was approximately St = 0.166 for the isothermal
case in section 3.4. Here we find St = 0.1536 for the heated cylinder, which differs
by 1% from the value of St = 0.152 in Shi et al. [29] and the experimental value
of St = 0.152 in [30].
This result was obtained by linearizing (𝜌ℎ)𝑛 with method #2 for the temporal
derivative of the enthalpy. We subtracted an offset ℎ0 from the enthalpy (as ex
plained in Section 4.3.2), such that the maximum value of ℎ was zero. Interestingly,
there is no noticeable change in the results when we use an equalorder scheme,
even when 𝛿𝑡 is decreased by a factor of 10 or 100. For the mixedorder calcula
tions, we found no difference between using an SIP or an LDG pressure matrix. We
repeated the calculation using method #1, setting the enthalpy offset to a value
ℎ0∗ , such that ℎ = 0 at 𝑇 = (𝑇w + 𝑇∞ )/2. This resulted in almost exactly the same
shedding frequency (St = 0.1537).
For all test cases, we found that some values for the enthalpy offset result in
unstable schemes, yielding oscillatory pressure fields. For method #1 this happens
when ℎ0 is far from ℎ0∗ ; for method #2 this happens when ℎ0 is too small. When op
erating in the range of stable ℎ0 values, the exact enthalpy offset has no noticeable
impact on the shedding frequency.
num-m_abs_MathEval
0 0.158 0.316 0.475 0.633 0.791 0.949 1.11 1.27
(a) |𝑚|/(𝜌𝑢)∞
0.66 0.7 0.73 0.76 0.8 0.83 0.87 0.9 0.93 0.97 1
Figure 4.7: Instantaneous fields for flow past a heated circular cylinder.
small time steps. The specific enthalpy is shifted with an offset ℎ0 , so that solving
for the new unknown ℎ − ℎ0 satisfies these stability requirements. These results
were verified with simple spaceindependent tests in Section 4.4.
Method #1 is basically what has been done in all previous literature we have
seen (e.g., [20], [18], [15]), but for this approach we cannot determine the range of
stable ℎ0 values a priori. Another disadvantage is that full accuracy with a second
order timestepping scheme (BDF2) can only be achieved if the predictor is third
order accurate. This necessitates storing three instead of two previous time steps
for the enthalpy, and the thirdorder extrapolation negatively affects the stability
(see Fig. 4.2).
The other linearization of (𝜌ℎ) (method #2) does provide full accuracy when the
predictor is extrapolated from two previous time steps, in which case the error in the
linearization is negligible in the limit of small time steps. Furthermore, the stability
requirement is simply that the volumetric enthalpy be a monotonic function of the
temperature (or, equivalently, the specific enthalpy), and this leads to a range of
stable ℎ0 values that can be determined a priori. This results in a stable scheme, in
which the error of the linearization of (𝜌ℎ) becomes negligible in the limit of small
time steps. The manufactured solutions demonstrate full secondorder temporal
accuracy, without any predictor steps.
In a real flow simulation the exact range of stable values for ℎ0 cannot be de
termined a priori due the coupling of the transport equations. Note that a discon
4.6. Discussion and Conclusion 75
0.2
0.1
CL
0.0
−0.1
−0.2
1.3950
4
1.3925
1.3900
1.3875
CD
1.3850
1.3825
1.3800
3.808
3.806
Nu
3.804
3.802
Figure 4.8: Temporal behavior of the lift and drag coefficients (Eqs. 3.18), and Nusselt number (Eq.
4.44) for flow past a heated circular cylinder. The crosses and circles mark local minima and maxima.
The dashed horizontal lines indicate the averages over the last five periods.
76 4. Handling the Enthalpy Equation for LowMach Number Flow
tinuous Galerkin discretizations does not guarantee that the extreme values of the
numerical solution lie within physically acceptable bounds, so that the numerical
temperature range is not known beforehand. Nevertheless, there are useful guide
lines: for method #1, ℎ − ℎ0 should be close to zero; for method #2, ℎ0 should
be sufficiently large. Once a stable ℎ0 value is found, our numerical experiments
in Section 4.5 suggest that the exact value of ℎ0 has little bearing on the overall
accuracy.
Comparing the present manufactured solution to the one from the previous
chapter suggests that the temporal finite difference approximation for 𝜕𝜌/𝜕𝑡 (Eq.
4.12) is a significant source of error (as explained at the end of section 4.5.1),
which would be in line with previous literature. An elegant improvement could be
to approximate 𝜕𝜌/𝜕𝑡 by the spatial discretization of 𝜕(𝜌ℎ)/𝜕𝑡, as mentioned in
section 4.2.
4 We are now finally ready to look at the bigger picture, and reconsider which
combination of transport equation (primitive or conservative) and unknown (ℎ or 𝐻)
is most suitable for discretization in lowMach number flows. Table 4.5 summarizes
the findings in this chapter. Solving for the volumetric enthalpy would also have
been a reasonable option. Given how much depends on the enthalpy offset, it is
surprising that we have not seen this notion mentioned in previous literature.
2 𝛿𝑡 [1]
𝜌∗ 𝜖 [1] + (𝐾𝜖 ∗ + 𝒪 (𝜖 ∗ )) ℎ𝑛 = − 𝜆𝜖 , (4.48)
𝛾0
which can be rearranged to
∗
𝜖 [1] −𝐾
∗
=( ) ℎ𝑛 + 𝒪 (𝜖 ∗ ) . (4.49)
𝜖 𝜌 + 𝜆 (𝛿𝑡/𝛾0 )
Table 4.5: Overview of problems that must be overcome in various areas, depending on the form of the
transport equation (primitive or conservative), and the choice of the unknown variable (primitive ℎ or
conserved 𝐻 ≔ 𝜌ℎ). A blank cell indicates that the treatment is straightforward.
This result can now be used to derive the error estimates in Eq. 4.23a. Using
the fact that ℎ[1] = ℎ𝑛 + 𝜖 [1] , we can write
where the second equality follows from the Taylor expansion in Eq. 4.20.
∗ ∗ 𝛿𝑡 [2]
(𝜌ℎ)ℎ ℎ[2] − 𝜌𝑛 ℎ𝑛 = (ℎ2 𝜌ℎ ) − 𝜆𝜖 . (4.53)
𝛾0
∗ 2 3 ∗ 𝛿𝑡 [2]
(𝜌ℎ)ℎ ℎ[2] − ℎ𝑛 𝜌∗ + 𝐾ℎ𝑛 𝜖 ∗ − 𝐵ℎ𝑛 𝜖 ∗ + 𝒪 (𝜖 ∗ ) = (ℎ2 𝜌ℎ ) − 𝜆𝜖 . (4.54)
𝛾0
∗
Substituting (𝜌ℎ)ℎ = 𝜌 + 𝐾ℎ on the lefthand side, and (ℎ2 𝜌ℎ ) = 𝐾ℎ∗ (ℎ𝑛 + 𝜖 ∗ ) on
the righthand side, gives
∗ 2 3 𝛿𝑡 [2]
(𝜌 + 𝐾ℎ) ℎ[2] − ℎ𝑛 𝜌∗ + 𝐾ℎ𝑛 𝜖 ∗ − 𝐵ℎ𝑛 𝜖 ∗ + 𝒪 (𝜖 ∗ ) = 𝐾ℎ∗ (ℎ𝑛 + 𝜖 ∗ ) − 𝜆𝜖 .
𝛾0
(4.55)
This can be rearranged to
2 𝛿𝑡 [2] 3
𝜌∗ (ℎ[2] − ℎ𝑛 ) + 𝐾ℎ∗ (ℎ[2] − ℎ𝑛 ) − 𝐾(ℎ∗ − ℎ𝑛 )𝜖 ∗ − 𝐵ℎ𝑛 𝜖 ∗ + 𝜆 𝜖 = 𝒪 (𝜖 ∗ ) .
𝛾0
(4.56)
A. Derivations of the Results in Section 4.3.1 79
References
[1] A. Hennink, M. Tiberga, and D. Lathouwers, A Pressurebased solver for low
Mach number flow using a discontinuous Galerkin method, Journal of Compu
tational Physics 425, 109877 (2021).
[2] G. Volpe, Performance of compressible flow codes at low Mach numbers, AIAA
Journal 31, 49 (1993).
[3] S. S. Collis, Discontinuous Galerkin methods for turbulence simulation, in Sum
mer Program 2002, Center for Turbulence Research (2002) pp. 155–167.
[4] F. Föll, S. Pandey, X. Chu, C.D. Munz, E. Laurien, and B. Weigand, High
Fidelity Direct Numerical Simulation of Supercritical Channel Flow Using Dis
continuous Galerkin Spectral Element Method, in High Performance Comput
4 ing in Science and Engineering ’ 18 (Springer International Publishing, Cham,
2019) pp. 275–289.
[5] R. Barney, R. Nourgaliev, J. P. Delplanque, and R. McCallen, FullyImplicit,
HighOrder, Reconstructed Discontinuous Galerkin Method for Supercritical
Fluid Flows, in Proceedings of the International Conference on Mathemat
ics and Computational Methods applied to Nuclear Science and Engineering
(M&C) (Portland, OR, USA, 2019) pp. 377–386.
[6] A. Nigro, C. De Bartolo, R. Hartmann, and F. Bassi, Discontinuous Galerkin
solution of preconditioned Euler equations for very low Mach number flows,
International Journal for Numerical Methods in Fluids 63, 449 (2010).
[7] F. Bassi, A. Crivellini, D. A. D. Pietro, and S. Rebay, An artificial compressibil
ity flux for the discontinuous Galerkin solution of the incompressible Navier
Stokes equations, Journal of Computational Physics 218, 794 (2006).
[8] A. Crivellini, V. D’Alessandro, and F. Bassi, A SpalartAllmaras turbulence model
implementation in a discontinuous Galerkin solver for incompressible flows,
Journal of Computational Physics 241, 388 (2013).
[9] K. Shahbazi, P. F. Fischer, and C. R. Ethier, A highorder discontinuous Galerkin
method for the unsteady incompressible NavierStokes equations, Journal of
Computational Physics 222, 391 (2007).
[10] L. Botti and D. A. Di Pietro, A pressurecorrection scheme for convection
dominated incompressible flows with discontinuous velocity and continuous
pressure, Journal of Computational Physics 230, 572 (2011).
[11] S. Rhebergen, B. Cockburn, and J. J. W. van der Vegt, A spacetime dis
continuous Galerkin method for the incompressible NavierStokes equations,
Journal of Computational Physics 233, 339 (2013).
[12] M. Piatkowski, S. Müthing, and P. Bastian, A stable and highorder accurate
discontinuous Galerkin based splitting method for the incompressible Navier
Stokes equations, Journal of Computational Physics 356, 220 (2018).
References 81
[26] A. Hennink, Finite Difference Methods for the Nonlinear Enthalpy Equation,
GitHub. [Online] Accessed on 20191105 (2019).
[27] L. Shunn, F. Ham, and P. Moin, Verification of variabledensity flow solvers
using manufactured solutions, Journal of Computational Physics 231, 3801
(2012).
[28] K. Salari and P. Knupp, Code Verification by the Method of Manufactured So
lutions, Tech. Rep. (Sandia National Labs., Albuquerque, NM (US), Livermore,
CA (US), 2000).
[29] J.M. Shi, D. Gerlach, M. Breuer, G. Biswas, and F. Durst, Heating effect on
steady and unsteady horizontal laminar flow of air past a circular cylinder,
Physics of Fluids 16, 4331 (2004).
4
[30] A.B. Wang, Z. Trávníček, and K.C. Chia, On the relationship of effective
Reynolds number and Strouhal number for the laminar vortex shedding of a
heated circular cylinder, Physics of Fluids 12, 1401 (2000).
5
Channel Flow and
Large Eddy Simulation
83
84 5. Channel Flow and Large Eddy Simulation
term in the momentum equation, the difference between what we can compute
and the filtered original term is
1 1 1 1
̂ 𝐦 − 𝐮𝐦 =
𝐮 ̃ = ( − ) 𝐦𝐦 − 𝜌 𝜏SFS .
𝐦𝐦 − 𝜌𝐮𝐮 = 𝐦𝐦 − 𝜌𝐮𝐮 (5.3)
𝜌̂ 𝜌̂ 𝜌̂ 𝜌
The term
𝜏SFS ≔ 𝐮𝐮
̃ −𝐮
̃𝐮̃ (5.4)
is known as the sub filter scale stress tensor. As the name suggests, it acts in
a similar manner to the viscous stress, and it is usually modeled in terms of the
resolved rate of strain. Similarly, for the advection term in the enthalpy equation,
ℎ𝐦 ̃𝐮 − ℎ𝐮)
̃ − ℎ𝐦 = 𝜌 (ℎ̃ ̃ ≕ 𝐪SFS , (5.5)
which is called the sub filter scale heat flux1 , and it is usually modeled in terms of
the resolved Fourier heat flux. The subfilter stress (𝜏SFS ) and heat flux (𝐪SFS ) play
a central role in large eddy simulations of both incompressible and compressible
5 flows.
Under the assumption that filtering commutes with spatial and temporal deriva
tives, the filtered transport equations are
𝜕̂
𝜌
+ ∇ ⋅ 𝐦 =𝑅(0) , (5.6a)
𝜕𝑡
𝜕𝐦
+ ∇ ⋅ (̂
𝐮 𝐦) − ∇ ⋅ (2̂ ̂ + ∇𝑝 − 𝐅 = − ∇ ⋅ (𝜌𝜏SFS ) + ∇ ⋅ 𝑅(1)
𝜇𝑆) (5.6b)
𝜕𝑡
+ 2∇ ⋅ (𝑅visc + 𝐴visc + 𝐵visc ) ,
𝜕̂𝜌ℎ̃
̃ 𝐦) − ∇ ⋅ (𝜌𝛼
+ ∇ ⋅ (ℎ ̃ − 𝑄 =∇ ⋅ 𝐪SFS + 𝑅(2) + ∇ ⋅ (𝐀fhf + 𝐁 fhf ) . (5.6c)
̂ ∇ℎ)
𝜕𝑡
All noncomputable (subfilter) terms are gathered on the righthand sides:
𝜕
𝑅(0) ≔ (̂
𝜌 − 𝜌) , (5.7a)
𝜕𝑡
1 1
𝑅(1) ≔ ( − ) 𝐦𝐦 , (5.7b)
𝜌̂ 𝜌
𝜕
𝑅(2) ≔ ((̂ ̃ ,
𝜌 − 𝜌) ℎ) (5.7c)
𝜕𝑡
𝑅visc ≔ 𝜇̂ (𝑆̃ − 𝑆)
̂ , (5.7d)
𝐴 visc
≔ 𝜌 (𝜈̃𝑆 − 𝜈̃ 𝑆)
̃ , (5.7e)
𝐵 visc
≔ (𝜇 − 𝜇̂) 𝑆̃ , (5.7f)
𝐀 fhf ̃ −𝛼
≔ 𝜌 (𝛼∇ℎ ̃ ,
̃ ∇ℎ) (5.7g)
𝐁 fhf
≔ (𝜌𝛼 − 𝜌𝛼)
̂ ∇ℎ ̃. (5.7h)
1 Most ̃𝐮
other literature refers to 𝜌 (𝑇 ̃ as the subfilter heat flux, or the subfilter temperature flux.
̃ − 𝑇𝐮)
That definition works well when working with the ideal gas law.
5.1. Introduction and Governing Equations 85
to account for the difference between the filtered original ∇ ⋅ (𝜇𝑆) and the com
putable ∇ ⋅ (̂ ̂ Similarly, the subfilter terms due to the Fourier heat flux (‘fhf’)
𝜇𝑆).
sum to
𝐀fhf + 𝐁 fhf = 𝜌𝛼∇ℎ − 𝜌𝛼∇
̂ ℎ̃. (5.9)
The terms in Eqs. 5.4, 5.5, and 5.7a–5.7h differ strongly in magnitude, so some
can be neglected.
Most other authors have considered the righthand side of Eq. 5.8 (resp. Eq.
5.9) as a single subfilter term, rather than splitting it into several terms as is done
here. The present decomposition shows more explicitly that each term in Eqs.
5.7a–5.7h falls into one of the following categories.
1. 𝐴visc and 𝐀fhf are commutation errors between the Favre filter, and multi 5
plication by a transport property. These occur in LES with inhomogeneous
transport properties. It is standard practice to neglect them (see, e.g., the
discussions in [1, 2]).
2. 𝐵visc and 𝐁 fhf are due to the difference between the filtered and the com
putable transport properties. It is standard practice to neglect them (e.g.,
[3]).
3. The terms 𝑅0 , 𝑅1 , 𝑅2 , and 𝑅visc result from the difference between the com
putable density and the filtered density. For 𝑅visc this can be made clear by
rewriting it as
1 1
𝑅visc = 𝜇̂ 𝐿 [∇ (̃ ̂ )] = 𝜇̂ 𝐿 [∇ ((
𝐮−𝐮 − ) 𝐦)] . (5.10)
𝜌 𝜌̂
These terms are particular to LES of lowMach flows; they do not occur in
incompressible flows (where 𝜌 is usually constant), or in highMach com
pressible flows (where 𝜌 is computable as one the resolved quantities).
We strongly suspect that these terms can be neglected, in analogy to those
in category 2.
4. The turbulent stress tensor 𝜏SFS and the subfilter temperature flux 𝐪SFS are
both commutation errors between the Favre filter, and multiplication by an
advecting field.
In other words, all terms are neglected in lowMach flows, except those in the last
category, which also dominate in incompressible flows with constant fluid proper
ties.
86 5. Channel Flow and Large Eddy Simulation
Here ‖⋅‖Frob is the Frobenius norm. This is known as the Smagorinsky model, and
it the most well known, the most researched, and probably still the most commonly
used.
The factor 𝐴smag still needs to be determined. It has the dimension of length,
and it is directly related to the filter width: larger values of 𝐴smag damp more of the
small scales of the flow, lowering the maximum frequency in the Fourier transform
of the computed velocity. This is made explicit by writing
where Δ is the LES filter width, and 𝐶smag is known as the Smagorinsky constant.
In practice Δ is usually coupled to the resolution of the spatial discretization. Given
a characteristic element length 𝓁, the universally accepted engineering practice is
to let Δ = 2𝓁. This typically results in both a modelling error (due to the subfilter
flow structures, which are smaller than Δ), and a discretization error (because 𝓁 is
not much smaller than Δ).
A theoretical analysis of isotropic turbulence suggests that the Smagorinsky con
stant is indeed the same for all flows [5]. Berselli et al. [6, pp. 71–77] estimate 5
it at 𝐶smag ≈ 0.17, whereas Sagaut [4, pp. 113–124] gives 𝐶smag ≈ 0.148 or
𝐶smag ≈ 0.18. Extensive numerical experience has shown that these values are too
large for almost all flows and discretizations; it is too dissipative. Typically 𝐶smag
is lowered to approximately 0.1 to achieve the right amount of total kinetic energy
removal, though this does not guarantee an optimal local structure of turbulent
dissipation.
Another shortcoming of the Smagorinsky model is that the dissipation does not
automatically vanish in the laminar layer near the wall. One possible solution is
to multiply 𝐴smag by a scaling factor. By far the most common is the Van Driest
damping function
+
𝑓 (𝑦 + ) = 1 − 𝑒−𝑦 /25 , (5.16)
where 𝑦 + is the dimensionless wall distance, based on the wall shear stress (as
defined in Eq. 5.32 below). Another way of looking at this is that the LES method
implies a spatial filter through convolution with a filtering kernel, but a symmetric
kernel is not possible at the wall. The filter width is therefore gradually reduced to
zero near the wall.
3
It can be shown theoretically that 𝜈sfs ∝ (𝑦 + ) , though the above Van Driest
2
damping produces 𝜈sfs ∝ (𝑦 + ) . Piomelli et al. [7] suggested a different damping
function that achieves the correct asymptotic behavior near the wall, but found
no significant improvement over Van Driest damping. See Inagaki [8] for a more
recent review.
Nicoud and Ducros [9] have argued that the Smagorinsky model is fundamen
tally flawed because it does not include the effect of rotation, and proposed the
alternative WALE (walladaptive local eddy) viscosity model, which is based on the
square of the velocity gradient, that is,
Denoting
𝐹 ≔ 𝐿 [𝐵2 ] , (5.18)
we have
3/2 3
(𝐹𝑘𝑙 𝐹𝑘𝑙 ) ‖𝐹‖Frob
sfs
𝜈WALE = 𝐴2WALE 5/2 5/4
= 𝐴2WALE 5 5/2
. (5.19)
(𝒮𝑘𝑙 𝒮𝑘𝑙 ) + (𝐹𝑘𝑙 𝐹𝑘𝑙 ) ‖𝒮‖Frob + ‖𝐹‖Frob
The idea is that ‖𝐹‖Frob and ‖𝑆‖Frob scale differently near the wall, so it is possible
to choose the exponents in Eq. 5.19 in such a way that we get the appropriate
5/2
sfs
𝜈WALE = 𝒪((𝑦 + )3 ) behavior. The term ‖𝐹‖Frob is only there to ensure that the
denominator is nonzero, giving the expression a somewhat artificial look, though
it has performed well in practice. (See [10] for an example with a discontinuous
Galerkin method.)
In analogy to Eq. 5.15, the prefactor is related to the filter width:
making it the only model in this section that involves the third invariant of 𝒮. As
before, we can write
𝐴QR = 𝐶QR Δ . (5.22)
Verstappen [12] finds 𝐶QR = 1/𝜋 = 0.32. The subfilter viscosity has proper
𝒪((𝑦 + )3 ) behavior near the wall for constant 𝐶QR .
The prefactors (𝐴smag , 𝐴WALE , 𝐴QR ) in Eqs. 5.14, 5.19, 5.21 can also be deter
mined from the simulation itself, rather than depending on userdefined parame
ters. This is done with the socalled ‘dynamic model’, originally introduced for the
Smagorinsky model by Germano et al. [13], who projected the numerical solution
2 Notethat the trace is the sum of the eigenvalues and 𝒮 is symmetric, so trace (𝒮 2 ) ≥ 0. The denomi
sfs
nator could theoretically vanish, but 𝜈QR is well behaved in the limit 𝑆𝑖𝑗 → 0.
5.3. Numerical Simulation 89
onto a coarser solution space (e.g., a coarser grid). The LES model (in their case Eq.
5.14) is assumed to be valid on both the fine and coarse grids. Since the prefactor
𝐴 is assumed not to change between these two flow scales, it can be computed by
comparing the coarse and fine solutions. The dynamic Smagorinsky model displays
3
the correct 𝒪 ((𝑦 + ) ) asymptotic behavior, and has widely been found to yield far
better results than the ‘constant’ Smagorinsky model (i.e., with a userdefined con
stant). (See, e.g., the comparisons and the very clear discussion in Vreman [14],
who also studied compressible flows.)
In the context of a highorder finite element discretization, the projection onto a
coarse grid could be replaced by a projection onto a lowerorder polynomial space.
This has been done with a discontinuous Galerkin method by Abbà et al. [15],
though it is not clear whether this is better than projecting onto larger elements.
It has also been implemented in DGFlows, but we do not use it in this chapter.
These different types of projections are reminiscent of 𝑝multigrid and ℎmultigrid
solvers, which were mentioned in section 2.6.
A dynamic model also makes it easier to use a symmetric positive definite matrix
instead of a scalar for 𝜇sfs in Eq. 5.11, which could in principal handle anisotropic 5
turbulence better. Abbà et al. [15] found that an anisotropic 𝜇sfs tensor indeed
gives superior results for in wallbounded flow. Nevertheless using a scalar 𝜇sfs is
far more common.
For the subfilter heat flux we only consider the simplest model, which is based
on a turbulent Prandtl number Prt that relates the effect of 𝐪SFS to 𝛕SFS . First we
assume that the subfilter heat flux results in a net turbulent dissipation, analogous
to Eq. 5.11:
sfs ̂
∇ ⋅ 𝐪SFS ≈ ∇ ⋅ ((𝜌𝛼) ∇ℎ) . (5.23)
sfs
Then we express (𝜌𝛼) in terms of 𝜈sfs with a turbulent Prandtl number:
sfs 𝜌̂ 𝜈sfs
(𝜌𝛼) = , (5.24)
Prt
where we have used the computable density 𝜌̂ because that is the only directly
available value in a lowMach number simulation. This is easy to implement: com
pared to direct numerical simulation, only the fluid property 𝑘/𝑐𝑝 = 𝜌𝛼 needs to be
adjusted to
molec sfs
𝜌𝛼 = (𝜌𝛼) + (𝜌𝛼) , (5.25)
molec
where (𝜌𝛼) is the ‘molecular’ (physical) fluid property.
The turbulent Prandtl number is usually chosen in the range (0.3, 0.9) [3, p. 84].
Lesieur [16] derived a theoretical value of Prt = 0.6. It can also be estimated with
a dynamic procedure.
mass flux. The problem with the penalty term in the pressure equation (𝑎stab in Eq.
2.7) is that it makes the linear system too stiff, and our implementation DGFLows
is not wellequipped to deal with this. See section 3.5.1 for a discussion of this
problem.
The calculations with equalorder discretizations in this chapter are therefore
stabilized by penalizing violations of the continuity equation, as has been suggested
by Krank et al. [17]. (See also the remarks in section 2.2.) We incorporate their
penalty terms into the momentum equation, so that we do not require a separate
projection step for the momentum, as they do. That is, the terms
and
𝑙 ∗ (𝐯) = ∑ ∫ 𝜃 (𝐧 ⋅ 𝐯) (𝐧 ⋅ 𝐦D ) (5.27)
𝐹
𝐹∈ℱD
5
are added to the bilinear and linear operators in the discrete momentum equation
(given by Eq. 2.10 for timeindependent flows). Here 𝓁𝑇 is a characteristic length
of the element; we use the value
1/𝑑
‖𝑇‖leb
𝓁𝑇 = (5.28)
1 + 𝒫𝑚
for a 𝑑dimensional element with polynomial order 𝒫𝑚 for the mass flux, and do
not investigate other estimates.
Note that 𝑎∗ and 𝑙 ∗ couple the directions of the mass flux. Previously they
were only coupled implicitly in the pressure projection (and, less importantly, in the
viscous stress). We solve the momentum equation for all directions simultaneously.
The penalty parameter 𝜃 has the same dimension as the velocity, and Krank
et al. [17] used the natural 𝜃 = |𝐮| ≔ √𝐮 ⋅ 𝐮. This makes 𝑎∗ and 𝑙 ∗ nonlinear in
𝐮, which could presumably be handled efficiently by basing 𝜃 on an extrapolation
of 𝐮 from previous time steps. More problematically, the term 𝑎∗ would need to be
reassembled at every time step. In our implementation this takes a significant part
of the total calculation time.
We therefore use the alternative form
𝜃 = ⟨|𝐮|⟩ , (5.29)
where ⟨⋅⟩ denotes the average over time and over the homogenous directions. This
means that 𝜃 is timeindependent, so that 𝑎∗ and 𝑙 ∗ can be precomputed. In Eq.
5.26 the penalty parameter is an average of the neighbors of the faces, but taking
the maximum value would also have seemed reasonable to us. For the present
calculations it makes no difference, since the above form of 𝜃 is virtually continuous
at the element boundaries.
5.3. Numerical Simulation 91
Twall
Ly = 2δ
‹ux› Twall
Lz = 3δ
Lx = 6δ
5 Figure 5.1: Geometry of the infinite plane channel.
equation implies a fluctuating total mass (due to the imposed heat flux and the fact
that 𝜌 = 𝜌(ℎ)). The results in these papers are therefore fundamentally irrepro
ducible.
The authors have in common that they focused on physical interpretations of
the CFD results, rather than on the numerical method. Their computations were
probably helped by the fact that they used finite difference schemes, which do not
conserve the global mass. In one case [30], we know from a private conversation
with one of the authors that the simulations were kickstarted with an artificial mass
sink in the continuity equation, to allow for the average temperature to rise after
the initial condition. It is possible that the conclusions in [30] hold despite the
mathematical inconsistency, because they are based on local fluctuations, which
are perhaps not strongly influenced by the global conservation of mass.
𝑅h 𝜌 𝑅h 𝜌 𝜏wall 𝑅h 𝜌 𝑅h 𝐹𝑥
Re𝜏 ≔ 𝑢 = √ = √ . (5.37)
𝜇 𝜏 𝜇 𝜌 𝜇 𝜌
Substituting the DarcyWeisbach equation and the definition for the bulk Reynolds
number gives Re𝜏 = Rebulk (𝑅h /𝐷h ) √(𝑅h /𝐷h ) (𝑓D /2), or
128 11.3
Rebulk = √ Re𝜏 ≈ Re𝜏 . (5.38)
𝑓D √𝑓D
94 5. Channel Flow and Large Eddy Simulation
We have surprisingly not seen this relation in previous literature, although it holds
for all channel geometries.
The friction factor can be estimated by using measurement data from turbulent
pipe flow. If the Reynolds number is sufficiently large, then the curvature of the wall
is negligible compared to the size of the flow structures near the wall, which jus
tifies a comparison between channels of different geometries. The semiempirical
ColebrookWhite correlation for smooth circular pipes is3
1 𝐴 𝐴/√128
= −2 log10 ( ) = −2 log10 ( ) (5.39)
√𝑓D √𝑓D Rebulk Re𝜏
with 𝐴 = 2.51. This is valid for Rebulk > 4.0 ⋅ 103 , or, equivalently, Re𝜏 > 71.
3 𝑦 2 sin(2𝜋𝑧) sin(𝑦/𝛿)
0.10 𝑢bulk (1 − ( ) ) [ 0 ] , (5.41)
2 𝛿 sin(2𝜋𝑥)
domain. For any two points that are half a domain size apart in the 𝑥 or 𝑧direction,
the correlation should be negligible.
Our domain size is based in part on the correlation coefficients that are reported
in [35] and [36]. Piomelli et al. [37] investigated various domain sizes more sys
tematically, and concluded that (𝐿𝑥 , 𝐿𝑦 , 𝐿𝑧 ) = (6𝛿, 2𝛿, 3𝛿) is ‘marginally sufficient’
for secondorder turbulent statistics at our Reynolds number, so this is what we
use.
Our setup is meant to reproduce one of the test cases in Patel et al. [30],
who performed direct numerical simulation (DNS) at Re𝜏 = 395. This is a popular
Reynolds number, presumably because it was used in the landmark paper by Moser
et al. [36]. Following Patel et al. , the fluid properties are kept constant, and Pr = 1.
The element sizes in the inhomogeneous 𝑦direction are based on a tanh grid
𝑁
spacing. More precisely, the element boundaries are located at 𝑦/𝛿 ∈ {𝜉𝑖 }𝑖=0 with
2𝑖
tanh (𝛾 ( − 1))
𝑁
𝜉𝑖 = . (5.42)
tanh 𝛾
We found that 𝛾 ≈ cosh−1 √𝑦max /𝑦min is very close to the actual solution for all (𝑦min , 𝑦max ), and
that a fixedpoint iteration always converges with this initial guess.
96 5. Channel Flow and Large Eddy Simulation
different aspect ratios for the minimum elements in the bulk; we use Δ𝑧/Δ𝑦 = 1
and Δ𝑥/Δ𝑧 = 2, resulting in element widths in the 𝑥 and 𝑧directions of 77.6 and
38.8, as measured in wall units.
5.4.4. Results
We are interested in the ensemble averages of various quantities over many re
alizations of the flow, which are called the Reynolds averages, denoted by angle
brackets (e.g., ⟨𝑇⟩, ⟨𝑚1 ⟩, …). The turbulent fluctuation is defined as the instanta
neous deviation from the Reynolds average, that is,
𝜙′ ≔ 𝜙 − ⟨𝜙⟩ . (5.45)
In practice the ensemble average is assumed equal to the time average, which can
be estimated from a single computation or experiment that runs for a sufficiently
long time.
Besides the firstorder statistics ⟨𝑢𝑖 ⟩ and ⟨𝑇⟩, we are also interested in the
Reynolds stress
5
⟨𝑢𝑖′ 𝑢𝑗′ ⟩ = ⟨𝑢𝑖 𝑢𝑗 ⟩ − ⟨𝑢𝑖 ⟩ ⟨𝑢𝑗 ⟩ , (5.46)
These secondorder statistics are commutation errors between the Reynolds aver
age and multiplication, so they come up when Reynoldsaveraging the convective
terms in the incompressible NavierStokes equation.
The temperature can be made dimensionless in various ways; we use the ref
erence value
2
−1 𝛿 𝑄
𝑇ref ≔ Re𝜏 . (5.48)
𝑘
The group 𝛿2 𝑄/𝑘 contains diffusionrelated quantities, and can also be seen in the
−1
laminar solution (Eq. 5.40). The factor Re𝜏 takes convective heat transfer into
ref
account, and is meant to let ⟨𝑇/𝑇 ⟩ depend less on the Reynolds number, since
⟨𝑇⟩ decreases with increasing Re𝜏 .
For our test case the quantities can also be averaged over the homogeneous
directions, making the averages converge far more quickly. The quantities of in
terest are sampled every 20 time steps. They are projected onto the eighthorder
polynomial space in the 𝑦 coordinate in each element, so that no information is lost.
The averages are based on approximately 10 turnover times.
We also average the two values in the lower and upper halves of the domain
(i.e., where 𝑦 < 0 or 𝑦 > 0). This does not work for the stresses involving 𝑢2 (i.e.,
⟨𝑢1′ 𝑢2′ ⟩ and ⟨𝑇′ 𝑢2′ ⟩), because they are antisymmetric about 𝑦 = 0. Therefore we will
instead report values based on
which is the component of the velocity toward the closest wall. This yields sym
metric stresses ⟨𝑢1′ 𝑢2↑
′ ′
⟩ and ⟨𝑇′ 𝑢2↑ ⟩. These could also be interpreted as the usual
′ ′ ′ ′
stresses ⟨𝑢1 𝑢2 ⟩ and ⟨𝑇 𝑢2 ⟩ in the upper half of the domain.
Figure 5.2 shows the error in the average velocity profiles for a modelfree high
order simulation (uDNS32 ), a coarser modelfree lowerorder simulation (uDNS22 ),
and two LES simulations based on the coarser discretization (WALE and Smag.). The
time step size is given by (𝑢𝜏 /𝛿)𝛿𝑡 = 10−3 , resulting in a maximum CFL number of
approximately 0.7 in the flow direction on the coarse grid. The error is based on
the DNS data in Moser et al. [36]. The figure also shows that the difference with
the DNS data in Patel et al. [30] is negligible.
For comparison, the results of the LES by Singh, You, and Bose [40] are also
shown (indicated by SYB). They varied the spatial discretization independently from
the LES filter width, resulting in a gridindependent (i.e., fully resolved) LES. They
used a dynamic Smagorinsky model with LES filter widths in the 𝑥, 𝑦, and 𝑧
directions of (78, 0.53–60, 39) (measured in wall units). Ours are comparable:
approximately (72, 1.9–36, 36). We find that their results are approximately as ac
curate as our coarsegrid calculations, regardless of whether we use an LES model,
and despite the fact that we do have a discretization error. 5
Figure 5.3 shows the averaged subfilter effective viscosities for the three LES
models that were discussed in section 5.2. These were obtained from a calculation
sfs
without an LES model. (Using, e.g., a WALE model might dampen 𝜈WALE more than
the other subfilter scale viscosities, which would have distorted the figure.) The
subfilter terms display clear discontinuities, showing that the eddy viscosity is not
just a physical model, but that it is closely linked to the discretization.
One of the most important quantities for engineering purposes is the bulk ve
locity, given by Eq. 5.35. Table 5.1 lists the results. For comparison, the bulk
velocity can also be determined from the Darcy friction factor. From Eq. 5.38 and
the definitions of the Reynolds numbers (Eqs. 5.30 and 5.34),
𝑢bulk Rebulk /4 8
= =√ . (5.50)
𝑢𝜏 Re𝜏 𝑓D
5.5. Discussion
This chapter has presented a large eddy simulation of turbulent plane channel flow.
The results are comparable to previous literature.
Interestingly, the nomodel approach (i.e., ‘unresolved DNS’, denoted by uDNS)
yields more accurate results than the WALE model. This could be because the locally
98 5. Channel Flow and Large Eddy Simulation
PBP
0.25
hu1 i − hu1 iMKM / hu1 iMKM SYB
uDNS32
0.20
uDNS22
0.15
WALE
Smag.
0.10
0.05
0.00
−0.05
5 y+
Figure 5.2: Relative deviation of ⟨𝑢1 ⟩ from the DNS reference data ⟨𝑢1 ⟩MKM in Moser, Kim, and Mansour
[36]. See Table 5.6 for the meaning of the labels.
0.8
0.6
ν molec
0.4
0.2
D E
sfs
νsmag sfs
νWALE sfs
νQR
0.0
2.0 7.3 15 26 42 64 93 133 184 247 318
4.4 11 20 33 52 77 112 157 214 281 356
y+
sfs in Eq. 5.14,
Figure 5.3: Average values of the suffilter scale (SFS) viscosity for various LES models (𝜈smag
sfs sfs
𝜈WALE in Eq. 5.19, and 𝜈QR in Eq. 5.21), obtained from the uDNS32 calculation (see Table 5.6).
Scaled such that each element looks the same size; the vertical lines indicate the element boundaries.
5.5. Discussion 99
hu1 i /uτ
20
15
10
SYB
5 uDNS32
PBP
0
0 50 100 150 200 250 300 350
p y+ p
hu02
1 i/uτ hu02
2 i/uτ
1.0
SYB
2.5
uDNS32 5
0.8
PBP
2.0
0.6
1.5
0.4
1.0
SYB
0.5 0.2 uDNS32
PBP
0.0 0.0
p q
hu02
3 i/uτ u01 u02↑ /uτ
1.2 uDNS32
0.8 MKM
1.0
0.6
0.8
0.6 0.4
0.4 SYB
uDNS32 0.2
0.2
PBP
0.0 0.0
0 100 200 300 0 100 200 300
y+ y+
Figure 5.4: Reynolds average ⟨𝑢1 ⟩ and Reynolds stress components (Eq. 5.46), compared to other LES
and DNS results at Re𝜏 = 395. See Table 5.6 for the labels.
100 5. Channel Flow and Large Eddy Simulation
p
(hT i − Twall ) /T ref hT 02 i/T ref
0.05 uDNS32
0.006 PBP
0.04
0.03
0.004
0.02
0.002
0.01 uDNS32
PBP
0.00 0.000
5 0.0015
0.010
0.0010
0.005 0.0005
0.000 0.0000
0 100 200 300 0 100 200 300
y+ y+
Figure 5.5: Reynolds average ⟨𝑇⟩ and turbulent heat flux (Eq. 5.47), at Re𝜏 = 395, compared to DNS
results. See Table 5.6 for the labels.
𝑇ref is given by Eq. 5.48. Note that √⟨𝑇′2 ⟩/𝑇ref equals the rootmeansquare value of (⟨𝑇⟩ − 𝑇wall ) /𝑇ref .
PBP DNS reference data from Patel, Boersma, and Pecnik [30], accessed
through [41]
MKM DNS reference data from Moser, Kim, and Mansour [36], accessed
through [42]
SYB LES reference data from Singh, You, and Bose [40].
Fully resolved; only contains LES model error
uDNS22 present simulation without an LES model (i.e., unresolved DNS) with
𝒫𝑚 = 𝒫𝑝 = 𝒫ℎ = 2.
WALE same as uDNS22 , but with an WALE LES model
Smag. same as uDNS22 , but with a Smagorinsky LES model
uDNS32 same as uDNS22 , but with a higher order of approximation for 𝑚:
𝒫𝑚 = 3 and 𝒫𝑝 = 𝒫ℎ = 2
References 101
Table 5.1: Bulk velocity implied by various simulations. See Table 5.6 for the labels. The ColebrookWhite
estimate is based on Eqs. 5.39 and 5.50.
References
[1] B. Vreman, B. Geurts, and H. Kuerten, Subgridmodelling in LES of compress
ible flow, Applied Scientific Research 54, 191 (1995).
[3] E. Garnier, N. Adams, and P. Sagaut, Large Eddy Simulation for Compressible
Flows, 1st ed., Scientific Computation (Springer, Dordrecht, 2009).
[5] S. B. Pope, Turbulent Flows, 1st ed. (Cambridge University Press, Cambridge,
UK, 2000) p. 771.
[7] U. Piomelli, P. Moin, and J. H. Ferziger, Model consistency in large eddy sim
ulation of turbulent channel flows, Physics of Fluids 31, 1884 (1984).
[8] M. Inagaki, A new walldamping function for large eddy simulation employing
kolmogorov velocity scale, International Journal of Heat and Fluid Flow 32,
26 (2011).
5
[9] F. Nicoud and F. Ducros, SubgridScale Stress Modelling Based on the Square
of the Velocity Gradient Tensor, Flow, Turbulence and Combustion 62, 183
(1999).
[10] M. de la Llave Plata, V. Couaillier, and M.C. le Pape, On the use of a highorder
discontinuous Galerkin method for DNS and LES of wallbounded turbulence,
Computers & Fluids 176, 320 (2018).
[12] R. Verstappen, When Does Eddy Viscosity Damp Subfilter Scales Sufficiently?
Journal of Scientific Computing 49, 94 (2011).
[15] A. Abbà, L. Bonaventura, M. Nini, and M. Restelli, Dynamic models for Large
Eddy Simulation of compressible flows with a high order DG method, Comput
ers & Fluids 122, 209 (2015), arXiv:1407.6591 .
[16] M. Lesieur, Turbulence in Fluids, 4th ed. (Springer, Dordrecht, 2008) p. 563.
[39] S. S. Collis, The DG/VMS Method for Unified Turbulence Simulation, in 32nd
AIAA Fluid Dynamics Conference and Exhibit (Houston, Texas, 2002).
[40] S. Singh, D. You, and S. T. Bose, Largeeddy simulation of turbulent channel
flow using explicit filtering and dynamic mixed models, Physics of Fluids 24,
85105 (2012).
[41] R. Pecnik, DNS data from variable property channel flows, Github. [Online]
Accessed on 20191009 (2019).
[42] R. D. Moser, J. Kim, and N. N. Mansour, DNS Data for Turbulent Channel Flow,
University of Texas. [Online] Accessed on 20210502 (2007).
[47] J. Meyers and P. Sagaut, Is planechannel flow a friendly case for the testing
of largeeddy simulation subgridscale models? Physics of Fluids 19, 48105
(2007).
5
6
Conclusion
The previous chapters have treated various discretizations in computational fluid
dynamics without an overarching theme. The conclusions and their relevance are
therefore best described by considering the chapters separately.
Chapter 2 has explained our discontinuous Galerkin method, which differs from
most other literature on two minor points. First, the penalty parameters (for the
interior penalty and LaxFriedrichs numerical fluxes) are evaluated in a pointwise
manner, rather than being averaged over the face, or a neighboring element. Sec
ond, the convection at Dirichlet boundaries is treated correctly, which is not the
case in most of the listed references. In practice these points might not make
much difference to the numerical outcomes.
The pressure correction method in chapter 3 is almost completely standard.
The one peculiarity is that the projection step (Eq. 3.10) contains a penalty ma
trix, which is a consequence of using an equalorder finite element discretization.
As explained in section 3.5.1, this incurs a substantial computational cost at high
Reynolds numbers and small time steps, though this problem could be particular to
our implementation and solver.
Chapter 4 treats the variable density in great detail. We pay particular attention
to the most convenient form of the enthalpy equation (primitive or conservative) and
whether to solve for the specific enthalpy or the volumetric enthalpy. Each approach
has its own challenges; it is not completely clear which is best. We decided to solve
for the specific enthalpy from the conservative form of the transport equation.
The biggest potential problem with this choice is that it complicates the temporal
discretization of the enthalpy, which can destabilize the calculation, or degrade the
order of convergence. It was shown that these problems can be addressed by a
simple modification of the finite difference scheme (‘method #2’), and by ‘offsetting’
the specific enthalpy with a constant ℎ0 . The choice of this enthalpy offset was
central to stabilizing the coupled transport equations with a temperaturedependent
density.
107
108 6. Conclusion
The value of ℎ0 would also have been important if we had solved for the vol
umetric enthalpy (as explained in section 4.1.2), because it determines whether
there is a onetoone relation between the volumetric enthalpy and the density. It
is therefore surprising that we have not seen this mentioned previous literature.
Hopefully the discussions in chapter 4 are useful to the development of other nu
merical methods for lowMach number flows.
Chapter 5 features turbulent flow simulations between two infinite planes. This
geometry was chosen for the abundance of highquality reference data and its pe
riodic boundary conditions, which reduce the computational cost, because there
are fewer walls that require grid refinement. The discontinuous Galerkin method
and our solver are fundamentally unstructured, and do not exploit the simplicity
of the geometry. The test case is therefore no less challenging than if the mesh
were ostensibly more complicated. Our LES models have also been used by others
with similar discretizations, so our results add little to the existing body of litera
ture, though they can be considered further validation of the spatial and temporal
discretizations in chapters 2–3 and their implementation.
6
Acknowledgements
Sections 2.1.2–2.4, 2.7, 3.1–3.2, and 4.1–4.4 are largely based on work that I did
at TU Delft, where most of the code DGFlows was also written. I am grateful to
Danny Lathouwers for having meant to help with the scientific aspect of my work,
and I am happy that he has always kept his sense of humor. Danny suggested
method #2 as an improvement over method #1 in section 4.3. I would like to
thank Marco Tiberga for having been a pleasant colleague, and for his help with
the code development. Among other things, Marco wrote the initial implementation
of the penalty terms in Eq. 5.26.
My employment as a PhD candidate at TU Delft was funded by the sCO2 HeRo
project that has received funding from the European research and training program
2014–2018 (grant agreement ID 662116).
I am grateful to prof. dr. Laurien Eckart and prof. dr. Jörg Starflinger for having
given me the opportunity to work at the Institut für Kernenergetik und Energiesys
teme (IKE) at the University of Stuttgart, without which this thesis would not have
been realized. I was graciously given access to the HazelHen supercomputer at the
HighPerformance Computing Center Stuttgart (HLRS), which greatly sped up the
development and implementation of the large eddy simulation models. Sandeep
Pandey contributed significantly with practical tips on the turbulent channel flow
simulations.
My stay at IKE in Stuttgart was partially supported by the ENEN+ project that
has received funding from the Euratom research and training Work Programme
2016–2017 — 1 #755576.
I would like to thank Rene Pecnik for the discussion on the discretization of
the enthalpy equation with a variable density. Rene also provided access to the
Reynolds computer cluster at the TU Delft, which was used for some of the calcu
lations in section 5.4.
Ten slotte ben ik erg gesteund door het geduld en meeleven van Matteo. Ik ben
je onbeschrijvelijk dankbaar voor het vertrouwen, het lachen, de herinneringen en
de liefde die je me de afgelopen jaren gegeven hebt en zie ernaar uit om elkaars
levens daar nog lang mee te vullen.
109
Curriculum Vitæ
Aldo Hennink
Education
2012 Msc. in Physics
Technical University of Delft
111
List of Publications
3. A. Hennink, M. Tiberga, D. Lathouwers, A Pressurebased solver for lowMach num
ber flow using a discontinuous Galerkin method, Journal of Computational Physics,
425, 109877 (2021).
113