Full text
Trabajo Fin de Máster con título Desarrollo de esquemas de muy alto orden con aplicación a flujos geofísicos presentado para la obtención del título en Máster en modelización matemática, estadística y computación Realizado por Adrián Navas Montilla y dirigido por Dr. Javier Murillo Castarlenas Ponente: Dr. José Luis Gracia Lozano Área de Mecánica de Fluidos Departamento de Ciencia de Materiales y Fluidos Escuela de Ingneiería y Arquitectura. Octubre, 2015. Zaragoza
AGRADECIMIENTOS Quiero dedicar estas líneas para expresar mi agradecimiento a las personas que de un modo u otro me han ayudado y apoyado durante este año. Me gustaría expresar un agradecimiento especial a Javier Murillo por su dedicación y seguimiento de mi trabajo durante ya más de un año, por estar ahí siempre que lo he necesitado y sobre todo por el apoyo y la motivación que siempre me ha ofrecido, así como por haber depositado en mi la confianza suficiente como para llevar a cabo estas labores de investigación. También me gustaría agradecer a José Luis Gracia del Departamento de Matemática Aplicada de la Universidad de Zaragoza el haber aceptado la labor de ponencia de este Trabajo Fin de Máster, así como su interés y disponibilidad y a Pilar García por su confianza en mí y por haber hecho posible la presentacion de parte de este trabajo como una ponencia oral en la Universidad de Sheffield. En Zaragoza, a 25 de Noviembre de 2015
Contents 1 Introduction 1 2 Hyperbolic conservation laws in fluid mechanics 3 2.1 Introduction to conservation laws . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.2 Reynolds Transport Theorem and conservation laws . . . . . . . . . . . . . . . . . . . . . 4 2.3 Conservation laws: general formulation and hyperbolicity . . . . . . . . . . . . . . . . . . 7 2.3.1 Integral form of conservation laws . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.4 Conservation laws in 1D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.4.1 Linear conservation laws in 1D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 Finite volume numerical schemes for hyperbolic conservation laws 13 3.1 Introduction to Finite Volume schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2 Godunov’s method in 1D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.3 The Riemann Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.4 Riemann solvers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4 First order approximate Riemann solvers 19 4.1 First order augmented solver for scalar equations . . . . . . . . . . . . . . . . . . . . . . . 19 4.2 First order augmented solver for systems of Nλwaves . . . . . . . . . . . . . . . . . . . . 20 5 High order Riemann solvers and ADER schemes 23 5.1 Introduction: The Derivative Riemann Problem . . . . . . . . . . . . . . . . . . . . . . . . 23 5.2 High order non-oscillatory reconstruction: traditional WENO and WENO-PW methods . 25 5.2.1 The WENO-PW reconstruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.3 Fundamentals of ADER-type numerical schemes . . . . . . . . . . . . . . . . . . . . . . . 27 5.3.1 Cauchy-Kowalevski Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.3.2 Evolution equation for derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.4 ADER scheme for linear scalar PDEs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5.5 Extension of the ADER scheme to 2 spatial dimensions . . . . . . . . . . . . . . . . . . . 34 5.6 The AR-ADER scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5.6.1 The AR-ADER scheme for scalar equations . . . . . . . . . . . . . . . . . . . . . . 37 5.6.2 The AR-ADER scheme for systems of equations . . . . . . . . . . . . . . . . . . . 40 6 Numerical experiments 43 6.1 Resolution of the linear scalar equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 6.1.1 1D linear advection-reaction equation . . . . . . . . . . . . . . . . . . . . . . . . . 43 6.1.2 1D linear advection of a discontinuous function . . . . . . . . . . . . . . . . . . . . 44 6.1.3 2D linear advection of a Gaussian pulse . . . . . . . . . . . . . . . . . . . . . . . . 44 6.1.4 2D linear advection with space-dependent coefficients: Doswell frontogenesis . . . . 45 6.2 Resolution of Burgers’ equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6.2.1 RP with a right moving shock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.2.2 RP with a right moving rarefaction wave. . . . . . . . . . . . . . . . . . . . . . . . 51 5
6.2.3 Smooth initial conditions with cyclic boundary conditions . . . . . . . . . . . . . 52 6.3 Application to the Shallow Water Equations . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.3.1 Steady flow over a hump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.3.2 Numerical performance in RP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.3.3 Smooth case and convergence rate test . . . . . . . . . . . . . . . . . . . . . . . . . 56 7 Concluding remarks 61 Bibliography 63 List of Figures 66 List of Tables 70 A First order approximate Riemann solvers 73 A.1 First order Augmented solver for scalar equations . . . . . . . . . . . . . . . . . . . . . . . 73 A.2 First order Augmented solvers for systems . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 A.2.1 Approximate solution using ARoe solver . . . . . . . . . . . . . . . . . . . . . . . . 75 B WENO reconstruction procedures 81 B.1 Interpolation and reconstruction in 1D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 B.2 Weighted Essentially Non-Oscillatory (WENO) reconstruction . . . . . . . . . . . . . . . . 86 B.2.1 First part: Computation of the optimal weights . . . . . . . . . . . . . . . . . . . . 87 B.2.2 Second part: Calculation of the non-oscillatory weights . . . . . . . . . . . . . . . 91 B.3 Improved WENO procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 B.3.1 WENO-5M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 B.3.2 WENO-Z . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 B.3.3 The WENO-MZ method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 B.3.4 The WENO-PW method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 C Sub-cell WENO reconstruction of derivatives for the ADER scheme 99 C.1 Procedure for the reconstruction of the derivatives . . . . . . . . . . . . . . . . . . . . . . 99 D 2D extension of the WENO reconstruction method 103 D.1 Interpolation and reconstruction in 2D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 D.2 Dimension-by-dimension 2D reconstruction . . . . . . . . . . . . . . . . . . . . . . . . . . 107 D.3 Dimension-by-dimension 2D WENO reconstruction . . . . . . . . . . . . . . . . . . . . . . 109 E 2D extension of the sub-cell WENO reconstruction of derivatives 115 E.1 Derivation and description of the procedure . . . . . . . . . . . . . . . . . . . . . . . . . . 115 E.2 Numerical results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 F Convergence rate tests: tables 127 F.1 Linear scalar equation in Section 6.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 F.1.1 1D linear advection-reaction equation in Section 6.1.1 . . . . . . . . . . . . . . . . 127 F.1.2 2D linear advection of a Gaussian pulse in Section 6.1.3 . . . . . . . . . . . . . . . 129 F.2 Resolution of Burgers’ equation in Section 6.2 . . . . . . . . . . . . . . . . . . . . . . . . . 131 F.3 Application to the Shallow Water Model in Section 6.3 . . . . . . . . . . . . . . . . . . . . 132
For me, it is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring. C. SAGAN The demon-haunted world, 1995.
6Hyperbolic conservation laws in fluid mechanics momentum, conservation of energy...). When existing, the sources will be considered acting on the control volume, since the system coincides with the control volume at the first moment. It is remarkable to show that the RTT inside the fluid volume is given by Leibniz’s rule for differentiation under the integral sign, that reads d dtPVf(t) = ZZZVf(t) ∂p ∂t dV +ZZSf(t) p(v·ˆ n)dS (2.18) For a better understanding of the RTT and the different frames of reference that can be used when analyzing a fluid flow, let us consider two different cases: in the first case, the observer is assumed to follow the fluid parcel as it moves along the streamlines, whereas in the second case, the observer is considered to be steady. It is worth mentioning that, generally, the quantity pcan be defined as a property of the flow that depends upon the spatial position, x, and time, t. a) The first case corresponds to the so called Lagrangian specification of the flow field and considers that the property only depends on time, since the observer follows the fluid parcel as it moves along the streamlines. As outlined before, we know that p=p(x, t) but since in Lagrangian mechanics the position of a particle can be calculated as x=x(x0, t), the quantity can be written just as a function of tand the initial point x0=x(0) as p=pl(x0, t) (2.19) where the subscript lstands for Lagrangian. In this case, the spatial coordinate at time t,x, is considered a dependent variable that can be expressed in terms of x0and tas x(t) = x0+Zt 0 v(x(τ), τ)dτ (2.20) b) In the second case, the observer is considered to be still, with v= 0. Unlike in the previous case, here magnitude pis parametrized as p=pe(x, t) and can be regarded as a scalar or vector field. This approach is called Eulerian specification of the flow field. The relation between Lagrangian and Eulerian specifications of the flow field is given by x=x(x0, t)←→ x0=x0(x, t) (2.21) and analogously a relationship between derivatives can be found by applying the chain rule when differentiating pe(x, t) with respect to time, yielding ∂ ∂tpl(x0, t)≡D Dtpe(x, t) |{z } Lagrangian der. =∂ ∂tpe(x, t) |{z } local time der. +∂x1 ∂t ∂ ∂x1 pe(x, t) + ... +∂xd ∂t ∂ ∂xd p(x, t) |{z } spatial advection = =∂ ∂tpe(x, t) + v· ∇pe(x, t) (2.22) The previous expression is called material or susbtantial derivative of pand leads to the definition of operator Definition 1. (Material derivative operator). Operator D Dt =∂ ∂t +v· ∇ ,(2.23) with ∇the Del operator with respect to the spatial coordinates and vthe velocity field, allows to calculate the total variation of a certain quantity as its variation in time plus its variation produced by its advection under the velocity field.
2.3 Conservation laws: general formulation and hyperbolicity 7 The Eulerian specification of the flow field is the most common approach in fluid mechanics. When addressing the resolution of a problem in fluid mechanics, two options are possible. The first choice would be to use the integral formulation in order to find approximate solutions at certain points or interfaces of the problem. The second choice, which this work is devoted to, would be to obtain the equivalent differential formulation from (2.17) or (2.18) and solve the PDEs inside the spatial domain by means of computational methods. The general procedure for the derivation of the differential form departing from the RTT formulation is next presented. The Gauss-Strogadsky theorem can be applied to Equation (2.18) and considering the volume of infinitesimal size with puniform inside it, the differential form of (2.18) is obtained dp dt =∂ ∂tp+∇(pv) (2.24) Using (2.23), it can be rewritten in terms of the material derivative of pas dp dt =D Dtp+ (p· ∇)v(2.25) For instance, if considering the example of mass conservation equation in (2.6), it is noticeable that it can be rewritten in the form of (2.25), yielding Dρ Dt +ρ∇v= 0 (2.26) 2.3 Conservation laws: general formulation and hyperbolicity When applying the RTT to a specific problem, the derivation of its equivalent differential form is straightforward, as it was done in (2.5)-(2.6) and more generally in (2.24), obtaining a set of PDEs that could be analytically or numerically solved. Conservation laws described in the previous section can be expressed in their divergence form as ∂U ∂t +∇ · E(U) = S(2.27) where U=U(x, t)∈Rnis the vector of conserved variables with x∈Ω⊆Rd,∇is the Del operator with respect to the spatial coordinates, E(U) : Rn−→ Rn×dis the matrix of fluxes, a nonlinear mapping of the conserved variables given by the physical flux and S∈Rnis the vector of sources, yet to be defined. Normally, this vector of sources is of the form S=S(U,x, t). System in (2.27) can also be expressed as ∂U ∂t + d X j=1 ∂Ej(U) ∂xj =S(2.28) where Ej(U) represents the flux in the i-th spatial direction. It is possible to apply the chain rule to derivatives in (2.28) yielding ∂U ∂t + d X j=1 Jj(U)∂U ∂xj =S(2.29) with Jj(U) the Jacobian matrix of Ej(U), defined as Jj(U) = ∂Ej(U) ∂U(2.30)
8Hyperbolic conservation laws in fluid mechanics Definition 2. (Hyperbolic system). The system in (2.27) is said to be hyperbolic if the matrix J(k)∈ Rn×ndefined as J(k) = d X j=1 kjJj(U),(2.31) is diagonalizable with real eigenvalues for all k∈Rdand for all U∈Cwith C⊆Rnthe subset of physically relevant values of U. If the neigenvalues are distinct, then the system is said to be strictly hyperbolic [30]. Definition 3. (Eliptic and parabolic systems). The system in (2.27) is said to be eliptic if none of the eigenvectors of J(k)∈Rn×nis real. It is said to be parabolic if all eigenvectors are real and identical. 2.3.1 Integral form of conservation laws For the derivation of the integral form of (2.27), it is sufficient to integrate the equation in the domain Q= Ω ×[0,∆t], with Ω ⊆Rdand x∈Ω, as Z∆t 0ZΩ∂U ∂t +∇ · E(U)dΩdt =Z∆t 0ZΩ SdΩdt (2.32) and applying Gauss-Ostrogradsky theorem, the following expression results ZΩ U(x,∆t)dΩ = ZΩ U(x,0)dΩ−Z∆t 0Z∂Ω E(U(x, t))ˆndΓdt +Z∆t 0ZΩ S(U(x, t),x, t)dΩdt (2.33) that represents that the integral of the conserved quantities at t= ∆tis equal to the integral of the conserved quantities at t= 0 minus the integral in time of the total leaving fluxes across the surface ∂Ω, plus the contribution of the source terms. This result is of great importance when finding weak solutions for the equations and constructing finite volume numerical schemes and it will be explained in the following chapter. 2.4 Conservation laws in 1D This work focuses on nonlinear systems of conservation laws in 1D that can be expressed as ∂U ∂t +∂F(U) ∂x =S.(2.34) where U=U(x, t)∈Rnis the vector of conserved variables with x∈Ω⊆R,F(U) : Rn−→ Rnis the vector of fluxes and S∈Rnthe vector of sources. It is possible to define a Jacobian matrix for the flux F(U) as J(U) = ∂F(U) ∂U(2.35) that provides sufficient information for the hyperbolicity of (2.34) according to Definition 2. Making use of the chain rule, system in (2.34) is rewritten as ∂U ∂t +J(U)∂U ∂x =S.(2.36) In the case when F=F(U, x), the previous approach must be rewritten as ∂U ∂t +J(U)∂U ∂x +δF(U, x) δx =S.(2.37)
2.4 Conservation laws in 1D 9 Assuming that the system is hyperbolic with Nλ=nreal eigenvalues λ1(U)≤λ2(U)≤... ≤λNλ(U) (2.38) and Nλlinearly independent eigenvectors e1(U),e2(U), ... , eNλ(U) (2.39) it is possible define two matrices P(U) = (e1(U),e2(U), ..., eNλ(U)) and P−1(U) with the property that they diagonalize the Jacobian Jas J(U) = P(U)Λ(U)P−1(U) (2.40) with Λ(U) = diag λ1(U), ..., λNλ(U)a diagonal matrix composed by the eigenvalues of the Jacobian. Each eigenvalue λm(U), or eigenvector em(U) equivalently, for m= 1, ..., Nλdefines a characteristic field associated to it. The properties of the characteristic fields will provide useful information about the solution. Two types of characteristic fields are identified and defined next, according to [29]. Definition 4. (Linearly degenerate field). A λm-characteristic field is said to be linearly degenerate when ∇uλm(U)·em(U) = 0 ,∀U∈C , (2.41) with C⊆Rnand where ∇ustands for the gradient with respect to the components of vector U. Definition 5. (Genuinely nonlinear field). A λm-characteristic field is said to be genuinely nonlinear when ∇uλm(U)·em(U)6= 0 ,∀U∈C , (2.42) with C⊆Rnand where ∇ustands for the gradient with respect to the components of vector U. 2.4.1 Linear conservation laws in 1D When the Jacobian matrix in (2.35) does not depend either upon Uor x, it will be constant and the system in (2.34) is said to be linear. In this case, the flux function can be expressed as F(U) = JU (2.43) leading to the following linear system of conservation laws ∂U ∂t +J∂U ∂x =S(2.44) where Jis a matrix of constant coefficients. Considering that the linear problem presented in (2.44) is hyperbolic, the diagonalization of the Jacobian matrix can be expressed as J=PΛP−1(2.45) where P= (e1,e2, ..., eNλ) and Λ= diag(λ1, λ2, ..., λNλ) are constant matrices composed of the eigenvectors of J e1,e2, ... , eNλ(2.46) and the eigenvalues of J λ1≤λ2≤... ≤λNλ(2.47)
10 Hyperbolic conservation laws in fluid mechanics respectively. In the case when the system in (2.44) is strictly hyperbolic, eigenvalues in (2.47) are all distinct. Now, it is possible to define a new set of variables, denoted by W= (w1, w2, ..., wNλ) and called characteristic variables, by means of the transformation W=P−1U(2.48) that represent the projection of the conserved variables onto the Jacobian’s eigenvectors basis. Considering that Pis constant, the following relations are stated ∂W ∂t =P−1∂U ∂t ∂W ∂x =P−1∂U ∂x (2.49) Equivalently, a new set of variables, B= (β1, β2, ..., βNλ), is defined for the source term as B=P−1S(2.50) ensuring the same relations presented for the derivatives of Wand Uin (2.49). From (2.45) and (2.49), it is possible to rewrite the initial system in (2.44) as a decoupled system of PDEs as ∂W ∂t +Λ∂W ∂x =B.(2.51) that corresponds to the expression of the original system of PDEs on the Jacobian’s eigenvectors basis. System in (2.51) is composed of a set of independent linear scalar advection equations with source term, called characteristic equations and given by ∂wm ∂t +λm∂wm ∂x =βmfor m= 1, ..., Nλ(2.52) where λmis the eigenvalue associated to the m-th wave and represents its propagation velocity, called characteristic speed. Along the characteristic lines, depicted in Figure 2.2, the characteristic variables remain constant when the contribution of the source term is nil since D Dt(wm) = 0 along x=x0+λmt , for m= 1, ..., Nλ(2.53) where D Dt represents the material derivative operator, defined in (2.23). The solution for the original system in (2.44), w1(x, t), w2(x, t), ..., wm(x, t), can be obtained as a function of the solutions provided by the decoupled equations in (2.52). Regarding the previous results, the wave nature of the solution is noticed: the characteristic information will travel across the domain at different wave speeds given by λ1,λ2, ..., λmand the solution for the primitive variables will be obtained as a linear combination of the Nλwaves. The initial condition for the decoupled system in Equation (2.52) is given by the projection of the initial condition ◦ U=U(x, 0) onto the Jacobian’s eigenvectors basis, as ◦ W=P−1◦ U.(2.54) At a given point (x, t), it is possible to express the vector of primitive variables U(x, t) as a linear combination of the Jacobian’s eigenvectors using the relation U=PW, as U(x, t) = Nλ X m=1 wm(x, t)em,(2.55) where the scalar values wm(x, t) are the characteristic variables at the sought point and represent the strength of each wave.
2.4 Conservation laws in 1D 11 t x (x0, t0) λ1λ2λNλ−1λNλ Figure 2.2: Characteristic lines passing through the point (x0, t0). When considering that S= 0, characteristic equations in (2.52) are reduced to linear scalar transport equations. Therefore, the initial values for the characteristic variables ◦ wm(x, 0) are simply advected at their corresponding wave speeds wm(x, t) = ◦ wm(x−λmt) for m= 1, ..., Nλ,(2.56) with no change in shape. Then, the solution can be expressed as the superposition of the Nλwaves that have been advected independently, as U(x, t) = Nλ X m=1 ◦ wm(x−λmt)em.(2.57) It is worth saying that numerical methods for the resolution of hyperbolic systems developed in this work are based on linear approximate solutions, being the previous results the foundations for such algorithms.
13 Chapter 3 Finite volume numerical schemes for hyperbolic conservation laws 3.1 Introduction to Finite Volume schemes When considering realistic problems modelled by hyperbolic conservation laws, the systems of equations are generally nonlinear. Moreover, initial conditions and source terms are normally complex enough to make impossible the utilization of analytical methods for the resolution of the system of equations. The most common approach to compute the solution is the discretization of the computational domain in volume cells where equations can be integrated leading to an algebraic system of equations instead of having the original PDEs. Inside each cell, the conserved quantities are integrated as well, leading to a finite set of cell averaged values that provides the approximate solution of the original system of PDEs inside the computational domain. This approach is the so-called finite volume method. Let us consider the system of conservation laws in Equation (2.27) for dspatial dimensions to compose the following Initial Boundary Value Problem (IVBP) PDEs: ∂U ∂t +∇ · E(U) = S IC: U(x,0) = ◦ U(x)∀x∈Ω BC: U(x, t) = U∂Ω(x, t)∀x∈∂Ω (3.1) defined inside the domain Ω ×[0, T ] with Ω ⊆Rdand T∈R+. As outlined before, the spatial domain is discretized in Nvolume cells, defined as Ωi⊂Ω, such that Ω = SN i=1 Ωi. The volume contained in each of these cells is computed as ϑi=ZΩi dΩii= 1, ..., N (3.2) Inside each cell at time tn=n∆t, the conserved quantities are defined as cell averages as Un i=1 ϑiZΩi U(x, tn)dΩii= 1, ..., N . (3.3) provided the initial condition U(x,0) = ◦ U(x). Conservation law in (3.1) is integrated inside each cell Ωifollowing (2.33) and using definition in (3.3), leading to Un+1 i=Un i−1 ϑi Z∆t 0Z∂Ωi E(U(x, t))ˆndΓidt +Z∆t 0ZΩi S(U(x, t),x, t)dΩidt!.(3.4)
14 Finite volume numerical schemes for hyperbolic conservation laws From (3.4), it is noticed that the cell average at tn+1, denoted by Un+1 i, can be computed explicitly from the cell average at tnplus a suitable approximation of the integral of the fluxes across ∂Ωiand the contribution of the source term. 3.2 Godunov’s method in 1D When considering the particular case of one spatial dimension, the IVBP in (2.34) becomes PDEs: ∂U ∂t +∂F(U) ∂x =S IC: U(x, 0) = ◦ U(x) BC: U(a, t) = Ua(t)U(b, t) = Ub(t) (3.5) defined inside the domain [a, b]×[0, T], with ◦ U(x) the initial condition and Ua(t) and Ub(t) the left and right boundary conditions. In this case, the computational grid is composed by Ncells a=x1 2< x3 2<... < xN−1 2< xN+1 2=b(3.6) as shown in Figure 3.1, with cells defined as Ωi=hxi−1 2, xi+1 2ii= 1, ..., N (3.7) x1 2x3 2x5 2xi−1 2xi+1 2xN−3 2xN−1 2xN+1 2 . . . . . . Ω1Ω2ΩiΩN−1ΩN ab Figure 3.1: Mesh discretization Cell sizes are derived from (3.2) and defined as ∆xi=Zxi+1 2 xi−1 2 dx =xi+1 2−xi−1 2i= 1, ..., N (3.8) Inside each cell, the conserved quantities are defined as cell averages as Un i=1 ∆xiZxi+1 2 xi−1 2 U(x, tn)dx i = 1, ..., N . (3.9) at time tnand the integration of (2.34) yields Un+1 i=Un i−1 ∆xi Ztn+1 tn F(U(xi+1 2, t))dt −Ztn+1 tn F(U(xi−1 2, t))dt!+Ztn+1 tn 1 ∆xiZxi+1 2 xi−1 2 S(U(x, t), x, t)dx dt (3.10) with tn+1 =tn+∆t. If considering a explicit suitable approximation of the integral in time of the physical fluxes at cell boundaries, it is possible to define the numerical fluxes F− i+1 2 ≈1 ∆tZtn+1 tn F(U(xi+1 2, t))dt F+ i−1 2 ≈1 ∆tZtn+1 tn F(U(xi−1 2, t))dt (3.11)
3.3 The Riemann Problem 15 and express them in terms of the two contiguous averages at t=tnas F− i+1 2 =F− i+1 2 (Un i,Un i+1) and F+ i−1 2 =F+ i−1 2 (Un i−1,Un i). Equivalently, the source term ¯ Si≈1 ∆tZtn+1 tnZxi+1 2 xi−1 2 S(U(x, t), x, t)dx dt (3.12) can be expressed as ¯ Si=¯ Si(Un i, xi, tn), making possible to rewrite (3.10) as the following explicit updating formula Un+1 i=Un i−∆t ∆xiF− i+1 2 −F+ i−1 2+∆t ∆xi ¯ Si(3.13) that represents the Godunov’s numerical scheme. Remark that depending on the nature of the source term, a centered integration of the source term as used in (3.13) may not be adequate to preserve an exact balance between fluxes and sources and to achieve the equilibrium. Otherwise, it may be necessary to account for the value of its jump across the interface by means of including it in the approximate fluxes obtained in the resolution of the DRP [1, 25]. This is the case of the so-called geometric source terms, which are of the form S(U, x, t) = Ss(U, x, t)∂ ∂xSg(U, x, t)(3.14) with Ss(U, x, t) and Sg(U, x, t) two different functions with dependence upon U,xand t, where Sgis the geometric part and may present discontinuities along the spatial domain. In this case, the integral of the source at the interface will be expressed as ¯ Si+1/2=¯ Si+1/2(Un i,Un i+1, xi, xi+1, tn) and included in the numerical fluxes, leading to a modified updating formula Un+1 i=Un i−∆t ∆xiF− i+1 2 −F+ i−1 2(3.15) where F− i+1 2 =F− i+1 2 (Un i,Un i+1,¯ Si+1/2) and F+ i−1 2 =F+ i−1 2 (Un i−1,Un i,¯ Si−1/2). x xi xi−1xi+1 xi−1 2xi+1 2 Un i−1 Un i Un i+1 RP(Un i,Un i+1) Figure 3.2: Neighbouring region of cell Ωiand representation of piecewise defined data, showing RP at xi+1 2that will be referred to as RP(Un i,Un i+1). 3.3 The Riemann Problem At each interface, numerical fluxes in (3.11) can be computed by locally solving a initial value problem (IVP) composed of the system of PDEs and a initial condition given by the piecewise constant data at both sides of the interface, as depicted in Figure 3.2. For instance, the problem to be solved at cell interface xi+1 2is defined as
23 Chapter 5 High order Riemann solvers and ADER schemes In this chapter, the theoretical framework for the construction of high order Goudunov-type numerical schemes and its corresponding approximate Riemann solvers is provided. The methodology followed here is to construct an ADER scheme, based on a high order extension of Godunov’s method by means of a Taylor power series expansion in time. A generalization of the Riemann Problem for the ADER scheme is required. Such problem is called Derivative Riemann Problem (DRP) and will be presented first. When solving the DRP, spatial reconstruction of the conserved variables is required and therefore in the second section a non-oscillatory reconstruction procedure will be presented. The third section thoroughly outlines the construction of ADER schemes and the two different approaches to the problem. Then, in fourth and fifth sections an ADER-type numerical scheme, called TT-ADER scheme, is constructed for the resolution of the linear scalar transport equation, for 1D and 2D. Finally, in the sixth section a novel ADER scheme, named AR-ADER, and its corresponding approximate Riemann solver are presented. 5.1 Introduction: The Derivative Riemann Problem In Section 3.3 the Riemann Problem was described as an IVP whose initial condition is given by two piecewise constant states. This classic RP may be regarded as a first order approach to a general Cauchy problem with a discontinuity at x= 0. A higher order approach to the Cauchy problem is given by the DRP, that is a IVP defined by a system of NλEDPs and a initial condition consisting of piecewise polynomial data (with Knontrivial derivatives) separated by a single discontinuity at x= 0 as ∂U ∂t +∂F(U) ∂x =S U(x, 0) = Ui(x)x < 0 Ui+1(x)x > 0 (5.1) where the initial states Ui(x) and Ui+1(x) are smooth functions of distance xthat can be defined using suitable reconstruction procedures at the initial time. Recall that xstands for the local spatial coordinate, centered at xi+1/2. DRP in (5.1) is depicted in Figure 5.1 for the case when Nλ= 2. For DRP in (5.1), it is possible to define the following values for vector Uat the interface U(0) iR= lim x→0−Ui(x)U(0) (i+1)L= lim x→0+Ui+1(x) (5.2) and for its derivatives U(k) iR= lim x→0− ∂k ∂xkUi(x)U(k) (i+1)L= lim x→0+ ∂k ∂xkUi+1(x) (5.3)
24 High order Riemann solvers and ADER schemes t x ∆t ¯ Si+1/2 Ui(x) Ui+1(x) U(x, t) x=0 x λ2 λ1 Figure 5.1: Graphical representation of the DRPKshowing the piecewise smooth states (upper figure) and wave velocities that depend upon time (lower figure). at the initial time, with k= 1, ..., K. Analogously, it is possible to define the following values for the physical fluxes F(U) at the interface F(0) iR= lim x→0−F(Ui(x)) F(0) (i+1)L= lim x→0+F(Ui+1(x)) (5.4) and for their spatial derivatives F(k) iR= lim x→0− ∂k ∂xkF(Ui(x)) F(k) (i+1)L= lim x→0+ ∂k ∂xkF(Ui+1(x)) (5.5) at the initial time, with k= 1, ..., K. The spatial reconstruction of the source term S(U, x, t) will be denoted in the same way S(0) iR= lim x→0−S(Ui(x), x, 0) S(0) (i+1)L= lim x→0+S(Ui+1(x), x, 0) (5.6) and also its derivatives S(k) iR= lim x→0− ∂k ∂xkS(Ui(x), x, 0) S(k) (i+1)L= lim x→0+ ∂k ∂xkS(Ui+1(x), x, 0) (5.7) at the initial time, with k= 1, ..., K. The value of uat the center of each cell will be denoted as U0 i=Ui(xi). Subscripts Land Rare defined with reference to the cell center, as depicted in Figure 5.2. We will denote by DRPKthe Cauchy problem presented in (5.1), with Kcontinuous non-trivial spatial derivatives. High-order numerical methods of the ADER type require the solution at the interface position xi+1/2as a function of time t, allowing to compute the numerical fluxes and construct a numerical scheme of K+1-th order of accuracy in both space and time. Following [10, 11, 12] the solution will contain a leading term, provided by the DRP0, equivalent to the classical piecewise constant data Riemann problem, associated with the first order Godunov scheme [13] and higher-order terms, associated with the kdifferent RPs for the derivatives. It is worth saying that the Derivative Riemann Problem DRPKcan be decomposed in K+ 1 RPs where conventional Riemann Solvers are of application.
5.2 High order non-oscillatory reconstruction: traditional WENO and WENO-PW methods 25 xi−1xixi+1 (i−1)RiLiR(i+ 1)L U0 (i−1)RU0 iL U0 iRU0 (i+1)L U0 i Figure 5.2: Mesh discretization 5.2 High order non-oscillatory reconstruction: traditional WENO and WENO-PW methods The necessity of reconstruction procedures of very high order [44, 11, 12] for the conserved variables, fluxes and source terms was evidenced in the previous section. Discontinuities may introduce spurious oscillations in the numerical solution [45] and the choice of a proper reconstruction technique is decisive to avoid them. In this work, we decide to use the so-called weighted essentially non-oscillatory (WENO) reconstruction method, originally introduced in [18]. The WENO method uses a dynamic set of stencils where lower order polynomials are first constructed. Then, these lower order polynomials are combined either to create a higher order polynomial in smooth regions (optimal reconstruction) or an off-center reconstruction able to capture discontinuities in non-smooth regions. The definition of a smoothness indicator allows to distinguish between those two cases. In this section, the traditional WENO reconstruction method, also referred to as WENO-JS, is briefly explained first, presenting then a novel modification of this method that addresses some convergence issues. More details concerning the WENO reconstruction procedure, sub-cell WENO derivative reconstruction procedure and their extension to 2D can be found in Appendices B, C, D and E. The departing data for the WENO reconstruction procedure are the cell average values of a function u(x) defined in a computational grid composed of Ncells, with cells and cell sizes defined by Ωi=hxi−1 2, xi+1 2i∆xi=xi+1 2−xi−1 2≡constant (5.8) and cell averages of u(x) are defined in the following way ¯ui=1 ∆xiZxi+1 2 xi−1 2 u(ξ)dξ,i= 1,2, ..., N (5.9) To construct a WENO reconstruction of degree (2k−1) on the cell Ωi= [xi−1 2, xi+1 2] for the function u(x), kdifferent stencils linked to kcells are needed. These stencils are given by Sr(i) = {Ωi−r, ..., Ωi+k−r−1}(r= 0, ..., k −1), where rrepresents the number of cells on the left hand side of Ωi. These stencils are used to generate a bigger stencil T(i) = ∪k−1 r=0 Sr(i) = {Ωi−k+1, ..., Ωi+k−1}. The general procedure of the WENO reconstruction is summarized below: a) Definition of the optimal weights Following [20], there is a unique polynomial pr(x) defined in each stencil Sr, which is a k-th order approximation of the function u(x) on the stencil Sr(i) if this function is smooth inside it. The expression of pr(x) is expressed as a linear combination of the cell averages in the stencil. At xi+1 2, the approximation of u(xi+1 2) is given by
26 High order Riemann solvers and ADER schemes u(r) i+1 2 =pr(xi+1 2) = k−1 X j=0 c(k) rj ¯ui−r+j=uxi+1 2+O∆xk(5.10) where c(k) rj are coefficients derived from the Lagrange interpolation formula. The same procedure can be used to obtain a polynomial q(x), which is a (2k−1)-th order approximation of the function u(x) on the big stencil T(i). At xi+1 2, this approximation of u(xi+1 2) is given by ui+1 2=q(xi+1 2) = 2k−1 X j=1 c(2k−1) k−1,j ¯ui−k+j=uxi+1 2+O∆x2k−1(5.11) Note that in (5.11), the value of ris fixed, with r=k−1, as the big stencil T(i) is symmetric. The (2k−1)-th order approximation in (5.11) can also be expressed as a linear convex combination of the k-th order reconstructions provided by (5.10) as ui+1 2= k−1 X r=0 γru(r) i+1 2 =uxi+1 2+O∆x2k−1(5.12) where γrare the optimal weights that can be easily computed relating c(2k−1) k−1,j and c(k) rj [20]. In the linear combination in (5.12) the optimal weights are calculated algebraically. b) Definition of the smoothness indicator: smoothness indicator for WENO-JS The so called smoothness indicator, βr, which measure the smoothness of the initial data, is able to detect the presence of discontinuities. In the case of the traditional WENO reconstruction, called WENO-JS and proposed by Jiang and Shu [20], this indicator reads βr= k−1 X l=1 Zxi−1 2 xi+1 2 ∆x2l−1∂lpr(x) ∂xl2 dx,r= 0, ..., k −1 (5.13) and represents the variations in uinside the small stencils. c) Definition of the WENO-JS weights Departing from the optimal weights, it is possible to define the WENO-JS weights, denoted by ωJS r, that satisfy k−1 X r=0 ωJS r= 1, ωJS r≥0 (5.14) They generate a convex combination of the low order reconstructions to compute the final approximation. First the αJS rcoefficients are formulated and then normalized leading to the WENO ωJS r weights αJS r=γr (βr+ǫ)2ωJS r=αr Pk−1 l=0 αl ,r= 0, ..., k −1 (5.15) with ǫa properly defined small parameter. The final WENO approximation of u(x) at xi+1 2is given by ui+1 2= k−1 X r=0 ωJS ru(r) i+1 2 =uxi+1 2+O∆x2k−1(5.16)
5.3 Fundamentals of ADER-type numerical schemes 27 5.2.1 The WENO-PW reconstruction A simple and robust improvement of the classical WENO-JS reconstruction method is presented in this work and applied to ADER type numerical schemes. The proposed modification is based on a simple and effective correction of the power exponent used to define the WENO-JS non-oscillatory weights and introduces a global smoothness indicator that is used either to strengthen the essentially non-oscillatory property when discontinuities are present or to compute a better approximation to the optimal weights in smooth regions, specially at critical points (points where derivatives of the reconstructed variable vanish). This global smoothness indicator is constructed using the original smoothness indicators defined in the WENO-JS reconstruction method. This method will be referred to as WENO-PW, where PW stands for the power exponent in the computation of the weights. The WENO-PW method ensures the required accuracy for the optimal weights and numerical results evidence that they are accurately recovered even in presence of critical points. This novel approach presents a robust and simple improvement that does not require an extra computational effort as other methods do. The global smoothness indicator presented here and denoted by ξ, is defined as follows ξ=χb, χ =|β0−βk−1| β0+βk−1+ǫ(5.17) where ǫis a small constant to avoid division by zero, selected in this work as 10−m, with mthe number of digits of precision of the machine. Parameter bis a positive constant that enhances the ratio inside the parenthesis. The global smoothness indicator is defined to ensure that the ratio inside the parenthesis is always less than unity and greater or equal zero. The αrcoefficients in (5.15) are reformulated using parameter ξas a power exponent, and then normalized leading to the WENO-PW weights, ωP W r αP W r=γr (βr+ǫ)pξ ωP W r=αP W r Pk−1 l=0 αP W l ,r= 0, ..., k −1 (5.18) where parameter pis a positive integer and ǫis set as in (5.17). Therefore suitable values of band pare required. Depending on the relative values of the different βrsmoothness indicators, one can observe that •when the function is smooth in T(i), then β0≈βk−1making ξtend to 0+and αP W rcoefficients become closer to the optimal weights. •when the function has a discontinuity in T(i), then β0≪βk−1or β0≫βk−1making ξtend to 1−, and the WENO-JS strategy is recovered avoiding oscillatory reconstructions. •when the function is symmetric in T(i) with respect to xi, then β0≈βk−1making ξtend to 0+, recovering the optimal weights. Other existing improved WENO procedures, such as the WENO-M, WENO-Z and WENO-MZ are detailed in Appendix B.3. 5.3 Fundamentals of ADER-type numerical schemes Following the Godunov method, the expression for the updating scheme is constructed as Un+1 i=Un i−∆t ∆x[F− i+1/2−F+ i−1/2] + ∆t ∆x[¯ SiR,iL] (5.19) with the numerical fluxes F− i+1/2and F+ i−1/2defined as time-integral averages of the fluxes at the interfaces F− i+1/2=1 ∆tZ∆t 0 F− iR(τ)dτ F+ i−1/2=1 ∆tZ∆t 0 F+ iL(τ)dτ (5.20)
28 High order Riemann solvers and ADER schemes and ¯ SiR,iLa suitable approximation of the spatial integral of the source term inside the cell. It is worth mentioning that when constructing high order ADER schemes, the integral of the source term inside the cell is always required in the updating formula since in the resolution of the DRP, geometric source terms are accounted for by integrating them in a region of differential width across the boundaries. Two different approaches can be used to compute left and right intercell numerical fluxes F− iRand F+ iLin (5.20). The first approach is called state-expansion ADER and proposes to obtain the solution for conserved variables at the interface by solving the DRPKwith a suitable solver and to evaluate the physical fluxes using this solution. The second option is to use the flux-expansion ADER approach, where fluxes F− iRand F+ iLare constructed as a truncated power series expansion in time and the components of the expansion are functions of the approximate fluxes defined for each RP associated to the DRPK. a) State-expansion ADER approach. The numerical fluxes in (5.20) are evaluated using the time-dependent solutions of the DRPK,U− iR(τ) and U+ (i+1)L(τ), as F− i+1/2=1 ∆tZ∆t 0 F(U− iR(τ))dτ F+ i+1/2=1 ∆tZ∆t 0 F(U+ (i+1)L(τ))dτ (5.21) b) Flux-expansion ADER approach. When adopting the flux-expansion ADER approach, we seek a truncated Taylor time expansion of the fluxes at the interfaces as F− iR(τ) = F−,(0) iR+ K X k=1 F−,(k) iR τk k!F+ (i+1)L(τ) = F+,(0) (i+1)L+ K X k=1 F+,(k) (i+1)L τk k!(5.22) that, after integration, leads to the following expression of the numerical fluxes F− i+1/2=F−,0 iR+ K X k=1 F−,(k) iR ∆tk (k+ 1)! F+ i+1/2=F+,0 (i+1)L+ K X k=1 F+,(k) (i+1)L ∆tk (k+ 1)! (5.23) where F−,0 iRand F+,0 (i+1)Lrepresent the leading terms, obtained as a result of the resolution of the DRP0and F−,(k) iR=∂k ∂tkF− iR(τ)t=0 F+,(k) (i+1)L=∂k ∂tkF+ (i+1)L(τ)t=0 (5.24) represent the high order terms of the numerical fluxes. Fluxes in (5.24) will be computed by solving the KRPs corresponding to the evolution equations of the Kfirst spatial or temporal derivatives of U. As done for the fluxes, the source term inside cell Ωican also be approximated by a truncated Taylor power series expansion in time Si(x, τ) = Si(x, 0) + K X k=1 ∂kSi ∂tkx,t=0 τk k!(5.25) leading to the following expression for its integral inside the cell ¯ SiR,iL=¯ S(0) iR,iL+ K X k=1 ¯ S(k) iR,iL(5.26) with ¯ S(0) iR,iL=1 ∆tZ∆t 0ZxiR xiL Si(x, 0) dx dt ¯ S(k) iR,iL=1 ∆tZ∆t 0ZxiR xiL∂kSi ∂tkx,t=0 tk k!dx dt (5.27)
5.3 Fundamentals of ADER-type numerical schemes 29 that will be integrated by means of approximated quadrature rules. As outlined in previous chapters, depending on the nature of the source term, it may be necessary to account for the value of its jump across the interface by means of including it in the approximate fluxes obtained in the resolution of the DRP [1, 25]. That is the case of geometric source terms of the type of (3.14). In this case, the integral of the source and its derivatives at the interface will be denoted by ¯ S(0) i+1/2=1 ∆tZ∆t 0Zx+ i+1/2 x− i+1/2 S(x, 0) dx dt ¯ S(k) i+1/2=1 ∆tZ∆t 0Zx+ i+1/2 x− i+1/2∂kSi ∂tkx,t=0 dx dt (5.28) that will be integrated using suitable approximations. 5.3.1 Cauchy-Kowalevski Theorem When dealing with EDPs of the type of (5.1), relations between temporal and spatial derivatives of U are provided by the Cauchy-Kowalevski Theorem. Here, it is used to derive analytic expressions for time derivatives of Fand Udeparting from the information provided by the spatial reconstruction method. It allows to express time derivatives of the physical fluxes at t= 0 as functions R(k)of spatial derivatives of Uand S ∂(k) tF=R(k)(∂(k) xU, ∂(k−1) xU, ..., U, ∂(k) xS, ∂(k−1) xS, ..., S) (5.29) Spatial derivatives defined at the cell interface i+ 1/2 in (5.3) are calculated using the sub-cell WENO reconstruction method [21]. They allow to compute the values of R(k)at each side of the discontinuity in the DRPK R(k) iR= limx→0−R(k)≈R(k)(U(k),U(k−1), ..., U0,S(k),S(k−1), ..., S0)iR R(k) (i+1)L= limx→0+R(k)≈R(k)(U(k),U(k−1), ..., U0,S(k),S(k−1), ..., S0)(i+1)L (5.30) Analogously, it is possible to construct temporal derivatives of Uat t= 0 as functions D(k)of spatial derivatives of Uand S ∂(k) tU=D(k)(∂(k) xU, ∂(k−1) xU, ..., U, ∂(k) xS, ∂(k−1) xS, ..., S) (5.31) allowing to compute the values of D(k)at each side of the discontinuity in the DRPK D(k) iR= limx→0−D(k)≈D(k)(U(k),U(k−1), ..., U0,S(k),S(k−1), ..., S0)iR D(k) (i+1)L= limx→0+D(k)≈D(k)(U(k),U(k−1), ..., U0,S(k),S(k−1), ..., S0)(i+1)L (5.32) Temporal derivatives of the source term, S, at t= 0 can also be obtained using the Cauchy-Kowalevski procedure as functions Q(k)of spatial derivatives of Uand S ∂(k) tS=Q(k)(∂(k) xU, ∂(k−1) xU, ..., U, ∂(k) xS, ∂(k−1) xS, ..., S) (5.33) 5.3.2 Evolution equation for derivatives DRP in (5.1) provides the evolution equation for variable U. Evolution equations for spatial or temporal derivatives of U, denoted by ∂(k) xUand ∂(k) tUrespectively, are straightforward obtained when substituting the conserved variable by its spatial or temporal derivative as
30 High order Riemann solvers and ADER schemes ∂ ∂t ∂(k) xU+∂ ∂x ∂(k) xF(U)=∂(k) xSk= 1, ..., K (5.34) and ∂ ∂t ∂(k) tU+∂ ∂x ∂(k) tF(U)=∂(k) tSk= 1, ..., K (5.35) respectively. Algebraic manipulations of (5.34) yields ∂ ∂t ∂(k) xU+J(U)∂ ∂x ∂(k) xU=Υ(k)(5.36) where Υ(k)=Υ(k)(∂(k) xU, ∂(k−1) xU, ..., U, ∂(k) xS, ∂(k−1) xS, ..., S) is a function of spatial derivatives of the fluxes and sources, that can be expressed as Υ(k)=−∂k ∂xkJ(U)∂U ∂x +J(U)∂ ∂x ∂kU ∂xk+∂kS ∂xk(5.37) Analogously, evolution equations for time derivatives of Uare expressed as ∂ ∂t ∂(k) tU+J(U)∂ ∂x ∂(k) tU=Ψ(k)(5.38) where Ψ(k)=Ψ(k)(∂(k) tU, ∂(k−1) tU, ..., U, ∂(k) tS, ∂(k−1) tS, ..., S) is again a function of temporal derivatives of the fluxes and sources. Different approaches can be done to find the solution for temporal derivatives in (5.36) or (5.38). In this work, the Jacobian will be considered as a constant coefficient matrix evaluated at t= 0, that means, spatial and temporal derivatives will be evolved using constant wave speeds corresponding to the eigenvalues of the Jacobian at the initial time. This leads to the following simplification of the evolution equations for derivatives ∂ ∂t ∂(k) xU+J(U(0))∂ ∂x ∂(k) xU=∂(k) xS(5.39) ∂ ∂t ∂(k) tU+J(U(0))∂ ∂x ∂(k) tU=∂(k) tS(5.40) noticing that derivatives of Uand variable Uare evolved using the same law. 5.4 ADER scheme for linear scalar PDEs In order to illustrate the fundamentals of ADER-type numerical schemes, the ADER scheme proposed in [24], referred to as TT-ADER scheme or TT-ADER solver, is considered in this chapter for the resolution of the linear scalar advection-reaction equation ∂u ∂t +λ∂u ∂x =ζu (5.41) where λis a constant propagation speed and ζrepresents the strength of the reactive term. It is worth mentioning that the resolution of the same problem when the propagation speeds depends upon the spatial coordinate, that is λ=λ(x), is equivalent. In (5.41), the source term is expressed as s(x, t) = ζu(x, t) (5.42) and the integral value of the source term in space and time inside a cell Ωiis given by
5.4 ADER scheme for linear scalar PDEs 31 ¯si=1 ∆tZ∆t 0Zxi+1 2 xi−1 2 ζu(x, t)dxdt (5.43) The value of the function uis unknown at an arbitrary time t=τ, however, this value can be reconstructed by means of a power-series time expansion in the following way ui(x, τ) = ui(x, 0) + K X k=1 ∂k ∂tkui(x, 0)τk k!(5.44) where K+ 1 is equal to the desired order of accuracy. In order to compute the evolution in time of uusing (5.44), time derivatives of the function are needed. The Cauchy-Kowalewski method is applied to express time derivatives as functions of space derivatives. A general expression for the k-th derivative of ucan be derived from the PDE ∂ku ∂tk= k X l=0 (−λ)lζk−lk! l!(k−l)! ∂lu ∂xl(5.45) Inserting 5.45 in 5.44, the latter becomes ui(x, τ) = ui(x, 0) + K X k=1 "k X l=0 (−λ)lζk−lk! l!(k−l)! ∂lui ∂xl(x, 0)#τk k!(5.46) where ∂lui ∂xl(x, 0) are the piece-wise reconstruction of derivatives carried out by a suitable derivative reconstruction procedure, such as the WENO sub-cell derivative reconstruction method. For the sake of simplicity, the following function is defined ψ(k, l) = (−λ)lζk−lk! l!(k−l)! (5.47) and can be used to rewrite (5.46) in a more compact form ui(x, τ) = ui(x, 0) + K X k=1 "k X l=0 ψ(k, l)∂lui ∂xl(x, 0)#τk k!(5.48) Numerical scheme To construct high-order numerical methods of the ADER type it is sufficient to find the solution for the fluxes at the interface position x= 0, as a function of time τ. In the scalar linear case, functions u− i=u(x= 0−, t =τ) and u+ i+1 =u(x= 0+, t =τ) will provide sufficient information to compute the numerical fluxes to construct a numerical scheme of K+ 1-th order of accuracy in both space and time. The DRP ∂u ∂t +λ∂u ∂x =ζu u(x, 0) = ui(x)x < 0 ui+1(x)x > 0 (5.49) is solved at each cell interface using linear solutions, leading to the following explicit conservative formula un+1 i=un i−∆t ∆x[f− i+1/2−f+ i−1/2] + ¯si∆t(5.50) with the numerical fluxes f± i+1/2defined as a time-integral averages f− i+1/2=1 ∆tZ∆t 0 f− iRdτ f+ i+1/2=1 ∆tZ∆t 0 f+ (i+1)Ldτ (5.51)
38 High order Riemann solvers and ADER schemes As outlined in the previous chapter, to construct a K+1-th order ADER scheme the following DRPK has to be solved at each interface ∂u ∂t +∂f(u) ∂x =s u(x, 0) = ui(x)x < 0 ui+1(x)x > 0 (5.93) and the resulting numerical fluxes f− i+1/2and f+ i−1/2are used to construct the following updating scheme un+1 i=un i−∆t ∆x[f− i+1/2−f+ i−1/2] + ∆t ∆x[¯siR,i + ¯si,iL](5.94) with f− i+1/2and f+ i−1/2defined as a time-integral averages at the interfaces f− i+1/2=1 ∆tZ∆t 0 f− iRdτ f+ i−1/2=1 ∆tZ∆t 0 f+ iLdτ (5.95) and with ¯siR,i and ¯si,iLa suitable high order approximation of the integral for the source term inside the cell, split in two, according to notation in Figure 5.2. Notice that ¯siR,iL= ¯siR,i + ¯si,iL. Adopting the flux-expansion ADER approach, we seek a truncated Taylor time expansion of the fluxes at the interfaces as done in (5.22). In this case, the scalar version reads f− iR=f−,0 iR+ K X k=1 f−,(k) iR τk k!f+ (i+1)L=f+,0 (i+1)L+ K X k=1 f+,(k) (i+1)L τk k!(5.96) where f−,0 iRand f+,0 (i+1)Lrepresent the zero-th order approximate fluxes, obtained as a result of the resolution of the DRP0and f−,(k) iRand f+,(k) (i+1)Lthe approximate fluxes for the k-th order terms. The following expression of the numerical fluxes in (5.95) is obtained f− i+1/2=f−,0 iR+ K X k=1 f−,(k) iR ∆tk (k+ 1)! f+ i+1/2=f+,0 (i+1)L+ K X k=1 f+,(k) (i+1)L ∆tk (k+ 1)! (5.97) corresponding to the scalar version of (5.23). The components of the power series expansion in time (5.97) are calculated by solving the corresponding RPs associated to the DRPK. First, the leading terms of the expansion are computed from the DRP0, which corresponds to the following RP ∂u ∂t +∂f(u) ∂x =s u(x, 0) = (u(0) iRif x < 0 u(0) (i+1)Lif x > 0 (5.98) that includes the source term, unlike in the TT-ADER scheme. The augmented solver presented in Chapter 4 is used to obtain a linearized solution based on the states at both sides of the interface and on the contribution of the source term. First, an expression for the leading term of the numerical fluxes in (5.96) is provided by solving the DRP0 f−,0 iR=f0 iReλ+ eλi+1/2+hf0 (i+1)L−¯s0 i+1/2ieλ− eλi+1/2 f+,0 (i+1)L=f0 (i+1)Leλ− eλi+1/2+hf0 iR+ ¯s0 i+1/2ieλ+ eλi+1/2 (5.99) with f0 iRand f0 (i+1)Lthe physical fluxes at cell interfaces
5.6 The AR-ADER scheme 39 f0 iR=f(u0 iR)f0 (i+1)L=f(u0 (i+1)L),(5.100) e λi+1/2given by the consistency condition as e λi+1/2=e λ(u0 iR, u0 (i+1)L)and ¯s0 i+1/2a suitable approximation of the integral of the source term across the interface ¯s0 i+1/2=1 ∆tZ∆t 0Zx+ i+1/2 x− i+1/2 si(x, 0) dx dt (5.101) Noticing that when dealing with non-geometric source terms, this integral is nil and therefore only the centered contribution of the source term has to be accounted for. To obtain the high order terms of expansion in (5.96), it is necessary to find the solution for RPs given by the evolution equation for time derivatives in (5.40), where the Jacobian of the flux is considered a constant coefficient matrix. In the scalar case, Equation (5.40) can be rewritten as ∂t(∂(k) tu) + ˜ λ∂x(∂(k) tu) = ∂(k) ts(5.102) where ˜ λis given by ˜ λ=∂f(u) ∂u t=0 (5.103) The Cauchy-Kowalewski procedure is used to construct time derivatives departing from the information provided by the interpolation method. It allows to express time derivatives of the flux, conserved quantity and source term at τ= 0 as functions R(k),D(k)and Q(k), respectively, of spatial derivatives of uand sas a particular case of (5.29), (5.31) and (5.33) for scalar problems. At each side of the interface for each DRPK, temporal derivatives of the fluxes are denoted by R(k) iRand R(k) (i+1)Land computed according to (5.30) and temporal derivatives of the conserved variable are denoted by D(k) iRand D(k) (i+1)Land computed as provided in (5.30). Using these reconstructions the Kfollowing RPs, where k= 1, ..., K, can be defined ∂t(∂(k) tu) + ˜ λ(u(0))∂x(∂(k) tu) = ∂(k) ts u(x, 0) = (D(k) (i+1)Lif x < 0 D(k) iRif x > 0 (5.104) It is worth mentioning that the initial condition for the previous RP is formally given by D(k) (i+1)L and D(k) iR, the k-th time derivatives of the conserved variable at both sides of the interface, but when constructing the solution for the approximate fluxes, only R(k) iRand R(k) (i+1)Lare required. Using the augmented solver presented in Chapter 4 to solve (5.104), the approximate fluxes at the interface read f−,(k) iR=R(k) iReλ+ eλi+1/2+hR(k) (i+1)L−¯s(k) i+1/2ieλ− eλi+1/2 f+,(k) (i+1)L=R(k) (i+1)Leλ− eλi+1/2+hR(k) iR+ ¯s(k) i+1/2ieλ+ eλi+1/2 (5.105) with R(k) iRand R(k) (i+1)Lpreviously defined as the time derivatives of the fluxes at the interface, with e λi+1/2 the wave speed for the leading term e λi+1/2=e λ(u0 iR, u0 (i+1)L)and with ¯s(k) i+1/2the integral of the derivative of the source term across the interface ¯s(k) i+1/2=1 ∆tZ∆t 0Zx+ i+1/2 x− i+1/2 Q(k)dx dt (5.106)
40 High order Riemann solvers and ADER schemes that will be integrated by means of suitable approximations. Centered contributions of the source term are included in the updating scheme (5.94) since the DRP is considered just at the interface, unlike in first order schemes where it was considered between two adjacent cell centers. The evolution in time of the source term is reconstructed by means of the power-series time expansion si(x, τ) = si(x, 0) + K X k=1 ∂k ∂tksi(x, 0)τk k!(5.107) where ∂k ∂tksi(x, 0) is expressed in terms of spatial variations of the conserved variable and the source using Q(k)in (5.33) as outlined before. The centered contributions of the source term are denoted by ¯si,iLand ¯siR,i and for convenience will be expressed as a leading term plus Kadditional higher order terms as ¯si,iL= ¯s0 i,iL+ K X k=1 ¯s(k) i,iL¯siR,i = ¯s0 iR,i + K X k=1 ¯s(k) iR,i (5.108) with ¯s0 i,iL=1 ∆tZ∆t 0Zxi xi−1/2 si(x, 0) dx dt ¯s0 iR,i =1 ∆tZ∆t 0Zxi+1/2 xi si(x, 0) dx dt (5.109) ¯s(k) i,iL=1 ∆tZ∆t 0Zxi xi−1/2 Q(k)τk k!dx dt ¯s(k) iR,i =1 ∆tZ∆t 0Zxi+1/2 xi Q(k)τk k!dx dt (5.110) computed by suitable approximations of the integrals. 5.6.2 The AR-ADER scheme for systems of equations The discussion is next extended to hyperbolic nonlinear systems of equations with source terms in 1D, given by (2.34). Assuming that the convective part of (2.34) is strictly hyperbolic, with Nλreal eigenvalues λ1, ..., λNλand eigenvectors e1, ..., eNλ, it is possible define two matrices P= (e1, ..., eNλ)and P−1with the property that they diagonalize the Jacobian J, as done in (2.40). Following the same approach than in section 5.6.1, the expression for the updating scheme is constructed as Un+1 i=Un i−∆t ∆x[F− i+1/2−F+ i−1/2] + ∆t ∆x[¯ SiR,i +¯ Si,iL](5.111) with the numerical fluxes F− i+1/2and F+ i−1/2as defined in (5.20). Adopting the flux-expansion ADER approach, we seek a truncated Taylor time expansion of the fluxes at the interfaces, as expressed in Equations (5.22) and (5.23). The time-series expansion of the fluxes is composed of the leading terms F−,0 iRand F+,0 (i+1)L, obtained as a result of the resolution of the DRP0and of the high order terms F−,(k) iR and F+,(k) (i+1)L, computed by solving the KRPs associated to the time derivatives defined in the DRPKin (5.1). The Augmented version of the Roe solver [7] (ARoe) presented in [1, 2] and previously outlined in Section 4.2 is used here to construct the numerical scheme. The ARoe solver takes into account the contribution of the source term in the solution, ensuring equilibrium between numerical fluxes and source term in steady cases. In what follows, δ(·)i+1/2operator will represent the difference between the right and left state of the DRP centered in i+ 1/2for a given variable, as δ(·)i+1/2= (·)(i+1)L−(·)iRand δ(·)i−1/2= (·)iL−(·)(i−1)R. The ARoe solver is based on the decomposition of the approximate Jacobian of the homogeneous part at the initial time ˜ Ji+1/2(U(0) iR,U(0) (i+1)L) δF(0) i+1/2=e Ji+1/2δU(0) i+1/2(5.112)
5.6 The AR-ADER scheme 41 leading to a set of approximated eigenvalues ˜ λm i+1/2and eigenvectors and eem i+1/2= (em 1, ..., em Nλ)T. The approximate Jacobian e Ji+1/2can be expressed as e Ji+1/2=e Pi+1/2Λi+1/2e P−1 i+1/2(5.113) with e Pi+1/2=ee1, ..., eeNλi+1/2an invertible matrix composed by the eigenvectors of e Ji+1/2and Λi+1/2 the diagonal matrix composed by the eigenvalues of e Ji+1/2. As done in the scalar case, the leading terms of the expansion are computed first from the DRP0, which corresponds to the following RP ∂U ∂t +∂F(U) ∂x =S U(x, 0) = (U(0) iRif x < 0 U(0) (i+1)Lif x > 0 (5.114) Following the ARoe solver, the leading terms of the numerical fluxes in (5.22) are given by as the solution of the DRP0 F−,(0) iR=F(0) iR+PNλ m=1 e λ−α(0) −β−,(0)m i+1/2eem i+1/2 F+,(0) (i+1)L=F(0) (i+1)L−PNλ m=1 e λ+α(0) −β+,(0)m i+1/2eem i+1/2 (5.115) with F(0) iRand F(0) (i+1)Lthe vectors of physical fluxes of the DRP0, ˜ λ±m i+1/2= e λ± |e λ| 2!m i+1/2β±,(0)m i+1/2= e λ± e λβ(0)!m i+1/2 (5.116) Notice that definition in (5.115) can be rewritten in terms of θi+1/2leading to (4.7). The wave strengths α(0) are given by the projection of δU(0) i+1/2onto the Jacobian eigenvectors basis as δU(0) i+1/2=e Pi+1/2Ai+1/2(5.117) with Ai+1/2=α(0),1, ..., α(0),NλT i+1/2and β(0) the source strengths associated to each wave, given by ¯ S0 i+1/2=e Pi+1/2B(0) i+1/2(5.118) with B(0) i+1/2=β(0),1, ..., β(0),NλT i+1/2. As in the scalar case, a suitable approximation of the integral of the source term across the interface ¯ S(0) i+1/2=1 ∆tZ∆t 0Zx+ i+1/2 x− i+1/2 S(x, 0) dx dt (5.119) must be found when dealing with geometric source terms. The same procedure is extended to derive the expression of the derivative terms of the fluxes in (5.22). This is performed by solving the KRP’s associated to the high order terms of the DRPKusing directly time derivatives of the fluxes as initial conditions. ∂ ∂t ∂(k) tU+e Ji+1/2 ∂ ∂x ∂(k) tU=∂(k) tS ∂(k) tU(x, 0) = (D(k) iRif x < 0 D(k) (i+1)Lif x > 0 (5.120)
42 High order Riemann solvers and ADER schemes As in the scalar case, the resulting fluxes are not computed using D(k) iRand D(k) (i+1)Lbut directly from derivatives of the fluxes at the interfaces instead. The solution for the fluxes is given by F−,(k) iR=R(k) iR+PNλ m=1 α−,(k)−β−,(k)m i+1/2eem i+1/2 F+,(k) (i+1)L=R(k) (i+1)L−PNλ m=1 α+,(k)−β+,(k)m i+1/2eem i+1/2 (5.121) with α±,(k)m i+1/2= e λ± e λα(k)!m i+1/2β±,(k)m i+1/2= e λ± e λβ(k)!m i+1/2 (5.122) The wave strengths, α(k), are given in this case by the projection of the variation of R(k)onto the Jacobian eigenvectors basis δR(k) i+1/2=e Pi+1/2A(k) i+1/2(5.123) with A(k) i+1/2=α(k),1, ..., α(k),NλT i+1/2, and the same for the source strengths associated to each wave, β(k) ¯ S(k) i+1/2=e Pi+1/2B(k) i+1/2(5.124) with B(k) i+1/2=β(k),1, ..., β(k),NλT i+1/2. A suitable approximation of the integral of the source term across the interface ¯ S(k) i+1/2=1 ∆tZ∆t 0Zx+ i+1/2 x− i+1/2 Q(k)dx dt (5.125) must be found when dealing with geometric source terms. Centered contributions of the source term (¯ Si,iLand ¯ SiR,i) are included in the updating scheme (5.111). They are expressed as a leading term plus Kadditional higher order terms ¯ Si,iL=¯ S(0) i,iL+ K X k=1 ¯ S(k) i,iL¯ SiR,i =¯ S(0) iR,i + K X k=1 ¯ S(k) iR,i (5.126) with ¯ S(0) i,iL=1 ∆tZ∆t 0Zxi xi−1/2 Si(x, 0) dx dt ¯ S(0) iR,i =1 ∆tZ∆t 0Zxi+1/2 xi Si(x, 0) dx dt (5.127) ¯ S(k) i,iL=1 ∆tZ∆t 0Zxi xi−1/2 Q(k)τk k!dx dt ¯ S(k) iR,i =1 ∆tZ∆t 0Zxi+1/2 xi Q(k)τk k!dx dt (5.128) computed by suitable approximations of the integrals.
43 Chapter 6 Numerical experiments In this chapter, high order numerical schemes presented in this work are tested and compared when solving different test cases. First, the linear scalar equation is solved in 1D and 2D under a given velocity field and initial condition. As outlined before, when dealing with linear scalar problems the AR-ADER scheme is equivalent to the TT-ADER scheme and therefore this test case is not used to compare among numerical schemes but among reconstruction procedures instead, showing the improved performance of the proposed WENO-PW method. The second test case corresponds to the Burgers’ equation with a source term of geometric nature, a nonlinear problem for which the treatment of the source term in the numerical scheme is decisive. Here, differences between augmented and non-augmented solvers are clearly noticeable. Finally, we move to systems of conservation laws and solve the one dimensional shallow water equations, proposing several test cases where the numerical schemes can be fully tested. 6.1 Resolution of the linear scalar equation 6.1.1 1D linear advection-reaction equation The following initial condition is imposed to Equation (5.41) u(x, 0) = (sin πx)4(6.1) and it is numerically solved inside [a, b]×[0, t] = [0,2] ×[0,2], setting CFL=0.45. Cyclic boundary conditions are imposed in all cases. It can be noticed that initial condition in (6.1) has four critical points. In this test λis set equal to 1 and parameter ζof the reactive term is set equal to 5. The transported function will suffer an exponential growth in time and classical first and second order numerical schemes do completely fail when simulating this test case. Very high order is mandatory if accurate solutions are searched. The TT-ADER scheme is used here to compute the numerical solution and different WENO approaches will be compared. It is worth saying that the implementation of the AR-ADER scheme would lead to the TT-ADER algorithm, due to the linear nature of the problem and non-geometric nature of the source term. Tables F.1, F.2 and F.3 show the numerical error and convergence rate for error norms L1,L2and L∞ respectively, using optimal reconstruction weights for different grid refinements, for the 3-rd, 5-th, 7-th, 9- th and 11-th order TT-ADER schemes. For all norms explored the TT-ADER scheme in combination with the sub-cell derivative reconstruction proposed in this work, provides the expected rate of convergence. Numerical results for the 3-rd TT-ADER scheme may seem to reproduce a suboptimal behavior, that can be easily overcome by setting further refinements. It is expected that a powerful WENO reconstruction method must reproduce the same level of error and converge rate. When using WENO-JS method, the numerical results experience lack of precision in the numerical results due to the existence of critical points in the transported function. Results are shown in Tables F.1, F.2 and F.3. At the view of the numerical results, the computation of the 11-th TT-ADER scheme using the WENO-JS makes no sense.
44 Numerical experiments When comparing the results provided by the WENO-JS and the WENO-Z methods, it can be observed that WENO-Z provides more accurate results for all error norms when using the 3-rd, 5-th, 7-th order TT-ADER schemes. When moving to higher orders the WENO-Z method provides worse results that the original WENO-JS method for all error norms, for instance L∞error norms are excessively large if compared with the optimal reconstruction (two orders of magnitude greater). When analyzing the results of the L1norm for the WENO-PW (b= 20 in all cases) method, it can be seen that it emulates the numerical solution computed with the optimal reconstruction, reproducing the convergence rate specially for 9-th and 11-th order schemes. If considering the 7-th order TTADER scheme, L1errors are lower than those provided by the WENO-JS method, but better results are given if using the WENO-Z method in this case. When moving to 9-th and 11-th order TT-ADER schemes, numerical results evidence that the WENO-PW method recovers the optimal weights making the numerical scheme converge with the prescribed order, for all error norms. We can conclude that the use of the WENO-PW reconstruction is more adequate for very high order schemes (such as 7-th, 9-th and 11-th order schemes) where a large number of stencils is used, although it can be also used for lower order schemes showing a good performance. In such cases (specially 5-th order), the WENO-Z seems to provide the best reconstruction, leading to the most accurate numerical solution among the proposed methods. 6.1.2 1D linear advection of a discontinuous function For this test case, the reactive term of (5.41) is set to 0 leading to the scalar linear advection equation and λ= 1. A discontinuous function composed of a square, triangular, Gaussian and sinusoidal wave is used as initial condition. Figure 6.1 shows the numerical results provided by a 1-st, 3-rd, 5-th, 7-th and 9-th order TT-ADER scheme at t=2000, using the WENO-PW method and setting b= 20,∆x= 1 and CFL= 0.45. For all cases, the essentially non-oscillatory property is retained and spurious oscillations do not appear. It is observed that numerical diffusion is dramatically reduced when increasing the order of the numerical scheme. When analyzing the result provided by the 1-st order scheme, it can be seen that the original shape of the function is not recovered. When moving to 3-rd order numerical scheme, the shape of the function is recovered but sharp discontinuities are not accurately captured. This issue is addressed when using the 5-th, 7-th, 9-th and 11-th order numerical schemes. 0 0.2 0.4 0.6 0.8 1 10 20 30 40 50 60 70 80 u(x,t) x 0 0.2 0.4 0.6 0.8 1 100 120 140 160 180 u(x,t) x Figure 6.1: Section 6.1.2. Computational results for the advection equation with a discontinous initial condition using a 1-st (− • −), 3-rd (− • −), 5-th (− • −), 7-th (− • −) and 9-th (− • −) order TT-ADER numerical scheme and the WENO-PW method with b= 20. Results are compared with the exact solution (−), using a grid size ∆x= 1. 6.1.3 2D linear advection of a Gaussian pulse The following Gaussian function
6.1 Resolution of the linear scalar equation 45 u(x, y) = exp −(x−15)2+ (y−15)2 10 (6.2) is used as initial condition for the linear scalar Equation in (5.73), setting λ1=λ2= 1. It is computed using the 2D ADER numerical scheme presented in Section 5.5 inside the spatial domain Ω = [0,30] × [0,30], imposing cyclic boundary conditions. Convergence rate tests for the solution at t= 30 are presented in Tables F.4, F.5, F.6 and F.7 where the optimal reconstruction, traditional WENO-JS reconstruction, WENO-PW reconstruction and WENO-Z reconstruction are used respectively, in combination with the 2D ADER numerical scheme. Four refinement levels ∆x={15,30,60,120}have been used, setting CF L = 0.45. It is observed that, in general, best convergence results and lower numerical errors are achieved when using the optimal reconstruction since the initial condition is smooth and the problem does not lead to discontinuous solutions. When using the WENO-PW method, good convergence results and low numerical errors are still preserved, unlike for the WENO-JS, that leads to higher numerical errors although the convergence rate is roughly maintained. Notice that the convergence rate using L2error norm is higher than when using L1or L∞error norms, even leading to a faster convergence rate than it is prescribed. On the other hand, L1and L∞error norms do converge at barely the prescribed convergence rate. The use of the WENO-Z reconstruction is reported to provide a less accurate solution (higher numerical errors) as the order of the numerical scheme is increased. Notice that the numerical errors provided by the numerical scheme when using the WENO-PW reconstruction and N= 120 coincide with those provided by the same scheme when the WENO-Z reconstruction is used. Figure 6.2 shows the numerical solution at t= 60 provided by a 1-st order Godunov scheme and by the 3-rd, 5-th and 7-th order 2D ADER numerical schemes in combination with the WENO-PW method, with a grid of size 30 ×30 cells and setting CFL = 0.45. 6.1.4 2D linear advection with space-dependent coefficients: Doswell frontogenesis The kinematic approach to frontogenesis proposed by Doswell [41] provides a reliable benchmark for numerical models in meteorology. In [41], an idealized model of a vortex interacting with a initially straight frontal zone was developed. Local advection and frontogenesis were calculated analytically at the initial time and used to find the evolution of the system in time. In [40], an analytical solution for the advected scalar at a given time was obtained by solving the linear transport PDE for the scalar. Both publications explore the frontogenesis solution for a general nondivergent vortex flow. In the present work, we use those results to reproduce numerically the advection of a scalar quantity under the effect of the frontogenesis using the 2D ADER scheme in Section 5.5. Numerical results are compared with the exact solution derived in the mentioned publications. The kinematic model proposed in [41] consists of a hyperbolic vortex that represents a smooth approximation to the Rankine combined vortex. It is worth mentioning that in many studies, the flow in real atmospheric vortices has been assumed to fit the Rankine Combined Vortex. The hyperbolic vortex in [41] is given by the following velocity profile in polar coordinates v(r, θ) = 0 VT(r)(6.3) where VT(r)represents a tangential wind given by VT(r) = Vmax sech2(r) tanh(r)(6.4) with Vmax = 2.5980762 in order to normalize the maximum value of the wind profile. When expressing the velocity field on a cartesian coordinate system, it reads v(x, y) = u(x, y) v(x, y)=−VT(r)y r VT(r)x r(6.5)
46 Numerical experiments 0 1 0.25 0.5 0.75 u 0 1 0.25 0.5 0.75 u 0 1 0.25 0.5 0.75 u 0 1 0.25 0.5 0.75 u Figure 6.2: Numerical solution for the advection of the gaussian pulse at t= 60, using a 1-st order Godunov scheme and the 3-rd, 5-th and 7-th order 2D ADER numerical schemes. The computational grid is composed of 30 ×30 cells and CFL number is set to 0.45. with r=px2+y2. The kinematic properties of the vortex field can be analyzed by studying the linear representation of the velocity field, using the first order Taylor series expansion v(x0+δx, y0+δy) = v(x0, y0) + ∇(v)·(δx, δy)T(6.6) where ∇(v)is the gradient of the velocity vector, with components ∂ui ∂xj, that can be expressed as ∇(v) = D+R(6.7) where D∈R2×2is the deformation matrix with components di,j =1 2∂ui ∂xj+∂uj ∂xiand R∈R2×2is the rotation matrix with components ri,j =1 2∂ui ∂xj−∂uj ∂xi, with i, j = 1,2,u1≡u,u2≡v,x1≡x,x2≡y. From that, it is straightforward to notice [41] that for the hyperbolic vortex flow (6.5) D=β/2α/2 α/2−β/2,R=0γ/2 −γ/2 0 (6.8)
6.1 Resolution of the linear scalar equation 47 with α=∂u ∂y +∂v ∂x =Vmax sech2(r)sech2(r)−2 tanh2(r)−tanh(r) rcos(2θ)(6.9) β= 2∂u ∂x =−2∂v ∂y =Vmax sech2(r)tanh(r) r−1 2sin(2θ)(6.10) γ=∂u ∂y −∂v ∂x =−Vmax sech2(r)sech2(r)−2 tanh2(r) + tanh(r) r(6.11) being −γthe component of the vorticity vector ∇ × vnormal to the x−yplane. It is worth mentioning the incompressible (non-divergent) characteristic of the flow, noticed as ∇ · v= tr(D) = β/2−β/2 = 0. The vector field associated to the vortex in (6.5), centered at (x, y) = (5,5), is depicted in Figure 6.3, including a longitudinal cut of the velocity magnitude along a line passing by the center. 0 1 0.2 0.4 0.6 0.8 abs(v) 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 0 1 2 3 4 5 6 7 8 9 10 Figure 6.3: Left: vector field and plot of the magnitude of vinside the computational domain. Right: plot of the tangential velocity along the radial direction, with the vortex centered at (x, y) = (5,5). Once the kinematic model has been studied, the initial condition for the scalar quantity u=u(x, y, t) (e.g. temperature) must be provided. In [41], the following initial condition is proposed u(x, y, 0) = tanh y δ,(6.12) modelling a straight front configuration. The evolution in time of the scalar field u(x, y, t)with initial condition in (6.12) under the action of the vortex is given by the following PDE ∂u ∂t +λ1 ∂u ∂x +λ2 ∂u ∂y = 0 x, y ∈Ω⊆R2, t ≥0 u(x, y, 0) = tanh y δ(6.13) where λ1=u(x, y)and λ2=v(x, y)are the components of the velocity vector in (6.5). Problem in (6.13) is solved using the 2D ADER numerical scheme in combination with the WENOPW reconstruction inside the spatial and temporal domains Ω = [0,10]×[0,10] and t∈[0, T ]respectively, with the velocity field centered at (x, y) = (5,5). Parameter δis set to 10−6. Results of the computation of (6.13) using a 1-st order Godunov scheme and the 3-rd, 5-th and 7-th order 2D ADER numerical schemes at t= 4 and t= 6 are included in Figures 6.4 and 6.5 respectively, using CFL = 0.45 and a grid of 201 cells in each coordinate direction. It is observed that numerical diffusion is drastically reduced
54 Numerical experiments Therefore, under steady conditions, functions R(k)and Q(k)are enforced to be zero since there is no spatial variation of energy or discharge, ensuring the equilibrium state for higher order terms. With this information, it is possible to compute the contribution of the source term across the cell edge in (5.27), by means of (6.36) for the leading term and ¯ Sz(k) i+1/2=1 ∆tZ∆t 0Zx+ i+1/2 x− i+1/2 −g h(k)dz dxdx ≈ −g h(k) (i+1)L+h(k) iR 2 δz (6.38) for high order terms, with δz =z(i+1)L−ziR. Other suitable approximations are possible if using spatial derivatives of both energy and discharge. 6.3.1 Steady flow over a hump The energy balanced approach in [39] ensures a constant value of mechanical energy, providing the exact solutions at every computational cell, with independence of the grid refinement under steady conditions. The numerical scheme presented here preserves this property, as high derivative terms become nil in stationary conditions. Numerical results up to 5th order are presented here for three different configurations of steady flow widely used as reference test cases in a wide number of works. Three different configurations of steady flow are defined in a domain 25 m long, where in all cases the bed level is given by z(x) = 0if x < 8 0.2−0.05(x−10)2if 8≤x≤12 0if x > 12 (6.39) The first considers subcritical flow in all the domain. Numerical solutions are generated in this test case by imposing a constant discharge q= 4.42 m2/s upstream and a constant water depth h= 2m downstream the channel. A mesh refinement of ∆x= 0.25 m is used in the results presented in Figure 6.8, where the numerical solutions provided by the energy balanced 1st, 3rd and 5th order AR-ADER methods are plotted. As expected, the numerical scheme reproduces the exact solution for all orders. In the second test case, the flow passes from subcritical conditions to supercritical conditions, leading to a transcritical flow without shocks, maintaining a constant value of total head energy in the entire domain. The transition from subcritical to supercritical conditions is present at z= 0.2m. Flow conditions evolve from subcritical to supercritical conditions, therefore, only the unit discharge, q=0.18m3/s, is imposed upstream the domain. Numerical solutions provided by the AR-ADER method reproduce the exact solution for all orders in the whole computational domain as plotted in Figure 6.9. The third test case considers transcritical flow followed by a shock over the hump, where energy is dissipated. The total head energy before the hydraulic jump depends on the water discharge imposed upstream and the total head energy after the hydraulic jump is determined by the water depth imposed downstream, q= 0.18 m2/s and h= 0.33 m respectively in this case. Figure 6.10 shows the numerical solutions provided by the AR-ADER method. In all cases the position of the shock is correctly computed. The numerical solutions reproduce the exact solution, except in the cell where the hydraulic jump is developed. 6.3.2 Numerical performance in RP Following [39] comparisons between exact solutions of the Riemann problem for system (6.28) and numerical solutions obtained using the AR-ADER method are presented. The examples involve different combinations of wave patterns in presence of bed discontinuities and are summarized in Table 6.1. Test cases 2 and 3 are included in a list of RPs defined by LeFloch and Duc-Thanh [47]. The domain is defined by [−1,1] m, the bottom step is positioned at x= 0, has a variable height and g=9.8 m/s2. The domain is divided in 500 cells and 1000 cells . Numerical solutions are plotted at time t= 0.01 s and the time step is computed using CFL = 0.2. RPs 1 to 3 are non-resonance problems and admit only one solution. RP 1, Figure 6.11, is a dambreak type problem that contains a left moving rarefaction wave, a stationary shock at the step and a
6.3 Application to the Shallow Water Equations 55 1.86 1.88 1.9 1.92 1.94 1.96 1.98 2 2.02 2.04 6 7 8 9 10 11 12 13 14 h+z (m) x (m) 4.4 4.405 4.41 4.415 4.42 4.425 4.43 4.435 4.44 6 7 8 9 10 11 12 13 14 q (m2/s) x (m) 0.48 0.5 0.52 0.54 0.56 0.58 0.6 0.62 0.64 6 7 8 9 10 11 12 13 14 Fr x (m) 2.2 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.3 6 7 8 9 10 11 12 13 14 E (m) x (m) Figure 6.8: Section 6.3.1. Subcritical flow. Exact solution (—) and numerical solutions using 1st (−−), 3rd (− • −) and 5th (− • −) order AR-ADER method. ∆x= 0.25. 0 0.2 0.4 0.6 0.8 1 1.2 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 h+z (m) x (m) 1.5 1.51 1.52 1.53 1.54 1.55 1.56 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 q (m2/s) x (m) 0 0.5 1 1.5 2 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 Fr x (m) 1.11 1.115 1.12 1.125 1.13 1.135 1.14 1.145 1.15 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 E (m) x (m) Figure 6.9: Section 6.3.1. Transcritical flow. Exact solution (—) and numerical solutions using 1st (−−), 3rd (− • −) and 5th (− • −) order AR-ADER method. ∆x= 0.25m.
56 Numerical experiments 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 9.5 10 10.5 11 11.5 12 12.5 h+z (m) x (m) 0.12 0.14 0.16 0.18 0.2 0.22 0.24 0.26 0.28 9.5 10 10.5 11 11.5 12 12.5 q (m2/s) x (m) 0 0.5 1 1.5 2 2.5 3 9.5 10 10.5 11 11.5 12 12.5 Fr x (m) 0.3 0.32 0.34 0.36 0.38 0.4 0.42 0.44 9.5 10 10.5 11 11.5 12 12.5 E (m) x (m) Figure 6.10: Section 6.3.1. Transcritical flow with a shock. Exact solution (—) and numerical solutions using 1st (−−), 3rd (− • −) and 5th (− • −) order AR-ADER method. ∆x= 0.25m. Table 6.1: Section 6.3.2. Summary of test cases. RP hLhRuLuRzLzR 1 4.0 0.69196567 0.0 0.0 0.0 1.5 2 0.3 0.39680194 2.0 2.2 1.0 1.0 3 1.0 1.2 3.0 0.1 1.1 1.0 4 1.0 2.0 2.0 4.0 1.1 1.0 right-moving shock wave. Supercritical motion from left to right is considered in RP 2, Figure 6.12. In RP 3, Figure 6.13, is a resonance problem that admits only one solution given by a sequence of shocks. In all cases the proposed numerical scheme provides accurate results for the water level surface at the bed discontinuity. Convergence is ensured with mesh refinement or when numerical order is increased. RP 4, in Figure 6.14, also is a resonant case with a unique solution. The solution begins with a rarefaction, followed by a stationary contact, continued by a shock wave and finally ends in a rarefaction. Again, the proposed scheme converges to the solution with mesh refinement or when the numerical order is increased. 6.3.3 Smooth case and convergence rate test In this section, a convergence test is performed. The numerical solutions are compared with a solution computed with a very refined mesh, setting 5th order. A smooth initial condition is desirable in order to perform a proper analysis of convergence. The following function is proposed for the bed profile z(x) = 0if x < 1 0.1(sin πx)4if 1≤x≤2 0if x > 2 (6.40) and the initial condition for the water level surface h+z
6.3 Application to the Shallow Water Equations 57 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 -0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 h+z (m) x (m) 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 -0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 h+z (m) x (m) 0 1 2 3 4 5 -0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 q (m2/s) x (m) 0 1 2 3 4 5 -0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 q (m2/s) x (m) Figure 6.11: Section 6.3.2. RP 1. Exact solution (—) and numerical solutions using the 1st (−−), 3rd (− • −) and 5th (− • −) order AR-ADER method using (left) 500 and (right) 1000 cells. 1 1.1 1.2 1.3 1.4 0 0.01 0.02 0.03 0.04 0.05 0.06 h+z (m) x (m) 1 1.1 1.2 1.3 1.4 0 0.01 0.02 0.03 0.04 0.05 0.06 h+z (m) x (m) 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0 0.01 0.02 0.03 0.04 0.05 0.06 q (m2/s) x (m) 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0 0.01 0.02 0.03 0.04 0.05 0.06 q (m2/s) x (m) Figure 6.12: Section 6.3.2. RP 2. Exact solution (—) and numerical solutions using the 1st (−−), 3rd (− • −) and 5th (− • −) order AR-ADER method using (left) 500 and (right) 1000 cells.
58 Numerical experiments 1 1.2 1.4 1.6 1.8 2 2.2 2.4 2.6 2.8 -0.02 0 0.02 0.04 0.06 h+z (m) x (m) 1 1.2 1.4 1.6 1.8 2 2.2 2.4 2.6 2.8 -0.02 0 0.02 0.04 0.06 h+z (m) x (m) 0 0.5 1 1.5 2 2.5 3 -0.02 0 0.02 0.04 0.06 q (m2/s) x (m) 0 0.5 1 1.5 2 2.5 3 -0.02 0 0.02 0.04 0.06 q (m2/s) x (m) Figure 6.13: Section 6.3.2. RP 3. Exact solution (—) and numerical solutions using the 1st (−−), 3rd (− • −) and 5th (− • −) order AR-ADER method using (left) 500 and (right) 1000 cells. 1 1.2 1.4 1.6 1.8 2 2.2 -0.02 0 0.02 0.04 0.06 0.08 h+z (m) x (m) 1 1.2 1.4 1.6 1.8 2 2.2 -0.02 0 0.02 0.04 0.06 0.08 h+z (m) x (m) 2 2.2 2.4 2.6 2.8 3 3.2 -0.02 0 0.02 0.04 0.06 0.08 q (m2/s) x (m) 2 2.2 2.4 2.6 2.8 3 3.2 -0.02 0 0.02 0.04 0.06 0.08 q (m2/s) x (m) Figure 6.14: Section 6.3.2. RP 4. Exact solution (—) and numerical solutions using the 1st (−−), 3rd (− • −) and 5th (− • −) order AR-ADER method using (left) 500 and (right) 1000 cells.
6.3 Application to the Shallow Water Equations 59 h(x, 0) + z(x) = 0.5if x < 1 0.5 + 0.08(sin πx)4if 1≤x≤2 0.5if x > 2 (6.41) in the computational domain [0,3] meters. Figure 6.15 (top) shows numerical results for the water level surface and discharge at time t= 0.05 s, using the 1st, 3rd and 5th order AR-ADER method. CFL number is set equal to 0.5 in all cases. Figure 6.15 (bottom) shows water level surface and discharge for a larger time, t= 0.3s. The grid size used is ∆x= 0.1. Large differences appear among first and higher orders. First order is unable to capture maximum and minimum values so the predicted values of h+zand qare strongly attenuated. Differences between 3rd and 5th order become more appreciable in this test case as time evolves. Numerical errors have been computed for hand qusing L1,L2and L∞error norms. The results of the convergence rate test for the 3rd and 5th order AR-ADER method are shown in Tables F.9 and F.10 for hand qrespectively. The prescribed order of accuracy is reached for the schemes up to 5th order, being suboptimal in certain circumstances. Numerical results evidence that it is less efficient to use a low-order method on a fine mesh than a high-order method on a coarse mesh. 0.49 0.5 0.51 0.52 0.53 0.54 0.55 0.56 0.57 0.5 1 1.5 2 2.5 h+z (m) x (m) 0.48 0.49 0.5 0.51 0.52 0.53 0.54 0.55 0 0.5 1 1.5 2 2.5 3 h+z (m) x (m) -0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 0.08 0.5 1 1.5 2 2.5 q (m2/s) x (m) -0.1 -0.05 0 0.05 0.1 0 0.5 1 1.5 2 2.5 3 q (m2/s) x (m) Figure 6.15: Section 6.3.3. Exact solution (−) and computed solutions for (upper) water surface level, h+z, and (lower) discharge, q, using 1st (−−), 3rd order (− • −) and 5th AR-ADER method (− • −), at t= 0.05 s (left) and t= 0.3s (right). More numerical results for the shallow water equations including computational costs can be found in [25].
61 Chapter 7 Concluding remarks In this work, numerical methods for the computation of hyperbolic conservation laws within the framework of fluid mechanics are studied. First order Godunov type numerical schemes and the corresponding Riemann solvers were presented first, serving as framework for the subsequent extension of such schemes to arbitrary order of accuracy carried out in the second part of the work. The ADER methodology was chosen. The necessity of suitable non-oscillatory reconstruction procedures when constructing high order numerical schemes was evidenced and the WENO reconstruction procedure was selected for the spatial reconstructions required for ADER schemes. A novel improvement of the WENO-JS method has been introduced. The proposed technique recovers the optimal reconstruction when the reconstruction data is smooth and ensures the non-oscillatory property when discontinuities are present by emulating the WENO-JS reconstruction. The keystone of this improvement is the modification of the power exponent in the calculation of the αJS weights by means of a suitable indicator that measures the smoothness of the function in the whole reconstruction domain. This global smoothness indicator provides a better measure of the smoothness of the function inside it and allows to identify either if real discontinuities are present or if the function is smooth, with independence of the existence of critical points. In ADER schemes, a proper computation of the derivatives of the reconstructed function is essential to converge to the exact solution and to achieve the prescribed order of convergence. The sub-cell derivative reconstruction technique proposed in [21] has been used defining a inner grid that avoids the presence of negative optimal weights. For 2D cases, this method has been extended and is presented in Appendix E. For a good performance of such derivative reconstruction method, the departing data provided by a WENO reconstruction must be accurate. When critical points are present and the traditional WENO method fails, derivatives obtained using this procedure are erroneous. Only when using the WENO-PW reconstruction technique, it is ensured that we recover the proper values of the derivatives as the reconstructed polynomial does not contain spurious oscillations, with independence of the mesh refinement. Numerical results using a Flux-ADER numerical scheme (TT-ADER scheme) for the resolution of the linear scalar transport equation are provided for different improved WENO methods such as the WENOPW, WENO-5M, WENO-Z and WENO-MZ. When analyzing the numerical results, it is evidenced that the utilization of the WENO-PW reconstruction technique normally leads to more accurate results than the other existent approaches, specially for very high order schemes (9-th and 11-th orders). The computational cost of this method does not differ significantly from that of the WENO-JS method, however it is worth saying that the use of a real power exponent produces a higher computational cost than when it is an integer. The WENO-PW method offers a simple and inexpensive way to achieve the theoretical order of convergence when using the TT-ADER scheme for smooth cases, as well as to provide accurate results when computing discontinuous cases, always satisfying the non-oscillatory property. The main novel point of this work is the high order extension of weak solutions for classical RPs involving geometric source terms, to compute the DRPK, allowing to generate a flux-ADER type numerical scheme named AR-ADER. For that purpose, the DRPKis decomposed in K+ 1 RPs: the DRP0, for the leading term, and KRPs related to the derivative terms. The new solver is an extension of the ARoe solver in [1] and computes the K+ 1 solutions of the DRPKused to form the truncated Taylor
62 Concluding remarks power-series expansion in time of the fluxes, needed to construct a K+ 1-th order AR-ADER scheme. It is worth recalling some distinctive features of the AR-ADER scheme when compared to other traditional ADER schemes. The solver directly computes the solution of the derivative RPs departing from time derivatives of the fluxes, unlike classical ADER solvers, where spatial derivatives of the conserved variables are used instead. Another important feature of this solver, inherited from the ARoe solver, is that the contribution of the source term across the cell boundaries is accounted for by adding an extra wave in the solution. It is worth mentioning that the leading terms in the AR-ADER scheme are computed ensuring an exact balance between fluxes and source terms. Numerical approximations done over the source term for the shallow water model ensure an energy balanced scheme, that is, when applied to steady flows, the exact solution is recovered with independence of the mesh refinement. High order terms are constructed replacing temporal derivatives by spatial derivatives written in terms of those variables that are constant in space under the steady regime, in order to preserve the discrete equilibrium. For instance, in the shallow water model, the reconstruction procedure is performed over the mechanical energy and discharge. In this way, convergence to the exact solution can be guaranteed in both steady and transient conditions. It is worth mentioning that numerical issues may arise when considering transcritical cases since time derivatives in terms of spatial derivatives lead to infinity. In this work, a reduction of the order of the numerical scheme to first order-accurate is proposes as a first approach. The AR-ADER method has been implemented and tested up to a fifth order of accuracy in space and time and a thorough verification of the expected orders of accuracy of the schemes for the Burger’s equation and the shallow water equations has been carried out, obtaining satisfactory results. For a given mesh, we conclude that when using the high-order version of the AR–ADER method instead of a low-order AR-ADER method, the error is lower but the computational cost is much greater. However, numerical results evidence that it is less efficient to use a low-order method on a fine mesh than a highorder method on a coarse mesh. This observation is a good argument for the justification of the use and development of high-order numerical schemes, such as the proposed AR-ADER method. Future work must focus on the high order extension of other Riemann solvers such as the HLLS solver, as done for the ARoe solver, studying at the same time different kinds of discretization techniques for the integral of the source terms that must be designed considering the physical characteristics of the fluid flow. The 2D extension of such schemes for their application to nonlinear systems of equations such as the 2D shallow water equations also remains. To do it, the Cauchy-Kowalevski procedure must be carried out for the 2D system of equations but the derivation of the analytical expressions for time derivatives of the fluxes and conserved variables may become very tedious. Therefore, the implementation of an automatic differentiation algorithm could be suggested for that purpose, also making the application of the proposed numerical scheme to other systems of equations straightforward. It is worth mentioning that when addressing the multidimensional extension of the method, adaptable reconstruction procedures that provide an approximation of the variables and their derivatives inside arbitrary-shaped computational cells should be used, since quadrilateral grids are not adequate for the resolution of certain flow patterns and cannot be adapted to most domain geometries.
63 Bibliography [1] J. Murillo, P. García-Navarro, Weak solutions for partial differential equations with source terms: application to the shallow water equations, J. Comput. Phys. 229 (2010) 4327–4368. [2] J. Murillo, P. García-Navarro, Augmented versions of the HLL and HLLC Riemann Solvers including source terms in one and two dimensions for shallow flow applications, J. Comput. Phys. 231 (2012) 6861–6906. [3] D.L. George. Augmented Riemann solvers for the shallow water equations over variable topography with steady states and inundation. Journal of Computational Physics 227 (2008) 3089–3113. [4] J. Murillo, J. Burguete, P. Brufau, and P. García-Navarro. The influence of source terms on stability, accuracy and conservation in two-dimensional shallow flow simulation using triangular finite volumes, Int. J. Numer. Meth. Fluids (2007) 54 543–590. [5] J. Murillo, P. García-Navarro, Augmented Roe’s approaches for Riemann problems including source terms: definition of stability region with application to the shallow water equations with rigid and deformable bed. In M. E. Vázquez-Cendón and A. Hidalgo and P. García-Navarro and L. Cea, eds., Numerical Methods for Hyperbolic Equations. Theory and Applications, pages 149–154. Taylor- Francis Group, 2013. [6] A. Bermudez and M.E. Vázquez-Cendón, Upwind methods for hyperbolic conservation laws with source terms, Comput. Fluids. 23 (1994) 1049–1071. [7] P.L. Roe, Approximate Riemann solvers, parameter vectors, and difference schemes, J. Comput. Phys. 43 (1981) 357–372. [8] E.F. Toro, R.C. Millington, and L.A.M. Nejad. Primitive upwind methods for hyperbolic partial differential equations. In C. H. Bruneau, editor, Sixteenth International Conference on Numerical Methods for Fluid Dynamics. Lecture Notes in Physics, pages 421–426. Springer-Verlag, 1998. [9] E.F. Toro, R.C. Millington, and L.A.M. Nejad. Towards very high order Godunov schemes. In E. F. Toro, editor, Godunov Methods. Theory and Applications, pages 907–940. Kluwer/Plenum Academic Publishers, 2001. [10] E.F. Toro, V.A. Titarev, Solution of the generalised Riemann problem for advection-reaction equations, Proc. Roy. Soc. London A 458 (2002) 271–281. [11] E.F. Toro, V.A. Titarev, ADER schemes for scalar hyperbolic conservation laws with source terms in three space dimensions, J. Comput. Phys. 202 (1) (2005) 196–215. [12] E.F. Toro, V.A. Titarev, Derivative Riemann solvers for systems of conservation laws and ADER methods, J. Comput Phys. 212 (1) (2006) 150–165. [13] S.K. Godunov, A finite difference method for the computation of discontinuous solutions of the equations of fluid dynamics, Mat. Sb. 47 (1959) 357–393 [14] A. Harten, High resolution schemes for hyperbolic conservation laws, J. Comput. Phys. 49 (1983) 357-393. [15] B. Van Leer, Towards the ultimate conservative difference scheme II, monotonicity and conservation combined in a second order scheme, J. Comput. Phys. 14 (1974) 361-470.
71 List of Tables 6.1 Section 6.3.2. Summary of test cases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 B.1 Linear coefficients γrfor k= 1,2,3,4,5............................. 91 B.2 Summary of the possible combinations of band pin the WENO-PW method, and their effect in the reconstruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 E.1 Absolute values of global maxima for derivatives in (E.18) and (E.18). . . . . . . . . . . . 119 E.2 L1and L∞error norms and convergence rates of the numerical solution using a 3-rd, 5-th, 7-th and 9-th order 2D WENO reconstruction method. Nstands for the number of cells in each coordinate direction, which are equal in this case. . . . . . . . . . . . . . . . . . . 125 F.1 Section 6.1.1. L1error norm and convergence rate at t= 2 using 3-rd, 5-th, 7-th, 9-th and 11-th order TT-ADER schemes comparing the utilization of optimal reconstruction, WENO-JS, WENO-Z (p=k−1) and WENO-PW (b= 20) approaches. . . . . . . . . . . 127 F.2 Section 6.1.1. L2error norm and convergence rate at t= 2 using 3-rd, 5-th, 7-th, 9-th and 11-th order TT-ADER schemes comparing the utilization of optimal reconstruction, WENO-JS, WENO-Z (p=k−1) and WENO-PW (b= 20) approaches. . . . . . . . . . . 128 F.3 Section 6.1.1. L∞error norm and convergence rate at t= 2 using 3-rd, 5-th, 7-th, 9-th and 11-th order TT-ADER schemes comparing the utilization of optimal reconstruction, WENO-JS, WENO-Z (p=k−1) and WENO-PW (b= 20) approaches. . . . . . . . . . . 128 F.4 L1,L2and L∞error norms and corresponding convergence rates at t= 30 using a 3-rd, 5-th, 7-th and 9-th order ADER scheme in combination with the optimal reconstruction. CF L is set to 0.45. The number of cells appearing in the table corresponds to the number of cells in each direction when using a regular grid. . . . . . . . . . . . . . . . . . . . . . 129 F.5 L1,L2and L∞error norms and corresponding convergence rates at t= 30 using a 3-rd, 5- th, 7-th and 9-th order ADER scheme in combination with the WENO-JS reconstruction. CF L is set to 0.45. The number of cells appearing in the table corresponds to the number of cells in each direction when using a regular grid. . . . . . . . . . . . . . . . . . . . . . 129 F.6 L1,L2and L∞error norms and corresponding convergence rates at t= 30 using a 3-rd, 5- th, 7-th and 9-th order ADER scheme in combination with the WENO-PW reconstruction. CF L is set to 0.45. The number of cells appearing in the table corresponds to the number of cells in each direction when using a regular grid. . . . . . . . . . . . . . . . . . . . . . 130 F.7 L1,L2and L∞error norms and corresponding convergence rates at t= 30 using a 3-rd, 5-th, 7-th and 9-th order ADER scheme in combination with the WENO-Z (p=k−1) reconstruction. CF L is set to 0.45. The number of cells appearing in the table corresponds to the number of cells in each direction when using a regular grid. . . . . . . . . . . . . . 130 F.8 Section 6.2.3. Order of convergence for the 1st, 3rd and 5th order AR-ADER method, MUSCLS method (minmod) and TT-ADER scheme at t= 0.1s................ 131 F.9 Section 6.3.3. Errors and orders of convergence for hand qat t= 0.05 s using 3-th order AR-ADER method. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
72 LIST OF TABLES F.10 Section 6.3.3. Errors and orders of convergence for hand qat t= 0.05 s using 5th order AR-ADER method. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
73 Appendix A First order approximate Riemann solvers A.1 First order Augmented solver for scalar equations Scalar version of RP in (3.17) reads ∂u ∂t +∂f(u) ∂x =s u(x, 0) = uix < 0 ui+1 x > 0 (A.1) where u∈Ris the conserved variable, s∈Rthe source term and f(u) : R→Rthe physical flux, which is a nonlinear function of the conserved variable. The integral form of (A.1) over the control volume [0,∆t]×[−xL, xR]is given by ZxR −xLZ∆t 0∂u ∂t +∂f ∂x −sdxdt = 0 (A.2) and the following expression for the integral volume of u(x, ∆t)inside [−xL, xR]is obtained ZxR −xL u(x, ∆t)dx =xRui+1 +xLui−(δf −¯s)i+1 2∆t(A.3) with fi+1 =f(ui+1)and fi=f(ui)and the source term integrated as ZxR −xLZ∆t 0 s(ui, ui+1, t = 0) dxdt = ∆t¯si+1 2.(A.4) Problem in (A.1) can be approximated by the following constant coefficient linear RP ∂ˆu ∂t +e λi+1 2 ∂ˆu ∂x =s ˆu(x, 0) = uix < 0 ui+1 x > 0 (A.5) where ˆu(x, t)is the approximate solution of (A.1) and e λi+1 2is a constant wave velocity defined as a function of left and right states (uiand ui+1) that represents an approximation of the propagation velocity λ(u) = ∂uf(u)at xi+1 2. If expressing the integral form of (A.19) over the same control volume than in the previous case
74 First order approximate Riemann solvers ZxR −xL ˆu(x, ∆t)dx =xRui+1 +xLui−e λδu + ¯si+1 2 ∆t(A.6) and imposing consistency condition between (A.3) and (A.6) ZxR −xL ˆu(x, ∆t)dx =ZxR −xL u(x, ∆t)dx (A.7) the following constraint is noticed δfi+1 2=e λi+1 2δui+1 2.(A.8) that allows to compute the value of e λi+1 2. The solution for ˆuin (A.5) consists of three regions, as depicted in Figure A.1 for the particular case when e λi+1 2>0. t x ∆t ¯s ui ui=u− iu+ i+1 ui+1 ui+1 ˆu(x, t) x=0 x e λi+1 2 Figure A.1: Values of the solution ˆu(x, t)in each wedge of the (x, t)plane. It is possible to define the solution for each characteristic RP on the left and right sides of the taxis, denoted by u− iand u+ i+1 respectively as depicted in Figure A.1. These values are defined as u− i= lim x→0−ˆu(x, t)u+ i+1 = lim x→0+ˆu(x, t)(A.9) In Figure A.1, it is observed that the solution on the left hand side of the interface, u− i, is equal to the left state since the wave propagates to the right. However, a new state on the right hand side of the interface, u+ i+1, appears. To find the value for u+ i+1 the RH condition across the steady wave at the interface must be obtained first f+ i+1 −f− i−¯si+1 2= 0 (A.10) On the other hand, if we assume that the difference of states and fluxes across the discontinuity are related using the approximate wave velocity in the following way f+ i+1 −f− i=e λi+1 2(u+ i+1 −u− i)(A.11)
A.2 First order Augmented solvers for systems 75 then, the right state can be obtained by substitution of (A.11) in (A.10), yielding u+ i+1 =u− i+¯s e λi+1 2 =ui+¯s e λi+1 2 (A.12) It is also possible to apply the RH condition across the positive moving wave as fi+1 −f+ i+1 =e λi+1 2(ui+1 −u+ i+1)(A.13) and substitution of (A.12) in (A.13) leads to the expression for the right state flux f+ i+1 =fi+ ¯si+1 2(A.14) The solution in the x−tplane can be expressed as a piecewise constant function that depends upon x and tas ˆu(x, t) = uiif x < e λi+1 2t ui+ (θδu)i+1 2if e λi+1 2t < x < 0 ui+1 if 0< x (A.15) when e λi+1 2<0, and ˆu(x, t) = uiif x < 0 ui+1 −(θδu)i+1 2if 0< x < e λi+1 2t ui+1 if e λi+1 2t < x (A.16) when e λi+1 2>0, with θi+1 2= 1 −¯s δf i+1 2 (A.17) and from Equations (A.15) and (A.16) they yield u− i=(uiif e λi+1 2>0 ui+ (θδu)i+1 2if e λi+1 2<0 u+ i+1 =(ui+1 −(θδu)i+1 2if e λi+1 2>0 ui+1 if e λi+1 2<0 (A.18) A.2 First order Augmented solvers for systems A.2.1 Approximate solution using ARoe solver RP in (3.17) can be approximated by exactly solving the following constant coefficient linear RP ∂ˆ U ∂t +e Ji+1 2 ∂ˆ U ∂x =S ˆ U(x, 0) = Uix < 0 Ui+1 x > 0 (A.19) where ˆ U(x, t)is the approximate solution of (3.17) and e Ji+1 2=e Ji+1 2(Ui,Ui+1)is a constant matrix defined as a function of left and right states (Uiand Ui+1) that represents an approximation of the Jacobian at xi+1 2.
76 First order approximate Riemann solvers If expressing the integral form of (A.19) over the same control volume than in the previous case ZxR −xL ˆ U(x, ∆t)dx =xRUi+1 +xLUi−e JδU+¯ Si+1 2 ∆t(A.20) and imposing the consistency condition ZxR −xL ˆ U(x, ∆t)dx =ZxR −xL U(x, ∆t)dx (A.21) the following constraint is noticed δFi+1 2=e Ji+1 2δUi+1 2.(A.22) Matrix e Ji+1 2is considered to be diagonalizable with Nλapproximate real eigenvalues e λ1 i+1 2< . . . < e λI i+1 2<0<e λI+1 i+1 2 < ... < e λNλ i+1 2 (A.23) and Nλeigenvectors ee1, ..., eeNλ. With them, two approximate matrices, e Pi+1 2= (ee1, ..., eeNλ)i+1 2and e P−1 i+1 2 are built with the following property e Ji+1 2= (e Pe Λe P−1)i+1 2,e Λi+1 2= e λ10 ... 0e λNλ i+1 2 (A.24) where e Λi+1 2is a diagonal matrix with approximate eigenvalues in the main diagonal. As done in Section 2.4.1, system in (A.19) can be transformed using e P−1matrix as follows e P−1 i+1 2 ∂ˆ U ∂t +e Ji+1 2 ∂ˆ U ∂x !=e P−1 i+1 2 S(A.25) expressing (A.19) in terms of the characteristic variables ˆ W=e P−1 i+1 2 ˆ U, with ˆ W= ( ˆw1, ..., ˆwNλ). This transformation leads to a decoupled system that generates the following linear RP ∂ˆ W ∂t +e Λi+1 2 ∂ˆ W ∂x =Bi+1 2 ˆ W(x, 0) = (Wi=e P−1 i+1 2 Uiif x < 0 Wi+1 =e P−1 i+1 2 Ui+1 if x > 0 (A.26) with Bi+1 2=e P−1 i+1 2 S= (β1, ..., βNλ)i+1 2, where each equation ∂ˆwm ∂t +e λm i+1 2 ∂ˆwm ∂x =βm i+1 2, m = 1, ..., Nλ(A.27) involves the variable ˆwmand the source term βm i+1 2. As equations in (A.27) are decoupled, RP in (A.26) can be decomposed in Nλindependent RPs ∂ˆwm ∂t +e λm i+1 2 ∂ˆwm ∂x =βm i+1 2 ˆwm(x, 0) = wm iif x < 0 wm i+1 if x > 0 (A.28)
A.2 First order Augmented solvers for systems 77 t x ∆t ¯ βm wm i wm i=wm,− iwm,+ i+1 wm i+1 wm i+1 ˆwm(x, t) x=0 x e λm i+1 2 Figure A.2: Values of the solution ˆw(x, t)in the (x, t)plane. The solution for each ˆwmcharacteristic variable is given by the solution of the scalar RP (A.28) [weaksol] and and consist of three regions as depicted in Figure A.2. The solution can be expressed as a piecewise constant function that depends upon xand tas ˆwm(x, t) = wm iif x < e λm i+1 2t wm i+ (θδw)m i+1 2if e λm i+1 2t < x < 0 wm i+1 if 0< x (A.29) when e λm i+1 2<0, and ˆwm(x, t) = wm iif x < 0 wm i+1 −(θδw)m i+1 2if 0< x < e λm i+1 2t wm i+1 if e λm i+1 2t < x (A.30) when e λm i+1 2>0, with θm i+1 2= 1 −¯ βm e λmαmi+1 2 (A.31) where the set of wave strengths is defined as Ai+1 2= (α1, ..., αNλ)T i+1 2=δWi+1 2= (e P−1δU)i+1 2(A.32) and the set of source strengths ¯ Bi+1 2= (¯ β1, ..., ¯ βNλ)T i+1 2= (e P−1¯ S)i+1 2(A.33) Analogously, it is possible to define the solution for each characteristic RP on the left and right sides of the taxis, denoted by wm,− iand wm,+ i+1 respectively as depicted in Figure A.2. These values are defined as wm,− i= lim x→0−ˆwm(x, t)wm,+ i+1 = lim x→0+ˆwm(x, t)(A.34)
78 First order approximate Riemann solvers and from Equations (A.29) and (A.30) they yield wm,− i=(wm iif e λm i+1 2>0 wm i+ (θδw)m i+1 2if e λm i+1 2<0 wm,+ i+1 =(wm i+1 −(θδw)m i+1 2if e λm i+1 2>0 wm i+1 if e λm i+1 2<0 (A.35) t x Ui Um,− iUI iUI+1 i+1 Um,+ i+1 Ui+1 e λ1 i+1 2e λ2 i+1 2e λm i+1 2e λm+1 i+1 2e λI i+1 2e λI+1 i+1 2e λm−1 i+1 2e λm i+1 2e λNλ i+1 2 ˆw(x, ∆t) x t= ∆t w1 i w1,− iw1,+ i+1 =w1 i+1 w2 i w2,− iw2,+ i+1 =w2 i+1 wm i wm,− iwm,+ i+1 =wm i+1 wm+1 i wm+1,− iwm+1,+ i+1 =wm+1 i+1 wI i wI,− iwI,+ i+1 =wI i+1 wI+1 i=wI+1,− i wI+1,+ iwI+1 i+1 Figure A.3: Upper: Approximate solution ˆ U(x, t). The solution consist of Nλinner constant states separated by a stationary shock wave, with celerity S= 0 at x= 0. Lower: The solution for characteristic variables ˆwm(x, t)for m= 1, ..., I + 1 is depicted at t= ∆t. The derivation of the general solution ˆ U(x, t)for a linear system is based on the expansion of the solution as a linear combination of the vectors that compose the Jacobian’s eigenvectors basis, using the relation U=e PW, as follows ˆ U(x, t) = Nλ X m1=1 ˆwm1(x, t)eem1 i+1 2 ,(A.36) where the scalar values ˆwm1(x, t)are the characteristic approximate solutions at the sought point and represent the strength of each wave.
A.2 First order Augmented solvers for systems 79 If focusing on a constant state on the left hand side of the t-axis, Um,−, defined between characteristic lines e λm i+1 2tand e λm+1 i+1 2 t, the solution is given by the combination of the characteristic solutions in the spatial domain [e λm i+1 2t, e λm+1 i+1 2 t]. Considering that Ui=PNλ m1=1 wm1 ieem1 i+1 2 ,δwm1 i+1 2 =αm1 i+1 2 and the scalar solutions provided before, an arbitrary left state can be expressed as Um,− i=Ui+ m X m1=1 (θαee)m1 i+1 2 ,(A.37) When seeking the primitive vector solution for a state defined on the right hand side of the t-axis, Um,+ i+1 , it has to be defined between characteristic lines e λm−1 i+1 2 tand e λm i+1 2t. Following expansion in (A.36), the combination of the characteristic solutions in the spatial domain [e λm−1 i+1 2 t, e λm i+1 2t]provides Um,+ i+1 =Ui+1 − Nλ X m1=m (θαee)m1 i+1 2 (A.38) Expressions for U− iand U+ i+1 can be derived from the previous results, setting m=Iin (A.37) and m=I+ 1 in (A.38) respectively, leading to U− i=Ui+ I X m1=1 (θαee)m1 i+1 2 U+ i+1 =Ui+1 − Nλ X m1=I+1 (θαee)m1 i+1 2 (A.39) The difference between left and right states across the interface can be expressed as U+ i+1 −U− i=Ui+1 −Ui− Nλ X m1=1 (θαee)m1 i+1 2 (A.40) In order to provide a complete description of the approximate flux function ˆ F(x, t), the inner constant fluxes on the left side of the (x, t)plane will be denoted by Fm,− i, where 1≤m≤I. On the right side of the (x, t)plane solution, inner constant states are denoted by Fm,+ i+1 , where I+ 1 ≤m≤Nλ. The approximate solution for the fluxes can be constructed defining appropriate RH condition across each moving wave. Approximate fluxes on the left and right side of the taxis, F− iand F+ i+1, can be derived using the telescopic property as F− i=Fi+ I X m1=1 e λ−αθeem1 i+1 2 F+ i+1 =Fi+1 − Nλ X m1=I+1 e λ+αθeem1 i+1 2 (A.41) The corresponding intercell numerical fluxes for the approximate first order Godunov’s method are given by F− i+1 2 =F− iF+ i−1 2 =F+ i(A.42) and updating expression in (3.13) yields Un+1 i=Un i−(F− i−F+ i)∆t ∆x(A.43)
86 WENO reconstruction procedures C(k) rj (x=xi+1 2) = c(k) rj ,C(k) rj (x=xi−1 2) = ˜c(k) rj (B.26) Expression in (B.25) can expressed in a more compact form as p(r, k, ν, ¯v) = pr(ν) = k−1 X j=0 C(k) rj (ν) ¯vj, (B.27) where rand kdescribe the stencil and the position of the reconstruction cell, νstands for the spatial variable and ¯v for the vector of cell averages in the stencil, with components ¯vj= ¯ui−r+j for j= 0, ..., k −1. d) Computation of the linear c(k) rj coefficients. The evaluation of Equation (B.23) at xi+1 2(right boundary of the cell Ii) provides the approximation to the value u(xi+1 2), denoted by ui+1 2 ui+1 2=pi(xi+1 2) = k−1 X j=0 k X m=j+1 Pk l=0 l6=mQkq=0 q6=m,l xi+1 2−xi−r+q−1 2 Qk l=0 l6=mxi−r+m−1 2−xi−r+l−1 2 ¯ui−r+j∆xi−r+j(B.28) As outlined before, this expression may be seen as a summation of constants, denoted by c(k) rj , multiplied by the cell averages ¯ui−r+j, following the equation (B.7). The expression for these constants c(k) rj results from the evaluation of (B.24) at xi+1 2 c(k) rj = k X m=j+1 Pk l=0 l6=mQkq=0 q6=m,l xi+1 2−xi−r+q−1 2 Qk l=0 l6=mxi−r+m−1 2−xi−r+l−1 2 ∆xi−r+j(B.29) If we now rewrite this expression for the particular case of uniform grid (constant ∆x), we finally obtain c(k) rj = k X m=j+1 Pk l=0 l6=mQkq=0 q6=m,l (r−q+ 1) Qk l=0 l6=m(m−l)(B.30) B.2 Weighted Essentially Non-Oscillatory (WENO) reconstruction In this section, the procedure to construct a WENO reconstruction are provided. Before starting, the reader must notice that there are different sorts of problems for which WENO procedures are designed such as WENO interpolation, WENO integration, WENO approximation to the first derivative and WENO reconstruction [32]. WENO interpolation departs from pointwise information instead of cellaveraged values and it is used in finite difference methods. WENO integration provides an approximation to the integral of a function, given its values at grid points. WENO approximation to the first derivative and WENO reconstruction are equivalent and depart from the cell averages of a function. The case analyzed in this text is the WENO reconstruction: from cell averages, we have to compute the value of the function at the cell boundaries. This procedure is widely used in the numerical solution of conservation laws. In the previous section it was detailed how to perform a simple data reconstruction using linear interpolation: from cell averages in the stencil Sr(i), an approximation to the cell boundary values of cell Iiwas computed. Now, the procedure goes further and the reconstruction will depend on the
B.2 Weighted Essentially Non-Oscillatory (WENO) reconstruction 87 shape of the function (on its smoothness), preventing the solution from being oscillatory. Moreover, the starting data set for the interpolation will be broader than in the previous case. Instead of computing the approximation of the function inside one cell with the data stored in only one stencil of kcells, a combination of kdifferent stencils composed of kcells each one will be used. This leads to a reconstruction of 2k−1-th order of accuracy. The smoothness of the function inside each stencil is measured by a suitable smoothness indicator. The final reconstruction combines the kdifferent stencils, where the weight associated to each of them is determined by this indicator. The reconstruction is computed in two steps. The first one is related to the calculation of the coefficients that ensure the equality between the polynomial high order approximation in the big stencil and the linear combination of polynomial lower order approximations in the smaller stencils. These coefficients will be referred to as optimal weights. The second step focuses on the calculation of the non-oscillatory weights, modifying the optimal weights by means of the smoothness indicators. B.2.1 First part: Computation of the optimal weights Before starting, a reconstruction domain must be chosen. In the previous section, the reconstruction procedure used data from only one stencil (composed of kcells). It was shown that depending on the selection of r, and keeping in mind that k=r+s+1,kdifferent pr(x)polynomials associated to kdifferent stencils could be found to approximate the value of u(x)inside a cell. The keystone of the WENO method is to combine these kdifferent pr(x)polynomials to generate a (2k−1)-th order reconstruction. To construct a WENO reconstruction of (2k−1)-th order on the cell Ii= [xi−1 2, xi+1 2]for the function u(x), we need the kdifferent stencils for r= 0, ..., k −1, denoted by Sr(i)and defined as Sr(i) = {Ii−r, ..., Ii+k−r−1},r= 0, ..., k −1(B.31) where s=k−r−1. Stencils Sr(i)are overlapped on the interval [xi−1 2, xi+1 2], as follows ∩k−1 r=0 Sr(i) = Ii(B.32) Then, they are used to generate a bigger stencil that will contain all the cells from the smaller stencils, denoted by T(i) = ∪k−1 r=0 Sr(i) = {Ii−k+1, ..., Ii+k−1}(B.33) As it was defined in equation (B.10), there is a unique polynomial pr(x)associated to each stencil Sr, which is a k-th order approximation to the function u(x)on the stencil Sr(i)if this function is smooth inside it, as follows pr(x) = u(x) + O∆xk,x∈Sr,r= 0, ..., k −1(B.34) The expression for pr(x)was derived in equation (B.23). If we evaluate it at xi+1 2or xi−1 2, it provides approximations to the cell boundary values u(r) i+1 2 =pr(xi+1 2) = k−1 X j=0 c(k) rj ¯ui−r+j,u(r) i−1 2 =pr(xi−1 2) = k−1 X j=0 ˜c(k) rj ¯ui−r+j(B.35) The procedure in (B.23) can be extended to obtain a polynomial q(x), which is a 2k−1-th order accurate approximation of the function u(x)on the big stencil T(i), denoted by q(x) = 2k−1 X j=1 2k X m=j+1 P2k l=1 l6=mQ2k q=1 q6=m,l x−xi−k+q−1 2 Q2k l=1 l6=mxi−k+m−1 2−xi−k+l−1 2 ¯ui−k+j∆xi−k+j(B.36)
88 WENO reconstruction procedures that can be written as q(x) = 2k−1 X j=1 C(2k−1) rj (x)¯ui−k+j(B.37) where superscript 2k−1only refers to the order of the approximation. The approximation at the right boundary of Iiis denoted as ui+1 2=q(x=xi+1 2) = 2k−1 X j=1 c(2k−1) k−1,j ¯ui−k+j(B.38) Note that in (B.38), the value of ris fixed, r=k−1, as the big stencil T(i)is always symmetric. Now, the goal is to express the coefficients c(2k−1) k−1,j of the big stencil as a linear combination of the previously computed coefficients c(k) rj obtained for the small stencils. By doing this, it will be possible to express polynomial q(x)in terms of the k pr(x)polynomials. At a certain point x, the evaluation of q(x)will be expressed as a linear combination of the evaluations provided by pr(x)and the coefficients that provide this linear combination are the so called optimal weights. Computation of optimal weights for a 5-th Order WENO reconstruction For the sake of clarity, a simple example of the procedure for the computation of the optimal weights is given in this text. The details concerning the calculation of the optimal weights for a 5-th order WENO reconstruction, based on 3-cell stencil reconstruction with 3-th order polynomials (k= 3) are given below. A uniform grid will be assumed. The three different stencils are given by S0(i) = {Ii, Ii+1, Ii+2} S1(i) = {Ii−1, Ii, Ii+1} S2(i) = {Ii−2, Ii−1, Ii} (B.39) and the stencil T(i)can be constructed T(i) = S0∪S1∪S2={Ii−2, Ii−1, Ii, Ii+1, Ii+2}(B.40) Stencils in (B.39) and (B.40) are depicted in Figure B.3 for a random cell Ii. For each stencil, boundary values of u(x)in Iiare obtained using (B.35). At the right boundary, the 3 polyomials pr(x)provide the following approximations u(0) i+1 2 = 2 X j=0 c(3) 0j¯ui+j=1 3¯ui+5 6¯ui+1 −1 6¯ui+2 (B.41) u(1) i+1 2 = 2 X j=0 c(3) 1j¯ui−1+j=−1 6¯ui−1+5 6¯ui+1 3¯ui+1 (B.42) u(2) i+1 2 = 2 X j=0 c(3) 2j¯ui−2+j=1 3¯ui−2−7 6¯ui−1−11 6¯ui(B.43) which are a 3-th order approximation to the value of the function u(x)at xi+1 2if the function is smooth inside each stencil [32] u(0) i+1 2 =uxi+1 2+O∆x3, if u(x)is smooth inside S0(i)(B.44)
B.2 Weighted Essentially Non-Oscillatory (WENO) reconstruction 89 Ii Ii−1 Ii−2 Ii−3Ii+1 Ii+2 Ii+3 ¯ui ¯ui−1 ¯ui−2 ¯ui−3¯ui+1 ¯ui+2 ¯ui+3 u(x) S2(i) S1(i) S0(i) T(i) x Figure B.3: Stencil combination for a 5-th order WENO reconstruction u(1) i+1 2 =uxi+1 2+O∆x3, if u(x)is smooth inside S1(i)(B.45) u(2) i+1 2 =uxi+1 2+O∆x3, if u(x)is smooth inside S2(i)(B.46) When the 5-th order centered reconstruction generated using q(x), Equation (B.35) leads to ui+1 2= 5 X j=1 c(5) 2j¯ui−3+j=1 30 ¯ui−2−13 60 ¯ui−1+47 60 ¯ui+9 20 ¯ui+1 −1 20 ¯ui+2 (B.47) which is a 5-th order approximation to the value of the function u(x)at the boundary xi+1 2if the function is smooth inside T(i) ui+1 2=uxi+1 2+O∆x5(B.48) The 5-th order reconstruction in (B.47) may also be expressed as a convex combination of the 3-th order approximations, u(r) i+1 2 in (B.41-B.43). The coefficients that determine this combination will be unique and denoted by γ0,γ1,γ2, giving ui+1 2=γ0u(0) i+1 2 +γ1u(1) i+1 2 +γ2u(2) i+1 2 (B.49) These coefficients are called optimal weights. They can be easily computed by imposing the equality between (B.47) and (B.49) as 1 30 ¯ui−2−13 60 ¯ui−1+47 60 ¯ui+9 20 ¯ui+1 −1 20 ¯ui+2 =γ01 3¯ui+5 6¯ui+1 −1 6¯ui+2+ +γ1−1 6¯ui−1+5 6¯ui+1 3¯ui+1+γ21 3¯ui−2−7 6¯ui−1−11 6¯ui(B.50) From equation (B.50) we can obtain the 3 coefficients in (B.49) formulating 2 different equations to satisfy the equality of weights for 2 cell averages in this particular case, and one more equation to satisfy the unit sum of the weights Pk−1 r=0 γr= 1. The following equations, starting from ¯ui−2, appear
90 WENO reconstruction procedures a) The equality of weights for ¯ui−2leads to γ2 1 3=1 30 γ2=1 10 (B.51) b) And the same for ¯ui−1gives −γ2 7 6−γ1 1 6=−13 60 γ1=6 10 (B.52) c) Finally, an additional equation to fulfill the unit sum allows to compute γ0 γ2+γ1+γ0= 1 γ0=3 10 (B.53) The same could be done to compute the weights at the left boundary, denoted by ˜γr. Generalization of the procedure The generalization of the procedure and the steps for the computation of the optimal weights for a (2k−1)-th order accurate approximation are presented next. First, the (2k−1)-th order polynomial, q(x), is expressed in terms of the k-th order polynomials, pr(x), as q(x) = k−1 X r=0 Γr(x)pr(x)(B.54) where Γr(x)are the weights, which are rational functions [32]. Inserting in this equation the expressions for the polynomials pr(x)in (B.25) and q(x)in (B.37), it yields 2k−1 X j=1 C(2k−1) k−1,j (x)¯ui−k+j= k−1 X r=0 Γr(x) k−1 X j=0 C(k) rj (x)¯ui−r+j(B.55) For the sake of clarity, Equation (B.55) is evaluated at x=xi+1 2though any other point could be used for this derivation. The sought optimal weights are only valid at the point where the evaluation is carried out, in this case at x=xi+1 2. As a result of this evaluation, Equation (B.55) becomes 2k−1 X j=1 c(2k−1) k−1,j ¯ui−k+j= k−1 X r=0 γr k−1 X j=0 c(k) rj ¯ui−r+j≡ui+1 2(B.56) where the reconstruction coefficients c(2k−1) k−1,j and c(k) rj are now constant according to (B.26) and with γr= Γrx=xi+1 2the sought weights. From (B.56) and taking into account the condition Pk−1 r=0 γr= 1, the following system of equations for the optimal weights γris formulated M·γ=c(B.57) where M∈Rk×k,γ∈Rkand c∈Rk
B.2 Weighted Essentially Non-Oscillatory (WENO) reconstruction 91 k γ0γ1γ2γ3γ4 55 126 20 63 10 21 10 63 1 126 44 35 18 35 12 35 1 35 33 10 6 10 1 10 22 3 1 3 1 1 Table B.1: Linear coefficients γrfor k= 1,2,3,4,5 c(k) k−1,00 0 0 ··· 0 c(k) k−1,1c(k) k−2,00 0 ··· 0 . . .. . ..... . . . . .. . ..... . . c(k) k−1,k−2c(k) k−2,k−3c(k) k−3,k−4··· c(k) 1,00 111··· ··· 1 γk−1 γk−2 . . . γ0 = c(2k−1) k−1,0 c(2k−1) k−1,1 . . . c(2k−1) k−1,k−1 1 The components of the matrix Mat a location (α, β)are given by Mα,β = c(k) k−β,α−βif α≥β, α 6=k 1if α=k 0if α < β for 1≤α≤kand 1≤β≤k, where αstands for the row and βstands for the column inside the matrix. Once the coefficients γrhave been computed, the expression for the approximation to the value of u(x)at the right boundary of Iican be computed as follows ui+1 2= k−1 X r=0 γru(r) i+1 2 (B.58) where ui+1 2is (2k−1)-th order accurate as long as the function u(x)is smooth inside the stencil T(i). Table B.1 shows the coefficients γrcomputed using (B.57) for five different values of k, from 1 to 5. They can be used to construct up to a 9-th order reconstruction at xi+1/2. Recall that different optimal weights are obtained depending on the point at which the reconstruction has to be computed. Therefore, the same procedure should be repeated at each point where the reconstruction has to be calculated. For instance, to compute a (2k−1)-th order reconstruction at the left boundary of Iiwe use ui−1 2= k−1 X r=0 ˜γru(r) i−1 2 (B.59) and for the particular case of a uniform grid, ˜γr=γk−1−r, for r= 0, ..., k −1, due to the symmetry of stencil T(i). B.2.2 Second part: Calculation of the non-oscillatory weights As outlined before, the approximation in (B.58) of the value of the function at the cell boundaries will be (2k−1)-th accurate as long as the function is smooth inside the big stencil T(i). If the function is
92 WENO reconstruction procedures non-smooth or discontinuous, a lower order of accuracy is reached. Moreover, oscillations will appear due to the presence of discontinuities. This fact motivates the idea of using a modified set of coefficients instead of the optimal weights in order to reduce the weight of the contributions associated to those stencils including discontinuities. Thus, instead of computing the (2k−1)-th order approximation using the optimal weights, γr, as in (B.58), non-oscillatory WENO weights, denoted by ωr, will be used. The non-oscillatory reconstruction of u(x)at the right cell boundary will be computed now as ui+1 2= k−1 X r=0 ωru(r) i+1 2 (B.60) where the set of non-oscillatory weights ωris sought to provide a linear convex combination using the k different low order reconstructions. Therefore we require k−1 X r=0 ωr= 1 and ωr≥0(B.61) In the case when u(x)is smooth, both expressions (B.58) and (B.60) are equivalent and provide a (2k−1)-th order approximation. According to the properties of the WENO reconstruction [33], WENO weights ωrare a k−1-th order approximation to the optimal weights γr, ωr=γr+O(∆xk−1)(B.62) in smooth monotone regions. If there is a discontinuity in the stencil, then ωr=γr+O(∆x)(B.63) In order to compute the WENO nonlinear weights ωr, the nonlinear coefficients αrare formulated first αr=γr (βr+ǫ)2,r= 0, ..., k −1(B.64) with ǫa properly defined small parameter (see [31], p.4). The smoothness indicator, βr, can be computed following [33], βr= k−1 X l=1 Zxi−1 2 xi+1 2 ∆x2l−1∂lpr(x) ∂xl2 dx,r= 0, ..., k −1(B.65) defined as the sum of the L2norms of all derivatives of the interpolating polynomial pr(x)over the interval hxi−1 2, xi+1 2i. The term ∆x2l−1is included to remove ∆x-dependent factors in the derivatives of the polynomials. Once computed, the αrcoefficients are normalized so that their sum is equal to the unity, leading to the desired non-oscillatory weights ωr=αr Pk−1 l=0 αl ,r= 0, ..., k −1(B.66) Repeating the procedure for ˜ωr, which are the non-oscillatory weights associated to the linear weights at the left interface, ˜γr, the WENO reconstruction of u(x)at the cell boundaries will be computed as ui+1 2= k−1 X r=0 ωru(r) i+1 2 ,ui−1 2= k−1 X r=0 ˜ωru(r) i−1 2 (B.67) Considering again the general case, it was shown that q(x)can be constructed in two different ways: in Equation (B.54) it was defined as a linear combination of lower order polynomials pr(x)while in
B.2 Weighted Essentially Non-Oscillatory (WENO) reconstruction 93 Equation (B.37) it was defined by directly constructing a (2k−1)-th order polynomial using the general polynomial reconstruction procedure. Following the first approach, it is possible to construct a polynomial q(x)reducing the contribution of certain pr(x)polynomials which may generate oscillations. This new polynomial is defined, qWENO(x) qWENO (x) = k−1 X r=0 Ωr(x)pr(x)(B.68) where Ωr(x)is the general expression for the WENO non-oscillatory weights, for instance Ωrxi+1 2=ωrΩrxi−1 2= ˜ωr(B.69) For the sake of clarity when moving to 2D WENO reconstruction procedures, expression in (B.68) can be expressed in a more compact form as q(k, ν, p) = qWENO (ν) = k−1 X r=0 Ωr(ν)pr(ν)(B.70) where kis the size of the small stencils, νstands for the spatial variable (ν≡xin this case) and p= {pr(ν)}r=0,...,k−1for the vector of low order polynomials used to generate the high order reconstruction. Computation of βr In order to compute the smoothness indicator, βr, using (B.65), a general expression for the the n-th derivative of pr(x)must be obtained departing from formulation in (B.25), as ∂n(pr(x)) ∂xn=∂n ∂xn k−1 X j=0 C(k) rj (x)¯ui−r+j = k−1 X j=0 ∂n ∂xnC(k) rj (x)¯ui−r+j(B.71) with C(k) rj (x)defined in (B.24). The term ∂n ∂xnC(k) rj (x)is the n-th derivative of the expression in (B.24), which is expressed as ∂n ∂xnC(k) rj (x)= k X m=j+1 Pk l1=0 l16=mPkl2=0 l26=m,l1 ···Pkln+1=0 ln+16=m,l1,...,lnQkq=0 q6=m,l1,...,ln+1 x−xi−r+q−1 2 Qk l=0 l6=mxi−r+m−1 2−xi−r+l−1 2 ∆xi−r+j (B.72) with n= 1, ..., k −2. To compute βrusing (B.65), numerical integration must be carried out. A suitable quadrature formula must be used for the integration of the k−2first terms of the summation. For the last term (l=k−1), numerical integration is not needed since the derivative is a constant value. For instance, when using the 3-point Newton-Cotes quadrature rule, known as Simpson’s rule and given by Zb a f(x)dx ≈b−a 6f(a) + 4fa+b 2+f(b),(B.73) an approximate expression for the computations of βrcan be obtained by using (B.73) in (B.65). In case of a uniform grid, (B.65) becomes
94 WENO reconstruction procedures βr= k−1 X l=1 Zxi−1 2 xi+1 2 ∆x2l−1∂lpr(x) ∂xl2 dx ≈ ≈ k−2 X l=1 ∆x 6 ∆x2l−1∂lpr(x) ∂xl2 x=xi−1 2 + 4∆x2l−1∂lpr(x) ∂xl2 x=xi + ∆x2l−1∂lpr(x) ∂xl2 x=xi+1 2 + +∆x2k−3∂k−1pr(x) ∂xk−12 ∆x (B.74) noticing that it is necessary the evaluation of the spatial derivatives of pr(x)at three different points: at the cell boundaries and at the center of the cell. Using (B.71) it is possible to compute the value of the n-th derivative of pr(x)at a certain point. When having uniform grid, derivatives of the coefficients for (B.71) at the right boundary are given by ∂n ∂xnc(k) rj = k X m=j+1 Pk l1=0 l16=mPkl2=0 l26=m,l1 ···Pkln+1=0 ln+16=m,l1,...,lnQkq=0 q6=m,l1,...,ln+1 (r−q+ 1) Qk l=0 l6=m(m−l) ∆x−n(B.75) where c(k) rj =C(k) rj (x=xi+1 2)and n= 1, ..., k −2. Derivatives of degree up to k−2at the cell center are given by ∂n ∂xn˘c(k) rj = k X m=j+1 Pk l1=0 l16=mPkl2=0 l26=m,l1 ···Pkln+1=0 ln+16=m,l1,...,lnQkq=0 q6=m,l1,...,ln+1 (r−q+ 1/2) Qk l=0 l6=m(m−l) ∆x−n(B.76) with ˘c(k) rj =C(k) rj (xi). Derivatives of degree up to k−2at the left boundary can be obtained using ∂n ∂xn˜c(k) rj =∂n ∂xnc(k) r−1,j(B.77) with ˜c(k) rj =C(k) rj (x=xi−1 2) Equation (B.72) is only valid for the derivatives of order n= 1, ..., k−2, since the product term cannot be computed for the case when n=k−1. To calculate the (k−1)-th derivative, which is constant inside the cell, the following equation is used ∂k−1 ∂xk−1C(k) rj (x)= k X m=j+1 k! Qk l=0 l6=m(m−l) ∆x−(k−1) (B.78) Numerical results of the computation of derivatives for Gaussian type function The following Gaussian function is considered: f(x) = 1 + e−(x+100)2 150 (B.79) The first four derivatives of (B.79) are computed in the domain x= [0,200] using k= 5,∆x= 2 and N= 100. Numerical results at cell boundaries and cell center are plotted in Figure B.4 and compared with the exact solution. Notice that the fourth derivative shown in Figure B.4 is constant inside each cell since reconstructing polynomials are of 4-th degree when setting k= 5.
B.3 Improved WENO procedures 95 -0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 0.08 60 80 100 120 140 u(1) x r=0 r=1 r=2 r=3 r=4 Exact -0.02 -0.015 -0.01 -0.005 0 0.005 0.01 0.015 60 80 100 120 140 u(2) x r=0 r=1 r=2 r=3 r=4 Exact -0.003 -0.002 -0.001 0 0.001 0.002 0.003 60 80 100 120 140 u(3) x r=0 r=1 r=2 r=3 r=4 Exact -0.0004 -0.0002 0 0.0002 0.0004 0.0006 60 80 100 120 140 u(4) x r=0 r=1 r=2 r=3 r=4 Exact Figure B.4: Numerical results of the computation of first four derivatives of function in (B.79) using k= 5,∆x= 2 and N= 100. B.3 Improved WENO procedures B.3.1 WENO-5M The mapped WENO approach was first introduced in [22] as a fix for the convergence issues that appeared at critical points when using the WENO-JS finite differences scheme. The resulting numerical scheme was only designed to reach fifth order of accuracy and was called WENO-5M [22]. In the WENO-JS scheme conditions in (B.61) and (B.62) were required to ensure the formal order of accuracy of the WENO reconstruction. But the achievement of formal order of accuracy require that WENO weights become a 3-rd order approximation of the optimal weights γrat critical points [22]. This constrain can be enforced through a mapping procedure. In [22] the following mapping function was proposed gr(ω) = ω(γr+γ2 r−3γrω+ω2) γ2 r+ω(1 −2γr)r= 0,1,2(B.80) and combines the WENO-JS weights and the optimal weights. The WENO-5M weights, ωM r, are computed as follows αM r=gr(ωJS r)ωM r=αM r Pk−1 l=0 αM l ,r= 0,1,2(B.81) Function gr(ω)in (B.80) becomes flat in the neighborhood of the r-th optimal weight γr, and in smooth regions where the deviation of the original WENO-JS weights ωJS rfrom the optimal weights γr is relatively small, function gr(ω)maps those weights providing more accurate values, closer to γr. In non-smooth regions the original weights ωJS rmay get extreme values (close to 0 or 1), and gr(ω)provides
103 Appendix D 2D extension of the WENO reconstruction method D.1 Interpolation and reconstruction in 2D In this section, the problem of data reconstruction in 2D at an arbitrary point inside a cell by means of polynomial interpolation when departing from cell averages is considered. The function u(x, y)will be defined departing from the starting data, that will be considered as the average value of this function in each cell. The definition of u(x, y)is useful for the derivation of the reconstruction procedure but its analytical expression will be unknown in most cases. The computational grid, shown in Figure D.1, is composed by Nx×Nycells as Ω = [a, b]×[c, d](D.1) with a=x1 2< x3 2<... < xNx−1 2< xNx+1 2=b c=y1 2< y3 2<... < yNy−1 2< yNy+1 2=d(D.2) with cells and cell sizes defined by Ii,j =hxi−1 2, xi+1 2i×hyj−1 2, yj+1 2i(D.3) ∆xi=xi+1 2−xi−1 2≡constant ∆yj=yj+1 2−yj−1 2≡constant (D.4) With the previous definitions, the starting data set is now defined as the the average value of the function u(x, y)in each cell ¯ui=1 ∆xi∆yjZxi+1 2 xi−1 2Zyj+1 2 yj−1 2 u(ξ, η)dηdξ,i= 1,2, ..., Nxj= 1,2, ..., Ny(D.5) The problem we face is to find a polynomial function pr1,r2(x, y)of degree at most k−1for each cell Ii,j, such that it is a k-th order accurate approximation of the function u(x, y)inside Ii,j pr(x, y) = u(x, y) + O∆xk,x∈Ii,j,i= 1,2, ..., Nxj= 1,2, ..., Ny(D.6) In the two-dimensional case, the concept of stencil is generalized to a group of surface connected cells. For each cell, Ii,j, it is possible to define a stencil Sr1,r2(i, j)composed by cell Ii,j plus r1cells to the left, s1cells to the right, r2cells to the top and s2cells to the bottom. If considering Sr1,r2(i, j)with
104 2D extension of the WENO reconstruction method Ii,j Ii−1,j Ii+1,j Ii,j−1 Ii,j+1 Figure D.1: Mesh discretization the same number of cells k, in both directions, we can affirm k=r1+s1+ 1 = r2+s2+ 1. For all cases, the condition r, s ≥0must be satisfied. The stencil can be expressed as Sr1,r2(i, j) = [ l,m∈[0,...,k−1] Ii−r1+l,j−r2+m(D.7) The steps required to generate the reconstructing polynomial departing from cell averages are listed below: a) Stencil selection. Given the cell Ii,j and the order of accuracy required k, we must first choose a stencil Sr1,r2(i, j) with k=r1+s1+ 1 = r2+s2+ 1 cells. There is a unique polynomial pr1,r2(x, y)of degree at most k−1whose cell average value for each cell in the stencil agrees with that of the function u(x, y)[20] 1 ∆xm∆ylZxm+1 2 xm−1 2Zyl+1 2 yl−1 2 pr1,r2(ξ, η)dηdξ = ¯um,l (D.8) with m=i−r1, ..., i +s1and l=j−r2, ..., i +s2. b) Definition of the primitive function. In order to find the interpolating polynomial pr1,r2(x, y)of degree k−1and k-th order of accuracy, a new function is introduced. This new function is the primitive function of u(x, y), denoted by U(x, y), which is defined as the cumulative integral of u(x, y)from −∞ to xand y U(x, y) = Zx −∞ Zy −∞ u(ξ, η)dηdξ (D.9) For a random location in the grid, i, j, the value of this cumulative integral at the right boundary of the cell Ii,j can be computed by the summation of the average values of each cell multiplied by the cell size, from −∞ to the cell Ii,j, as follows: Uxi+1 2, yj+1 2=Zxi+1 2 −∞ Zyj+1 2 −∞ u(ξ, η)dηdξ = i X m=−∞ j X l=−∞ ¯um,l∆xm∆yl(D.10) Also, a polynomial Pr1,r2(x, y)is defined as the unique polynomial function of degree at most kwhich interpolates U(x, y)with k+ 1-th order of accuracy in k+ 1 nodes (which are all the cell boundaries in the stencil) and we denote its derivative by pr1,r2(x, y):
D.1 Interpolation and reconstruction in 2D 105 pr1,r2(x, y) = ∂2 ∂x∂y Pr1,r2(x, y)(D.11) Note that pr1,r2(x, y)is a polynomial of degree k−1and k-th order, defined by k2cells. Polynomial Pr(x)is one order greater, and as the number of cells does not change, k+ 1 interpolation points are necessary. It is worth noticing that this new k+ 1 points are defined at the nodes, even though the value of u(x, y)is not initially defined at these locations. Using (D.11) it is possible to prove the equality in (D.8) 1 ∆xm∆ylZxm+1 2 xm−1 2Zyl+1 2 yl−1 2 pr1,r2(ξ, η)dηdξ =1 ∆xm∆ylZxm+1 2 xm−1 2Zyl+1 2 yl−1 2 ∂2 ∂ξ∂η Pr1,r2(ξ, η)dηdξ = 1 ∆xm∆ylZxm+1 2 xm−1 2 ∂Zyl+1 2 yl−1 2 ∂Pr1,r2(ξ, η) = 1 ∆xm∆ylZxm+1 2 xm−1 2 ∂hPr1,r2ξ, yl+1 2−Pr1,r2ξ, yl−1 2i= 1 ∆xm∆ylhPr1,r2xm+1 2, yl+1 2−Pr1,r2xm+1 2, yl−1 2−Pr1,r2xm−1 2, yl+1 2+Pr1,r2xm−1 2, yl−1 2i ≈1 ∆xm∆ylhUxm+1 2, yl+1 2−Uxm+1 2, yl−1 2−Uxm−1 2, yl+1 2+Uxm−1 2, yl−1 2i= =1 ∆xm∆ylZxm+1 2 xm−1 2Zyl+1 2 yl−1 2 ∂2 ∂ξ∂η U(ξ, η)dηdξ =1 ∆xm∆ylZxm+1 2 xm−1 2Zyl+1 2 yl−1 2 u(ξ, η)dηdξ = ¯um,l (D.12) for any m=i−r1, ..., i +s1and l=j−r2, ..., i +s2. The approximation symbol stands for the approximation of U(x, y)by the interpolating polynomial Pr1,r2(x, y). This interpolation is a k+ 1-th order approximation Pr1,r2(x, y) = U(x, y) + O∆xk+1, x, y ∈Ii,j (D.13) and that of its derivative, a k-th order approximation ∂2 ∂x∂y Pr1,r2(x, y) = ∂2 ∂x∂y U(x, y) + O∆xk,x, y ∈Ii,j .(D.14) c) Lagrange interpolation In [20], the use of the Lagrange form of the interpolating polynomial is proposed. This kind of interpolation is said to be nodal since each weight takes the value of 1 at the corresponding node and 0 at the rest of the nodes. The expression for the 2D Lagrange interpolating polynomial for structured meshes of nx·nypoints is given by L(x) = nx X i=0 ny X j=0 y(xi, yj)Li,j(x, y)(D.15) where Li,j(x, y) = li(x)·lj(y)(D.16) considering the 2D mesh as the intersection of two 1D meshes defined by the points {x1, x2, ..., xnx} and y1, y2, ..., ynyrespectively. The weighting functions are defined as in the 1D case as
106 2D extension of the WENO reconstruction method li(x) = nx Y d=0 d6=i (x−xd) (xi−xd) lj(y) = ny Y d=0 d6=j (y−yd) (yj−yd) (D.17) Making use of the Lagrange formula in (D.15), it is possible to write the expression for the interpolating polynomial Pr1,r2(x, y)at all nodes of the stencil S(i, j)where the values of function U(x, y) are known, yielding Pr1,r2(x, y) = k X m=0 k X l=0 ˜ Um,l k Y d=0 d6=m (x−xi−r1+d−1 2) (xi−r1+m−1 2−xi−r1+d−1 2) k Y d=0 d6=l (y−yj−r2+d−1 2) (yj−r2+l−1 2−yj−r2+d−1 2)(D.18) where ˜ Um,l is a redefined primitive function with origin at (xi−1 2−r1, yj−1 2−r2)and given by ˜ Um,l =Zxi−1 2−r1+m xi−1 2−r1Zyj−1 2−r2+l yj−1 2−r2 u(ξ, η)dηdξ (D.19) The use of ˜ Um,l allows to express (D.18) in terms of exclusively cell averages inside the stencil, since ˜ Um,l = m−1 X e=0 l−1 X d=0 ¯ui−r1+e,j−r2+d∆xi−r1+e∆yj−r2+d(D.20) Taking the cross derivative of (D.18) with respect to xand yand inserting the previous result, a expression for polynomial pr1,r2(x, y)is obtained pr1,r2(x, y) = k X m=0 k X l=0 LmLl m−1 X e=0 l−1 X d=0 ¯ui−r1+e,j−r2+d∆xi−r1+e∆yj−r2+d!(D.21) with Lm= Pk t=0 t6=mQkn=0 n6=m,t x−xi−r1+n−1 2 Qk n=0 n6=mxi−r1+m−1 2−xi−r1+n−1 2 (D.22) Ll= Pk t=0 t6=lQk n=0 n6=l,t y−yj−r2+n−1 2 Qk n=0 n6=lyj−r2+l−1 2−yj−r2+n−1 2 (D.23) A simpler expression for pr1,r2(x, y)can be derived from equation (D.21) taking the cell averages as common factors. The resulting expression represents the reconstructing polynomial function as a linear combination of the cell averages inside the stencil as pr1,r2(x, y) = k−1 X e=0 k−1 X d=0 k X m=e+1 k X l=d+1 LmLl!¯ui−r1+e,j−r2+d∆xi−r1+e∆yj−r2+d(D.24) that can be rewritten as pr1,r2(x, y) = k−1 X e=0 k−1 X d=0 k X m=e+1 Lm k X l=d+1 Ll!¯ui−r1+e,j−r2+d∆xi−r1+e∆yj−r2+d(D.25)
D.2 Dimension-by-dimension 2D reconstruction 107 If defining C(k) r1,e(x) = k X m=e+1 Lm!∆xi−r1+e(D.26) C(k) r2,d(y) = k X l=d+1 Ll!∆yj−r2+d(D.27) it is possible to express Equation (D.25) as pr1,r2(x, y) = k−1 X e=0 k−1 X d=0 C(k) r1,e(x)C(k) r2,d(y) ¯ui−r1+e,j−r2+d(D.28) Where C(k) r1,e(x)and C(k) r2,d(y)are constants at a given xand provide the weights for the linear combination of cell averages. The superscript kof these coefficients stands for the dimension of the stencil in each direction. Remark that coefficients C(k) r1,e(x)and C(k) r2,d(y)are equivalent to those obtained for the 1D case in (B.24). d) Calculation of C(k) r1,e(x)and C(k) r2,d(y)coefficients at the sought point and computation of the reconstruction using (D.28). D.2 Dimension-by-dimension 2D reconstruction In the previous part, the procedure for the generation of a 2D reconstruction departing from cell averages was shown. The expression for the reconstructing polynomial function was obtained in (D.28). Considering this result, it is straightforward to compute the reconstruction at a certain point by calculating first the coefficients C(k) r1,e(x)and C(k) r2,d(y)at the desired point and substituting then in (D.28), getting the sought value. Another possibility would be to obtain the 2D reconstruction by carrying out two 1D reconstructions recursively, for each of the variables, xand y, each time. For instance, let us consider the first 1D reconstruction for variable y. First, for a fixed xvalue, the function u(x, y)can be reconstructed along the ycoordinate using Lagrange interpolation as in the 1D case. Then, the resulting set of reconstructed values at each xposition, which depends upon y, can be used to generate another Lagrange interpolation polynomial that depends upon xand yand corresponds to the sought reconstructing function. For instance, let us consider the first polynomial reconstruction for variable y. The interpolation polynomial will be denoted by Pm r1,r2(y)and constructed using the Lagrange basis, leading to the following expression Pm r1,r2(y) = k−1 X l=0 ˜ Um,l k Y d=0 d6=l (y−yj−r2+d−1 2) (yj−r2+l−1 2−yj−r2+d−1 2)(D.29) where mstands for the xposition. Substitution of ˜ Um,l by the expression provided in (D.20) leads to Pm r1,r2(y) = k−1 X l=0 m−1 X e=0 l−1 X d=0 ¯ui−r1+e,j−r2+d∆xi−r1+e∆yj−r2+d!k Y d=0 d6=l (y−yj−r2+d−1 2) (yj−r2+l−1 2−yj−r2+d−1 2)(D.30) Taking the derivative of (D.30) with respect to y, it yields ∂Pm r1,r2(y) ∂y = k−1 X l=0 "Ll l−1 X d=0 m−1 X e=0 ¯ui−r1+e,j−r2+d∆xi−r1+e!∆yj−r2+d#(D.31)
108 2D extension of the WENO reconstruction method with Lldefined in (D.23). This expression can be rewritten as ∂Pm r1,r2(y) ∂y = k−1 X d=0 k X l=d+1 Ll∆yj−r2+d m−1 X e=0 ¯ui−r1+e,j−r2+d∆xi−r1+e(D.32) and making use of the coefficient C(k) r2,d(y)defined in (D.27), Equation (D.32) can be expressed as ∂Pm r1,r2(y) ∂y = k−1 X d=0 C(k) r2,d(y) m−1 X e=0 ¯ui−r1+e,j−r2+d∆xi−r1+e.(D.33) Factorization of the previous expression for each value of eyields ∂Pm r1,r2(y) ∂y = m−1 X e=0 k−1 X d=0 C(k) r2,d(y)¯ui−r1+e,j−r2+d!∆xi−r1+e.(D.34) noticing that the term inside brackets corresponds to a 1D polynomial reconstruction for a given value of e. The general expression for a 1D reconstruction is provided in (B.27) and referred to as p(r, k, ν, ¯v), where in this case r=r2,ν=yand the vector of cell averages will include the superscript e,r1and r2to denote dependency upon the xposition and the stencils respectively, becoming ¯ve r1,r2and with components ¯ve r1,r2d= ¯ui−r1+e,j−r2+d, for d= 0, ..., k −1. In this case, Equation (B.27) becomes p(r2, k, y, ¯ve r1,r2) = k−1 X d=0 C(k) r2,d(y)¯ui−r1+e,j−r2+d.(D.35) Making use of (D.35), the derivative ∂Pm r1,r2(y)/∂y in Equation (D.34) is finally expressed as ∂Pm r1,r2(y) ∂y = m−1 X e=0 p(r2, k, y, ¯ve r1,r2)∆xi−r1+e.(D.36) On the other hand, an analogous polynomial interpolation can be carried out in the xdirection by means of the Lagrange formula, given by the following expression Pr1,r2(x, y) = k−1 X m=0 Pm r1,r2(y) k Y d=0 d6=m (x−xi−r1+d−1 2) (xi−r1+m−1 2−xi−r1+d−1 2)(D.37) where Pm r1,r2(y)are the values of the 1D interpolating polynomial in (D.30) along yat the kdifferent x positions according to the selected stencil. In order to obtain the sought 2D reconstructing function, pr1,r2(x, y), according to definition in (D.11), we take the second order cross derivative of (D.37) and obtain pr1,r2(x, y) = k−1 X m=0 ∂ ∂y Pm r1,r2(y)∂ ∂x k Y d=0 d6=m (x−xi−r1+d−1 2) (xi−r1+m−1 2−xi−r1+d−1 2) (D.38) Inserting (D.36) in (D.38), the latter yields pr1,r2(x, y) = k−1 X m=0 m−1 X e=0 p(r2, k, y, ¯ve r1,r2)∆xi−r1+e!∂ ∂x k Y d=0 d6=m (x−xi−r1+d−1 2) (xi−r1+m−1 2−xi−r1+d−1 2) (D.39) and noticing that the derivative of the product with respect to xis equal to Lmin (D.22), Equation (D.39) can be expressed more compactly as
D.3 Dimension-by-dimension 2D WENO reconstruction 109 pr1,r2(x, y) = k−1 X m=0 m−1 X e=0 p(r2, k, y, ¯ve r1,r2)∆xi−r1+e!Lm(D.40) that can be rewritten taking cell averages as common factors, leading to pr1,r2(x, y) = k−1 X e=0 k X m=e+1 Lm∆xi−r1+ep(r2, k, y, ¯ve r1,r2)(D.41) Making use of the definition of C(k) r1,e(x)in (D.26), Equation (D.41) can be expressed in a more compact form as pr1,r2(x, y) = k−1 X e=0 C(k) r1,e(x)p(r2, k, y, ¯ve r1,r2)(D.42) that corresponds to a 1D reconstruction along xwith departing data provided by the 1D reconstruction p(r2, k, y, ¯ve r1,r2). Equation (D.42) can be expressed in its compact form using (B.27), as pr1,r2(x, y) = pr1, k, x, p(r2, k, y, ¯ve r1,r2)e=0,...,k−1(D.43) Notice that substitution of (D.35) in (D.42) leads to the general expression for the reconstruction in 2D presented in (D.28), that can be rewritten in recursive (dimension-by-dimension) form as pr1,r2(x, y) = k−1 X e=0 C(k) r1,e(x) k−1 X d=0 C(k) r2,d(y) ¯ui−r1+e,j−r2+d!(D.44) A simpler and analogous derivation of the dimension-by-dimension approach for 2D polynomial reconstruction can be carried out by introducing the variable ¯ ζi(y)as ¯ ζi(y) = 1 ∆xZxi+1/2 xi−1/2 u(x, y)dx (D.45) that stands for the x-line averages along y, inside cells Ii,j at column i. The use of this variable makes possible to rewrite cell averages as ¯ui,j =1 ∆x∆yZ Zx,y∈Ii,j u(x, y)dx dy =1 ∆yZy∈Ii,j ¯ ζi(y)dy (D.46) and to notice that the application of the dimension-by-dimension reconstruction is straightforward. First, line averages ¯ ζi(y)are reconstructed for a certain yvalue by means of Equation (D.35) and departing from cell averages ¯ui,j. This reconstruction is carried out for all columns composing the stencil, given by parameter e, and provides the new 1D averages used as departing data in the second reconstruction. Finally, this second reconstruction is carried out using polynomial in (D.42) for a certain xvalue, leading to Equation (D.44). D.3 Dimension-by-dimension 2D WENO reconstruction As outlined in the previous section, it is possible to construct a conventional 2D reconstruction by means of two nested 1D reconstructions in each of the coordinate directions. In the same way, it will be possible to generate a 2D WENO reconstruction by carrying out two successive 1D WENO reconstructions. For the generation of a 2k−1-th order 2D WENO reconstruction inside the cell Ii,j,k2different stencils will be needed. The candidate stencils are given by Sr1,r2(i, j)∀r1, r2= 0, ..., k −1(D.47)
110 2D extension of the WENO reconstruction method with Sr1,r2(i, j)defined in (D.7). Moreover, a bigger stencil is defined as the union of the smaller stencils Sr1,r2(i, j) T(i, j) = [ r1,r2∈[0,...,k−1] Sr1,r2(i, j)(D.48) noticing the following property \ r1,r2∈[0,...,k−1] Sr1,r2(i, j) = Ii,j (D.49) Ii,j Ii−1,j Ii−1,j+1 Ii−1,j+2 Ii−1,j−1 Ii−1,j−2 e= 0 e= 1 e= 2 e= 3 e= 4 r2= 0 r2= 1 r2= 2 ˜p1 0 ˜p1 1 ˜p1 2 ¯ui−1,j−2 ¯ui−1,j−1 ¯ui−1,j ¯ui−1,j+1 ¯ui−1,j+2 ˜q1(y) ˜q0(y) ˜q1(y) ˜q2(y) ˜q3(y) ˜q4(y) r1= 2 r1= 1 r1= 0 ˜ ˜p2(x, y) ˜ ˜p1(x, y) ˜ ˜p0(x, y) ˜ ˜q(x, y) Figure D.2: 5-th order (k= 3) 2D WENO reconstruction for cell Ii,j inside stencil T(i, j)using two 1D sweeps. The first 1D sweep, along ydirection, is depicted for e= 1. To compute a 2D WENO reconstruction inside cell Ii,j , the first step is to obtain 2k−11D WENO reconstructions along y, referred to as ˜qe r1(y), for each xcolumn of T(i, j)departing from cell averages grouped in k1D stencils according to parameter r2. These reconstructions will provide new onedimensional average-like values, grouped in k1D stencils according to parameter r1, to generate another 1D WENO reconstruction along x, referred to as ˜ ˜q(x, y). The procedure to compute a 5-th order 2D WENO reconstruction inside cell Ii,j is entirely depicted in Figure D.2. As pointed out in the previous paragraph, the 1D reconstructions along yare carried out for each of the 2k−1columns of the big stencil T(i, j). For each column, kdifferent stencils are taken in the ydirection according to parameter r2. Moreover, for each stencil characterized by r2,k-th order 1D reconstructing polynomials ˜pe r2(y)are calculated using Equation (D.35) as
D.3 Dimension-by-dimension 2D WENO reconstruction 111 ˜pe r2(y) = pr2, k, y, ¯ve r1,r2d=0,...,k−1(D.50) with r1=k−1,e= 0, ..., 2k−2and r2= 0, ..., k −1. The 2k−1-th order WENO reconstruction ˜qe r1(y)based on polynomials ˜pe r2(y)is expressed according to (B.70) as ˜qe(y) = qk, y, ˜pe r2(y)r2=0,...,k−1(D.51) for each e= 0, ..., 2k−2. WENO reconstruction in (D.51) provides new one-dimensional average-like values along the xdirection. Therefore, it is possible to repeat the previous procedure but in this case departing from ˜qe(y) instead of cell averages of u. Now, as in the previous case kdifferent stencils are taken according to parameter r1with corresponds to the xdirection. Inside each stencil, the the following polynomials are constructed ˜ ˜pr1(x, y) = pr1, k, x, {˜qe(y)}e=i−r1,...,i−r1+k−1(D.52) Finally, a 2k−1-th order WENO reconstruction is carried out using polynomials in (D.52) as ˜ ˜q(x, y) = qk, x, ˜ ˜pr1(x, y)r1=0,...,k−1(D.53) Up to this point, the reconstruction procedures have been only considered inside a cell Ii,j and therefore subscripts denoting for row and column position, iand jrespectively, were dropped from polynomials. In what follows, the 1D WENO reconstruction in ydirection will be denoted by ˜qi,j (y), which is equivalent to ˜qk−1(y)according to Equation (D.51). Similarly, the 2D WENO reconstruction will be denoted by ˜ ˜qi,j(x, y). A FORTRAN subroutine for the complete WENO 2D reconstruction is presented below. The algorithm implemented here corresponds to the procedure outlined before and generates the reconstruction at every point of the grid. The reconstruction is obtained at (2k−2) ·(2k−2) points inside each cell. SUBROUTINE WENO_PROCEDURE2D( !INPUTS: & UCELL ,K, NCELLX ,NCELLY , DELTAX ,EPSI ,X,Y,C,D,GAMMA ,TIPO , !OUTPUTS: & UWENO_ALL ) IMPLICIT NONE INTEGER K, NCELLX ,NCELLY ,L1 ,L2 ,L3 ,L4 ,L5 ,L6 ,N1 ,N2 ,J, TIPO INTEGER ORD1 , ORD2 DOUBLE PRECISION EPSI , DELTAX ,AUX1 DOUBLE PRECISION UCELL (1: NCELLX ,1: NCELLY ) DOUBLE PRECISION UCELL_Y (1: NCELLY ) DOUBLE PRECISION UCELL_X (1: NCELLX ) DOUBLE PRECISION GAMMA (0:K -1 , 1:2* K -2 ) DOUBLE PRECISION C (0:K -1 ,0:K -1 ,1:2*K -2) DOUBLE PRECISION D (0:K -1 ,0: K -1 ,1:K -1 , 1:3) DOUBLE PRECISION UWENO_Y (1: NCELLY ,1:2* K -2) DOUBLE PRECISION UWENO_ALL_AUX (1: NCELLX ,1: NCELLY ,1:2* K -2) DOUBLE PRECISION UWENO_X (1: NCELLX ,1:2* K -2) DOUBLE PRECISION UWENO_ALL (1: NCELLX ,1: NCELLY ,1:2*K -2 ,1:2*K -2) DOUBLE PRECISION X (1: NCELLX , 1:2*K -2) DOUBLE PRECISION Y (1: NCELLY , 1:2*K -2)
118 2D extension of the sub-cell WENO reconstruction of derivatives Polynomials φ(m),(e2) i,j (x)are determined at each quadrature point G(e2) yj, providing the following approximations φ(m),(e2) i,j (x)≈∂m ∂ymu(x, G(e2) yj) ∂n ∂xnφ(m),(e2) i,j (x)≈∂n ∂xn∂m ∂ymu(x, G(e2) yj)(E.16) with n≤2k−2−m. They allow to compute the approximation of u(x, y)and its derivatives at the quadrature points (x, y) = (G(e1) xi,G(e2) yj)by evaluating (E.16) at x=G(e1) xi. E.2 Numerical results The 2D extension of the WENO sub-cell derivative reconstruction procedure proposed in this work is used to reconstruct the following function u(x, y) = cos 2π 100xcos 2π 100y,(E.17) depicted in Figure E.1 and its derivatives, inside the spatial domain (x, y) = [0,100] ×[0,100] using a grid size of ∆x= ∆y= 5. The derivation of analytical expressions for partial derivatives of (E.17) is straightforward, leading to ∂nu(x, y) ∂xn= (−1)⌈n 2⌉2π 100n sin 2π 100xcos 2π 100yif ln 2m6=n 2 (−1)⌈n 2⌉2π 100n cos 2π 100xcos 2π 100yif ln 2m=n 2 (E.18) ∂mu(x, y) ∂ym= (−1)⌈m 2⌉2π 100m sin 2π 100ycos 2π 100xif lm 2m6=m 2 (−1)⌈m 2⌉2π 100m cos 2π 100ycos 2π 100xif lm 2m=m 2 (E.19) where ⌈a⌉=ceiling(a)is the ceiling function, which provides the largest integer not greater than a∈R. It can be noticed that both derivatives in xand yare alike and periodic for any nand m. For a later analysis of the numerical derivatives, it is worth presenting the absolute values of global maxima (or minima, due to simetry) for derivatives in (E.18) and (E.18), denoted by Mn(u) = max ∂nu(x, y) ∂xn=max ∂nu(x, y) ∂yn∀x, y ∈[0,100] ×[0,100] .(E.20) Table E.1 shows numerical values for Mn(u)up to n= 6, noticing that Mn(u) = 2π 100n .(E.21) Numerical results for the reconstruction of the test function in (E.17) and pointwise numerical errors at gaussian quadrature points using a 3-rd, 5-th and 7-th 2D WENO method are presented in Figure E.2. The pointwise numerical error is calculated as the difference between numerical solution and exact solution at a given point. It can be observed that increasing the order in one level produces a decrement of the numerical error in one order of magnitude for this grid size, approximately. Pointwise numerical errors at gaussian quadrature points in the reconstruction of partial derivatives with respect to xof the test function in (E.17) using a 3-rd, 5-th and 7-th 2D WENO method are presented
E.2 Numerical results 119 n Mn(u) 0 1 1 0.0628 2 3.9478E-03 3 0.4805E-04 4 1.5585E-05 5 9.7926E-07 6 6.1528E-08 Table E.1: Absolute values of global maxima for derivatives in (E.18) and (E.18). Figure E.1: Test function presented in Equation (E.17). in Figures E.3, E.4 and E.5 respectively. It is noticed how the shape of the grid determines the error pattern. Numerical errors are within the range of acceptability that produces a proper reconstruction of derivatives. On the other hand, pointwise numerical errors at gaussian quadrature points in the reconstruction of partial derivatives with respect to yof the test function in (E.17) using a 3-rd, 5-th and 7-th 2D WENO method are presented in Figures E.6, E.7 and E.8 respectively. The same error patterns, but in ydirection, are observed now. A convergence rate test is also carried out for L1and L∞error norms using five different grid sizes: Nx=Ny= 10,20,40,80,160. Numerical results are presented in Table E.2 and evidence that the dimension-by-dimension WENO reconstruction algorithm achieves the prescribed order of accuracy. Remark that when computing the 9-th order WENO reconstruction, a level of error of the same order of the machine precision is reached for N= 80, therefore further refinements will not produce the prescribed decrement of the numerical error according to the order of the method.
120 2D extension of the sub-cell WENO reconstruction of derivatives Figure E.2: Numerical results for the reconstruction of (E.17) (left) and pointwise numerical error (right) using a 3-rd, 5-th and 7-th 2D WENO method.
E.2 Numerical results 121 Figure E.3: Pointwise numerical error for 1-st (left) and 2-nd (right) x-derivatives of function in (E.17) using the dimension-by-dimension WENO sub-cell derivative reconstruction procedure for k= 2. Figure E.4: Pointwise numerical error for 1-st (upper left), 2-nd (upper right), 3-rd (lower left) and 4-th (lower right) x-derivatives of function in (E.17) using the dimension-by-dimension WENO sub-cell derivative reconstruction procedure for k= 3.
122 2D extension of the sub-cell WENO reconstruction of derivatives Figure E.5: Pointwise numerical error for 1-st (upper left), 2-nd (upper right), 3-rd (medium left), 4-th (medium right), 5-th (lower left) and 6-th (lower right) x-derivatives of function in (E.17) using the dimension-by-dimension WENO sub-cell derivative reconstruction procedure for k= 4.
E.2 Numerical results 123 Figure E.6: Pointwise numerical error for 1-st (left) and 2-nd (right) y-derivatives of function in (E.17) using the dimension-by-dimension WENO sub-cell derivative reconstruction procedure for k= 2. Figure E.7: Pointwise numerical error for 1-st (upper left), 2-nd (upper right), 3-rd (lower left) and 4-th (lower right) x-derivatives of function in (E.17) using the dimension-by-dimension WENO sub-cell derivative reconstruction procedure for k= 3.
124 2D extension of the sub-cell WENO reconstruction of derivatives Figure E.8: Pointwise numerical error for 1-st (upper left), 2-nd (upper right), 3-rd (medium left), 4- th (medium right), 5-th (lower left) and 6-th (lower right) y-derivatives of function in (E.17) using the dimension-by-dimension WENO sub-cell derivative reconstruction procedure for k= 4.
E.2 Numerical results 125 k N L1error L1order L∞error L∞order 2 10 1.08E-02 - 2.47E-02 - 20 1.37E-03 2.97 2.84E-03 3.12 40 1.73E-04 2.99 3.42E-04 3.06 80 2.16E-05 3.00 4.16E-05 3.04 160 2.70E-06 3.00 5.12E-06 3.02 3 10 7.83E-04 - 1.94E-03 - 20 2.55E-05 4.94 5.62E-05 5.11 40 8.03E-07 4.99 1.69E-06 5.05 80 2.51E-08 5.00 5.14E-08 5.04 160 7.86E-10 5.00 1.58E-09 5.02 4 10 6.59E-05 - 1.60E-04 - 20 5.47E-07 6.91 1.18E-06 7.08 40 4.34E-09 6.98 8.94E-09 7.05 80 3.40E-11 6.99 6.80E-11 7.04 160 2.66E-13 7.00 5.34E-13 6.99 5 10 5.47E-06 - 1.37E-05 - 20 1.17E-08 8.87 2.59E-08 9.05 40 2.32E-11 8.97 4.90E-11 9.04 80 4.57E-14 8.99 1.03E-13 8.90 160 3.78E-15 3.60 4.02E-14 1.36 Table E.2: L1and L∞error norms and convergence rates of the numerical solution using a 3-rd, 5-th, 7-th and 9-th order 2D WENO reconstruction method. Nstands for the number of cells in each coordinate direction, which are equal in this case.
127 Appendix F Convergence rate tests: tables F.1 Linear scalar equation in Section 6.1 F.1.1 1D linear advection-reaction equation in Section 6.1.1 Approach Optimal rec. WENO-JS WENO-Z WENO-PW Scheme N L1error L1order L1error L1order L1error L1order L1error L1order ADER-3 8 13306.1047 - 14230.0031 - 13204.5891 - 14281.3691 - 16 4236.8962 1.65 11305.9088 0.33 4227.95311 1.64 8516.08041 0.75 20 3360.81026 1.04 9063.78775 0.99 3360.80944 1.03 5803.50283 1.72 25 2503.53129 1.32 6964.92308 1.18 2503.53089 1.32 3668.59238 2.06 32 1557.4721 1.92 4824.47974 1.49 1557.47206 1.92 2208.2659 2.06 ADER-5 8 8555.41998 - 13338.9284 - 11987.5178 - 8555.82623 - 16 2975.91094 1.52 3432.32973 1.96 3226.90381 1.89 2975.89141 1.52 20 1633.53804 2.69 2610.60903 1.23 1796.28241 2.63 1632.29859 2.69 25 733.521245 3.59 1280.586 3.19 564.476899 5.19 732.310052 3.59 32 246.629784 4.42 500.379951 3.81 171.345515 4.83 253.296022 4.30 ADER-7 8 4598.10939 - 10619.2407 - 10929.9357 - 4603.75039 - 16 1927.94242 1.25 2601.30069 2.03 2290.76604 2.25 1927.51329 1.26 20 607.305053 5.18 1172.9671 3.57 936.039569 4.01 373.166084 7.36 25 162.613454 5.90 368.269248 5.19 479.523701 3.00 304.087784 0.92 32 32.5639728 6.51 125.740234 4.35 97.9384238 6.43 128.807402 3.48 ADER-9 8 2273.11647 - 8048.1982 - 8717.25759 - 2280.46308 - 16 1051.29586 1.11 2104.74364 1.94 1957.18923 2.16 850.253584 1.42 20 202.364589 7.38 572.835132 5.83 514.762861 5.99 206.828779 6.34 25 34.6830785 7.90 89.7847532 8.30 253.23115 3.18 31.8029298 8.39 32 4.31840113 8.44 31.5346655 4.24 115.92998 3.17 4.3775994 8.03 ADER-11 8 1091.2802 - 6327.61844 - 6504.90881 - 1117.71902 - 16 528.751847 1.05 1972.29691 1.68 1998.0091 1.70 595.861849 0.91 20 65.701758 9.35 590.042993 5.41 824.56314 3.97 82.1361779 8.88 25 7.42236012 9.77 99.2149885 7.99 131.965944 8.21 7.42233128 10.77 32 0.57961132 10.33 11.488342 8.73 22.4695764 7.17 0.57962058 10.33 Table F.1: Section 6.1.1. L1error norm and convergence rate at t= 2 using 3-rd, 5-th, 7-th, 9-th and 11- th order TT-ADER schemes comparing the utilization of optimal reconstruction, WENO-JS, WENO-Z (p=k−1) and WENO-PW (b= 20) approaches.