Flux Approximation Schemes For Flow Problems Using Local Boundary Value Problems
Flux Approximation Schemes For Flow Problems Using Local Boundary Value Problems
Flux Approximation Schemes For Flow Problems Using Local Boundary Value Problems
Published: 20/12/2017
Document Version
Publisher’s PDF, also known as Version of Record (includes final page, issue and volume numbers)
• A submitted manuscript is the author's version of the article upon submission and before peer-review. There can be important differences
between the submitted version and the official published version of record. People interested in the research are advised to contact the
author for the final version of the publication, or visit the DOI to the publisher's website.
• The final author version and the galley proof are versions of the publication after peer review.
• The final published version features the final layout of the paper including the volume, issue and page numbers.
Link to publication
General rights
Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners
and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights.
• Users may download and print one copy of any publication from the public portal for the purpose of private study or research.
• You may not further distribute the material or use it for any profit-making activity or commercial gain
• You may freely distribute the URL identifying the publication in the public portal ?
Take down policy
If you believe that this document breaches copyright please contact us providing details, and we will remove access to the work immediately
and investigate your claim.
Nikhil Kumar
This work is part of the Industrial Partnership Programme (IPP) Computa-
tional Sciences for Energy Research (project number: 101760) of the (former)
Foundation for Fundamental Research on Matter (FOM), which is (now) part
of the Netherlands Organization for Scientific Research (NWO). This research
programme is co-financed by Shell Global Solutions International B.V.
ISBN: 978-90-386-4391-5
PROEFSCHRIFT
door
Nikhil Kumar
1 Introduction 1
1.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Spatial discretization . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 Main results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4 Outline of the thesis . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Discretization techniques 9
2.1 Convection-diffusion equation . . . . . . . . . . . . . . . . . . . 10
2.2 Incompressible Navier-Stokes equations . . . . . . . . . . . . . 16
3 Convection-diffusion equation 21
3.1 Convection-diffusion equation . . . . . . . . . . . . . . . . . . . 22
3.2 Inhomogeneous local BVP approximation . . . . . . . . . . . . 28
3.3 Numerical dissipation and dispersion . . . . . . . . . . . . . . . 32
3.4 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5 Complete-flux schemes 57
5.1 Integral representation of the flux . . . . . . . . . . . . . . . . . 58
5.2 Complete-flux scheme for the viscous
Burgers equation . . . . . . . . . . . . . . . . . . . . . . . . . . 63
5.3 Nonlinear local BVP approximation . . . . . . . . . . . . . . . 69
i
5.4 Flux in the inviscid limit . . . . . . . . . . . . . . . . . . . . . . 72
5.5 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
8 Conclusion 105
8.1 Concluding remarks . . . . . . . . . . . . . . . . . . . . . . . . 105
8.2 Recommendations for future work . . . . . . . . . . . . . . . . 107
Bibliography 109
Summary 118
Acknowledgments 125
ii
Abbreviations
BVP boundary value problem
CFS complete-flux scheme
DAE differential-algebraic equation
FVM finite-volume method
HFS homogeneous flux scheme
ODE ordinary differential equation
PDE partial differential equation
TVD total variation diminishing
TVNI total variation non-increasing
iii
List of symbols
ν diffusion coefficient
ν num numerical diffusion coefficient
art
ν artificial diffusion coefficient
Re Reynolds number
P grid Péclet number
σ scaled coordinate
L differential operator for the steady convection-diffusion equation
Lh discrete form of the differential operator L
TV total variation
Ω mass matrix associated with the spatial discretization
M discrete divergence operator
N nonlinear convection operator with components (N u , N v )
G discrete gradient operator with components (Gu , Gv )
D discrete diffusion operator with components (Du , Dv )
L discrete Laplacian operator
iv
List of functions
1 + z
Artanh(z) = log
1−z
tanh(z)
tanhc(z) =
z
z
B(z) =
ez − 1
ez/2 − 1 − z/2
C(z) =
z(ez − 1)
D(z) = z tanh(z)
1 2
E(z) = 2tanhc(z) + tanh(z)
4
1
W (z) =
ez +1
ez − 1 − z
W1 (z) =
z(ez − 1)
eσz − 1
H1 (σ; z) =
ez − 1
ez − 1 − z
H2 (z) =
z 2 (ez + 1)
v
Chapter 1
Introduction
1
Introduction
In this thesis, we focus mainly on the spatial discretization using the finite-
volume method for the viscous Burgers equation [11] and the incompressible
Navier-Stokes equations. The spatial discretization schemes discussed in the
thesis can be applied to other models as well, involving the convection-diffusion
phenomenon. In the following, we mention a couple of these models:
1.1 Motivation
The research described in this thesis has been carried out within the framework
of the topic ‘Wind op Zee’ (Offshore wind) of the Dutch national ‘Topsector
Energie’. In essence, the goal of the research in this thesis is to further pave
the way for robust, accurate and efficient computations of turbulent air flows
in offshore wind farms.
Figure 1.1 shows the Horns Rev 2 offshore wind farm under stable atmo-
spheric conditions [41]. The grouping of wind turbines in an offshore wind
farm raises two issues: wake velocity deficits and higher loads on the blades
due to increased turbulence. In order to address both issues it is essential to
understand the wake dynamics of the turbines. The physics of the wind turbine
wake can be described by the incompressible Navier-Stokes equations, with the
atmospheric velocities ranging between 4-25 m/s [30]. Note that for modeling
the aerodynamics at the blade tips, with increasing rotor diameters, in future,
it may become necessary to take into account compressibility effects. To model
the wake it is essential to have robust, accurate and efficient numerical methods
2
Introduction
Figure 1.1: Photograph of the Horns Rev 2 offshore wind farm under stable
atmospheric conditions (wind speed 13 m/s at hub height), taken by Bel Air
Aviation Denmark.
∇ · u = 0, (1.1a)
∂u 1 2
+ ∇ · (uu) = −∇p + ∇ u, (1.1b)
∂t Re
which govern the flow of a Newtonian incompressible fluid with velocity field u,
pressure p and Reynolds number Re. The above system of equations is derived
from the principle of conservation of mass and momentum for the fluid, more
details can be found in [5, 102].
For turbulent flows, the presence of the nonlinear convective term introduces
a wide range of length and time scales depending on the Reynolds number, the
ratio of convective and viscous forces, [4, 16, 47, 83]. For modern-day wind tur-
bines having rotor diameters up to 120 m, with Reynolds numbers of the order
108 , resolving all length scales using direct numerical simulation (DNS) is still
unrealistic. Thus turbulence models are constructed to account for the effects
at small scale. A large number of turbulence models have been constructed in
the past decades, see e.g. [65, 73, 77, 104], with RANS (Reynolds-Averaged
Navier-Stokes) and LES (Large Eddy Simulation) being the most commonly
used models. For modeling the wake of a wind farm LES is preferred due to its
ability to handle unsteady turbulent flows dominated by large scale structures
and turbulent mixing [45, 74].
3
Introduction
When using LES, one should be very careful with the discretization of the
nonlinear convective term. In [1], the authors provide an overview of finite-
volume discretization schemes for LES. The central scheme does not add any
non-physical dissipation to the system, but suffers from spurious oscillations,
particularly at higher Reynolds numbers [36, 105]. The spurious oscillations
can be removed by explicitly adding numerical dissipation for stabilization or
by using an upwind scheme. However, using an upwind scheme can influence
the energy cascades from large to small scales, due to numerical dissipation
[57]. To avoid this, central schemes are sometimes used in combination with
higher-order upwind schemes [6, 84]. As a drawback, higher-order schemes
may significantly increase the computational cost of the method. Not only the
spatial discretization, but also the time integration can introduce numerical
dissipation and introduce instabilities in the numerical scheme. The time in-
tegration using the implicit Runge-Kutta methods as described in [74, 75] is
shown to be stable and energy-conserving. In this thesis, we present spatial
discretization methods, that do not suffer from spurious oscillations and intro-
duce no or very little numerical dissipation, without any significant increase in
the computational cost.
• take into account all the forces acting on the fluid locally.
We present spatial discretization methods for flow problems involving non-
linear convection using local boundary value problems (BVPs). The scheme
is inspired by the flux approximation schemes for the convection-diffusion-
reaction equation presented in [87, 90]. The scheme is based on the principle of
solving the conservation law governing the local flow, such that the numerical
approximation is locally exact. Similar schemes have been proposed in [91, 92],
where the flux is approximated using a local BVP assuming constant coeffi-
cients, resulting in the exponentially fitted scheme. A more detailed account
of exponentially fitted schemes, which are hybrid combinations of the central
and upwind scheme, can be found in [18, 20, 44]. An improvement of the expo-
nentially fitted schemes can be found in [21], where the exponential scheme is
4
Introduction
combined with Keller’s box scheme [46] to produce a stable second-order finite-
difference scheme. Exponentially fitted schemes are widely used for simulating
the drift-diffusion equations for semi-conductor devices, where these schemes
are known as the Scharfetter-Gummel schemes [3, 9].
In our approach, we derive an integral representation for the flux using the
local BVP, including the source term, e.g., the reaction term for the convection-
diffusion-reaction equation and the pressure gradient for the Navier-Stokes
equations, etc. For unsteady problems, the time derivative of the unknown
can also be included as a source term, as in [86]. The integral representation
can be expressed as the sum of a homogeneous part, corresponding to the homo-
geneous solution of the local BVP, and an inhomogeneous part, corresponding
to the particular solution (depending on the source term), respectively. The
numerical flux is subsequently determined from the integral representation us-
ing suitable quadrature rules. In the absence of the source term, the scheme
reduces to the exponentially fitted scheme, [55], which is not uniformly second-
order accurate, but is free of any spurious oscillations. The inclusion of the
source term in the local BVP, results in reduced local truncation errors for the
discretization [55], giving a uniformly second-order approximation.
As mentioned earlier, the flux approximation using a homogeneous local
BVP results in the exponentially fitted scheme, where the numerical scheme
has the same exponential solution as the corresponding differential equation.
For the linear convection-diffusion equation, the exponentially fitted scheme
provides an accurate description of the behavior of the local BVP. However, for
nonlinear problems, which may not necessarily possess an exponential solution,
using the homogeneous flux approximation might not result in a locally exact
scheme. For simulating turbulent flows, it is essential that the nonlinearity of
the convective part of the flux is taken into consideration, as linearization may
eliminate the length scales arising due to the nonlinearity of the convective
term. Consequently, we have constructed a nonlinear local BVP scheme for
the approximation of the fluxes in the viscous Burgers equation, where instead
of deriving integral representations of the flux, the numerical flux is computed
directly from a nonlinear equation.
5
Introduction
6
Introduction
and exhibits first-order accuracy over coarse grids and second-order accuracy
over finer grids. Further, we demonstrate the significance of the source terms.
We show that the discretization of the convective term using inhomogeneous
local BVPs results in a second-order accurate approximation, which is free of
any non-physical oscillations.
Subsequently, in Chapter 4 we extend the use of local BVPs for the discret-
ization of the nonlinear convective terms in the incompressible Navier-Stokes
equations. The discrete convective terms are computed from linearized local
BVPs. As in the case of the linear convection-diffusion equation, it is observed
that the inclusion of the source term, i.e., the pressure gradient and the gradi-
ent of the transverse flux, provides a more accurate approximation and appears
to remove the numerical diffusion introduced by the homogeneous part of the
approximation. In order to account for the nonlinearity of the convective term,
the local BVP is solved iteratively. The scheme is tested for some classical flow
problems, such as, the Taylor-Green vortex and lid-driven cavity problem. Nu-
merical results for the inhomogeneous approximation scheme exhibit uniform
second-order convergence without introducing any non-physical oscillations.
In Chapter 5, we extend the use of local BVPs for the approximation of the
total flux, i.e., the sum of the convective and the diffusive flux. We present the
integral representations for the flux derived from inhomogeneous local BVPs,
as shown in [87]. The scheme is then extended to the viscous Burgers equa-
tion. We present two approaches to deal with the nonlinear local BVPs. In the
first approach, we linearize the local BVP using the cell-face velocity compon-
ents that are themselves computed from local BVPs, as shown in Chapter 4.
The linearized BVP can then be integrated exactly. In the second approach,
we derive the integral representation for the nonlinear problem and then use
straightforward quadrature rules to derive the numerical flux. We show that
applying quadrature rules to the nonlinear integral representation does not
result in a consistent numerical flux.
The flux approximation scheme using the linearized local BVPs for the vis-
cous Burgers equation is extended to the incompressible Navier-Stokes equa-
tions in Chapter 6. We combine the flux approximation scheme with the Harlow
& Welch [39] staggered grid configuration, using the pressure gradient and the
gradient of the transverse flux as source terms. The inclusion of the source
terms in the BVP is shown to result in a uniformly second-order approxima-
tion.
In Chapter 7, we present another approach for computing the numerical flux
for the viscous Burgers equation using a nonlinear local BVP. In this scheme,
the numerical flux is computed by solving a nonlinear algebraic equation that
is in turn derived from the nonlinear local BVP. The scheme is shown to be
consistent with Godunov’s approximation in the inviscid limit.
Finally, in Chapter 8 we summarize our findings, draw conclusions and
present recommendations for future research.
7
Chapter 2
Discretization techniques
9
Discretization techniques
discrete conservation of mass, momentum and energy (in the inviscid case)
on Cartesian grids [60]. We discuss the second-order accurate discretization
method in two dimensions. The discretization can be extended to higher-order
methods and can also be used for three-dimensional flow problems.
Applying the spatial discretization results in a differential-algebraic equa-
tion (DAE) system, which is integrated in time using Runge-Kutta methods.
Details regarding the application of Runge-Kuttta methods to DAE systems
can be found in [37, 58]. We use the implicit Runge-Kutta methods presented
in [74, 75, 76], which are known to be energy conserving and have non-linear
stability for any given time step size.
This chapter is organized as follows: in Section 2.1 we describe the spatial
and temporal discretization for the convection-diffusion equation. Section 2.2
gives the spatial discretization of the incompressible Navier-Stokes equations
and the time integration of the resulting semi-discrete system.
∂φ
+ ∇ · f = s, f = aφ − ν∇φ, (2.1)
∂t
for the unknown φ, where f is the flux function, a the velocity field, ν the
constant diffusion coefficient, and s = s(x, t) the source term. Integrating the
above conservation law on a fixed domain Ω with boundary Γ and using the
divergence theorem gives the integral form of the conservation law, i.e.,
Z I Z
d
φ dV + f · n dS = s dV, (2.2)
dt Ω Γ Ω
where n is the outward unit normal on the boundary Γ. We adopt the cell-
centered approach [100], where the variable φ is approximated at the center of
the cell. For a two-dimensional cell Ωj , j = (i, j) (see Figure 2.1) the conser-
vation law is given by
Z X Z Z
d
φ dA + f · n ds = s dA, (2.3)
dt Ωj Γj,k Ωj
k∈N (j)
where N (j) is the index set of neighboring grid points of xj and Γj,k is the
segment of the boundary Γj connecting the adjacent cells Ωj and Ωk . Approx-
10
Discretization techniques
j+1
Ωj
j−1
i−1 i i+1
Figure 2.1: Grid structure for the spatial discretization of the convection-
diffusion equation.
imating all integrals in equation (2.3) using the midpoint rule [8], we obtain
the semi-discrete conservation law,
X
φ̇j (t) |Ωj | + (F(t) · n)j,k |Γj,k | = sj (t) |Ωj |, φj (t) ≈ φ(xj , t), (2.4)
k∈N (j)
∂
where φ̇j (t) ≈ ∂t φ(xj , t), |Ωj | is the area of the control volume Ωj and (F(t) ·
n)j,k is the normal component of the numerical flux F(t) on Γj,k , directed from
xj to xk . From now on, we suppress the time dependence of the semi-discrete
equation (2.4) and express it simply as
X
φ̇j |Ωj | + (F · n)j,k |Γj,k | = sj |Ωj |. (2.5)
k∈N (j)
From the above, we get that the spatial discretization of the conservation law
(2.1) requires the approximation of the normal component, F · n, of the numer-
ical flux at the interfaces of the control volume.
For the one-dimensional problem with the flux function given by f = aφ −
νφx , equation (2.5) reduces to
h φ̇i + Fi+1/2 − Fi−1/2 = h si , (2.6)
where Fi+1/2 ≈ f (xi+1/2 ) and h = |Ωi |, see Figure 2.2. Using the second-order
central difference approximation of the derivative φx , the flux approximation
at the interface is given by
ν
Fi+1/2 = a φi+1/2 − (φi+1 − φi ),
h
11
Discretization techniques
φi
Ωi−1 Ωi Ωi+1
Fi−1/2 Fi+1/2
xi−2 xi−1 xi xi+1 xi+2
h
xi−1/2 xi+1/2
where φi+1/2 ≈ φ(xi+1/2 ). Finally, for the flux approximation the unknown φ
needs to be interpolated at the cell-face xi+1/2 of the control volume.
In order to ensure that the resulting discretization has a three-point coup-
ling, φi+1/2 is interpolated using φi and φi+1 , such that
φi+1/2 = c− +
i φi + ci+1 φi+1 ,
with c− + − + − +
i + ci+1 = 1 and 0 ≤ ci ci+1 ≤ 1. The coefficients ci and ci+1 depend on
the approximation scheme used for computing φi+1/2 , e.g., the central scheme
dictates
1
φci+1/2 = (φi + φi+1 ),
2
and thus has c− +
i = 1/2 and ci+1 = 1/2. In Chapter 3, we present the upwind
scheme and local BVP methods for computing φi+1/2 . The numerical flux
Fi+1/2 can now be expressed as
ν
Fi+1/2 = a(c− +
i φi + ci+1 φi+1 ) − (φi+1 − φi )
h
ν
(1 + P c− +
= i )φi + (P ci+1 − 1)φi+1 ,
h
where
ah
P :=
ν
is the mesh Péclet number, a dimensionless parameter giving the ratio of con-
vective and viscous forces. The semi-discrete equation (2.6) can now be formu-
lated as
−ν
− P c− − +
h φ̇i = i−1 + 1 φi−1 + 2 + P (ci − ci ) φi +
h (2.7)
P c+
i+1 − 1 φi+1 + h si .
12
Discretization techniques
The proof to the above theorem can be found in [15]. Analogous to the max-
imum principle, one can find the minimum principle for L[φ] ≥ 0. Thus, we
get that the homogeneous convection-diffusion equation
aφx − νφxx = 0
can attain its extrema only at the boundary of the domain. Equivalently, the
solution to the above equation does not have a local minimum or maximum in
the interior of the domain.
Next, we present the discrete maximum principle for the discrete operator
Lh defined on the grid xi = x0 + (i − 1)h, i = 1, 2, · · · , N with h = 1/(N − 1),
given by X
Lh [φi ] = ci,k φi+k ,
k∈K
where K is some index set for grid points in the interior of the domain, φi , i =
2, · · · , N − 1.
Definition 2.2. The operator Lh is said to be of positive type, if
X
ci,k = 0, i = 2, · · · , N − 1
k∈K
and
ci,k ≤ 0, k 6= 0, i = 2, 3, · · · , N − 1.
We now present the discrete maximum principle for operators of positive type.
Theorem 2.3 (Discrete maximum principle). If Lh is of positive type and
Lh [φi ] ≤ 0, for i = 2, · · · , N − 1,
then local maxima of φ can occur only if i = 1 or i = N , or if φi = constant.
13
Discretization techniques
14
Discretization techniques
with the coefficients aij , bi and ci given by the Butcher tableau [12]
The method is explicit if the matrix A is lower triangular and implicit otherwise.
For the method to be consistent the coefficients in the Butcher tableau must
at least satisfy
s
X
bi = 1, (2.13a)
i=1
s
X
aij = ci for i = 1, 2, · · · , s. (2.13b)
j=1
0
1 1
2 2
1 1
2 2
1 1
1 1 1 1
6 3 3 6
15
Discretization techniques
For larger time steps implicit-explicit Runge-Kutta methods [2, 25] or impli-
cit Runge-Kutta methods [13, 14] can be used. Alternatively, to have a second-
order accurate time integration scheme that allows for larger time steps, we
can apply the semi-implicit θ-method with θ = 1/2, given by
Un+1 − Un
= θG(tn+1 , Un+1 ) + (1 − θ)G(tn , Un ). (2.14)
∆t
For the ODE-system (2.8) the θ-method translates to
Φn+1 − Φnh
h
= θ −AΦn+1 +Sn+1 +bn+1 +(1−θ) −AΦnh +Snh +bn , (2.15)
h h
∆t
resulting in the discrete system
For θ = 1/2, the trapezoidal rule, the time integration is A-stable and second-
order accurate.
Next, we consider the spatial and temporal discretization of the incompress-
ible Navier-Stokes equations.
∇ · u = 0, (2.17a)
∂u 1
+ ∇ · (uu) = −∇p + ∇2 u, = , (2.17b)
∂t Re
where u = u(x, y, t)ex + v(x, y, t)ey , p(x, y, t) and Re represent the velocity
field, the pressure and the Reynolds number of the flow, respectively. The
above system of equations is discretized on a Cartesian staggered grid, with
the pressure and the velocity components defined at different locations on the
grid; see Figure 2.3. The staggering of the variables ensures coupling between
the divergence and the gradient operator. The semi-discrete incompressible
Navier-Stokes equations are given by
Mu = r1 (t), (2.18a)
Ωu̇(t) = −N(u) + Du(t) − Gp(t) + r2 (t), (2.18b)
where u(t) is the discrete velocity vector, and where M, N, D and G represent
the discrete divergence, the non-linear convection, the viscous term and the
gradient operator, respectively. The vector r1 gives the boundary conditions
16
Discretization techniques
vi,j+3/2
Ωvi,j+3/2
×
pi,j+1 ui+1/2,j+1
vi,j+1/2
Ωui+1/2,j
∆y ×
pi,j ui+1/2,j
∆x
Figure 2.3: Uniform, 2-D staggered grid for the incompressible Navier-Stokes
equations.
17
Discretization techniques
for the continuity equation (2.17a) and r2 contains the boundary conditions
for the momentum equations (2.17b). The diagonal matrix Ω = diag(Ωu , Ωv )
contains the areas of the u- and v-control volumes (shown in Figure 2.3). Using
the second-order FVM on uniform grids with |Ωu | = |Ωv | = ∆x∆y, the discrete
operators are then given by
The discretization of the nonlinear convective operator N(u) for the u-component
N u is given by
N u (u)i+1/2,j =ūi+1,j ui+1,j − ūi,j ui,j +
ṽi+1/2,j+1/2 ui+1/2,j+1/2 − ṽi+1/2,j−1/2 ui+1/2,j−1/2
(2.20a)
=∆y u2i+1,j − u2i,j + ∆x (uv)i+1/2,j+1/2 −
(uv)i+1/2,j−1/2 .
Details regarding the computation of the cell-face velocity components ui,j , ui+1,j
and (uv)i+1/2,j+1/2 can be found in Chapter 4. Similarly, the v-component of
the convective operator N v is given by
N v (u) i,j+1/2 =ṽi,j+1 vi,j+1 − ṽi,j vi,j + ūi+1/2,j+1/2 vi+1/2,j+1/2 −
ūi−1/2,j+1/2 vi−1/2,j+1/2
2 2
(2.20b)
=∆x vi,j+1 − vi,j + ∆y (uv)i+1/2,j+1/2 −
(uv)i−1/2,j+1/2 .
The discrete diffusion term is given by
(Dv (u))i,j+1/2 = δx v
i+1/2,j+1/2
− δx v i−1/2,j+1/2 +
(2.21b)
y v i,j+1 − δy v i,j ,
δg g
where
ūi+3/2,j − ūi+1/2,j ũi+1/2,j+1 − ũi+1/2,j
δx u i+1,j = , δg
y u i+1/2,j+1/2 = .
∆x ∆y
Finally, the discrete gradient operator G = (Gu , Gv ) is given by
18
Discretization techniques
In the above expression for F(u, t), Ω−1 has been absorbed by the discrete
operators N, D, G and r2 . The boundary conditions for the pressure-Poisson
equation can be derived using the boundary conditions for the momentum
equations, as described in [35, 79, 94]. Next, the semi-discrete system (2.18) is
integrated using implicit Runge-Kutta methods.
where
19
Discretization techniques
where aij and ci are the coefficients of the Butcher tableau. Φi is a pressure
like variable satisfying
i
i
X 1 r1 (tn + ci ∆t) − r1 (tn )
LΦ = aij MFj − . (2.27)
c
j=1 i
ci ∆t
We use the second-order Gauss method (implicit mid-point rule) with the
Butcher tableau given by
1 1
2 2
.
1
Details about the implementation of the method and the accuracy of the velo-
city and pressure together with stability analyses are given in [74].
In the following chapters, we present the approximation schemes for the
fluxes involved in the semi-discrete conservation laws.
20
Chapter 3
Convection-diffusion equation
21
Convection-diffusion equation
lems, the time derivative of the unknown can be included as part of the source.
In Section 3.3 we show that the inhomogeneous approximation effectively elim-
inates the numerical dissipation from the homogeneous approximation, thereby
resulting in a second-order accurate scheme.
The chapter is organized as follows: in Section 3.1 we present the difference
operators for the spatial discretization of the convection-diffusion equation and
investigate their stability and accuracy. Section 3.2 shows the significance of
the inclusion of the source term in the local BVP, with an analysis of dissipative
properties presented in Section 3.3.
for some source term s = s(x). For time-dependent problems, the time de-
rivative of the unknown can be included as a source term, i.e, s = −φt . To
numerically solve the above equation, we begin by discretizing the equation
on a uniform grid (xi = ih, i = 0, 1, · · · , N ) with mesh size h = L/N . The
discrete difference operator Lh is then given by
a ν
Lh [φi ] := (φi+1/2 − φi−1/2 ) − 2 (φi−1 − 2φi + φi+1 ) = si , (3.2)
h h
where φi and si are the numerical approximations of φ(xi ) and s(xi ), respect-
ively. In this section, we restrict ourselves to the homogeneous convection-
diffusion equation. In the difference operator Lh , the diffusion term φxx is
approximated by the second-order central difference scheme. The operator Lh
also requires φi+1/2 and φi−1/2 at the auxiliary points xi±1/2 = 21 (xi + xi±1 ),
which should be interpolated using the neighboring values. The central scheme
gives
1
φcen
i+1/2 = (φi + φi+1 ),
2
resulting in the discretization
a ν ν a ν
Lcen
h [φ i ] = − + φ i−1 + 2 φ i + − φi+1
2h h2 h2 2h h2 i (3.3)
ν h
= 2 − 1 + 21 P φi−1 + 2φi − 1 − 12 P φi+1 ,
h
with P = ah/ν the mesh Péclet number.
In Chapter 2 we introduced the notion of positive operators and showed that
they satisfy the discrete maximum principle (Theorem 2.3), and consequently
22
Convection-diffusion equation
From the above, we get that Luph [φi ] gives the same discrete equation as the
central approximation does for the equation
aφx − ν 1 + 12 |P | φxx = 0.
1 − ePL (x/L)
φ(x) = A + (B − A) ,
1 − ePL
where PL = aL/ν. This solution has a thin boundary layer when PL is large,
i.e., the solution φ(x) ≈ A all throughout the domain except in a very small
23
Convection-diffusion equation
φ(x)
φup (x)
1
0.5
0 0.5 1
x
Figure 3.1: Upwind solution compared to the analytical solution for the
convection-diffusion equation with PL = 400.
region near x = L, where the solution attains the boundary condition φ(x) = B.
The thickness of this boundary layer satisfies δ ≈ ν/a = L/PL (see [95]). In
Figure 3.1 we compare the upwind solution with the analytical solution for
PL = 400 and boundary conditions A = 0 and B = 1. Clearly, the upwind
solution has a much thicker boundary layer compared to the analytical solution.
24
Convection-diffusion equation
w+
0.5
w−
-20 -10 0 10 20
P
Figure 3.2: The weights w+ and w− as a function of P .
with c being the integration constant. Next, integrating equation (3.6) from xi
to x ∈ (xi , xi+1 ) and applying the left boundary condition φ(xi ) = φi gives
c x − xi
φ(x) − eP σ(x) φi = 1 − eP σ(x) ,
σ(x) := , a 6= 0,
a h
with σ(x) ∈ [0, 1] being the scaled coordinate on [xi , xi+1 ]. Using the right
boundary condition gives a weighted average of φ on [xi , xi+1 ], i.e.,
25
Convection-diffusion equation
10
1 + P w−
1 − P w+
-10 -5 0 5 10
P
Figure 3.3: Coefficients 1 + P w+ and 1 − P w+ involved in the discrete operator
Lhh
eP/2 + 1 − P
1 − P w+ = .
eP/2 + 1
C1 (z) := ez/2 − z + 1,
with (C1 )z = ez/2 /2 − 1 and (C1 )zz = ez/2 /4 > 0. Thus, the function C1 (z)
has a minimum at z = 2 log(2), given by 3 − log 2 > 0.
Next, for the coefficient 1 + P w− to be positive we need to prove that
26
Convection-diffusion equation
The above condition holds trivially for P ≥ −1. For P < −1, we define the
function
C2 (z) := ez/2 (1 + z).
Differentiating C2 (z) with respect to z, we get that C2 (z) has a global minimum
at z = −3, with C2 (−3) = −2e−3/2 ≈ −0.45. Therefore, 1 + C2 (z) > 0, for all
z ∈ R, resulting in 1 + P w− being positive.
The discretization schemes described above can be expressed as a linear
system
AΦh = b,
where A is the discretization matrix corresponding to the discrete operator Lh
and where b contains the information about the boundary conditions. Thus
we have the discretization matrices Acen , Aup and Ah corresponding to the
up
difference operators Lcen h
h , Lh and Lh , respectively.
Of the above 3-point discretization schemes for equation (3.1), the homo-
geneous local BVP approximation and the upwind scheme always result in a
positive operator, whereas the central scheme is positive only if |P | ≤ 2.
Local discretization error. The local discretization error τi for the discrete
difference operator Lh [φi ] is defined as
Lh [φ(xi )] = si + τi .
27
Convection-diffusion equation
discretization error for the homogeneous local BVP scheme can be expressed as
the same linear combination of the corresponding discretization errors, given
by
1 d2 φ h2 d3 φ ν d4 φ
τih = − ah(1−2w+ ) 2 (xi )+ 2aw+ 3 (xi )− (x 3
i +O(h ),
) a ≥ 0.
2 dx 6 dx 2 dx4
On coarse grids, i.e., for higher Péclet numbers (P > 10), the homogeneous
local BVP scheme reduces to the upwind scheme and exhibits first-order con-
vergence. For finer grids, it reduces to the central scheme and exhibits second-
order convergence.
We have established that the homogeneous local BVP scheme results in a
positive discretization operator and is second-order accurate over finer grids.
The accuracy of the local BVP method can be further improved by the inclusion
of the source term in the model BVP (3.5), as demonstrated in [55] for the
unsteady constant-coefficient convection-diffusion-reaction equation, where the
authors have shown that the inclusion of the source terms makes the complete
flux scheme uniformly second-order convergent.
28
Convection-diffusion equation
with initial condition φ(x, 0) = φ0 (x) and the boundary conditions φ(0, t) =
A(t), φ(L, t) = B(t) and φ0 (0) = A(0), φ0 (L) = B(0). Analogous to equation
(3.2), the above equation can be discretized as
a ν
φ̇i + (φi+1/2 − φi−1/2 ) − 2 (φi−1 − 2φi + φi+1 ) = 0. (3.14)
h h
For the approximation of φi+1/2 , we solve the inhomogeneous quasi-steady BVP
1
(φx − λφ)x = φ̇i+1/2 , xi < x < xi+1 , (3.15a)
ν
φ(xi ) = φi , φ(xi+1 ) = φi+1 , (3.15b)
with source term given by the upwind value of the discrete time derivative of
the unknown, i.e.,
(
φ̇i if a ≥ 0,
φ̇i+1/2 =
φ̇i+1 if a < 0.
1 −λx
(e−λx φ)x =
e φ̇i+1/2 (x − xi+1/2 ) + k1 ,
ν
with k1 the integration constant. Integrating the above equation from xi to
x ∈ (xi , xi+1 ) gives
Z x
1
φ(x) =eλ(x−xi ) φi + φ̇i+1/2 eλ(x−ξ) (ξ − xi+1/2 )dξ+
ν xi
Z x
1
k1 eλ(x−ξ) dξ.
ν xi
Using the normalized coordinate σ(x), the solution of the local BVP (3.15) can
be expressed as
σ
h2
Z
k1 P σ
φ(σ) = eP σ φi + eP (σ−η) η − 1
φ̇i+1/2 2 dη + (e − 1), a 6= 0. (3.16)
ν 0 a
h2
φ(σ) = (1 − σ)φi + σφi+1 − σ(1 − σ)φ̇i+1/2 .
2ν
The constant k1 in equation (3.16) is determined by imposing the boundary
condition φ(xi+1 ) = φi+1 . To compute φi+1/2 , we substitute σ = 1/2, which
29
Convection-diffusion equation
0.5
tanhc(z/4)
0
-20 -10 0 10 20
z
Figure 3.4: Function tanhc(z/4).
gives
φi+1/2 =φhi+1/2 + φinh
i+1/2 , (3.17a)
−
φhi+1/2 +
=w φi + w φi+1 , (3.17b)
1 2 tanh(z)
φinh
i+1/2 =− h tanhc 41 P φ̇i+1/2 , tanhc(z) = . (3.17c)
8ν z
Figure 3.4 shows the plot of tanhc(z). It can be observed that tanhc(P/4)
attains its maximum for P = 0 and then asymptotically goes to 0 as |P | → ∞.
For the sake of simplicity, we restrict ourselves to the case a ≥ 0, thus
φ̇i+1/2 = φ̇i . Using the above approximation in the semi-discrete convection-
diffusion equation (3.14) results in the ODE-system
(Ω + B) Φ̇h = −Ah Φh + b, (3.18)
where Ω = hI is the mass matrix and where B is given by
−1
1 −1
. .
1 2
B = aβ .. .. , β = h tanhc 14 P .
8ν
1 −1
1 −1
Thus, the inclusion of the time derivative as a source term in the local BVP
results in a modified mass matrix Ω + B.
30
Convection-diffusion equation
10 0
kekcentral
kekupwind
kekhom
10 -1 kekinh
||e||∞
10 -2
2
10 -3
10 -4
10 -3 10 -2 10 -1 10 0
h
Figure 3.5: Convergence of the spatial errors for a = 1 and ν = 10−3 for a
family of grids with h = 2−i × 10−1 , i = −1, 0, 1, 2, 3, 4 and ∆t = 10−4 .
31
Convection-diffusion equation
1 1
δx φi := (φi+1 − φi−1 ), δx− φi := (φi − φi−1 ),
2h h
1
δxx φi := 2 (φi+1 − 2φi + φi−1 ),
h
defined for a grid function φi . Using the homogeneous approximation (3.8) for
the interface values φi+1/2 and φi−1/2 results in the difference equation
a + ν
w φi+1 + (w− − w+ )φi − w− φi−1 − 2 φi+1 − 2φi + φi−1 = 0. (3.19)
φ̇i +
h h
Upon rearranging the convective term, equation (3.19) can be expressed as the
sum of the central approximation and a correction term as follows,
a ν
φi+1 − φi−1 − 2 1 + P 12 − w+
φ̇i + φi+1 − 2φi + φi−1 . (3.20)
2h h
Thus, the homogeneous scheme is equivalent to the semi-discretization
h h
φ̇i + aδx φi − νart δxx φi = 0, νart = ν 1 + P 12 − w+ , (3.21)
h
where νart is the artificial diffusion coefficient, defined as the sum of the diffusion
coefficient ν and the numerical diffusion
h
νnum = 2νD(P/4), D(z) := z tanh(z).
h
Figure 3.6 shows the plot of νnum /ν, as a function of P , from which it can be ob-
served that the homogeneous approximation introduces less numerical diffusion
than the upwind scheme. Clearly, for P = 0, the homogeneous approximation
does not introduce any numerical diffusion, whereas, for higher Péclet numbers
h
(|P | 1), νnum ≈ |P |ν/2, the numerical diffusion from the upwind scheme.
32
Convection-diffusion equation
2
Homogeneous
1.5 Upwind
0.5
0
-4 -2 0 2 4
P
Figure 3.6: Plot of the numerical diffusion νnum /ν for the homogeneous local
BVP approximation (νnum /ν = 2D(P/4)) and the upwind scheme (νnum /ν =
|P |/2).
33
Convection-diffusion equation
(a) (b)
20 2
D(z)
E(z)
10 1
0 0
-20 -10 0 10 20 -20 -10 0 10 20
z z
Observe that the extra diffusive term introduced by applying the inverse to the
convective term, i.e.,
h
νnum δx− δx φi = νnum
h
δxx φi + O(h2 ),
exactly cancels the numerical diffusion arising from the homogeneous part of
the approximation. Further, applying the inverse to the diffusive term gives
rise to the dispersive term
h
(1/a)νnum h
(ν + νnum )δx− δxx φi ,
with δx− δxx φi being the first-order approximation of (∂ 3 φ/∂x3 )(xi ). The semi-
discrete equation (3.23) can be expressed as
φ̇i + aδx φi = νδxx φi + δx− δxx φi + O(h2 ), = ah2 E(P/4), (3.25)
where is the numerical dispersion coefficient and
1 2
E(z) := 2tanhc(z) + tanh(z) .
4
Equation (3.25) is thus a second-order accurate approximation of the equation
∂ψ ∂ψ ∂2ψ ∂3ψ
+a =ν 2 + 3, (3.26)
∂t ∂x ∂x ∂x
with ∂ 3 ψ/∂x3 a dispersion term, causing waves of different wavelengths to
travel at different speeds [103]. Figure 3.7 shows the functions D(z) and E(z),
E(z) is a monotonically decreasing function with
lim E(P ) = 1/4.
|P |→∞
34
Convection-diffusion equation
ψ(x, t) = Aei(κx−ωt) ,
with amplitude A, frequency ω and wave number κ, into equation (3.26) (with
ν = 0) gives us the dispersion relation
ω(κ) 1
cp (κ) = = a + κ2 = a 1 + (hκ)2 > a,
κ 4
causing the numerical solution to propagate faster.
Thus, including the source term, s = −φ̇ in the local BVP, eliminates the
numerical diffusion arising from the homogeneous part of the approximation,
at the cost of introducing a dispersion error.
3.4 Conclusion
In this chapter, we introduced the discretization of the convective term in the
convection-diffusion equation using local BVPs. Integrating the local BVP
provides us the integral representation, which can be expressed as the sum of a
homogeneous and an inhomogeneous part, corresponding to the homogeneous
and particular solution of the local BVP, respectively. The homogeneous ap-
proximation, is a weighted sum of the central and the upwind scheme, such that
the homogeneous approximation reduces to the upwind scheme for |P | → ∞
and to the central scheme for |P | 1. Consequently, it exhibits second-order
convergence on finer grids and first-order on coarse grids. To have a uniformly
second-order scheme it is essential to include the inhomogeneous part of the
approximation. We have shown that inclusion of the source term s = −φt
cancels the numerical diffusion introduced by the homogeneous part of the
approximation.
In the next chapter, we demonstrate the use of local BVPs for the discret-
ization of the convective terms in the incompressible Navier-Stokes equations,
with the pressure gradient and the gradient of the transverse flux forming the
source term. Like for the convection-diffusion equation, where the inclusion
of the source term makes the discretization second-order accurate, we show
that inhomogeneous local BVP methods applied to the Navier-Stokes equation
result in second-order convergent schemes.
35
Chapter 4
37
Convective discretization of the Navier-Stokes equations
the mesh Péclet number (ratio of the convective and viscous forces).
Apart from the convective and viscous forces, the cell-face velocities are
also affected by the pressure gradient and the effect of rotational behavior
(quantitatively given by the gradient of the transverse flux) of the fluid flow.
In this chapter we present methods for the computation of cell-face velocities
using reduced momentum equations subject to suitable boundary conditions,
reducing the problem to a local boundary value problem (BVP). We aim to
have approximation methods for cell-face velocities, that are accurate, free of
numerical oscillations, introduce no or very little numerical dissipation and
result in a 3-point coupling (in each spatial direction).
The chapter is organized as follows: In Section 4.1 the finite-volume method
is briefly described, giving a mathematical formulation for the computation of
cell-face velocity components. In Section 4.2, we derive an integral represent-
ation for the cell-face velocities by solving local BVPs. Sections 4.3 and 4.4
give the details about the closure of the model and iterative computation of
the cell-face velocities. The numerical results for the local BVP methods are
discussed in Section 4.5 and conclusions are drawn in Section 4.6.
38
Convective discretization of the Navier-Stokes equations
Ωvi,j+1/2
pi,j+1
yj+1 o
Ωui+1/2,j
vi,j+1/2
∆y pi,j
yj o o
ui+1/2,j ui+3/2,j
xi xi+1
∆x
Figure 4.1: Control volumes for the spatial discretization of the momentum
equations.
39
Convective discretization of the Navier-Stokes equations
xi+1/2 ∆x xi+3/2
Figure 4.2 shows the domain and the boundary conditions involved in the
computation of ui+1,j , the details of which are given in the following section.
a := U/, P := a ∆x ,
40
Convective discretization of the Navier-Stokes equations
pi+1,j
pi+2,j
pi,j
xi+1/2 xi+3/2
Figure 4.3: The piecewise linear pressure profile over the domain of the local
BVP.
where ∆x = xi+3/2 − xi+1/2 and P is the mesh Péclet number. Thus equation
(4.6) can be rewritten as
1 u
(ux − au)x = (δx p + Ci+1,j ). (4.7)
Since the pressure is assumed to be piecewise linear, we get that the pressure
gradient px is given by
1
(
(δx p)i+1/2,j = ∆x (pi+1,j − pi,j ), xi+1/2 ≤ x ≤ xi+1 ,
δx p(x) =
1
(δx p)i+3/2,j = ∆x (pi+2,j − pi+1,j ), xi+1 < x ≤ xi+3/2 .
x − xi+1/2
σ := σ(x) = .
∆x
41
Convective discretization of the Navier-Stokes equations
where
eP σ − 1
H1 (σ; P ) := .
eP − 1
Summarizing, the integral representation u(σ) can be expressed as the sum of
three parts, i.e.,
42
Convective discretization of the Navier-Stokes equations
eP − 1 − P
H2 (P ) := ,
P 2 (eP + 1)
1
and I2 (1; P ), up ( 12 ) can be written as
and using the expressions for I2 2; P
1
up 1
∆x2 H2 (−P/2)(δx p)i+1/2,j + H2 (P/2)(δx p)i+3/2,j .
2 =− (4.15)
4
1
Finally, uc 2 can be expressed as
1 P
u
uc 1
∆x2 Ci+1,j
2 =− tanhc . (4.16)
8 4
Observe that the function H2 (z) and tanhc(z) satisfy
1
H2 (−z) + H2 (z) = tanhc(z/2), (4.17)
2
implying that inhomogeneous part (4.15) with piecewise constant source term
is equivalent to expression (4.16), if (δx p)i+1/2,j = (δx p)i+3/2,j . Summarizing,
we get that the velocity component ui+1,j is given by
ui+1,j = uh ( 21 ) + up ( 12 ) + uc ( 12 ), (4.18)
43
Convective discretization of the Navier-Stokes equations
0.25
0.15
H2 (−z/2)
0.05
H2 (z/2)
-20 -10 0 10 20
z
Figure 4.4: Function H2 .
44
Convective discretization of the Navier-Stokes equations
and the function tanhc(P/4) (see Figure 3.4), which attains its maximum for
P = 0 and then asymptotically goes to 0 as |P | → ∞.
u 1
Ci+1/2,j = (uv)i+1/2,j+1/2 − (uv)i+1/2,j−1/2 −
∆y
2
ui+1/2,j+1 − 2ui+1/2,j + ui+1/2,j−1 .
∆y
u
The gradient Ci+3/2,j can be computed similarly. For the inhomogeneous 1-D
local BVP approximation, we have seen that for |P | 1, the upwind pressure
gradient has a higher contribution and for |P | 1, both upwind and downwind
pressure gradients have an almost equal contribution. Analogously, we compute
u
Ci+1,j as the weighted average:
u u u
Ci+1,j = W (−P/2)Ci+1/2,j + W (P/2)Ci+3/2,j ,
u u u
such that Ci+1,j is given by the average of Ci+1/2,j and Ci+3/2,j for |P | 1
and by the upwind approximation if |P | 1.
45
Convective discretization of the Navier-Stokes equations
vi+1/2,j+1/2
ui+1/2,j+1
yj+1 vi,j+1/2 vi+1,j+1/2
yj+1/2 ui+1/2,j+1/2
∆y
yj
yj ui+1/2,j
xi xi+1/2 xi+1
xi ∆x
(a) Velocity component ui+1/2,j+1/2 . (b) Velocity component vi+1/2,j+1/2 .
(uv)y − uyy = 0,
(uv)x − vxx = 0,
where b := V /, with V being an estimate for vi,j+1 . Again, we assume that
v
δy p is piecewise constant and Ci,j+1 ≈ (uv − vx )x |(xi ,yj+1 ) , is constant over the
interval (yj+1/2 , yj+3/2 ). Solving the local BVP, as discussed in Section 4.2, we
46
Convective discretization of the Navier-Stokes equations
vi,j+1 = v h ( 12 ) + v p ( 12 ) + v c ( 21 ), (4.24a)
v v
v h ( 21 ) = W (−P /2)vi,j+1/2 + W (P /2)vi,j+3/2 , (4.24b)
1
v p ( 21 ) = − ∆x2 H2 (−P v /2)(δy p)i,j+1/2 + H2 (P v /2)(δy p)i,j+3/2 , (4.24c)
4
1 v
c 1
v ( 2 ) = − Ci,j+1 tanhc(P v /4), (4.24d)
8
47
Convective discretization of the Navier-Stokes equations
48
Convective discretization of the Navier-Stokes equations
end
Table 4.1: Absolute errors (keu k∞ ) for the Taylor-Green vortex problem, for
Re = 105 , on a 20 × 20 grid, at t = 20 and t = 100.
49
Convective discretization of the Navier-Stokes equations
Figure 4.6: Streamline plots for the Taylor-Green vortex problem for Re = 105
on a 20 × 20 grid at t = 100 (∆t = 10−2 , implicit second-order accurate Gauss
method)
50
Convective discretization of the Navier-Stokes equations
Exact
Central
Upwind
E kin
0.5
Hom 1-D
Inhom 1-D
Inhom 2-D
0
0 50 100
t
Figure 4.7: Temporal behavior of the discrete kinetic energy for the Taylor-
Green vortex problem, for Re = 105 .
51
Convective discretization of the Navier-Stokes equations
10 0
Upwind
10 -2
keu k∞
Hom 1-D
2
10 -4
Central
Inhom 1-D
Inhom 2-D
10 -6
10 -3 10 -2 10 -1 10 0
h
Figure 4.8: Convergence of the spatial errors for the Taylor-Green vortex prob-
lem, for Re = 100 and at t = 20, for a family of grids (5 × (2i , 2i ), i =
0, 1, 2, · · · , 6 ).
ical solution significantly, resulting in the same error behavior (same order and
same magnitude) as that of the central scheme.
52
Convective discretization of the Navier-Stokes equations
Central 1
Upwind 0.911
Homogeneous 1-D local BVP 1.106
Inhomogeneous 1-D local BVP 1.263
2-D local BVP 1.284
Table 4.2: Comparison of computing times for the lid-driven cavity problem,
for Re = 100, on a uniform 16 × 16 grid.
4.6 Conclusion
In this chapter we presented methods for computing the cell-face velocity com-
ponents involved in the discrete convective terms of the incompressible Navier-
Stokes equations, using local BVPs. The cell-face velocities are computed by
iteratively solving the nonlinear, local BVPs. Depending on the terms in the
right-hand side of the local BVP we get three different methods, namely, the ho-
mogeneous 1-D local BVP method, the inhomogeneous 1-D local BVP method
and the 2-D local BVP method. The homogeneous 1-D local BVP method
provides an estimate for the cell-face velocity as a weighted average of the neigh-
boring values depending on the Péclet number. In the limiting case P → 0, it
becomes identical to the central scheme and for |P | → ∞ it reduces to the up-
wind scheme. The order of accuracy of the computed numerical solutions using
the homogeneous 1-D local BVP method varies from first-order to second-order
depending on the mesh Péclet numbers.
In the inhomogeneous 1-D local BVP method we include the effect of the
53
Convective discretization of the Navier-Stokes equations
0.8
0.6
0.6
y
0.4
0.4
0.2
0.2
0.0
−0.4 −0.2 0.0 0.2 0.4 0.6 0.8 1.0
u
Figure 4.9: Horizontal velocity component along the vertical center line of the
cavity for Re = 100 on a uniform 8 × 8 grid.
54
Convective discretization of the Navier-Stokes equations
0.8
0.6
0.6
y
0.4
0.4
0.2
0.2
0.0
−0.4 −0.2 0.0 0.2 0.4 0.6 0.8 1.0
u
Figure 4.10: Horizontal velocity component along the vertical center line of the
cavity for Re = 100 on a uniform 16 × 16 grid.
55
Chapter 5
Complete-flux schemes
In this chapter we first rehearse the complete-flux scheme (CFS) for the linear
convection-diffusion-reaction equation as presented in [87]. Analogous to the
local BVP approximation schemes presented in Chapter 4, in the CFS we first
derive an integral representation for the total flux from a local two-point BVP.
The integral representation is derived from a local BVP for the entire equation,
i.e., including the source term and therefore, it can be expressed as a sum of
a homogeneous and an inhomogeneous part, corresponding to the convection-
diffusion operator and the source term, respectively. The numerical flux is then
computed from the integral representation using suitable quadrature rules. The
CFS scheme is then extended to the viscous Burgers equation.
For the Burgers equation, the nonlinearity of the flux makes it difficult
to derive a numerical flux expression from the integral representation that is
consistent in the inviscid limit. Moreover, we show that using straightforward
quadrature rules for the nonlinear integral formulation of the flux does not
result in a consistent approximation. To simplify the flux computation, we
linearize the local BVP using the cell-face velocities, which are computed using
local BVPs, as demonstrated in the previous chapter. The linearized BVP is
then used to compute the flux. For the linearization, the choice of the method
used to compute the cell-face velocity plays a significant role, in determining
the flux in the vanishing viscosity limit.
This chapter is organized as follows: Section 5.1 presents the derivation of
the integral representation of the fluxes for the one-dimensional inhomogen-
eous convection-diffusion equation using local BVPs. In Section 5.2 we extend
the scheme to the viscous Burgers equation using linearized local BVPs. Sec-
tion 5.3 presents the approximation of the flux using nonlinear local BVPs.
The behavior of both the linear and the nonlinear scheme in the invscid limit
is presented in Section 5.4 and conclusions are drawn in Section 5.5.
57
Complete-flux schemes
φt + fx = s, f := aφ − νφx , (5.1)
with constant diffusion coefficient ν, velocity field a = a(x) and source term
s = s(x, t). The flux fi+1/2 at the cell-face xi+1/2 = (xi + xi+1 )/2 is computed
from the local BVP
Note that in the above BVP we ignore the time-dependence of the flux. For
unsteady problems, the time derivative can be included as part of the source, as
demonstrated in Chapter 3 for the convective discretization of the convection-
diffusion equation. For the following derivation we define the variables
Z x Z x
a ah
λ := , P := , Λ(x) := λ(ξ)dξ, S(x) := s(ξ)dξ,
ν ν xi+1/2 xi+1/2
with h = xi+1 − xi and Λ(x) the Péclet integral. Integrating (5.2a) from xi+1/2
to x ∈ (xi , xi+1 ) gives
f (x) − fi+1/2 = S(x).
Substituting the integrating factor formulation f = −ν φe−Λ(x) x eΛ(x) in (5.2a),
and integrating from xi to xi+1 and applying the boundary conditions gives
the integral representation of the flux, i.e.,
h inh
fi+1/2 =fi+1/2 + fi+1/2 , (5.3a)
. Z xi+1
−Λi −Λi+1
h
fi+1/2 =ν e φi − e φi+1 e−Λ dx, Λi := Λ(xi ), (5.3b)
xi
Z xi+1 . Z xi+1
−Λ
inh
fi+1/2 = − e Sdx e−Λ dx, (5.3c)
xi xi
h inh
with fi+1/2 and fi+1/2 corresponding to the homogeneous and the particular
h inh
solution of the BVP, respectively. Consequently, we refer to fi+1/2 and fi+1/2
as the homogeneous and inhomogeneous component of the flux. Note that
the integral representation provides an exact solution of the local BVP (5.2).
Consequently, the numerical fluxes are locally exact. To simplify the integral
representations (5.3) we introduce hu, vi as the inner product of two functions
u = u(x) and v = v(x) defined on (xi , xi+1 ), i.e.,
Z xi+1
hu, vi = u(x)v(x)dx.
xi
58
Complete-flux schemes
Using the inner product, the integral representation of the flux (5.3) can be
formulated as
Constant coefficients. For problems with constant flow speed a and a con-
stant s = si+1/2 , all integrals in (5.4) can be evaluated exactly. In this case,
we have λ = a/ν constant over (xi , xi+1 ), giving
hλ, 1i = λh = P.
Further, the Péclet integral and the source integral are given by
For the constant coefficient case, the numerical flux Fi+1/2 is then given by
h inh
Fi+1/2 =Fi+1/2 + Fi+1/2 , (5.5a)
h ν
Fi+1/2 = B(−P )φi − B(P )φi+1 , (5.5b)
h
1
inh
Fi+1/2 =h − W1 (P ) si+1/2 , (5.5c)
2
where the functions B and W1 are defined as
z ez − 1 − z
B(z) := , W1 (z) := ,
ez −1 z(ez − 1)
and depicted in Figure 5.1. Note that B(z) is the generating function for the
Bernoulli numbers. We refer to it as the Bernoulli function. The function
W1 (z) satisfies W1 (z) + W1 (−z) = 1, with 0 ≤ W1 (z) ≤ 1 and W1 (0) = 1/2.
inh
Thus, for P = 0, we get fi+1/2 = 0 and the source term has no effect on the
flux.
h
The homogeneous component Fi+1/2 can also be expressed as a weighted
sum of the central and the upwind flux, i.e.,
h cen
up
Fi+1/2 = 2W1 (|P |)Fi+1/2 + 1 − 2W1 (|P |) Fi+1/2 ,
cen a ν
Fi+1/2 = (φi + φi+1 ) − (φi+1 − φi ),
2 h
up up ν
Fi+1/2 = a φi+1/2 − (φi+1 − φi ),
h
cen up
where Fi+1/2 and Fi+1/2 are the first-order upwind and the second-order central
approximation of the flux function. Figure 5.2 (a) shows the weight function
59
Complete-flux schemes
10 1
W1 (z)
B(z)
5 0.5
0 0
-10 0 10 -10 0 10
z z
Figure 5.1: The Bernoulli function B(z) and the function W1 (z).
2W1 (|P |). It can be seen that for |P | 1, the homogeneous component reduces
to the central approximation and for |P | 1, to the upwind approximation.
inh
In the above derivation of the inhomogeneous component Fi+1/2 , the source
term s = si+1/2 is taken to be constant on (xi , xi+1 ). Alternatively, there may
be instances where the source is defined to be piecewise constant, such that
(
si , xi < x < xi+1/2 ,
s(x) = (5.7)
si+1 , xi+1/2 ≤ x < xi+1 .
One such instance can be found in Chapter 6, where due to the staggered grid
arrangement, the source term (the pressure gradient) needs to be piecewise
constant. Integrating the term he−Λ , Si with s being piecewise constant results
inh
in the inhomogeneous flux component Fi+1/2
inh
Fi+1/2 = h C(−P )si − C(P )si+1 , (5.8)
where
ez/2 − 1 − z/2
C(z) = .
z(ez − 1)
Figure 5.2 (b) shows the function C(z), with C(z) → 1/8 as z → 0 and C(z) → 0,
C(−z) → 1/2 as z → ∞. Moreover, the functions C(z) and W1 (z) satisfy
1
C(−z) − C(z) = − W1 (z).
2
Thus, for si = si+1 , the inhomogeneous part of the flux given by (5.8) reduces
to expression (5.5c), for constant source term.
60
Complete-flux schemes
(a) (b)
1 0.5
C(z)
C(−z)
2W1 (|z|)
0.5 0.25
0 0
-20 -10 0 10 20 -20 -10 0 10 20
z z
Figure 5.2: Plots of functions: (a) 2W1 (|z|) and (b) C(z).
num P
νconv =ν tanh(P/4).
2
Similarly, for the homogeneous flux approximation, it can be shown that the
discretization is dissipative and introduces numerical diffusion. In [88], the
authors have shown that for the homogeneous flux scheme (HFS) the numerical
diffusion is given by
num
= ν P 21 − W1 (P ) .
νHFS
Figure 5.3 shows the relative numerical diffusion ν num /ν for the homogeneous
flux scheme and the homogeneous convective flux scheme. Clearly, the ho-
mogeneous flux approximation has lower numerical diffusion compared to the
homogeneous convective flux approximation. Thus using local BVPs for the
approximation of the net flux, i.e., the sum of the convective and the diffusive
flux, lowers the numerical diffusion, as compared to the homogeneous approx-
imation for the convective discretization.
The above example demonstrates that combining the convection and dif-
fusion operator, as in the homogeneous flux scheme, effectively reduces the
numerical dissipation introduced by the homogeneous convective flux approx-
imation, as introduced in Chapter 3. Using the flux expressions (5.5), we get
61
Complete-flux schemes
(a) (b)
10 1
num
νconv /ν
num
νHFS /ν
5 0.5
num num
(νconv − νHFS )/ν
0 0
0 10 20 0 10 20
P P
where ŝ = s − φ̇, αi+1/2 , βi+1/2 , γi+1/2 and δi+1/2 are coefficients depending
on ν, h and P . Thus the discretization results in the linear ODE system
BΦ̇ + AΦ = Bs + b, (5.9)
where Φ and s are vectors of the unknown and the source term, and where b
contains the boundary data. The tridiagonal matrices A and B correspond to
the homogeneous and inhomogeneous discretization, respectively.
62
Complete-flux schemes
f = 12 u2 − νux .
where the discrete time derivative can be treated as a source term, i.e.,
s = −u̇i+1/2 .
The nonlinearity of equation (5.10a) makes it difficult to derive explicit ex-
pressions for the numerical flux. In order to simplify the problem, we linearize
(5.10a) using the cell-face velocity. Let U = ui+1/2 ≈ u(xi+1/2 ) be an approx-
imation of the unknown u at the interface, then the flux can be computed from
the linearized BVP
1
2 U u − νux = s, x ∈ (xi , xi+1 ), (5.11a)
x
u(xi ) = ui , u(xi+1 ) = ui+1 . (5.11b)
For U and ν constant over [xi , xi+1 ], the problem is similar to the constant
coefficient convection-diffusion equation. Thus, using relations (5.5)-(5.8) we
lin
get that the (linearized) flux Fi+1/2 is given by
63
Complete-flux schemes
be the total variation of the discrete solution at time level tn = n ∆t. A nu-
merical method is said to be total variation diminishing (TVD) if TV(un+1 ) <
TV(un ) or total variation non-increasing (TVNI) if TV(un+1 ) ≤ TV(un ).
64
Complete-flux schemes
10 -1
Central
Homogeneous local BVP
Upwind
10 -2 1
keu k1
10 -3
2
10 -4
10 -3 10 -2 10 -1
h
Figure 5.4: Convergence of the 1-norm of the absolute error for ν = 10−2 over
a family of uniform grids with h = 2−i × 10−1 , i = 0, 1 · · · , 5 for the linearized
homogeneous flux scheme, combined with the explicit four-stage Runge-Kutta
method (∆t = 10−4 ).
TVD schemes remove any numerical oscillation arising due to the spatial or
temporal discretization [40]. Figure 5.6 shows the total variation of the numer-
ical solutions computed using the linearized homogeneous flux approximation
with central, upwind and the homogeneous local BVP methods for the approx-
imation of the cell-face velocity as in Example 5.2, and the standard explicit
four-stage Runge-Kutta method. Both the upwind and the homogeneous local
BVP method do not introduce any spurious oscillations; they both result in
a TVNI discretization. The central scheme, due to the relatively high Péclet
numbers (max{|P |} = 50), suffers from spurious oscillations which can be seen
from the change of the total variation.
In the following, the cell-face velocity for the linearized homogeneous flux
approximation is computed using the homogeneous convective flux approxima-
tion (described in Chapter 4), such that the flux approximation is always free of
any spurious oscillations. However, the homogeneous flux approximation being
the weighted average of the central and the upwind scheme is not uniformly
second-order accurate. In order to have a uniformly second-order accurate flux
approximation, it is essential to include the inhomogeneous part of the flux. In
the following section, we demonstrate the effect of the source term on the flux
approximation.
65
Complete-flux schemes
10 -1
Central
Homogeneous local BVP
1
Upwind
10 -2
keu k1
10 -3
10 -4
10 -3 10 -2 10 -1
h
Figure 5.5: Convergence of the 1-norm of the absolute error for ν = 10−3 over
a family of uniform grids with h = 2−i × 10−1 , i = 0, 1 · · · , 5 for the linearized
homogeneous flux scheme combined with the explicit four-stage Runge-Kutta
method (∆t = 10−4 ).
LUn+1 = RUn .
For the above numerical scheme to be TVD, it is necessary for the operator L
to be total variation increasing (TVI) and for R to be TVNI, i.e.,
Then the numerical scheme is TVD [40]. For the system (5.13), a restriction
on the time step can be derived such that the discretization is always TVD.
66
Complete-flux schemes
1.5
TV →
Upwind
Homogeneous
Central
0 0.5 1
t→
Figure 5.6: The total variation for the linearized homogeneous flux scheme
with different methods for computing the cell-face velocities. Parameter values:
ν = 10−3 , h = 5 × 10−2 and ∆t = 10−4 .
Figure 5.7 and Figure 5.8 show the convergence of the errors for the lin-
earized inhomogeneous flux approximations compared to the homogeneous flux
approximation for ν = 10−2 and ν = 10−3 , respectively. It can be observed that
for very coarse grids (max(|P |) 1) the inclusion of the source term does not
appear to improve the accuracy of the homogeneous approximation, particu-
larly for ν = 10−3 (Figure 5.8), where the solution u(x, t) of the viscous Burgers
equation has a steep gradient, which causes the numerical solution, computed
using the inhomogeneous flux approximation, to exhibit an overshoot or under-
shoot. For coarse grids it is observed (for both ν = 10−2 and ν = 10−3 ) that a
constant source term results in a more accurate approximation than a piecewise
constant source term. On finer grids, the piecewise constant source term res-
ults in a more accurate flux approximation. For ν = 10−2 , the inhomogeneous
approximation (with piecewise constant source) results in a uniformly second-
order accurate approximation. For ν = 10−3 the inhomogeneous approximation
does exhibit second-order accuracy over fine grids, as undershoots/overshoots
may occur (on coarse grids) in regions with steep gradient.
67
Complete-flux schemes
Figure 5.7: Convergence of the 1-norm of the absolute error for ν = 10−2
for a family of uniform grids with h = 2−i × 10−1 , i = 1, · · · , 5, for the
linearized homogeneous and inhomogeneous flux schemes, combined with the
semi-implicit θ-method with θ = 1/2 and ∆t = 10−3 .
Figure 5.8: Convergence of the 1-norm of the absolute error for ν = 10−3
for a family of uniform grids with h = 2−i × 10−1 , i = 0, · · · , 5, for the
linearized homogeneous and inhomogeneous flux schemes, combined with the
semi-implicit θ-method with θ = 1/2 and ∆t = 10−3 .
68
Complete-flux schemes
69
Complete-flux schemes
1 (x − xi+1/2 )2
Λ(x) = (x − xi+1/2 )u(xi+1/2 ) + ux (xi+1/2 )+
2ν 4ν
(x − xi+1/2 )3
uxx (xi+1/2 ) + · · · ,
12ν
we conclude that the integrals Λi and Λi+1 are given by
h h2
Λi = − u(xi+1/2 ) + ux (xi+1/2 ) + O(h3 ), (5.17a)
4ν 16ν
h h2
Λi+1 = u(xi+1/2 ) + ux (xi+1/2 ) + O(h3 ), (5.17b)
4ν 16ν
which gives us that
h2
Λ̄i+1/2 = ux (xi+1/2 ) + O(h4 ). (5.18)
16ν
To derive the numerical flux from the integral representation (5.16), a
quadrature rule must be chosen such that the resulting discretization has a
3-point coupling. The integrals in (5.16) and (5.15c) could be evaluated us-
ing the trapezoidal rule or Newton-Cotes formulas, like Simpson’s rule and
the mid-point rule. Hence, for the homogeneous part of the flux, the integral
heΛ̄i+1/2 −Λ , 1i could be approximated as
h hλ,1i/2
heΛ̄i+1/2 −Λ , 1i ≈ + 4eΛ̄i+1/2 + e−hλ,1i/2 ,
Simpson : e (5.19a)
6
h
Mid-point : heΛ̄i+1/2 −Λ , 1i ≈ eΛ̄i+1/2 , (5.19b)
2
h
heΛ̄i+1/2 −Λ , 1i ≈ ehλ,1i/2 + e−hλ,1i/2 .
Trapezoidal : (5.19c)
2
Simpson’s rule and the mid-point approximation involve eΛ̄i+1/2 . From relation
(5.18), it can be observed that in the limit ν → 0, Λ̄i+1/2 may blow up. This
can be avoided by using the trapezoidal approximation. Therefore, we use the
trapezoidal rule to derive the numerical flux from the integral representation
(5.15).
70
Complete-flux schemes
hλ, 1i is approximated using the mid-point rule, which results in the second-
order accurate approximation
ui+1/2 h
hλ, 1i ≈ = Pi+1/2 .
2ν
Using the mid-point approximation of hλ, 1i in the trapezoidal approximation
(5.19c) gives
h hλ,1i/2
heΛ̄i+1/2 −Λ , 1i ≈ + e−hλ,1i/2
e
2
h
≈ exp Pi+1/2 /2 + exp − Pi+1/2 /2 .
2
h
From the above, we get that the numerical approximation Fi+1/2 of the homo-
h
geneous part fi+1/2 is given by
h 2ν
Fi+1/2 = W (−Pi+1/2 )ui − W (Pi+1/2 )ui+1 , (5.20)
h
where W (z) = (ez + 1)−1 , is the weight function as defined in Chapter 4.
Similarly, using the trapezoidal rule, the inhomogeneous part of the integral
representation (5.15c) of the flux can be evaluated as
lin,h ν ν u2 uh
Fi+1/2 (u, u) = B(−P ) − B(P ) u = uP = , P = .
h h 2 2ν
71
Complete-flux schemes
h 2ν u2
Fi+1/2 = W (−P ) − W (P ) u = tanhc(P/2).
h 2
Thus, we get that for constant velocity u (6= 0) the nonlinear homogeneous
flux is smaller than the actual flux, i.e., u2 /2. This is also demonstrated when
we compare the nonlinear homogeneous flux approximation with the linearized
homogeneous flux F lin,h in the following example.
Example 5.4. We compare the convergence of the spatial discretization error
for the linear and the nonlinear homogeneous flux approximation schemes for
the 1-D viscous Burgers equation with ν = 10−2 on (x, t) ∈ (0, 1) × (0, T ).
Figure 5.9 shows the convergence of the errors on a family of uniforms grids with
h = 2−i × 10−1 , i = 0, 1, · · · , 5. Although the nonlinear scheme does exhibit
second-order convergence for finer grids, it is clearly less accurate than the
(linearized) homogeneous flux scheme. This is more clearly depicted through
the solution profiles for both schemes on a relatively coarse grid with h =
5 × 10−2 (Pmax = 5), as shown in Figure 5.10. The nonlinear approximation
appears to be more dissipative than the linear scheme, which can be attributed
to the breakdown of the scheme for smaller values of ν, as shown in the following
section.
72
Complete-flux schemes
10 -1
Nonlinear homogeneous appr. 1
Linearized homogeneous appr.
10 -2
keu k1
10 -3 2
10 -4
10 -3 10 -2 10 -1
h
Figure 5.9: Convergence of the 1-norm of the error for ν = 10−2 on a family of
uniform grids with h = 2−i × 10−1 , i = 0, 1, · · · , 5, for the nonlinear homogen-
eous flux approximation (5.20) and the linearized homogeneous flux approx-
imation (5.12b) with the standard explicit four-stage Runge-Kutta method for
time integration (∆t = 10−4 ).
1
Reference
Linearized homogeneous appr.
Nonlinear homogeneous appr.
u→
0.5
0 0.5 1
x→
Figure 5.10: Solution for the linear and nonlinear homogeneous flux approx-
imation for the viscous Burgers equation for ν = 10−2 , h = 5 × 10−2 and
∆t = 10−4 (RK4).
73
Complete-flux schemes
where s = (uL +uR )/2 and F lin reduces to Roe’s approximation of the Riemann
problem [69, 70], i.e.,
(
1 2
Roe u for s ≥ 0,
F = 21 L 2
2 uR for s < 0.
1
u , s ≥ 0, 0, s ≥ 0,
2 L
h h
νC1 = 0, s < 0, νC2 = − 21 uR , s < 0,
0, uL ≤ 0 ≤ uR , 0, uL ≤ 0 ≤ uR .
74
Complete-flux schemes
5.5 Conclusion
In this chapter, we presented the approximation of the net flux, i.e., the sum of
the convective and the viscous flux using local BVPs. We showed that for the
constant coefficient convection-diffusion equation, the homogeneous local BVP
approximation of the flux is less dissipative than the discretization presented
in Chapter 3, where the convective term is approximated using a homogeneous
local BVP and the diffusion term by the second-order central approximation.
The flux approximation scheme is then extended to the viscous Burgers
equation which has a nonlinear flux function. To simplify the computation the
flux function is linearized using the cell-face velocity which is computed using
the local BVP, as shown in Chapter 4. It is shown that using the homogeneous
local BVP method for the cell-face velocity not only provides a more accur-
ate flux approximation (compared to the upwind and central schemes), but
also makes the homogeneous linear flux approximation consistent with Roe’s
approximation of the inviscid Burgers equation. The inclusion of the source
terms is shown to provide a more accurate flux approximation. For a uniformly
second-order accurate scheme, it is recommended that the source term is taken
to be piecewise constant.
Applying straightforward quadrature rules to the nonlinear integral repres-
entations does not result in a consistent approximation. The nonlinear ho-
mogeneous flux approximation breaks down in the inviscid limit and even for
diffusion dominated flows is less accurate than the linearized flux approxima-
tion. It is essential for the flux approximation to be consistent in the inviscid
limit for all cases. In Chapter 7, we formulate a new flux approximation scheme
using nonlinear local BVPs such that the numerical flux always reduces to the
Godunov flux in the inviscid limit.
75
Chapter 6
77
Complete-flux scheme for the Navier-Stokes equations
u,y
Ωvi,j+1/2 fi+1/2,j+1/2
yj+1
Ωui+1/2,j
vi,j+1/2
∆y u,x fi+1/2,j u,x
fi+1,j
fi,j
yj ×
pi,j ui+1/2,j
Figure 6.1: (a) The staggered grid for the spatial discretization. (b) A control
volume Ωui+1/2,j for the spatial discretization of the u-momentum equation.
∇ · u = 0, (6.1a)
ut + ∇ · uu − ∇u = −∇p, (6.1b)
where u = u(x, y, t)ex +v(x, y, t)ey is the flow velocity, p(x, y, t) is the kinematic
pressure and = 1/Re, with Re being the Reynolds number of the flow. For
the spatial discretization we use a staggered grid configuration as shown in
Figure 6.1. We have different control volumes for the discretization of the u-
and v-momentum equations. We now express the momentum equations as a
balance of the fluxes, i.e.,
Integrating equation (6.2a) over the control volume Ωui+1/2,j and applying
Gauss’ theorem we get
Z I I
ut dA + f u · n ds = − p ex · n ds,
Ωu
i+1/2,j
∂Ωu
i+1/2,j
∂Ωu
i+1/2,j
78
Complete-flux scheme for the Navier-Stokes equations
where n is the outward unit normal vector to the boundary ∂Ωui+1/2,j and
where the contour integral is oriented counter clockwise. This integral form of
the conservation law can be approximated over the control volume Ωui+1/2,j as
shown in Figure 6.1 using the mid-point rule as follows :
u,x u,x u,y u,y
∆y fi+1,j − fi,j +∆x fi+1/2,j+1/2 − fi+1/2,j−1/2 =
(6.3)
− ∆y pi+1,j − pi,j − ∆x ∆y (ut )i+1/2,j ,
u,x
where f u,x := u2 − ux , f u,y := uv − uy and fi,j ≈ f u,x (xi , yj ). Similarly,
equation (6.2b) can be discretized over the control volume Ωvi,j as :
v,x v,x v,y v,y
∆y fi+1/2,j+1/2 −fi−1/2,j+1/2 + ∆x fi,j+1 − fi,j =
(6.4)
− ∆x pi,j+1 − pi,j − ∆x ∆y (vt )i,j+1/2 ,
with f v,x := uv − vx and f v,y := v 2 − vy .
u,x
We begin with the approximation of the flux fi+1,j using the quasi-one-
dimensional formulation of equation (6.2a), i.e.,
(f u,x )x = s, s := −px − (f u,y )y − ut . (6.5)
Restricting the above equation to the interval x ∈ [xi+1/2 , xi+3/2 ] and y = yj ,
the boundary conditions read
u(xi+1/2 , yj ) = ui+1/2,j , u(xi+3/2 , yj ) = ui+3/2,j .
The term s acts as the source term for the flux f u,x , giving the forces generating
the flux. We have included the inertial term ut in the source term. However,
in this chapter we focus on the steady computation of the fluxes, i.e., ut = 0.
The components of the fluxes f u and f v are nonlinear, thereby making the
local BVPs nonlinear. The flux components are linearized using the interface
velocities which are computed at the interface of the control volume. For
example, the nonlinear term u2 in f u,x is linearized as U u, where U is the
approximation of the interface velocity. The details regarding the iterative
computation of the interface velocities using local BVPs are given in Chapter 4.
u,x
Thus, for the approximation of the flux fi+1,j we solve the linearized local BVP
79
Complete-flux scheme for the Navier-Stokes equations
with ∆x = xi+3/2 − xi+1/2 . From Chapter 5, we get that the flux fi+1 is the
sum of a homogeneous (f h ) and an inhomogeneous (f inh ) part, i.e.,
h inh
fi+1 = fi+1 + fi+1 , (6.8a)
Z xi+3/2
h
fi+1 = e−Λi+1/2 φi+1/2 − e−Λi+3/2 φi+3/2 / e−Λ dx, (6.8b)
xi+1/2
Z xi+3/2 Z xi+3/2
inh
fi+1 =− e−Λ S dx / e−Λ dx. (6.8c)
xi+1/2 xi+1/2
For the incompressible Navier-Stokes equations, we first linearize the flux com-
ponent f u,x by defining f l,u,x = U u − ux , which can be computed using the
model BVP (6.7). In the following we restrict ourselves to the approximation of
the linearized flux f l,u,x . Now, the source term is given by s = −px − (f l,u,y )y .
To simplify the computation of the inhomogeneous part, we make the following
assumptions for the source term:
1. Pressure gradient: The pressure p is taken to be piecewise linear, con-
sequently the pressure gradient is piecewise constant, given by its central
approximation:
(
1
(δx p)i+1/2,j = ∆x (pi+1,j − pi,j ), xi+1/2 ≤ x ≤ xi+1 ,
px (x, yj ) ≈ 1
(δx p)i+3/2,j = ∆x (pi+2,j − pi+1,j ), xi+1 < x ≤ xi+3/2 .
80
Complete-flux scheme for the Navier-Stokes equations
with
u 1 u,y u,y
Ci+1/2,j = Fi+1/2,j+1/2 − Fi+1/2,j−1/2 ,
∆y
F u,y being the numerical approximation of the linearized flux component
f l,u,x .
From the above we conclude that s is piecewise constant over the domain and
consequently S is piecewise linear. Moreover, we also have that U and are
constants on the domain (xi+1/2 , xi+3/2 ). Evaluating the expressions (6.8b)
u,x
and (6.8c), we get that the numerical flux Fi+1,j is given by
z ez/2 − 1 − z/2
B(z) = , C(z) = .
ez − 1 z(ez − 1)
We further split the inhomogeneous part into terms depending on the gradi-
ent of the cross-flux term (F u,x,c ) and the pressure gradient (F u,x,p ), using
u
si+1/2,j = −(δx p)i+1/2,j − Ci+1/2,j in equation (6.9c).
u,x
Thus, we have computed the numerical flux Fi+1,j as the sum of a homo-
geneous and an inhomogeneous part using local BVPs. As shown in Section 5.1
the homogeneous flux component can be expressed as a weighted average of the
central flux (F cen ) and the upwind flux (F up ) as follows
where the weight function is given by W1 (z) = (ez −1−z)/z(ez −1). Again, for
diffusion-dominated flows (|P u | 1), the homogeneous scheme reduces to the
central scheme, whereas for convection dominated flows (|P u | 1), it reduces
to the upwind scheme. Analogously, the discrete source terms si+1/2,j and
si+3/2,j involved in the inhomogeneous part have equal contributions, when
|P u | 1. For higher Péclet numbers the upwind source term has a larger
contribution to the inhomogeneous flux part.
81
Complete-flux scheme for the Navier-Stokes equations
ourselves to the homogeneous flux part for the cross-flux component. Thus,
u,y
the flux Fi+1/2,j+1/2 is computed from the local BVP :
(V u − uy )y = 0, x = xi+1/2 , yj ≤ y ≤ yj+1 ,
u(xi+1/2 , yj ) = ui+1/2,j , u(xi+1/2 , yj+1 ) = ui+1/2,j+1 ,
where V is the estimate of the interface velocity at (xi+1/2 , yj+1/2 ). On solving
the above homogeneous local BVP we find that the flux is given by :
u,y
B(−P v )ui+1/2,j − B(P v )ui+1/2,j+1 , P v = V ∆y/.
Fi+1/2,j+1/2 =
∆y
Similarly, the fluxes and the cross-fluxes in equation (6.4) are also computed
v,y
from local BVPs. The flux fi,j+1 is computed from the inhomogeneous local
BVP :
(V v − vy )y = −py − (f v,x )x , x = xi , yj+1/2 ≤ y ≤ yj+3/2 ,
v(xi , yj+1/2 ) = vi,j+1/2 , v(xi , yj+3/2 ) = vi,j+3/2 ,
for which expressions analogous to (6.9) can be derived. Again, for the com-
v,x
putation of the cross-flux fi+1/2,j+1/2 we solve the homogeneous local BVP :
(U v − vx )x = 0, xi ≤ x ≤ xi+1 , y = yj+1/2 ,
v(xi , yj+1/2 ) = vi,j+1/2 , v(xi+1 , yj+1/2 ) = vi+1,j+1/2 .
In the following section we test these flux approximation schemes for the
lid-driven cavity and the Taylor-Green vortex problem.
82
Complete-flux scheme for the Navier-Stokes equations
Figure 6.2: u-velocity profiles along the vertical centerline of the cavity for
Re = 100.
0.8
Reference
0.6 Central scheme
Homogeneous flux scheme
1D flux scheme
0.4
2D flux scheme
0.2
0
-0.4 0 0.4 0.8 1.2
Figure 6.3: u-velocity profiles along the vertical centerline of the cavity for
Re = 400.
83
Complete-flux scheme for the Navier-Stokes equations
Table 6.1: Absolute errors (keu k∞ ) for the Taylor-Green vortex problem, for
Re = 100, on a 20 × 20 grid, at t = 20.
6.4 Conclusion
In the preceding sections we presented methods for the approximation of the
fluxes derived from local BVPs. The computed flux is the sum of a homo-
84
Complete-flux scheme for the Navier-Stokes equations
10 0
Upwind
10 -2
keu k∞
Homogeneous flux
2
10 -4
Central
1-D flux
2-D flux
10 -6
10 -3 10 -2 10 -1 10 0
h
Figure 6.4: Convergence of the spatial errors for the Taylor-Green vortex prob-
lem, for Re = 100 and at t = 20, for a family of grids (5 × (2i , 2i ), i =
0, 1, 2, · · · , 6) using the standard explicit four-stage Runge-Kutta method with
∆t = 10−3 .
85
Complete-flux scheme for the Navier-Stokes equations
86
Chapter 7
In Chapter 5 we presented the approximation of the flux function for the viscous
Burgers equation using a nonlinear local BVP. Applying straightforward quad-
rature rules to the integral representation does not result in a consistent nu-
merical flux, as the approximation is shown to breakdown in the inviscid limit.
On the other hand, the numerical flux obtained using linearized local BVPs
is shown to reduce to Roe’s approximation for the inviscid Burgers equation
instead of the Godunov approximation, as a consequence of the linearization.
In this chapter we present a different approach for the approximation of the
flux using homogeneous nonlinear local two-point BVPs for the viscous Burgers
equation. A discussion on nonlinear local two-point BVPs can be found in [22],
where the authors show i) the solvability of some auxiliary local nonlinear two-
point BVPs, and ii) the convergence of the discrete scheme to a weak solution
of the continuous problem. We make use of the monotonicity of the solution
of the homogeneous local BVP to derive the numerical flux. Consequently, we
have to separately examine the cases i) uL ≥ uR , and ii) uL < uR , where uL
and uR are the left and the right boundary values, respectively. Subsequently,
we establish the existence and uniqueness of the numerical flux obtained from
the nonlinear local BVP. Since the numerical scheme preserves the nonlinearity
of the flux function, the nonlinear flux approximation scheme is shown to be
consistent with the Godunov approximation in the inviscid limit.
The chapter is organized as follows: in Section 7.1 we formulate the local
BVP for the flux approximation and show that the BVP has monotonic solu-
tions. Section 7.2 gives details of the derivation for the numerical fluxes. In
Section 7.3 we demonstrate the existence and uniqueness of the numerical flux
and show that the numerical flux reduces to the Godunov approximation in
the inviscid limit. In Section 7.4 we compare the nonlinear scheme with the
linearized homogeneous flux scheme (described in Chapter 5) as well as with
other standard methods. Section 7.5 gives the concluding remarks.
87
Nonlinear flux approximation
defined on Ω(⊂ R)×(0, T ), where ν(≥ 0) is the diffusion coefficient. The spatial
discretization of the Burgers equation using a finite-volume method requires
the approximation of the flux function f (u, ux ) at each interface between two
control volumes. The semi-discrete formulation of equation (7.1) is given by
where Fi+1/2 ≈ f (u, ux )|x=xi+1/2 , see Figure 7.1. The derivation of the flux
Fi+1/2 is based on the following model BVP, in which we ignore the time
derivative
The solution of the nonlinear BVP (7.2) provides us the numerical flux function
F(uL , uR , ν/h), which is constant on the interval (xi , xi+1 ). Thus:
Further, it can be shown that the above BVP has a monotonic solution.
Fi−1/2 Fi+1/2
88
Nonlinear flux approximation
Lemma 7.1. The nonlinear local boundary value problem (7.3) has a strictly
monotonic solution. Further, it can be shown that the derivative uσ satisfies
U U
(uR − uL ) exp − (1 + σ) ≥ uσ (σ) ≥ (uR − uL ) exp (1 + σ) , (7.4)
if uL ≥ uR with U := max{|u(η)|, η ∈ [0, 1]}, otherwise for uL < uR ,
U U
(uR − uL ) exp − (1 + σ) ≤ uσ (σ) ≤ (uR − uL ) exp (1 + σ) . (7.5)
Proof. Any solution u of the problem (7.3) can be represented as
Λ(σ) λ(σ)
u(σ) = uL + (uR − uL ) , uσ (σ) = (uR − uL ) ,
Λ(1) Λ(1)
for σ ∈ [0, 1] (see Lemma 3.1, [22]), where the functions λ, Λ : [0, 1] → R are
given by
1 Z σ Z σ
λ(σ) := exp u(η)dη and Λ(σ) := λ(ξ)dξ.
0 0
1 2
Fi+1/2 = f (0) = u − uσ (0).
2 L
Alternatively, the flux can be determined using the right boundary condition
1 2
Fi+1/2 = u − uσ (1).
2 R
89
Nonlinear flux approximation
Since uσ < 0, we conclude that Fi+1/2 > 0, therefore there exists a c ∈ R, such
that
1 1 1
Fi+1/2 = u2 − uσ = u2L − uσ (0) = 12 u2R − uσ (1) = c2 ,
2 2 2
with |c| ≥ max(|uL |, |uR |). The above relation gives us the first-order differen-
tial equation with unknown parameter c
1 2
uσ = (u − c2 ), σ ∈ (0, 1),
2
which needs to satisfy both u(0) = uL and u(1) = uR . Integrating the differen-
tial equation and connecting the left and the right boundary condition results
in the following nonlinear equation for the unknown c with parameters uL , uR
and (u + c)(u − c) c
L R
H + (c) := log − = 0. (7.6)
(uL − c)(uR + c)
Thus, Fi+1/2 is given by the non-trivial roots of the function H + (c), which
is an odd function. We restrict ourselves to c > 0. Note that the nonlinear
equation (7.6) can also be expressed as
Let s = (uL + uR )/2, then for s ≥ 0, we get that uL ≥ |uR | and the non-trivial
solution of equation (7.7) satisfies c ≥ uL ≥ |uR |. In the inviscid limit → 0,
for s ≥ 0 equation (7.7) reduces to
ec/2 (c − uL )(c + uR ) = 0 ⇒ c = uL .
Similarly, for s < 0, we have uR < 0, implying c ≥ −uR ≥ |uL | and the limit
case solution is then given by c = −uR (> 0). Thus, the numerical flux in the
inviscid limit is given by
1 u2L , if s ≥ 0,
2
Fi+1/2 =
1 u2 , if s < 0,
2 R
which is actually the Godunov flux for the inviscid Burgers equation [31, 93].
Moreover, if uL = uR = u, then uσ = 0 and the numerical flux is given by
Fi+1/2 = F(u, u) = 21 u2 = f (u), for constant u. Hence the numerical flux
function F is consistent with the continuous flux function f .
In order to compute the numerical flux Fi+1/2 , we need to compute the
non-trivial zeros of the function H + (c), which are given by equation (7.6) or
equivalently, by equation (7.7). The nonlinear equation can be solved using
Newton iteration, given a good initial guess for the flux. Algorithm 7.1 shows
the steps for choosing a good initial guess for the Newton solver using the
bounds of the derivative uσ as shown in Lemma 7.1.
Next, we consider the case uL < ur .
90
Nonlinear flux approximation
91
Nonlinear flux approximation
If the flux is positive, then the numerical flux is evaluated as for the case
uL ≥ uR and is given by roots of the function H + (c), defined in equation (7.6),
with c ∈ (0, min(|uL |, |uR |)).
1 2 1
Fi+1/2 = u − uσ = − c2 .
2 2
1 2
uσ = (u + c2 ), σ ∈ (0, 1), (7.9)
2
Lemma 7.2. For uL , uR , 6= 0, and uL < uR , the sign of the flux can be
determined as follows
92
Nonlinear flux approximation
If uL uR > 0, then
− 1 c2 if 1
uL − 1
uR > 1
2 ,
2
1 2 1 1 1
Fi+1/2 = 2c if uL − uR < 2 ,
(7.11)
1 1 1
0 if uL − uR = 2 .
If uL uR < 0, then
1
Fi+1/2 = − c2 .
2
The numerical flux can then be computed using the roots of the function,
H + (c) if Fi+1/2 > 0 and H − (c) if Fi−1/2 < 0.
Proof. We have already established the condition for zero-flux, i.e., relation
(7.8). In the following we focus on the non-trivial roots of the functions H + (c)
and H − (c). Let α− (c) := arctan(uR /c)−arctan(uL /c) and β− (c) := c/2, such
that H − (c) := α− (c) − β− (c). Using arctan(1/z) = − arctan(z) + πsgn(z)/2,
α− (c) can be expressed as
c c π
α− (c) = arctan − arctan + sgn(uR ) − sgn(uL ) ,
uL uR 2
with
0 uL uR (uR − uL )(uL uR − c2 ) d
α− (c) = − 2 = , (.)0 := .
u2L+c2 uR + c2 (u2L + c2 )(u2R + c2 ) dc
Using the fact that α− (c) is an odd function we restrict ourselves to the case
c > 0.
We split the proof into the following cases :
• 0 < uL < uR .
√
Observe that α− (c) is an increasing function for c ∈ (0, uL uR ] with a
√
maximum at c = uL uR (< uR ). Clearly H − (c) has a non-trivial root
whenever α− (c) = β− (c), i.e., the two functions intersect for c > 0, which
0 0
is possible only if α− (0) > β− (0), or,
0 1 1 0 1
α− (0) = − > β− (0) = .
uL uR 2
Thus, if the above condition holds then H − (c) has a non-trivial solution,
√
which satisfies uL uR < c < uR . Next, we investigate the condition
under which H + (c) has a non-trivial root. Let
(uR − uL )c
z(c) := ,
uL uR − c2
93
Nonlinear flux approximation
Further, let α+ (c) := 2 Artanh(z(c)) and β+ (c) := c/, such that H + (c) =
α+ (c) − β+ (c) with
0 1 uL uR + c2 0 1
α+ (c) = 2(uR − uL ) , β+ (c) = .
1 − z 2 (c) (uL uR − c2 )2
1 1 1
− < .
uL uR 2
• uL < uR < 0.
Again, we restrict ourselves to c > 0. For uL < uR < 0, we have c ∈
(0, |uR |), with |uR | < |uL |, which gives us that c2 < uL uR , resulting in
0
α− (c) > 0. Moreover, it can be shown that the function α− (c) is an
√ √
increasing function on (0, uL uR ), with a local maximum at c = uL uR
0 √ 0
and α− (c) < 0, for c > uL uR . Further, β− (c) = 1/2 > 0, with
β− (c) → ∞, in the limit c → ∞. Thus, for H − (c) to have a non-trivial
0 0
root, it is necessary that α− (0) > β− (0), which is equivalent to
1 1 1
− > .
uL uR 2
Similarly, for H + (c) to have a non-trivial root in (0, |uR |), requires α+ (c) =
0
β+ (c). Since uL uR > 0, we get that α+ (c) > 0, for c ∈ (0, |uR |), causing
α+ (c) to be monotonically increasing. With α+ (0) = β+ (0) = 0 and
α+ (c) → ∞ in the limit c → ∞, we get that H + (c) has a non-trivial root
0 0
in the interval (0, |uR |), if α+ (0) < β+ (0), which is is equivalent to
1 1 1
− < .
uL uR 2
• uL < 0 < uR .
Let umin := min(|uL |, uR ), giving us c ∈ (0, umin ). For c ∈ (0, umin ),
z(c) < 0 with z(umin ) = −1. Therefore,
1 + z(c)
0
α+ (c) = log < 0, with α+ (c) < 0.
1 − z(c)
94
Nonlinear flux approximation
0
However, β+ (c) > 0, with β+ (c) > 0. Thus, we get that H + (c) has no
non-trivial solution, whenever uL uR < 0. Further, if uL < 0 < uR , then
1 1 1
− < 0 6= ,
uL uR 2
implying that the flux can not be zero. Thus for uL < 0 < uR , the flux
can be neither zero nor positive, which leaves us with only one possibility,
i.e., the flux being negative and given by the non-trivial roots of H − (c).
For the function H − (c), we have that H − (0) = π, with
d − (uR − uL )(uL uR − c2 ) 1
H (c) = 2 2 2 2
− < 0.
dc (uL + c )(uR + c ) 2
Moreover, for c 1, β− (c) > α− (c) and H − (c) < 0. Thus, H − (c) always
has a non-trivial root for sufficiently large c. Hence, for uL < 0 < uR ,
H − (c) always has a non-trivial root.
Lemma 7.2 presents a criterion for identifying the sign of the numerical flux,
which in turn tells us whether the flux is given by the non-trivial roots of H + (c)
or H − (c). To demonstrate this, we consider the case uL = 0.25, uR = 1 for
= 10−1 , 1 and 10. For the given values of uL , uR and , 1/uL − 1/uR − 1/2 ∈
{−2, 2.5, 2.95}. From Lemma 7.2 we get that H + (c) will have a non-trivial
root only for = 10−1 , which can be observed in Figure 7.2. Moreover, for
= 10−1 , it can be observed that the non-trivial root of H + (c) is smaller
√
than uL uR = 0.5. For both = 1 and = 10, 1/uL − 1/uR > 1/2 and
consequently H − (c) has a non-trivial root, as shown in Figure 7.3. We have
also shown that for uL uR < 0, the flux is always negative and thus is given
by the non-trivial roots of H − (c). This is depicted in Figure 7.4, where we
consider the cases: uL = −0.25, uR = 1 and = 10−2 , 1 and 10. For = 10−2 ,
α− (c) = β− (c) for c ≈ 0.36 and the flux c2 /2 ≈ 0.06.
Lastly, to establish the existence of the numerical flux, we need to show
that the function H + (c) always has a non-trivial root, whenever uL > uR .
Lemma 7.3. For uL > uR , the function H + (c) always has a non-trivial root.
Proof. For uL > uR , we have shown that the flux is positive and is given by
the non-trivial roots of the function H + (c) = α+ (c) − β+ (c) = 0, where
(u + c)(u − c) c
L R
α+ (c) = log and β+ (c) = .
(uL − c)(uR + c)
For c ≥ cmin := max{|uL |, |uR |}, we get that
(uL + c)(uR − c)
P (c) := > 0,
(uL − c)(uR + c)
95
Nonlinear flux approximation
3 α+(c)
β+(c) (ǫ = 10−1 )
β+(c) (ǫ = 1)
β+(c) (ǫ = 10)
2
0
0 0.05 0.1 0.15 0.2 0.25
c
Figure 7.2: Function α+ (c) for uL = 0.25, uR = 1 and β+ (c) for = 10−2 , 1
and 10.
2
α−(c)
β−(c) (ǫ = 10−1 )
β−(c) (ǫ = 1)
β−(c) (ǫ = 10)
0
0 1 2 3 4 5
c
Figure 7.3: Function α− (c) for uL = 0.25, uR = 1 and β− (c) for = 10−2 , 1
and 10.
96
Nonlinear flux approximation
2
α−(c)
β−(c) (ǫ = 10−1 )
β−(c) (ǫ = 1)
β−(c) (ǫ = 10)
0
0 3 6
c
Figure 7.4: Function α− (c) and β− (c) for uL = −0.25, uR = 1 and = 10−2 , 1
and 10.
with
(c2 + uL uR )
P 0 (c) = −2(uL − uR ) < 0.
(uL − c)2 (uR + c)2
As c → cmin , we have P (c) → ∞, implying α+ (c) → ∞, and for c → ∞,
P (c) → 1, giving α+ (c) = 0, with
0 P 0 (c)
α+ (c) = < 0.
P (c)
Thus, over the domain (cmin , ∞), α+ (c) is a monotonically decreasing function
which asymptotically goes to 0 as c → ∞. Further, the function β + (c) = c/,
is a monotonically increasing function with β+ (cmin ) = cmin / and β+ (c) → ∞,
in the limit c → ∞. Therefore, H + (c) always has a unique non-trivial root, for
uL > uR .
97
Nonlinear flux approximation
and H − (c), we solve the local BVP(7.3) numerically using the central scheme
over a very fine grid.
Figure 7.5 shows the numerical solutions of the nonlinear local BVP (7.3)
with the boundary conditions given by uL = 0.5 and uR = 1, for = 10−1 , 10−2
and 10−3 . Observe that for smaller values of , the solution has a boundary
layer character, i.e., u(σ) = uL all throughout the domain except in a very
small region close to σ = 1, where the solution adapts to the right boundary
condition. For the considered boundary conditions uL = 0.5 and uR = 1.0, we
1
1 ǫ = 10−1 ǫ = 10−3
ǫ = 10−2 ǫ = 10−4
ǫ = 10−3
u(σ)
u(σ)
0.5
0.5
0
0 0.5 1 0 0.5 1
σ σ
(a) (b)
Figure 7.5: Numerical solutions of the nonlinear local BVP (7.3) using the
central scheme on a very fine grid (∆σ = 10−4 ) for the boundary conditions:
(a) uL = 0.5 and uR = 1 for = 10−1 , 10−2 , 10−3 , (b) uL = 0 and uR = 1 for
= 10−3 , 10−4 .
have that H − (c) has non-trivial solutions provided > 0.5, thus in the limit
→ 0, one should analyze the non-trivial roots of the function H + (c)
u u + c(u − u ) − c2 c
L R R L
H + (c) = log −
uL uR − c(uR − uL ) − c2
1 + z(c)
= log exp(−c/) ,
1 − z(c)
where
(uR − uL )c
z(c) := .
uL uR − c2
Clearly, the zeros of H + (c) satisfy
98
Nonlinear flux approximation
1 2 1 1
Fi+1/2 = c = u2L − uσ (0) = u2R − uσ (1),
2 2 2
which has a solution for z(c) = 1, i.e., c = uL and Fi+1/2 = u2L /2, which is in
agreement with the numerical solution of the BVP (7.3) shown in Figure 7.5.
Moreover, using the numerical solution of the nonlinear BVP (7.3), it can be
shown that for 0 = uL < uR , the solution is of boundary layer type with
u(σ) = uL = 0 as → 0, as shown in Figure 7.5(b).
Next, we consider the case uL < uR < 0, in which we have c ∈ (0, |uR |],
with z(c) ∈ (0, 1] and z(|uR |) = 1. Again in the limit → 0, the reduced
equation (7.13) has a solution for z(c) = 1, giving c = −uR and Fi+1/2 = u2R /2.
Figure 7.6 shows numerical solutions of the nonlinear local BVP (7.3) with
uL = −1.5, uR = −0.5 and = 10−1 , 10−2 and 10−3 . It can be seen that for
smaller values of , the solution of the BVP has a boundary layer character,
with u(σ) ≈ uR all through the domain, except in very small region close to
the left boundary, which is in agreement with the limit solution of the reduced
equation (7.13). As in the previous case, the numerical solution of the nonlinear
BVP (7.3) with uL < uR = 0, also exhibits a boundary layer character (for
small ) with u(σ) ≈ uR = 0, except in a very small region close to the left
boundary.
In Lemma 7.2, we showed that for uL < 0 < uR , the flux can not be positive
as the function H + (c) does not have a non-trivial root. On the other hand, if
H − (c) has a root then, α− (c) = β− (c). In the limit → 0, β− (c) = c/2 → ∞.
With α− (c) being a monotonically decreasing function and α− (0) = π, the
only root of H − (c), is c = 0, resulting in Fi+1/2 = 0. This is better explained
using the numerical solution of the nonlinear local BVP (7.3) computed using
the central scheme on a very fine grid with ∆σ = 10−4 . Figure 7.7 shows
numerical solutions of the nonlinear BVP for = 10−2 and 10−3 . Unlike, in
Figure 7.5 and Figure 7.6, for uL < 0 < uR , the solution of the local BVP
(7.3) possesses two boundary layers with u(σ) = 0 for the rest of the domain.
For very small , u(σ) = 0, yielding a zero-flux passing through the interface
xi+1/2 .
The discussion for the limit case can be summarized as:
99
Nonlinear flux approximation
-0.5
-0.75
u(σ)
-1
-1.25 ǫ = 10−1
ǫ = 10−2
ǫ = 10−3
-1.5
0 0.5 1
σ
Figure 7.6: Numerical solutions of the nonlinear local BVP (7.3) using the
central scheme on a very fine grid (∆σ = 10−4 ) with uL = −1.5 and uR = −0.5.
0
u(σ)
-1
ǫ = 10−3
ǫ = 10−4
-2
0 0.5 1
σ
Figure 7.7: Numerical solutions of the nonlinear local BVP (7.3) using the
central scheme on a very grid (∆σ = 10−4 ) with uL = −2 and uR = 1.
100
Nonlinear flux approximation
where B(z) := z/(ez − 1) is the Bernoulli function and P := ui+1/2 /2 the
mesh Péclet number. For the interface velocity ui+1/2 , we take ui+1/2 = (uL +
uR )/2. We use the analytical solution to the viscous Burgers equation defined
on (0, 1) × (0, T ), T ∈ (0, 1]
1
uref (x, t) = 1 + 1
2 tanh x − 0.1 − 12 t , (7.14)
4ν
as the reference solution to compare the schemes. We use the standard explicit
fourth-order Runge-Kutta scheme for time integration with ∆t = 10−3 . For this
test case, we have 0 < uR < uL throughout the computational domain, and the
numerical flux is given by the roots of H + (c). The Newton solver converges
in 2 − 8 iteration steps (depending on the tolerance, ranging from 10−3 to
10−8 ), for a good initial guess. A fairly accurate initial guess can be derived
using the bounds on the derivative uσ , that can be obtained using Lemma 7.1.
Figure 7.8 shows the convergence of the absolute error keu k1 := ku − uref k1 for
ν = 10−3 over a family of uniform grids. Grid refinement (for fixed ν) causes
to increase (for the test case, = 2i × 10−2 , i = 1, 2, · · · , 6). Moreover, it
is observed that the root-finder converges faster for higher values of (≈ 1)
than for smaller values of . On coarse grids all three schemes exhibit first-
order accuracy, with the local BVP schemes being slightly more accurate than
the upwind scheme. However, on grid refinement (increasing ) the nonlinear
BVP scheme is found to be more accurate compared to the upwind and the
linearized local BVP scheme (Figure 7.8). For ν = 10−2 , i.e., for a smoother
101
Nonlinear flux approximation
||eu ||1 10 -2 1
2
10 -3
10 -3 10 -2 10 -1
h
Figure 7.8: Convergence of the 1-norm of the absolute error for ν = 10−3 for the
proposed nonlinear local BVP scheme, homogeneous linear local BVP scheme
and the upwind scheme, for a family of grids (h = 10−1 × 2−i ; i = 1, 2, · · · , 6).
velocity profile, the nonlinear local BVP scheme exhibits uniform second-order
convergence, as shown in Figure 7.9.
7.5 Conclusion
In this chapter, we have presented a flux approximation scheme for the viscous
Burgers equation, in which the numerical flux function is given by the solution
of a local nonlinear two-point BVP, resulting in a locally exact approximation
which corresponds with the nonlinearity of the flux function. The flux is com-
puted using a nonlinear local BVP, which has monotonic solutions and exhibits
a boundary layer character for smaller values of (= ν/h). Thus depending on
the boundary conditions uL , uR , the local BVP has either a monotonically
increasing or monotonically decreasing solution. For uL ≥ uR , the solution of
the local BVP is monotonically decreasing, with the flux being positive and
given by the roots of the function H + (c). For uL < uR , the solution of the
local BVP is monotonically increasing, thus uσ > 0. Hence, the flux can be
positive, negative or zero. We have presented a criterion for identifying the
sign of the flux depending on the boundary conditions uL , uR and . For both
cases uL ≥ uR and uL < uR , the numerical flux is shown to be consistent with
the Godunov method in the inviscid limit.
102
Nonlinear flux approximation
10 -2
2
||eu ||1
10 -4
nonlinear local BVP
linear local BVP
upwind
10 -6
10 -3 10 -2 10 -1
h
Figure 7.9: Convergence of the 1-norm of the absolute error for ν = 10−2 for the
proposed nonlinear local BVP scheme, homogeneous linear local BVP scheme
and the upwind scheme, for a family of grids (h = 10−1 × 2−i ; i = 1, 2, · · · , 6).
103
Chapter 8
Conclusion
105
Conclusion
106
Conclusion
terms. As expected, the inclusion of the source terms provides a more accurate
approximation (uniformly second-order accurate) than the homogeneous local
BVP scheme, also here at only marginally higher cost.
107
Conclusion
108
Bibliography
[7] Black, F., and Scholes, M. The pricing of options and corporate
liabilities. Journal of Political Economy 81 (1973), 637–654.
[8] Brass, H., and Petras, K. Quadrature Theory: The Theory of Numer-
ical Integration on a Compact Interval, vol. 178 of Mathematical Surveys
and Monographs. American Mathematical Society, 2011.
109
BIBLIOGRAPHY
[15] Danet, C.P. The classical maximum principle. Some of its extensions
and applications. Annals of the Academy of Romanian Scientists Series
on Mathematics and its Applications 3 (2011), 273–299.
110
BIBLIOGRAPHY
[23] Eymard, R., Gallouët, T., and Herbin, R. Finite Volume Methods,
vol. 7 of Handbook of Numerical Analysis. Elsevier, 2000.
[29] Ghia, U., Ghia, K.N., and Shin, C.T. High-Re solutions for incom-
pressible flow using the Navier-Stokes equations and a multigrid method.
Journal of Computational Physics 48 (1982), 387–411.
[30] Göçmen, T., van der Laan, P., Réthoré, P.E., Diaz, A.P.,
Larsen, G.C., and Ott, S. Wind turbine wake models developed
at the Technical University of Denmark: A review. Renewable and Sus-
tainable Energy Reviews 60 (2016), 752–769.
[33] Gresho, P.M., and Lee, R.L. Don’t suppress the wiggles - They’re
telling you something! Computers & Fluids 9 (1981), 223–253.
[34] Gresho, P.M., and Sani, R.L. On pressure boundary conditions for
the incompressible Navier-Stokes equations. International Journal for
Numerical Methods in Fluids 7 (1987), 1111–1145.
111
BIBLIOGRAPHY
[35] Gresho, P.M., and Sani, R.L. Incompressible Flow and the Finite
Element Method, vol. 2, Isothermal Laminar Flow. Wiley, 2000.
[36] Gupta, M.M., and Manohar, R.P. On the use of central difference
scheme for Navier-Stokes equations. International Journal for Numerical
Methods in Engineering 15 (1980), 557–573.
[37] Hairer, E., Lubich, C., and Roche, M. The Numerical Solution of
Differential-Algebraic Systems by Runge-Kutta Methods. Springer, 2006.
[43] Huxley, L.G.H., and Crompton, R.W. The Diffusion and Drift of
Electrons in Gases. Wiley, 1974.
[44] Il’in, A.M. Differencing scheme for a differential equation with a small
parameter affecting the highest derivative. Mathematical Notes of the
Academy of Sciences of the USSR 6 (1969), 596–602.
[45] Jimenez, A., Crespo, A., Migoya, E., and Garcia, J. Large-Eddy
Simulation of spectral coherence in a wind turbine wake. Environmental
Research Letters 3 (2008).
112
BIBLIOGRAPHY
[48] Kumar, N., ten Thije Boonkkamp, J.H.M., and Koren, B. A sub-
cell discretization method for the convective terms in the incompressible
Navier-Stokes equations. In Lecture Notes in Computational Science and
Engineering (2016), 106, Springer, pp. 295–303.
[54] LeVeque, R.J. Finite Volume Methods for Hyperbolic Problems. Cam-
bridge University Press, 2002.
[55] Liu, L., van Dijk, J., ten Thije Boonkkamp, J.H.M., Mihailova,
D.B., and van der Mullen, J.J.A.M. The complete flux scheme-
Error analysis and application to plasma simulation. Journal of Compu-
tational and Applied Mathematics 250 (2013), 229–243.
[58] Marx, Y.P. Time integration schemes for the unsteady incompressible
Navier-Stokes equations. Journal of Computational Physics 112 (1994),
182 – 209.
113
BIBLIOGRAPHY
[61] Morinishi, Y., Lund, T.S., Vasilyev, O.V., and Moin, P. Fully
conservative higher order finite difference schemes for incompressible flow.
Journal of Computational Physics 143 (1998), 90–124.
[63] Patankar, S.V. Numerical Heat Transfer and Fluid Flow. Series in
Computational Methods in Mechanics and Thermal Sciences. Hemisphere
Pub. Corp., 1980.
[67] Raizer, Y.P., and Allen, J.E. Gas Discharge Physics. Springer,
1997.
[69] Roe, P.L. Approximate Riemann solvers, parameter vectors, and differ-
ence schemes. Journal of Computational Physics 43 (1981), 357–372.
[70] Roe, P.L. The use of the Riemann problem in finite difference schemes.
In Seventh International Conference on Numerical Methods in Fluid Dy-
namics: Proceedings of the Conference (1981), Springer, pp. 354–359.
[71] Roos, H.G., Stynes, M., and Tobiska, L. Robust Numerical Methods
for Singularly Perturbed Differential Equations: Convection-Diffusion-
Reaction and Flow Problems. Springer, 2008.
114
BIBLIOGRAPHY
[77] Sanderse, B., van der Pijl, S.P., and Koren, B. Review of com-
putational fluid dynamics for wind turbine wake dynamics. Wind Energy
14 (2011), 799–819.
[79] Sani, R.L., Shen, J., Pironneau, O., and Gresho, P.M. Pressure
boundary condition for the time-dependent incompressible Navier–Stokes
equations. International Journal for Numerical Methods in Fluids 50
(2006), 673–682.
[81] Shigyo, N., and Niitsu, Y. Physical models for bipolar device simula-
tion and their effects on cutoff frequency. IEEE Transactions on Electron
Devices 40 (1993), 2087–2089.
115
BIBLIOGRAPHY
116
BIBLIOGRAPHY
[105] You, D., Mittal, R., Wang, M., and Moin, P. Analysis of stability
and accuracy of finite-difference schemes on a skewed mesh. Journal of
Computational Physics 213 (2006), 184–204.
117
Summary
118
Summary
119
Curriculum Vitae
Nikhil Kumar was born on 21 July 1990 in Jaipur, India. He finished his
schooling from Gyan Bharti School, New Delhi, India. He subsequently stud-
ied Mathematics at the Indian Institute of Science Education and Research
(IISER), Mohali, India and obtained a master’s degree in 2013, with a master
thesis entitled Computational Aspects of Representation Theory.
In September 2013, Nikhil started his PhD project at Eindhoven University
of Technology, under the supervision of dr.ir. Jan ten Thije Boonkkamp and
prof.dr.ir. Barry Koren. The results obtained during the PhD project are
presented in this dissertation. The PhD position was funded under the Shell-
NWO “Computational sciences for energy research (CSER)” initiative.
121
List of publications
Journal Publications:
1. N. Kumar, J.H.M. ten Thije Boonkkamp and B. Koren, Approximation
of the convective flux in the incompressible Navier-Stokes equations using
local boundary-value problems, Journal of Computational and Applied
Mathematics (Submitted, 2017).
2. N. Kumar, J.H.M. ten Thije Boonkkamp and B. Koren, Nonlinear flux
approximation scheme for the viscous Burgers equation, (in preparation).
Refereed proceedings:
1. N. Kumar, J.H.M. ten Thije Boonkkamp, B. Koren and A. Linke, A
nonlinear flux approximation scheme for the viscous Burgers equation,
Proceedings in Mathematics & Statistics (200): 457−465, Springer, 2017.
2. N. Kumar, J.H.M. ten Thije Boonkkamp and B. Koren, Flux approxim-
ation scheme for the incompressible Navier-Stokes equations using local
boundary value problems, Lecture Notes in Computational Science and
Engineering (112): 43 − 51, Springer, 2016.
123
Acknowledgments
125
I am also thankful to my friends Abhineet, Amar, Abhijay, Anwesha, Tarun,
Koondi, Pranav, Stephen, Sai, Marco, Fritzzie, Carina, Jeroen, Wen, Nenad,
Manu, Deepesh and Sumit for making a stay in Eindhoven a memorable one.
In the end, I am forever grateful to my parents, for their love and support,
all throughout my life. They were always there to give me the push whenever,
it got a bit difficult. Priya and Pravesh (my sister and brother-in-law) both
of you were always there to give the right advice and I can see that trait has
been very well passed to Saisha (my niece) who has already started giving me
advice(s) and she’s just 2!!
Finally, Netherlands thank you for the fantastic bike paths and the nice
cafés along the bike path, I am sure I will miss them very much.
126