Next Article in Journal
Automobile Fine-Grained Detection Algorithm Based on Multi-Improved YOLOv3 in Smart Streetlights
Previous Article in Journal
Multi-Level Joint Feature Learning for Person Re-Identification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Goal Oriented Time Adaptivity Using Local Error Estimates

Centre for Mathematical Sciences, Lund University, Box 118, 22100 Lund, Sweden
*
Author to whom correspondence should be addressed.
Algorithms 2020, 13(5), 113; https://doi.org/10.3390/a13050113
Submission received: 1 April 2020 / Revised: 24 April 2020 / Accepted: 27 April 2020 / Published: 30 April 2020

Abstract

:
We consider initial value problems (IVPs) where we are interested in a quantity of interest (QoI) that is the integral in time of a functional of the solution. For these, we analyze goal oriented time adaptive methods that use only local error estimates. A local error estimate and timestep controller for step-wise contributions to the QoI are derived. We prove convergence of the error in the QoI for tolerance to zero under a controllability assumption. By analyzing global error propagation with respect to the QoI, we can identify possible issues and make performance predictions. Numerical tests verify these results. We compare performance with classical local error based time-adaptivity and a posteriori based adaptivity using the dual-weighted residual (DWR) method. For dissipative problems, local error based methods show better performance than DWR and the goal oriented method shows good results in most examples, with significant speedups in some cases.

1. Introduction

A typical situation in numerical simulations based on differential equations is that one is not interested in the solution per se but in a Quantity of Interest (QoI) that is given as a functional of the solution. When designing an airplane, the QoI would be the lift coefficient divided by the drag coefficient. In simulations of the Greenland ice sheet, it could be the net amount of ice loss over a year [1]. For wind turbine design, the amount of energy produced during a certain time period is more important than the actual flow solution. Other examples are in optimization with ODEs or PDEs as constraints. In the turbine example, one may want to optimize blade shape [2] or determine optimal placement of, for example, tidal turbines [3], for maximal energy output.
In this article, we consider time-dependent problems with a QoI as follows:
IVP : u ˙ ( t ) = f ( t , u ( t ) ) , t [ t 0 , t e ] , u ( t 0 ) = u 0 , f : [ t 0 , t e ] × R d R d
QoI : J ( u ) : = t 0 t e j ( t , u ( t ) ) d t , j : [ t 0 , t e ] × R d R
The goal is to find an adaptive time discretization to reduce computational costs. An adaptive method consists of a time-integration scheme for Equation (1), an error estimator, a timestep controller and a discretization scheme for Equation (2). The input for an adaptive method is a tolerance τ and initial timestep Δ t 0 . The output is an approximation to the solution, this can be a discrete solution u h u , or J h ( u h ) .
Definition 1.
An adaptive method for Equation (1) is called convergent, if
u ( t e ) u N 0 for τ 0 ,
where u N u ( t e ) . An adaptive method for Equations (1) and (2) is called convergent in the QoI, if
| J ( u ) J h ( u h ) | 0 for τ 0 .
The standard approach for goal oriented adaptivity is the dual weighted residual (DWR) method [4,5]. It is most commonly used in the context of space-adaptivity for PDEs, but there is also work specifically on time-adaptivity [6,7,8]. DWR uses the adjoint (dual) problem to perform a posteriori adaptivity and get error bounds for the QoI.
In the time dependent case, the adjoint problem is a terminal value problem, i.e., an IVP backwards in time. The method yields global error estimates (bounds for linear problems). These error estimates are obtained by subsequently integrating forward and backward in time, storing both solutions. The estimates contain local information used to refine the discretization. This iterative process is repeated until a discretization is found with an error estimate η ( u h ) that fulfills
| J ( u ) J h ( u h ) | η ( u h ) τ .
The resulting grids are typically of higher quality than those of local error based adaptive methods, particularly for advection dominated PDEs with spatially local QoIs.
The major drawback of this method is its cost, both in implementation and computation. To reduce computational effort, [9] suggested to apply the approach in a block-wise manner, thus making it more local. The method requires a variational formulation and is thus typically used in the context of Galerkin type schemes but can also be used, for example, for linear multistep methods [10].
Alternatives are classical adaptive methods for IVPs (Equation (1)) based on local error estimation. Convergence results are well established and described in standard textbooks [11,12]. They do not yield global error bounds. However, the error estimate is cheap and works very well for stiff problems, which typically have a dissipation mechanism to a base solution. We aim to extend these methods to problems like in Equations (1) and (2).
One way to include the QoI [13] is to reformulate Equations (1) and (2) as
d d t u ( t ) J ( t ) = f ( t , u ( t ) ) j ( t , u ( t ) ) , t [ t 0 , t e ] , u ( t 0 ) J ( t 0 ) = u 0 0 .
We then have J ( t e ) = t 0 t e j ( t , u ( t ) ) d t = J ( u ) . Solving Equation (3) using an adaptive method based on the norm of the local error, the additional term coming from the added equation acts as a quadrature error estimate. In our numerical tests, this additional term is negligible in comparison to the local error in u , and thus there is no benefit compared to the classic method. Here, J is discretized using the quadrature scheme defined by time-integration. This choice has an impact on performance, but we do not have conclusive results when it is beneficial or detrimental.
A different approach is to combine the classic adaptive method with an error estimate that uses local errors in the QoI only [14]. This way, the hope is to be more efficient than either DWR or the classic approach by having a cheap error estimate, focusing on direct error contributions to the QoI. One only requires additional evaluations of j ( t , u ( t ) ) to compute the error estimate. This makes it notably less intrusive to implement compared to DWR and suitable for partitioned approaches to coupled systems, since it only requires a local error estimate.
Methods in this spirit have been proposed before. John and Rang conceptualize this idea for drag and lift coefficients in incompressible flows [15]. Turek predicts “catastrophical results” [16] for a problem with an alternating lift coefficient due to vanishing error estimates. As a remedy, Turek proposes the usage of multiple QoIs for error estimation and does so using pressure, velocity, lift and drag. Wick et al. use a point-wise evaluation of the displacement field in fluid-structure interaction [17,18]. The authors get good results in two test cases, in one of which they observe slightly larger errors for too large tolerances. However, in all of the above cases, usage of this approach is heuristic and no analysis is presented.
Thus the question arises if these reports can be explained and could have been expected. The purpose of this article is to present a formal derivation and analysis of such a goal oriented adaptive method based on local error estimates, allowing us to answer this question in detail. To this end, we estimate the contribution per timestep to the error in the QoI. It consists of both quadrature and time-integration errors. We then derive local error estimates for these and use them in a deadbeat controller.
For the new adaptive method, we show convergence in the solution under a controllability condition with additional requirements on the timesteps. To obtain tolerance proportionality, i.e., | J ( u ) J h ( u h ) | = O ( τ ) (we define e ( t ) = O ( t q ) , iff C > 0 , δ > 0 : e ( t ) C t q , 0 < t δ ), for the error in the QoI when using higher order (>2) time-integration schemes, one needs solutions of sufficiently high order in intermediate points.
We do our analysis for embedded RK schemes [11] and a deadbeat timestep controller. The structure of our proof allows for simple convergence proofs of other controllers, for example, PID controllers [19], based on similarity to the deadbeat controller. To make statements on the performance of the goal oriented adaptive method, we analyze the impact of error dynamics on the error in the QoI.
We use numerical tests with widely different global error behaviors with respect to the QoI. For these, we confirm the convergence results and are able to explain the performance results. Our results show that the local error based methods are much more efficient than the DWR method for dissipative problems. It turns out to be relatively easy to predict bad performance, but harder to predict performance improvements. The goal oriented adaptive method shows good performance in most cases and significant speedups in some.
The structure of the article is as follows: We first review current adaptive methods in Section 2 and Section 3, then we explain and analyze our approach in Section 4. Numerical results are presented in Section 5.

2. A Posteriori Error Estimation Via the Dual Weighted Residual Method

The starting point of the DWR method for time dependent problems is an IVP in variational formulation: Find u U , resp. u h U h , such that
A ( u ; v ) = F ( v ) , v V , resp . A ( u h ; v h ) = F ( v h ) , v h V h .
Here, U and V are appropriate spaces, A is linear in v and possibly nonlinear in u. For the discrete problem in Equation (4), U h U and V h V are finite element spaces in time.

2.1. The Error Estimate

To estimate the error e J = J ( u ) J ( u h ) in the QoI, see Equation (2), one uses the linearised adjoint problem for J ( u ) : Find z V , resp. z h V h , such that
A ( u ; v , z ) = J ( u ; v ) , v U , resp . A ( u h ; v h , z h ) = J ( u h ; v h ) , v h U h ,
where A and J are the Gateaux derivatives of A and J with respect to u in direction v. The adjoint problem is a terminal value problem (IVP backwards in time) with z ( t e ) = 0 .
An approximation of the error in the QoI is given by
e J A ( u h , z z h ) F ( z z h ) ,
with equality for linear functionals and approximate upper bounds otherwise. Using an approximation z h + z , which is of higher accuracy than z h , using for example, higher order interpolation or a discrete solution on a finer grid [20], one gets a computable estimate
e J η ( u h ) : = A ( u h , z h + z h ) F ( z h + z h ) .
This can be further bounded by decomposing it by timesteps and thus giving a guide on where and how to adapt. For this to work, it is imperative that the solutions of the primal and adjoint problems are obtained at all points. This can cause storage problems for long time simulations and can be dealt with using check-pointing [21].

2.2. Adaptation Scheme

For a given initial grid, the DWR method is as follows
  • Solve forward Problem (4) to obtain u h .
  • Construct and solve adjoint Problem (5) to obtain z h .
  • Calculate z h + z and the error estimate η ( u h ) .
  • Check η ( u h ) τ , if not met, refine grids and restart with new initial grid.
The scheme is very expensive due to the need of solving adjoint problems to obtain the error estimate. While one can use generic schemes to adapt grids, the adjoint problem and the error estimate are problem specific. Construction and solution of the adjoint problem can be automated using software such as dolfin-adjoint [22]. An advantage of the method is that the error estimate is global and one can expect the resulting discretizations to be of high quality.
We use a finer grid to approximate z by z h + , making this the most expensive step in the computation of η ( u h ) . There are cheaper but less accurate ways to compute z h + , see [4]. These, however, increase the complexity of implementation even further.

3. Time Adaptivity Based on Local Error Estimates

The second adaptive method is the standard in ODE solvers. This method uses local error estimates and does not yield global error bounds or near optimal grids, but works very well in practice and is computationally cheap. It is convergent under a smoothness assumption.
The results from this section for one-step methods and the deadbeat controller (Equation (10)) are in principal classic [23]. Here, we present a new convergence proof, following the same principle techniques as in [23], but separating requirements on the error estimate, timesteps, and Δ t 0 , for generic one-step methods. This prepares convergence proofs for general controllers and estimates, and we use it to show convergence in the QoI for the goal oriented adaptive method in Section 4. We first introduce the relevant notation.
Definition 2.
The flow [24] of an IVP (Equation (1)) is the map
M t , Δ t : u ( t ) u ( t + Δ t ) ,
where t [ t 0 , t e ] and t + Δ t t e for Δ t > 0 .
The flow is the solution operator for u ( t ) . To numerically solve an IVP means to approximate the flow by a numerical flow map N t , Δ t : R d R d defined by some numerical scheme. The solution after a timestep can be written in the form
u n + 1 = N t n , Δ t n u n .
We generally assume Problem (1) to have the unique solution u guaranteeing existence of the flow map M t , Δ t . We define the global error by
e n + 1 : = u n + 1 u ( t n + 1 ) = ( N t n , Δ t n M t n , Δ t n ) u n global error increment + M t n , Δ t n u n M t n , Δ t n u ( t n ) global error propagation .
The dynamics of global error propagation is usually not known. The global error increments, however, have a known structure. Given a sufficiently smooth right-hand side f for Equation (1), the local error of a scheme N t , Δ t of order p is
N t n , Δ t n M t n , Δ t n u n = Δ t n p + 1 ϕ ( t n , u n ) + O ( Δ t n p + 2 )
with the principal error function ϕ [11].

3.1. Error Estimation and Timestep Controller

We now derive an estimate for the local error using two solutions of different order. We approximate the local error behavior by a simplified model, focusing on the leading terms. Aiming to keep the norm of the local error equal to a desired tolerance, this becomes a timestep controller yielding Δ t n + 1 based on timestep Δ t n , the local error estimate and a tolerance τ .
Assume two schemes N t , Δ t , N t , Δ t with orders p , p ^ and corresponding principal error functions ϕ , ϕ . We estimate
n : = N t n , Δ t n M t n , Δ t n u n by ^ n : = N t n , Δ t n N + t n , Δ t n u n .
This error estimate is asymptotically correct, i.e., the leading term of ^ n , characterized by the principal error function ϕ , matches the leading term of n . We model the local error n via
m n : = Δ t n p ^ + 1 ϕ ( t n , u n ) .
Assuming ϕ ( t n , u n ) to be slowly changing, the next step of this model yields
m n + 1 Δ t n + 1 p ^ + 1 ϕ ( t n , u n ) = Δ t n + 1 Δ t n p ^ + 1 m n Δ t n + 1 Δ t n p ^ + 1 ^ n .
Aiming for m n + 1 = τ gives the well-known deadbeat controller
Δ t n + 1 = Δ t n τ / ^ n 1 / ( p ^ + 1 ) .
This controller is based on asymptotically correct estimates of the local error for N t , Δ t , we propagate the solution using N + t , Δ t for its higher order. This is known as local extrapolation [23].

3.2. Convergence in the Solution

We first relate global errors to variable, non-adaptive timesteps and then consider the adaptive case. The basis is the following Lemma ([25], p. 68):
Lemma 1.
Consider Problem (1) and a scheme N t , Δ t of order p. Assume a grid t 0 < < t e with timesteps Δ t n = t n + 1 t n given by a step-size function θ : [ t 0 , t e ] [ θ m i n , 1 ] , θ m i n > 0 such that for a given base step size Δ T
Δ t n = θ ( t n ) Δ T .
Then, the global error (Equation (7)) fulfills e n = O ( Δ T p ) .
Assuming ϕ min : = min t [ t 0 , t e ] ϕ ( t , u ( t ) ) > 0 we can define reference timesteps Δ t n ref by a step-size function θ ref and a Δ T ref as follows
θ ref ( t n ) : = ϕ min ϕ ( t n 1 , u ( t n 1 ) ) 1 / ( p ^ + 1 ) , θ ref ( 0 ) = τ c 0 ref 1 / ( p ^ + 1 ) , ( c 0 ref > 0 ) , Δ T ref = τ min { c 0 ref , ϕ min } 1 / ( p ^ + 1 ) .
These variable, non-adaptive timesteps meet the requirements of Lemma 1, yielding e n = O ( Δ T ref p ) = O ( τ p / ( p ^ + 1 ) ) . Now, one can observe that Lemma 1 still holds for a grid perturbed by
Δ t n = θ ( t n ) Δ T + O ( Δ T 2 ) ,
see [23]. This is straight forward to show using the scaling ansatz θ * ( t n ) : = θ ( t n ) / c + O ( Δ T ) with Δ T * : = c Δ T . To prove convergence for the adaptive method with the controller in Equation (10), it thus suffices to show that these adaptive steps are a sufficiently small perturbation of the reference steps Δ t n ref .
Theorem 1.
Consider Problem (1) and an adaptive method consisting of: A pair of schemes N + t , Δ t , N t , Δ t with orders p, p ^ , with p > p ^ , error estimator Equation (8), deadbeat controller Equation (10), and Δ t 0 = ( τ / c 0 ) 1 / ( p ^ + 1 ) + O ( τ 2 / ( p ^ + 1 ) ) , c 0 , Δ t 0 > 0 . If the principal error function ϕ to N t , Δ t fulfills
min t [ t 0 , t e ] | | ϕ ( t , u ( t ) ) | | > 0 ,
then the adaptive method is convergent with e n = O ( τ p / ( p ^ + 1 ) ) .
Proof. 
We show by induction over n that the adaptive timesteps fulfill
Δ t n = Δ t n ref + O ( Δ T ref 2 ) implying Δ t n = O ( τ 1 / ( p ^ + 1 ) ) ,
by definition of Δ t n ref . Choosing c 0 ref = c 0 for Δ t 0 ref , the induction base is met. The timesteps given by the controller in Equation (10) are
Δ t n + 1 = Δ t n τ ^ n 1 / ( p ^ + 1 ) = τ ϕ ( t n , u n ) + O ( Δ t n ) 1 / ( p ^ + 1 ) .
In the denominator we expand ϕ in ( t n , u ( t n ) ) , which gives an O ( e n ) term. Since e n is based on the steps Δ t 0 , , Δ t n 1 , which fulfill Equation (13), we get O ( e n ) = O ( τ p / ( p ^ + 1 ) ) from Lemma 1. This term is smaller than the O ( Δ t n ) term already in the denominator in Equation (14). Further expansions to separate the O term yield
Δ t n + 1 = τ ϕ ( t n , u ( t n ) ) 1 / ( p ^ + 1 ) = Δ t n + 1 ref + O ( τ 1 / ( p ^ + 1 ) Δ t n ) .
For the O term we have τ = O ( Δ T ref ) by definition and Δ t n = O ( Δ T ref ) from the induction hypothesis Equation (13). This completes the induction step, and the adaptive timesteps fulfill Equation (11) for Δ T = Δ T ref , which yields e n = O ( τ p / ( p ^ + 1 ) ) . □
Thus, we established convergence for the adaptive method. Further, we built a structure with which one can prove similar results for different controllers, for example, PID controllers [19]. To prove convergence, it is sufficient to show Δ t n new cont = Δ t n deadbeat + O ( ( Δ t n deadbeat ) 2 ) .
Remark 1.
Assumption (12) prevents vanishing error estimates in Equation (10), which would result in extremely large timesteps. In practice, one often enforces a maximal timestep Δ T = const. manually. To preserve e n = O ( τ p / ( p ^ + 1 ) ) one needs to scale Δ T appropriately with τ.

4. Goal Oriented Adaptivity Using Local Error Estimates

Consider Problem (1) and (2). We approximate J J h using quadrature and u by u h such that
J h ( u h ) : = n = 0 N 1 Δ t n k = 0 s σ k j ( t n ( k ) , u n ( k ) ) t 0 t e j ( t , u ( t ) ) d t = J ( u ) .
Here t n ( k ) , σ k are the quadrature nodes and weights, and u n ( k ) u ( t n ( k ) ) . We first show convergence in the QoI based on convergence in the solution with the following theorem.
Theorem 2.
Consider Problem (1) and (2) with j sufficiently smooth, a grid t 0 < < t e with timesteps Δ t n = O ( τ 1 / q ) , and an approximation J h J , see Equation (15) by a quadrature scheme of order r. For an approximation u h u with
u h ( t ) u ( t ) = O ( τ p / q ) , t [ t 0 , t e ] ,
the error in the QoI fulfills e J : = | J ( u ) J h ( u h ) | = O ( τ min ( r , p ) / q ) .
Proof. 
By splitting the error, we obtain
e J | J ( u ) J h ( u ) | quadrature error + | J h ( u ) J h ( u h ) | time - integration error
and address the two errors separately. An estimate for general quadrature schemes gives
| J ( u ) J h ( u ) | n = 0 N 1 c Δ t n r + 1 max t n t t n + 1 | ( j ( t , u ( t ) ) ) ( r ) | c max t 0 t t e | ( j ( t , u ( t ) ) ) ( r ) | n = 0 N 1 Δ t n r + 1 n = 0 N 1 Δ t n O ( τ r / q ) = O ( τ r / q ) .
For the time-integration error we linearise j ( t n ( k ) , u ( t n ( k ) ) ) about ( t n ( k ) , u n ( k ) ) and use Equation (16) to get
j ( t n ( k ) , u ( t n ( k ) ) ) = j ( t n ( k ) , u n ( k ) ) + j ( t n ( k ) , u n ( k ) ) u ( u ( t n ( k ) ) u n ( k ) = O ( τ p / q ) ) + O ( ( τ p / q ) 2 ) .
Using this for the time-integration error gives
| J h ( u ) J h ( u h ) | n = 0 N 1 Δ t n k = 0 s σ k j ( t n ( k ) , u n ( k ) ) j ( t n ( k ) , u ( t n ( k ) ) ) n = 0 N 1 Δ t n O ( τ p / q ) = O ( τ p / q ) .
Summing up quadrature and time-integration error results in
e J O ( τ r / q ) + O ( τ p / q ) = O ( τ min ( r , p ) / q ) .
 □
Remark 2.
Using linear interpolation to compute solutions at t ( t n , t n + 1 ) , one gets at most u h ( t ) u ( t ) = O ( τ 2 / q ) . Higher orders are achievable using, for example, dense output ([11], p. 188).
Our idea is to use a goal oriented local error estimate to obtain step-sizes more suitable to address the error in the QoI. We first derive our error estimate and controller, for the resulting goal oriented adaptive method we show convergence in the QoI with Theorem 3. We make an analysis to predict performance in Section 4.3.

4.1. Goal Oriented Error Estimates

In the proof of Theorem 2, we see two error sources—time-integration and quadrature, see (17). We estimate these errors separately.

4.1.1. Time-Integration Error Estimate

Estimating the time-integration error in Equation (18) would require error estimates for all evaluation points of the quadrature formula. Instead, we consider the following quadrature independent estimate:
e n J h : = Δ t n | j ( t n + 1 , u n + 1 ) j ( t n + 1 , u ( t n + 1 ) ) | Δ t n j t n + 1 , M t n , Δ t n u n j t n + 1 , M t n , Δ t n u ( t n ) global error propagation +
Δ t n j t n + 1 , N + t n , Δ t n u n j t n + 1 , M t n , Δ t n u n global error increment .
Again, the global error propagation dynamics are unknown, but we can estimate and control the global error increment. Using the same principle technique as in Section 3.2, we estimate the global error increment in Equation (20) by
^ n J h : = j t n + 1 , N t n , Δ t n u n j t n + 1 , N + t n , Δ t n u n .

4.1.2. Quadrature Error Estimate

We now consider the quadrature error
| J ( u ) J h ( u ) | n = 0 N 1 t n t n + 1 j ( t , u ( t ) ) d t Δ t n k = 0 s σ k j t n ( k ) , u ( t n ( k ) ) .
For a time-interval [ t n , t n + 1 ] we use the notation
J n ( u ) : = t n t n + 1 j ( t , u ( t ) ) d t and J ^ h , n r ( u ) : = Δ t n k = 0 s σ k j t n ( k ) , u ( t n ( k ) ) ,
for an r-th order quadrature scheme. We denote quadrature for the numerical solution by J ^ h , n r ( u h ) and assume there is a discrete solution available in all relevant points or given by interpolation. Given sufficient smoothness of j and u , the quadrature error in one timestep is
e n J Q : = | J ^ h , n r ( u ) J n ( u ) | = | Δ t n r + 1 φ ( t n , u ( t n ) ) + O ( Δ t n r + 2 ) | .
Analogous to time-integration, φ ( t , u ) is the principal error function. Following the previous approach from time-integration, we employ an additional scheme of order r ^ < r to estimate
| J ^ h , n r ^ ( u ) J n ( u ) | | J ^ h , n r ^ ( u ) J ^ h , n r ( u ) | = | Δ t n r ^ + 1 φ ( t n , u ( t n ) ) + O ( Δ t n r ^ + 2 ) | .
For a practical error estimate we, however, need to use the numerical solution u h . By expanding j ( t n ( k ) , ( u h ) n ( k ) ) in ( t n ( k ) , u ( t n ( k ) ) ) , we get
^ n J Q : = | J ^ h , n r ^ ( u h ) J ^ h , n r ( u h ) | = | J ^ h , n r ^ ( u ) J ^ h , n r ( u ) | + O ( Δ t n e n ) ,
assuming O ( e n ( k ) ) = O ( e n ) , where e n ( k ) : = ( u h ) n ( k ) u ( t n ( k ) ) , i.e., sufficiently high order solutions in all quadrature evaluation points. We then have
^ n J Q = ( 22 ) | Δ t n r ^ + 1 φ ( t n , u ( t n ) ) | + O ( Δ t n r ^ + 2 ) + O ( Δ t n e n ) .

4.1.3. Timestep Controller

Now, we want to choose timesteps as to keep the sum of the error estimates of Equations (21) and (24) at a given tolerance. For this we need to model the temporal evolution of the estimated errors. We linearise the second term in Equation (21) about t n + 1 , N t n , Δ t n u n and get
^ n J h = j t n + 1 , N t n , Δ t n u n u ^ n + O ( Δ t n 2 p ^ + 2 ) .
Assuming r ^ = p ^ , we choose the leading terms of Equations (25) and (23) to define our model by
m n j : = j ( t n + 1 , N t n , Δ t n u n ) u m n + Δ t n r ^ + 1 φ ( t n , u ( t n ) ) = ( 8 ) Δ t n p ^ + 1 j ( t n + 1 , N t n , Δ t n u n ) u ϕ ( t n , u n ) + φ ( t n , u ( t n ) ) ,
using the previous Model (9) for m n . Assuming both principal error functions and the derivative term be to slowly changing, the error in the next step is
m n + 1 j Δ t n + 1 p ^ + 1 j ( t n + 1 , N t n , Δ t n u n ) u ϕ ( t n , u n ) + φ ( t n , u ( t n ) ) = Δ t n + 1 Δ t n p ^ + 1 m n j Δ t n + 1 Δ t n p ^ + 1 | ^ n J h | + | ^ n J Q | .
Aiming for | m n + 1 j | = τ we get the deadbeat-type goal oriented controller
Δ t n + 1 = Δ t n τ ^ n J h + ^ n J Q 1 / ( p ^ + 1 ) .
We thus constructed a timestep controller to control the local error contributions to the QoI, see Equation (2), based on the splitting in Equation (17).
Remark 3.
One can, likewise, construct controllers using only the quadrature or time-integration error estimate by setting ^ n J h resp. ^ n J Q equal to zero.

4.2. Convergence in the QoI

We show convergence in the QoI for the adaptive timesteps (Equation (26)) following the structure of Section 3.2 for showing convergence in the solution for the timesteps of Equation (10). With
ψ ( t ) : = j ( t , u ( t ) ) u ϕ ( t , u ( t ) ) + φ ( t , u ( t ) ) , ψ min : = min t [ t 0 , t e ] ψ ( t ) > 0 ,
we define non-adaptive reference timesteps Δ t n ref = θ ref ( t n ) Δ T ref as follows:
θ ref ( t n ) : = ψ min ψ ( t n 1 ) 1 / ( p ^ + 1 ) , θ ref ( 0 ) : = τ c 0 ref 1 / ( p ^ + 1 ) , ( c 0 ref > 0 ) , Δ T ref : = τ min { c 0 , ψ min } 1 / ( p ^ + 1 ) .
We now show that our adaptive timesteps (Equation (26)) are a sufficiently small perturbation (Equation (11)) of the above reference steps. This yields convergence in the solution by Lemma 1 and then convergence in the QoI by Theorem 2.
Theorem 3.
Consider Problem (1) and (2) and assume j to be sufficiently smooth. Assume an adaptive method consisting of: Time-integration schemes N + t , Δ t , N t , Δ t with orders p, p ^ , p > p ^ , quadrature schemes of order r, r ^ = p ^ , and r > r ^ , a scheme N ^ t , Δ t to obtain solutions of order p 1 for intermediate points, the error estimator in Equation (21), controller in Equation (26), and Δ t 0 = ( τ / c 0 ) 1 / ( p ^ + 1 ) + O ( τ 2 / ( p ^ + 1 ) ) , c 0 , Δ t 0 > 0 . If the principle error functions corresponding to the lower order schemes fulfill Equation (27), then e J = | J ( u ) J h ( u h ) | = O ( τ min ( r , p ) / ( p ^ + 1 ) ) .
Proof. 
We first show convergence in the solution by showing
Δ t n = Δ t n ref + O ( Δ T ref 2 ) ,
via induction over n. The induction base is met by choosing c 0 ref = c 0 for Δ t 0 ref . For the steps in Equation (26), we address the denominator terms separately. For the local error estimate we have
^ n J h = j t n + 1 , N t n , Δ t n u n j t n + 1 , N + t n , Δ t n u n = j ( t n + 1 , u n + 1 ) u ^ n + O ( Δ t n 2 p ^ + 2 ) .
Using the same expansions as in the proof for Theorem 1 we have
^ n = Δ t n p ^ + 1 ϕ ( t n , u ( t n ) ) + O ( Δ t n ) .
Similarly, we get
j ( t n + 1 , u n + 1 ) u = j ( t n , u ( t n ) ) u + O ( e n ) + O ( Δ t n ) .
The steps Δ t 0 , , Δ t n 1 leading up to t n fulfill the induction hypothesis in Equation (28) and thus are a perturbation of Δ t i ref fulfilling Equation (11). Thus, Lemma 1 holds, which gives O ( e n ) = O ( Δ T ref p ) . Thus, we obtain
^ n J h = Δ t n p ^ + 1 j ( t n , u ( t n ) ) u ϕ ( t n , u ( t n ) ) + O ( Δ t n ) + O ( Δ T ref p ) .
For the quadrature estimate we use Equation (24). Summing up Equations (29) and (24) gives
Δ t n p ^ + 1 j ( t n , u ( t n ) ) u ϕ ( t n , u ( t n ) ) + | φ ( t n , u ( t n ) ) | + O ( Δ T ref ) ,
since we have O ( Δ t n ) = O ( Δ T ref ) by the induction hypothesis. Inserting the above term into the controller in Equation (26), separating the resulting O term from the denominator gives
Δ t n + 1 = Δ t n + 1 ref + τ 1 / ( p ^ + 1 ) O ( Δ T ref ) = Δ t n + 1 ref + O ( Δ T ref 2 ) .
This concludes the induction step. Consequently, we can use Lemma 1 for the steps in Equation (26), since they fulfill Equation (11), which gives convergence in the solution.
The statement now follows from Theorem 2 provided that Condition (16) holds. A single step of size Δ t n * from t n to t n * ( t n , t n + 1 ) , with the scheme N ^ t n , Δ t n * , gives the error
e n * = M t n , Δ t n * e n + N ^ t n , Δ t n * M t n , Δ t n * u n = O ( τ p / ( p ^ + 1 ) ) + O Δ t n * p .
Here we have Δ t n * Δ t n = Δ t n ref + O ( Δ T ref 2 ) = O ( τ p / ( p ^ + 1 ) ) e n * = O ( τ p / ( p ^ + 1 ) ) . Thus, Equation (16) holds for q = p ^ + 1 , which gives us convergence in the QoI with e J = O ( τ min ( r , p ) / ( p ^ + 1 ) ) by Theorem 2. □
Remark 4.
The assumption of Equation (27) is a requirement of controllability in the asymptotic regime, ensuring non-zero error estimates. Using both the quadrature and time-integration error estimate makes a scheme more robust, as ψ min = 0 would require a common zero in both principle error functions. Remark 1 likewise applies here.
Example 1.
In [16] Turek describes using the lift-coefficient of the flow around a cylinder as QoI. This j ( t , u ( t ) ) is oscillating in time, changing signs. Attaining very small absolute values would thus lead to very large timesteps and “catastrophical results” [16]. This is a prime example of Criterion (27) not being fulfilled and thus not guaranteeing convergence in the QoI. In such scenarios, Turek proposes using multiple quantities for error estimation, for example, drag and lift, combined with global norms of pressure and velocity.
The authors of [18] present a numerical experiment with an oscillating beam and j ( t , u ) being the displacement in the x-direction. This likewise implies vanishing error estimates, but the author obtains good results. This is likely due to their strict limits on step-size changes, cf. Equation (32), and enforcing a maximal timestep.

4.3. The Zero Set of the Density Function and Global Error Propagation

Now, we analyze global error dynamics to make a qualitative statement about the obtained grid. We establish guidelines to predict grid quality and thus the performance of the goal-oriented adaptive method.
Assume a QoI with a density function that is linear in u ,
j ( t , u ( t ) ) = w T u ( t ) , w i 0 .
Global error propagation only appears in the time-integration part of Equation (17), given by
| J h ( u ) J h ( u h ) | n = 0 N 1 Δ t n k = 0 s σ k w T e n ( k ) .
We define a weighted seminorm · w : R d R by
x w : = i = 1 d w i | x i | , w i 0 ,
for which we assume w i = 0 for some indices i, yielding a non-trivial zero set. Using Equation (30) we get
| J h ( u ) J h ( u h ) | n = 0 N 1 Δ t n k = 0 s σ k e n ( k ) w
and are thus interested in e n ( k ) w , resp. e n w . The global error propagation form for this is
e n + 1 w M t n , Δ t n e n w global error propagation + N t n , Δ t n M t n , Δ t n u n w global error increment ,
compare Equations (19) and (20). Using this, we now consider grid efficiency (number of step vs. global error for a fixed error or number of steps) and how global error dynamics affect the error in the QoI.
Assume the local error estimate ^ n , see Equation (8), to be of comparable size in both · U and · w , i.e., ^ n w ^ n U . This means both the classical (Equation (10)) and the goal oriented controller in Equation (26), neglecting the quadrature estimate (cf. Remark 3), yield similar step sizes. The question of grid efficiency becomes one of global error dynamics.
Now, if we also have M e n U M e n w , the resulting global errors and grid efficiency are similar. Examples are QoIs capturing the main dynamics, and thus largest errors, of a system. On the other hand, assume M e n U > M e n w . This results in a smaller error in the QoI and a higher grid efficiency. Examples for this are convection dominated PDEs where M shifts global errors to the zero set of · w .
In the following, we consider only the errors e n obtained by the goal oriented method. We instead assume ^ n w < ^ n U , i.e., parts of the local error estimate to be in the zero set of · w , resulting in larger timesteps for the goal oriented method.
If e n w remains small despite larger timesteps compared to the classical method, grid efficiency is better. Examples are flows M such that e n , despite an increasing norm, largely remains in the zero set of · w or when the main dynamics of a system have a negligible effect on the error in the QoI. Another example is a flow M such that e n U remains small in the first place due to, for example, strong dampening.
An example with a low grid efficiency is obtained if global errors grow in the zero set of · w and are later shifted into its image. This can occur if the timesteps of the goal oriented method leaves dynamics in the zero set of · w insufficiently resolved, leading to e n large in norm. Such error shifts can be caused, for example, by convection in PDEs. We experimentally demonstrate this in Section 5.2.
Example 2.
We again consider [18], and compare Example 1. For timestep control based on this QoI, there is a time delay from flow build-up to displacement. This leads to too large timesteps when the displacement is just starting to grow, leaving the initial flow pattern under-resolved. The author observes the maximal timestep being attained for large tolerances and significant error reductions for smaller tolerances, which is likely the point at which the inflow is sufficiently resolved.

5. Numerical Results

We now test the results of Theorem 2 numerically. Further, we compare the performance of the DWR method and the local error based adaptive methods. The tests were run on an Intel i5-2500K 3.30 GHz CPU with Python 3.6 using FEniCS v. 2018.1.0 [26]. See [27] for the code.
The following specifications are common to all tests. For local error based methods using controllers, we bound the stepsize ratio by
Δ t n + 1 = Δ t n min ( f max , max ( f min , ind ) ) , ind = τ / ˜ n 1 / ( p ^ + 1 ) .
Here, ˜ = ^ n for Equation (10) resp. ˜ n = | ^ n J h | + | ^ n J Q | for Equation (26). This provides more computational stability by preventing too large timestep changes ([11], p.168). We use f max = 3 and f min = 0.01 and do not reject timesteps. Unless specified otherwise, we use Δ t 0 = τ 1 / ( p ^ + 1 ) .
For the DWR method, we use an initial grid with 10 equidistant timesteps. As a refinement strategy, we use fixed-rate refinement [20], refining those 80% with the largest errors. We consider no coarsening. Refinement means to replace a timestep by two steps of half the size. To approximate z z h + , we use a finer grid, dividing all time-intervals in half. While this is expensive, it is also highly accurate. We only consider linear problems and thus do not need to compute u h + to construct the adjoint problem for the finer resolution. Thus, for this refinement strategy, the costs are significantly higher in the nonlinear case. In the nonlinear case, the dual problem is still linear.
We refer to the adaptive method from Section 3 as “Classical” and denote it by “Norm” in figures. For the goal oriented case in Equation (26), we consider the controllers using only quadrature or time-integration estimates, or both; they are denoted by “Goal Q”, “Goal T” and “Goal T+Q” in figures. Using the DWR method we get both the error estimate η ( u h ) , which we denote by “DWR Est” and the actual error “DWR Err”, based on a reference solution.
Unless stated otherwise, we use the trapezoidal rule for quadrature. We verified the correctness of all associated solvers using suitable test problems with exact solutions and visualizations.

5.1. Test Problem

As a simple test problem with known global error dynamics, we consider
u ˙ ( t ) = 1 1 0 k B u ( t ) , u ( t 0 ) = u 0 = 1 1 , t [ t 0 , t e ] = [ 0 , 2 ] .
This test case has a one-sided coupling, which makes it a good candidate for testing some of the cases from Section 4.3. For this, we additionally vary the stiffness of the problem by k { 1 , 100 } .

5.1.1. DWR Estimate

The exact solution is u V = C ( [ t 0 , t e ] ; R 2 ) . We get the weak formulation
t 0 t e ϕ T u ˙ + ϕ T B u d t + ϕ T ( t 0 ) u ( t 0 ) = A ( u , ϕ ) = ϕ T ( t 0 ) u 0 = F ( ϕ ) , ϕ V .
We use the FE space V h : = { u V : u | I n P q ( I n ; R 2 ) } denoting the space of continuous piece-wise q-th order polynomials I n = [ t n , t n + 1 ] R 2 . Let z be the exact adjoint solution for a given J and z h its FE approximation, we get e J = A ( u h , z z h ) F ( z z h ) . We approximate z by z h + to get
e J A ( u h , z h + z h ) F ( z h + z h ) n = 0 N 1 t n t n + 1 u ˙ 1 + u 1 u 2 z h , 1 + z h , 1 + u ˙ 2 + k u 2 z h , 2 + z h , 2 d t .
Defining R 1 ( t ) : = u ˙ 1 + u 1 u 2 z 1 + z 1 and R 2 ( t ) : = u ˙ 2 + k u 2 z 2 + z 2 , we get the final error estimate η h ( u h ) using the composite trapezoidal rule
η ( u h ) : = n = 0 N 1 Δ t n 4 i = 1 2 R i ( t n ) + 2 R i ( t n + Δ t n / 2 ) + R i ( t n + 1 ) .

5.1.2. Numerical Verification of Theorem 2

We first verify Theorem 2 using Simpson’s rule for quadrature and the classical RK scheme to get p = r = 4 . As embedded scheme we use the weights b ^ = 1 3 ( 1 , 1 , 0 , 1 ) T , yielding a third order solution for autonomous systems. We get the local fourth order solution at t n + Δ t n / 2 using the weights b * = 1 24 ( 5 , 4 , 4 , 1 ) T . We expect to get e J = O ( τ ) = O ( N 4 ) from Theorem 2. This is observed in Figure 1.

5.1.3. Method Comparison and Performance Tests

To compare DWR with the local error based methods, we use the Crank–Nicolson scheme and estimate local errors with Implicit Euler. Comparison is done in terms of computational efficiency (error vs. (wall-clock) runtime) and grid quality (error vs. number of timesteps). We consider j ( t , u ) = u 1 for k { 1 , 100 } and j ( t , u ) = u 2 for k = 1 . Results are shown in Figure 2.

5.1.4. Discussion

Considering the global errors, we see DWR does not yield notably better grids, but it is significantly slower for small tolerances as it needs to solve adjoint problems.
In the case of k = 1 and j ( t , u ) = u 2 , we have comparable timesteps for all local error based methods, since the local error in the second component is dominant. These methods have grids of nearly identical quality and require the same computational effort.
For j ( t , u ) = u 1 , we get larger timesteps using the goal oriented method, particularly for k = 100 . Due to the off-diagonal term in B , the flow map shifts errors from the second component, the zero set of j, to the first component. This leads to comparable performance for k = 1 and a performance gain for k = 100 . While not immediately evident, for k = 1 , we have j ( t , ϕ ( t , u ( t ) ) ) = 1 2 e t ( t 1 ) and do not fulfill Equation (27), which is needed for convergence in the QoI. This does, however, not cause computational problems here, but we see notably worse performance when using only the time-integration error estimate.
Comparing the computational efficiency with the grid qualities, we see the goal oriented method using only the quadrature estimate has better performance results than other methods with the same grid quality. This is because we reuse values computed for J h ( u h ) .

5.2. Convection–Diffusion Equation

As a problem with a spatial component, we look at a linear convection-diffusion problem given by
t u ( t , x ) + a v · u ( t , x ) γ Δ u ( t , x ) = f ( t , x ) , ( t , x ) [ t 0 , t e ] × Ω , u ( t 0 , x ) = u 0 ( x ) , x Ω u · n = c u ( t , x ) , ( t , x ) [ t 0 , t e ] × Ω .
We want to model the case of having error build-up in the zero set of j ( t , u ) , which is transported into its image. For this, we consider the domain Ω = [ 0 , 3 ] × [ 0 , 1 ] . We choose a source term f with support Ω f = [ 0.25 , 0.75 ] × [ 0.25 , 0.75 ] and a spatially local QoI sufficiently far away in the downwind direction at Ω * = [ 2.25 , 2.75 ] × [ 0.25 , 0.75 ] . For a visualization of the spatial domain, see Figure 3, for the time-domain we use [ t 0 , t e ] = [ 0 , 6 ] .
The QoI we consider is
J ( u ) = t 0 t e Ω * u ( t , x ) t e t 0 d x ,
i.e., the average value, time and space, in Ω * . We use the source term
f ( t , x ) = 5 t 3 , x Ω f and t < 1 , 5 ( 2 t ) 3 , x Ω f and 1 t < 2 , 0 , x Ω f or 2 t ,
providing a spike-shaped build-up around t = 1 . The remaining parameters are a = 0.5 , γ = 0.01 , c = 0.15 , v = ( 1 , 0 ) T , and u 0 ( x ) = 1 + 0.2 sin ( π x 1 / 3 ) sin ( π x 2 ) . We use as reference solution the result from the classic adaptive method with τ = 10 8 .

5.2.1. Discretization

For our convection–diffusion problem we have a weak solution in the space
V : = H 1 ( t 0 , t e ; L 2 ( Ω ) ) L 2 ( t 0 , t e ; H 1 ( Ω ) ) ,
see [28]. We get the variational formulation
Ω t 0 t e u t ϕ + a ( v · u ) ϕ γ Δ u ϕ d t + u ( t 0 ) ϕ ( t 0 ) d x A ( u , ϕ ) = Ω t 0 t e f ϕ d t + u 0 ϕ ( t 0 ) d x F ( ϕ ) , ϕ V .
By some standard reformulation we get the weak form
t 0 t e Ω ( u t + a ( v · u ) f ) ϕ γ u · ϕ d x + γ c Ω u ϕ d s d t = Ω u 0 ϕ ( t 0 ) u ( t 0 ) ϕ ( t 0 ) d x , ϕ V .
We discretize time along the points t n with I n : = [ t n , t n + 1 ] and space by 2 ( 3 · 32 ) · 32 = 6144 regular triangular cells K defining the finite element mesh. We define the global finite element space by
V h , k = { v L ( t 0 , t e ; H 1 ( Ω ) ) : v ( t , · ) | Q K n Q 1 ( K ) , v ( · , x ) | Q K n P q ( I n ) , Q K n } ,
where P q ( I n ) is the space of polynomials on I n of degree up to q and Q 1 ( K ) the space of polynomials on K with partial degrees up to 1. The adjoint problem to Equations (34) and (35) is
z t ( t , x ) a v · z ( t , x ) γ Δ z ( t , x ) = 1 t e t 0 | Ω * , ( t , x ) [ t 0 , t e ] × Ω , z ( t e , x ) = 0 , x Ω , z ( t , x ) · n = a γ z ( t , x ) v · n c z ( t , x ) , ( t , x ) [ t 0 , t e ] × Ω .

5.2.2. DWR Estimate

We have the error in the QoI given by
e J = t 0 t e Ω ( ( u h ) t + a ( v · u h ) γ Δ u h f ) ( z z h ) d x d t ,
where we approximate z z h + by a finer grid in time. Splitting this by timesteps gives
e J n = 0 N 1 | t n t n + 1 Ω ( ( u h ) t + a ( v · u h ) γ Δ u h f ) ( z h + z h ) d x = : R z ( t ) d t | .
We use the composite trapezoidal rule to get the error estimate
e J η h ( u h ) : = n = 0 N 1 Δ t n 4 R z ( t n ) + 2 R z ( t n + Δ t n / 2 ) + R z ( t n + 1 ) ,
using linear interpolation for u h and z h in computing R z ( t n + Δ t n / 2 ) .

5.2.3. Method Comparison and Performance Tests

We use the same time-integration as in Section 5.1.3. The source term is in the zero set of j ( t , u ) and due to convection M shifts build-up from Ω f to Ω * . Thus, we expect the goal oriented method to perform poorly due to a huge error growth in the zero-set, which later becomes part of the error in the QoI.

5.2.4. Discussion

In Figure 4 (top), we observe the classical adaptive method performs well and the goal oriented adaptive methods, as expected, perform worse. There, timesteps are clearly too big for the given source term. Nevertheless, convergence in the QoI with e J = O ( τ ) is observed, as predicted by Theorem 2. The DWR method is expensive but gives high quality grids. Here, we used it to only adapt in time.
Changing the sign of the convection term, we expect good results for the goal oriented method, as the source term can be neglected. This is observed in Figure 4; bottom (reference solution with τ = 10 9 ). The goal oriented methods perform better than the classical one. The DWR method performs notably worse than in the previous examples.

5.3. Thermal Fluid Structure Interaction

The previous examples were of academic nature, to demonstrate strength and weaknesses of the method, as predicted in Section 4.3. As a third test problem, we consider the coupling of two heat equations with different thermal conductivities and diffusivities. This models, for example, steel cooling with pressurized air. Furthermore, this example will show how the proposed method can be applied seamlessly in a partitioned approach. The model equations for this problem are
α m u m ( t , x ) t · ( λ m u m ( t , x ) ) = 0 , ( t , x ) [ t 0 , t e ] × Ω m , u ( t , x ) = 0 , ( t , x ) [ t 0 , t e ] × Ω m \ Γ , u 1 ( t , x ) = u 2 ( t , x ) , λ 2 u 2 ( t , x ) n 2 = λ 1 u 1 ( t , x ) n 1 , ( t , x ) [ t 0 , t e ] × Γ , u m ( t 0 , x ) = u m 0 ( x ) , x Ω m , m = 1 , 2 .
Our QoI is the time-averaged heat transfer over the interface Γ and given by
J ( u ) = t 0 t e Γ 1 t e t 0 λ 1 u 1 ( t , x ) n 1 d x d t ,
which in the discrete case is given by the finite difference
J h ( u h ) = i = 1 n 1 u Γ i u 1 , Γ i ,
where u Γ i u ( 1 , i Δ x ) and u 1 , Γ i u ( 1 Δ x , i Δ x ) .
We consider the spatial domains Ω 1 = [ 0 , 1 ] × [ 0 , 1 ] , Ω 2 = [ 1 , 2 ] × [ 0 , 1 ] , Γ = Ω 1 Ω 2 , and [ t 0 , t e ] = [ 0 , 0.2 ] . We use the initial conditions
u 0 ( x , y ) = 800 sin ( π y ) 2 sin ( 2 π x ) , x 0.5 200 sin ( π y ) 2 sin ( π ( x 0.5 ) ) , 0.5 < x 1.5 0 , else ,
see Figure 5, which also shows the geometry.
For time-integration we use SDIRK2, which is implicit with ( p , p ^ ) = ( 2 , 1 ) . To solve the problem arising from the so called transmission conditions (Equation (36)) on the interface Γ , we use the Dirichlet–Neumann iteration for each stage derivative of SDIRK2 [29]. We choose the parameters α 1 = 0.1 , λ 1 = 0.01 and α 2 = λ 2 = 1 . Based on the results of [30], this gives us a convergence rate of approximately α 1 / α 2 = 0.1 for the Dirichlet–Neumann iteration for Δ t 0 .
Standard linear FE are used in space for both domains with identical triangular meshes for Δ x = 1 / 81 . Details of the implementation of the discretization and methods can be found in [31].
For this problem, we use Δ t 0 = τ . The reference solution is computed using the classical scheme with τ = 10 6 and an absolute tolerance of 10 12 in the Dirichlet–Neumann iteration, where the numerical tests use an absolute tolerance of τ / 100 .

5.3.1. Method Comparison and Performance Tests

Based on the results from the previous problems, we no longer consider the DWR method. While we specifically considered both grid quality and computational efficiency because of the DWR method, we now look only at grid quality, as these two performance measures are essentially identical here.
We chose u 0 and t e such that there is notable initial heat in the domain Ω 1 , but it has little relevance to the heat flux over the interface Γ .

5.3.2. Discussion

As a result, the classical method will choose small timesteps to correctly resolve the diffusion process on the whole domain, effectively over-resolving the time-domain with respect to the error in the QoI. We expect larger timesteps for the goal-oriented methods with a higher computational efficiency. As seen in Figure 6, we have a gain in efficiency for larger tolerances by a factor larger than 10. For smaller tolerances, this factor is smaller.
Furthermore, Figure 6 shows the timesteps for τ = 10 5 . There, we see upward cusps for the goal-oriented method when using only one error estimate, which are due to sign changes in the heat flux. These violate the controllability requirement (Equation (27)). For both the quadrature and time-integration error, there is no common zero. This guarantees convergence for τ 0 and gives significantly better performance results.

6. Conclusions

Similar to previously proposed methods, we derived a simple and easy to implement goal oriented local error estimator. Implementation comes with little to no extra work and is well-suited for partitioned approaches for coupled systems.
For the resulting goal oriented adaptive method, we show convergence for the first time and its rates with respect to the error in the QoI. To obtain tolerance proportionality, sufficiently high order solutions in all quadrature evaluation points are needed. The proof is constructive and gives rise to a principle to formally show convergence for closely related stepsize controllers.
Performance of the goal oriented method deteriorates when local errors of underresolved processes accumulate in the zero set of the density function that later shift into its image. This can be the case for convection dominated problems, and one should then consider using the standard local error estimate. It is less problematic for dissipative problems, where slow and global processes dominate the error.
Numerical experiments designed to test these guidelines show them to work well, as well as confirming the results on convergence rates. The tests show that bad performance of the goal oriented method can be predicted and thus avoided. For dissipative test cases, the DWR method is notably more expensive and outperformed by the local error based method. The goal oriented adaptive method shows good performance in most cases and significant speedups in some.

Future Work

It would be interesting to test the proposed goal oriented method in the context of PDE-constrained optimization. There, one has to repeatedly solve a given PDE for varying parameters. This would be particularly interesting for non-gradient based optimization algorithms, where the proposed method could lead to considerable speedups for the optimization process as a whole.
Our analysis is based on a specific type of QoI. It is natural to try to extend our results to more general QoIs, for example, point-wise evaluations in time.
One could further generalize this work by using a density function j est in error estimation, that is not the density function j from the QoI. This adds a degree of freedom in constructing the goal oriented method and can be used to overcome possible weaknesses, such as vanishing error estimates. This requires further testing and gives rise to the question on how to optimally choose j est .

Author Contributions

P.M.: investigation, methodology, software, validation, formal analysis, visualization, writing. P.B.: conceptualization, funding acquisition, methodology, formal analysis, supervision, writing. All authors have read and agreed to the published version of the manuscript.

Funding

The authors gratefully acknowledge support from the Crafoord Foundation under grant number 20150681.

Acknowledgments

The authors want to thank Patrick Farrell for helping with FEniCS and dolfin-adjoint, Claus Führer and Gustaf Söderlind for valuable feedback for many interesting discussions, and Azahar Monge for the implementation of the final test problem.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Helsen, M.M.; Van De Berg, W.J.; Van De Wal, R.S.; Van Den Broeke, M.R.; Oerlemans, J. Coupled regional climate-ice-sheet simulation shows limited Greenland ice loss during the Eemian. Clim. Past 2013, 9, 1773–1788. [Google Scholar] [CrossRef] [Green Version]
  2. Xudong, W.; Shen, W.Z.; Zhu, W.J.; Sørensen, J.N.; Jin, C. Shape optimization of wind turbine blades. Wind Energy 2009, 12, 781–803. [Google Scholar] [CrossRef]
  3. Funke, S.W.; Farrell, P.E.; Piggott, M.D. Tidal turbine array optimisation using the adjoint approach. Renew. Energy 2014, 63, 658–673, arXiv:1304.1768v1. [Google Scholar] [CrossRef]
  4. Becker, R.; Rannacher, R. An optimal control approach to a posteriori error estimation in finite element methods. Acta Numer. 2001, 10, 1–102. [Google Scholar] [CrossRef]
  5. Prudhomme, S. A Posteriori Error Estimates of Quantities of Interest. In Encyclopedia of Applied and Computational Mathematics; Springer: Berlin/Heidelberg, Germany, 2015; pp. 1–5. [Google Scholar]
  6. Meidner, D.; Richter, T. Goal-oriented error estimation for the fractional step theta scheme. Comput. Methods Appl. Math. 2014, 14, 203–230. [Google Scholar] [CrossRef] [Green Version]
  7. Meidner, D.; Richter, T. A posteriori error estimation for the fractional step theta discretization of the incompressible Navier-Stokes equations. Comput. Methods Appl. Mech. Eng. 2015, 288, 45–59. [Google Scholar] [CrossRef]
  8. Steiner, C.; Noelle, S. On adaptive timestepping for weakly instationary solutions of hyperbolic conservation laws via adjoint error control. Int. J. Numer. Methods Biomed. Eng. 2010, 26, 790–806. [Google Scholar] [CrossRef] [Green Version]
  9. Carey, V.; Estep, D.J.; Johansson, A.; Larson, M.G.; Tavener, S. Blockwise adaptivity for time dependent problems based on coarse scale adjoint solutions. SIAM J. Sci. Comput. 2010, 32, 2121–2145. [Google Scholar] [CrossRef] [Green Version]
  10. Jando, D. Efficient goal-oriented global error estimators for BDF methods using discrete adjoints. J. Comput. Appl. Math. 2017, 316, 195–212. [Google Scholar] [CrossRef]
  11. Hairer, E.; Nørsett, S.P.; Wanner, G. Solving Ordinary Differential Equations I; Springer: Berlin, Germany, 1993. [Google Scholar]
  12. Shampine, L.F. Numerical Solution of Ordinary Differential Equations; CRC Press: Boca Raton, FL, USA, 1994; Volume 4. [Google Scholar]
  13. Sandu, A.; Department of Computer Science, Virginia Tech, Blacksburg, VA, USA. Personal Communication, September 2018.
  14. Meisrimel, P.; Birken, P. On Goal Oriented Time Adaptivity using Local Error Estimates. PAMM 2017, 17, 849–850. [Google Scholar] [CrossRef] [Green Version]
  15. John, V.; Rang, J. Adaptive time step control for the incompressible Navier-Stokes equations. Comput. Methods Appl. Mech. Eng. 2010, 199, 514–524. [Google Scholar] [CrossRef]
  16. Turek, S. Efficient Solvers for Incompressible Flow Problems: An Algorithmic and Computational Approach, 6th ed.; Springer: Berlin/Heidelberg, Germany, 1999. [Google Scholar]
  17. Failer, L.; Wick, T. Adaptive Time-Step Control for Nonlinear Fluid-Structure Interaction. J. Comput. Phys. 2018, 366, 448–477. [Google Scholar] [CrossRef]
  18. Wick, T. Coupling fluid-structure interaction with phase-field fracture: algorithmic details. In Fluid-Structure Interaction: Modeling, Adaptive Discretizations and Solvers; Frei, S., Holm, B., Richter, T., Wick, T., Yang, H., Eds.; Radon Series 20; De Gruyter: Berlin, Germnay, 2017; pp. 1–37. [Google Scholar]
  19. Söderlind, G. Digital filters in adaptive time-stepping. ACM Trans. Math. Softw. 2003, 29, 1–26. [Google Scholar] [CrossRef] [Green Version]
  20. Bangerth, W.; Rannacher, R. Adaptive Finite Element Methods for Differential Equations; Birkhäuser: Basel, Switzerland, 2013. [Google Scholar]
  21. Griewank, A.; Walther, A. Algorithm 799: Revolve: An Implementation of Checkpointing for the Reverse or Adjoint Mode of Computational Differentiation. ACM Trans. Math. Softw. (TOMS) 2000, 26, 19–45. [Google Scholar] [CrossRef]
  22. Farrell, P.E.; Ham, D.A.; Funke, S.W.; Rognes, M.E. Automated derivation of the adjoint of high-level transient finite element programs. SIAM J. Sci. Comput. 2013, 35, C369–C393. [Google Scholar] [CrossRef] [Green Version]
  23. Shampine, L.F. The step sizes used by one-step codes for ODEs. Appl. Numer. Math. 1985, 1, 95–106. [Google Scholar] [CrossRef]
  24. Söderlind, G. The logarithmic norm. History and modern theory. BIT Numer. Math. 2006, 46, 631–652. [Google Scholar] [CrossRef]
  25. Gear, C.W. Numerical Initial Value Problems in Ordinary Differential Equations; Prentice Hall PTR: Upper Saddle River, NJ, USA, 1971. [Google Scholar]
  26. Logg, A.; Mardal, K.A.; Wells, G. Automated Solution of Differential Equations by the Finite Element Method: The FEniCS Book; Springer: Berlin/Heidelberg, Germany, 2012; Volume 84. [Google Scholar]
  27. Meisrimel, P. Available online: https://github.com/PeterMeisrimel/goal_oriented (accessed on 30 April 2020).
  28. Renardy, M.; Rogers, R.C. An Introduction to Partial Differential Equations; Springer: Berlin/Heidelberg, Germany, 2006; Volume 13. [Google Scholar]
  29. Birken, P.; Quint, K.J.; Hartmann, S.; Meister, A. A time-adaptive fluid-structure interaction method for thermal coupling. Comput. Vis. Sci. 2010, 13, 331–340. [Google Scholar] [CrossRef]
  30. Monge, A.; Birken, P. On the convergence rate of the Dirichlet-Neumann iteration for unsteady thermal fluid-structure interaction. Comput. Mech. 2018, 62, 525–541. [Google Scholar] [CrossRef] [Green Version]
  31. Monge, A. The Dirichlet-Neumann Iteration for Unsteady Thermal Fluid Structure Interaction. Licentiate Thesis, Lund University, Lund, Sweden, 2016. [Google Scholar]
Figure 1. Verification of Theorem 2 using 4-th order schemes for the goal oriented adaptive method on Problem (33) for k = 1 and functionals j ( t , u ) as shown in the legend.
Figure 1. Verification of Theorem 2 using 4-th order schemes for the goal oriented adaptive method on Problem (33) for k = 1 and functionals j ( t , u ) as shown in the legend.
Algorithms 13 00113 g001
Figure 2. Performance comparison of the various methods for Problem (33). Top: k = 1 and j ( t , u ) = u 1 , center: k = 1 and j ( t , u ) = u 2 , bottom: k = 100 and j ( t , u ) = u 1 .
Figure 2. Performance comparison of the various methods for Problem (33). Top: k = 1 and j ( t , u ) = u 1 , center: k = 1 and j ( t , u ) = u 2 , bottom: k = 100 and j ( t , u ) = u 1 .
Algorithms 13 00113 g002
Figure 3. Geometry of Ω for the convection–diffusion Problem (34).
Figure 3. Geometry of Ω for the convection–diffusion Problem (34).
Algorithms 13 00113 g003
Figure 4. Comparison of the various methods for the convection diffusion Problem (34) with QoI as in Equation (35). (Top): Performance for positive v . (Centre): Tolerance over error and chosen timesteps for τ = 10 6 (positive v ). (Bottom): Performance for negative v and t e = 3 .
Figure 4. Comparison of the various methods for the convection diffusion Problem (34) with QoI as in Equation (35). (Top): Performance for positive v . (Centre): Tolerance over error and chosen timesteps for τ = 10 6 (positive v ). (Bottom): Performance for negative v and t e = 3 .
Algorithms 13 00113 g004
Figure 5. (Left): Geometry for the coupled heat problem. (Right): Initial condition (Equation (37)).
Figure 5. (Left): Geometry for the coupled heat problem. (Right): Initial condition (Equation (37)).
Algorithms 13 00113 g005
Figure 6. Comparison of the local error based adaptive methods for the coupled heat problem.
Figure 6. Comparison of the local error based adaptive methods for the coupled heat problem.
Algorithms 13 00113 g006

Share and Cite

MDPI and ACS Style

Meisrimel, P.; Birken, P. Goal Oriented Time Adaptivity Using Local Error Estimates. Algorithms 2020, 13, 113. https://doi.org/10.3390/a13050113

AMA Style

Meisrimel P, Birken P. Goal Oriented Time Adaptivity Using Local Error Estimates. Algorithms. 2020; 13(5):113. https://doi.org/10.3390/a13050113

Chicago/Turabian Style

Meisrimel, Peter, and Philipp Birken. 2020. "Goal Oriented Time Adaptivity Using Local Error Estimates" Algorithms 13, no. 5: 113. https://doi.org/10.3390/a13050113

APA Style

Meisrimel, P., & Birken, P. (2020). Goal Oriented Time Adaptivity Using Local Error Estimates. Algorithms, 13(5), 113. https://doi.org/10.3390/a13050113

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop