## Goal-oriented error estimation and adaptivity in MsFEM computations

Ludovic Chamoin a,b, ∗ , Fr´ ed´ric Legoll e c,b

a LMT (ENS Paris-Saclay, CNRS, Universit´ e Paris-Saclay), 61 avenue du Pr´sident Wilson, 94235 Cachan, France e b Inria Paris, MATHERIALS project-team, 2 rue Simone Iff, CS 42112, 75589 Paris Cedex 12, France c Laboratoire Navier (ENPC, Paris-Est University), 6-8 avenue Blaise Pascal, 77455 Marne-La-Vall´e Cedex 2, France e

## Abstract

We introduce a goal-oriented strategy for multiscale computations performed using the Multiscale Finite Element Method (MsFEM). In a previous work, we have shown how to use, in the MsFEM framework, the concept of Constitutive Relation Error (CRE) to obtain a guaranteed and fully computable a posteriori error estimate in the energy norm (as well as error indicators on various error sources). Here, the CRE concept is coupled with the solution of an adjoint problem to control the error and drive an adaptive procedure with respect to a given output of interest. Furthermore, a local and non-intrusive enrichment technique is proposed to enhance the accuracy of error bounds. The overall strategy, which is fully automatic and robust, enables to reach an appropriate trade-off between certified reliability and computational cost in the MsFEM context. The performances of the proposed method are investigated on several illustrative numerical test cases. In particular, the error estimation is observed to be very accurate, yielding a very efficient adaptive procedure.

Keywords: Multiscale problems, MsFEM approach, A posteriori error estimation, Goal-oriented,

Adaptivity

2010 MSC:

35Q74, 65N15, 74S05

## 1. Introduction and objectives

Highly heterogeneous materials are ubiquitous in Material Sciences and Computational Mechanics. Examples include porous or perforated media, composite materials, . . .Developing multiscale numerical methods to simulate the (thermal, mechanical, . . .) response of such materials is an increasingly active research field. As an alternative to solving a full fine-scale problem (the cost of which is usually prohibitively expensive), multiscale modeling aims at linking the different scales by appropriately capturing the effect of the smaller scales on the larger scales. This enables an accurate description of complex physical phenomena and/or the prediction of macroscopic properties at a limited computational cost. In the recent years, significant progress has been witnessed in the design of multiscale methods for elliptic PDEs that take into account scale separation between macroscopic and microscopic features. We can distinguish two families of multiscale methods. The first family includes approaches relying on multilevel finite elements, such as HMM or FE 2 methods [22, 26]. They perform a numerical homogenization of the medium in order to find local effective material properties, which are next inserted in a global macroscopic problem which can be handled with a reduced number of degrees of freedom. Such approaches can be considered as numerical generalizations of classical homogenization approaches (see e.g. [9]) to non-periodic media. The second family includes approaches based on superposition of scales, such as the GFEM [64], the MsFEM [33], the LOD [51] and the VMS [36] methods, to name but a few. In this work, we focus on the Multiscale Finite Element Method (MsFEM) which has been the object of numerous research works (see [24] for an overview). This method is based on the classical FEM framework, defining an approximate solution in a finite dimension space related to a macroscopic mesh, but uses specific basis functions which encode fine-scale details. The basis functions are obtained, in a preliminary offline stage, by solving fine-scale equations over local subdomains. The MsFEM approximation is next computed during an inexpensive online stage, and provides a numerical approximation that describes details of the exact solution at different scales, including the small ones.

∗ . Corresponding author

Email addresses: ludovic.chamoin@ens-paris-saclay.fr (Ludovic Chamoin), frederic.legoll@enpc.fr (Fr´d´ric e e Legoll)

A recurring concern when using multiscale methods is the control of the accuracy of the numerical solution. In particular, it is critical to understand, quantify and control how errors generated by different sources and at different scales affect the overall error, in order to build relevant adaptive strategies and focus the computational efforts where they are required. Following the large literature on a posteriori error estimation in the monoscale framework of the Finite Element Method (FEM) (see e.g. [67, 3] for classical textbooks and [18] for a recent review), several verification tools have been developed for multiscale methods [65, 44, 45, 52, 1, 37, 2, 31, 20]. However, many open questions remain, such as quantitative assessment of error propagation across scales, relevant adaptive strategies, . . .Recently, we have proposed a robust a posteriori error estimation tool for MsFEM computations [19]. It uses the concept of Constitutive Relation Error (CRE), which has been developed in the Computational Mechanics community for more than thirty years [42]. It enables both (i) to derive fully computable (i.e. without any unknown multiplicative constant) and guaranteed bounds on the global error measured in the energy norm, which may further be used as stopping criteria in adaptive algorithms, from an extension of the CRE to the multiscale context, and (ii) to assess the various MsFEM error sources and drive an adaptive algorithm from local error maps in order to reach a prescribed error tolerance.

In the present article, we extend the methodology introduced in [19] to a posteriori goal-oriented error estimation, namely the control of the error on specific scalar-valued outputs of interest for problems discretized with MsFEM. In this specific context, material heterogeneities may indeed require standard adaptive methods to add degrees of freedom in regions with limited influence on the output of interest, or not to add some in regions which significantly affect this output. Consequently, alternative a posteriori error estimation and adaptivity methods need to be introduced, taking into account the specific quantities of interest of the problem. For that purpose, we introduce classical duality arguments along with an adjoint problem [6, 59, 63, 21, 62, 53, 29, 16], which enable to target the error estimation and adaptivity procedure towards the approximation of the considered quantity of interest. We also use strategies to bound the error that are similar to those employed for monoscale applications with CRE [38, 17, 39, 58, 68, 43]. In particular, we introduce a non-intrusive approach for the approximate solution of the adjoint solution (using so-called handbook functions), which enables to obtain both guaranteed and sharp error bounds. We also define local indicators on various error sources (coarse mesh size, size of the local fine meshes, . . .) in order to drive the adaptive strategy, and automatically and iteratively select optimal MsFEM parameters to be used locally for reducing the error in the goal functional. In order to comply with the MsFEM philosophy and the multi-query paradigm, all additional costly computations associated with the proposed procedures are performed in the offline stage. The overall verification tool enables to perform MsFEM computations in which : (i) a given precision on specified outputs of interest is attained at the end of the simulation ; (ii) the computational work which is needed is as small as possible. The proposed approach, devoted to the Multiscale Finite Element Method and which fulfills the above two objectives, is an alternative to the goal-oriented adaptive strategy recently proposed in [20] within the Generalized Multiscale Finite Element framework, which uses residual-based techniques and which mainly focuses on goal-oriented adaptivity alone. We also mention the approach [44] proposed in the VMS framework, and the approach [50] proposed in the HMM framework where the overall error is also split between different contributions each related to a discretization parameter.

The performances of our approach are evaluated on several numerical examples. It is interesting to note that it leads in practice to MsFEM computations with guaranteed prescribed accuracy, and in which fine-scale features of the solution are required (and captured using fine discretization parameters) only in very localized parts of the physical domain. A limited accuracy of the fine scale computations is thus sufficient. Consequently, it naturally and automatically shares some resemblance with alternative multiscale computing strategies based on local enrichments or couplings between fine-scale and coarser-scale (upscaled) models [48, 8, 15, 28, 49], these strategies being associated to modeling error estimation [57, 56, 66, 54, 61, 4].

This article is organized as follows. In Section 2, we introduce the model problem we consider along with basic notions on the MsFEM discretization approach. The CRE concept applied to the MsFEM framework is recalled in Section 3. In Section 4, we extend this concept to goal-oriented error estimation within MsFEM computations. This is the core of this work. An associated adaptive strategy, enabling to control the accuracy of outputs of interest, is introduced in Section 5. We discuss several illustrative numerical experiments in Section 6. Eventually, conclusions and perspectives are collected in Section 7.

## 2. Model problem and MsFEM approximation

To start with, we describe our model problem in Section 2.1. In Section 2.2, we next recall some basic elements on several variants of MsFEM : the initial conforming variant, the oversampling variant (see Section 2.2.3) and the higher-order variant introduced by G. Allaire and R. Brizzi (see Section 2.2.4). The reader familiar with MsFEM may easily skip Section 2.2 and directly proceed to the a posteriori error estimation strategy described in Section 3.

## 2.1. Model problem

We consider mathematical models described by partial differential equations (PDEs) and characterized by multiscale material heterogeneities. For the sake of simplicity, we focus on the following elliptic problem posed on some open and bounded domain Ω ⊂ R d :

$$- \nabla \cdot ( A ^ { \varepsilon } \nabla u ^ { \varepsilon } ) = f \text{ in } \Omega, \quad u ^ { \varepsilon } = 0 \text{ on } \Gamma _ { D }, \quad A ^ { \varepsilon } \nabla u ^ { \varepsilon } \cdot n = g \text{ on } \Gamma _ { N }.$$

The boundary Γ = ∂ Ω is split into a subset Γ D ⊂ ∂ Ω (with measure | Γ D | &gt; 0) where homogeneous Dirichlet boundary conditions are applied, and a subset Γ N = ∂ Ω \ Γ D ⊂ ∂ Ω where Neumann boundary conditions are applied. We assume that f ∈ L 2 (Ω) and g ∈ L 2 (Γ N ), corresponding to body and traction loadings respectively, are slowly varying functions. The quantity q ε = A ε ∇ u ε is the flux associated to u ε through the constitutive relation.

The second-order diffusion tensor A ε ∈ ( L ∞ (Ω)) d × d is a heterogeneous object, with rapid oscillations and possibly high contrast. The parameter ε refers to the typical (presumably small) length scale of the heterogeneities. We assume that A ε is a symmetric matrix that is uniformly elliptic and bounded, in the sense that there exist α &gt; 0 and β &gt; 0 such that

$$\forall \varepsilon \geq 0, \ \forall \xi \in \mathbb { R } ^ { d }, \ \alpha | \xi | ^ { 2 } \leq \mathbb { A } ^ { \varepsilon } ( x ) \xi \cdot \xi \leq \beta | \xi | ^ { 2 } \ \text{a.e. in } \Omega.$$

Introducing the functional space V = { v ∈ H 1 (Ω) , v = 0 on Γ D } , the weak formulation of (1) consists in finding u ε ∈ V such that

$$\forall v \in V, \ \ B ^ { \varepsilon } ( u ^ { \varepsilon }, v ) = F ( v )$$

with

$$B ^ { \varepsilon } ( u, v ) = \int _ { \Omega } \mathbb { A } ^ { \varepsilon } \nabla u \cdot \nabla v, \quad F ( v ) = \int _ { \Omega } f \, v + \int _ { \Gamma _ { N } } g \, v.$$

The bilinear form B ε is symmetric, continuous and coercive on V . It thus defines an inner product and induces the energy norm | | | v | | | = √ B ε ( v, v ) on V . The H 1 -norm is denoted ‖ · ‖ 1 , and it is equivalent to the norm | | | · | | | on V .

The model problem (2) may be numerically solved using classical and direct numerical techniques, such as the finite element method (FEM). In this method, a conforming partition T H of Ω is introduced ( H denotes the characteristic size of the elements of T H ) and a finite dimensional space V 0 H ⊂ V is constructed from Lagrange basis functions φ 0 i associated with each node i of T H . The solution to (2) is thus approximated by u H = ∑ u φ i 0 ∈ V 0 , solution to

$$\mu \sum _ { i } u _ { i } \, \varphi _ { i } \in V _ { \check { H } }, s$$

$$\forall v \in V ^ { 0 } _ { H }, \ \ B ^ { \varepsilon } ( u _ { H }, v ) = F ( v ).$$

A very fine mesh is necessary to represent the multiscale nature of the solution u ε . This leads to choosing H &lt; ε , and thus a prohibitively large number of degrees of freedom. The resulting method has a too high computational complexity.

As an alternative, multiscale model reduction techniques based on a scale separation assumption are typically used to solve (2) accurately and efficiently. On the one hand, homogenization strategies can be employed when the structure of A ε is periodic (or locally periodic, or random and stationary, . . . ; see [9]), or when one is only interested in macroscopic/upscaled properties of the model (1) (we refer e.g. to [22, 26]). On the other hand, multiscale numerical approaches have the capability to approximate, efficiently and for general structures of A ε , the details of u ε at all scales. In the following, we focus on the Multiscale Finite Element Method (MsFEM) [33, 24, 46], which is one of these latter approaches.

## 2.2. MsFEM approximation

## 2.2.1. General strategy

We define two partitions of Ω : (i) a coarse grid partition T H , referred to as the macro mesh ; (ii) a fine grid partition T h , subordinate to T H , referred to as the micro mesh (the mesh size h is chosen smaller, and often much smaller, than H ). The mesh T h is in practice obtained by refining each coarse element of T H . It should be chosen so that oscillations of the data can be accurately captured on T h .

The main idea in the MsFEM approach is to construct a set { φ ε i } of multiscale basis functions, associated with each node i of the macro mesh T H , which encode fine scale information and local heterogeneities of the solution space. These are constructed locally, in an offline phase, as the solutions, over each element K of the coarse mesh (or over a local region S K ⊃ K ), to problems of the form

$$\nabla \cdot ( \mathbb { A } ^ { \varepsilon } \nabla \phi _ { i } ^ { \varepsilon } ) = 0 \quad \text{in } K,$$

complemented with boundary conditions discussed below. We notice that the local problems (3) are decoupled one from each other. They are thus well-suited to parallel computations. Furthermore, they do not depend on the loads f and g , which is a main advantage in a multi-query context. These local problems are in practice solved numerically using the micro mesh T h .

Remark 1. A variant in the construction of multiscale basis functions, referred to as the Generalized Multiscale Finite Element Method (GMsFEM), was recently introduced in [23]. It consists in defining a larger number of basis functions over each element K of T H , which are obtained using local spectral problems.

Once the multiscale basis functions are computed, a classical Galerkin approximation of (2) is performed on the finite dimensional space V ε H = Span { φ ε i } . The solution to (2) is thus approximated by some u ε H = ∑ i u φ i ε i ∈ V ε H , defined as the solution (computed during the online phase) to the following global problem :

$$\forall v \in V _ { H } ^ { \varepsilon }, \ \ B ^ { \varepsilon } ( u _ { H } ^ { \varepsilon }, v ) = F ( v ).$$

We note that V ε H and V 0 H share the same dimension. The above problem hence involves a limited number of degrees of freedom. The small scale information incorporated in the basis functions φ ε i is thus brought to the large scales through couplings in the global stiffness matrix. The assembly of this matrix is inexpensive since it reuses local matrices computed and stored in the offline stage.

The MsFEM approach leads to a considerable decrease in memory requirements and CPU cost as an accurate approximation may be obtained for H glyph[greatermuch] ε . Nevertheless, a posteriori error estimates and adaptive techniques are required to ensure a sufficiently high-fidelity approximation at a limited cost. These are addressed in Sections 3 and 4.

## 2.2.2. Conforming MsFEM

The choice of the boundary conditions for the local problems (3) (when constructing the multiscale basis functions) is of critical importance, since it can significantly affect the accuracy of the MsFEM solution. A first choice, leading to a conforming numerical discretization, is to impose an affine evolution of φ ε i along ∂K . Introducing the classical first-order and piecewise affine FE basis functions φ 0 i , we thus consider the local problems

$$\nabla \cdot ( \mathbb { A } ^ { \varepsilon } \nabla \phi _ { i } ^ { \varepsilon } ) = 0 \ \text{ in } K, \quad \phi _ { i } ^ { \varepsilon } = \phi _ { i } ^ { 0 } \ \text{ on } \partial K.$$

In the regime of interest H ≥ ε , assuming that A ε has a periodic structure (i.e. A ε = A per ( · /ε ) for some fixed matrix A per ) and that the local problems (5) are solved exactly (and under some technical regularity assumptions), the following a priori error estimate holds [34] :

$$\| u ^ { \varepsilon } - u _ { H } ^ { \varepsilon } \| _ { 1 } \leq C \left ( H + \sqrt { \frac { \varepsilon } { H } } + \sqrt { \varepsilon } \right ),$$

where the constant C is independent of ε and H . This estimate is derived using the periodic homogenization theory that provides (when ε glyph[lessmuch] 1) a detailed description of u ε and φ ε i in terms of a two-scale expansion [9]. It is the sum of three terms :

- - the term in O ( √ ε ) comes from the homogenization theory, and quantifies the difference between u ε and its two-scale expansion (this error is essentially located close to ∂ Ω; recall in particular that u ε satisfies homogeneous Dirichlet boundary conditions on Γ D , whereas its two-scale expansion does not) ;
- - the term in O ( √ ε/H ) again comes from the homogenization theory, and quantifies the difference between any basis function φ ε i and its two-scale expansion (this error is essentially located close to ∂K ) ;
- - the term in O H ( ) is a classical a priori error estimate contribution. It appears when approximating the homogenized solution (associated to u ε ) by means of the piecewise affine basis functions φ 0 i .

## 2.2.3. Oversampling technique

The basis functions defined by (5) do not oscillate on the coarse mesh edges, which leads to a poor approximation of u ε close to these edges. To improve on that, a possible strategy is to impose affine Dirichlet boundary conditions on the boundary of a domain S K ⊃ K which is slightly larger than K (and often homothetic to K , for practical reasons), and to only use the interior information, on K , to construct the basis functions. The motivation stems from the fact that the information inside K depends only mildly on the (incorrect) boundary conditions imposed on ∂S K . This so-called oversampling technique thus consists in first solving the local problems

$$\nabla \cdot ( \mathbb { A } ^ { \varepsilon } \nabla \psi _ { i } ^ { \varepsilon } ) = 0 \ \text{ in } S _ { K }, \quad \psi _ { i } ^ { \varepsilon } \text{ is affine on } \partial S _ { K }, \quad \psi _ { i } ^ { \varepsilon } ( \mathbf s _ { j } ) = \delta _ { i j },$$

where s j are the coordinates of the vertices of S K , before defining the MsFEM basis functions in K as φ ε i = ψ ε i K | . In general, the obtained basis functions φ ε i are discontinuous at the boundaries of the macro elements of T H . This thus leads to a non-conforming MsFEM approximation : V ε H = Span { φ ε i } glyph[negationslash]⊂ V .

K ∈T H ε ε is defined as the solution to

In this framework, the bilinear form in (4) is replaced by B ε H ( u, v ) = ∑ ∫ K A ε ∇ u · ∇ v , and the approximation u H ∈ V H

$$\forall v \in V _ { H } ^ { \varepsilon }, \ \ B _ { H } ^ { \varepsilon } ( u _ { H } ^ { \varepsilon }, v ) = F ( v ).$$

Remark 2. It is also possible to define φ ε i in K as a linear combination of the functions ψ ε j K | . We refer e.g. to [47, Eq. (2.8)] for more details.

An a priori error estimate is given in [25] for the oversampling variant of MsFEM, under the same assumptions as for (6) (in particular, A ε is again assumed to be periodic). It reads

$$\| u ^ { \varepsilon } - u _ { H } ^ { \varepsilon } \| _ { 1, H } \leq C \left ( H + \frac { \varepsilon } { H } + \sqrt { \varepsilon } \right ),$$

where the constant C is independent of ε and H and where ‖· ‖ 1 ,H is the broken H 1 -norm. Furthermore, a Petrov-Galerkin formulation is proposed in [35], with the aim to further decrease the cell resonance error (which occurs when H ≈ ε ). The formulation, in which the above non-conforming multiscale basis functions are used for trial functions while conforming linear Lagrange test functions are considered, reads

$$\text{Find } u _ { H } ^ { \varepsilon } \in V _ { H } ^ { \varepsilon } \text{ such that, for any } v \in V _ { H } ^ { 0 }, \ \ B _ { H } ^ { \varepsilon } ( u _ { H } ^ { \varepsilon }, v ) = F ( v ).$$

## 2.2.4. Higher-order MsFEM

In the original version of MsFEM, the multiscale basis functions φ ε i are constructed from linear coarsescale functions φ 0 i . The construction of higher-order MsFEM basis functions was introduced in [5] using local harmonic coordinates. For each element K ∈ T H , these coordinates w ε,K j ( j = 1 , . . . , d ) are defined as the solutions to

$$\nabla \cdot ( \mathbb { A } ^ { \varepsilon } \nabla w _ { j } ^ { \varepsilon, K } ) = 0 \text{ in } K, \quad w _ { j } ^ { \varepsilon, K } = x \cdot e _ { j } \text{ on } \partial K.$$

We next define w ε j ∈ H 1 (Ω) by w ε j K | = w ε,K j , and set w ε = ( w , . . . , w ε 1 ε d ) T . Introducing the set { φ 0 i } of the Lagrange basis functions of order k , the higher-order MsFEM basis { φ ε i } is constructed from the composition

$$\phi _ { i } ^ { \varepsilon } = \phi _ { i } ^ { 0 } \circ w ^ { \varepsilon }.$$

Choosing Lagrange functions { φ 0 i } of order 1 leads to the classical MsFEM basis defined by (5). The approach is easy to implement since the computation of the oscillating functions w ε j is independent of the

order k of the coarse scale basis. This approach is advantageously used in the following sections to both compute a posteriori error estimates and drive the adaptive strategy.

In the case when A ε is periodic, an a priori error estimate is given in [5] when considering MsFEM basis functions of order k . It reads

$$\| u ^ { \varepsilon } - u _ { H } ^ { \varepsilon } \| _ { 1 } \leq C \left ( H ^ { k } + \sqrt { \frac { \varepsilon } { H } } + \sqrt { \varepsilon } \right ),$$

where the constant C is independent of ε and H .

Remark 3. As in the oversampling technique described in Section 2.2.3, the local problems (8) can be posed on a larger domain S K ⊃ K before using the restriction to K of the solutions. In this case, the support of φ ε i may be different from that of φ 0 i , and a non-conforming MsFEM approximation is obtained.

Remark 4. An alternative higher-order MsFEM approach was recently proposed in [32].

## 3. The CRE concept applied to MsFEM

In this section, we review the method we have introduced in [19] to obtain a rigorous and fully computable upper bound on the MsFEM error measured in the energy norm, i.e. an upper bound on | | | u ε -u ε H | | | . It uses the concept of Constitutive Relation Error (CRE) based on duality [27, 55]. A detailed overview on CRE (in a single scale framework) can be read in [42].

## 3.1. Definition of an a posteriori error estimate

Introduce the space of equilibrated fluxes

$$\mathcal { S } = \left \{ p \in \mathcal { H } ( d i v, \Omega ) ; \ \forall v \in V, \ \int _ { \Omega } p \cdot \nabla v = \int _ { \Omega } f v + \int _ { \Gamma _ { N } } g v \right \}$$

and define, for any pair ( ̂ ̂ u, p ) ∈ V ×S , the CRE functional E CRE as

$$E _ { C R E } ( \widehat { u }, \widehat { p } ) = \left ( \int _ { \Omega } ( \mathbb { A } ^ { \varepsilon } ) ^ { - 1 } ( \widehat { p } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } ) \cdot ( \widehat { p } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } ) \right ) ^ { 1 / 2 } = \| \| \widehat { p } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } \| _ { \mathcal { F } },$$

where | | | · | | | F denotes the energy norm on flux fields. The equality

$$\forall ( \widehat { u }, \widehat { p } ) \in V \times \mathcal { S }, \quad ( E _ { C R E } ( \widehat { u }, \widehat { p } ) ) ^ { 2 } = \| q ^ { \varepsilon } - \widehat { p } \| _ { \mathcal { F } } ^ { 2 } + \| u ^ { \varepsilon } - \widehat { u } \| ^ { 2 },$$

referred to as the Prager-Synge equality, is a direct consequence of the property ∫ Ω ( q ε -̂ p ) · ∇ ( u ε -̂ u ) = 0 (we recall that q ε = A ε ∇ u ε ). Another equality, derived from (9), reads

$$E _ { C R E } ( \widehat { u }, \widehat { p } ) = 2 \| \tilde { q } ^ { \varepsilon } - \widehat { p } ^ { * } \| _ { \mathcal { F } } \quad \text{where} \quad \widehat { p } ^ { * } = \frac { 1 } { 2 } ( \widehat { p } + \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } ).$$

With a given ̂ p ∈ S at hand, a guaranteed and computable bound on the global MsFEM error | | | u ε -u ε H | | | can be derived from (9), as we now explain. When using a conforming MsFEM, we have V ε H ⊂ V . We can hence choose ̂ u = u ε H in (9), which directly yields

$$\| | u ^ { \varepsilon } - u _ { H } ^ { \varepsilon } \| & \leq E _ { C R E } ( u _ { H } ^ { \varepsilon }, \widehat { \mathfrak { P } } ).$$

When considering a nonconforming version of MsFEM, we may recover a field ̂ u ε H ∈ V from u ε H by a local averaging on the edges of the partition T H . Using the triangle inequality, we get

$$\| u ^ { \varepsilon } - u _ { H } ^ { \varepsilon } \| _ { H } & \leq E _ { C R E } ( \widehat { u } _ { H } ^ { \varepsilon }, \widehat { \mathfrak { P } } ) + \| \widehat { u } _ { H } ^ { \varepsilon } - u _ { H } ^ { \varepsilon } \| _ { H },$$

where | | | · | | | H is the broken energy norm. The right-hand sides of (11) and (12) are fully computable.

Of course, the accuracy of the CRE estimate depends on the choice of

p

.

In view of (9), we see that the difference

| | |

q

ε

̂

ε

̂

F

̂

-

p

| | |

should be small in comparison with

| | |

u

-

| | |

u

.

## 3.2. Computation of an equilibrated flux field

The technical point in the CRE concept is the construction of a relevant flux field ̂ p ∈ S . A convenient strategy, that we have introduced for all variants of MsFEM in [19] as an extension to that usually employed in the monoscale framework (see e.g. [40, 41, 60]), consists in post-processing the approximate MsFEM flux q ε H = A ε ∇ u ε H at hand in order to build a flux ̂ q ε H which belongs to S . The strategy consists in two steps :

- - in Step 1, some tractions ̂ g K ( x ) are defined along the edges of each element K ∈ T H , with ̂ g K = g on Γ N (see Fig. 1). They satisfy an equilibrium property at the element level,

$$\forall K, \quad \int _ { K } f + \int _ { \partial K } \widehat { g } _ { K } = 0,$$

as well as continuity between neighboring elements. Such tractions ̂ g K are constructed by solving local low-dimensional linear systems associated to each vertex in T H , and using the partition of unity property verified by the test functions φ ∗ i used in the Galerkin MsFEM formulation, i.e. ∑ i φ ∗ i = 1 ( φ ∗ i = φ ε i in Galerkin formulations, while φ ∗ i = φ 0 i in Petrov-Galerkin formulations). We refer to [19] for details. The tractions are represented as affine combinations of the test functions φ ∗ i :

$$\widehat { g } _ { K | \Gamma } = \frac { 1 } { 2 } \left ( q _ { H | K } ^ { \varepsilon } + q _ { H | K ^ { \prime } } ^ { \varepsilon } \right ) \cdot n _ { K } + \sum _ { i } \alpha _ { i } \, \phi _ { i | \Gamma } ^ { * },$$

where K and K ′ are the elements such that Γ = K ∩ K ′ ;

- - in Step 2, the flux ̂ q ε H is constructed over each element K as a solution to the local problem

$$\forall v \in \mathcal { H } ^ { 1 } ( K ), \quad \int _ { K } \widehat { q } _ { H | K } ^ { \varepsilon } \cdot \nabla v = \int _ { K } f v + \int _ { \partial K } \widehat { g } _ { K } v.$$

In practice, this problem is solved using a dual formulation. We hence search for some w ε ∈ H 1 ( K ) satisfying the Neumann problem

$$\forall v \in \mathcal { H } ^ { 1 } ( K ), \quad \int _ { K } \mathbb { A } ^ { \varepsilon } \nabla w ^ { \varepsilon } \cdot \nabla v = \int _ { K } f v + \int _ { \partial K } \widehat { g } _ { K } v$$

and next set ̂ q ε H K | = A ε ∇ w ε . The Neumann problem (14) is well-posed (up to the addition of a constant) in view of (13). In practice, the problem (14) is numerically approximated by a Galerkin procedure on Span { φ 0 i ◦ w ε } (see Section 2.2.4), where φ 0 i are Lagrange function of high-order (in practice, of order 4). Since ̂ g K | Γ is a linear combination of the functions φ ∗ i | Γ and A ε ∇ φ ε i | Γ · n K , we can use the superposition principle and obtain w ε as a linear combination of pre-computed elementary solutions.

Figure 1: Local problem (14) on the element K with prescribed tractions ̂ g K .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-e9931ad7-d574-4944-92fc-86a8a59c3016.jpg)

All technicalities in the construction of ̂ g K and ̂ q ε H K | are given in [19]. It is fruitful to notice that the overall strategy for constructing ̂ q ε H ∈ S is particularly suited to the MsFEM framework. Indeed, it is based on fine-scale computations at the macro element level only. These can be performed in the offline stage of MsFEM while constructing the multiscale basis functions.

## 4. Goal-oriented error estimation

A posteriori error estimation on some outputs of the computation (which are typically needed for decision-making) is often very interesting for engineering applications. In many practical problems, one may indeed be interested in approximating some functional Q u ( ε ), referred to as the quantity of interest, rather than the solution u ε itself. In this section, we address goal-oriented error estimation in the MsFEM framework, again using the CRE concept introduced in Section 3.

## 4.1. Adjoint problem and classical error indicator

We consider a linear and continuous functional Q : V → R , and assume that our quantity of interest is Q u ( ε ). Typical examples include the average of the multiscale solution u ε , or of the exact flux q ε = A ε ∇ u ε , in some region of interest ω Q ⊂ Ω. We then introduce the following adjoint problem [7, 29] :

$$\text{Find } \widetilde { u } ^ { \varepsilon } \in V \text{ such that, for any } v \in V, \text{ } B ^ { \varepsilon * } ( \widetilde { u } ^ { \varepsilon }, v ) = Q ( v ),$$

where B ε ∗ ( u, v ) is the formal adjoint of the primal form B ε ( u, v ), satisfying B ε ∗ ( u, v ) = B ε ( v, u ). In the current symmetric case, the forms B ε and B ε ∗ are identical. We also define the adjoint flux ˜ q ε = A ε ∇ ˜ u ε and the space of equilibrated fluxes (with regard to the adjoint problem) :

$$\widetilde { \mathcal { S } } = \left \{ \widetilde { p } \in \mathcal { H } ( d i v, \Omega ) ; \quad \forall v \in V, \quad \int _ { \Omega } \widetilde { p } \cdot \nabla v = Q ( v ) \right \}.$$

Remark 5. In practice, the functional Q is often defined by

$$Q ( v ) = \int _ { \Omega } \left ( \widetilde { f } _ { Q } \, v + \widetilde { q } _ { Q } \cdot \nabla v \right ) + \int _ { \Gamma _ { N } } \widetilde { g } _ { Q } \, v,$$

where ( ˜ f Q , ˜ q Q , g ˜ Q ) is a set of extraction functions which can be mechanically interpreted in the adjoint problem as body, pre-flux and traction loadings, respectively.

Remark 6. To handle some particular cases (such as quantities of interest related to the normal flux on Γ D , which correspond to a functional Q defined on a strict subset of V ), a more general formulation of the adjoint problem can be found in [29].

Remark 7. Pointwise quantities of interest, such as u ε ( x 0 ) for some x 0 ∈ Ω , cannot be directly considered in this framework since the solution u ε ∈ H 1 (Ω) may not be continuous (for d ≥ 2 ). To circumvent this issue, a regularization technique was introduced in [62] for (monoscale) FEM. We do not consider such pointwise quantities of interest here.

The primal-dual equivalence follows for u ε solution to the primal problem (2) and ˜ u ε solution to the adjoint problem (15) :

$$Q ( u ^ { \varepsilon } ) = B ^ { \varepsilon * } ( \widetilde { u } ^ { \varepsilon }, u ^ { \varepsilon } ) = B ^ { \varepsilon } ( u ^ { \varepsilon }, \widetilde { u } ^ { \varepsilon } ) = F ( \widetilde { u } ^ { \varepsilon } ).$$

Let u ε H be the MsFEM approximation of u ε , and let ̂ u ε H be a function in V close to u ε H (if we work with a conforming MsFEM approach, then ̂ u ε H ε = u ε H ). From the adjoint solution ˜ u ε , an exact representation of the MsFEM error on the quantity Q u ( ) is available :

$$Q ( u ^ { \varepsilon } ) - Q ( u ^ { \varepsilon } _ { H } ) = Q ( u ^ { \varepsilon } - \widehat { u } ^ { \varepsilon } _ { H } ) + \Delta Q = B ^ { \varepsilon } ( u ^ { \varepsilon } - \widehat { u } ^ { \varepsilon } _ { H }, \widetilde { u } ^ { \varepsilon } ) + \Delta Q = R ^ { \varepsilon } ( \widetilde { u } ^ { \varepsilon } ) + \Delta Q, \quad \quad ( 1 7 )$$

with ∆ Q = Q u ( ̂ ε H -u ε H ), and where R ε ( v ) = F v ( ) -B ε ( ̂ u ε H , v ) is the residual functional associated with ̂ u ε H ∈ V . The representation (17) shows that the adjoint solution ˜ u ε , often termed generalized Green's function, provides for the sensitivity of the error on Q to the local sources of the MsFEM error in the whole domain Ω.

A convenient error indicator may be derived from (17) using the dual weighted residual (DWR) method proposed in [6] for FEM and extended to multiscale computations in recent works (see for instance [2, 20]). The DWR method is based on hierarchical a posteriori error analysis. We compute an approximate adjoint solution ˜ u ε + from a hierarchically refined MsFEM space V ε + ⊃ V ε H (higher-order basis functions, refined mesh) and we assume that the error between ˜ u ε and ˜ u ε + is small. We then write

$$Q ( u ^ { \varepsilon } ) - Q ( u _ { H } ^ { \varepsilon } ) - \Delta Q = R ^ { \varepsilon } ( \widetilde { u } _ { + } ^ { \varepsilon } ) + R ^ { \varepsilon } ( \widetilde { u } ^ { \varepsilon } - \widetilde { u } _ { + } ^ { \varepsilon } ) \approx R ^ { \varepsilon } ( \widetilde { u } _ { + } ^ { \varepsilon } ),$$

where the right-hand side and ∆ Q are fully computable.

Remark 8. Due to the Galerkin orthogonality, choosing the same MsFEM space V ε H to compute u ε H and ˜ u ε + would lead to a meaningless indicator (in that case, we would have R ε ( ˜ u ε + ) = 0 ). Consequently, a convenient approximation of the adjoint solution should involve a subspace in ( V ε H ) ⊥ .

The above argument can be somewhat quantified. Let u ε + ∈ V ε + be the approximation (in the refined space) of the primal solution. We assume that the saturation assumption | Q u ( ε ) -Q u ( ε + ) | ≤ β Q u | ( ε ) -Q u ( ̂ ε H ) | is satisfied for some 0 ≤ β &lt; 1. Using the fact that u ε + -̂ u ε H ∈ V ε + and next the fact that ˜ u ε + ∈ V ε + , we obtain

$$Q ( u _ { + } ^ { \varepsilon } ) - Q ( \widehat { u } _ { H } ^ { \varepsilon } ) = B ^ { \varepsilon } ( u _ { + } ^ { \varepsilon } - \widehat { u } _ { H } ^ { \varepsilon }, \widetilde { u } _ { + } ^ { \varepsilon } ) = B ^ { \varepsilon } ( u ^ { \varepsilon } - \widehat { u } _ { H } ^ { \varepsilon }, \widetilde { u } _ { + } ^ { \varepsilon } ) = R ^ { \varepsilon } ( \widetilde { u } _ { + } ^ { \varepsilon } ).$$

Using the triangle inequality, we get

$$\frac { | R ^ { \varepsilon } ( \widetilde { u } _ { + } ^ { \varepsilon } ) | } { 1 + \beta } \leq | Q ( u ^ { \varepsilon } ) - Q ( u _ { H } ^ { \varepsilon } ) - \Delta Q | \leq \frac { | R ^ { \varepsilon } ( \widetilde { u } _ { + } ^ { \varepsilon } ) | } { 1 - \beta },$$

which quantifies the approximation (18). The indicator defined in (18) may be used to drive adaptive algorithms, but it does not provide for guaranteed error bounds on Q . Alternative techniques are proposed in the next sections.

## 4.2. Guaranteed error bounds using CRE

In the FEM context, classical approaches to bound the error on a quantity of interest Q consist in solving the primal and adjoint problems with the same approximation space, before using a posteriori bounds available for the error in the energy norm [3]. These approaches can be easily extended to MsFEM with general, conforming or nonconforming, formulations.

glyph[negationslash]

Denoting by ˜ u ε H the approximate adjoint solution obtained using the space V ε H , and potentially postprocessing it to define ̂ ˜ u ε H ∈ V in case V ε H ⊂ V (see Section 3.1), the equality (17) yields that

$$Q ( u ^ { \varepsilon } ) - Q ( u ^ { \varepsilon } _ { H } ) - \Delta Q - R ^ { \varepsilon } \left ( \widehat { \widetilde { u } } _ { H } \right ) = B ^ { \varepsilon } \left ( u ^ { \varepsilon } - \widehat { u } ^ { \varepsilon } _ { H }, \widetilde { u } ^ { \varepsilon } - \widehat { \widetilde { u } } _ { H } \right ).$$

The Cauchy-Schwarz inequality then yields

$$\left | Q ( u ^ { \varepsilon } ) - Q ( u ^ { \varepsilon } _ { H } ) - \Delta Q - R ^ { \varepsilon } \left ( \widehat { \widetilde { u } } _ { H } \right ) \right | \leq \| u ^ { \varepsilon } - \widehat { u } ^ { \varepsilon } _ { H } \| \ \left \| \widetilde { u } ^ { \varepsilon } - \widehat { \widetilde { u } } ^ { \varepsilon } _ { H } \right \| \right \|.$$

Remark 9. In the conforming formulation of MsFEM (i.e. when V ε H ⊂ V ), we can take ̂ u ε H = u ε H and ̂ ˜ u ε H = ˜ u ε H so that the Galerkin orthogonality R ε ( ̂ ˜ u ε H ) = 0 holds. The result (20) can be recast as

$$| Q ( u ^ { \varepsilon } ) - Q ( u _ { H } ^ { \varepsilon } ) | \leq \| u ^ { \varepsilon } - u _ { H } ^ { \varepsilon } \| \ \| \widetilde { u } ^ { \varepsilon } - \widetilde { u } _ { H } ^ { \varepsilon } \|.$$

This is a classical result in the monoscale conforming FEM context.

Consequently, guaranteed error bounds on Q can be obtained from any guaranteed a posteriori global error estimate on | | | u ε -̂ u ε H | | | and ∣∣ ∣ ∣∣ ∣ ∣∣ ∣˜ u ε -̂ ˜ u ε H ∣∣ ∣ ∣∣ ∣ ∣∣ ∣ . Using the CRE concept introduced in Section 3, (20) yields the a posteriori estimate

$$\left | Q ( u ^ { \varepsilon } ) - Q ( u _ { H } ^ { \varepsilon } ) - \Delta Q - R ^ { \varepsilon } \left ( \widetilde { u } _ { H } ^ { \varepsilon } \right ) \right | \leq E _ { C R E } ( \widehat { u } _ { H } ^ { \varepsilon }, \widehat { q } _ { H } ^ { \varepsilon } ) \, E _ { C R E } \left ( \widehat { \widetilde { u } } _ { H } ^ { \varepsilon }, \widehat { \widetilde { q } } _ { H } ^ { \varepsilon } \right ),$$

where ̂ q ε H ∈ S , resp. ̂ ˜ q ε H ∈ S ˜ , is constructed as a post-processing of q ε H , resp. ˜ q ε H , as detailed in Section 3.2. However, the estimate (21), based on the Cauchy-Schwarz inequality over the whole domain Ω, does not exploit the locality of Q . It thus leads to crude upper bounds when MsFEM errors for primal and adjoint problems have disjoint supports. A better estimate would consist in using the Cauchy-Schwarz inequality at the element level, under the form

$$\left | Q ( u ^ { \varepsilon } ) - Q ( u _ { H } ^ { \varepsilon } ) - \Delta Q - R ^ { \varepsilon } \left ( \widehat { \widetilde { u } } _ { H } ^ { \varepsilon } \right ) \right | \leq \sum _ { K } \| u ^ { \varepsilon } - \widehat { \widetilde { u } } _ { H } ^ { \varepsilon } \| _ { | K } \, \left \| \widetilde { \widetilde { u } } ^ { \varepsilon } - \widehat { \widetilde { \widetilde { u } } } _ { H } \right \| _ { | K }.$$

However, computable upper bounds on the error in the energy norm restricted to each element K are hardly available, even though recent works such as [43] have proposed first ideas in that direction.

An alternative and more accurate estimate than (21) can be constructed by taking advantage of the property (10) of the CRE concept. Indeed, we infer from (19) that

$$\text{property} \left ( I U \right ) o t \text{ the CKE concept. Indeed, we inter from} \left ( 1 9 \right ) \text{ that} \\ Q ( u ^ { \varepsilon } ) - Q ( u ^ { \varepsilon } _ { H } ) - \Delta Q - R ^ { \varepsilon } \left ( \widetilde { u } ^ { \varepsilon } _ { H } \right ) & = B ^ { \varepsilon } \left ( u ^ { \varepsilon } - \widehat { u } ^ { \varepsilon } _ { H }, \widetilde { u } ^ { \varepsilon } - \widehat { u } _ { H } \right ) \\ & = \int _ { \underline { \Omega } } \nabla ( u ^ { \varepsilon } - \widehat { u } ^ { \varepsilon } _ { H } ) \cdot \left ( \widetilde { q } ^ { \varepsilon } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } _ { H } \right ) \\ & = \int _ { \underline { \Omega } } \nabla ( u ^ { \varepsilon } - \widehat { u } ^ { \varepsilon } _ { H } ) \cdot \left ( \widehat { q } ^ { \varepsilon } _ { H } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } _ { H } \right ) \\ & = \int _ { \underline { \Omega } } ( \mathbb { A } ^ { \varepsilon } ) ^ { - 1 } \left ( q ^ { \varepsilon } - \widehat { q } ^ { \varepsilon } _ { H } \right ) \cdot \left ( \widetilde { q } ^ { \varepsilon } _ { H } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } _ { H } \right ) + C ^ { \varepsilon } _ { H }, \quad \text{(22)} \\ \text{with} \, \widehat { q } ^ { \varepsilon } _ { H } = ( \widehat { q } ^ { \varepsilon } _ { H } + \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } ^ { \varepsilon } _ { H } ) / 2 \text{ and } C ^ { \varepsilon } _ { H } \text{ a computable term defined by}$$

with ̂ q ε ∗ H = ( ̂ q ε H + A ε ∇ ̂ u ε H ) / 2 and C ε H a computable term defined by

$$C _ { H } ^ { \epsilon } = \int _ { \Omega } ( A ^ { \epsilon } ) ^ { - 1 } \left ( \widehat { q } _ { H } ^ { \epsilon ^ { * } } - A ^ { \epsilon } \nabla \widehat { u } _ { H } ^ { \epsilon } \right ) \cdot \left ( \widetilde { \widetilde { q } } _ { H } - A ^ { \epsilon } \nabla \widehat { \widetilde { u } } _ { H } ^ { \epsilon } \right ) = \frac { 1 } { 2 } \int _ { \Omega } ( A ^ { \epsilon } ) ^ { - 1 } \left ( \widehat { q } _ { H } ^ { \epsilon } - A ^ { \epsilon } \nabla \widehat { u } _ { H } ^ { \epsilon } \right ) \cdot \left ( \widetilde { \widetilde { q } } _ { H } - A ^ { \epsilon } \nabla \widehat { \widetilde { u } } _ { H } ^ { \epsilon } \right ).$$

We next get from (22) that

$$Q ( u ^ { \varepsilon } ) - Q ( u ^ { \varepsilon } _ { H } ) - \Delta Q - \overline { C } ^ { \varepsilon } _ { H } = \int _ { \Omega } ( \mathbb { A } ^ { \varepsilon } ) ^ { - 1 } \left ( q ^ { \varepsilon } - \widehat { q } ^ { \varepsilon * } _ { H } \right ) \cdot \left ( \widehat { \widetilde { q } } ^ { \varepsilon } _ { H } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { \widetilde { u } } ^ { \varepsilon } _ { H } \right )$$

with

$$\overline { C } _ { H } ^ { \varepsilon } = C _ { H } ^ { \varepsilon } + R ^ { \varepsilon } \left ( \widehat { \widetilde { u } } _ { H } ^ { \varepsilon } \right ) = \frac { 1 } { 2 } \int _ { \Omega } ( \mathbb { A } ^ { \varepsilon } ) ^ { - 1 } \left ( \widehat { q } _ { H } ^ { \varepsilon } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } _ { H } ^ { \varepsilon } \right ) \cdot \left ( \widehat { \widetilde { q } } _ { H } ^ { \varepsilon } + \mathbb { A } ^ { \varepsilon } \nabla \widehat { \widetilde { u } } _ { H } ^ { \varepsilon } \right ).$$

Using the Cauchy-Schwarz inequality and next (10), we obtain that

$$\left | Q ( u ^ { \varepsilon } ) - Q ( u _ { H } ^ { \varepsilon } ) - \Delta Q - \overline { C } _ { H } ^ { \varepsilon } \right | & \leq \| \dot { q } ^ { \varepsilon } - \widehat { q } _ { H } ^ { \varepsilon * } \| \, \left \| \widehat { q } _ { H } ^ { \varepsilon } - A \varepsilon ^ { \varepsilon } \nabla \widehat { u } _ { H } ^ { \varepsilon } \right \| _ { F } = \frac { 1 } { 2 } E _ { C R E } \left ( \widehat { u } _ { H } ^ { \varepsilon }, \widehat { q } _ { H } ^ { \varepsilon } \right ) \, E _ { C R E } \left ( \widehat { \widehat { u } _ { H } ^ { \varepsilon }, \widehat { q } _ { H } ^ { \varepsilon } \right ).$$

Note that, thanks to the factor 1 / 2 on the right-hand side, the estimate (23) yields a more accurate estimation of Q u ( ε ) -Q u ( ε H ) than (21).

The fully computable quantity Q u ( ε H ) + ∆ Q + C ε H can be interpreted as a corrected approximation of Q u ( ε ). Furthermore, the estimate (23) can also be written as

$$Q ( u ^ { \varepsilon } ) - Q ( u ^ { \varepsilon } _ { H } ) = \Delta Q + \overline { C } ^ { \varepsilon } _ { H } + \zeta \quad \text{for some } \zeta \in \left [ - \frac { 1 } { 2 } E _ { C R E } \, \widetilde { E } _ { C R E }, \frac { 1 } { 2 } E _ { C R E } \, \widetilde { E } _ { C R E } \right ],$$

hence

$$| Q ( u ^ { \varepsilon } ) - Q ( u ^ { \varepsilon } _ { H } ) | \leq \eta ^ { Q } \coloneqq \max _ { \theta = \pm 1 } \left | \Delta Q + \overline { C } ^ { \varepsilon } _ { H } + \frac { \theta } { 2 } E _ { C R E } \, \widetilde { E } _ { C R E } \right |.$$

In contrast to (21), the quantity η Q partially takes into account error cancellations.

It is fruitful to notice that the bounds (21) and (23), constructed from the CRE concept, hold for independent (MsFEM) discretizations of the primal and adjoint problems as they are merely based on equilibrium properties. In the following section, we show how a convenient local enrichment of the adjoint approximate solution can thus be advantageously used to get sharp error bounds from (23).

## 4.3. Non-intrusive local enrichment of the adjoint solution

We extend to the MsFEM context an enrichment technique initially introduced in [30, 17, 39] for goaloriented error estimation in FEM models. The general idea is to improve the accuracy of the approximate adjoint solution ˜ u ε H (or ̂ ˜ u ε H ) by adding a priori information on the problem, i.e. given functions whose purpose is to reproduce localized high-gradient components of ˜ u ε (which are difficult to numerically capture) in the vicinity of the adjoint loading region. These functions, referred to as handbook functions and denoted ˜ u ε hand (with associated flux ˜ q ε hand = A ε ∇ ˜ u ε hand ), correspond to generalized Green's functions. In analogy to (15), they satisfy

$$\text{Find } \widetilde { u } _ { h a n d } ^ { \varepsilon } \in \mathcal { H } _ { 0 } ^ { 1 } ( \Omega _ { h a n d } ) \text{ such that, for any } v \in \mathcal { H } _ { 0 } ^ { 1 } ( \Omega _ { h a n d } ), \ \ B ^ { \varepsilon * } ( \widetilde { u } _ { h a n d } ^ { \varepsilon }, v ) = Q _ { h a n d } ( v ), \quad ( 2 5 )$$

where Q hand is an auxiliary quantity of interest (the eventual quantity of interest Q in (15) may be equal to Q hand , or a linear combination of various Q hand , or various translations of Q hand , . . . ). The domain

Figure 2: Evolution of the material parameter.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-5beae574-b408-4feb-bc3d-11748c9b857a.jpg)

Ω hand ⊂ Ω is chosen to be sufficiently large, so that the solution to the above problem with H 1 0 (Ω hand ) replaced by V would indeed be close to zero on ∂ Ω hand . In practice, ˜ u ε hand is numerically pre-computed, using an accurate fine scale discretization. Examples of such enrichment functions, for a 2D multiscale medium described by A ε = A ε I 2 with A ε ( x , x 1 2 ) = 3 + cos(2 πx /ε 1 ) + cos(2 πx /ε 2 ) and ε = 1 20 (see / Fig. 2), are given below.

A first example corresponds to a linear functional Q given by (16) with ˜ q Q = 0, ˜ g Q = 0 and a localized body force ˜ f Q = 0 except in the square domain ω Q , centered at the center of Ω and of size 4 ε × 4 , where ε ˜ f Q = 1. Such a quantity of interest corresponds to the average of u ε in ω Q . The corresponding handbook function is shown in Fig. 3.

Remark 10. Here and in all what follows, the quantity of interest is given by (16) for some ˜ f Q and ˜ q Q , with ˜ g Q = 0 . We take for Ω hand a domain 10 times as large (in each direction) as the support of ˜ f Q and ˜ q Q . For the example discussed above, we thus choose for Ω hand a square domain centered at the center of Ω and of size 40 ε × 40 ε .

A second example corresponds to a linear functional Q given by (16) with ˜ f Q = 0, ˜ g Q = 0 and a localized pre-flux ˜ q Q = (1 0) , T in the same domain ω Q as above, and ˜ q Q = 0 elsewhere in Ω. Such a quantity of interest corresponds to the average of e 1 · ∇ u ε in ω Q . The corresponding handbook function is shown in Fig. 4.

Handbook functions are then locally and seamlessly inserted in the overall procedure, as we explain now. Let Ω Q be the area of interest over which the quantity Q is defined, i.e. the region which supports the extraction functions ˜ f Q and ˜ q Q (recall (16) and Remark 10). We next introduce some domain Ω PUM 1 ⊂ Ω hand , which is the union of some coarse elements of T H , and which contains Ω Q (see Fig. 5). Its boundary is denoted ∂ Ω PUM 1 . Let I PUM be the subset of vertices in T H which are located in Ω PUM 1 , so that

$$\Omega _ { 1 } ^ { P U M } = \left \{ x \in \Omega ; \quad \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } ( x ) = 1 \right \}.$$

We next introduce

$$\Omega _ { 2 } ^ { P U M } = \left \{ x \in \Omega ; \quad \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } ( x ) \in ( 0, 1 ) \right \}$$

$$\text{and see that } \Omega _ { 1 } ^ { P U M } \cup \Omega _ { 2 } ^ { P U M } = \text{Supp} \left ( \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } \right ) \subset \Omega.$$

Remark 11. In the numerical examples of Section 6.1, Ω Q is a square of size 4 ε × 4 ε , and we take for Ω PUM 1 the coarse element containing Ω Q . In the numerical example of Section 6.2, Ω Q is a square of size 0 1 . × 0 1 . , and the initial coarse meshsize is H = 0 1 . . We then take for Ω PUM 1 the union of the coarse element equal to Ω Q and of the 8 coarse elements surrounding it.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-d075668f-fa4d-4a2a-95dc-c25594e07285.jpg)

Figure 3: Handbook function in a sufficiently large domain subjected to a constant body force in a local square region ω Q : ˜ u ε hand (top left), energy distribution (top right), ˜ q ε hand · e 1 (bottom left) and ˜ q ε hand · e 2 (bottom right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-b8c7b45c-69ff-4886-b1e9-a14c843e665b.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-075bcbb2-072d-403e-9989-0a045c2bc4ea.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-698a3318-f2c1-4586-a610-720edfed536a.jpg)

The enrichment approach consists in approximating the adjoint solution ˜ u ε by

$$\widetilde { u } _ { + } ^ { \epsilon } = \widetilde { u } _ { h a n d } ^ { \epsilon } \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } + \widetilde { u } _ { r e s, H } ^ { \epsilon },$$

where ˜ u ε res,H is an approximate residual solution which is computed using the MsFEM approximation space V ε H . We emphasize that

- - no additional degree of freedom is associated with the enrichment part, in contrast to other similar enrichment methods such as XFEM or GFEM (where the approximation would read ∑ i ∈I PUM α φ i 0 i ˜ u ε hand + ˜ u ε res,H for some additional unknown coefficients α i and with ˜ u ε res,H ∈ V ε H ).
- This is due to the fact that ˜ u ε hand aims at representing the local high-gradients due to the singular adjoint loading, which can be fully assessed a priori ;
- - the strategy uses the same MsFEM discretization space V ε H to approximate both the primal and the adjoint problems, even though a higher level of approximation is obtained for the adjoint solution due to the enrichment term. Consequently, all the numerical technicalities (mesh connectivities, stiffness matrix, . . . ) implemented to solve the primal problem can be directly reused to solve the adjoint problem. Only the loadings need to be changed. For this reason, the strategy is called non-intrusive. It fully makes sense in the MsFEM framework where the discretization space is obtained from costly computations performed only once in the offline stage.

Remark 12. The above enrichment methodology can also be used to address goal-oriented error estimation on pointwise quantities of interest (when these are defined), as shown in [17, 39]. In this case, handbook functions correspond to classical Green's functions. They can be analytically computed for homogeneous and isotropic media.

Figure 4: Handbook function in a sufficiently large domain subjected to a constant pre-flux in a local square region ω Q : ˜ u ε hand (top left), energy distribution (top right), ˜ q ε hand · e 1 (bottom left) and ˜ q ε hand · e 2 (bottom right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-eedc6225-0863-4d1c-a29e-fa013a802ebe.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-bf21ebb0-4e93-4513-81f6-0ba8db622ca8.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-52ff24dc-f3e0-4c8a-93e3-e92df99286bc.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-c73716f0-677a-4e94-855e-213641141d25.jpg)

Remark 13. We have chosen the notations Ω PUM 1 , Ω PUM 2 and I PUM in analogy to those introduced in the XFEM and the GFEM approaches. However, here, no partition of unity property is used.

In view of (15) and (26), and assuming that Q hand ≡ Q in (25), the problem to be solved numerically consists in finding ˜ u ε res,H ∈ V ε H such that

$$\forall v \in V _ { H } ^ { \varepsilon }, \ \ B ^ { \varepsilon * } ( \widetilde { u } _ { r e s, H } ^ { \varepsilon }, v ) = Q ( v ) - B ^ { \varepsilon * } \left ( \widetilde { u } _ { h a n d } ^ { \varepsilon } \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 }, v \right )$$

$$= - \int _ { \partial \Omega _ { 1 } ^ { P U M } } \left ( \mathbb { A } ^ { \varepsilon } \nabla \widetilde { u } _ { h a n d } ^ { \varepsilon } \cdot n _ { 1 2 } \right ) v - \int _ { \Omega _ { 2 } ^ { P U M } } \mathbb { A } ^ { \varepsilon } \nabla \left ( \widetilde { u } _ { h a n d } ^ { \varepsilon } \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } \right ) \cdot \nabla v,$$

$$\cdot \in \L r e s, H \, \searrow \, \cdot \, H \, \text{SCHED} \, \text{SCHED} \\ \cdot \varepsilon ^ { * } ( \widetilde { u } _ { r e s, H } ^ { \varepsilon }, v ) & = Q ( v ) - B ^ { \varepsilon ^ { * } } \left ( \widetilde { u } _ { h a n d } ^ { \varepsilon } \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 }, v \right ) \\ & = Q ( v ) - \int _ { \Omega _ { 1 } ^ { P U M } } \mathbb { A } ^ { \varepsilon } \nabla \widetilde { u } _ { h a n d } ^ { \varepsilon } \cdot \nabla v - \int _ { \Omega _ { 2 } ^ { P U M } } \mathbb { A } ^ { \varepsilon } \nabla \left ( \widetilde { u } _ { h a n d } ^ { \varepsilon } \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } \right ) \cdot \nabla v \\ & = - \int _ { \partial \Omega _ { 1 } ^ { P U M } } \left ( \mathbb { A } ^ { \varepsilon } \nabla \widetilde { u } _ { h a n d } ^ { \varepsilon } \cdot \nabla n _ { 1 2 } \right ) v - \int _ { \Omega _ { 2 } ^ { P U M } } \mathbb { A } ^ { \varepsilon } \nabla \left ( \widetilde { u } _ { h a n d } ^ { \varepsilon } \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } \right ) \cdot \nabla v,$$

$$i \in \mathcal { I } ^ { 1 }$$

with n 12 is the outgoing normal vector to Ω PUM 1 . In the last line, we have used the fact (assuming e.g. that ˜ g Q = 0 and ˜ q Q = 0 in (16)) that -∇ · ( A ε ∇ ˜ u ε hand ) = ˜ f Q in Ω hand ⊃ Ω PUM 1 (see (25)), and that ∫ Ω PUM 1 ˜ f Q v = ∫ Ω ˜ f Q v because ˜ f Q is supported in Ω Q ⊂ Ω PUM 1 .

Post-processing the numerical flux ˜ q ε res,H = A ε ∇ ˜ u ε res,H as explained in Section 3.2, we compute a

Figure 5: Definition of Ω PUM 1 and Ω PUM 2 , for a given Ω Q .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-36e7ee0d-b69e-435f-aaf3-cb1a4dc78451.jpg)

flux field ̂ ˜ q ε res,H ∈ S ˜ res , with

$$\widetilde { \mathcal { S } } _ { r e s } = \left \{ \widetilde { p } \in \mathcal { H } ( d i v, \Omega ) ; \quad \forall v \in V, \quad \int _ { \Omega } \widetilde { p } \cdot \nabla v = - \int _ { \partial \Omega _ { 1 } ^ { P U M } } \left ( \mathbb { A } ^ { \varepsilon } \nabla \widetilde { u } _ { h a n d } ^ { \varepsilon } \cdot n _ { 1 2 } \right ) v \quad.$$

$$\mu _ { 0 } ^ { 2 } \left ( \frac { 1 } { 2 } \int _ { \Omega _ { 2 } ^ { P U M } } \mathbb { A } ^ { \varepsilon } \nabla \left ( \widetilde { u } _ { h a n d } ^ { \varepsilon } \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } \right ) \cdot \nabla v \right ).$$

We next define

$$\widehat { \widetilde { q } } _ { + } ^ { \varepsilon } = \mathbb { A } ^ { \varepsilon } \nabla \left ( \widetilde { u } _ { h a n d } ^ { \varepsilon } \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } \right ) + \widehat { \widetilde { q } } _ { r e s, H } ^ { \varepsilon } \in \widetilde { \mathcal { S } }.$$

We also introduce

$$\widehat { \widetilde { u } } _ { + } ^ { \varepsilon } = \widetilde { u } _ { h a n d } ^ { \varepsilon } \sum _ { i \in \mathcal { I } ^ { P U M } } \phi _ { i } ^ { 0 } + \widehat { \widetilde { u } } _ { r e s, H } ^ { \varepsilon },$$

where ̂ ˜ u ε res,H ∈ V is equal to ˜ u ε res,H when V ε H ⊂ V , and is obtained after a post-processing of ˜ u ε res,H otherwise (see Section 3.1).

Using the estimate (23), we eventually obtain

$$\left | Q ( u ^ { \varepsilon } ) - Q ( u ^ { \varepsilon } _ { H } ) - \Delta Q - \overline { C } ^ { \varepsilon } _ { H + } \right | & \leq \frac { 1 } { 2 } E _ { C R E } ( \widehat { u } ^ { \varepsilon } _ { H }, \widehat { q } ^ { \varepsilon } _ { H } ) \, E _ { C R E } \left ( \widehat { \widetilde { u } } ^ { \varepsilon } _ { + }, \widehat { \widetilde { q } } ^ { \varepsilon } _ { + } \right ) \\ & = \frac { 1 } { 2 } E _ { C R E } ( \widehat { u } ^ { \varepsilon } _ { H }, \widehat { q } ^ { \varepsilon } _ { H } ) \, E _ { C R E } \left ( \widehat { \widetilde { u } } ^ { \varepsilon } _ { r e s, H }, \widehat { \widetilde { q } } ^ { \varepsilon } _ { r e s, H } \right ),$$

with

$$\overline { C } _ { H + } ^ { \varepsilon } = \frac { 1 } { 2 } \int _ { \Omega } ( \mathbb { A } ^ { \varepsilon } ) ^ { - 1 } \left ( \widehat { q } _ { H } ^ { \varepsilon } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } _ { H } ^ { \varepsilon } \right ) \cdot \left ( \widehat { \widetilde { q } } _ { + } ^ { \varepsilon } + \mathbb { A } ^ { \varepsilon } \nabla \widehat { \widetilde { u } } _ { + } ^ { \varepsilon } \right ).$$

The fully computable quantity Q u ( ε H ) + ∆ Q + C ε H + is a corrected approximation of Q u ( ε ). As in (24), the quantity

$$\eta ^ { Q } = \max _ { \theta = \pm 1 } \left | \Delta Q + \overline { C } _ { H + } ^ { \varepsilon } + \frac { \theta } { 2 } E _ { C R E } ( \widehat { u } _ { H } ^ { \varepsilon }, \widehat { q } _ { H } ^ { \varepsilon } ) \, E _ { C R E } \left ( \widehat { \widetilde { u } } _ { r e s, H } ^ { \varepsilon }, \widehat { \widetilde { q } } _ { r e s, H } ^ { \varepsilon } \right ) \right |$$

is a computable upper bound of | Q u ( ε ) -Q u ( ε H ) . | This bound is thought to be sharp as the enrichment of the adjoint solution is supposed to make the term E CRE ( ̂ ˜ u ε res,H , ̂ ˜ q ε res,H ) small. When η Q is higher than a given error tolerance η Q tol , an adaptive strategy can be introduced. This is the subject of the next section.

## 5. Goal-oriented adaptive strategy

The objective here is to design an adaptive algorithm that optimally modifies the parameters of the MsFEM discretization in order to reduce the error on Q and reach a given error tolerance η Q tol while keeping the computational cost as small as possible. This is performed by introducing local error indicators associated to each error source and defined from (hierarchical) auxiliary reference problems and CRE properties.

## 5.1. Recast of MsFEM

We first introduce a hierarchy of MsFEM-type problems, which is identical to that introduced in [19] (we also refer to [31], where a similar hierarchy is introduced). We briefly present them below, and refer to [19, Section 5.1] for more details.

We first introduce a projection operator I H : V → V 0 H ⊂ V chosen such that its image is V 0 H , where V 0 H is spanned by the Lagrange basis functions associated with each node of T H (see Section 2.1). A possible choice for I H is the Cl´ment interpolant. We next define the fine-scale space e

$$V ^ { f } = \left \{ \phi \in V, \ I _ { H } ( \phi ) = 0 \right \}$$

and observe that V = V 0 H ⊕ V f .

For any function ϕ H ∈ V 0 H , we define the corrector Θ ( ε ϕ H ) ∈ V f as the solution to the problem

$$\forall v \in V ^ { f }, \ \ B ^ { \varepsilon } ( \varphi _ { H } + \Theta ^ { \varepsilon } ( \varphi _ { H } ), v ) = F ( v ).$$

The associated operator Θ ε : V 0 H → V f is an affine operator :

$$\Theta ^ { e } ( \varphi _ { H } ) = \Theta _ { 0 } ^ { e } + \Theta _ { \ell } ^ { e } ( \varphi _ { H } ) \quad \text{with} \quad \begin{cases} \ \Theta _ { 0 } ^ { e } \in V ^ { f } \ \text{s.t.} \quad \forall v \in V ^ { f }, \ \ B ^ { e } ( \Theta _ { 0 } ^ { e }, v ) = F ( v ), \\ \Theta _ { \ell } ^ { e } ( \varphi _ { H } ) \in V ^ { f } \ \text{s.t.} \quad \forall v \in V ^ { f }, \ \ B ^ { e } ( \varphi _ { H } + \Theta _ { \ell } ^ { e } ( \varphi _ { H } ), v ) = 0. \end{cases}$$

We then define a reconstruction operator Λ ε : V 0 H → V as Λ ε = I +Θ , as well as the multiscale functional ε space V ε H = { Λ ( ε ϕ H ) , ϕ H ∈ V 0 H } = Θ ε 0 +Span { φ 0 i +Θ ( ε glyph[lscript] φ 0 i ) } , where { φ 0 i } is the set of Lagrange basis functions of V 0 H .

Consider the following MsFEM-like problem :

$$\text{Find } \overline { u } _ { H } ^ { \epsilon } \in \overline { V } _ { H } ^ { \epsilon } \text{ such that, for any } v \in \overline { V } _ { H } ^ { \epsilon }, \ \ B ^ { \epsilon } ( \overline { u } _ { H } ^ { \epsilon }, v ) = F ( v ),$$

which is equivalent to the problem

$$\text{Find } \overline { u } _ { H } ^ { \epsilon } \in \overline { V } _ { H } ^ { \epsilon } \text{ such that, for any } v \in V _ { H } ^ { 0 }, \ \ B ^ { \epsilon } ( \overline { u } _ { H } ^ { \epsilon }, v ) = F ( v ).$$

It is easy to show that (29) and (30) are well-posed, and that their solution u ε H satisfies the variational formulation (2) of the reference problem. We hence have u ε H = u ε . Note in particular that the fine scale problems (28) are solved exactly, over the whole domain Ω, and considering the reference loading F on the right-hand side.

Starting from the exact formulations (29) or (30), we now construct a fully discrete MsFEM formulation, on the MsFEM space V ε H , by making the following simplifying changes (denoted S# ) :

- -S1 : replace the right-hand side term with 0 in the fine-scale problem (28), which makes the operator Θ ε linear (i.e. Θ ε 0 = 0) and independent of the loadings. This leads to the low-dimensional vector space Span { Λ ( ε φ 0 i ) } = Span { φ 0 i +Θ ( ε glyph[lscript] φ 0 i ) } ;

$$\overline { V } _ { H, 1 } ^ { \varepsilon } = \text{Span} \{ \phi _ { i } ^ { 0 } + \Theta _ { \ell } ^ { \varepsilon } ( \phi _ { i } ^ { 0 } ) _ { | \Omega _ { i } } \}.$$

- -S2 : restrict to Ω i the correction Θ ( ε φ 0 i ), where Ω i is the support of φ 0 i . This leads to the vector space
- -S3 : localize the fine-scale problem (28) by replacing Ω by smaller domains. In practice, these are subdomains S K that include the element K , on the boundary ∂S K of which we prescribe homogeneous Dirichlet boundary conditions ;
- -S4 : replace V f by a discrete P 1 -Lagrange FE space V f h associated to a fine grid T h obtained from a regular refinement of T H . The fine mesh size h should be chosen so that oscillations of the data can be accurately captured.

Applying the simplifications S1 S4 -on (29) or (30), we obtain a fully discrete MsFEM formulation. For each K ∈ T H and each basis function φ 0 i ∈ V 0 H , the local correction Θ ε h ( φ 0 i K | ) ∈ V f h ( S K ) is defined as the solution to

$$\forall v \in V ^ { f } _ { h } ( S _ { K } ), \ \int _ { S _ { K } } \mathbb { A } ^ { \varepsilon } \boldsymbol \nabla \left ( \pi ( \phi ^ { 0 } _ { i | K } ) + \boldsymbol \Theta ^ { \varepsilon } _ { h } ( \phi ^ { 0 } _ { i | K } ) \right ) \cdot \boldsymbol \nabla v = 0,$$

where π φ ( 0 i K | ) is the affine function on S K which is equal to φ 0 i K | on K , and V f h ( S K ) is a discrete subspace of V f ( S K ) = H 1 0 ( S K ). The local correctors Θ ε h ( φ 0 i K | ) are then connected together in the global corrector Θ ( ε h φ 0 i ) := ∑ K ∈T H Θ ( ε h φ 0 i K | ) | K . The MsFEM functional space eventually reads V ε H = Span { φ 0 i +Θ ( ε h φ 0 i ) } .

Remark 14. Applying the simplifications S1 S4 -on (29) with the choice S K = K yields the MsFEM approach without oversampling given by (4) -(5) .

## 5.2. Splitting of error sources and error indicators

The MsFEM formulation given in Section 5.1 shows that 3 parameters can be tuned in an adaptive procedure to improve the accuracy of Q u ( ε H ) :

- · the size H K of the elements of the coarse mesh T H . Simplification S1 amounts to ignoring the influence of f and g in micro-scale equations. This assumption is valid provided H K is comparable with the characteristic length of spatial variations of the external loading and macroscale solution. As detailed in [19, Remark 16], the smaller H K is, the better Simplification S1 is justified. The validity of Simplification S2 is also related to H K . If the set { H K } is not chosen correctly, the coarse-scale discretization error can dominate the overall approximation error ;
- · the size d K (minimum patch radius) of the computational domains S K used to solve the micro-scale equations obtained after Simplification S3 . If the set { d K } is not chosen correctly, the artificial boundary conditions set on ∂S K may strongly dominate the overall approximation error ;
- · the local size h K of the fine mesh used to solve the micro-scale equations (in each S K ) after applying Simplification S4 . If the set { h K } is not chosen correctly, a fine-scale discretization error can dominate the overall approximation error.

We wish to define a robust adaptive algorithm that is able : (i) to detect regions where the MsFEM approximation is not sufficiently accurate for the quantity of interest Q u ( ε ) ; (ii) to adapt locally and optimally the relevant MsFEM parameters among the three ones mentioned above.

The item (i) can be directly addressed with a spatial decomposition, over the macro mesh T H , of the a posteriori error estimate η Q defined by (27) :

$$\eta ^ { Q } \leq \sum _ { K \in \mathcal { T } _ { H } } \eta _ { K } ^ { Q }$$

with

$$\eta _ { K } ^ { Q } = \left | B _ { | K } ^ { \varepsilon } \left ( \widehat { u } _ { H } ^ { \varepsilon } - u _ { H } ^ { \varepsilon }, \widehat { \widetilde { u } } _ { + } \right ) + \frac { 1 } { 2 } \int _ { K } ( \mathbb { A } ^ { \varepsilon } ) ^ { - 1 } ( \widehat { q } _ { H } ^ { \varepsilon } - \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } _ { H } ^ { \varepsilon } ) \cdot \left ( \widehat { q } _ { + } ^ { \varepsilon } + \mathbb { A } ^ { \varepsilon } \nabla \widehat { u } _ { + } \right ) \\ + \frac { \theta _ { \max } } { 2 } \, E _ { C R E | K } ( \widehat { u } _ { H } ^ { \varepsilon }, \widehat { q } _ { H } ^ { \varepsilon } ) \, E _ { C R E | K } \left ( \widehat { \widetilde { u } _ { r e s, H } ^ { \varepsilon }, \widehat { \widetilde { q } _ { r e s, H } ^ { \varepsilon } } \right ) \right | \quad ( 3 3 )$$

where θ max is the maximizer in (27). The contribution η Q K , which is fully computable, is considered as a local error indicator in the coarse element K .

The above item (ii) requires the definition of specific error indicators associated to each individual error source. In order to set up such error indicators, we follow our approach described in details in [19, Section 5.2] and introduce two intermediate reference problems :

- - the first one, denoted PR1 in the following, is obtained from the initial reference problem (2) (recast as (29) or (30) and denoted PR0 ) by applying Simplifications S1 and S2 . The functional space associated with PR1 is the space V ε H, 1 defined by (31), and the solution to PR1 is denoted u ε H, 1 . Note that, in the problem PR1 , fine-scale computations are still defined over the whole domain Ω;
- - the second one, denoted PR2 in the following, is obtained from the initial reference problem PR0 by applying Simplifications S1 , S2 and S3 . The functional space associated with PR2 is denoted V ε H, 2 , and the solution to PR2 is denoted u ε H, 2 . In the problem PR2 , the fine-scale computations are defined over the subdomains S K and are performed exactly (no discretization of V f ( S K ) = H 1 0 ( S K ) is yet introduced).

Note that u ε H, 1 and u ε H, 2 may be nonconforming. We next write

Q u

(

-

u

ε

ε

ε

ε

ε

ε

ε

ε

ε

ε

Q

Q

Q

H

) =

Q u

(

-

u

H,

1

)+

Q u

(

H,

1

-

u

H,

2

)+

Q u

(

H,

2

-

u

H

)

,

hence

|

Q u

(

-

u

H

)

|

≤

e

macro

+

e

over

+

e

,

## where

- · e Q acro m = | Q u ( ε -u ε H, 1 ) | is the part of the error on Q due to the coarse-scale discretization ;
- · e Q over = | Q u ( ε H, 1 -u ε H, 2 ) | is the part of the error on Q due to the localization on S K of the problems (28) ;
- · e Q micro = | Q u ( ε H, 2 -u ε H ) | is the part of the error on Q due to the fine-scale discretization.

The strategy to assess e Q acro m , e Q over and e Q micro uses error indicators constructed from the CRE concept, with admissibility in the weaker sense of the associated reference problems (both for the primal and the micro

adjoint problems). This is illustrated in Fig. 6. We have used the same ideas in [19, Section 5.2] to define specific error indicators (on the whole field u ε ) associated to each individual error source. Error indicators η Q acro m , η Q er ov and η Q micro associated to each error source can then be computed. We emphasize that the expensive computations (involving the resolution of highly oscillatory problems) can all be performed in the offline stage of our approach. These indicators are used to drive a goal-oriented greedy adaptive algorithm detailed in the next section.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-7a5dba4f-beb9-47ae-a214-00ad0b5350b5.jpg)

u

Figure 6: Illustration of the strategy used to define indicators on each error source.

## 5.3. Adaptive algorithm

From the error estimate η Q defined by (27) and the error indicators ( η Q acro m , η Q er ov , η Q micro ) defined in Section 5.2, we design a goal-oriented greedy adaptive algorithm that yields an adaptive MsFEM approach. The overall algorithm is presented in Fig. 7 and is similar to the algorithm designed in [19, Section 5.3] for the control of the MsFEM error measured in the energy norm.

The algorithm is based on a splitting (32) of the goal-oriented error estimator η Q into local contributions { η Q macro,K , η Q over,K , η Q micro,K } in each element K of the mesh T H . These are used to mark coarse elements of the mesh T H for further enrichment, and thus to drive the adaptive process by selecting optimal MsFEM parameters ( H ,d K K , h K ) in each coarse region K to compute both primal and adjoint approximate solutions.

Each iteration in the algorithm is made of three groups of computations : (i) microscale (possibly costly) computations that can be performed in the offline phase of the iteration ; (ii) macroscale computations that can be performed in this offline phase ; (iii) macroscale computations that need to be performed in the online phase of the iteration, but which are inexpensive.

- 1. Initialization
- 1.1 Set the tolerance error η Q tol and the refinement parameter γ r
- 1.2 Define a regular mesh T (0) H with uniform mesh size H K = H
- 1.3 Set R (0) loc = R (0) glob = all elements { K of T (0) H }
- 1.4 Set S K = K and h K = H K for all elements K of T (0) H
- 1.5 Set k = 0
- 2. Increment k → k +1

## 3. MICROSCALE OFFLINE COMPUTATIONS

- 3.1 For all K ∈ R ( k -1) loc , solve the local problems (8) over S K using a P1 discretization with mesh size h K , in order to get the harmonic coordinates w ε,K k ( ) (see Section 2.2.4)
- 3.2 Store the associated local stiffness matrices

## 4. MACROSCALE OFFLINE COMPUTATIONS

- 4.1 Define the new mesh T ( k ) H by refining each element K ∈ R ( k -1) glob using the local mesh size H K
- 4.2 For all K ∈ R ( k -1) glob , define the new MsFEM basis functions φ ε k ( ) i from w ε,K k ( )
- 4.3 Solve the local problems associated to the computation of equilibrated flux fields (see Section 3.2)
- 4.4 Solve the local problems associated to the computation of error indicators (see Section 5.2)

## 5. MACROSCALE ONLINE COMPUTATIONS

- 5.1 Solve the global MsFEM problems to get ( u ε k ( ) H , u ˜ ε k ( ) res,H ), and deduce ( ̂ u ε k ( ) H , u ̂ ˜ ε k ( ) res,H )
- 5.2 Recover the equilibrated tractions and the admissible flux fields ( ̂ q ε k ( ) H , ̂ ˜ q ε k ( ) res,H )
- 5.3 Compute the global error estimate η Q k ( ) . If η Q k ( ) ≤ η Q tol , then STOP; otherwise go to Step 5.4
- 5.4 Compute the indicators η Q k ( ) macro , η Q k ( ) over , η Q k ( ) micro and M = max ( η Q k ( ) macro , η Q k ( ) over , η Q k ( ) micro )

$$\begin{array} { c c c } 5. 5 & \text{If $M=\eta_{micro}^{Q(k)}$ set $\mathcal{ }\mathcal{ }R_{loc}^{(k)}=\mathcal{ }R_{g lob}^{(k)}=\left\{ K\in\mathcal{ }\mathcal{ }T_{H}^{(k)}$, $\frac{\eta_{micro,K}^{Q(k)}}{|K|} \geq \gamma_{r}$ max $\frac{\eta_{micro,K}^{Q(k)}}{|K|} \right\}$, modify} \\ h _ { K } & \text{for all $K\in\mathcal{ }\mathcal{ }R_{loc}^{(k)}$ and go to Step 2} \\ r & \alpha / ( k ) \quad & \alpha ( k ) \quad \end{array}$$

$$\left | \quad & 5. 6 \text{ If } M = \eta _ { o v e r } ^ { Q ( k ) }, \text{ set } \mathcal { R } _ { l o c } ^ { ( k ) } = \mathcal { R } _ { g l o b } ^ { ( k ) } = \left \{ K \in \mathcal { T } _ { H } ^ { ( k ) }, \, \frac { \eta _ { o v e r, K } ^ { Q ( k ) } } { | K | } \geq \gamma _ { r } \max _ { \overline { K } } \frac { \eta _ { o v e r, K } ^ { Q ( k ) } } { | K | } \right \}, \text{ modify } d _ { K } \, \right |$$

$$\text{for all $K\in\mathcal{R}^{(k)}$ and go to Step 2}$$

$$\begin{array} { c } \omega _ { c } \, \searrow \, \cdot \\ 5. 7 \, \text{ If } M = \eta _ { m a c r o } ^ { Q ( k ) }, \, \text{ set } \mathcal { R } _ { l o c } ^ { ( k ) } = \emptyset \, \text{ and } \mathcal { R } _ { g l o b } ^ { ( k ) } = \left \{ K \in \mathcal { T } _ { H } ^ { ( k ) }, \, \frac { \eta _ { m a c r o, K } ^ { Q ( k ) } } { | K | } \geq \gamma _ { r } \max \frac { \eta _ { m a c r o, K } ^ { Q ( k ) } } { | K | } \right \}, \\ \text{modify } H _ { K } \, \text{ for all } K \in \mathcal { R } _ { g l o b } ^ { ( k ) } \, \text{ and } \text{go to Step 2} \end{array}$$

$$\psi g l o b$$

Figure 7: Goal-oriented adaptive algorithm to drive the MsFEM computations.

The adaptive procedure is associated with the following considerations :

- · the algorithm is initialized with the coarsest MsFEM configuration that can be employed (regular coarse mesh, no oversampling, fine-scale problems solved with a single macro element). In this configuration, the diffusion tensor that locally appears to compute the MsFEM shape functions is the average of A ε on K , as discussed in [19, Remark 20] ;
- · when modifying the parameters h K from their initial value h K = H K (in Step 5.5), two values are considered in the adaptive process : h K = ε/ 5 or h K = ε/ 20 (finest mesh size at the microscale) ;
- · when modifying the parameters d K from their initial value d K = H K i.e. S K = K (in Step 5.6), the oversampling size is determined by adding layers of progressive thickness ε , 2 , 3 ε ε , . . ., around

the element K . Such an adaptation is not performed when h K = H K ;

- · refining the mesh T H , i.e. modifying the parameters H K (in Step 5.7), is performed using a quadtree (or octree in 3D) method with nested elements. This requires to handle hanging nodes ;
- · the adapted parameters h K , d K and H K are defined from classical adaptive strategies (see [42]), based on the convergence rates given by the a priori estimates (6) or (7), and with an error target η Q macro/over/micro = η Q tol / 3 ;
- · the technique proposed in [5] and based on composition rules (see Section 2.2.4) is beneficially used throughout the adaptive process. It enables independent computations without coming back to the fine scale offline computations (no additional costly computations). The technique is used in its p -refinement version in Steps 4.3 and 4.4, while it is used in its H -refinement version in Step 4.2 (when the macro mesh has to be refined). In short, this technique allows us to refine the coarse mesh without the need to solve new fine-scale problems of the type (8).

The adaptive algorithm allows us to adjust automatically (and hopefully optimally) the calculation parameters during the simulation. We expect that it provides MsFEM parameters which ensure a correct balance between computational cost and accuracy on the output of interest. In particular, it should lead to fine-scale solutions only in the parts of Ω which have an impact on the value of the quantity of interest. As will be shown below, and as expected, it also leads (for the same tolerance on the error) to less expensive computations than the adaptive algorithm introduced in [19] to drive the MsFEM computations according to the error measured in the energy norm.

## 6. Numerical results

We consider two test-cases. The first one corresponds to a structure with a local defect, for which we consider two possible loadings (see Section 6.1). The second one is a flow problem in fractured porous media (see Section 6.2), which has already been considered in [20]. For all these test-cases, the conclusions of our numerical investigations are the same :

- - It is worth working with a goal-oriented adaptive strategy rather than an adaptive strategy based on the global error : for the same error tolerance, the computational cost is much lower, in the sense that the obtained mesh (satisfying the prescribed error tolerance) is much coarser.
- - As the mesh is iteratively adapted, the error on the quantity of interest monotically decreases until reaching the prescribed tolerance.
- - The error estimate η Q is always an upper bound on the exact error, in view of (27). We see below that it only slightly overestimates the error (roughly by 10% on the considered numerical examples), showing thus its accuracy.

## 6.1. Structure with a local defect

To start with, we consider a highly oscillatory problem with defects, as introduced and analyzed in details in [10, 11, 12] (see also the recent works [13, 14]). We assume that the oscillating coefficient is a local perturbation (which models the defect) of a function with simple geometric properties, for instance a periodic function. We thus consider problem (1) with a (scalar, to simplify) coefficient A ε ( x ) = a ( x /ε ) with a = a per + b where b ∈ L r ( R d ) is the local perturbation. The homogenization of such a problem is addressed in [10] for the Hilbertian case r = 2 and in [11, 12] for the cases 1 &lt; r &lt; + ∞ (see also [13, 14]). In general, the defect does not modify the macroscopic behavior (i.e. the homogenized solution) but it affects the solution locally, and at the small scale.

Inspired by these works, we consider here the following example. We set Ω = ( -1 1) , choose , 2 ε = 1 /N for some integer N , and consider problem (1) with A ε ( x ) = A ε ( x ) I , where A ε ( x ) = a per ( x /ε ) + b ( x /ε ) with

$$a _ { p e r } ( x _ { 1 }, x _ { 2 } ) = 3 + \cos ( 2 \pi x _ { 1 } ) + \cos ( 2 \pi x _ { 2 } ), \quad b ( x _ { 1 }, x _ { 2 } ) = 5 \exp ( - ( x _ { 1 } ^ { 2 } + x _ { 2 } ^ { 2 } ) ).$$

In the following, we choose ε = 1 20. The evolution of / A ε is shown on Fig. 8.

## 6.1.1. Sinusoidal loading

We first consider the loading f ( x , x 1 2 ) = sin( πx 1 ) cos( πx 2 ). We take an initial mesh T H made of 9 × 9 macro elements, with h K = ε/ 3 for any K and no oversampling. The approximate MsFEM solution u ε H is represented below and compared to the exact solution u ε , which is obtained in practice through an expensive computation over a 500 × 500 fine mesh. The solutions u ε and u ε H are shown on Fig. 9, the gradients ∇ u ε and ∇ u ε H are shown on Fig. 10, and the fluxes q ε and q ε H are shown on Fig. 11. We also show the distribution of the energy of the exact solution and of the global error on Fig. 12.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-c810387b-6f11-49bf-8a16-2c8a4ffdd1eb.jpg)

Figure 8: Defect problem : evolution of A ε , modeling a defect, in the domain Ω (we set ε = 1 20). /

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-ee54ae09-8205-425c-9c3f-5d10153a62e0.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-bb5dc1c4-29bf-40e3-a785-e18147835536.jpg)

Figure 9: Defect problem, sinusoidal loading : exact solution u ε (left) and MsFEM solution u ε H (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-b958bef0-4c4d-43f2-a1ba-c24f21e99e09.jpg)

Figure 10: Defect problem, sinusoidal loading : exact gradient ∇ u ε (left) and MsFEM gradient ∇ u ε H (right) (top row : components ∇ u ε · e 1 and ∇ u ε H · e 1 ; bottom row : components ∇ u ε · e 2 and ∇ u ε H · e 2 ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-71fc835b-a944-46d5-8177-6be7a6d7029e.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-0612efcd-79c9-4d12-8bf9-c0a2d4c62ebc.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-f2749805-af9b-4bba-8f37-8b3888c6f18c.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-0e370838-555c-4214-bcf2-09d52b2b6d6b.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-9a41b67a-fcde-4ff3-8505-3668e04a0f3e.jpg)

Figure 11: Defect problem, sinusoidal loading : exact flux q ε (left) and MsFEM flux q ε H (right) (top row : components q ε · e 1 and q ε H · e 1 ; bottom row : components q ε · e 2 and q ε H · e 2 ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-7fea626e-b1bf-4305-972d-5779eefd51f4.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-655ef761-371f-4d1b-a09a-eb9db3362fb1.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-eba928e7-cae0-4667-bf8e-147b5f830a03.jpg)

Figure 12: Defect problem, sinusoidal loading : distribution of the energy of the exact solution (left) and of the global error (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-0a887aed-5259-4606-a667-f1c2cf26ef38.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-d14b7cc5-45ed-4e88-833b-674253640417.jpg)

We also show on Fig. 13 the distribution of the error on u ε , ∇ u ε · e 1 and q ε · e 1 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-db0893f3-bd84-4c60-a7eb-b602de98ce32.jpg)

Figure 13: Defect problem, sinusoidal loading : error between exact and MsFEM fields for u ε (left), ∇ u ε · e 1 (center) and q ε · e 1 (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-98de31d1-0f4f-4abc-abbf-3280892a6db2.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-f3017611-e3a5-4ca4-ae36-0366125f4c65.jpg)

We choose the quantity of interest Q u ( ε ) = 1 | ω | ∫ ω q ε · e 1 = 1 | ω | ∫ ω e 1 · A ε ∇ u ε with | ω | = 4 ε × 4 . We ε consider two cases :

- - Case 1 : the subregion ω is centered on the defect ( Q = Q 1 ) ;
- - Case 2 : the subregion ω is far from the defect ( Q = Q 2 ).

Note that u ε is close to zero in the region around the defect (see Fig. 9), so considering as quantity of interest the average of u ε would not be interesting. In contrast, q ε · e 1 is not close to zero in that region (see Fig. 11). The adjoint solutions ˜ u ε and fluxes ˜ q ε corresponding to the quantities of interest Q 1 and Q 2 are shown on Figs. 14 and 15. We observe, as expected, that the adjoint solutions are essentially supported in the domain of interest ω .

Figure 14: Defect problem, sinusoidal loading : exact adjoint solution ˜ u ε for Q 1 (left) and Q 2 (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-5eec5cee-c909-4fe9-bd76-c524229f8f6a.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-c1ea71dd-8caa-4349-80ba-ea18768dd5be.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-1a6e9d0a-e6cb-4509-8dd4-f72c2810808c.jpg)

Figure 15: Defect problem, sinusoidal loading : exact adjoint flux ˜ q ε for Q 1 (left) and Q 2 (right) (top row : component along e 1 ; bottom row : component along e 2 ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-c9b306ef-cdb9-4621-b368-43376d9ebb9b.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-e0644bde-04e4-4257-a3c7-8912611c15cf.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-f242b043-9990-4f8e-92f7-cec1d2cd4d03.jpg)

The error threshold is fixed to 1%. We show on Fig. 16 (resp. Fig. 17) the final MsFEM discretization obtained after using the adaptive algorithm presented in Section 5.3, in order to respect the error threshold for the quantity of interest Q 1 (resp. Q 2 ). This discretization is to be compared with that obtained when controlling the global error (in energy norm) using the tools presented in [19], which is shown on Fig. 18. Obviously, the mesh on Figs. 16 and 17 is much coarser than the mesh on Fig. 18. This shows, as expected, that it is worth working with a goal-oriented adaptive strategy, rather than an adaptive strategy based on the global error : for the same error, the computational cost is much lower. Comparing Figs. 16 and 17, we also observe that the mesh is only refined close to the region of interest ω . In the second example, when this region is far from the defect, it is not needed to adapt the mesh close to the defect.

As regards the accuracy of the error estimate (with respect to the actual error), we observe that η Q / Q u | ( ε ) -Q u ( ε H ) | = 1 11 (resp. 1.13) at the first iteration of the adaptive algorithm, and . η Q / Q u | ( ε ) -Q u ( ε H ) | = 1 07 (resp. 1.06) at the final iteration of the adaptive algorithm, for the quantities of interest . Q 1 and Q 2 , respectively. As pointed out above, the error estimate thus only very slightly overestimates the actual error.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-bd44974a-8883-4aa3-a63a-6a6d3aac00db.jpg)

Figure 16: Defect problem, sinusoidal loading : final MsFEM discretization for Q 1 (left : coarse mesh ; center : oversampling size ; right : fine mesh size h K ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-3d84d2ac-2565-4935-a373-d0803f6aee85.jpg)

Figure 17: Defect problem, sinusoidal loading : final MsFEM discretization for Q 2 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-76b38527-e22a-4dff-8b28-dee868dc8e1f.jpg)

Figure 18: Defect problem, sinusoidal loading : Final MsFEM discretization when controlling the global error.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-bb22577c-844d-4f6c-8861-da25c2e29896.jpg)

We eventually show on Fig. 19 the convergence of the error estimate on Q with respect to the iterations of the adaptive process. As the iterations proceed, the error (which is initially close to 25%, due purposely to the coarse mesh that is used) monotically decreases until reaching the prescribed tolerance of 1% in about 10 iterations. We also show on Fig. 20 the evolution of the error indicators along the adaptive process. We observe that, for this case, the fine mesh is first refined before adapting the coarse mesh and finally extending the oversampling zone.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-ca55a3ba-fe6c-4633-9746-3a5fbc028980.jpg)

25

error estimate for Q  (%)

20

15

10

5

0

0

2

4

6

8

10

iteration

Figure 19: Defect problem, sinusoidal loading : convergence of the error estimate for Q 1 (left) and Q 2 (right).

2

Figure 20: Defect problem, sinusoidal loading : convergence of the error indicators for Q 1 (left) and Q 2 (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-a55a6ff6-3690-4f90-abea-3175ff5dbf06.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-c4475800-5dae-4dff-8e4a-52719fb8281e.jpg)

## 6.1.2. Exponential loading

With the aim to consider a quantity of interest that depends on u ε (and not on the flux q ε as in the previous example), we consider here a different loading : f ( x , x 1 2 ) = exp( -( x 2 1 + x 2 2 )). We again take an initial mesh T H made of 9 × 9 macro elements, with h K = ε/ 3 for any K and without any oversampling. The reference solution is computed on a 500 × 500 fine mesh. The MsFEM solution u ε H is compared to the reference solution u ε on Fig. 21, their gradients ∇ u ε H and ∇ u ε on Fig. 22, and fluxes q ε H and q ε on Fig. 23. We also represent the distribution of the energy of the exact solution and of the global error on Fig. 24. In contrast to the previous test-case, u ε is not close to 0 in the zone where the defect is located (see Fig. 21). This is thus a relevant test-case for considering as quantity of interest the average of u ε in that zone.

Figure 21: Defect problem, exponential loading : exact solution u ε (left) and MsFEM solution u ε H (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-74954116-d997-446d-a6b6-a36cf8088b2a.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-63112966-ba22-4282-9cdf-a188c870c071.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-9a184454-2d6c-4783-a7c7-9d5733f5b71b.jpg)

Figure 22: Defect problem, exponential loading : exact gradient ∇ u ε (left) and MsFEM gradient ∇ u ε H (right) (top row : components ∇ u ε · e 1 and ∇ u ε H · e 1 ; bottom row : components ∇ u ε · e 2 and ∇ u ε H · e 2 ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-daaa75ef-2d53-4228-80a2-4baf89accc04.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-127f6826-8e21-48a0-b19c-318c2003d00c.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-62a32df9-94df-45fb-bcba-d99b5e65f943.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-350f3e65-9bae-481f-ab0a-fcac9989a8c4.jpg)

Figure 23: Defect problem, exponential loading : exact flux q ε (left) and MsFEM flux q ε H (right) (top row : components q ε · e 1 and q ε H · e 1 ; bottom row : components q ε · e 2 and q ε H · e 2 ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-11bba61c-3c60-4537-9f5d-a18019d677d1.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-8446ada5-88d2-4309-a986-28b9cbbc79ba.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-51bbb599-a1c2-418c-ae6d-a88b3c83c39e.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-2a10d4b0-6880-42fe-a4b8-4975024da2ff.jpg)

Figure 24: Defect problem, exponential loading : distribution of the energy of the exact solution (left) and of the global error (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-26703cef-eb0c-4805-a019-05d54d7fd866.jpg)

We also plot on Fig. 25 the distribution of the error on u ε , ∇ u ε · e 1 and q ε · e 1 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-a888adcf-257c-4e4b-a2f4-e9b48805cc95.jpg)

Figure 25: Defect problem, exponential loading : error between exact and MsFEM fields for u ε (left), ∇ u ε · e 1 (center) and q ε · e 1 (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-30150724-f2f9-4e87-a698-69022e2d5e7b.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-87df2020-84ee-4186-94f0-ad120a4e176d.jpg)

As pointed out above, we choose the quantity of interest Q u ( ε ) = 1 | ω | ∫ ω u ε with | ω | = 4 ε × 4 . We ε consider two cases :

- - Case 1 : the subregion ω is centered on the defect ( Q = Q 1 ) ;
- - Case 2 : the subregion ω is far from the defect ( Q = Q 2 ).

The corresponding adjoint solutions ˜ u ε and fluxes ˜ q ε are shown on Figs. 26 and 27. Again, as expected, the adjoint solutions are essentially supported in the domain of interest ω .

Figure 26: Defect problem, exponential loading : exact adjoint solution ˜ u ε for Q 1 (left) and Q 2 (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-a8667de2-8bd4-45c9-8909-b2c851748e87.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-03f15ab1-cde6-4ff0-b460-a618a6cb6605.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-0ab787a8-b952-4ea7-b019-8620b06cd255.jpg)

Figure 27: Defect problem, exponential loading : exact adjoint flux ˜ q ε for Q 1 (left) and Q 2 (right) (top row : component along e 1 ; bottom row : component along e 2 ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-e1a68ff9-b3dd-4058-ade8-d477c0cfe3b7.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-fc52b8a0-f9d9-41f9-9020-565519d243d1.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-3dec7104-6785-4b59-9403-dab6d778eaea.jpg)

The error threshold is fixed to 1%. We show on Fig. 28 (resp. Fig. 29) the final MsFEM discretization obtained after using the adaptive algorithm presented in Section 5.3, in order to respect the error threshold for the quantity of interest Q 1 (resp. Q 2 ). This discretization can be compared with that obtained when controlling the global error (in energy norm) using the tools presented in [19], which is shown on Fig. 30. The conclusions are the same as in the case of sinusoidal loading (see Section 6.1.1) : (i) it is worth working with a goal-oriented adaptive strategy rather than with an adaptive strategy based on the global error and (ii) the mesh needs to be refined only in the region close to the region of interest ω .

As regards the accuracy of the error estimate, we again observe that it is very good with only a slight overestimation of the error. Computations yield η Q / Q u | ( ε ) -Q u ( ε H ) | = 1 14 (resp. 1.15) at the first . iteration of the adaptive algorithm, and η Q / Q u | ( ε ) -Q u ( ε H ) | = 1 07 (resp. 1.04) at the final iteration of . the adaptive algorithm, for the quantities of interest Q 1 and Q 2 , respectively.

Figure 28: Defect problem, exponential loading : final MsFEM discretization for Q 1 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-7164fc96-5cdd-4581-a6ca-e8742a64dd50.jpg)

Figure 29: Defect problem, exponential loading : final MsFEM discretization for Q 2 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-8cdc78e1-2f03-4584-b793-a0e32151953c.jpg)

Figure 30: Defect problem, exponential loading : final MsFEM discretization when controlling the global error.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-b8f56afa-26a4-4d76-b3fb-6876baf0a7ee.jpg)

We show on Fig. 31 how the error estimate on Q decreases as the adaptive iterations of the mesh proceed. For instance, after the first adaptation, the error has been divided by a factor 2, going from 80% to 50% for Q 1 (resp. 40% to 20% for Q 2 ).

Figure 31: Defect problem, exponential loading : convergence of the error estimate for Q 1 (left) and Q 2 (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-a4306aeb-5515-4485-8b19-362265cba4a7.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-fcbb4e35-75b5-4ad2-b584-de3f048fad21.jpg)

## 6.2. Flow problem

We now consider a flow problem in a fractured porous medium, with a source and a sink. This problem has already been considered in [20], with different multiscale techniques. The conductivity within the fractures can be several orders of magnitude higher than the conductivity within the matrix. In flow applications, one needs to obtain a good approximation of the pressure in a neighborhood of the wells.

We consider the domain Ω = (0 1) , 2 and the inflow-outflow source term f = χ K 1 -χ K 2 , where K 1 = [0 1 . , 0 2] . × [0 8 . , 0 9] and . K 2 = [0 8 . , 0 9] . × [0 1 . , 0 2]. The pressure . u ε is solution to

$$- \nabla \cdot ( A ^ { \varepsilon } \nabla u ^ { \varepsilon } ) = f \text{ in } \Omega, \quad u ^ { \varepsilon } = 0 \text{ on } \partial \Omega,$$

and we consider the quantity of interest Q u ( ε ) = 1 | K 2 | ∫ K 2 u ε , that is the average value of the solution (i.e. the pressure) on the outflow region K 2 (where the well is located).

The scalar-valued high-contrast function A ε ( x ) is shown on Fig. 32. We observe a high-conductivity channel crossing the domain Ω, and separating the inflow and outflow regions. In the blue region, we have A ε = 1, and in the red region we set A ε = 10 . The contrast between the conductivities in the blue and 4 red regions is thus very large.

Figure 32: Flow problem : evolution of A ε in the domain Ω.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-0a5e87ad-6a3a-466f-b681-ce20fde4b167.jpg)

We take an initial mesh T H made of 10 × 10 macro elements, with h K = H/ 10 for any K and no oversampling. We show on Figs 33, 34 and 35 the exact solution u ε and its MsFEM approximation u ε H , their gradients ∇ u ε and ∇ u ε H , and the fluxes q ε and q ε H . We can see that the solution u ε is essentially supported in the source region K 1 and the sink region K 2 . The initial approximation u ε H is not very accurate, especially in the top half of Ω. As can be seen on Fig. 40, the initial error on the quantity of interest is almost 60%. The discretization is purposely too coarse.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-09d155b5-1abb-49cd-974f-9726c09392cd.jpg)

Figure 33: Flow problem : exact solution u ε (left) and MsFEM solution u ε H (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-9780edc3-3a1b-47f1-9eb9-48195245bba6.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-83431e68-44da-4e5c-8a43-cbd8541c879c.jpg)

Figure 34: Flow problem : exact gradient ∇ u ε (left) and MsFEM gradient ∇ u ε H (right) (top row : components ∇ u ε · e 1 and ∇ u ε H · e 1 ; bottom row : components ∇ u ε · e 2 and ∇ u ε H · e 2 ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-1395ad9f-ad19-4b5c-9f1a-ce3ab08dca08.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-a50f55dc-f452-4ed4-aa2c-bcc3506e4d6b.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-f9e55dbf-59f2-470b-aad3-2d86b7850c2e.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-cb92df47-0f3e-4277-b5f9-bf909a6b99d0.jpg)

Figure 35: Flow problem : exact flux q ε (left) and MsFEM flux q ε H (right) (top row : components q ε · e 1 and q ε H · e 1 ; bottom row : components q ε · e 2 and q ε H · e 2 ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-dbae0bf7-e1af-4345-9a63-d5016400e1ad.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-897e82dd-49bb-4bee-ae48-d88e568740a5.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-faaf659d-f2d9-464d-9415-dd85443d4b69.jpg)

The error between the exact solution and its MsFEM approximation is shown on Fig. 36.

Figure 36: Flow problem : distribution of the error. Left : u ε -u ε H . Right : error in the energy norm.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-36f75c04-0a4c-4acc-a47b-2a33d2c480fd.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-5d2fe8de-b237-455b-9322-a483fded325a.jpg)

The adjoint solution ˜ u ε and flux ˜ q ε corresponding to the quantity of interest Q are shown on Fig. 37.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-8b88ce2e-d57a-4865-bfde-39e466409e93.jpg)

Figure 37: Flow problem : exact adjoint solution ˜ u ε (left), exact adjoint flux ˜ q ε · e 1 (center) and ˜ q ε · e 2 (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-c8483681-6b09-4019-b0e9-de5aadb55251.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-a4620a2a-9bd3-4766-9e14-54bf529ab01b.jpg)

The error threshold is fixed to 1%. We show on Fig. 38 the final MsFEM discretization that we obtain in order to respect the error threshold for the quantity of interest. As in the previous test cases, this discretization is much coarser than the discretization (shown on Fig. 39) that is obtained when controlling the global error (in energy norm) using tools presented in [19].

The accuracy of the error estimate is again very good in this example. We get η Q / Q u | ( ε ) -Q u ( ε H ) | = 1 14 at the first iteration of the adaptive algorithm, and . η Q / Q u | ( ε ) -Q u ( ε H ) | = 1 08 at the final iteration . of the adaptive algorithm.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-4774570b-e8a8-4eb6-971e-d48e1b97eece.jpg)

Figure 38: Flow problem : final MsFEM discretization for the quantity of interest Q .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-8cca27d4-b342-4ed7-9381-1fc702b56d16.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-98a76526-7a6b-4993-a773-f9c2ab808358.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-add8419c-86f9-4a3f-9d9f-b88dfc47cb18.jpg)

Figure 39: Flow problem : final MsFEM discretization when controlling the global error.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-d6659386-fac5-44d8-bf91-8c34181b9c0e.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-b446083a-0833-4ba2-8c65-d9d7d67692ca.jpg)

The error estimate on the quantity of interest is shown on Fig. 40, as the iterations of the adaptive process proceed. We again observe that this error monotically decreases.

## 7. Conclusions and perspectives

We have introduced efficient numerical tools for the a posteriori error estimation of specific quantities of interest in the context of MsFEM computations. These tools are based on the Constitutive Relation Error concept, that we have previously used in [19] to estimate the error in the energy norm, and that we have here successfully extended to the goal-oriented context.

Our approach leads to fully computable and guaranteed upper bounds on the error, and enables to perform adaptive multiscale computations by selecting the relevant MsFEM parameters to reach a prescribed error tolerance. Our procedure is consistent with the offline / online paradigm of MsFEM, hence yielding affordable additional computational costs.

Figure 40: Flow problem : convergence of the error estimate for Q u ( ε ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00367v1-figure-3f2c177f-d1c6-4af1-8926-a6a315448a50.jpg)

The performances of the approach have been investigated on several multiscale problems. Fine scale features of the solution are adaptively recovered during the iterations, if and where needed. In particular, the fine-scale features of the solution in some parts of the physical domain may not affect the quantity of interest, and our procedure then prevents the discretization approach to capture them, thus achieving a significant computational gain at no loss in accuracy. Our method thus outperforms the standard a posteriori error estimation strategy (which assesses and controls the error in the energy norm) : for an equal tolerance on the error, a coarser discretization is obtained, leading to a smaller computational cost.

## Acknowledgements

We thank C. Le Bris for stimulating discussions on the topics addressed in this article. LC thanks Inria for enabling his two-year leave (2014-2016) in the MATHERIALS project team. The work of FL is partially supported by ONR under grant N00014-15-1-2777 and by EOARD under grant FA9550-17-10294.

## R´ ef´rences e

- [1] Abdulle A., Nonnenmacher A. A posteriori error analysis of the heterogeneous multiscale method for homogenization problems. C.R. Acad. Sci. Paris, S´rie I e 2009 ; 347 :1081-1086.
- [2] Abdulle A., Nonnenmacher A. A posteriori error estimates in quantities of interest for the finite element heterogeneous multiscale method. Numerical Methods for Partial Differential Equations 2013 ; 29 (5) :1629-1656.
- [3] Ainsworth M., Oden J.T. A posteriori error estimation in finite element analysis . John Wiley &amp; Sons 2000.
- [4] Akbari Rahimabadi A., Kerfriden P., Bordas S. Scale selection in nonlinear fracture mechanics of heterogeneous materials. Philosophical Magazine 2015 ; 95 (28-30) :3328-3347.
- [5] Allaire G., Brizzi R. A multiscale finite element method for numerical homogenization. SIAM Multiscale Modeling &amp; Simulation 2006 ; 4 (3) :790-812.
- [6] Becker R., Rannacher R. A feed-back approach to error control in finite element methods : Basic analysis and examples. East-West Journal of Numerical Mathematics 1996 ; 4 :237-264.
- [7] Becker R., Rannacher R. An optimal control approach to shape a posteriori error estimation in finite element methods. Acta Numerica , Cambridge University Press, 2001 ; 10 :1-120.
- [8] Ben Dhia H., Rateau G. Mathematical analysis of the mixed Arlequin method. C.R. Acad. Sci. Paris 2001 ; 332 (7) :649-654.
- [9] Bensoussan A., Lions J.-L., Papanicolaou G. Asymptotic Analysis for Periodic Structures . Studies in Mathematics and its Applications, vol. 5, North-Holland, Amsterdam, New York 1978.

| [10]   | Blanc X., Le Bris C., Lions P.-L. A possible homogenization approach for the numerical simulation of periodic microstructures with defects. Milan Journal of Mathematics 2012 ; 80 (2) :351-367.                                                             |
|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [11]   | Blanc X., Le Bris C., Lions P.-L. Local profiles and elliptic problems at different scales with defects. C.R. Acad. Sci. Paris, S´rie e I 2015 ; 353 :203-208.                                                                                               |
| [12]   | Blanc X., Le Bris C., Lions P.-L. Local profiles for elliptic problems at different scales : defects in, and interfaces between periodic structures. Communications in Partial Differential Equations 2015 ; 40 (12) :2173-2236.                             |
| [13]   | Blanc X., Le Bris C., Lions P.-L., On correctors for linear elliptic homogenization in the presence of local defects. Communications in Partial Differential Equations 2018 ; 43 (6) :965-997.                                                               |
| [14]   | Blanc X., Le Bris C., Lions P.-L., On correctors for linear elliptic homogenization in the presence of local defects : the case of advection-diffusion. Journal de Math´matiques e Pures et Appliqu´es e 2019 ; 124 :106-122.                                |
| [15]   | Brezzi F., Lions J.-L., Pironneau O. Analysis of a chimera method. C.R. Acad. Sci. Paris 2001 ; 332 :655-660.                                                                                                                                                |
| [16]   | Cao T., Kelly D.W. Pointwise and local error estimates for the quantities of interest in two- dimensional elasticity. Computers and Mathematics with Applications 2003 ; 46 (1) :69-79.                                                                      |
| [17]   | Chamoin L., Ladev`ze e P. A non-intrusive method for the calculation of strict and efficient bounds of calculated outputs of interest in linear viscoelasticity problems. Computer Methods in Applied Mechanics and Engineering 2008 ; 197 (9-12) :994-1014. |
| [18]   | Chamoin L., Legoll F. A pedagogical view on a posteriori error estimation in finite element analysis. in preparation .                                                                                                                                       |
| [19]   | Chamoin L., Legoll F. A posteriori error estimation and adaptive strategy for the control of MsFEM computations. Computer Methods in Applied Mechanics and Engineering 2018 ; 336 :1-38.                                                                     |
| [20]   | Chung E.T., Leung W.T., Pollock S. Goal-oriented adaptivity for GMsFEM. Journal of Computa- tional and Applied Mathematics 2016 ; 296 :625-637.                                                                                                              |
| [21]   | Cirak F., Ramm E. A posteriori error estimation and adaptivity for linear elasticity using the reciprocal theorem. Computer Methods in Applied Mechanics and Engineering 1998 ; 156 :351-362.                                                                |
| [22]   | E W., Engquist B., Huang Z. Heterogeneous multiscale method : a general methodology for multiscale modeling. Physical Review B 2003 ; 67 (9) :092101.                                                                                                        |
| [23]   | Efendiev Y., Galvis J., Hou T. Generalized multiscale finite element methods. Journal of Computa- tional Physics 2013 ; 251 :116-135.                                                                                                                        |
| [24]   | Efendiev Y., Hou T. Multiscale Finite Element Methods : Theory and Applications . Springer, New York 2009.                                                                                                                                                   |
| [25]   | Efendiev Y., Hou T., Wu X.H. Convergence of a nonconforming multiscale finite element method. SIAM Journal of Numerical Analysis 2000 ; 37 (3) :888-910.                                                                                                     |
| [26]   | Feyel F. A multilevel finite element method (FE2) to describe the response of highly non-linear structures using generalized continua. Computer Methods in Applied Mechanics and Engineering 2003 ; 192 :3233-3244.                                          |
| [27]   | Fraeijs de Veubeke B., Hugge M.A. Dual analysis for heat conduction problems by finite elements. International Journal for Numerical Methods in Engineering 1972 ; 5 (1) :65-82.                                                                             |
| [28]   | Gendre L., Allix O., Gosselet P., Comte F. Non-intrusive and exact global/local techniques for structural problems with local plasticity. Computational Mechanics 2009 ; 44 (2) :233-245.                                                                    |
| [29]   | Giles M.B., Suli E. Adjoint methods for PDEs : a posteriori error analysis and postprocessing by duality. Acta Numerica 2002 :145-236.                                                                                                                       |
| [30]   | Gr¨tsch a T., Hartmann F. Finite element recovery techniques for local quantities of linear problems using fundamental solutions. Computational Mechanics 2003 ; 33 :15-21.                                                                                  |

| [31]   | Henning P., Ohlberger M., Schweizer B. An adaptive multiscale finite element method. SIAM Multiscale Modeling & Simulation 2014 ; 12 (3) :1078-1107.                                                                                                                                                                                                             |
|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [32]   | Hesthaven J., Zhang S., Zhu X. High-order multiscale finite element method for elliptic problems. SIAM Multiscale Modeling & Simulation 2014 ; 12 (2) :650-666.                                                                                                                                                                                                  |
| [33]   | Hou T., Wu X.H. A multiscale finite element method for elliptic problems in composite materials and porous media. Journal of Computational Physics 1997 ; 134 :169-189.                                                                                                                                                                                          |
| [34]   | Hou T., Wu X.H., Cai Z. Convergence of a multiscale finite element method for elliptic problems with rapidly oscillating coefficients. Mathematics of Computation 1999 ; 68 (227) :913-943.                                                                                                                                                                      |
| [35]   | Hou T., WuX.H., Zhang Y. Removing the cell resonance error in the multiscale finite element method via a Petrov-Galerkin formulation. Communications in Mathematical Sciences 2004 ; 2 :185-205.                                                                                                                                                                 |
| [36]   | Hughes T.J.R., Feijoo G.R., Mazzei L., Quincy J.B. The variational multiscale method - A para- digm for computational mechanics. Computer Methods in Applied Mechanics and Engineering 1998 ; 166 (1-2) :3-24.                                                                                                                                                   |
| [37]   | Jhurani C., Demkowicz L. Multiscale modeling using goal-oriented adaptivity and numerical homo- genization. Part 1 : mathematical formulation and numerical results. Computer Methods in Applied Mechanics and Engineering 2012 ; 213-216 :399-417.                                                                                                              |
| [38]   | Ladev`ze e P. Strict upper error bounds for calculated outputs of interest in computational structural mechanics. Computational Mechanics 2008 ; 42 (2) :271-286.                                                                                                                                                                                                |
| [39]   | Ladev`ze e P., Chamoin L. Calculation of strict error bounds for finite element approximations of non- linear pointwise quantities of interest. International Journal for Numerical Methods in Engineering 2010 ; 84 :1638-1664.                                                                                                                                 |
| [40]   | Ladev`ze e P., Leguillon D. Error estimate procedure in the finite element method and applications. SIAM Journal of Numerical Analysis 1983 ; 20 (3) :485-509.                                                                                                                                                                                                   |
| [41]   | Ladev`ze e P., Maunder E.A.W. A general method for recovering equilibrating element tractions. Computer Methods in Applied Mechanics and Engineering 1996 ; 137 :111-151.                                                                                                                                                                                        |
| [42]   | Ladev`ze e P., Pelle J.-P. Mastering Calculations in Linear and Nonlinear Mechanics . Springer, 2004.                                                                                                                                                                                                                                                            |
| [43]   | Ladev`ze e P., Pled F., Chamoin L. New bounding techniques for goal-oriented error estimation applied to linear problems. International Journal for Numerical Methods in Engineering 2013 ; 93 (13) :1345- 1380.                                                                                                                                                 |
| [44]   | Larson M.G., Malqvist A. Adaptive variational multiscale methods based on a posteriori error estimation : duality techniques for elliptic problems. In B. Engquist, P. L¨tstedt, o and O. Runborg, editors, Multiscale Methods in Science and Engineering , volume 44 of Lecture Notes in Computational Science and Engineering , pages 181-193. Springer, 2005. |
| [45]   | Larson M.G., Malqvist A. Adaptive variational multiscale methods based on a posteriori error estimation : energy norm estimates for elliptic problems. Computer Methods in Applied Mechanics and Engineering 2007 ; 196 (21-24) :2313-2324.                                                                                                                      |
| [46]   | Le Bris C., Legoll F., Lozinski A. An MsFEMtype approach for perforated domains. SIAM Multiscale Modeling & Simulation 2014 ; 12 (3) :1046-1077.                                                                                                                                                                                                                 |
| [47]   | Le Bris C., Legoll F., Thomines F. Multiscale finite element approach for 'weakly' random problems and related issues. Mathematical Modelling and Numerical Analysis 2014 ; 48 (3) :815-858.                                                                                                                                                                     |
| [48]   | Lions J.-L., Pironneau O. Domain decomposition methods for CAD. C.R. Acad. Sci. Paris, S´rie e I 1999 ; 328 (1) :73-80.                                                                                                                                                                                                                                          |
| [49]   | Lozinski A., Pironneau O. Numerical zoom for localized multiscales. Numerical Methods for Partial Differential Equations 2011 ; 27 :197-207.                                                                                                                                                                                                                     |
| [50]   | Maier M., Rannacher R. Duality-based adaptivity in finite element discretization of heterogeneous multiscale problems. Journal of Numerical Mathematics 2016 ; 24 (3) :167-187.                                                                                                                                                                                  |

| [51]   | Malqvist A., Peterseim D. Localization of elliptic multiscale problems. Mathematics of Computation 2014 ; 83 (290) :2583-2603.                                                                                                                                                                |
|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [52]   | Nolen J., Papanicolaou G., Pironneau O. A framework for adaptive multiscale methods for elliptic problems. SIAM Multiscale Modeling & Simulation 2008 ; 7 (1) :171-196.                                                                                                                       |
| [53]   | Oden J.T., Prudhomme S. Goal-oriented error estimation and adaptivity for the finite element method. Computers and Mathematics with Applications 2001 ; 41 :735-756.                                                                                                                          |
| [54]   | Oden J.T., Prudhomme S. Estimation of modeling error in Computational Mechanics. Journal of Computational Physics 2002 ; 182 :496-515.                                                                                                                                                        |
| [55]   | Oden J.T., Reddy J.N. On dual complementary variational principles in mathematical physics. International Journal of Engineering Science 1974 ; 12 :1-29.                                                                                                                                     |
| [56]   | Oden J.T., Vemaganti K. Estimation of local modeling error and goal-oriented modeling of hete- rogeneous materials ; Part 1 : Error estimates and adaptive algorithms. Journal of Computational Physics 2000 ; 164 :22-47.                                                                    |
| [57]   | Oden J.T., Vemaganti K., Mo¨s e N. Hierarchical modeling of heterogeneous solids. Computer Methods in Applied Mechanics and Engineering 1999 ; 172 (1-4) :3-25.                                                                                                                               |
| [58]   | Panetier J., Ladev`ze e P., Chamoin L. Strict and effective bounds in goal-oriented error estimation applied to fracture mechanics problems solved with XFEM. International Journal for Numerical Methods in Engineering 2010 ; 81 :671-700.                                                  |
| [59]   | Paraschivoiu M., Peraire J., Patera A.T. A posteriori finite element bounds for linear functional outputs of elliptic partial differential equations. Computer Methods in Applied Mechanics and En- gineering 1997 ; 150 :289-312.                                                            |
| [60]   | Pled F., Chamoin L., Ladev`ze e P. On the techniques for constructing admissible stress fields in model verification : performances on engineering examples. International Journal for Numerical Methods in Engineering 2011 ; 88 (5) :409-441.                                               |
| [61]   | Prudhomme S., Chamoin L., Ben Dhia H., Bauman P.T. An adaptive strategy for the control of modeling error in two-dimensional atomic-to-continuum coupling simulations. Computer Methods in Applied Mechanics and Engineering 2009 ; 198 (21-26) :1887-1901.                                   |
| [62]   | Prudhomme S., Oden J.T. On goal-oriented error estimation for elliptic problems : application to the control of pointwise errors. Computer Methods in Applied Mechanics and Engineering 1999 ; 176 :313-331.                                                                                  |
| [63]   | Rannacher R., Suttmeier F.T. A feedback approach to error control in finite element methods : application to linear elasticity. Computational Mechanics 1997 ; 19 :434-446.                                                                                                                   |
| [64]   | Strouboulis T., Copps K., Babuska I. The generalized finite element method. Computer Methods in Applied Mechanics and Engineering 2001 ; 190 :4081-4193.                                                                                                                                      |
| [65]   | Strouboulis T., Zhang L., Wang D., Babuska I. A posteriori error estimation for generalized finite element methods. Computer Methods in Applied Mechanics and Engineering 2006 ; 195 :852-879.                                                                                                |
| [66]   | Vemaganti K., Oden J.T. Estimation of local modeling error and goal-oriented modeling of hetero- geneous materials ; Part 2 : A computational environment for adaptive modeling of heterogeneous elastic solids. Computer Methods in Applied Mechanics and Engineering 2001 ; 190 :6089-6124. |
| [67]   | Verf¨rth u R. A review of a posteriori error estimates and adaptive mesh-refinement techniques . Wiley- Teubner 1996.                                                                                                                                                                         |
| [68]   | Waeytens J., Chamoin L., Ladev`ze e P. Guaranteed error bounds on pointwise quantities of interest for transient viscodynamics problems. Computational Mechanics 2012 ; 49 :291-307.                                                                                                          |
Ludovic Chamoin Frederic Legoll
Goal-oriented error estimation and adaptivity in MsFEM computations
We introduce a goal-oriented strategy for multiscale computations performed
using the Multiscale Finite Element Method (MsFEM). In a previous work, we have
shown how to use, in the MsFEM framework, the concept of Constitutive Relation
Error (CRE) to obtain a guaranteed and fully computable a posteriori error
estimate in the energy norm (as well as error indicators on various error
sources). Here, the CRE concept is coupled with the solution of an adjoint
problem to control the error and drive an adaptive procedure with respect to a
given output of interest. Furthermore, a local and non-intrusive enrichment
technique is proposed to enhance the accuracy of error bounds. The overall
strategy, which is fully automatic and robust, enables to reach an appropriate
trade-off between certified reliability and computational cost in the MsFEM
context. The performances of the proposed method are investigated on several
illustrative numerical test cases. In particular, the error estimation is
observed to be very accurate, yielding a very efficient adaptive procedure.