HAL Id: hal-01879576
https://hal.archives-ouvertes.fr/hal-01879576
Submitted on 24 Sep 2018
HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from
L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de
A high-order interpolation for the finite volume method:
The Coupled Least Squares reconstruction
Florian Haider, Bernard Courbet, Jean-Pierre Croisille
To cite this version:
Florian Haider, Bernard Courbet, Jean-Pierre Croisille. A high-order interpolation for the finite
volume method: The Coupled Least Squares reconstruction. Computers and Fluids, Elsevier, 2018,
176, pp.20-39. �10.1016/j.compfluid.2018.09.009�. �hal-01879576�
A High-Order interpolation for the Finite Volume Method: the Coupled Least Squares Reconstruction
Florian Haider*, Bernard Courbet* and Jean-Pierre Croisille**
* Onera, 92320 Châtillon, France,
bernard.courbet@onera.fr,florian.haider@onera.fr.
** IECL, UMR CNRS 7502, Mathématiques, Univ. de Lorraine, France, jean-pierre.croisille@univ-lorraine.fr
Abstract
We consider the Finite Volume Method on irregular grids for conservation laws with a particular poly- nomial reconstruction. This reconstruction is based on a least squares approach to compute consistent approximations of the first, second and third order derivatives. The resulting reconstruction is cubic.
It is called the Coupled Least Squares reconstruction. It is obtained by a three stages iteration. At each iteration, only data located in a compact stencil, and not beyond, are accessed. A linear stability analysis is given in the case of regular and irregular one-dimensional grids. Numerical results for various problems, including shock tubes, vortex and accoustic wave propagation, support the interest of this approach. The reconstruction algorithm is presented in detail in the one dimensional case. An outline of the multidimensional case in also given.
This work was announced in [14].
Keywords: Finite volume method - High order method - k-exact method - Cubic reconstruction - Numerical flux - Linear stability - Irregular grid - Coupled Least Squares.
1. Introduction
1.1. Finite volume schemes with high order reconstruction
In [13, 14], a high order reconstruction approach for finite volume approximations was introduced for the purpose of gas dynamics simulations on general polyhedral grids. This approach, which is called the Coupled Least Squares reconstruction, belongs to the k− exact methods [4]. The purpose of this paper is to give a detailed account of a particular algorithm of the reconstruction. The presentation is mainly restricted to the one dimensional context to emphasize the logic of the numerical procedure.
Consider the conservation law
∂
tu + ∂
xf (u) = 0. (1.1)
We start from the discrete in space, continuous in time, integral version of (1.1):
dv
α(t)
dt = − 1
|T
α|
h f
α+1/2(t) − f
α−1/2(t) i
. (1.2)
The grid is made of cells T
αand is depicted on Fig 1.1. In (1.2) t 7→ v
α(t) approximates t 7→ u ¯
α(t) defined by
¯
u
α(t) = 1
|T
α| Z
Tα
u(x, t)dx, (1.3)
*Manuscript
Click here to download Manuscript: paper-Haider-Courbet-Croisille-R4.pdf Click here to view linked References
T
α−1T
αT
α+1x
α−1x
αx
α+1h
α−1,αh
α,α+1Figure 1.1: The cell T
αand the two neighboor cells T
α±1. The barycenters of the cells T
α±1and T
αare the points x
α±1and x
α, repectively. In addition, h
α−1,α= x
α− x
α−1and h
α,α+1= x
α+1− x
α.
where u(x, t) is the solution of (1.1). Throughout the paper, the numerical flux t 7→ f
α+1/2(t) is of the form:
f
α+1/2(t) = F
w
α[V (t)](x
−α+1/2), w
α+1[V (t)](x
+α+1/2)
. (1.4)
where:
• The function (u
L, u
R) 7→ F (u
L, u
R) denotes some numerical flux function, typically the HLLC flux in the case of the Euler equations [29].
• The reconstruction x 7→ w
α[V (t)](x) is an interpolant based on the vector V (t) = [v
1(t), v
2(t), . . . , v
N(t)]
T. The reconstruction expounded in this paper has the form of a Taylor expansion of u(x) around the barycenter x
αof the cell T
α, i.e. (we take out the time dependency for clarity):
w
α[¯ u](x) ' u(x
α) + u
0(x
α)(x − x
α) + 1
2 u
00(x
α)(x − x
α)
2+ 1
6 u
000(x
α)(x − x
α)
3. (1.5) where ¯ u = [¯ u
α] is the vector of averages of u(x) over the cells T
α. The relation (1.5) is a 3− exact reconstruction. The main task is to define a consistent approximation to u
0(x
α), u
00(x
α) and u
000(x
α), where u(x) is supposed to be known by ¯ u only.
The main observation is the following: to preserve fourth order accuracy in (1.5), it is sufficient to calculate approximations of u
0(x
α), u
00(x
α) and u
000(x
α) with order 3, 2 and 1, respectively. It is the purpose of this paper to show how this can be obtained in several steps of an iterative procedure along which the accuracy is progessively enhanced. Moreover, at each step, there is an access only to data located in a small neighborhood of any given cell, and therefore it is called a compact k-exact reconstruction.
This paper is the companion paper of [14] where the multidimensional aspect on general polyhedral grids of our algorithm is addressed. This study has been initiated in [12], in the context of the package CEDRE, a parallel multisolver CFD code for aerothermochemistry
1.
Our point of view is thus the one of a generic computational procedure for any finite volume code and for general compressible flows. For an overview on the k− exact approach for high order computations in CFD, compared to other approaches, we refer to the review paper [30].
1.2. High order finite volume schemes
We consider the finite volume method (1.2) for a conservation law (1.1) on a general irregular grid made of cells T
α, which support approximations v
α(t) of the averages u ¯
α(t). As explained in Section 1.1, we want to define the reconstructed polynomial w
α[V (t)](x) which is used in the numerical flux f
α+1/2(t) in (1.4). This polynomial must have the following properties (we drop the t dependency).
1CEDRE is being developed at Onera, France, http://cedre.onera.fr
First w
α[V ](x) depends linearly on the data v
βin the cells T
βbelonging to a small neighborhood of T
α. In particular, it does not use gradient data as for example in the Discontinuous Galerkin approximation, but only finite volume data. Furthermore, no flow based local parameters are used in a nonlinear way to define w
α[V ](x). Consequently, our reconstruction is decoupled from all nonlinear treatments such as slope limiting or monotonicity preserving procedures. Thus the reconstruction step is decoupled from the limitation procedure. The reconstruction step can be applied in principle to any finite volume code including complex fluid modelling such as turbulent, multiphasic, reactive, spherical flows, etc. With this approach, the nonlinear treatments are performed in a second step, after the reconstruction step.
Having in view general CFD codes, the design of the reconstruction must of course be multidimensional.
Moreover, it must allow an easy parallel implementation. This is obtained by mean of the procedure in several stages presented in Section 2 and Section 3.
1.3. Related works
Reconstruction beyond linear in the finite volume method on irregular grids has been a longstanding issue of great importance, both practical and theoretical in CFD. It takes place in the challenge to go beyond second order with the finite volume method. The problem was introduced in [17, 1] where various polynomial interpolations on triangles were studied. Quadratic reconstruction is undertaken in [4, 7]. The series of studies [22, 21] explores the finite volume method with quadratic reconstruction for compressible Fluid Dynamics. In many works, the reconstruction is analyzed in conjunction with the limiter and with the positivity preserving property [3, 2], which are considered as constraints on the reconstruction. This is for example the case in the well known ENO/WENO procedure. In this approach, local high order reconstruction functions are based on stencils which vary according to local sensors related the solution, e.g. the total variation. We refer to [16, 18, 27, 28]. Another option [9] is where the reconstruction in finite volumes is considered in the general framework of the Discontinuous Galerkin approach. We also refer to the studies [19, 31], with interest into application oriented simulations, where reconstructions beyond linear are presented. Finally we mention the recent study [23] where a variant of compact k-exact reconstruction is considered. In this study the authors use an upwinded scheme only up to third order and switch to a fourth order centered scheme in vorticity dominated regions. This is in contrast to our scheme which is fully upwinded up to fourth order independently of the flow regime.
1.4. Outline
The outline of the paper is as follows. In Section 2 we present the principle of our reconstruction algorithm. In Section 2.1, the general d− dimensional framework is set up for the reconstructed cubic polynomial w
α[¯ u](x). From Section 2.2 on, we switch to the one dimensional case to present how the reconstruction uses at each step only data in the direct neighborhood of T
α. In Section 3 and Section 4 the detail of the algorithm to calculate the cubic reconstruction is summarized (algorithm 1). This is based on fully centered approximate derivatives ˜ σ
α, θ ˜
αand ψ ˜
αin the cubic reconstruction (1.5) giving rise to a linearly stable semidiscrete system (1.2), even on irregular grids. Our analysis is based on the numerical computation of discrete spectra. Finally we show in Section 5 numerical results in one and multidimension illustrating our approach.
2. Coupled Least Squares Reconstruction 2.1. The d− dimensional case
The Coupled Least Squares method is a particular method to implement a k− exact reconstruction.
This method has been already been introduced in [14]. Here we specifically focus on the piecewise cubic
reconstruction (i.e k = 3). Let Ω ⊂ R
d, d ≥ 1 be a domain with periodic boundary conditions. We
consider a grid, a priori irregular, consisting of N general polyhedral cells T
αas on Fig. 2.1.
x
αT
αT
βh
αβx
βFigure 2.1: Two cells of a general polyhedral grid in the two dimensional case, (d = 2
Ω =
N
[
α=1
T
α. (2.1)
The tensor notation used in this section is summarized in Appendix 8. The reconstruction algorithm proceeds in several steps. At each step, the only data that are used are located in a small neighborhood W
αof the cell T
α. The set W
αis a parameter of the method. A typical choice of W
αis the first neighborhood
2defined by
V
(1)α= {β ∈ [1 : N ], | T
βis adjacent to T
α}. (2.2) Let x ∈ Ω 7→ u(x) be a given regular function. The value of u and of the first, second and third order derivatives at x
αare denoted by
u
α= u(x
α), D
(1)u
α= D
x(1)u(x
α), D
(2)u
α= D
(2)xu(x
α), D
(3)u
α= D
(3)xu(x
α). (2.3) The derivative D
(l)u
αis a symmetric tensor of order l. We also note the mean value
¯ u
α= 1
|T
α| Z
Tα
u(x)dx. (2.4)
Consider the particular case where u(x) = p(x) is a cubic polynomial. The values p ¯
β− p ¯
αand the three derivatives D
(l)p
α, l = 1, 2, 3, satisfy for all β ∈ W
αthe following Taylor expansions (see Appendix 8 for the notation),
¯
p
β− p ¯
α= D
(1)p
α• (z
(1)αβ− x
(1)α) +
12D
(2)p
α• (z
(2)αβ− x
(2)α) +
16D
(3)p
α• (z
(3)αβ− x
(3)α), D
(1)p
β= D
(1)p
α+ D
(2)p
α• h
(1)αβ+
12D
(3)p
α• h
(2)αβ,
D
(2)p
β= D
(2)p
α+ D
(3)p
α• h
(1)αβ.
(2.5)
2The first neighborhood of the cellTαis also called thedirector theVon Neumannneighborhood.
For a general function u(x) these Talor expansions become
¯
u
β− u ¯
α= D
(1)u
α• (z
(1)αβ− x
(1)α) +
12D
(2)u
α• (z
(2)αβ− x
(2)α) +
16D
(3)u
α• (z
(3)αβ− x
(3)α) + O(h
4), D
(1)u
β= D
(1)u
α+ D
(2)u
α• h
(1)αβ+
12D
(3)u
α• h
(2)αβ+ O(h
3),
D
(2)u
β= D
(2)u
α+ D
(3)u
α• h
(1)αβ+ O(h
2).
(2.6) Therefore, due to the O(h
p) terms in (2.6), the quantities u ¯
β− u ¯
α, D
(1)u
α, D
(2)u
αand D
(3)u
αare ap- proximate solutions of the system (2.5). Consider now the problem to approximate the three derivatives D
(1)u
α, D
(2)u
αand D
(3)u
αby consistent values. We look for symmetric tensors called σ ˜
α, θ ˜
αand ψ ˜
αsatisfying
˜
σ
α= D
(1)u
α+ O(h
3), θ ˜
α= D
(2)u
α+ O(h
2), ψ ˜
α= D
(3)u
α+ O(h).
(2.7)
An essential observation is that for all symmetric tensors σ ˜
α, θ ˜
αand ψ ˜
αof order 1, 2 and 3 respectively, satisfying (2.7), the same system than (2.6) holds. For all β ∈ W
αwe have:
¯
u
β− u ¯
α= ˜ σ
α• (z
(1)αβ− x
(1)α) +
12θ ˜
α• (z
(2)αβ− x
(2)α) +
16ψ ˜
α• (z
(3)αβ− x
(3)α) + O(h
4),
˜
σ
β= ˜ σ
α+ ˜ θ
α• h
(1)αβ+
12ψ ˜
α• h
(2)αβ+ O(h
3), θ ˜
β= ˜ θ
α+ ˜ ψ
α• h
(1)αβ+ O(h
2).
(2.8)
The Coupled Least Squares method consists in approximately solving (2.8), when taking out the O(h
p) terms. Otherwise stated, we solve for ¯ u = [¯ u
1, u ¯
2, . . . u ¯
N] 7→ σ ˜
α[¯ u], θ ˜
α[¯ u], ψ ˜
α[¯ u] solution of the system
¯
u
β− u ¯
α= ˜ σ
α[¯ u] • (z
(1)αβ− x
(1)α) +
12θ ˜
α[¯ u] • (z
(2)αβ− x
(2)α) +
16ψ ˜
α[¯ u] • (z
(3)αβ− x
(3)α), (a),
˜
σ
β[¯ u] = ˜ σ
α[¯ u] + ˜ θ
α[¯ u] • h
(1)αβ+
12ψ ˜
α[¯ u] • h
(2)αβ, (b), θ ˜
β[¯ u] = ˜ θ
α[¯ u] + ˜ ψ
α[¯ u] • h
(1)αβ, (c).
(2.9)
Solving (2.9) raises two questions. First the linear system (2.9) does not have a solution in general.
This system is rectangular with m
α1 + d + d(d − 1)/2
equations and d + d(d + 1)/2 + d(d + 1)(d + 2)/6 unknowns. For example in two dimensions and for a grid made of triangles, there are 18 equations and 9 unknowns. Therefore (2.9) is overdetermined. This leads to seek a solution in the least squares sense. Second, equations (2.9
a), (2.9
b) and (2.9
c) couple unknowns in differents cells. To overcome these problems, the following strategy is used. The system (2.9) is rewritten as:
h
αβ. σ ˜
α[¯ u] = ˜ u
β− u ¯
α−
12θ ˜
α[¯ u] • (z
(2)αβ− x
(2)α) −
16ψ ˜
α[¯ u] • (z
(3)αβ− x
(3)α), (a) h
αβ. θ ˜
α[¯ u] = ˜ σ
β[¯ u] − σ ˜
α[¯ u] −
12ψ ˜
α[¯ u] • h
(2)αβ, (b)
h
αβ. ψ ˜
α[¯ u] = ˜ θ
β[¯ u] − θ ˜
α[¯ u] (c).
(2.10)
Let us now consider in each equation of (2.10) the unknowns in the right-hand-side as parameters. A
least squares resolution is applied to each equation in (2.10). Consider first (2.10)
a. The right-hand
side is denoted by
f δu
(0)αβ= ˜ u
β− u ¯
α− 1 2
θ ˜
α[¯ u] • (z
(2)αβ− x
(2)α) − 1 6
ψ ˜
α[¯ u] • (z
(3)αβ− x
(3)α), (2.11) Therefore (2.10)
ais rewritten as
h
αβ. σ ˜
α[¯ u] = f δu
(0)αβ, ∀β ∈ W
α. (2.12) This is a linear system of m
αequations with d unknowns which are [˜ σ
α,1, . . . σ ˜
α,d]. The least squares solution gives that σ ˜
α[¯ u] is solution of
min
σα∈Rd
X
β∈Wα
|f δu
0αβ− σ
α• h
(1)α|
2. (2.13) On the other hand, the standard least squares slope in cell T
αis solution of
min
σα∈Rd
X
β∈Wα
|¯ u
β− u ¯
α− σ
α• h
(1)α|
2. (2.14)
Denote C
αand H
Tαthe d × m
αmatrices (m
α= # W
α)
C
α= [c
αβ1, c
αβ2, . . . c
αβmα], H
Tα= [h
αβ1, h
αβ2, . . . h
αβmα]. (2.15) Assuming rank(H
α) = d, the unique solution of (2.14) is given by the least squares operator A
αdefined by
A
α: [¯ u] 7→ σ ¯
LSα[¯ u] = X
β∈Wα
c
αβ(¯ u
β− u ¯
α), (2.16) where
c
αβ= (H
TαH
α)
−1h
(1)αβ(= O(1/h)). (2.17) As a result, σ ˜
α[¯ u] solution of (2.13) is expressed as:
˜
σ
α[¯ u] = ¯ σ
LSα[¯ u] − a ¯
(3)α. ˜ θ
α[¯ u] − b ¯
(4)α. ψ ˜
α[¯ u]. (2.18) where the two tensors ¯ a
(3)αand b ¯
(4)αdepend only on the grid and are given by
¯ a
(3)α=
z
(2)αβ− x
(2)α⊗ c
αβ, b ¯
(4)α=
z
(3)αβ− x
(3)α⊗ c
αβ. (2.19)
The relation (2.18) is the first relation of the Coupled Least Squares method. Note that at this stage, θ ˜
α[¯ u] and ψ ˜
α[¯ u] are still parameters and are not determined. Consider now the least squares resolution of (2.10)
b. As before we consider ψ ˜
α[¯ u] in the right-hand side of (2.10)
bas a fixed parameter. We denote
f δu
(1)αβ= ˜ σ
β[¯ u] − σ ˜
α[¯ u] − 1 2
ψ ˜
α[u] • h
(2)αβ, β ∈ W
α. (2.20)
In (2.10)
b, the symmetric tensor θ ˜
α[¯ u] is the unknown and δu f
(1)αβis at the moment considered to be known.
There are d(d + 1)/2 unknowns and dm
αequations. The linear system is as before overdetermined. It can be expressed as
H
α(2)θ ˜
α[¯ u] = δu f
(1)αββ
, (2.21)
where the size of the matrix H
α(2)is m
αd × d(d + 1)/2. Again (2.21) is solved by least squares. This leads to
θ ˜
α[¯ u] = H
α(2)+δu e
(1)α, (2.22)
where δu e
(1)α= [ δu e
(1)α1
, . . . , δu e
(1)αmα
]
Tand where H
α(2) +denotes the standard Moore-Penrose inverse of the matrix H
α(2). It is defined by [10, 8]:
H
α(2)+= H
α(2)TH
α(2)−1H
α(2)T. (2.23)
Therefore the second relation in the space of symmetric tensors of order 2 (i.e. in R
d(d+1)/2) is
˜ θ
α[¯ u] =
H
α(2)+h
˜
σ
β[¯ u] − σ ˜
α[¯ u] − 1 2
ψ ˜
α[¯ u] • h
(2)αββ
i . (2.24)
Proceeding similarly for the third relation (2.10)
cprovides a relation of the form ψ ˜
α[¯ u] =
H
α(3)+h
θ ˜
β[¯ u] − ˜ θ
α[¯ u]
β
i
. (2.25)
The relation (2.25) is an identity in the space of symmetric tensor of order 3 and H
α(3)again is a suitable least squares matrix. The final linear system with unknowns σ ˜
α[¯ u], ˜ θ
α[¯ u] and ψ ˜
α[¯ u] is of the form
σ ˜
α[¯ u] + ¯ a
(3)α. ˜ θ
α[¯ u] + ¯ b
(4)α. ψ ˜
α[¯ u] = ¯ σ
LSα[¯ u], (a) θ ˜
α[¯ u] + a
(3)α. ψ ˜
α[¯ u] = ˜ θ
LSα[¯ u], (b) ψ ˜
α[¯ u] = ˜ ψ
LSα[¯ u] (c).
(2.26)
In (2.26) we have denoted
θ ˜
LSα[¯ u] = H
α(2) +h
( ˜ σ
β[¯ u] − σ ˜
α[¯ u])
βi , ψ ˜
LSα[¯ u] =
H
α(3) +h
(˜ θ
β[¯ u] − θ ˜
α[¯ u])
βi .
(2.27)
and where a
(3)αis a third tensor depending only on the grid.
Definition 2.1. The system (2.26) is called the Coupled Least Squares system for the cubic reconstruc- tion.
Two methods to solve (2.26) can be considered. First, the Jacobi (or Gauss Seidel) iteration can be used. This approach is presented in [14]. Due to the triangular form of (2.26), a second method consists in using a forward/backward substitution method. The rest of the paper is devoted to the presentation of this second method in the particular case of the one dimensional setting. The interest of the one dimensional case is that it permits to have a better view on the algebra of the algorithm. In particular, it permits to make fully explicit the two steps of the method: first establishing the system (2.26) and second solving it. Note in addition that, even in one dimension, the reconstruction procedure on a nonequispaced grid is by no way straightforward. It clearly deserves an independent study in itself.
Having solved (2.26) in one way or another, the piecewise cubic reconstruction is given by w
α[¯ u](x) = ¯ u
α+ ˜ σ
α[¯ u]•
(x−x
α)−x
(1)α+ 1
2 θ ˜
α[¯ u]•
(x−x
α)
⊗2−x
(2)α+ 1
6
ψ ˜
α[¯ u]•
(x−x
α)
⊗3−x
(3)α. (2.28)
Remark 2.2. A full mathematical study in the d− dimensional case, d ≥ 2 is not completed yet. An important (and difficult) issue is to determine the geometric condition on the grid under which the matrices
H
α(2) +and H
α(3) +do exist. In the absence of such a condition so far, we rely on numerical experiments.
2.2. The one-dimensional case
From now on, we consider the one dimensional case. First we give the detail of the agebra in Section 2.3 in the one dimensional case (d = 1). This permits to emphasize the logic of the reconstruction procedure. In this case, the calculations presented in Section 2.1 are much simpler since all tensors reduce to scalars. The neighborhood W
αis W
α= V
(1)αwith
3V
(1)α= {T
α−1, T
α, T
α+1}. (2.29)
The vector h
αβis defined by (see Fig. 1.1)
h
αβ= x
β− x
α, β = α − 1, α, α + 1. (2.30) In particular, h
αα= 0. The hypothesis (8.12) on the irregular grid becomes
ch ≤ h
α≤ Ch, ch ≤ h
αβ≤ Ch, (2.31)
where c and C are positive constants. Let u(x) be a given regular function. The values u
α, σ
α, θ
αand ψ
αare (see (2.3)):
u
α= u(x
α), σ
α= u
0(x
α), θ
α= u
00(x
α), ψ
α= u
000(x
α). (2.32) The Taylor expansion of u(x) at x
αis:
u(x) = u
α+ σ
α(x − x
α) + 1
2 θ
α(x − x
α)
2+ 1
6 ψ
α(x − x
α)
3+ O(h
4). (2.33) The average u ¯
αof u(x) over T
αsatisfies:
¯
u
α= u
α+ |T
α|
224 θ
α+ O(h
4), (2.34)
Inserting u ¯
αin (2.33) in replacement of u
αleads to expanding u(x) in the form:
u(x) = ¯ u
α+ σ
α(x − x
α) + θ
α1
2 (x − x
α)
2− 1 24 |T
α|
2! + 1
6 ψ
α(x − x
α)
3+ O(h
4). (2.35) This is why we look for an approximant w
α[¯ u](x) of u(x) of the form:
w
α[¯ u](x) = ¯ u
α+ ˜ σ
α(x − x
α) + ˜ θ
α1
2 (x − x
α)
2− 1 24 |T
α|
2+ 1
6
ψ ˜
α(x − x
α)
3. (2.36) where σ ˜
α, θ ˜
αand ψ ˜
αare suitable approximations to σ
α, θ
αand ψ
α, respectively. Note that (2.36) is the one dimensional form of the multidimensional reconstruction (2.28). Defining the reconstruction w
α[¯ u](x) is therefore equivalent to define ˜ σ
α, θ ˜
αand ψ ˜
αand this is the topic of the rest of the paper.
In order to define a fourth order VF scheme, the reconstruction (2.36) is finally inserted in the flux function as indicated in (1.4).
3We could as well consider a priori the five points dependence stencilWα={Tα−2,Tα−1,Tα,Tα+1,Tα+2}
2.3. Coupled Least Squares at the continuous level
In this section, we show how to calculate ˜ σ
α, θ ˜
αand ψ ˜
αappearing in (2.36). As already mentionned, data are located in the compact stencil W
α= V
(1)αonly. Let us start by approximating the derivative σ
αby a linear relation of the form
σ
α' X
β∈Wα
c
αβ(¯ u
β− u ¯
α). (2.37)
with coefficients c
αβto be defined. The consistency relation is X
β∈Wα
c
αβh
αβ= 1. (2.38)
The relation (2.38) express the property that the slope σ
0of a linear function u(x) = u
0+ σ
0x is left invariant by the slope operator (2.37). Our privilegiate choice for c
αβin (2.38) is the least squares slope defined by
¯
σ
αLS= X
β∈Wα
c
LSαβ(¯ u
β− u ¯
α), (2.39)
where c
LSαβis (see (2.17)),
c
LSαβ= h
αβ/ X
β∈Wα
h
2αβ. (2.40)
The least squares slope is consistent since it satisfies (2.38). Henceforth we write c
αβinstead of c
LSαβ. Note that
c
αβ= O(1/h). (2.41)
In the sequel, we also need the least squares values σ
αLS, θ
LSαand ψ
αLSdefined by the relations:
σ
αLS= X
β∈Wα
c
αβ(u
β− u
α), (a) θ
αLS= X
β∈Wα
c
αβ(σ
β− σ
α), (b) ψ
αLS= X
β∈Wα
c
αβ(θ
β− θ
α). (c)
(2.42)
Lemma 2.3. The approximate derivatives σ
αLS, θ
LSα, ψ
LSαin (2.42) satisfy the consistency relations
σ
α+ a
αθ
α+ b
αψ
α= σ
LSα+ O(h
3), (a) θ
α+ a
αψ
α= θ
LSα+ O(h
2), (b)
ψ
α= ψ
αLS+ O(h), (c)
(2.43)
with
σ
α= u
0(x
α), θ
α= u
00(x
α), ψ
α= u
000(x
α).
(2.44)
Using the l-momentum H
α(l)in T
αdefined by:
H
α(l)= X
β∈Wα
h
lαβ, (2.45)
the coefficients a
α, b
αin (2.43) are:
a
α= 1 2
H
α(3)H
α(2), b
α= 1 6
H
α(4)H
α(2). (2.46)
Furthermore, replacing in (2.43)
athe pointwise least squares value σ
LSαby σ ¯
LSα, gives
σ
α+ ¯ a
αθ
α+ ¯ b
αψ
α= ¯ σ
αLS+ O(h
3), (2.47) where the modified coefficients ¯ a
αand ¯ b
αare
¯
a
α= a
α+ 1 24
X
β∈Wα
c
αβ|T
β|
2− |T
α|
2and ¯ b
α= b
α+ 1 24
X
β∈Wα
c
αβ|T
β|
2h
αβ. (2.48)
Proof. For all cells T
β∈ W
α, the Taylor expansion of u(x
β) − u(x
α) is u
β− u
α= σ
αh
αβ+ 1
2 θ
αh
2αβ+ 1
6 ψ
αh
3αβ+ O(h
4). (2.49) Therefore the slope σ
LSαin (2.42)
asatisfies
σ
αLS= X
β∈Wα
c
αβσ
αh
αβ+ 1
2 θ
αh
2αβ+ 1 6 ψ
αh
3αβ+ O(h
3). (2.50)
Using (2.40) and (2.38), the identity (2.50) becomes (2.43)
awhere a
αand b
αare defined in (2.46). The relations (2.43)
bcare obtained in the same way. We now prove (2.47). We deduce from (2.34), (2.42) and (2.49) that (note that |T
α|
2= O(h
2)),
σ
αLS= X
β∈Wα
c
αβ(¯ u
β− u ¯
α) − 1 24
X
β∈Wα
c
αβ(|T
β|
2θ
β− |T
α|θ
2α) + O(h
4)
= ¯ σ
LSα− 1 24
X
β∈Wα
c
αβ|T
β|
2(θ
α+ h
αβψ
α) − |T
α|
2θ
α+ O(h
4)
= ¯ σ
LSα− θ
α24 X
β∈Wα
c
αβ|T
β|
2− |T
α|
2!
− ψ
α24 X
β∈Wα
c
αβ|T
β|
2h
αβ!
+ O(h
4).
Replacing in the preceding relation σ
LSαby (see (2.43)
a)
σ
LSα= σ
α+ a
αθ
α+ b
αψ
α+ O(h
3), (2.51) we deduce that
σ
α+ θ
αa
α+ 1 24
X
β∈Wα
c
αβ|T
β|
2− |T
α|
2!
+ ψ
αb
α+ 1 24
X
β∈Wα
c
αβ|T
β|
2h
αβ!
= ¯ σ
LSα+ O(h
3).
This proves (2.47), with the coefficients ¯ a
α, ¯ b
αgiven in (2.48).
3. A Cubic Reconstruction Procedure
In this section the Coupled Least Squares resolution procedure is detailed. We show how to use Lemma 2.3 to define our cubic reconstruction. Let us start from the relations (2.47) and (2.43)
bcabove relating σ
α, θ
α, ψ
α, σ ¯
LSα, θ
LSαand ψ
LSα. These relations are, (compare (2.26)):
σ
α+ ¯ a
αθ
α+ ¯ b
αψ
α= ¯ σ
LSα+ O(h
3), (a) θ
α+ a
αψ
α= θ
LSα+ O(h
2), (b)
ψ
α= ψ
αLS+ O(h). (c)
(3.1)
Recall that σ
α, θ
αand ψ
αdenote the exact derivatives u
0(x
α), u
00(x
α) and u
000(x
α), respectively. How- ever, consider for a moment the system (3.1) as a 3 ×3 linear system with σ
α, θ
αand ψ
αas "unknowns".
A forward-backward “resolution” provides Taylor expansions of σ
α, θ
αand ψ
αin terms of the value σ ¯
βLS. This is expressed in the following
Proposition 3.1. The exact derivatives u
0(x
α) = σ
α, u
00(x
α) = θ
α, u
000(x
α) = ψ
αsatisfy the relations
ψ
α= X
β∈Wα
c
∗αβX
γ∈Vβ
˜
c
βγ¯ σ
γLS− σ ¯
βLS− X
δ∈Wα
˜
c
αδ(¯ σ
δLS− σ ¯
LSα)
!
+ O(h), (a) θ
α= −˜ a
αψ
α+ X
β∈Vα
˜
c
αβσ ¯
βLS− σ ¯
αLS+ O(h
2), (b) σ
α= −¯ a
αθ
α− ¯ b
αψ
α+ ¯ σ
αLS+ O(h
3), (c)
(3.2)
where
• The coefficients ¯ a
αand ¯ b
αare given in (2.48),
• The coefficients ˜ a
αand ˜ c
αβare defined by:
˜
a
α= a
α+ P
β∈Wα
c
αβ(¯ b
β− ¯ b
α+ ¯ a
βh
αβ) 1 + P
β∈Wα
c
αβ(¯ a
β− ¯ a
α) , (3.3) and
˜
c
αβ= c
αβ1 + P
β∈Wα
c
αβ(¯ a
β− a ¯
α) . (3.4)
• The coefficient c
∗αβis given by
c
∗αβ= c
αβ1 + P
δ∈Wα
c
αδ(˜ a
δ− ˜ a
α) . (3.5)
Proof. First note that Equation (3.2)
(c)is identical to Equation (3.1)
(a)and therefore there is nothing to prove. Second, consider the proof of (3.2)
(b). The relation (3.1)
(b)is
θ
α+ a
αψ
α= θ
αLS+ O(h
2) (3.6)
Replacing in the right-hand side θ
LSαby its value in (2.42)
(b)gives θ
α+ a
αψ
α= X
β∈Wα
c
αβ(σ
β− σ
α) + O(h
2). (3.7)
Consider now the equation (2.47) in all cells T
βσ
β+ ¯ a
βθ
β+ ¯ b
βψ
β= ¯ σ
βLS+ O(h
3). (3.8) For all cells T
βclose to T
α, a Taylor expansion gives
θ
β= θ
α+ h
αβψ
α+ O(h
2), (a)
ψ
β= ψ
α+ O(h). (b) (3.9)
Replacing in (3.8) the values of θ
βand ψ
βgiven in (3.9) yields (note that ¯ a
α= O(h) and ¯ b
α= O(h
2)) σ
β+ ¯ a
β(θ
α+ h
αβψ
α) + ¯ b
βψ
α= ¯ σ
LSβ+ O(h
3), (3.10) or equivalently
σ
β= ¯ σ
LSβ− a ¯
βθ
α− (¯ a
βh
αβ+ ¯ b
β)ψ
α+ O(h
3). (3.11) Inserting finally (3.11) in (3.8) gives
θ
α+ a
αψ
α= X
β∈Wα
c
αβσ ¯
αLS− ¯ a
βθ
α− (¯ a
βh
αβ+ ¯ b
β)ψ
α− σ
α!
+ O(h
2)
= X
β∈Wα
c
αβσ ¯
βLS− ¯ a
βθ
α− (¯ a
βh
αβ+ ¯ b
β)ψ
α− σ ¯
LSα+ ¯ a
αθ
α+ ¯ b
αψ
α!
+ O(h
2).
Collecting the terms in θ
αand ψ
αin the left-hand-side gives
1 + X
c
αβ(¯ a
β− a ¯
α)
θ
α+
a
α+ X
β
c
αβ(¯ b
β− ¯ b
α+ ¯ a
βh
αβ)
ψ
α= X
β∈Wα
c
αβ¯
σ
LSβ− σ ¯
LSα+ O(h
2).
Dividing each side by the coefficient
1 + X
β∈Wα
c
αβ(¯ a
β− ¯ a
α), (3.12)
this is rewritten as
θ
α+ ˜ a
αψ
α= X
β∈Wα
˜ c
αβ¯
σ
βLS− σ ¯
αLS+ O(h
2), (3.13)
where ˜ a
α, ˜ c
αβare given in (3.4). Therefore (3.2)
(b)is proved and we prove (3.2)
(c)in a similar way.
Using (3.13 ) at x
βand the relation ψ
β= ψ
α+ O(h) gives the following expression for θ
βθ
β= −˜ a
βψ
α+ X
γ∈Wβ
˜ c
βγ¯
σ
LSγ− σ ¯
LSβ+ O(h
2). (3.14)
The identity (2.42)
(c)is expressed using (3.1), (3.14) and (3.9)
(b)as ψ
α= X
β∈Wα
c
αβ(θ
β− θ
α)
= X
β∈Wα
c
αβ− ˜ a
βψ
β+ X
γ∈Wβ
˜
c
βγσ ¯
LSγ− σ ¯
βLS− θ
α+ O(h)
= X
β∈Wα
c
αβ˜
a
αψ
α− ˜ a
βψ
β+ X
γ∈Wβ
˜
c
βγσ ¯
γLS− σ ¯
LSβ− X
δ∈Wα
˜
c
αδ(¯ σ
δLS− σ ¯
LSα)
+ O(h)
= ψ
α− X
β∈Wα
c
αβ(˜ a
β− ˜ a
α)
!
+ X
β∈Wα
c
αβX
γ∈Wβ
˜
c
βγσ ¯
γLS− σ
LSβ− X
δ∈Wα
˜
c
αδ(¯ σ
LSδ− σ ¯
LSα)
+ O(h).
Collecting in the left hand side all the terms in ψ
αgives:
1 + X
δ∈Wα
c
αδ(˜ a
δ− ˜ a
α)
ψ
α= X
β∈Wα
c
αβX
γ∈Wβ
˜
c
βγσ ¯
LSγ− σ ¯
βLS− X
δ∈Wα
˜
c
αδ(¯ σ
δLS− σ ¯
LSα)
!
+ O(h).
Dividing by the coefficient
1 + P
δ
c
αδ(˜ a
δ− a ˜
α)
yields (3.2)
(a)where c
∗αβis given in (3.5) and the
proof is complete.
Finally we define the quantities ψ ˜
α, θ ˜
αand σ ˜
αby droping in the relations (3.2) the O(h
p) terms. This suggests the following
Corollary 3.2. Let us define the values ψ ˜
α, θ ˜
αand σ ˜
αby
ψ ˜
α= P
β∈Wα
c
∗αβP
γ∈Wβ
˜
c
βγσ ¯
γLS− σ ¯
βLS− P
δ∈Vα
˜
c
αδ(¯ σ
LSδ− σ ¯
LSα)
! , (a) θ ˜
α= −˜ a
αψ ˜
α+ P
β∈Wα
˜
c
αβ(¯ σ
βLS− σ ¯
LSα), (b)
˜
σ
α= −¯ a
αθ ˜
α− ¯ b
αψ ˜
α+ ¯ σ
LSα. (c)
(3.15)
These three values are approximations to ψ
α, θ
αand σ
αrespectively with the following accuracy:
ψ ˜
α= ψ
α+ O(h), (a) θ ˜
α= θ
α+ O(h
2), (b)
˜
σ
α= σ
α+ O(h
3). (c)
(3.16)
Proof. The consistency relations (3.16) result directly from comparing (3.15) and (3.2) and from the
fact that a
α= O(h), a ˜
α= O(h), ¯ a
α= O(h) and ¯ b
α= O(h
2).
The outcome of the preceding analysis is the following algorithm to calculate ψ ˜
α, θ ˜
αand ˜ σ
α. Suppose given a function u(x) with averages in the cells T
αgiven by ¯ u = [¯ u
1, u ¯
2, . . . , u ¯
N]. The relations (3.15) translate in the following computational procedure:
Algorithm 1. 1. Using (2.39), compute σ ¯
LSαin terms of the averages u ¯
αfor all α.
2. Compute P
β∈Wα
˜
c
αβ(¯ σ
βLS− σ ¯
αLS) with c ˜
αβgiven in (3.4), for all α.
3. Using (3.15)
(a), compute the approximate third order derivative ψ ˜
αfor all α.
4. Using (3.15)
(b), compute the second order derivative θ ˜
αfor all α.
5. Using (3.15)
(c), compute the first order derivative σ ˜
αfor all α.
Our cubic reconstruction has finally the following form:
Proposition 3.3. Let ¯ u = [¯ u
1, u ¯
2, . . . , u ¯
N] be the vector of the averages of a given function u(x) over the cells T
αof the grid. Then the cubic reconstruction polynomial defined by (2.36) is a fourth order accurate reconstruction of u(x) near T
α.
Proof. This is a simple consequence of (2.35).
Remark 3.4. The difficulty mentioned in Remark 2.2 does not exist here, since the system (2.43) (droping the O(h
p) terms) consists of 3 equations with 3 unknowns σ ˜
α, θ ˜
αand ψ ˜
α. Note however that the logic of the method is the same in the one-dimensional and the multidimensional cases.
Remark 3.5. The approximations σ ˜
α, θ ˜
αand ψ ˜
αdepend by construction on data located in cells T
βwith β ∈ {α − 3, α − 2, α − 1, α, α + 1, α + 2, α + 3}. This dependence stencil of the reconstruction is not the accessed stencil at each step of Algorithm 1, which is the compact stencil W
α= {T
α−1, T
α, T
α+1}.
Remark 3.6. The preceding analysis does not apply at boundary cells since the neighborood set V
αfor such cells is not complete. The question of defining a fourth order reconstruction at boundary cells is difficult. It may require one-sided approximations. We do not elaborate further on this point in this paper. In practice, second-order reconstruction is used in boundary cells.
4. A Fourth Order Finite Volume method 4.1. Semi-discrete in space approximation
Let us come back to the conservation law (1.1)
∂
tu + ∂
xf (u) = 0. (4.1)
The semi-discrete scheme in (1.2) is dv
α(t)
dt = − 1
|T
α| h
f
α+1/2(t) − f
α−1/2(t) i
, 1 ≤ α ≤ N, (4.2)
where
• The vector V (t) = [v
1(t), v
2(t), · · · , v
N(t)]
T∈ R
Nhas components v
α(t) defined by:
v
α(t) ' ¯ u
α(t) = 1
|T
α| Z
Tα
u(x, t)dx, 1 ≤ α ≤ N, (4.3)
and where u(x, t) is the solution of (4.1).
• The reconstruction operator V = [v
1, v
2, . . . , v
N] 7→ w[V ]
α(x) is given by (2.36).
• The numerical flux function is denoted by (u
L, u
R) 7→ F (u
L, u
R).
Consider the particular case of the linear convection equation
∂
tu + c∂
xu = 0, c > 0, x ∈ [0, 1], (4.4) with periodic boundary conditions. In this case, the function t 7→ u ¯
α(t) satisfies the equation:
d¯ u
α(t) dt = − c
|T
α|
u(x
α,α+1, t) − u(x
α−1,α, t)
, (4.5)
In this case, the semi-discrete scheme (4.2) is:
dv
αdt = − c
|T
α| w
α[V (t)](x
α,α+1) − w
α−1[V (t)](x
α−1,α)
!
. (4.6)
where the polynomial w
α[V ](x) in (2.36) is calculated by the Algorithm 1 in Section 3. In matrix form, the scheme (4.6) is expressed as the linear dynamical system:
d
dt V (t) = JV (t), J ∈ M
N( R ), (4.7) with V (t) = [v
1(t), v
2(t) · · · , v
N(t)]
T∈ R
N. The coefficients J
αβof J are such that:
N
X
β=1
J
αβV
β= − c
|T
α| w
α[V ](x
α,α+1) − w
α−1[V ](x
α−1,α)
!
. (4.8)
Note that a proof of the fourth order accuracy in space of the scheme (4.6) is by no way easy in the case of a general irregular grid. In the case of a regular grid, we have the following
Proposition 4.1. On a regular grid with stepsize h, the scheme (4.6) is fourth order accurate with respect to the equation
d¯ u
α(t) dt = − c
h
u(x
α,α+1, t) − u(x
α−1,α, t)
. (4.9)
Proof. We refer to the Appendix for a proof. Further comments in the particular case of an irregular
grid are also given.
4.2. Statistical analysis for linear stability
An important question concerning the reconstruction (2.36) is whether it provides stability of the linear system (4.7). This is related to the location of the spectrum of the matrix J in the complex plane.
Due to the irregularity of the grid, this spectrum is not analytically known in general, and therefore we must rely on some numerical evaluation. We refer to [15] for the same stability problem in three dimensions and in the case of a piecewise linear reconstruction,
Consider a periodic grid with cells of length |T
α| = κ
αh. The coefficient κ
αstands for a measure of the irregularity of the grid. The κ
αsatisfy P
α
κ
α= 1. The spectral abscissa of J is defined by:
Λ = max
1≤k≤N