Skip to main content
QUICK REVIEW

[Paper Review] The DUNE-DPG library for solving PDEs with Discontinuous Petrov--Galerkin finite elements

Felix Gruber, Angela Klewinghaus|arXiv (Cornell University)|Feb 7, 2016
Advanced Numerical Methods in Computational MathematicsEngineering8 references3 citations
TL;DR

This paper presents Dune-DPG, a flexible C++ library built on the Dune finite element framework for solving PDEs using the Discontinuous Petrov-Galerkin (DPG) method. It enables stable, inf-sup stable variational formulations through optimal and near-optimal test spaces, with robust a posteriori error estimation and adaptive refinement capabilities, validated on transport problems with linear convergence and reliable error indicators.

ABSTRACT

In the numerical solution of partial differential equations (PDEs), a central question is the one of building variational formulations that are inf-sup stable not only at the infinite-dimensional level, but also at the finite-dimensional one. These properties are important since they represent the rigorous foundations for a posteriori error control and the development of adaptive strategies. The essential difficulty lies in finding systematic procedures to build variational formulations for which these desirable stability properties are (i) provable at the theoretical level while (ii) the approach remains implementable in practice and (iii) its computational complexity does not explode with the problem size. In this framework, the so-called Discontinuous Petrov–Galerkin (DPG) concept seems a promising approach to enlarge the scope of problems beyond second order elliptic PDEs for which this is possible. In the context of DPG, the result for the elliptic case was proven by Gopalakrishnan and Qiu [2014] and requires a p-enriched test space. Recently, the same type of result has been proven by Broersen et al. [2015] for certain classes of linear transport problems using an appropriate hp-enrichment to build the finite dimensional test space. In the light of this new result, we present Dune-DPG, a C++ library which allows to implement the test spaces introduced in Broersen et al. [2015]. The library is built upon the multi-purpose finite element package Dune (see Blatt et al. [2016]). In this paper, we present the current version 0.2 of Dune-DPG which has so far been tested only for elliptic and transport problems. An example of use via a simple transport equation is described. We conclude outlining future work and applications to more complex problems. Dune-DPG is licensed under the GPL 2 with runtime exception and a source code tarball is available together with this paper.

Motivation & Objective

  • To develop a flexible, modular C++ library for solving PDEs using the Discontinuous Petrov-Galerkin (DPG) method.
  • To ensure discrete inf-sup stability by constructing near-optimal test spaces through local problems.
  • To enable robust a posteriori error estimation for adaptive mesh refinement in challenging PDEs such as transport-dominated problems.
  • To support a wide range of PDEs beyond classical elliptic problems, including convection-diffusion and optimal control.
  • To improve code maintainability and usability, especially for vector-valued problems, via modern C++ constructs and integration with Dune's TypeTree.

Proposed method

  • Leverages the Dune finite element framework as a foundation for high modularity and low-level control.
  • Implements the DPG method by constructing near-optimal test functions via local solves on subgrids, ensuring discrete inf-sup stability.
  • Uses a product structure for the test space V, enabling efficient computation of the Riesz lift of cell-wise residuals.
  • Employs a TestspaceCoefficientMatrix class to cache and reuse coefficients across multiple test bases, improving computational efficiency.
  • Integrates a posteriori error estimation via the Riesz lift projected onto finite-dimensional search spaces VK, computed using ErrorTools class.
  • Supports adaptive refinement driven by local error indicators derived from the a posteriori estimator.

Experimental results

Research questions

  • RQ1How can a finite element library be designed to systematically ensure discrete inf-sup stability for a broad class of PDEs?
  • RQ2What is the performance of the DPG method with near-optimal test spaces on transport-dominated problems with non-smooth solutions?
  • RQ3Can the a posteriori error estimator in DPG accurately reflect the true error in the L2 norm for problems with kinked solutions?
  • RQ4How does the choice of test space refinement (subgrid level) affect the accuracy and reliability of the error estimator?
  • RQ5To what extent can modern C++ abstractions improve maintainability and performance in finite element software for complex PDEs?

Key findings

  • The Dune-DPG library achieves linear convergence in the L2 error for the solution ϕ of a pure transport problem as the mesh size H decreases, consistent with the polynomial degree 1 used in the trial space.
  • The a posteriori error estimator ∥R(uH, f)∥V shows a slight degradation in reliability as H decreases, indicating that the estimator increasingly captures the error in both ϕ and θ, not just ϕ.
  • The quality of the a posteriori estimator remains robust across different test space refinement levels (h = 2−ℓH), with minimal impact on the error behavior.
  • The estimator is computed via projection of the Riesz lift RK onto polynomial spaces of degree 5, providing a reliable local error indicator for adaptive refinement.
  • The library’s modular design allows reuse of test space coefficients across multiple bases, significantly improving computational efficiency.
  • Future migration to Dune-TypeTree and C++11 constructs is expected to enhance maintainability, reduce compile times, and improve support for vector-valued problems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.