Abstract
We analyse numerical dissipation and dispersion of the homogeneous flux (HF) and complete flux (CF) schemes, finite volume methods introduced in [4]. To that purpose we derive the modified equation of both schemes . We show that the HF scheme suffers from numerical diffusion for dominant advection, which is effectively removed in the CF scheme. The latter scheme, however, is prone to numerical dispersion. We validate both schemes for a model problem.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
- Numerical Diffusion
- Homogeneous Component
- Numerical Dissipation
- Numerical Dispersion
- Spurious Oscillation
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
1 Introduction
Conservation laws are often of advection-diffusion-reaction type, describing the interplay between different processes such as, e.g., drift, diffusion and generation/recombination. They occur in disciplines like combustion theory, plasma physics, transport in porous media etc. A model equation for these conservation laws is the advection-diffusion-reaction equation. In [4] we introduced the complete flux scheme for this equation. For steady problems, the complete flux approximation is based on the solution of a local BVP for the entire equation, including the source term. Consequently, the numerical flux consists of a homogeneous component, depending on the advection-diffusion operator, and an inhomogeneous component, depending on the source term. In many applications, the homogeneous component is known as the exponential scheme, however, we refer to it as the homogeneous flux scheme. The inclusion of the inhomogeneous flux is especially of importance for dominant advection, since it it guarantees that the flux approximation remains second order accurate, even for infinite Péclet number [1].
For time-dependent problems we include the time-derivative in the inhomogeneous flux. We will demonstrate that also this term is very important for advection-dominant problems, since it effectively removes the artificial diffusion introduced by the homogeneous flux scheme, at least up to second order, albeit at the cost of a small dispersion error. In order to analyse this, we consider the model equation
where \(u\) is the advection velocity, \(\varepsilon \ge \varepsilon _\mathrm{min} > 0\) the diffusion coefficient and \(s\) the source term. Associated with (1) we introduce the the flux \(f\), defined by
To analyse the dissipation and dispersion errors of the HF and CF scheme, we derive the modified equation for both schemes, which is roughly speaking the partial differential equation that is exactly solved by the numerical solution. The modified equation of the HF scheme contains an artificial diffusion term, which suppresses spurious oscillations, however, it makes the scheme very dissipative for dominant advection. This artificial diffusion term is eliminated by the time derivative term in the inhomogeneous flux, making the scheme nondissipative, which is a very benificial property especially for long time integration. Instead, the modified equation contains a leading order dispersion term, responsible for possible spurious oscillations.
We have organised our paper as follows. The derivation of the HF and CF schemes is briefly outlined in Sect. 2. In Sect. 3 we derive the modified equation for both schemes and interpret these in terms of dissipation and dispersion. The performance of both schemes is demonstrated in Sect. 4, and finally in Sect. 5, we present a discussion and conclusions.
2 Numerical Approximation of the Flux
In this section we outline the complete flux scheme for Eq. (1), which is a special case of the scheme introduced in [4].
Equation (1) can be written as \(\partial \varphi / \partial t + \partial f / \partial x = s \) with the flux \(f\) defined in (2). Assume this equation is defined on the domain \(\varOmega = [0,1]\). In the finite volume method we cover \(\varOmega \) with a finite number of control volumes (cells) \(\varOmega _{j}\) of size \(h\). We adopt the vertex-centred approach, i.e., we introduce the grid points \(x_{j} = j h\, (j = 0,1,2,\ldots ,N)\) with \(N h = 1\), where the variable \(\varphi \) has to be approximated, and choose \(\varOmega _{j} = [ x_{j-1/2},x_{j+1/2} ]\) with \(x_{j\pm 1/2} = \tfrac{1}{2} \big ( x_{j} + x_{j \pm 1} \big )\). Integrating the equation over \(\varOmega _{j}\) and applying the midpoint rule for the integrals of \(s\) and \(\partial \varphi / \partial t\), we obtain the semi-discrete equation
where \(\dot{\varphi }_{j}(t) \approx \partial \varphi / \partial t( x_{j},t )\) and \(F_{j+1/2}(t)\) is the numerical approximation of the flux at the interface \(x = x_{j+1/2}\). In the following we will suppress the dependence of all variables on \(t\).
We determine the numerical flux \(F_{j+1/2}\) from the following quasi-stationary boundary value problem
where we have put the time derivative in the right hand side of Eq. (4a). As a consequence, the numerical flux will depend on the time derivative, and this will turn out to be of importance for dominant advection. In the derivation that follows we assume \(u\) and \(\varepsilon \) constant. Moreover, we introduce the following variables
\(P\) is the well-known (grid) Péclet number and \(\sigma (x)\) is the normalized coordinate on \([ x_{j},x_{j+1} ]\) (\( 0 \le \sigma (x) \le 1\)). Integrating equation (4a) from \(x_{j+1/2}\) to \(x \in [ x_{j},x_{j+1} ]\), we obtain the integral balance
Next, substituting the integrating factor formulation
in (6) and integrating the resulting equation form \(x_{j}\) to \(x_{j+1}\), we get
Finally, changing the order of integration in the double integral in the right hand side of (8), we find the following expressions for the flux
where \(B(z) = z/ \big ( \mathrm {e} ^{z} - 1 \big )\) and where \(G(\sigma ;P)\) is the so-called Green’s function for the flux, given by
see Fig. 1. From (9) it is evident that the flux is the sum of the homogeneous component \(f^{ \mathrm {h} }\), depending on the advection-diffusion operator, and the inhomogeneous component \(f^{ \mathrm {i} }\), depending the modified source \(\hat{s}\).
Obviously, the numerical flux is the sum of a homogeneous component, \(F^{ \mathrm {h} }_{j+1/2}\), and an inhomogeneous component, \(F^{ \mathrm {i} }_{j+1/2}\). For the homogeneous component we simply take (9b), i.e., \(F_{j+1/2}^{ \mathrm {h} } = f^{ \mathrm {h} }( x_{j+1/2} )\). For the inhomogeneous component we need to evaluate the integral in (9c). Note that for dominant diffusion \((| P | \ll 1)\) the integral (average) of \(G(\sigma ;P)\) is small, whereas for dominant advection \(( | P | \gg 1 )\) \(G(\sigma ;P)\) has a clear bias towards the upwind side of the interval. For this reason we replace \(\hat{s}(x(\sigma ))\) in (9c) by its upwind value and evalute the resulting integral. This way we obtain
where \(W(z) = \big ( \mathrm {e} ^{z}-1-z \big )/\big ( z \big ( \mathrm {e} ^{z}-1 \big ) \big )\) and where \(s_{ \mathrm {u} ,j+1/2}\) denotes the upwind value of \(s\) relative to the interface \(x_{j+1/2}\), i.e., \(s_{ \mathrm {u} ,j+1/2} = s_{j}\) if \(u \ge 0\) and \(s_{ \mathrm {u} ,j+1/2} = s_{j+1}\) if \(u < 0\), and likewise for \(\dot{\varphi }\).
We refer to the flux approximation in (11) as the complete flux (CF) scheme, as opposed to the homogeneous flux (HF) scheme, where we omit the source term and time derivative. Finally, substituting this expression in (3) we obtain the semi-discretisation
where \(j( \mathrm {u} )\) is the index of the grid point upwind of \(j\), i.e., \(j( \mathrm {u} ) = j-1\) if \(u \ge 0\) and \(j( \mathrm {u} ) = j+1\) is \(u < 0\). If we set \(W( |P| ) = \tfrac{1}{2} \) in (12), we get the HF semidisretisation.
3 Numerical Dissipation and Dispersion
In this section we investigate the semi-discrete system (12) in terms of dissipation and dispersion. We consider both the HF and CF scheme. In [3] we presented a detailed analysis based on the evolution of a planar wave solution, here we adopt a different approach, viz., we derive the modified equation for both schemes.
Roughly speaking, the modified equation of a finite difference scheme is defined as the partial differential equation that is actually solved by the numerical solution, apart from rounding errors [5]. Assume \(\psi \) to be a sufficiently smooth function coinciding with the numerical solution on the space-time grid. Expanding all differences in Taylor series, we obtain the original differential equation with an extra local discretisation error in the right hand side, which is an infinite sequence of derivatives. If we subsequently eliminate all time derivatives except the first order, we obtain the so-called modified equation. We will slightly adapt this procedure to our purpose.
We introduce the following difference operators for a generic grid function \(\nu _{j}\)
In the following we assume that \(s = 0\) and \(u > 0\). We first consider the HF scheme, which can be written as
where \(B^{\pm } = B( \pm P )\). Rearranging terms, we see that the scheme is equivalent to
with \(D(z) = z \coth (z)\), see Fig. 2. The artificial diffusion coefficient \(\varepsilon _\mathrm{art}\) is the sum of \(\varepsilon \) and the numerical diffusion coefficient \(\varepsilon _\mathrm{num} = P \big ( \tfrac{1}{2} - W(P) \big ) \varepsilon \). To derive the modified equation of the semi-discretisation (15), we substitute a (sufficiently smooth) function \(\psi \), satisfying \(\psi ( x_{j},t ) = \varphi _{j}(t)\) for all grid points \(x_{j}\), and expand all spatial differences in Taylor series. Moreover, we discard all \(\fancyscript{O}\big ( h^{2} \big )\)-terms. This way we obtain the modified equation
So the HF scheme suffers from numerical diffusion, where the artificial diffusion coefficient \(\varepsilon _\mathrm{art}\) increases from \(\varepsilon \) for \(P = 0\) to \( \tfrac{1}{2} u h\) for \(P \rightarrow \infty \) (upwind limit). Unlike standard central differences, the scheme does not display spurious oscillations since \(0 < u h / \varepsilon _\mathrm{art} < 2\).
Next, we consider the CF scheme, which reads
where \(W^{+} = W(P)\). Again, rearranging terms we obtain
where \(\mathrm {id}\) is the identity operator. Note that for \(\alpha \ne 0\) this scheme defines an implicit ODE-system, which is a result of the quasi-stationary assumption made in (4). To derive the modified equation we first make the ODE-system explicit by applying the inverse operator \(\big ( \mathrm {id} - \alpha \delta _{x}^{-} \big )^{-1}\) to (18), for which the following relation holds
Applying the inverse to (18), the advection term gives rise to the antidiffusion term
which exactly cancels the numerical diffusion introduced by the HF scheme up to \(\fancyscript{O}\big ( h^{2} \big )\), and the diffusion term gives rise to the dispersive term \(\alpha \varepsilon _\mathrm{art} \delta _{x}^{-} \delta _{xx} \varphi _{j}\). Thus the CF scheme is equivalent to
where \(E(z) = D\big ( \tfrac{1}{2} z \big ) \big ( \tfrac{1}{2} - W(z) \big )/z\); see Fig. 2. \(\nu \) is the numerical dispersion coefficient. Since \(\delta _{x}^{-} \delta _{xx} \varphi _{j}\) is a first order approximation of \(\partial ^{3} \varphi / \partial x^{3}( x_{j} )\) we conclude that the CF scheme is a second order accurate approximation of the modified equation
The third order term \(\nu \partial ^{3} \varphi / \partial x^{3}\) is reponsible for dispersion, i.e., waves of different frequencies propagate at different speed.
It is instructive to consider the advection-reaction equation as special case, i.e., \(\varepsilon = 0\). In this case \(P \rightarrow \infty \) and \(\nu = \tfrac{1}{4} u h^{2}\). Substituting the planar wave \(\psi (x,t) = \mathrm {e} ^{ \mathrm {i} (\kappa x - \omega t)}\) in (21), with \(\kappa \) the wave number and \(\omega \) the frequency, we obtain the dispersion relation \(\omega (\kappa ) = u \kappa + \nu \kappa ^{3}\) from which we infer that the numerical phase velocity \(c_\mathrm{p}(\kappa ) = \omega (\kappa )/\kappa = u\big ( 1 + \tfrac{1}{4}(\kappa h)^{2} \big )\). Since \(\nu > 0\), the numerical solution propagates (a little) too fast.
To compute the full numerical solution, we have to apply a time integrator to (12). Since the CF scheme is nondissipative, the trapezoidal rule is an obvious choice. Combined with the CF scheme for the advection equation, the trapezoidal rule reduces to the box scheme, which is second order and nondissipative indeed. However, the dispersion error of the combined scheme differs from the dispersion error of the CF scheme alone, this is due to the trapzoidal rule [2, pp. 379–381].
4 Numerical Example
In this section we apply the HF and CF scheme to a model problem. In [3] we investigated the order of convergence of the schemes, and we will not repeat this here. The main conclusions, however, are the following. For dominant diffusion both the HF and CF scheme exhibit second order convergence. On the other hand, for dominant advection, the HF scheme reduces to the first order upwind scheme, whereas the CF scheme remains second order convergent. Thus, inclusion of the source term and time derivative is important for dominant advection!
Numerical dissipation and dispersion can be conveniently demonstrated for the advection equation, therefore we choose \(\varepsilon = 0\) and \(s = 0\). Furthermore, we choose the initial and boundary conditions such that the exact solution is given by the wave packet
Numerical approximations of (22) together with its (Gaussian) envelope are shown in Fig. 3. Clearly, the HF scheme is very dissipative. At \(t = 5 \times 10^{-2}\), the amplitude has decreased to approximately \(0.2\) times its initial value while at \(t = 0.5\) the solution has completely vanished. On the other hand, the CF numerical solution has not dissipated and is clearly much better than the HF solution. In fact for this choice of \(h\) and time step \( \Delta t \), the Courant number \(c = u \Delta t / h = 1\), and the exact solution is recovered. Other choices of \( \Delta t \) give rise to numerical dispersion, which should be attributed to the time integrator, however.
5 Concluding Remarks and Discussion
We have presented the HF and CF scheme for an advection-diffusion-reaction model problem. The CF scheme is based on a quasi-stationary boundary value problem, including the time derivative in the source term. Consequently, the numerical flux consists of a homogeneous component, depending on the advection-diffusion operator, and an inhomogeneous component, containing the source and time derivative. We have derived the modified equation for both schemes and demonstrated that the HF scheme is prone to numerical diffusion, which is completely removed in the CF scheme. Instead, the CF scheme suffers from a dispersion error. We have shown that the CF scheme is much more accurate than the HF scheme when applied to the advection equation.
Both schemes are applicable to complex applications like plasma systems. In [1] we have shown that the CF scheme is much more accurate than the HF scheme for the numerical simulation of a glow discharge. The conservation laws are in this case nonlinear and coupled, which is no objection since the original HF and CF schemes developed in [4] only assume coefficients that are functions of space and time.
References
Liu, L., van Dijk, J., ten Thije Boonkkamp, J., Mihailova, D., van de Mullen, J.: The complete flux scheme—error analysis and application to plasma simulation. J. Comput. Appl. Math. 250, 229–243 (2013)
Mattheij, R., Rienstra, S., ten Thije Boonkkamp, J.: Partial Differential Equations, Modeling, Analysis, Computation. SIAM, Philadelphia (2005)
ten Thije Boonkkamp, J., Anthonissen, M.: Extension of the complete flux scheme to time-dependent conservation laws. In: Kreiss, G et al. (ed.) Numerical mathematics and advanced applications 2009, pp. 865–873. (2010)
ten Thije Boonkkamp, J., Anthonissen, M.: The finite volume-complete flux scheme for advection-diffusion-reaction equations. J. Sci. Comput. 46(1), 47–70 (2011)
Warming, R., Hyett, B.: The modified equation approach to the stability and accuracy analysis of finite-difference methods. J. Comput. Phys. 14, 159–179 (1974)
Author information
Authors and Affiliations
Corresponding authors
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
ten Thije Boonkkamp, J.H.M., Anthonissen , M.J.H. (2014). Numerical Dissipation and Dispersion of the Homogeneous and Complete Flux Schemes. In: Fuhrmann, J., Ohlberger, M., Rohde, C. (eds) Finite Volumes for Complex Applications VII-Methods and Theoretical Aspects. Springer Proceedings in Mathematics & Statistics, vol 77. Springer, Cham. https://doi.org/10.1007/978-3-319-05684-5_10
Download citation
DOI: https://doi.org/10.1007/978-3-319-05684-5_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-05683-8
Online ISBN: 978-3-319-05684-5
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)