Abstract
In the context of discontinuous Galerkin spectral element methods (DGSEM), \(\tau \)-estimation has been successfully used for p-adaptation algorithms. This method estimates the truncation error of representations with different polynomial orders using the solution on a reference mesh of relatively high order. In this paper, we present a novel anisotropic truncation error estimator derived from the \(\tau \)-estimation procedure for the traditional DGSEM. We exploit the tensor product basis properties of the numerical solution to design a method where the total truncation error is calculated as a sum of its directional components. We show that the new error estimator is cheaper to evaluate than previous implementations of the \(\tau \)-estimation procedure and that it obtains more accurate extrapolations of the truncation error for representations of a higher order than the reference mesh. The robustness of the method allows performing the p-adaptation strategy with coarser reference solutions, thus further reducing the computational cost. The proposed estimator is validated using the method of manufactured solutions in a test case for the compressible Navier–Stokes equations.
Similar content being viewed by others
Notes
Sufficiently high does not necessarily mean that the polynomial order of the other elements must be kept in P, but that it must be high enough so that the externally-generated contributions to the truncation error are less than the internally-generated ones.
References
Aftosmis, M.J.: Upwind method for simulation of viscous flow on adaptively refined meshes. AIAA J. 32(2), 268–277 (1994). https://doi.org/10.2514/3.11981
Bassi, F., Rebay, S.: A high-order accurate discontinuous finite element method for the numerical solution of the compressible Navier–Stokes equations. J. Comput. Phys. 131, 267–279 (1997). https://doi.org/10.1006/jcph.1996.5572.http://isn-csm.mit.edu/literature/1997-jcp-bassi.pdf
Berger, M.J.: Adaptive finite difference methods in fluid dynamics. In: Von Karman Institute for Fluid Dynamics, Computational Fluid Dynamics 50 p. (See N88-15951 08-34) (1987)
Botti, L.: Influence of reference-to-physical frame mappings on approximation properties of discontinuous piecewise polynomial spaces. J. Sci. Comput. 52(3), 675–703 (2012). https://doi.org/10.1007/s10915-011-9566-3
Brandt, A., Livne, O.E.: Multigrid Techniques: 1984 Guide with Applications to Fluid Dynamics, Revised edn. SIAM, Philadelphia (2011). https://doi.org/10.1137/1.9781611970753
Canuto, C., Hussaini, M.Y., Quarteroni, A., Thomas Jr., A.: Spectral Methods in Fluid Dynamics. Springer, Berlin (2012)
Choudhary, A., Roy, C.J.: Structured mesh r-refinement using truncation error equidistribution for 1D and 2D Euler problems. In: 21st AIAA Computational Fluid Dynamics Conference. American Institute of Aeronautics and Astronautics, Reston, VA, AIAA 2013-244, pp. 1–15 (2013). https://doi.org/10.2514/6.2013-2444
Cockburn, B., Karniadakis, G.E., Shu, C.W.: The development of discontinuous Galerkin methods. Discontinuous Galerkin Methods 11, 3–50 (2000). https://doi.org/10.1007/978-3-642-59721-3_1
Deng, S.: Numerical simulation of optical coupling and light propagation in coupled optical resonators with size disorder. Appl. Numer. Math. 57(5–7), 475–485 (2007). https://doi.org/10.1016/j.apnum.2006.07.001
Estep, D.: A posteriori error bounds and global error control for approximation of ordinary differential equations. SIAM J. Numer. Anal. 32(1), 1–48 (1995)
Eva Casoni y Antonio Huerta: Shock capturing for discontinuous Galerkin methods (2011). http://www.tesisenred.net/handle/10803/51571
Ferrer, E., Willden, R.H.: A high order discontinuous Galerkin–Fourier incompressible 3D Navier–Stokes solver with rotating sliding meshes. J. Comput. Phys. 231(21), 7037–7056 (2012). https://doi.org/10.1016/j.jcp.2012.04.039
Fraysse, F., Redondo, C., Rubio, G., Valero, E.: Upwind methods for the Baer–Nunziato equations and higher-order reconstruction using artificial viscosity. J. Comput. Phys. 326, 805–827 (2016). https://doi.org/10.1016/j.jcp.2016.09.017
Fraysse, F., Valero, E., Ponsín, J.: Comparison of mesh adaptation using the adjoint methodology and truncation error estimates. AIAA J. 50(9), 1920–1932 (2012). https://doi.org/10.2514/1.J051450
Georgoulis, E.: Discontinuous Galerkin methods on shape-regular and anisotropic meshes. Philosophy (2003). http://www.math.le.ac.uk/PEOPLE/eg64/papers/thesis_main.pdf
Hartmann, R.: Error estimation and adjoint-based adaptation in aerodynamics. European Conference on Computational Fluid Dynamics, pp. 1–14 (2006)
Hartmann, R., Houston, P.: Adaptive discontinuous Galerkin finite element methods for the compressible Euler equations. J. Comput. Phys.183(2), 508–532 (2002). https://doi.org/10.1006/jcph.2002.7206. http://linkinghub.elsevier.com/retrieve/pii/S0021999102972062
Hesthaven, J.S., Warburton, T.: Nodal Discontinuous Galerkin Methods: Algorithms, Analysis, and Applications. Springer, New York (2008)
Kompenhans, M., Rubio, G., Ferrer, E., Valero, E.: Adaptation strategies for high order discontinuous Galerkin methods based on Tau-estimation. J. Comput. Phys. 306, 216–236 (2016). https://doi.org/10.1016/j.jcp.2015.11.032
Kompenhans, M., Rubio, G., Ferrer, E., Valero, E.: Comparisons of p-adaptation strategies based on truncation-and discretisation-errors for high order discontinuous Galerkin methods. Comput. Fluids 139, 36–46 (2016). https://doi.org/10.1016/j.compfluid.2016.03.026
Kopriva, D.: Implementing Spectral Methods for Partial Differential Equations: Algorithms for Scientists and Engineers. Springer Science & Business Media B.V. (2010)
Kopriva, D.A.: Metric identities and the discontinuous spectral element method on curvilinear meshes. J. Sci. Comput. 26(3), 301–327 (2006). https://doi.org/10.1007/s10915-005-9070-8
Kopriva, D.A., Woodruff, S.L., Hussaini, M.Y.: Computation of electromagnetic scattering with a non-conforming discontinuous spectral element method. Int. J. Numer. Methods Eng. 53(1), 105–122 (2002). https://doi.org/10.1002/nme.394
Martin, R., Guillard, H.: A second order defect correction scheme for unsteady problems. Comput. Fluids 25(1), 9–27 (1996). https://doi.org/10.1016/0045-7930(95)00027-5
Mavriplis, C.: Nonconforming discretizations and a posteriori error estimators for adaptive spectral element techniques (1989). http://hdl.handle.net/1721.1/14526
Mavriplis, C.: Adaptive mesh strategies for the spectral element method. Institute for Computer Applications in Science and Engineering pp. 1–19 (1992). http://www.sciencedirect.com/science/article/pii/S0045782594800103
Minoli, C.A.A., Kopriva, D.A.: Discontinuous Galerkin spectral element approximations on moving meshes. J. Comput. Phys. 230(5), 1876–1902 (2011). https://doi.org/10.1016/j.jcp.2010.11.038
Oberkampf, W.L., Roy, C.J.: Verification and Validation in Scientific Computing. Cambridge University Press, Cambridge (2010)
Persson, P.O., Peraire, J.: Sub-cell shock capturing for discontinuous Galerkin methods. In: 44th AIAA Aerospace Sciences Meeting and Exhibit pp. 1–13 (2006). https://doi.org/10.2514/6.2006-112
Phillips, T., Derlaga, J., Roy, C., Borggaard, J.: Finite volume solution reconstruction methods for truncation error estimation. In: 21st AIAA Computational Fluid Dynamics Conference (2013). https://doi.org/10.2514/6.2013-3090
Phillips, T.S.: Residual-based discretization error estimation for computational fluid dynamics residual-based discretization error estimation for computatioanl fluid dynamics. Ph.D. thesis, Virginia Polytechnic Institute and State University (2014). https://vtechworks.lib.vt.edu/handle/10919/50647
Phillips, T.S., Roy, C.J.: Residual methods for discretization error estimation. In: 20th AIAA Computational Fluid Dynamics Conference 3870(27–30), 665 (2011)
Phillips, T.S., Roy, C.J.: A new extrapolation-based uncertainty estimator for computational fluid dynamics. J. Verif. Valid. Uncertain. Quantif. 1(4), 041,006 (2017). https://doi.org/10.1115/1.4035666
Pierce, N.A., Giles, M.B.: Adjoint and defect error bounding and correction for functional estimates. J. Comput. Phys. 200(2), 769–794 (2004). https://doi.org/10.1016/j.jcp.2004.05.001
Rasetarinera, P., Hussaini, M.: An efficient implicit discontinuous spectral Galerkin method. J. Comput. Phys. 172(2), 718–738 (2001). https://doi.org/10.1006/jcph.2001.6853. http://linkinghub.elsevier.com/retrieve/pii/S0021999101968536
Remacle, J.F., Flaherty, J.E., Shephard, M.S.: An adaptive discontinuous Galerkin technique with an orthogonal basis applied to compressible flow problems. SIAM Rev. 45(1), 53–72 (2003)
Rivière, B.: Discontinuous Galerkin methods for solving elliptic and parabolic equations theory and implementation. SIAM (2008). https://doi.org/10.1137/1.9780898717440
Roache, P.J.: Verification and validation in computational science and engineering, vol. 895. Hermosa Albuquerque, NM (1998)
Roe, P.L.: Approximate Riemann solvers, parameter vectors, and difference schemes. J. Comput. Phys. 43(2), 357–372 (1981). https://doi.org/10.1016/0021-9991(81)90128-5
Roy, C.: Review of discretization error estimators in scientific computing. In: 48th AIAA Aerospace Sciences Meeting Including the New Horizons Forum and Aerospace Exposition. American Institute of Aeronautics and Astronautics, Reston, VA (2010). https://doi.org/10.2514/6.2010-126
Rubio, G., Fraysse, F., De Vicente, J., Valero, E.: The estimation of truncation error by \(\tau \)-estimation for Chebyshev spectral collocation method. J. Sci. Comput. 57(1), 146–173 (2013). https://doi.org/10.1007/s10915-013-9698-8
Rubio, G., Fraysse, F., Kopriva, D.A., Valero, E.: Quasi-a priori truncation error estimation in the DGSEM. J. Sci. Comput. 64(2), 425–455 (2015). https://doi.org/10.1007/s10915-014-9938-6
Rubio Calzado, G.: Truncation Error Estimation in the Discontinuous Galerkin Spectral Element Method. Ph.D. thesis, Universidad Politécnica de Madrid. School of Aeronautics (ETSIAE) (2015)
Syrakos, A., Efthimiou, G., Bartzis, J.G., Goulas, A.: Numerical experiments on the efficiency of local grid refinement based on truncation error estimates. J. Comput. Phys. 231(20), 6725–6753 (2012). https://doi.org/10.1016/j.jcp.2012.06.023
Syrakos, A., Goulas, A.: Finite volume adaptive solutions using SIMPLE as smoother. Int. J. Numer. Methods Fluids 52(11), 1215–1245 (2006). https://doi.org/10.1002/fld.1228
Toro, E.F.: Riemann Solvers and Numerical Methods for Fluid Dynamics: A Practical Introduction. Springer-Verlag, Berlin (2009)
Venditti, D.A., Darmofal, D.L.: Grid adaptation for functional outputs: application to two-dimensional inviscid flows. J. Comput. Phys. 176(1), 40–69 (2002). https://doi.org/10.1006/jcph.2001.6967. http://linkinghub.elsevier.com/retrieve/pii/S0021999101969670
Wang, Z., Fidkowski, K., Abgrall, R., Bassi, F., Caraeni, D., Cary, A., Deconinck, H., Hartmann, R., Hillewaert, K., Huynh, H., Kroll, N., May, G., Persson, P.O., van Leer, B., Visbal, M.: High-order CFD methods: current status and perspective. Int. J. Numer. Methods Fluids 72(8), 811–845 (2013). https://doi.org/10.1002/fld.3767
Zienkiewicz, O.C.: The background of error estimation and adaptivity in finite element computations. Comput. Methods Appl. Mech. Eng. 195(4–6), 207–213 (2006). https://doi.org/10.1016/j.cma.2004.07.053
Acknowledgements
The authors would like to thank David Kopriva for his friendly advise and cooperation. This project has received funding from the European Union’s Horizon 2020 Research and Innovation Program under the Marie Skłodowska-Curie Grant agreement No. 675008. The authors acknowledge the computer resources and technical assistance provided by the Centro de Supercomputación y Visualización de Madrid (CeSViMa).
Author information
Authors and Affiliations
Corresponding author
Appendices
Appendix A: Isolated Truncation Error Dependence on Interpolation Error
According to Definition 5 and Eq. 37, the isolated truncation error in the DGSEM can be expressed for any basis function \(\phi \) in an element e as
where the superindex N on the integrals indicates that they are approximated with a Gaussian quadrature of order N and the superindex e has been dropped for readability. Since the DGSEM is a collocation method, the value computed with Eq. 71 corresponds to the isolated truncation error on the node of the basis function \(\phi \). The terms \({\mathbf {s}}^N\) and \({\mathscr {F}}^N\) can be expressed in terms of the interpolation error as
Inserting Eq. 72 into 71, integrating by parts, and expressing everything with \(L_2({\varOmega })\) inner product notation we obtain,
where \((\cdot ,\cdot )^N_{{\varOmega }^e}\) stands for the \(L_2\) product operator evaluated with a quadrature of order N in the domain \({{\varOmega }^e}\). The first term on the right-hand side vanishes since the value of \(\varepsilon _{{\mathbf {s}}}^N\) is zero on the quadrature nodes (the DGSEM is a collocation method). Furthermore, it is reasonable to neglect the quadrature error since it is of a lower order of magnitude than the value of the integral. Therefore, we obtain
Appendix B: Anisotropic Non-isolated Truncation Error Estimation
In this section, we show briefly that the non-isolated truncation error can be estimated anisotropically using Proposition 1. In order to do so, we need some additional assumptions.
1.1 B.1 Additional Assumptions
As in Sect. 3.1, following assumptions are a consequence of the tensor product basis functions of the DGSEM and hold for sufficiently smooth solutions in the asymptotic range:
-
(c)
The discretization error has an anisotropic behavior and, therefore, can be decoupled in directional components. For the 2D case:
$$\begin{aligned} \epsilon ^{N_1N_2} = \epsilon _1^{N_1N_2} + \epsilon _2^{N_1N_2}. \end{aligned}$$(75)As in (a), \(\epsilon _i\) is the projection of the global discretization error, \(\epsilon \), into a local direction, i.
-
(d)
The locally-generated discretization error in each direction depends only on the polynomial order in that direction:
$$\begin{aligned} \epsilon _{{\varOmega },i}^{N_1N_2} = \epsilon _{{\varOmega },i}^{N_1N_2}(N_i) \end{aligned}$$(76)
Following the same reasoning as in Remark 2, and for reasons that will become clear at the end of the proof, an additional assumption is required:
-
(e)
The \(\tau \)-estimation procedure is performed element-wise while keeping the polynomial order in other elements sufficiently high so that:
$$\begin{aligned} \left|\left|\epsilon ^N_{\partial {\varOmega }}\right|\right| \ll \left|\left|\epsilon ^N_{{\varOmega }}\right|\right| \end{aligned}$$(77)
As (a) and (b), assumptions (c) and (d) also follow from the work of Rubio et al. [42, 43]. The authors remark that assumptions (a), (b), (c) and (d) are consistent with the dependence of the non-isolated truncation error on the discretization error (Eq. 33). Furthermore, assumption (e) imposes an additional requirement for Proposition 1 to hold: that the polynomial orders of the elements not being analyzed must be maintained high enough during \(\tau \)-estimation, so that the externally-generated contributions to the discretization error are smaller than the internally-generated ones.
Let us note that the assumption (d) implies that, for smooth solutions in the asymptotic range, the discretization error in one direction does not change considerably when the polynomial order in another direction is changed:
with \(i \ne j\), and \(1 \le i,j \le 2\).
Proof
Following the same procedure as in “Appendix A”, according to Definition 4 and Eq. 31, the non-isolated truncation error in the DGSEM can be expressed for any basis function \(\phi \) in an element e as
where \(\bar{{\mathbf {q}}}^{\underline{\ }}\) is the external (neighbor element’s) solution and the superindex “e” has been dropped for the local solution. Since the DGSEM is a collocation method, the value computed with Eq. 79 corresponds to the non-isolated truncation error on the node of the basis function \(\phi \). After inserting the definition of discretization error (Definition 2), \(\bar{{\mathbf {q}}}=\bar{{\mathbf {q}}}^N+\epsilon ^N\), and expanding the fluxes using Taylor series we obtain
where the interpolant of the discretization error is omitted for readability (\({\mathbf {I}}^N\epsilon ^N \rightarrow \epsilon ^N\)), \(\epsilon ^N\) is the discretization error of the element e, and \(\epsilon ^{\underline{N}}\) is the discretization error of a neighbor element connected through the surface \(\partial {\varOmega }\). Notice that, for the sake of readability, the symbol for the external polynomial orders is the same as of the internal ones, i.e. N, although they can be different.
We now want to approximate the non-isolated truncation error through \(\tau \)-estimation. We part from the definition of the discretization error (Eq. 20). Adding and subtracting the discrete solution on a higher order grid, \({\mathbf {q}}^P\), yields
Reorganizing we have
Therefore, the \(\tau \)-estimation yields
Since it is possible to decouple the discretization error inside our analyzed element in a locally-generated and an externally-generated component (Eq. 21), Eq. 82 can be rewritten as
Equation 83 holds even for anisotropic representations, i.e. \(N=(N_1,N_2,N_3)\) and \(P=(P_1,P_2,P_3)\). Let us note that if the polynomial order of the elements that are not being analyzed is maintained as high as in the reference mesh, \(\epsilon _{\partial {\varOmega }}^P\) cancels out \(\epsilon _{\partial {\varOmega }}^N\) and \(\epsilon ^{\underline{N}} - \epsilon ^{\underline{P}} \approx 0\), i.e., the \(\tau \)-estimation provides the locally-generated truncation error.
Let us now consider the case of 2D anisotropic coarsening in the direction i (\({\mathbf {N}}=(N_i,P_j)\), \({\mathbf {P}}=(P_i,P_j)\)). Taking into account assumptions (c) and (d), we obtain
It is important to note that for sufficiently smooth solutions, the discretization errors in the high order mesh of order \({\mathbf {P}}\) are smaller than the discretization errors in the analyzed mesh \({\mathbf {N}}\) and therefore can be neglected. Finally, if assumptions (c) and (e) hold, the anisotropic version of Eq. 83 (\(N=(N_1,N_2,N_3)\)) can be reconstructed by summing all the directional components (Eq. 84) if the quadrature errors are neglected. I.e., we recover Eq. 45:
\(\square \)
Appendix C: The Navier–Stokes Equations
The compressible Navier–Stokes equations in conservative form can be written in non-dimensional form as
where the conserved variables are \({\mathbf {q}} = \left( \rho , \rho u, \rho v, \rho w, \rho e \right) ^T\) (\(\rho \) is the density; u, v and w are the velocity components; and e is the specific total energy), \({\mathbf {s}}\) is an external source term, and \({\mathscr {F}}^a\) and \({\mathscr {F}}^{\nu }\) are called the advective and diffusive flux dyadic tensors, respectively, which depend on \({\mathbf {q}}\). Expanding the fluxes in Cartesian coordinates leads to the expression,
Here, Re is the Reynolds number. The advective fluxes are then defined as
where the pressure p is computed using the calorically perfect gas approximation. On the other hand, the diffusive fluxes are defined as
where T is the temperature, \(\gamma \) is the heat capacity ratio, and \(\kappa \) is the thermal diffusivity. The nondimensional parameters are Pr, the Prandtl number; and M, the Mach number. The stress tensor components are computed using the Stokes hypothesis,
with \(\mu \) the fluid’s viscosity, and \({\mathbf {V}}\) the flow velocity. For the simulations in this paper we chose the typical parameters for air: \({\mathrm{Pr}} = 0.72\), \(\gamma = 1.4\), while \(\mu \) and \(\kappa \) are calculated using Sutherland’s law.
Rights and permissions
About this article
Cite this article
Rueda-Ramírez, A.M., Rubio, G., Ferrer, E. et al. Truncation Error Estimation in the p-Anisotropic Discontinuous Galerkin Spectral Element Method. J Sci Comput 78, 433–466 (2019). https://doi.org/10.1007/s10915-018-0772-0
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10915-018-0772-0
Keywords
- High-order discontinuous Galerkin
- Spectral methods
- p-Anisotropic representations
- \(\tau \)-Estimation
- Truncation error
- Anisotropic p-adaptation