원시데이터 수집 시스템
선정목록으로

A posteriori error estimation and adaptive strategy for the control of MsFEM computations

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(10) 아라미드

기본 정보

저자
  1. Chamoin, Ludovic
  2. Legoll Frederic
DOI
10.48550/arxiv.1709.03624
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
2
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1709.03624
토픽
Composite Material Mechanics
OpenAlex ID
W4298358621

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(21) 에폭시수지, (10) 아라미드
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Multiscale Finite Element Method, homogenization, heterogeneous material structure, macroscopic properties, numerical accuracy
판단 근거
이 논문은 불균질한(heterogeneous) 소재의 미시적 구조가 거시적 물성에 미치는 영향을 예측하기 위한 다중스케일 수치 해석법(MsFEM)과 오차 추정 기술을 다룹니다. 이는 코오롱인더스트리의 복합소재(컴파운드)나 고분자/섬유 소재의 물성 설계 및 해석 모델링에 응용될 수 있는 수치 해석적 방법론입니다.
R&D 활용 포인트
고분자 컴파운드나 아라미드 등 미세 구조가 물성에 큰 영향을 미치는 기능성 소재의 기계적/열적 특성을 시뮬레이션할 때, 계산 효율성을 높이면서도 정확도를 검증하는 수치 해석 도구로 활용 가능합니다.
평가 입력
본문 204,004자 중 30,032자 발췌

초록

We introduce quantitative and robust tools to control the numerical accuracy in simulations performed using the Multiscale Finite Element Method (MsFEM). First, we propose a guaranteed and fully computable a posteriori error estimate for the global error measured in the energy norm. It is based on dual analysis and the Constitutive Relation Error (CRE) concept, with recovery of equilibrated fluxes from the approximate MsFEM solution. Second, the estimate is split into several indicators, associated to the various MsFEM error sources, in order to drive an adaptive procedure. The overall strategy thus enables to automatically identify an appropriate trade-off between accuracy and computational cost in the MsFEM numerical simulations. Furthermore, the strategy is compatible with the offline/online paradigm of MsFEM. The performances of our approach are demonstrated on several numerical experiments.

본문 204,004자

본문 펼치기
## A posteriori error estimation and adaptive strategy for the control of MsFEM computations Ludovic Chamoin <sup>1,2</sup> and Frédéric Legoll <sup>3,2</sup> 1 LMT (ENS Cachan, CNRS, Université Paris-Saclay), 61 avenue du Président Wilson, 94235 Cachan, France 2 Inria Paris, MATHERIALS project-team, 2 rue Simone Iff, CS 42112, 75589 Paris Cedex 12, France 3 Laboratoire Navier (ENPC, Paris-Est University), 6 et 8 avenue Blaise Pascal, 77455 Marne-La-Vallée Cedex 2, France November 2, 2021 Abstract We introduce quantitative and robust tools to control the numerical accuracy in simulations performed using the Multiscale Finite Element Method (MsFEM). First, we propose a guaranteed and fully computable a posteriori error estimate for the global error measured in the energy norm. It is based on dual analysis and the Constitutive Relation Error (CRE) concept, with recovery of equilibrated fluxes from the approximate MsFEM solution. Second, the estimate is split into several indicators, associated to the various MsFEM error sources, in order to drive an adaptive procedure. The overall strategy thus enables to automatically identify an appropriate trade-off between accuracy and computational cost in the MsFEM numerical simulations. Furthermore, the strategy is compatible with the offline/online paradigm of MsFEM. The performances of our approach are demonstrated on several numerical experiments. ### 1 Introduction and objectives Developing multiscale numerical methods for mechanical problems with highly heterogeneous material structure is an increasingly active research field. Such methods are becoming a standard approach in Material Sciences and Computational Mechanics. As an alternative to solving a full fine-scale problem, with a usually prohibitive computational cost, multiscale modeling aims at linking the different scales for the accurate description of physical phenomena and/or the prediction of macroscopic properties (effective conductivity, elastic moduli, . . . ). One of the goals is to capture the impact of the smaller scales on the larger scales, in order to observe the influence of the microscopic structure on the macroscopic behavior. In the last 20 years, a lot of efforts have been put in the design of multiscale approaches for elliptic PDEs. They are inspired by the framework of the Finite Element Method (FEM) but take into account scale separation between macroscopic and microscopic features. A pioneering work using multiscale finite element basis functions is reported in [1]. It can be considered as an extension of an earlier development, the Generalized Finite Element Method (GFEM) [2, 1 3, 4]. All these contributions share the idea of adapting the FE space to the particular fine-scale features of the problem by means of handbook functions and partition of unity. Other classical multiscale methods include the Multiscale Finite Element Method (MsFEM) developed in [5, 6] and also based on modified basis functions obtained from fine-scale equations (we refer to [7] for a review), the Variational Multiscale Method (VMS) developed in [8], the sparse FEM introduced in [9], multigrid methods [10], and multilevel finite elements methods such as the Heterogeneous Multiscale Method (HMM) proposed in [11, 12] or the FE <sup>2</sup> method proposed in [13]. We also mention the large literature on numerical homogenization from RVEs developed in the Structural Mechanics and Engineering communities to obtain macroscopic phenomenological constitutive laws [14]. In this context, we focus on MsFEM which is a powerful tool to capture information at various scales without resorting to a full fine-scale computation [7, 15]. It defines an approximate solution in a finite dimensional space, related to a macroscopic mesh and generated by basis functions which encode details of the fine-scale heterogeneities. MsFEM performs the computations in a two-stage procedure: (i) an offline stage in which basis functions are computed solving local fine-scale problems; (ii) an online stage in which an inexpensive Galerkin approximation problem is solved. We refer to Section 3 below for more details. As for all numerical methods, a crucial issue is to control the accuracy of the obtained approximate numerical solution. In particular, it is important to understand and master how errors generated in problems at different scales influence the overall error in the MsFEM solution. Furthermore, the MsFEM numerical model may be costly, since fine-scale offline computations may not be possible over the whole structure, even with parallel computing, in practical situations (limited resources available). Consequently, a major problem is to identify an appropriate trade-off between accuracy and computational cost. The ultimate goal is then to design MsFEM algorithms such that: (i) a given precision is attained at the end of the simulation; (ii) the computational work needed is as small as possible (computing resources are optimized). For many years, numerous research works have been conducted to develop effective tools for the estimation of discretization error and the adaptation of discretization parameters, mainly in the monoscale framework of FEM. A review can be found in [16, 17, 18, 19]. In contrast to a priori estimates that merely enable to evaluate the convergence order (with respect to discretization parameters) of a given numerical method, a posteriori error estimates provide quantitative information on the error as well as criteria for mesh adaptation. A particular and robust a posteriori error estimation tool, using the concept of Constitutive Relation Error (CRE), has been used in the Computational Mechanics community for more than thirty years [18]. It is based on a dual analysis approach [20, 21, 22] and thus requires the computation (by post-processing the primal approximate solution field) of flux fields that verify equilibrium in a strong sense [23]. This enables to derive, in a convenient way, fully computable (i.e. without any unknown multiplicative constant) and guaranteed error bounds on both the global solution (error in energy norm) and given quantities of interest (goaloriented error estimation) using an adjoint problem [24]. In the multiscale framework, and for MsFEM-like methods particularly, the state-of-the-art is very different. On the one hand, a large literature has addressed a priori error estimation for the last fifteen years, enabling to evaluate the convergence of the error with respect to the macroscopic mesh size and the characteristic length of the microscopic heterogeneities [6, 25, 26, 27, 7, 28]. On the other hand, despite the fact that a posteriori error control and adaptivity have become an important issue for reliable and efficient multiscale computations, 2 very few tools on this topic are available (see [29, 30, 31, 32, 33, 34, 35, 36]) and there are many open questions: quantitative assessment of error propagation across scales, relevant adaptive strategies, . . . Currently, and as far as the authors know, there is only one a posteriori error estimate approach available for MsFEM approximations. It was recently proposed in [37] using the explicit residuals method. This latter approach, splitting the error estimate with respect to the different error sources, is effective to drive an adaptive algorithm. However, it does not enable to quantify the error level accurately (but only up to some unknown constants), which is a drawback in engineering activities where certification of the accuracy and stopping criteria for adaptive algorithms are required. We also mention the a posteriori error indicator proposed in [38] for a variant of MsFEM, namely the Generalized Multiscale Finite Element Method (GMsFEM). In this work, we develop a robust a posteriori error estimate, as well as an associated adaptive strategy, for MsFEM computations. To achieve this goal, the CRE concept is extended to the multiscale framework. We first show how equilibrated fluxes can be recovered from an extension of the method given for FEM in [18], so that a guaranteed and fully computable error estimate on the overall error can be derived. This is, to the best authors knowledge, the first estimate of this kind for MsFEM. In order to minimize the computational cost associated with error estimation, as well as to conserve the MsFEM philosophy, we pay attention to perform most of the additional computations in the offline step and with multi-query constraints. Conforming and non-conforming (oversampling) variants of MsFEM are considered in this framework. Second, we detail how CRE can be effectively used to localize and assess the various MsFEM error sources, before driving a robust adaptive algorithm from local error maps and with respect to a given error tolerance. The adaptive strategy enables to choose automatically the various discretization parameters which are involved in MsFEM. In particular, it circumvents offline fine-scale computations over all elements of the macro mesh. Local remeshing being not suitable in the MsFEM context (since it would lead to costly recomputations of basis functions), we use a variant (h-version) of the technique proposed in [27], which avoids to go back to the offline step when adapting the macro mesh. Third, the proposed techniques for robust error estimation and multiscale adaptivity are illustrated on several examples of the literature. Numerical results confirm the practical interest of these techniques, in terms of both certification of the numerical solution and computational savings, when performing multiscale simulations using MsFEM. The article is organized as follows. The model problem is described in Section 2, where we also recall some elements of homogenization theory. Basics on MsFEM are recalled in Section 3. The a posteriori error estimation method based on CRE is introduced in Section 4. The adaptive strategy, associated to indicators related to various error sources, is detailed in Section 5. Numerical experiments illustrating the performances of the proposed approach are discussed in Section 6. Conclusions and prospects are eventually drawn in Section 7. ### 2 Model problem and homogenized limit 2.1 Problem of interest We consider a fine-scale elliptic problem, typically associated with heat transport in composite materials or Darcy flow in porous media, that is characterized by strong material hetero 3 geneities. The characteristic scale of the material coefficients, denoted ε, is hence small. The associated boundary value problem reads ´ ∇ ¨ rA <sup>ε</sup> ∇u <sup>ε</sup> s “ f in Ω, u <sup>ε</sup> “ 0 on ΓD, pA <sup>ε</sup> ∇u <sup>ε</sup> q ¨ n “ g on ΓN, (1) where Ω is an open bounded domain of R <sup>d</sup> . Its boundary Γ “ BΩ is split into a subset ΓD Ă BΩ (with measure |ΓD| ą 0) where homogeneous Dirichlet boundary conditions are applied, and a subset ΓN “ BΩzΓD Ă BΩ where Neumann boundary conditions are applied. We assume that the body loading f P L <sup>2</sup> pΩq and the traction loading g P L <sup>2</sup> pΓN q are given and slowly varying (they do not depend on ε). The quantity q <sup>ε</sup> “ A <sup>ε</sup> ∇u <sup>ε</sup> is the flux associated to u <sup>ε</sup> . The second-order diffusion tensor A <sup>ε</sup> P pL <sup>8</sup> pΩqq <sup>dˆd</sup> is a rapidly oscillating function, ε representing the typical (presumably small) size of the heterogeneities. We assume that A <sup>ε</sup> is a symmetric matrix (see Remark 2.1 below for a discussion of that assumption) and that it is uniformly elliptic and bounded, in the sense that there exist α ą 0 and β ą 0 such that @ε ě 0, @ξ P R <sup>d</sup>, α|ξ| <sup>2</sup> ď pA <sup>ε</sup> pxqξq ¨ ξ ď β|ξ| <sup>2</sup> a.e. in Ω. (2) The weak formulation of (1) consists in finding u <sup>ε</sup> P V such that @v P V, B <sup>ε</sup> pu <sup>ε</sup>, vq “ F pvq, (3) where and V “ H0 <sup>1</sup>, v P H <sup>1</sup> pΩq; v “ 0 on ΓD (4) Ω ( ˆ B <sup>ε</sup> pu, vq “ ˆ 0 <sup>1</sup>,ΓD <sup>pΩq “</sup> ␣ Ω ˆ ΓN g v. f v ` rA <sup>ε</sup> ∇us ¨ ∇v, F pvq “ The bilinear form B <sup>ε</sup> is symmetric, continuous and coercive on V . It hence defines an inner product and induces the energy norm |||v||| “ B <sup>ε</sup> pv, vq on V . In what follows, for any k P N a a product and induces the energy norm |||v||| “ B <sup>ε</sup> pv, vq on V . In what follows, for any k P N and any v P H <sup>k</sup> pΩq, we set }v}k “ }v}HkpΩq. Notea in particular that }v}0 “ }v}L2pΩq. Remark 2.1. We refer to [16, 39], as well as [40] and the extensive bibliography therein, for a posteriori error estimations (in a single-scale framework) in the case when the bilinear form B <sup>ε</sup> in (3) is non-symmetric. sup Let TH be a partition of Ω. We denote HK “ M,N PK |MN | the diameter of each element K, and H “ KmaxPTH KmaxPTH <sup>HK.</sup> <sup>Introducing</sup> <sup>the</sup> <sup>P1-Lagrange</sup> <sup>finite</sup> <sup>dimensional</sup> <sup>space</sup> , (5) VH <sup>0</sup> <sup>“</sup> " v P C <sup>0</sup> pΩq, v P V, v|K is a polynomial function of degree up to 1 on any element K the Finite Element (FE) approximation of (1) reads: H <sup>0</sup> <sup>,</sup> B <sup>ε</sup> puH, vq “ F pvq. NotestandardthatFEMVH <sup>0</sup> <sup>Ă</sup> a <sup>V</sup> priori <sup>,</sup> <sup>and</sup> error <sup>hence</sup> estimates <sup>the</sup> <sup>approximation</sup> yield that <sup>is</sup> <sup>conforming.</sup> <sup>Assuming</sup> <sup>that</sup> <sup>uε</sup> <sup>P</sup> <sup>H2pΩq,</sup> Note that V <sup>0</sup> Find uH P VH <sup>0</sup> H <sup>0</sup> <sup>such</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P V</sup> H <sup>0</sup> }u <sup>ε</sup> ´ uH}1 ď CH}u <sup>ε</sup> }2 ď C <sup>H</sup> ε <sup>H</sup> ε <sup>}f</sup> <sup>}0,</sup> where C is independent of H and ε. We hence see that obtaining an accurate approximation uH requires to choose H ! ε. The number of degrees of freedom is then very large. This leads to a usually prohibitive computational complexity. Non-convergence to the correct solution in the limit ε Ñ 0 is due to the fact that the small scale information is averaged out incorrectly in the classical FEM approach. 4 2.2 Homogenization strategy From an engineering perspective, it may be sufficient to only predict the macroscopic properties of the solution to (1). Powerful homogenization methods can be used for this purpose, based on a scale separation assumption, i.e. considering the regime ε ! L where L is the characteristic size of the macroscopic variations of u <sup>ε</sup> inside Ω. The idea is to approximate the behavior of the heterogeneous medium with an effective averaged behavior at a macroscopic scale. From a mathematical point of view, homogenization consists in identifying the limit of the operator ´ ∇ ¨ rA <sup>ε</sup> ∇¨s For the considered problem, homogenization theory (see the textbooks [41, 42, 43, 44, 45] ` ˘´1 when ε tends to zero. a mathematical point of view, homogenization consists in identifying the limit of the operator ´ ∇ ¨ rA <sup>ε</sup> ∇¨s For the considered problem, homogenization theory (see the textbooks [41, 42, 43, 44, 45] ` ˘´1 when ε tends to zero. and the review article [46]) yields the following result, if no further assumptions are made on A <sup>ε</sup> . Up to the extraction of a subsequence, u <sup>ε</sup> converges to some u <sup>0</sup> (strongly in the L <sup>2</sup> -norm, weakly in the H <sup>1</sup> -norm), solution to the macroscale (homogenized) problem ´ ∇ ¨ rA <sup>ε</sup> ∇¨s ´∇ ¨ rA <sup>0</sup> ∇u <sup>0</sup> s “ f in Ω, u <sup>0</sup> “ 0 on ΓD, pA <sup>0</sup> ∇u <sup>0</sup> q ¨ n “ g on ΓN, where the second-order tensor A <sup>0</sup> is symmetric and satisfies the same bounds (2) as A <sup>ε</sup> . The tensor A <sup>0</sup> depends on the considered subsequence, but is independent of the loads f and g. When A <sup>ε</sup> has a periodic (or locally periodic) structure with period ε, the whole sequence u <sup>ε</sup> converges to u <sup>0</sup>, and the homogenized tensor A <sup>0</sup> can be characterized from the solutions to cell problems, i.e. boundary value problems posed on a domain of size ε <sup>d</sup> and involving the fine-scale tensor A <sup>ε</sup> . Indeed, introducing the fast variable y “ x{ε and assuming that A <sup>ε</sup> pxq “ Apx, yq where the map y ÞÑ Apx, yq is Y -periodic (where Y “ p0, 1q <sup>d</sup> is the unit cube), the coefficients of the homogenized tensor A <sup>0</sup> are given by px, yq¸ ˜ A <sup>0</sup> ij <sup>pxq “</sup> ˆY Aijpx, yq ` k“1 ÿd Aikpx, yq <sup>Bχj</sup> Byk dy, where χjpx, ¨q denotes the periodic solution (of mean zero) to the following cell (or corrector) problem: ‰ ∇y ¨ “ Apx, ¨qpej ` ∇yχjpx, ¨qq “ 0 in Y, y ÞÑ χjpx, yq is Y -periodic. (6) The vector set teju1ďjďd is the standard basis of R <sup>d</sup> . This result can be formally obtained using the two-scale expansion u <sup>ε</sup> pxq “ u <sup>0</sup> px, yq` εu <sup>1</sup> px, yq` ε <sup>2</sup> u <sup>2</sup> px, yq` . . ., where each map y ÞÑ u <sup>s</sup> px, yq, for any s ě 0, is assumed to be Y -periodic. Furthermore, u <sup>ε</sup> and ∇u <sup>ε</sup> can be accurately approximated for small values of ε by Furthermore, u <sup>ε</sup> and ∇u <sup>ε</sup> can be accurately approximated for small values of ε by j“1 ÿd j“1 ÿd u <sup>ε</sup> pxq « u <sup>ε,1</sup> pxq :“ u <sup>0</sup> pxq`ε ∇yχjpx, yq <sup>Bu0</sup> Bxj pxq, j“1 χjpx, yq <sup>Bu0</sup> Bxj pxq, ∇u <sup>ε</sup> pxq « ∇u <sup>0</sup> pxq` j“1 in the sense that }u <sup>ε</sup> ´ u <sup>ε,1</sup> }1 “ Op <sup>?</sup> εq. We note that the contribution of the first-order term εu <sup>1</sup> px, yq “ ε j“1 ÿd j“1 pxq is crucial for the approximation of ∇u <sup>ε</sup> : its gradient is of χjpx, yq <sup>Bu0</sup> Bxj Bxj the same order as ∇u <sup>0</sup> . The gradient of u <sup>ε</sup> ´ u <sup>0</sup> does not (strongly) converge to 0, but the gradient of u <sup>ε</sup> ´ pu <sup>0</sup> ` εu <sup>1</sup> q does. 5 Remark 2.2. In general, the first-order approximation u <sup>0</sup> ` εu <sup>1</sup> of u <sup>ε</sup> does not satisfy the homogeneous Dirichlet boundary conditions on ΓD that u <sup>ε</sup> satisfies. These can be enforced through a first-order correction term εθ <sup>ε</sup>, with θ <sup>ε</sup> verifying ∇¨rA <sup>ε</sup> ∇θ <sup>ε</sup> s “ 0 in Ω and θ <sup>ε</sup> “ ´u <sup>1</sup> through a first-order correction term εθ <sup>ε</sup>, with θ <sup>ε</sup> verifying on ΓD. The correction term is such that }εθ <sup>ε</sup> }1 “ Op <sup>?</sup> εq. For other structures of A <sup>ε</sup>, dedicated numerical methods need to be devised to solve (1) with a computational cost comparable to that required to solve the homogenized problem on a coarse mesh of size H independent of ε. When only the homogenized solution is of interest (which implies that ε ! 1), numerical homogenization over Representative Volume Elements (RVE) may be performed. It consists in solving the equilibrium problem ∇ ¨ rA <sup>ε</sup> ∇v <sup>ε</sup> s “ 0 on the RVE, complemented with specific boundary conditions (Dirichlet, Neumann or periodic boundary conditions) which are in agreement with the Hill-Mandel lemma (equivalence of micro and macro energies). We first write that 1 |RVEpx, ℓq| with ˆ RVEpx,ℓq τ <sup>ε</sup> ¨ ∇v <sup>ε</sup> ´ Q <sup>ε</sup> px, ℓq ¨ E <sup>ε</sup> px, ℓq 1 “ |RVEpx, ℓq| ˆ RVEpx,ℓq pτ <sup>ε</sup> ´ Q <sup>ε</sup> px, ℓqq ¨ p∇v <sup>ε</sup> ´ E <sup>ε</sup> px, ℓqq 1 Q <sup>ε</sup> px, ℓq “ |RVEpx, ℓq| ˆRVEpx,ℓq 1 τ <sup>ε</sup>, E <sup>ε</sup> px, ℓq “ |RVEpx, ℓq| ˆRVEpx,ℓq ∇v <sup>ε</sup>, where RVEpx, ℓq is a RVE around the macroscopic point x of diameter ℓ, v <sup>ε</sup> is the solution to the problem posed on the RVE and τ <sup>ε</sup> “ A <sup>ε</sup> ∇v <sup>ε</sup> . We note that Q <sup>ε</sup> px, ℓq and E <sup>ε</sup> px, ℓq are macroscopic quantities obtained through spatial averaging. Using an integration by parts, we deduce that 1 |RVEpx, ℓq| 1 “ |RVEpx, ℓq| ˆ ˆ RVEpx,ℓq τ <sup>ε</sup> ¨ ∇v <sup>ε</sup> ´ Q <sup>ε</sup> px, ℓq ¨ E <sup>ε</sup> px, ℓq BRVEpx,ℓq pv <sup>ε</sup> ´ E <sup>ε</sup> px, ℓq ¨ Xq pτ <sup>ε</sup> ´ Q <sup>ε</sup> px, ℓqq ¨ n, where BRVEpx,ℓq is the boundary of the RVE, n is the outgoing normal vector and X is the local position vector over the RVE. Using the boundary conditions imposed on the RVE problem, we eventually deduce the equivalence of the micro and macro energies: 1 |RVEpx, ℓq| ˆRVEpx,ℓq τ <sup>ε</sup> ¨ ∇v <sup>ε</sup> ´ Q <sup>ε</sup> px, ℓq ¨ E <sup>ε</sup> px, ℓq “ 0. By linearity, we have that Q <sup>ε</sup> px, ℓq “ Apx, ℓ, εq E <sup>ε</sup> px, ℓq for some matrix Apx, ℓ, εq. The homogenization approach is valid provided the characteristic length ℓ of the RVEs is such that ε ! ℓ ! L. We thus expect that ℓlimÑ0 ε <sup>lim</sup> Ñ0 <sup>Apx, ℓ, εq “ A0pxq.</sup> <sup>A</sup> <sup>single</sup> <sup>RVE</sup> <sup>may</sup> <sup>be</sup> <sup>considered,</sup> for instance when calibrating macroscopic phenomenological constitutive laws, but a set of RVEs can also be defined as in multilevel FEM [11, 13], where a specific RVE is attached to each quadrature point of the macroscopic mesh. We consider in the following an alternative multiscale numerical approach, the Multiscale Finite Element Method (MsFEM), which has the capability to approximate the full fluctuating 6 ε <sup>lim</sup> Ñ0 <sup>Apx, ℓ, εq “ A0pxq.</sup> <sup>A</sup> <sup>single</sup> <sup>RVE</sup> <sup>may</sup> <sup>be</sup> <sup>considered,</sup> ℓlimÑ0 ε <sup>lim</sup> Ñ0 solution u <sup>ε</sup> (with fine-scale details) in a convenient manner. This is performed without any assumption on the structure of A <sup>ε</sup>, and without any a priori knowledge on the form of the homogenized model associated with the heterogeneous model of interest. ### 3 Basics on MsFEM We recall here some basic elements on several variants of MsFEM: the initial conforming variant, the oversampling variant (see Section 3.3) and the higher-order variant introduced by G. Allaire and R. Brizzi (see Section 3.4). The reader familiar with MsFEM may easily skip this section and directly proceed to the a posteriori error estimation described in Section 4. 3.1 General idea MsFEM was introduced in [5] as a multiscale approach for simulating problems in highly heterogeneous media which are intractable by conventional FEM. The MsFEM approach is a particularly attractive tool to capture both microscale and macroscale features of the solution. It is self-consistent in the sense that it only uses the knowledge of A <sup>ε</sup> . The main idea in the MsFEM approach is to construct a set tφi <sup>εu1ďiďI</sup> <sup>of</sup> <sup>local</sup> <sup>multiscale</sup> <sup>FE</sup> <sup>basis</sup> <sup>functions</sup> <sup>that</sup> MsFEM approach is to construct a set tφi <sup>εu1ďiďI</sup> <sup>of</sup> <sup>local</sup> <sup>multiscale</sup> <sup>FE</sup> <sup>basis</sup> <sup>functions</sup> <sup>that</sup> encode small scale information within each element of a coarse mesh TH (H " ε). The basis functions φ <sup>ε</sup> i <sup>, associated with each</sup> <sup>node i of the coarse mesh TH</sup> <sup>(except those with prescribed</sup> functions φ <sup>ε</sup> i <sup>, associated with each</sup> <sup>node i of the coarse mesh TH</sup> <sup>(except those with prescribed</sup> Dirichlet boundary conditions), are adapted to the local properties of the operator. They are pre-computed in an offline stage, over each element K of the coarse mesh (see Figure 1), as solutions to local elliptic equations of the form ∇ ¨ “ A <sup>ε</sup> ∇φ <sup>ε</sup> i i ‰ “ 0 in K, (7) complemented with various boundary conditions discussed below (see e.g. (9)). We note that the basis functions are independent of the loads f and g present in the right-hand side of (3). In addition, the problems (7) are decoupled one from each other. The MsFEM approach is thus well-suited to massively parallel computers. This is an essential feature of the approach. Remark 3.1. In practice, the local problems (7) are solved numerically using a fine mesh of characteristic size h ă ε. Once the multiscale basis functions are computed, the MsFEM strategy is the same as that of a classical FE approach. It consists in performing a Galerkin approximation of (3) on the finite dimensional space V <sup>ε</sup> H <sup>ε</sup> <sup>“ Spantφ</sup> i <sup>ε</sup> i <sup>ε,</sup> <sup>1 ď i ď Iu.</sup> <sup>ε</sup> H <sup>P V</sup> H <sup>ε</sup> In an online stage, we thus look for the approximate solution u <sup>ε</sup> H <sup>ε</sup> <sup>such</sup> <sup>that</sup> H <sup>ε</sup> <sup>,</sup> B <sup>ε</sup> pu <sup>ε</sup> H @v P VH <sup>ε</sup> <sup>ε</sup> H <sup>, vq “ F</sup> <sup>pvq.</sup> (8) The small scale information incorporated in the basis functions 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 to solve (7). As regards memory requirements and computational cost, it is straightforward to observe that they are considerably reduced when using the MsFEM approach compared to a direct FE approach. Indeed, considering regular grids with N (resp. M ) subdivisions in each dimension, 7 K Figure 1: A coarse mesh of the domain Ω is introduced, with elements of diameter H much larger than the small characteristic size ε of the heterogeneities (here the diameter of the inclusions). On each coarse element, we solve a local problem, using in practice a discretization at the size h adapted to the heterogeneities. let us denote by N <sup>d</sup> the number of elements K in TH and by M <sup>d</sup> the number of subcell elements in each element K that are used for the practical construction of the basis functions. There are thus pMN q <sup>d</sup> elements in the fine grid. Assume that we have P available processors with similar computing load. We then see that: (i) the required computing memory on each processor for traditional FEM is of the order of pMN q <sup>d</sup> {P ; (ii) assuming that P ě N <sup>d</sup> (i.e. that we have more processors than coarse elements in TH), the required computing memory on each processor for MsFEM is of the order of M <sup>d</sup> ` N <sup>d</sup> {P . The MsFEM approach therefore systematically brings a saving factor in terms of memory. For a comparison on the computational cost, let us consider a single processor (P “ 1) and let us assume that the cost to solve a linear system with N unknowns on this processor scales as N <sup>α</sup> for some α ą 1 (the value of α depends on the solver used). The CPU cost is thus of the order of pMN q <sup>dα</sup> for the FE approach and of the order of N <sup>dα</sup> ` kN <sup>d</sup> M <sup>dα</sup> for the MsFEM approach, where k is the number of local problems of the form (7) to solve (i.e. the number of nodes) on each element K. The MsFEM approach thus brings a saving factor in terms of computational cost as well. Remark 3.2. It is common in practice to perform multiple runs for the same medium, with different boundary conditions or loadings f in (1). Since the local problems (7) are independent of these, the offline stage in MsFEM is done only once in such a multi-query context. Denoting by nR the number of runs, the CPU cost becomes of the order of nRpMN q <sup>dα</sup> for FEM and nRN <sup>dα</sup> ` kN <sup>d</sup> M <sup>dα</sup> for MsFEM. The MsFEM approach is even more attractive in terms of computational costs in such a multi-query context. The philosophy of MsFEM, in which the fine-scale equations are solved inside coarser elements and are thus totally decoupled, is closely related to that of the VMS method [8] and the GFEM method [3]. However, they differ on several points, in particular in the definition of the local fine-scale problems (computational domain, boundary conditions): - The basic idea in VMS is to introduce an additive decomposition of the solution into coarse and fine scale contributions, under the form u <sup>ε</sup> “ u ` u <sup>f</sup> . It corresponds to the decomposition of the functional space V in the direct sum V “ V ‘ V <sup>f</sup>, where V is a coarse-scale space and V <sup>f</sup> is an infinite dimensional fine-scale space. This decomposition 8 leads to two coupled (coarse/fine) problems. The part u <sup>f</sup>, solution to the fine-scale problem involving the coarse-scale residual, is searched analytically using Green’s functions (or element-wise approximations of these Green’s functions; bubble functions are often used in practice). It is then eliminated from the coarse-scale problem. This leads to a modified coarse-scale equation, which takes the effects of the fine scales into account, and where the only unknown is u. This coarse-scale contribution u is then numerically approximated using a finite-dimensional space V H . In the adaptive VMS proposed in [31], fine-scale equations are decoupled by a partition of unity (defined from the coarse mesh TH) and solved on vertex patches with homogeneous Dirichlet boundary conditions. - In GFEM, some so-called handbook functions are constructed as fine-scale numerical solutions to local boundary value problems posed in vertex patches, and complemented with Neumann boundary conditions. These functions are then introduced, by means of a partition of unity defined from the coarse mesh TH, in order to locally enrich the classical FEM basis relating to the topology of the material structure or the physical domain. 3.2 Conforming MsFEM approximation The boundary conditions associated to (7) in the construction of basis functions are of critical importance, since they determine the behavior of the numerical approximation u <sup>ε</sup> H <sup>on</sup> <sup>the</sup> edges YKPTH BK of the mesh and how this behavior may be different from that of the exact solution u <sup>ε</sup> . It has been observed that the choice of boundary conditions in (7) can significantly affect the accuracy of the MsFEM approach (see e.g. [5, 15]). A first choice, leading to a conforming numerical discretization, is to impose a linear evolution of φ <sup>ε</sup> i <sup>along</sup> <sup>BK</sup> <sup>as</sup> <sup>for</sup> <sup>classical</sup> <sup>first-order</sup> <sup>FE</sup> <sup>basis</sup> <sup>functions.</sup> <sup>We</sup> <sup>thus</sup> <sup>introduce</sup> evolution of φ <sup>ε</sup> i <sup>along</sup> <sup>BK</sup> <sup>as</sup> <sup>for</sup> <sup>classical</sup> <sup>first-order</sup> <sup>FE</sup> <sup>basis</sup> <sup>functions.</sup> <sup>We</sup> <sup>thus</sup> <sup>introduce</sup> the piecewise affine FE basis functions φ <sup>0</sup> i <sup>over</sup> <sup>the</sup> <sup>coarse</sup> <sup>mesh</sup> <sup>TH,</sup> <sup>1</sup> <sup>ď</sup> <sup>i</sup> <sup>ď</sup> <sup>I,</sup> <sup>recall</sup> <sup>that</sup> the piecewise affine FE basis functions φ <sup>0</sup> i <sup>over</sup> <sup>the</sup> <sup>coarse</sup> <sup>mesh</sup> <sup>TH,</sup> <sup>1</sup> <sup>ď</sup> <sup>i</sup> <sup>ď</sup> <sup>I,</sup> <sup>recall</sup> <sup>that</sup> VH <sup>0</sup> <sup>“ Spantφ</sup> i <sup>0,</sup> <sup>1 ď i ď Iu</sup> <sup>(where</sup> <sup>V</sup> H <sup>0</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> <sup>(5)),</sup> <sup>and</sup> <sup>consider</sup> <sup>the</sup> <sup>local</sup> <sup>problems</sup> i <sup>0,</sup> <sup>1 ď i ď Iu</sup> <sup>(where</sup> <sup>V</sup> H <sup>0</sup> H <sup>0</sup> <sup>“ Spantφ</sup> i <sup>0</sup> “ <sup>ε</sup> i H <sup>0</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> <sup>(5)),</sup> <sup>and</sup> <sup>consider</sup> <sup>the</sup> <sup>local</sup> <sup>problems</sup> <sup>0</sup> i <sup>.</sup> ‰ “ 0 in K, φ <sup>ε</sup> i <sup>ε</sup> i i <sup>“ φ0</sup> i (9) <sup>0</sup> on BK. ∇ ¨ A <sup>ε</sup> ∇φ <sup>ε</sup> i A <sup>ε</sup> ∇φ <sup>ε</sup> i Note that the support of φ <sup>ε</sup> i <sup>ε</sup> i <sup>is</sup> <sup>identical</sup> <sup>to</sup> <sup>that</sup> <sup>of</sup> <sup>φ0</sup> i Remark 3.3. Another choice of Dirichlet boundary conditions on BK, still leading to a conforming approach, consists in setting φ <sup>ε</sup> i <sup>“ λ</sup> i <sup>ε</sup> <sup>on</sup> <sup>BK,</sup> <sup>where</sup> <sup>λ</sup> i <sup>ε</sup> <sup>is a rapidly oscillating function</sup> forming approach, consists in setting φ <sup>ε</sup> i <sup>“ λ</sup> i <sup>ε</sup> <sup>on</sup> <sup>BK,</sup> <sup>where</sup> <sup>λ</sup> i <sup>ε</sup> <sup>is a rapidly oscillating function</sup> solution to a reduced elliptic problem on each edge of BK (see [6]). This reduced problem is A <sup>ε</sup> ∇φ <sup>ε</sup> i obtained from ∇ ¨ “ 0 by deleting terms with partial derivatives in the direction “ ‰ “ <sup>ε</sup> i <sup>“ λ</sup> i <sup>ε</sup> i <sup>ε</sup> <sup>on</sup> <sup>BK,</sup> <sup>where</sup> <sup>λ</sup> i <sup>ε</sup> A <sup>ε</sup> ∇φ <sup>ε</sup> i A <sup>ε</sup> ∇φ <sup>ε</sup> i obtained from ∇ ¨ “ 0 by deleting terms with partial derivatives in the direction normal to BK. “ ‰ It is straightforward to show that the multiscale basis functions φ <sup>ε</sup> i <sup>defined</sup> <sup>by</sup> <sup>(9)</sup> <sup>verify</sup> <sup>a</sup> partition of unity property. Indeed, from (9), we get for any element K P TH that i ‰ It is straightforward to show that the multiscale basis functions φ <sup>ε</sup> i i ¸ff i ˜ÿ φ <sup>ε</sup> i φ <sup>ε</sup> i “ 0 in K, i ÿ φ <sup>ε</sup> i <sup>“ 1</sup> on BK, ∇ ¨ « A <sup>ε</sup> ∇ where the sum on i runs either on 1 ď i ď I, or on the vertices of K. This implies that i ÿ φ <sup>ε</sup> i <sup>“ 1</sup> in K. (10) 9 i This property will be used in Section 4.2.2 to derive the a posteriori error estimate. In the regime of interest H ě ε, and assuming that the oscillations in the material behavior are periodic, that is that A <sup>ε</sup> pxq “ Aperpx{εq for a fixed periodic tensor Aper, the following a priori error estimate is shown in [6]: ¯ }u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>}1</sup> <sup>ď C</sup> ´ H ` a ε{H ` <sup>?</sup> ε , (11) where C is a positive constant independent of ε and H (note that some technical regularity assumptions are required on Aper and on the homogenized solution for (11) to hold). The estimate (11) shows that the MsFEM approach converges to the correct solution in the homogenization limit (namely when first ε Ñ 0 and next H Ñ 0, which is the regime of interest). The ratio ε{H reflects the so-called resonance error, which occurs when H « ε. In practice, this is often the leading error term. The key to derive (11) is to use the periodic homogenization theory (recalled in Section 2.2), i <sup>in terms</sup> which provides (when ε ! 1) a detailed description of u <sup>ε</sup> and of the basis functions φ <sup>ε</sup> of a two-scale expansion. The basis functions being constructed using the same tensor A <sup>ε</sup> as i <sup>in terms</sup> which provides (when ε ! 1) a detailed description of u <sup>ε</sup> and of the basis functions φ <sup>ε</sup> of a two-scale expansion. The basis functions being constructed using the same tensor A <sup>ε</sup> as that of the problem of interest, this implies that all the φ <sup>ε</sup> i <sup>have the same asymptotic structure</sup> that of the problem of interest, this implies that all the φ <sup>ε</sup> i <sup>have the same asymptotic structure</sup> as u <sup>ε</sup>, which eventually allows for a small error between u <sup>ε</sup> H <sup>and</sup> <sup>uε.</sup> <sup>The</sup> <sup>term</sup> <sup>proportional</sup> as u <sup>ε</sup>, which eventually allows for a small error between u <sup>ε</sup> H <sup>and</sup> <sup>uε.</sup> <sup>The</sup> <sup>term</sup> <sup>proportional</sup> to aε{H (resp. <sup>?</sup> ε) in the estimate is due to the first-order correction term in the two-scale a to ε{H (resp. <sup>?</sup> ε) in the estimate is due to the first-order correction term in the two-scale expansion of the basis functions φ <sup>ε</sup> i <sup>(resp.</sup> <sup>of</sup> <sup>uε),</sup> <sup>whereas</sup> <sup>the</sup> <sup>term</sup> <sup>proportional</sup> <sup>to</sup> <sup>H</sup> <sup>comes</sup> a expansion of the basis functions φ <sup>ε</sup> i <sup>(resp.</sup> <sup>of</sup> <sup>uε),</sup> <sup>whereas</sup> <sup>the</sup> <sup>term</sup> <sup>proportional</sup> <sup>to</sup> <sup>H</sup> <sup>comes</sup> from the classical a priori error estimate on the approximation of the homogenized solution u <sup>0</sup> by the piecewise affine basis functions φ <sup>0</sup> i <sup>.</sup> <sup>0</sup> i <sup>.</sup> 3.3 Nonconforming MsFEM approximation: the oversampling technique The limited accuracy of the MsFEM approach presented in Section 3.2 is due to a mismatch on the boundary conditions imposed in (9). Indeed, in the vicinity of BK, u <sup>ε</sup> oscillates (as it does everywhere in Ω), whereas the basis functions φ <sup>ε</sup> i <sup>(and thus u</sup> H <sup>ε</sup> <sup>) do not, as a consequence of the</sup> everywhere in Ω), whereas the basis functions φ <sup>ε</sup> i <sup>(and thus u</sup> H <sup>ε</sup> <sup>) do not, as a consequence of the</sup> non-oscillatory boundary conditions φ <sup>ε</sup> i <sup>“ φ</sup> i <sup>0</sup> <sup>on</sup> <sup>BK.</sup> <sup>More</sup> <sup>precisely,</sup> <sup>there</sup> <sup>exists</sup> <sup>a</sup> <sup>boundary</sup> <sup>ε</sup> i <sup>“ φ</sup> i <sup>0</sup> <sup>ε</sup> i <sup>(and thus u</sup> H <sup>ε</sup> non-oscillatory boundary conditions φ <sup>ε</sup> i <sup>“ φ</sup> i <sup>0</sup> <sup>on</sup> <sup>BK.</sup> <sup>More</sup> <sup>precisely,</sup> <sup>there</sup> <sup>exists</sup> <sup>a</sup> <sup>boundary</sup> layer around BK on which the small scale information (encoded in A <sup>ε</sup> ) is not properly present in φ <sup>ε</sup> i <sup>,</sup> <sup>since</sup> <sup>this</sup> <sup>information</sup> <sup>is</sup> <sup>overshadowed</sup> <sup>by</sup> <sup>the</sup> <sup>incorrect</sup> <sup>boundary</sup> <sup>conditions.</sup> in φ <sup>ε</sup> i <sup>,</sup> <sup>since</sup> <sup>this</sup> <sup>information</sup> <sup>is</sup> <sup>overshadowed</sup> <sup>by</sup> <sup>the</sup> <sup>incorrect</sup> <sup>boundary</sup> <sup>conditions.</sup> Since the boundary layer is thin, a possible strategy is to impose (incorrect) Dirichlet boundary conditions not on BK, but further away, on the boundary of a domain SK which is slightly larger than K, and to only use the interior information, on K, to construct the basis functions (see Figure 2). This is the well-known oversampling technique. Any reasonable boundary conditions can be imposed on the boundary BSK of the sampling domains SK. In practice (and this is our choice here), affine Dirichlet boundary conditions are often used. The approach thus consists in first solving the local problems ‰ in SK, ψi <sup>ε</sup> “ 0 i <sup>ε</sup> ψ <sup>ε</sup> is affine on BSK, i i <sup>εpsjq “ δij,</sup> (12) ∇ ¨ “ A <sup>ε</sup> ∇ψi <sup>ε</sup> where SK is a domain which is homothetic to the mesh element K and sj are the coordinates of the vertices of SK. Second, the MsFEM basis functions are defined by φ <sup>ε</sup> i <sup>ε</sup> i| i <sup>“ ψε</sup> i|K in K. (13) <sup>ε</sup> This approach is more costly than the one presented in Section 3.2 since the local problems are set on larger domains. 10 SK Figure 2: Illustration of the oversampling technique: a domain SK, which is slightly larger than K, is introduced to solve the local fine scale problems. Note that a unique basis function φ <sup>ε</sup> i Note that a unique basis function φ <sup>ε</sup> i <sup>is associated to each</sup> <sup>mesh node i.</sup> <sup>However,</sup> <sup>the basis</sup> function φ <sup>ε</sup> i <sup>may</sup> <sup>be</sup> <sup>discontinuous</sup> <sup>on</sup> <sup>the</sup> <sup>element</sup> <sup>boundaries,</sup> <sup>i.e.</sup> <sup>across</sup> <sup>BK.</sup> <sup>This</sup> <sup>makes</sup> <sup>the</sup> function φ <sup>ε</sup> i <sup>may</sup> <sup>be</sup> <sup>discontinuous</sup> <sup>on</sup> <sup>the</sup> <sup>element</sup> <sup>boundaries,</sup> <sup>i.e.</sup> <sup>across</sup> <sup>BK.</sup> <sup>This</sup> <sup>makes</sup> <sup>the</sup> analysis of the oversampling method somewhat more technical. It is interesting and important to notice that, here again, the multiscale basis functions φ <sup>ε</sup> i <sup>verify a partition of unity property.</sup> to notice that, here again, the multiscale basis functions φ <sup>ε</sup> i <sup>verify a partition of unity property.</sup> Indeed, from (12), we get that i ˜ÿ ¸ff “ 0 in SK, i ÿ ψi <sup>ε</sup> <sup>“ 1</sup> on BSK, ∇ ¨ A <sup>ε</sup> ∇ « ψi <sup>ε</sup> ψi <sup>ε</sup> which implies that i ÿ i ψi <sup>ε</sup> <sup>“ 1</sup> <sup>on</sup> <sup>SK</sup> <sup>and</sup> <sup>thus,</sup> <sup>in</sup> <sup>view</sup> <sup>of</sup> <sup>(13),</sup> <sup>the</sup> <sup>property</sup> <sup>(10).</sup> <sup>Again,</sup> <sup>this</sup> property will be used in Section 4.2.3 below to derive the a posteriori error estimate. Remark 3.4. Rather than using (13), it is also possible to reconstruct φ <sup>ε</sup> i Remark 3.4. Rather than using (13), it is also possible to reconstruct φ <sup>ε</sup> i <sup>on</sup> <sup>K</sup> <sup>as</sup> <sup>a</sup> <sup>linear</sup> combination of the functions ψj <sup>ε</sup> <sup>by</sup> <sup>setting</sup> j <sup>ε</sup> <sup>by</sup> <sup>setting</sup> φ <sup>ε</sup> i <sup>“</sup> j ÿ cij ψj <sup>ε</sup> in K, where cij are constants (independent of ε) determined by the condition j ÿ j cij ψj <sup>0pxkq</sup> <sup>“</sup> <sup>δik,</sup> where xk are the coordinates of vertices of K and ψj <sup>0</sup> where xk are the coordinates of vertices of K and ψj <sup>0</sup> <sup>are</sup> <sup>affine</sup> <sup>functions</sup> <sup>on</sup> <sup>SK</sup> <sup>such</sup> <sup>that</sup> ψj <sup>0pskq “ δjk.</sup> <sup>We</sup> <sup>note</sup> <sup>that</sup> <sup>cij</sup> <sup>“</sup> ij <sup>where</sup> <sup>the</sup> <sup>matrix</sup> <sup>G</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> <sup>pGqij</sup> <sup>“ ψ</sup> i <sup>0pxjq.</sup> In this case, the multiscale basis functions`G <sup>´1˘</sup> φ <sup>ε</sup> i <sup>still verify the partition of unity property</sup> <sup>(10).</sup> Indeed, we note that φ <sup>0</sup> i <sup>“</sup> cij ψj <sup>0</sup> <sup>in</sup> <sup>K</sup> <sup>(both</sup> <sup>quantities</sup> <sup>are</sup> <sup>affine</sup> <sup>functions</sup> <sup>and</sup> <sup>they</sup> <sup>are</sup> ÿ j <sup>0</sup> <sup>in</sup> <sup>K</sup> <sup>(both</sup> <sup>quantities</sup> <sup>are</sup> <sup>affine</sup> <sup>functions</sup> <sup>and</sup> <sup>they</sup> <sup>are</sup> j <sup>0pskq “ δjk.</sup> <sup>We</sup> <sup>note</sup> <sup>that</sup> <sup>cij</sup> <sup>“</sup> In this case, <sup>skq “ δjk.</sup> <sup>We</sup> <sup>note</sup> <sup>that</sup> <sup>cij</sup> <sup>“</sup> ij <sup>where</sup> <sup>the</sup> <sup>matrix</sup> <sup>G</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> <sup>pGqij</sup> <sup>“ ψ</sup> i <sup>0pxjq.</sup> In this case, the multiscale basis functions`G <sup>´1˘</sup> φ <sup>ε</sup> i <sup>still verify the partition of unity property</sup> <sup>(10)</sup> ` G <sup>´1˘</sup> ij <sup>where</sup> <sup>the</sup> <sup>matrix</sup> <sup>G</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> <sup>pGqij</sup> <sup>“ ψ</sup> i <sup>0</sup> φ <sup>ε</sup> <sup>0</sup> i <sup>“</sup> j ÿ j cij ψj <sup>0</sup> equal on the vertices of K). We deduce that ¸ i ˜ÿ 1 “ i ÿ i ˜ÿ φ <sup>0</sup> i <sup>“</sup> j ÿ j ÿ cij cij ψj <sup>0</sup> <sup>in</sup> <sup>K</sup> ùñ ψj <sup>0</sup> ¸ ψj <sup>0</sup> <sup>“ 1</sup> <sup>in</sup> <sup>SK.</sup> By evaluation at the vertices of SK, we deduce that, for any j, we have i ÿ cij “ 1. This j ÿ ψj <sup>ε</sup> <sup>“ 1</sup> <sup>in</sup> <sup>K.</sup> ψ <sup>ε</sup> eventually implies that i ÿ φ <sup>ε</sup> i <sup>“</sup> 11 Once the multiscale basis functions φ <sup>ε</sup> i Once the multiscale basis functions φ <sup>ε</sup> i <sup>have</sup> <sup>been</sup> <sup>computed,</sup> <sup>a</sup> <sup>Galerkin</sup> <sup>approximation</sup> of (3) on the finite dimensional space VH <sup>ε</sup> <sup>“ Spantφ</sup> i <sup>ε,</sup> <sup>1 ď i ď Iu</sup> <sup>is</sup> <sup>performed.</sup> <sup>Note</sup> <sup>however</sup> H <sup>ε</sup> <sup>“ Spantφ</sup> i <sup>ε</sup> ofthat(3)VHon <sup>ε</sup> <sup>Ć</sup> the <sup>H1</sup> finite <sup>pΩq.</sup> <sup>The</sup> dimensional <sup>global</sup> <sup>problem</sup> space VH <sup>isε</sup> <sup>then“ Spandefinedtφ</sup> i <sup>ε,</sup> <sup>1as ď i ď Iu</sup> <sup>is</sup> <sup>performed.</sup> <sup>Note</sup> <sup>however</sup> H <sup>ε</sup> <sup>Ć H1pΩq.</sup> <sup>The</sup> <sup>global</sup> <sup>problem</sup> <sup>is</sup> <sup>then</sup> <sup>defined</sup> <sup>as</sup> Find u <sup>ε</sup> <sup>ε</sup> H <sup>P V</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>such</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P V</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>,</sup> BH <sup>ε</sup> H <sup>ε</sup> <sup>puε</sup> H <sup>ε</sup> H <sup>, vq “ F</sup> <sup>pvq,</sup> (14) with Ω K BH <sup>ε</sup> <sup>pu, vq “</sup> KPTH ˆ rA <sup>ε</sup> ∇us ¨ ∇v “ rA <sup>ε</sup> ∇Hus ¨ ∇Hv, (15) ˆ PT ÿ where we have set ∇Hu “ KPTH KPT ÿ 1K ∇u|K and likewise for v. In [25], an a priori error estimate is derived for the oversampling variant of the MsFEM approach. It is based on general results (see [47, 48]) for non-conforming approximations. In the case H " ε and in the periodic setting, assuming that the distance between K and BSK is of order H, the estimate reads ?ε, (16) }u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>}H,1</sup> <sup>ď C1H</sup> <sup>` C2</sup> }u <sup>ε</sup> ´ u <sup>ε</sup> H ε H <sup>` C3</sup> where C1, C2 and C3 are independent of ε and H, and C2 depends on the oversampling ratio. Since the approach is non-conforming, the error is measured in the broken H <sup>1</sup> -norm a ¸1{2 } ¨ }H,1 “ KPT ˜ ÿ KPTH . H <sup>1</sup> pKq } ¨ } <sup>2</sup> H } ¨ } <sup>2</sup> The estimate (16) is better than the one without oversampling (namely (11)), since the leading order term ε{H (due to boundary effects on YKPTH BK) is now replaced by the term leading order term ε{H (due to boundary effects on YKPTH BK) is now replaced by the term ε{H. However, a resonancea effect still exists (cell resonance error), caused by the mismatch between the mesh size and the perfect sample size. It appears as a higher order correction in the error expansion. The oversampling technique by itself does not remove the cell resonance error. It is claimed in [26] that this error can be completely eliminated using a Petrov-Galerkin formulation. In this formulation, which may simplify implementation aspects, non-conforming multiscale basis functions are used for trial functions alone, while conforming linear functions are considered for test functions. In other words, denoting VH <sup>ε</sup> <sup>“</sup> <sup>Spantφ</sup> i <sup>ε,</sup> <sup>1</sup> <sup>ď</sup> <sup>i</sup> <sup>ď</sup> <sup>Iu</sup> <sup>the</sup> <sup>non-conforming</sup> formulationH <sup>ε</sup> <sup>“</sup> <sup>Spantφ</sup> i <sup>ε</sup> MsFEMfor test functions.space, the InPetrov-Galerkinother words, denotingMsFEM VformulationH <sup>ε</sup> <sup>“</sup> <sup>Spantφ</sup> reads:i <sup>ε,</sup> <sup>1</sup> <sup>ď</sup> <sup>i</sup> <sup>ď</sup> <sup>Iu</sup> <sup>the</sup> <sup>non-conforming</sup> Find u <sup>ε</sup> <sup>ε</sup> H <sup>P V</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>such</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P V</sup> H <sup>0</sup> H <sup>0</sup> <sup>,</sup> BH <sup>ε</sup> <sup>ε</sup> H <sup>, vq “ F</sup> <sup>pvq.</sup> (17) H <sup>ε</sup> <sup>puε</sup> H Remark 3.5. Another oversampling-like approach is introduced in [49], somewhat in the spirit of Section 5.1 below. It is claimed in that work that this approach is free from any resonance effect. 3.4 Construction of higher-order MsFEM basis functions Originally, MsFEM was proposed for linear elements, i.e. linear coarse-scale FE shape functions φ <sup>0</sup> i <sup>.</sup> <sup>For</sup> <sup>many</sup> <sup>applications,</sup> <sup>high-order</sup> <sup>elements</sup> <sup>are</sup> <sup>known</sup> <sup>to</sup> <sup>be</sup> <sup>advantageous</sup> <sup>in</sup> <sup>terms</sup> of accuracy and efficiency. In that spirit, the construction of higher-order oscillating MsFEM basis functions was performed in [27] using a Taylor expansion and with the introduction of 12 a composition rule (change of variables with the use of local Kozlov harmonic coordinates), allowing for a simple treatment of high-order MsFEM. For each element K of the coarse mesh TH, the functions wj <sup>ε,K</sup> (j “ 1, . . ., d) are defined as the solutions to j <sup>ε</sup> <sup>P</sup> <sup>H1pΩq</sup> <sup>are</sup> <sup>next</sup> <sup>defined</sup> <sup>by</sup> <sup>w</sup> j <sup>ε</sup> j j <sup>ε</sup> |K <sup>“</sup> <sup>wε,K</sup> ‰ wj <sup>ε,K</sup> (18) “ 0 in K, “ x ¨ ej “ xj on BK. ∇ ¨ “ A <sup>ε</sup> ∇wj <sup>ε,K</sup> Conforming functions wj <sup>ε</sup> Conforming functions w <sup>ε</sup> j on each K. We denote j <sup>P</sup> <sup>H1pΩq</sup> <sup>are</sup> <sup>next</sup> <sup>defined</sup> <sup>by</sup> <sup>w</sup> j <sup>ε</sup> |K <sup>“</sup> <sup>wε,K</sup> w <sup>ε</sup> “ pw1 <sup>ε, . . ., w</sup> d <sup>εqT .</sup> Introducing the set tφ <sup>0</sup> i <sup>u</sup> <sup>of</sup> <sup>the</sup> <sup>Pk</sup> <sup>Lagrange</sup> <sup>FE</sup> <sup>basis</sup> <sup>functions,</sup> <sup>the</sup> <sup>local</sup> <sup>higher-order</sup> MsFEM basis tφ <sup>ε</sup> i <sup>u</sup> <sup>is</sup> <sup>constructed</sup> <sup>as</sup> 1 <sup>ε, . . ., w</sup> d <sup>εqT .</sup> Introducing the set tφ <sup>0</sup> i <sup>ε</sup> i <sup>u</sup> <sup>is</sup> <sup>constructed</sup> <sup>as</sup> φ <sup>ε</sup> i i <sup>0</sup> |K <sup>˝ wε,K</sup> on each K. (19) <sup>ε</sup> i|K <sup>“ φ</sup> i <sup>0</sup> | Since w <sup>ε,K</sup> pxq “ x on BK, we have φ <sup>ε</sup> i <sup>ε</sup> i|K <sup>pxq</sup> <sup>“</sup> <sup>φ0</sup> i| Since w <sup>ε,K</sup> pxq “ x on BK, we have φ <sup>ε</sup> i|K <sup>pxq</sup> <sup>“</sup> <sup>φ0</sup> i|K <sup>pxq</sup> <sup>on</sup> <sup>BK.</sup> <sup>Consequently,</sup> <sup>a</sup> <sup>conforming</sup> higher-order MsFEM with space VH <sup>ε</sup> <sup>Ă</sup> <sup>H</sup> 0 <sup>1</sup>,ΓD <sup>pΩq</sup> <sup>is</sup> <sup>obtained.</sup> <sup>The</sup> <sup>Galerkin</sup> <sup>approximation</sup> H <sup>ε</sup> <sup>Ă</sup> <sup>H</sup> 0 <sup>1</sup> <sup>uε</sup> <sup>00</sup> H. <sup>˝ wε</sup> <sup>P V</sup> H <sup>ε</sup> higher-order MsFEM with space VH <sup>ε</sup> <sup>Ă</sup> <sup>H</sup> 0 <sup>1</sup>,ΓD <sup>pΩq</sup> <sup>is</sup> <sup>obtained.</sup> <sup>The</sup> <sup>Galerkin</sup> <sup>approximation</sup> of (3) on VH <sup>ε</sup> <sup>yields</sup> <sup>an</sup> <sup>approximation</sup> <sup>uε</sup> H <sup>“ u0</sup> H <sup>˝ wε</sup> <sup>P V</sup> H <sup>ε</sup> <sup>of</sup> <sup>uε,</sup> <sup>and</sup> <sup>u0</sup> H <sup>is</sup> <sup>expected</sup> <sup>to</sup> <sup>be</sup> <sup>an</sup> H <sup>ε</sup> <sup>yields</sup> <sup>an</sup> <sup>approximation</sup> <sup>uε</sup> <sup>ε</sup> H <sup>“ u</sup> u <sup>00</sup> H. H <sup>of</sup> <sup>uε,</sup> <sup>and</sup> <sup>u0</sup> H <sup>ε</sup> approximationof (3) on VH <sup>ε</sup> <sup>yields</sup> of the <sup>an</sup> homogenized <sup>approximation</sup> solution <sup>uε</sup> H <sup>“ u</sup> u <sup>00</sup> H. <sup>˝ wε</sup> <sup>P V</sup> H <sup>ε</sup> <sup>of</sup> <sup>uε,</sup> <sup>and</sup> <sup>u0</sup> H <sup>is</sup> <sup>expected</sup> <sup>to</sup> <sup>be</sup> <sup>an</sup> This high-order approach is easy to implement since the computation of the oscillating functions wj <sup>ε</sup> <sup>is</sup> <sup>independent</sup> <sup>of</sup> <sup>the</sup> <sup>order</sup> <sup>k</sup> <sup>of</sup> <sup>the</sup> <sup>coarse</sup> <sup>mesh</sup> <sup>basis.</sup> In the case of a periodically oscillating coefficient A <sup>ε</sup> “ Aperp¨{εq, a priori error estimates are available for this higher-order MsFEM variant. Under some regularity assumptions on Aper and on the homogenized solution, it is shown in [27] that there exists a constant C independent of ε and H such that This high-order approach is easy to implement since the computation of the oscillating functions wj <sup>ε</sup> <sup>is</sup> <sup>independent</sup> <sup>of</sup> <sup>the</sup> <sup>order</sup> <sup>k</sup> <sup>of</sup> <sup>the</sup> <sup>coarse</sup> <sup>mesh</sup> <sup>basis.</sup> ¯ }u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>}1</sup> <sup>ď C</sup> ´ H <sup>k</sup> ` a ε{H ` <sup>?</sup> ε . Remark 3.6. When using P1 Lagrange FE basis functions, we recover the classical MsFEM given in [5] and presented in Section 3.2. Indeed, when φ <sup>0</sup> given in [5] and presented in Section 3.2. Indeed, when φ <sup>0</sup> i|K <sup>P P1pKq,</sup> <sup>we</sup> <sup>infer</sup> <sup>from</sup> <sup>(19)</sup> <sup>that</sup> oscillating basis functions can be written (using that x ÞÑ φi <sup>0</sup> |K <sup>pxq</sup> <sup>is</sup> <sup>affine)</sup> <sup>as</sup> i <sup>0</sup> |K <sup>pxq</sup> <sup>is</sup> <sup>affine)</sup> <sup>as</sup> i|K ¯ BBφx <sup>0</sup> j pxq. φ <sup>ε</sup> i| <sup>0</sup> i|K <sup>pxq `</sup> <sup>ε</sup> i|K <sup>pxq “ φ0</sup> i| j“1 ÿd j“1 ÿd ´ wj <sup>ε,K</sup> pxq ´ xj wj <sup>ε,K</sup> A simple calculation shows that i|K Bφ <sup>0</sup> Bxj “ 0 in K, φ <sup>ε</sup> i <sup>ε</sup> i| i|K <sup>“ φ0</sup> ∇ ¨ rA <sup>ε</sup> ∇φ <sup>ε</sup> i|K <sup>s “</sup> ∇ ¨ rA <sup>ε</sup> ∇φ <sup>ε</sup> i j“1 ÿd j ∇ ¨ rA <sup>ε</sup> ∇w <sup>ε,K</sup> s i|K <sup>0</sup> on BK, and we thus recover (9). Remark 3.7. The domain of definition of wj <sup>ε,K</sup> Remark 3.7. The domain of definition of wj <sup>ε,K</sup> is the element K. However, it is possible to define it on a larger domain SK Ą K, and to only use its restriction on K (oversampling technique). In that case, the support of φ <sup>ε</sup> i <sup>may</sup> <sup>be</sup> <sup>different</sup> <sup>from</sup> <sup>that</sup> <sup>of</sup> <sup>coarse-scale</sup> <sup>Lagrange</sup> technique). In that case, the support of φ <sup>ε</sup> i <sup>may</sup> <sup>be</sup> <sup>different</sup> <sup>from</sup> <sup>that</sup> <sup>of</sup> <sup>coarse-scale</sup> <sup>Lagrange</sup> FE basis functions, and its nodal values may also be different. 13 Remark 3.8. Inspired by the framework proposed in [27], a more explicit multiscale FE space was constructed for high-order MsFEM in [28]. It does not use a composition rule any more. SK Ą K. These local problems are again solved using a high-order FEM. The multiscale FE Local oscillating functionsbasis functions are then definedwr <sup>ε</sup> are defined as the solutions to a variant ofby (18) posed in a domain φ <sup>ε</sup> i <sup>0</sup> i <sup>pxq ` pw r</sup> <sup>εpxq ´ xq ¨ ∇φ</sup> i <sup>0</sup> <sup>higher-order</sup> <sup>functions.</sup> <sup>ε</sup> i <sup>pxq “ φ0</sup> i <sup>pxq,</sup> where both φ <sup>0</sup> i <sup>pxq ` pw r</sup> <sup>εpxq ´ xq ¨ ∇φ0</sup> rH <sup>1</sup> pΩqs <sup>d</sup> in general. We note ithat, <sup>P</sup> <sup>H1</sup> due <sup>pΩq</sup> to <sup>and</sup> the <sup>wr</sup> <sup>ε</sup> use <sup>are</sup> of <sup>higher-order</sup> oversampling, <sup>functions.</sup> the MsFEM <sup>Note</sup> <sup>that</sup> approach <sup>wr</sup> <sup>ε</sup> <sup>does</sup> of <sup>not</sup> [28] <sup>belong</sup> is non- <sup>to</sup> where both φ <sup>0</sup> We note that, due to the use of oversampling, the MsFEM approach of [28] is nonconforming. The convergence result established in [28] is similar to that given in [25] for the oversampling approach described in Section 3.3. On the other hand, if oversampling is not used, results similar to those given in [27] are recovered. ### 4 A posteriori error estimation using CRE In this section, we derive a guaranteed upper bound on the error in the energy norm |||u <sup>ε</sup> ´ u <sup>ε</sup> H B <sup>ε</sup> In this section, we derive a guaranteed upper bound on the error in the energy norm |||u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>|||</sup> H stitutivewith |||¨|||HRelation“ BH <sup>ε</sup> Error <sup>p¨, ¨q,</sup> (CRE) <sup>where</sup> <sup>B</sup> conceptH <sup>ε</sup> <sup>p¨, ¨q</sup> <sup>is</sup> which <sup>defined</sup> has <sup>by</sup> been <sup>(15).</sup> used <sup>The</sup> for <sup>method</sup> decades <sup>is</sup> as <sup>based</sup> an effective <sup>on</sup> <sup>the</sup> <sup>Con-</sup> and a a H <sup>ε</sup> <sup>p¨, ¨q,</sup> <sup>where</sup> <sup>B</sup> H <sup>ε</sup> B <sup>ε</sup> stitutivewith |||¨|||HRelation“ BH <sup>ε</sup> Error <sup>p¨, ¨q,</sup> (CRE) <sup>where</sup> <sup>B</sup> conceptH <sup>ε</sup> <sup>p¨, ¨q</sup> <sup>is</sup> which <sup>defined</sup> has <sup>by</sup> been <sup>(15).</sup> used <sup>The</sup> for <sup>method</sup> decades <sup>is</sup> as <sup>based</sup> an effective <sup>on</sup> <sup>the</sup> <sup>Con-</sup> and a robust error estimation tool in FEM simulations [50, 51, 18]. Even though we consider this concept for the linear elliptic model of interest, it can be successfully extended and applied to a large class of mechanical models, both in linear (elasticity, visco-elasticity, transient thermal, . . . ) and nonlinear (visco-plasticity, contact, . . . ) contexts. A review can be found in [18]. 4.1 Basics on CRE The CRE concept is based on a dual formulation of the problem (3), that we briefly review here. We introduce the space of equilibrated fluxes W “ tp P Hpdiv, Ωq, ∇ ¨ p ` f “ 0 in Ω, p ¨ n “ g on ΓN u, with Hpdiv, Ωq :“ tp P rL <sup>2</sup> pΩqs <sup>d</sup>, admissible (SA) and verifies the following relation (weak form of the equilibrium): ∇ ¨ p P L <sup>2</sup> pΩqu. Any flux field p P W is said statically Ω ˆ @v P V, ˆ Ω ˆ ΓN g v. (20) p ¨ ∇v “ fv ` Then, for any given approximation up <sup>ε</sup> of u <sup>ε</sup> which is kinematically admissible (KA), i.e. which verifies up <sup>ε</sup> P V, and for any SA flux field p, we define the CRE functional ECRE as ` ˘2 “ ˆ ` ECRE pup <sup>ε</sup>, pq , (21) Ω F <sup>“ 2</sup> ˘2 “ ˆ pA <sup>ε</sup> q <sup>´1</sup> pp ´ A <sup>ε</sup> ∇up <sup>ε</sup> q ¨ pp ´ A <sup>ε</sup> ∇up <sup>ε</sup> q ˘ ` andJ1pupJ <sup>ε</sup> 1q `(resp. J2ppJq “ |||normp ´ Afor <sup>ε</sup> ∇fluxup <sup>ε</sup> |||F <sup>2</sup> where |||p|||F “ ˆˆ Ω pA <sup>ε</sup> q <sup>´1</sup> p ¨ p ˙1{2 is the energy norm for flux fields, and J1 (resp. J2) is the potential (resp. complementary) energy functional defined by ˆΩ pA <sup>ε</sup> q <sup>´1</sup> p ¨ p. J1pvq “ <sup>1</sup> 2 ΓN ˆ Ω ˆΩ ˆ g v, J2ppq “ <sup>1</sup> 2 A <sup>ε</sup> ∇v ¨ ∇v ´ fv ´ 14 Introduce the exact flux field q <sup>ε</sup> “ A <sup>ε</sup> ∇u <sup>ε</sup>, which is the unique minimizer of the complementary problem It is then easy to show that inf tJ2ppq, p P W u . @p P W, |||u <sup>ε</sup> ´ pu <sup>ε</sup> ||| “ ECREpup <sup>ε</sup>, q <sup>ε</sup> q ď ECREpup <sup>ε</sup>, pq, (22) so thatAnothera guaranteedversion ofupper(22) isboundthe followingon the errorPrager-Synge|||u <sup>ε</sup> ´ pu <sup>ε</sup> |||equality:is obtained from any SA flux field p. Its quality is ensured by a suitable choice of p P W . Another version of (22) is the following Prager-Synge equality: the@pfact P W,that |||u <sup>ε</sup> ´ pu <sup>ε</sup> ||| <sup>2</sup> ` |||q <sup>ε</sup> ´ p|||F <sup>2</sup> ˆ F <sup>“ E2</sup> <sup>2</sup> CRE <sup>2</sup> <sup>pupε, pq,</sup> (23) that holds due to the fact that ˆ Ω pq <sup>ε</sup> ´of ptheq ¨ ∇CREpu <sup>ε</sup> ´functional, pu <sup>ε</sup> q “ 0. Remark 4.1. An additional property of the CRE functional, directly derived from (23), reads as follows (see [18]): <sup>2</sup> CRE <sup>pupε, pq</sup> <sup>where</sup> <sup>p˚</sup> <sup>:“</sup> 2 <sup>1</sup> @p P W, 4|||q <sup>ε</sup> ´ p <sup>˚</sup> |||F <sup>2</sup> <sup>“ E2</sup> (24) 2 <sup>1</sup> <sup>pp ` Aε∇upεq.</sup> p¨ p¨ n “ g on ΓN u Ą W, the result (22) should be changed in Remark 4.2. In the case when p is not in W but in the larger space W <sup>1</sup> “ tp P Hpdiv, Ωq, is the Poincaré constant of@p P W <sup>1</sup>, |||u <sup>ε</sup> ´ p Ωu <sup>ε</sup> ||| ďand E αCRE is the ellipticity constant ofpup <sup>ε</sup>, pq ` ? <sup>CΩ</sup> α }∇ ¨ p ` f A}0 <sup>ε</sup>, (see (2)). Indeed,(25) where CΩ is the Poincaré constant of Ω and α is the ellipticity constant of A <sup>ε</sup> (see (2)). Indeed, for any flux p P Hpdiv, Ωq, we have ˆ |||u <sup>ε</sup> ´ pu <sup>ε</sup> ||| <sup>2</sup> “ “ ˆ Ω pq <sup>ε</sup> ´ A <sup>ε</sup> ∇up <sup>ε</sup> q ¨ ∇pu <sup>ε</sup> ´ pu <sup>ε</sup> q ptog ´more p ¨ ncomplexqpu <sup>ε</sup> ´ pu <sup>ε</sup> q. pf `concept ∇ ¨ pqpcanu <sup>ε</sup> ´be pu <sup>ε</sup> q ` pppointed ´ A <sup>ε</sup> ∇outup <sup>ε</sup> q ¨previously, ∇pu <sup>ε</sup> ´ pu <sup>ε</sup> theq ` ˆΓN ˆΩ “ ˆΩ Remark 4.3. As pointed out previously, the CRE concept can be extended to more complex problems (visco-plasticity, damage, contact, . . . ) using duality arguments. The CRE functional reads in the general case , ˘ Ω ` ECRE <sup>2</sup> <sup>pX, Y q “</sup> ˆ , ΦpXq ` Φ <sup>˚</sup> pY q ´ xX, Y y where Φ and Φ <sup>˚</sup> are dual convex potentials (in the Legendre-Fenchel sense) describing the material behavior, and xX, Y y is the duality bracket [18]. This CRE functional should be integrated over the time domain when considering time-dependent problems. H directly provides an upper bound on the error |||u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>|||.</sup> <sup>On</sup> non-conformingWhen using MsFEM version is used (such as the one described in Sectiona conforming MsFEM, we can choose up <sup>ε</sup> “ u <sup>ε</sup> H <sup>so</sup> <sup>that</sup> <sup>the</sup> <sup>CRE</sup> <sup>concept</sup> directly provides an upper bound on the error |||u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>|||.</sup> <sup>On</sup> <sup>the</sup> <sup>other</sup> <sup>hand,</sup> <sup>in</sup> <sup>the</sup> <sup>case</sup> <sup>a</sup> When using a conforming MsFEM, we can choose up <sup>ε</sup> “ u <sup>ε</sup> directly provides an upper bound on the error |||u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>|||.</sup> <sup>On</sup> <sup>the</sup> <sup>other</sup> <sup>hand,</sup> <sup>in</sup> <sup>the</sup> <sup>case</sup> <sup>a</sup> non-conformingWhen using MsFEM version is used (such as the one described in Sectiona conforming MsFEM, we can choose up <sup>ε</sup> “ u <sup>ε</sup> 3.3), one cannot choose up <sup>ε</sup> “ uH <sup>ε</sup> <sup>since uε</sup> H <sup>is not kinematically admissible (</sup> 15 <sup>uε</sup> H <sup>R H1pΩq).</sup> <sup>The procedure should</sup> H <sup>since uε</sup> H <sup>ε</sup> H <sup>is not kinematically admissible (uε</sup> <sup>ε</sup> H <sup>R H1pΩq).</sup> <sup>The procedure should</sup> 15 be amended as follows. The error is decomposed into its conforming and non-conforming parts: we write u <sup>ε</sup> ´ u <sup>ε</sup> where eC P V is defined by <sup>ε</sup> H <sup>“ eC</sup> <sup>` eNC</sup> <sup>,</sup> Ω H <sup>ε</sup> <sup>puε ´ uε</sup> H @v P V, B <sup>ε</sup> peC, vq “ BH <sup>ε</sup> <sup>ε</sup> H <sup>, vq “ F</sup> <sup>pvq ´</sup> ˆ rA <sup>ε</sup> ∇H u <sup>ε</sup> H <sup>s ¨ ∇v.</sup> We then check that H <sup>ε</sup> <sup>puε ´ uε</sup> H H <sup>ε</sup> <sup>peC</sup> <sup>, vq “ 0.</sup> @v P V, BH <sup>ε</sup> H <sup>ε</sup> <sup>peNC</sup> <sup>, vq “ B</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>puε ´ uε</sup> <sup>ε</sup> H <sup>´ eC</sup> <sup>, vq “ B</sup> H <sup>ε</sup> <sup>ε</sup> H <sup>, vq ´ B</sup> H <sup>ε</sup> We thus have that |||u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>2</sup> H <sup>“ |||eC</sup> <sup>` eNC</sup> <sup>|||</sup> H <sup>2</sup> <sup>ε</sup> H <sup>|||2</sup> H H H <sup>2</sup> <sup>“ |||eC|||2 ` |||eNC</sup> <sup>|||2</sup> H <sup>.</sup> (26) We have u <sup>ε</sup> ´ eC ´ eNC “ uH <sup>ε</sup> H H <sup>ε</sup> <sup>,</sup> <sup>and</sup> <sup>hence</sup> <sup>uε ´ eC</sup> <sup>is</sup> <sup>the</sup> <sup>orthogonal</sup> <sup>projection</sup> <sup>of</sup> <sup>uε</sup> minvPV <sup>|||v ´ u</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>|||</sup> H <sup>.</sup> <sup>The</sup> <sup>idea</sup> <sup>is</sup> <sup>then</sup> <sup>to</sup> <sup>approximate</sup> <sup>the</sup> H <sup>on</sup> <sup>the</sup> We have u <sup>ε</sup> ´ eC ´ eNC “ uH <sup>ε</sup> <sup>,</sup> <sup>and</sup> <sup>hence</sup> <sup>uε ´ eC</sup> <sup>is</sup> <sup>the</sup> <sup>orthogonal</sup> <sup>projection</sup> <sup>of</sup> <sup>uε</sup> conforming space V, and |||eNC |||H “ minvPV <sup>|||v ´ u</sup> H <sup>ε</sup> <sup>|||</sup> H <sup>.</sup> <sup>The</sup> <sup>idea</sup> <sup>is</sup> <sup>then</sup> <sup>to</sup> <sup>approximate</sup> <sup>the</sup> H u <sup>ε</sup> H <sup>.</sup> <sup>This</sup> <sup>is</sup> <sup>performed</sup> <sup>by</sup> <sup>a</sup> <sup>local</sup> <sup>nodal</sup> <sup>averaging</sup> <sup>on</sup> <sup>the</sup> <sup>edges</sup> <sup>Γ</sup> <sup>of</sup> <sup>TH,</sup> <sup>at</sup> <sup>each</sup> errorfine meshsplittingused(26)to computeby buildingthe multiscalea conformingbasis(kinematicallyfunctions. Consequently,admissible) functionwe get up <sup>ε</sup> H <sup>,</sup> <sup>close</sup> <sup>to</sup> u <sup>ε</sup> H <sup>.</sup> <sup>This</sup> <sup>is</sup> <sup>performed</sup> <sup>by</sup> <sup>a</sup> <sup>local</sup> <sup>nodal</sup> <sup>averaging</sup> <sup>on</sup> <sup>the</sup> <sup>edges</sup> <sup>Γ</sup> <sup>of</sup> <sup>TH,</sup> <sup>at</sup> <sup>each</sup> <sup>node</sup> <sup>of</sup> <sup>the</sup> error splitting (26) by building a conforming (kinematically admissible) function up <sup>ε</sup> u <sup>ε</sup> H <sup>.</sup> <sup>This</sup> <sup>is</sup> <sup>performed</sup> <sup>by</sup> <sup>a</sup> <sup>local</sup> <sup>nodal</sup> <sup>averaging</sup> <sup>on</sup> <sup>the</sup> <sup>edges</sup> <sup>Γ</sup> <sup>of</sup> <sup>TH,</sup> <sup>at</sup> <sup>each</sup> <sup>node</sup> <sup>of</sup> <sup>the</sup> errorfine meshsplittingused(26)to computeby buildingthe multiscalea conformingbasis(kinematicallyfunctions. Consequently,admissible) functionwe get up <sup>ε</sup> |||u <sup>ε</sup> ´ u <sup>ε</sup> <sup>non-conformingε</sup> H <sup>||| ` |||up</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>´ u</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>|||</sup> H <sup>.</sup> H Theusingapproximationthe CRE functional:|||up <sup>ε</sup> whereas the approximation H <sup>ε</sup> <sup>´ u</sup> H <sup>ε</sup> H <sup>ε</sup> H <sup>|||of</sup> H <sup>ď |||the</sup> <sup>uε ´ puε</sup> H H <sup>´ u</sup> H <sup>ε</sup> <sup>|||</sup> H <sup>of</sup> <sup>the</sup> <sup>non-conforming</sup> <sup>part</sup> <sup>of</sup> <sup>the</sup> <sup>error</sup> <sup>is</sup> <sup>computable,</sup> H <sup>|||</sup> <sup>of</sup> <sup>the</sup> <sup>conforming</sup> <sup>part</sup> <sup>of</sup> <sup>the</sup> <sup>error</sup> <sup>can</sup> <sup>be</sup> <sup>estimated</sup> Theusingapproximationthe CRE functional:|||up <sup>ε</sup> whereas the approximation |||u <sup>ε</sup> ´ pu <sup>ε</sup> H <sup>|||</sup> <sup>of</sup> <sup>the</sup> <sup>conforming</sup> <sup>part</sup> <sup>of</sup> <sup>the</sup> <sup>error</sup> <sup>can</sup> <sup>be</sup> <sup>estimated</sup> Theusingapproximationthe CRE functional:|||up <sup>ε</sup> whereas the approximation |||u <sup>ε</sup> ´ pu <sup>ε</sup> an @p P equilibrated W, |||u <sup>ε</sup> ´ pu <sup>ε</sup> H <sup>ε</sup> H flux <sup>||| ď E</sup> field <sup>CRE</sup> <sup>pupε</sup> H 4.2 Construction of an equilibrated flux field <sup>ε</sup> H <sup>, pq.</sup> that we now discuss. The technical point in the CRE concept is the construction of a relevant admissible flux p P W, 4.2.1 General procedure The most accurate strategy would consist in using a Galerkin approximation of the dual formulation of the problem, arising from the minimization (see (21) and (22)) of the complementary energy J2 (FEM with equilibrated flux basis functions, see [52]). Nevertheless, this strategy is not suited to current simulation softwares (building finite dimensional subspaces of W is challenging in practice) and requires the costly solution to an additional global problem. This may be not reasonable for error estimation purposes. We use an alternative method, referred as the Hybrid-Flux Technique, or Element Equilibration Technique (EET) in the recent literature (see [23]). This technique enables the H <sup>in</sup> <sup>the</sup> <sup>following,</sup> <sup>from</sup> <sup>a</sup> dentconstructionpost-processing ofelementaryof anproblems.the MsFEMequilibratedThisfluxfluxmethod,qfield <sup>ε</sup> H <sup>“ A</sup> whichverifying <sup>ε∇u</sup> is an extension to MsFEM ofH <sup>ε</sup> <sup>at</sup> (20), <sup>hand</sup> denoted <sup>and</sup> <sup>from</sup> qp <sup>ε</sup> <sup>the solutions</sup> the one exposed <sup>to</sup> <sup>indepen-</sup> H <sup>in</sup> <sup>the</sup> <sup>following,</sup> <sup>from</sup> <sup>a</sup> post-processing of the MsFEM flux q <sup>ε</sup> H <sup>“ Aε∇u</sup> H <sup>ε</sup> <sup>at</sup> <sup>hand</sup> <sup>and</sup> <sup>from</sup> <sup>the solutions</sup> <sup>to</sup> <sup>indepen-</sup> construction of an equilibrated flux field verifying (20), denoted qp <sup>ε</sup> field <sup>ε</sup> H <sup>“ A</sup> which <sup>ε∇u</sup> H <sup>ε</sup> dentconstructionpost-processing ofelementaryof anproblems.the MsFEMequilibratedThisfluxfluxmethod,qfield <sup>ε</sup> H <sup>“ A</sup> whichverifying <sup>ε∇u</sup> is an extension to MsFEM ofH <sup>ε</sup> <sup>at</sup> (20), <sup>hand</sup> denoted <sup>and</sup> <sup>from</sup> qp <sup>ε</sup> <sup>the solutions</sup> the one exposed <sup>to</sup> <sup>indepen-</sup> in [50, 53, 18] for FEM simulations, is made of two steps: 16 ‚ Step 1: construction of tractions pgK along the edges of each element K P TH, with gpK “ g on ΓN . These tractions should verify the equilibrium at the element level: Step 1: construction of tractions pgK along the edges of each element K P TH, gpK “ g on ΓN . These tractions@K,shouldˆ verifyf ` ˆthe equilibrium at the element level: ˆ BK @K, ˆ K pgK “ 0. (27) f ` We will see in what follows that (27) indeed holds. In order to satisfy the continuity of normal fluxes along element edges, tractions are well-defined value on Γ. After ordering the elements of the mesh TH, a possible setting definedfor ηK <sup>Γ</sup> <sup>is</sup> as <sup>the</sup> pgK <sup>following:</sup> |Γ “ ηK <sup>Γ</sup> <sup>gp|Γ</sup> <sup>over</sup> <sup>each</sup> <sup>edge</sup> <sup>Γ</sup> <sup>of</sup> <sup>BK,</sup> <sup>with</sup> <sup>η</sup> K <sup>Γ</sup> <sup>“</sup> <sup>˘1</sup> <sup>and</sup> <sup>where</sup> <sup>gp|Γ</sup> <sup>has</sup> <sup>a</sup> Γ. After ordering the elements of the K <sup>Γ</sup> <sup>gp|Γ</sup> <sup>over</sup> <sup>each</sup> <sup>edge</sup> <sup>Γ</sup> <sup>of</sup> <sup>BK,</sup> <sup>with</sup> <sup>η</sup> K <sup>Γ</sup> well-defined value on Γ. After ordering the elements of the mesh TH, a possible setting definedfor ηK <sup>Γ</sup> <sup>is</sup> as <sup>the</sup> pgK <sup>following:</sup> |Γ “ ηK <sup>Γ</sup> <sup>gp|Γ</sup> <sup>over</sup> <sup>each</sup> <sup>edge</sup> <sup>Γ</sup> <sup>of</sup> <sup>BK,</sup> <sup>with</sup> <sup>η</sup> K <sup>Γ</sup> <sup>“</sup> <sup>˘1</sup> <sup>and</sup> <sup>where</sup> <sup>gp|Γ</sup> <sup>has</sup> <sup>a</sup> K <sup>Γ</sup> <sup>is</sup> <sup>the</sup> <sup>following:</sup> ηK <sup>Γ</sup> <sup>“</sup> $ & % & % `1 if Γ “ BK X BK <sup>1</sup>, K ą K <sup>1</sup>, ´1 if Γ “ BK X BK <sup>1</sup>, K ă K <sup>1</sup>, `1 if Γ P BΩ. H|K <sup>,</sup> <sup>over</sup> <sup>each</sup> <sup>element</sup> <sup>K</sup> <sup>P TH,</sup> <sup>such</sup> <sup>that</sup> (28) ‚ Step 2: local construction´ ∇ ¨ pqH <sup>ε</sup> |Kof <sup>“</sup> qp <sup>f</sup> H <sup>ε</sup> <sup>ε</sup> H|K <sup>¨ nK</sup> <sup>“ pgK</sup> <sup>on</sup> <sup>BK,</sup> (29) ´ ∇ ¨ pqH <sup>ε</sup> H <sup>ε</sup> |Kof <sup>“</sup> qp <sup>fε</sup> <sup>in</sup> <sup>K,</sup> qp <sup>ε</sup> H Details on these two steps are given in the following sections. In Section 4.2.2, we where gpK are the tractions built in Step 1, and nK is the outgoing normal on BK. Details on these two steps are given in the following sections. In Section 4.2.2, we discuss the construction of equilibrated tractions (Step 1 of the above procedure), in the case of the conforming MsFEM approach of Section 3.2 and in the case of the Petrov-Galerkin approach (17). In Section 4.2.3, we again discuss the construction of equilibrated tractions, but now in the case of the non-conforming MsFEM approach (14) of Section 3.3. In Section 4.2.4, we discuss the construction of equilibrated fluxes (Step 2 of the above procedure). We note that the hybrid construction method we use is based on fine-scale computations (Step 2) only at the element level (and not on patches of elements, as for alternative reconstruction methods). It is therefore particularly suited to the MsFEM framework. Furthermore, we show below that it is actually possible to perform most of the computations of Step 2 in the offline phase of MsFEM, independently of the loadings f and g. 4.2.2 Computation of equilibrated tractions for conforming or Petrov-Galerkin non-conforming MsFEM formulations We assume here that the numerical solution u <sup>ε</sup> H <sup>is</sup> <sup>either</sup> <sup>provided</sup> <sup>by</sup> <sup>the</sup> <sup>conforming</sup> <sup>MsFEM</sup> approach of Section 3.2 or by the Petrov-Galerkin approach (17). q <sup>ε</sup> H <sup>is</sup> <sup>the</sup> <sup>enforcement</sup> <sup>of</sup> <sup>the</sup> <sup>so-called</sup> <sup>prolongation</sup> <sup>condition</sup> <sup>(energy</sup> <sup>condition).</sup> <sup>We</sup> <sup>require</sup> that,An arbitrary but convenient manner to derive equilibrated tractionsfor each element K and each node i connected to K, pgK by post-processing ˆK H <sup>the</sup> pqp <sup>ε</sup> H <sup>ε</sup> <sup>´ q</sup> H <sup>ε</sup> <sup>‹</sup> i <sup>“</sup> <sup>φ</sup> i <sup>ε</sup> H <sup>ε</sup> <sup>q ¨ ∇φ‹</sup> i <sup>‹</sup> i <sup>“ 0,</sup> (30) where φ <sup>‹</sup> i <sup>‹</sup> i <sup>are</sup> <sup>the</sup> <sup>test</sup> <sup>functions</sup> <sup>of</sup> <sup>the</sup> <sup>MsFEM</sup> <sup>formulation,</sup> <sup>i.e.</sup> φ <sup>‹</sup> i whereMsFEMφ <sup>‹</sup> iand <sup>are</sup> φ <sup>the‹</sup> i <sup>“ φtest0</sup> <sup>functions</sup> <sup>of</sup> <sup>the</sup> <sup>MsFEM</sup> <sup>formulation,</sup> <sup>i.e.</sup> φ <sup>‹</sup> i <sup>“</sup> <sup>φ</sup> i <sup>ε</sup> <sup>for</sup> <sup>conforming</sup> H <sup>P W</sup> <sup>,</sup> <sup>0</sup> requiring that H i <sup>for</sup> <sup>Petrov-Galerkin</sup> <sup>(possibly</sup> <sup>non-conforming)</sup> <sup>MsFEM.</sup> <sup>Since</sup> <sup>qpε</sup> <sup>‹</sup> i <sup>“</sup> to <sup>φ0</sup> i MsFEMthis is equivalentand φ <sup>‹</sup> i <sup>“</sup> to <sup>φ0</sup> requiring that H <sup>P W</sup> <sup>,</sup> i <sup>for</sup> <sup>Petrov-Galerkin</sup> <sup>(possibly</sup> <sup>non-conforming)</sup> <sup>MsFEM.</sup> <sup>Since</sup> <sup>qpε</sup> ˆ K <sup>‹</sup> i <sup>q “: Q</sup> i <sup>K</sup> 17 <sup>‹</sup> i <sup>´ fφ‹</sup> i ˆ BK gpK φi <sup>‹</sup> i <sup>“</sup> pq <sup>ε</sup> <sup>ε</sup> H <sup>¨ ∇φ‹</sup> i i <sup>K,</sup> (31) wherei <sup>φ‹</sup> i|KpgK <sup>“ 1</sup> “ qpH <sup>ε</sup> ř i H <sup>ε</sup> <sup>¨ nK</sup> <sup>on</sup> <sup>BK.</sup> <sup>Note</sup> <sup>that</sup> <sup>the</sup> <sup>quantity</sup> <sup>QK</sup> i is fully computable. Enforcing (31) naturally provides for the local equilibrium condition (27) due to the partition of unity propertyH <sup>¨ nK</sup> <sup>on</sup> <sup>BK.</sup> <sup>Note</sup> <sup>that</sup> <sup>the</sup> <sup>quantity</sup> <sup>QK</sup> wherei <sup>φ‹</sup> i|KpgK <sup>“ 1</sup> “ <sup>(see</sup> qp <sup>ε</sup> <sup>(10)).</sup> Collecting the relations (31) for all the elements connected to a given node i yields a local ř i <sup>φ‹</sup> i <sup>φ‹</sup> i|K <sup>“ 1</sup> <sup>(see</sup> <sup>(10)).</sup> Collecting the relations (31) for all the elements connected to a given node i yields a local system where the unknowns are the projections ˆ <sup>of</sup> internalgpK φ <sup>‹</sup> i <sup>φ‹</sup> i <sup>,</sup> <sup>i.e.</sup> <sup>the</sup> <sup>patch</sup> <sup>Ωi</sup> <sup>of</sup> <sup>elements</sup> <sup>‹</sup> i <sup>of</sup> vertex <sup>the</sup> <sup>tractions</sup> node i connected <sup>gpK</sup> <sup>on</sup> <sup>the</sup> to <sup>basis</sup> N function φ <sup>‹</sup> i <sup>‹</sup> i <sup>.</sup> <sup>The</sup> <sup>local</sup> <sup>system</sup> <sup>spreads</sup> <sup>over</sup> <sup>the</sup> <sup>support</sup> <sup>of</sup> <sup>φ‹</sup> i BK function φ <sup>‹</sup> i <sup>.</sup> <sup>The</sup> <sup>local</sup> <sup>system</sup> <sup>spreads</sup> <sup>over</sup> <sup>the</sup> <sup>support</sup> <sup>of</sup> <sup>φ‹</sup> i <sup>,</sup> <sup>i.e.</sup> <sup>the</sup> <sup>patch</sup> <sup>Ωi</sup> <sup>of</sup> <sup>elements</sup> connected to node i. As an example, consider an internalgpK φ <sup>‹</sup> i <sup>of</sup> vertex <sup>the</sup> <sup>tractions</sup> node i connected <sup>gpK</sup> <sup>on</sup> <sup>the</sup> to <sup>basis</sup> N elements in a 2D mesh TH made of 3-nodes triangle elements (see left side of Figure 3). Since φ <sup>‹</sup> i <sup>is</sup> <sup>continuous</sup> <sup>across</sup> <sup>Γjk</sup> <sup>“</sup> <sup>BKj</sup> <sup>X BKk</sup> <sup>for</sup> <sup>the</sup> <sup>two</sup> <sup>MsFEM</sup> <sup>formulations</sup> considered <sup>‹</sup> i|BΩi <sup>“</sup> <sup>0</sup> <sup>and</sup> in this <sup>φ</sup> i <sup>‹</sup> consideredφ <sup>‹</sup> i|BΩi <sup>“</sup> <sup>0</sup> <sup>and</sup> in this <sup>φ</sup> i <sup>‹</sup> section, <sup>is</sup> <sup>continuous</sup> the local <sup>across</sup> system <sup>Γjk</sup> reads <sup>“</sup> <sup>BKj</sup> <sup>X BKk</sup> <sup>for</sup> <sup>the</sup> <sup>two</sup> <sup>MsFEM</sup> <sup>formulations</sup> i i pb <sup>p1,2q</sup> pb <sup>p2,3q</sup> i i i i pb <sup>p1,2q</sup> ´ <sup>p</sup> b <sup>pN,1q</sup> pb <sup>p2,3q</sup> ´ <sup>p</sup> b <sup>p1,2q</sup> i i “ Q <sup>K2</sup> . . . “ . . . i i “ Q <sup>K1</sup> i, <sup>K1</sup> i, <sup>K2</sup> i, <sup>KN´1</sup> (32) i i pb <sup>pN</sup> <sup>´1,N</sup> <sup>q</sup> pb <sup>p</sup> i i i i <sup>pN</sup> <sup>´1,N</sup> <sup>q</sup> ´ <sup>p</sup> b <sup>pN</sup> <sup>´2,N</sup> <sup>´1q</sup> pb <sup>pN,1q</sup> ´ <sup>p</sup> b <sup>pN</sup> <sup>´1,N</sup> <sup>q</sup> i pb <sup>p1,2q</sup> pb <sup>p2,3q</sup> i i <sup>1,2q</sup> ´ <sup>p</sup> b <sup>pN,1q</sup> <sup>p2,3q</sup> ´ <sup>p</sup> b <sup>p1</sup> . . . <sup>,2q</sup> i i “ Q <sup>KN</sup> i i “ Q <sup>KN´1</sup> i, <sup>KN</sup> <sup>Γjk</sup> i the linear Kjside <sup>pg|Γ</sup> jkof <sup>φ‹</sup> i <sup>.</sup> <sup>There</sup> <sup>are</sup> <sup>N</sup> <sup>equations</sup> <sup>and</sup> <sup>N</sup> <sup>unknowns.</sup> <sup>The</sup> <sup>N</sup> <sup>ˆ N</sup> <sup>matrix</sup> i corresponding with <sup>p</sup> b <sup>pj,kq</sup> i <sup>,N</sup> <sup>q</sup> ´ pb <sup>pN,1q</sup> i i <sup>q</sup> ´ <sup>p</sup> b <sup>pN</sup> <sup>´2,N</sup> <sup>´1q</sup> <sup>pN,1q</sup> ´ <sup>p</sup> b <sup>pN</sup> <sup>´1,N</sup> <sup>q</sup> <sup>are</sup> <sup>N</sup> i “ ˆ Γjk η <sup>Γjk</sup> corresponding to the linear system (32) is however not invertible. Solutions to (32) yet exist since the right-hand side of (32) satisfies the appropriate compatibility condition: N j“1 ÿ N j“1 ÿ pq <sup>ε</sup> <sup>ε</sup> H <sup>¨ ∇φ‹</sup> i pq <sup>ε</sup> H <sup>ε</sup> H <sup>¨ ∇φ‹</sup> i Q <sup>K</sup> i <sup>j</sup> “ Q <sup>K</sup> i <sup>j</sup> ˆΩi ˆ <sup>‹</sup> i <sup>q “ 0,</sup> <sup>‹</sup> i <sup>q “</sup> ˆΩp ˆ <sup>‹</sup> i <sup>´ fφ‹</sup> i <sup>‹</sup> i <sup>´ fφ‹</sup> i where the last equality above follows from the fact that the MsFEM flux q <sup>ε</sup> where the last equality above follows from the fact that the MsFEM flux q <sup>ε</sup> H <sup>verifies</sup> <sup>the</sup> <sup>weak</sup> equilibrium (8) (in the case of conforming MsFEM) or (17) (in the case of Petrov-Galerkin MsFEM). Recall that we consider here for simplicity an internal vertex node, so that the term g φ <sup>‹</sup> ˆΓN i <sup>in</sup> <sup>F</sup> <sup>pφ‹</sup> i <sup>q</sup> <sup>vanishes.</sup> A unique solution to the linear system (32) may be obtained by minimizing a given cost function. In practice, the following least squares cost function is chosen: g φ <sup>‹</sup> i <sup>‹</sup> i <sup>q</sup> <sup>vanishes.</sup> ΓN <sup>‹</sup> i <sup>in</sup> <sup>F</sup> <sup>pφ‹</sup> i pj,kq i “ 2 <sup>1</sup> with b | <sup>q</sup> Γjk| <sup>2</sup> pj,kq i q ¯2 j,k, Kj and Kk neighbors ÿ ´ i pb <sup>pj,k</sup> | <sup>q</sup> i ´ b Γjk <sup>ε</sup> H|Kj <sup>` q</sup> H <sup>ε</sup> H <sup>ε</sup> |Kk <sup>q ¨ nK</sup> j <sup>.</sup> <sup>(33)</sup> ˆ φ <sup>‹</sup> i <sup>‹</sup> i <sup>pqε</sup> H Remark 4.4. The previous constrained minimization problem can essentially be analytically solved. We set N j“2 ÿ pN,1q i ıT p2,3q i, . . ., b i i <sup>p2,3q</sup>, . . ., <sup>p</sup> b <sup>pN,1q</sup> , Q <sup>K2</sup> <sup>K</sup> i <sup>2</sup> i ` Q <sup>K3</sup> ıT X “ x X 0 “ ” « i pb <sup>p1,2q</sup> 0, Q p1,2q i, b , i , X “ b ” i i <sup>p1,2q</sup>, <sup>p</sup> b <sup>p2,3q</sup> , Q <sup>K2</sup>, Q ffT , A “ r1, 1, . . ., 1s <sup>T</sup> . 0, Q <sup>K</sup> i <sup>2</sup>, Q <sup>K</sup> i <sup>2</sup> i, . . ., <sup>K3</sup> N j“2 ÿ Q <sup>K</sup> i <sup>j</sup> 18 ^(1,2) #### bi K 2 K3 K1 K N K <sup>i</sup> N-1 K 2 K3 K1 K N K <sup>i</sup> N-1 ^(1,2) #### bi,1 ^(ext) #### bi,1 ^(1,N) #### bi ^(1,N) #### bi,1 Figure 3: Illustration of the prolongation condition applied to elements connected to a node i in a 2D mesh: conforming case (left), non-conforming case (right). Xpsq “ sA ` X 0 for any s P R. The cost function (33) reads Then the solutions to (32) are the vectors <sup>x</sup> f psq “ pX <sup>x</sup> psq ´ Xq <sup>T</sup> DpX <sup>x</sup> psq ´ Xq “ s <sup>2</sup> A <sup>T</sup> DA ´ 2sA <sup>T</sup> DpX ´ X 0q ` pX ´ X 0q <sup>T</sup> DpX ´ X 0q with D “ diagp1{|Γ12| <sup>2</sup>, 1{|Γ23| <sup>2</sup>, . . ., 1{|ΓN 1| <sup>2</sup> q. The minimization of f leads to with D “ diagp1{|Γ12| <sup>2</sup>, 1{|Γ23| <sup>2</sup>, . . ., 1{|ΓN 1| <sup>2</sup> q. The minimization of f leads to s <sup>‹</sup> “ pA <sup>T</sup> DAq <sup>´1</sup> A <sup>T</sup> DpX ´ X 0q. Xps <sup>‹</sup> q to (32) is hence obtained explicitly with little computational effort. i uses The selected solution <sup>x</sup> i similar ideas. We refer to [18] for details. Remark 4.5. For a node i lying on the boundary BΩ, the procedure to recover <sup>p</sup> b <sup>pj,kq</sup> Remark 4.6. Some variants of the previously introduced procedure exist in the i uses similar ideas. We refer to [18] for details. Remark 4.5. For a node i lying on the boundary BΩ, the procedure to recover <sup>p</sup> b <sup>pj,kq</sup> Remark 4.6. Some variants of the previously introduced procedure exist in the literature for FEM. We refer to [54, 55] and also to [56, 23]. i Oncethe 2Dprojectionsexample of <sup>p</sup> b <sup>pj,k</sup> the <sup>q</sup> be recovered. We i i|Γjk <sup>.</sup> For Oncethe 2Dprojectionsexample of <sup>p</sup> b <sup>pj,k</sup> the <sup>q</sup> haveleft sidebeenofobtainedFigure 4,forthisallreadsnodes i of the mesh TH, tractions gpΓjk can be recovered. We choose to search gpΓjk as an affine combination of the functions φ <sup>‹</sup> i|Γjk <sup>.</sup> For Oncethe 2Dprojectionsexample of <sup>p</sup> b <sup>pj,k</sup> the <sup>q</sup> haveleft sidebeenofobtainedFigure 4,forthisallreadsnodes i of the mesh TH, tractions gpΓjk can be recovered. We choose to search gpΓjk as an affine combination of the functions φ <sup>‹</sup> H <sup>ε</sup> <sup>yΓ</sup> jk <sup>¨ nK</sup> j <sup>` α1</sup> <sup>φ‹</sup> i <sup>‹</sup> i1|Γjk <sup>` α2 φ</sup> i <sup>‹</sup> i <sup>‹</sup> 2|Γjk <sup>,</sup> (34) <sup>ε</sup> H <sup>yΓ</sup> jk <sup>:“</sup> <sup>1</sup> 2 pgΓjk “ ηK <sup>Γjk</sup> j <sup>qε</sup> K <sup>Γjk</sup> j <sup>xq</sup> H <sup>ε</sup> where xq <sup>ε</sup> <sup>1</sup> 2 <sup>pqε</sup> H H|Kj <sup>` qε</sup> H <sup>ε</sup> |Kk <sup>q,</sup> <sup>where</sup> <sup>the</sup> <sup>nodes</sup> <sup>i1</sup> <sup>and</sup> <sup>i2</sup> <sup>are</sup> <sup>the</sup> <sup>two</sup> <sup>vertex</sup> <sup>nodes</sup> i <sup>leads</sup> <sup>to</sup> i connectedthe simple to2 ˆthe 2 linearedge Γsystemjk (see Figure 4). Enforcing that <sup>p</sup> b <sup>pj,kq</sup> i “ ˆ Γjk η <sup>Γjk</sup> <sup>Γjk</sup> Kj <sup>gp|Γ</sup> jk <sup>φ</sup> i <sup>‹</sup> the simple 2 ˆ 2 linear system Γjk <sup>φ</sup> i <sup>‹</sup> 1 Γjk <sup>φ</sup> i <sup>‹</sup> 1 pj,kq i1 i1 ´ bpj,kq i2 i2 pb <sup>pj,kq</sup> ´ b pb <sup>pj,kq</sup> offline i1 i2 pb <sup>pj,kq</sup> pb <sup>pj,kq</sup> i1 ´ b i2 <sup>pj,kq</sup> ´ b <sup>pj,kq</sup> pj,kq i2 Γjk <sup>φ</sup> i <sup>‹</sup> Γjk <sup>φ</sup> i <sup>‹</sup> i <sup>‹</sup> 1 <sup>φ‹</sup> i2 i2 <sup>φ‹</sup> i2 <sup>‹</sup>  “ η <sup>Γjk</sup> Kj « ´ ´ Γjk <sup>φ‹</sup> i1 ´Γjk <sup>φ‹</sup> i2 ´´Γjk <sup>φ</sup> i <sup>‹</sup> 1 <sup>φ‹</sup> i2 ´Γjk <sup>φ</sup> i <sup>‹</sup> 2 <sup>φ‹</sup> i2 i <sup>‹</sup> 1 <sup>φ‹</sup> i1 i1 <sup>φ‹</sup> i2 <sup>‹</sup> i1 <sup>‹</sup> i2 ´ ´ i2 « ff , ff „ α1 α2 for which the 2 ˆ 2 matrix M <sup>Γjk</sup> can be computed and inverted in the offline stage of MsFEM. Remark 4.7. The previous system is invertible, since the Cauchy-Schwarz inequality between two linearly independent functions φ <sup>‹</sup> i1 <sup>and φ‹</sup> i2 <sup>leads to a strictly positive determinant for MΓjk</sup> <sup>.</sup> <sup>‹</sup> i1 <sup>and φ‹</sup> i <sup>‹</sup> i2 <sup>leads to a strictly positive determinant for MΓjk</sup> <sup>.</sup> 19 i2 i3 K j K k i1 K j i2 K k i4 i1 Figure 4: Environment of the interface Γjk in the conforming case (left) and the nonconforming case (right). tion of the functions φ <sup>‹</sup> i|Γjk <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>2D</sup> <sup>example</sup> <sup>of</sup> <sup>the</sup> <sup>left</sup> <sup>side</sup> <sup>of</sup> <sup>Figure</sup> <sup>3,</sup> <sup>this</sup> <sup>corresponds</sup> Remark 4.8. A usual procedure used in FEM (see [18]) is to search pgΓjk as a linear combina i1|Γjk <sup>` β2 φ</sup> i <sup>‹</sup> 2|Γjk <sup>for</sup> <sup>some</sup> <sup>coefficients</sup> <sup>β1</sup> <sup>and</sup> <sup>β2.</sup> <sup>However,</sup> <sup>for</sup> <sup>the</sup> <sup>two</sup> tion of the functions φ <sup>‹</sup> i|Γjk <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>2D</sup> <sup>example</sup> <sup>of</sup> <sup>the</sup> <sup>left</sup> <sup>side</sup> <sup>of</sup> <sup>Figure</sup> <sup>3,</sup> <sup>this</sup> <sup>corresponds</sup> Remark 4.8. A usual procedure used in FEM (see [18]) is to search pgΓjk as a linear combina MsFEM formulations i1considered|Γjk <sup>` β2 φ</sup> i <sup>‹</sup> here,2|Γjk <sup>for</sup> the <sup>some</sup> test functions <sup>coefficients</sup> φ <sup>‹</sup> i <sup>βare1</sup> <sup>andaffineβ2.</sup> <sup>onHowever,the</sup> <sup>elementfor</sup> <sup>theedges.two</sup> to writing gpΓjk “ β1 φ <sup>‹</sup> i1considered|Γjk <sup>` β2 φ</sup> i <sup>‹</sup> <sup>‹</sup> MsFEM formulations i1considered|Γjk <sup>` β2 φ</sup> i <sup>‹</sup> here,2|Γjk <sup>for</sup> the <sup>some</sup> test functions <sup>coefficients</sup> φ <sup>‹</sup> i <sup>βare1</sup> <sup>andaffineβ2.</sup> <sup>onHowever,the</sup> <sup>elementfor</sup> <sup>theedges.two</sup> to writing gpΓjk “ β1 φ <sup>‹</sup> MsFEM formulations considered here, the test functions φ <sup>‹</sup> i <sup>are</sup> <sup>affine</sup> <sup>on</sup> <sup>the</sup> <sup>element</sup> <sup>edges.</sup> to writing gpΓjk “ β1 φ <sup>‹</sup> H <sup>that</sup> <sup>does</sup> <sup>not</sup> <sup>capture</sup> <sup>small</sup> <sup>scale</sup> <sup>oscillations</sup> <sup>near</sup> <sup>element</sup> <sup>edges.</sup> This construction thus leads to an affine evolution of gpΓjk on the edges, and may result in a poor admissible flux field qp <sup>ε</sup> For this reason, we prefer to recover gpΓjk under the form (34). H <sup>that</sup> <sup>does</sup> <sup>not</sup> <sup>capture</sup> <sup>small</sup> <sup>scale</sup> <sup>oscillations</sup> <sup>near</sup> <sup>element</sup> <sup>edges.</sup> This construction thus leads to an affine evolution of gpΓjk on the edges, and may result in a poor admissible flux field qp <sup>ε</sup> For 4.2.3 this Computation reason, we prefer of to equilibrated recover gpΓjk under tractions the form for the (34). oversampling MsFEM for- 4.2.3 Computation of equilibrated tractions for the oversampling MsFEM formulation We assume here that u <sup>ε</sup> We assume here that u <sup>ε</sup> H <sup>is</sup> <sup>the</sup> <sup>solution</sup> <sup>to</sup> <sup>the</sup> <sup>oversampling</sup> <sup>MsFEM</sup> <sup>approach</sup> <sup>(14).</sup> <sup>This</sup> non-conforming approach (described in Section 3.3) is not a classical discontinuous Galerkin method since there is only one degree of freedom per node and no additional jump term in the weak formulation (14). Consequently, recovering equilibrated tractions is not as easy as for classical discontinuous Galerkin methods (see e.g. [57, 58]), where test functions with support over a single element can be considered. Nevertheless, when using Galerkin MsFEM formulation with oversampling, the main aspects of the previous strategy to construct equilibrated tractions can be reused. In particular, enforcing the prolongation condition (30) (or equivalently (31)) with non-conforming test functions φ <sup>ε</sup> alently (31)) with non-conforming test functions φ <sup>ε</sup> local equilibrium condition (27) due to the partition of unity property (10). However, some minor changes are required. i <sup>still</sup> <sup>provides</sup> <sup>tractions</sup> <sup>gpK</sup> <sup>satisfying</sup> <sup>the</sup> the Consideringprolongationagainconditiona 2Dprovidesexample,forandthenoticingfollowingthatsystemφ <sup>ε</sup> i|BΩi(see <sup>‰</sup> <sup>0</sup> the <sup>and</sup> right <sup>φε</sup> i|Ksidej <sup>‰</sup> of <sup>φ</sup> i <sup>ε</sup> |FigureKk <sup>on</sup> <sup>Γ</sup> 3): <sup>jk,</sup> Considering again a 2D example, and noticing that φ <sup>ε</sup> <sup>ε</sup> i|BΩi(see <sup>‰</sup> <sup>0</sup> the <sup>and</sup> right <sup>φε</sup> i <sup>ε</sup> i|Ksidej <sup>‰</sup> of <sup>φ</sup> i <sup>ε</sup> | i,1 i,2 pb <sup>p1,2q</sup> i,1 i,1 i,2 i,2 pb <sup>p1,2q</sup> ´ <sup>p</sup> b <sup>pN,1q</sup> pb <sup>p2,3q</sup> ´ <sup>p</sup> b <sup>p1,2q</sup> . . . “ . . . (35) i,1 i,1 i,2 i,2 <sup>p</sup> b <sup>pN,1q</sup> ` <sup>p</sup> b <sup>pextq</sup> <sup>p</sup> b <sup>p1,2q</sup> ` <sup>p</sup> b <sup>pextq</sup> i,2 i,2 <sup>N,1q</sup> ` <sup>p</sup> b <sup>pextq</sup> . . . <sup>p1,2q</sup> ` <sup>p</sup> b <sup>pextq</sup> i <sup>p</sup> i,N <sup>ext</sup> ´ <sup>q</sup> 1 <sup>“ QKN´1</sup> i,1 i “ Q <sup>K1</sup> i,2 i <sup>pextq</sup> “ Q <sup>K2</sup> i, <sup>K1</sup> i, <sup>K2</sup> i, i,N ´1 pb <sup>pN</sup> <sup>´1,N</sup> <sup>q</sup> i,N ´1 i,N ´1 i,N i,N <sup>pN</sup> <sup>´1,N</sup> <sup>q</sup> ´ <sup>p</sup> b <sup>pN</sup> <sup>´2,N</sup> <sup>´1q</sup> pb <sup>pN,1q</sup> ´ <sup>p</sup> b <sup>pN</sup> <sup>´1</sup> i,2 pb <sup>p2,3q</sup> i,2 i,2 ´ <sup>p</sup> b <sup>pN,1q</sup> <sup>p2,3q</sup> ´ <sup>p</sup> b <sup>p1,2q</sup> i,N i “ Q <sup>KN</sup> i,N ´1 i,N ´ i,N i,N b <sup>pN</sup> <sup>´2,N</sup> <sup>´1q</sup> ` <sup>p</sup> b <sup>pextq</sup> ´ <sup>p</sup> b <sup>pN</sup> <sup>´1,N</sup> <sup>q</sup> ` <sup>p</sup> b <sup>p</sup> i, <sup>KN</sup> ext <sup>Γjk</sup> and 3N Kj <sup>pg|Γ</sup> jk <sup>φ</sup> i <sup>ε</sup> ext <sup>φ</sup> i <sup>ε</sup> i,l unknowns in i <sup>ε</sup> |Kl <sup>, pbpextq</sup> i,l “ i,l are N with <sup>p</sup> b <sup>pj,kq</sup> i,N ´ pb <sup>pN,</sup> i,l <sup>1q</sup> i,N i,N ´ <sup>p</sup> b <sup>pN</sup> <sup>´2,N</sup> <sup>´1q</sup> <sup>pN,</sup> i,l <sup>1q</sup> ´ <sup>p</sup> b <sup>pN</sup> <sup>´1,N</sup> ηK <sup>Γq</sup> “ ˆ <sup>i,l</sup> ext <sup>“</sup> <sup>BKl</sup> <sup>X BΩi.</sup> <sup>There</sup> i <sup>ε</sup> |Kl <sup>and</sup> <sup>Γi,l</sup> i,N i,N <sup>2,N</sup> <sup>´1q</sup> ` <sup>p</sup> b <sup>pextq</sup> ext <sup>p</sup> ˆ <sup>N</sup> <sup>´1,N</sup> ηK <sup>Γq</sup> <sup>i,l</sup> l` <sup>p</sup> b <sup>pext</sup> ext <sup>q</sup> ˆ Γ <sup>i,l</sup> i,l “ ˆ Γjk η <sup>Γjk</sup> ext η <sup>Γi,l</sup> Kl ext <sup>Γi,l</sup> Kl pg|Γexti,l are N equations and 3N unknowns in (35). 20 In order to come back to the former local system (32), we additionally enforce the following conditions: i,j i,j pb <sup>pj,kq</sup> i,j i,k i,j <sup>pj,kq</sup> ““ 0 <sup>p</sup> b <sup>p</sup> . <sup>j,kq</sup> <sup>pextq</sup> <sup>p</sup> i <sup>j,kq</sup> (the projections of gp|Γjk over φi <sup>ε</sup> | i|Kj <sup>and</sup> <sup>φε</sup> i <sup>ε</sup> i|Kk <sup>are</sup> <sup>equal),</sup> i,j pb <sup>pextq</sup> i,k i <sup>p</sup> . <sup>j,kq</sup> “: <sup>p</sup> b <sup>pj,kq</sup> i,j “ 0. The last condition enables to keep a local system, i.e. to not couple (35) (written in the patch Ωi) with similar systems written for neighboring patches. i following the procedure detailed in Section 4.2.2, using again the quantities The system (35) then becomes identical to (32), and we can compute <sup>p</sup> b <sup>pj,kq</sup> i procedure detailed in Section 4.2.2, using again the quantities The system (35) thenpj,kbecomesq identical to (32), and we can compute <sup>p</sup> b <sup>pj,kq</sup> Γjk <sup>ε</sup> H|Kj <sup>` φ</sup> i <sup>ε</sup> i <sup>ε</sup> |Kk <sup>qε</sup> <sup>ε</sup> H|Kk <sup>q ¨ nK</sup> j <sup>.</sup> b pj,kq i “ <sup>1</sup> 2 2 ˆ pφi <sup>ε</sup> i <sup>ε</sup> |Kj <sup>qε</sup> H φ <sup>ε</sup> i|Γjk <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>2D</sup> <sup>example</sup> <sup>of</sup> <sup>the</sup> <sup>right</sup> <sup>side</sup> <sup>of</sup> <sup>Figure</sup> <sup>4,</sup> <sup>this</sup> <sup>reads</sup> Next, on each edge Γjk, pgΓjk is searched as an affine combination of the multiscale functions <sup>ε</sup> i|Γjk <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>2D</sup> <sup>example</sup> <sup>of</sup> <sup>the</sup> <sup>right</sup> <sup>side</sup> <sup>of</sup> <sup>Figure</sup> <sup>4,</sup> <sup>this</sup> <sup>reads</sup> K <sup>Γjk</sup> j <sup>xq</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>yΓ</sup> jk <sup>¨ nK</sup> j <sup>` α1,j</sup> <sup>φε</sup> i <sup>ε</sup> i2|Kj,Γjk <sup>` α2,k φ</sup> i <sup>ε</sup> i <sup>ε</sup> 2|Kk,Γjk <sup>` α3 φ</sup> i <sup>ε</sup> i <sup>ε</sup> 3|Kj,Γjk <sup>` α4 φ</sup> i <sup>ε</sup> i <sup>ε</sup> 4|Kk,Γjk <sup>,</sup> i1|Kk,Γjk Kj <sup>xq</sup> H <sup>ε</sup> <sup>yΓ</sup> jk <sup>¨ nK</sup> j <sup>` α1,j</sup> <sup>φε</sup> i1|Kj,Γjk <sup>` α1,k φε</sup> η` <sup>Γ</sup> α <sup>jk</sup> 2,j φ <sup>ε</sup> i2|Kj,Γjk <sup>` α2,k φ</sup> i <sup>ε</sup> 2|Kk,Γjk <sup>` α3 φ</sup> i <sup>ε</sup> 3|Kj,Γjk <sup>`</sup> i <sup>ε</sup> i1|Kj,Γjk <sup>` α1,k φε</sup> (36) where xq <sup>ε</sup> H Kj pgΓjk “η` <sup>Γ</sup> α <sup>jk</sup> where xq <sup>ε</sup> H <sup>yΓ</sup> jk <sup>is</sup> <sup>defined</sup> <sup>below</sup> <sup>(34),</sup> <sup>where</sup> <sup>the</sup> <sup>nodes</sup> <sup>i1</sup> <sup>and</sup> <sup>i2</sup> <sup>are</sup> <sup>the</sup> <sup>two</sup> <sup>vertex</sup> <sup>nodes</sup> connected to the edge Γjk, and the nodes i3 and i4 are the other vertex nodes of the elements Kj and Kk, respectively (see Figure 4). The coefficients pα1,j, α1,k, α2,j, α2,k, α3, α4q are obtained from the following relations: pb <sup>p</sup> i1 <sup>j,k</sup>,j <sup>q</sup> <sup>p</sup> i1 <sup>j,k</sup>,j <sup>q</sup> <sup>“ pbp</sup> i1 <sup>j,k</sup>,k <sup>q</sup> <sup>p</sup> i2 <sup>j,k</sup>,j <sup>q</sup> <sup>“ pbp</sup> i2 <sup>j,k</sup>,k <sup>q</sup> i1,j i3,j pb <sup>p</sup> i2 <sup>j,k</sup>,j <sup>q</sup> i1,j <sup>“ pbp</sup> i1 <sup>j,k</sup>,k <sup>q</sup> i3,j <sup>p</sup> i2 <sup>j,k</sup>,j <sup>q</sup> <sup>“</sup> “ <sup>p</sup> 0 <sup>bp</sup> i,2 <sup>j,k</sup>,k <sup>q</sup> <sup>pextq</sup> i1, i2, <sup>pj,kq</sup> i3,j i2,j pb <sup>pextq</sup> i4,k i1 i2 <sup>p</sup> i1 <sup>j,k</sup>,k <sup>q</sup> <sup>“ pbpj,kq</sup> <sup>p</sup> i2 <sup>j,k</sup>,k <sup>q</sup> <sup>“ pbpj,kq</sup> i3,j “ 0, <sup>pextq</sup> i4,k <sup>“ 0.</sup> <sup>pextq</sup> i4,k pb <sup>pext</sup> 6 <sup>q</sup> i2 <sup>p</sup> i1 <sup>j,k</sup>,k <sup>q</sup> <sup>“ pbpj,kq</sup> <sup>p</sup> i,2 <sup>j,k</sup>,k <sup>q</sup> <sup>“ pbpj,kq</sup> This leads to the inversion of a simple 6 ˆ 6 linear system. The matrix M <sup>Γjk</sup> of that system can again be computed and inverted in the offline stage of MsFEM. 4.2.4 Solution to elementary problems H that minimizes For given tractions gpK, the optimal admissible flux field qp <sup>ε</sup> H|K <sup>in</sup> <sup>the</sup> <sup>element</sup> <sup>K</sup> <sup>is</sup> <sup>the</sup> <sup>one</sup> that minimizes For given tractions gpK, the optimal admissible flux field qp <sup>ε</sup> CRE <sup>2</sup> |K <sup>pupε</sup> H E <sup>2</sup> <sup>ε</sup> H <sup>, pqq “</sup> ˆ K F pA <sup>ε</sup> q <sup>´1</sup> pqp ´ A <sup>ε</sup> ∇up <sup>ε</sup> q ¨ pqp ´ A <sup>ε</sup> ∇up <sup>ε</sup> q “ |||qp ´ A <sup>ε</sup> ∇up <sup>ε</sup> ||| <sup>2</sup> F |K E <sup>2</sup> among all flux fields qp verifying (29). For such fields, we compute H <sup>|||2</sup> H <sup>|||2</sup> F |K <sup>´</sup> K H gpK up <sup>ε</sup> <sup>2</sup> F |K <sup>`|||Aε∇up</sup> H <sup>ε</sup> H <sup>|||2</sup> F <sup>2</sup> F |K <sup>´2</sup> CRE <sup>2</sup> |K <sup>pupε</sup> H H <sup>|||2</sup> <sup>2</sup> F |K <sup>“ |||qp|||2</sup> F E <sup>2</sup> <sup>ε</sup> H <sup>, pqq “ |||qp ´ Aε∇up</sup> H <sup>ε</sup> ˆ „ˆ  , H f upH <sup>ε</sup> H <sup>`</sup> BK Introducing the functional spaces and it is thus equivalent to minimizing |||qp||| <sup>2</sup> F Introducing the functional spaces and it is thus equivalent to minimizing |||qp||| <sup>2</sup> F |K <sup>“</sup> <sup>2J2|K</sup> <sup>pqpq</sup> <sup>among</sup> <sup>fluxes</sup> <sup>qp</sup> <sup>verifying</sup> <sup>(29).</sup> W <sup>K</sup> :“ tp P Hpdiv, Kq, ∇ ¨ p ` f “ 0 in K, W0 <sup>K</sup> <sup>:“ tp P Hpdiv, Kq,</sup> ∇ ¨ p “ 0 in K, p ¨ npK ¨ n“ 0K “on pgBKKonu, BKu, W0 <sup>K</sup> 0 <sup>K</sup> <sup>:“ tp P Hpdiv, Kq,</sup> ∇ ¨ p “ 0 in K, p ¨ nK “ 0 on BKu, 21 the optimal admissible flux field satisfies qpH <sup>ε</sup> H|K <sup>.</sup> 0 <sup>,</sup> <sup>K</sup> ˆ H <sup>ε</sup> |K <sup>P W K</sup> and @p P W0 <sup>K</sup> K qpH <sup>ε</sup> |K <sup>¨ pAεq´1p “ 0.</sup> (37) We describe now two ways to compute qpH <sup>ε</sup> W <sup>K</sup> As a first case, assume that the load f describe now two ways to compute qp <sup>ε</sup> H may be constructed analytically with polynomial form (in the spirit of [59]) or numerically As a(37)firstbycase,meansassumeof athatnon-conventionalthe load f andFEthemethodtractionsin fluxespgK are(inpolynomial.the spirit ofThen[52]).qp <sup>ε</sup> H|K <sup>P</sup> W <sup>K</sup> may be constructed analytically with polynomial form (in the spirit of [59]) or numerically solvingAs a(37)firstbycase,meansassumeof athatnon-conventionalthe load f andFEthemethodtractionsin fluxespgK are(inpolynomial.the spirit ofThen[52]).qp <sup>ε</sup> Another technique, more appealing for implementation purposes, consists in a dual ap is equivalent to finding a primal field w <sup>ε</sup> P H <sup>1</sup> pKq such that proach. Indeed, duality shows that the minimization of J2|K pqpq among fluxes qp satisfying (29) H <sup>ε</sup> |K <sup>“ Aε∇wε</sup> and @v P H <sup>1</sup> pKq, B| <sup>ε</sup> | <sup>ε</sup> K <sup>pwε, vq “</sup> ˆ K BK gpK v, (38) fv ` ˆ where B| <sup>ε</sup> qpH <sup>ε</sup> | <sup>ε</sup> K <sup>pu, vq</sup> <sup>“</sup> ˆ K rA <sup>ε</sup> ∇us ¨ ∇v. In view of (27), the above local Neumann problem (38) K w <sup>ε</sup> is in practice computed using a higher-order basis within the element K. In order to reuse theis well-posedoffline MsFEM(up to computationsthe addition ofata constant).hand and toAn accuratelimit the computationalapproximationcosts,wr <sup>ε</sup> ofweitsconstructsolution the local higher-order basis using the technique proposed in [27] and detailed in Section 3.4. We use polynomial shape functions φ <sup>0</sup> i|K <sup>of degree</sup> <sup>1</sup> <sup>`</sup> <sup>k</sup> <sup>(k</sup> <sup>“ 3 in practice)</sup> <sup>in the composition</sup> We use polynomial shape functions φ <sup>0</sup> i|K <sup>of degree</sup> <sup>1</sup> <sup>`</sup> <sup>k</sup> <sup>(k</sup> <sup>“ 3 in practice)</sup> <sup>in the composition</sup> rule (19). Furthermore, when the degree 1 ` k is large, it may be effective to use hierarchical subspaces of the full space V <sup>1`k</sup> H|K <sup>, orthogonal</sup> <sup>with respect to the inner product</sup> <sup>defined by</sup> <sup>B</sup> | <sup>ε</sup> K (see [17]). We do not pursue in that direction. <sup>1`k</sup> H|K <sup>, orthogonal</sup> <sup>with respect to the inner product</sup> <sup>defined by</sup> <sup>B</sup> | <sup>ε</sup> is not valid any more.H that <sup>ε</sup> H|Kan <sup>“</sup> asymptotic <sup>Aε∇wrε</sup> <sup>of</sup> <sup>qpε</sup> the strict upper error bound given by the CRE concept is polynomial Remark 4.9. degreeWhenk isusingin practicethe numericalchosen highapproximationenough so thatqr <sup>ε</sup> H the strict upper error bound given by the CRE concept is not valid any more.H|K <sup>“</sup> The <sup>Aε∇</sup> extra <sup>wε,</sup> polynomial Remark 4.9. degreeWhenk isusingin practicethe numericalchosen highapproximationenough so thatqr <sup>ε</sup> H|Kan <sup>“</sup> asymptotic <sup>Aε∇wrε</sup> <sup>of</sup> regime <sup>qpε</sup> is reached. We refer to [60] for studies of that question. In the case when the body loading f is regular in each element K, computations associated to the resolution of (38) can mostly be performed offline, thus avoiding fine-scale computations in the online phase, and thus respecting the MsFEM paradigm in multi-query contexts. Assume first that f is constant in each coarse element K. In view of (34) and (36), we following(wherenotice that the tractionsφ <sup>‹</sup> iset <sup>“ φ</sup> ofi <sup>ε</sup> well-posed <sup>or</sup> <sup>φ‹</sup> i <sup>“ φ</sup> pgKi <sup>0</sup> Neumann <sup>depending</sup> are defined as linear combinations of the functionsproblems, <sup>on</sup> <sup>the</sup> <sup>MsFEM</sup> in the offline <sup>formulation).</sup> phase of <sup>This</sup> the <sup>leads</sup> approach. φi <sup>‹toandsolving ∇</sup> For <sup>φ‹</sup> ieach <sup>¨ntheK</sup> (where φ <sup>‹</sup> i <sup>“ φ</sup> i <sup>ε</sup> <sup>or</sup> <sup>φ‹</sup> i <sup>“ φ</sup> i <sup>0</sup> <sup>depending</sup> <sup>on</sup> <sup>the</sup> <sup>MsFEM</sup> <sup>formulation).</sup> <sup>This</sup> <sup>leads</sup> i <sup>toandsolving ∇φ‹</sup> i <sup>¨ntheK</sup> notice that the tractions pgK are defined as linear combinations of the functions φ <sup>‹</sup> i <sup>ε</sup> <sup>or</sup> <sup>φ‹</sup> i <sup>‹</sup> iset <sup>“ φ</sup> ofi <sup>ε</sup> <sup>‹</sup> i <sup>“ φ</sup> i <sup>0</sup> pg i <sup>and ∇φ‹</sup> i following(wherenotice that the tractionsφ <sup>‹</sup> iset <sup>“ φ</sup> ofi <sup>ε</sup> well-posed <sup>or</sup> <sup>φ‹</sup> i <sup>“ φ</sup> pgKi <sup>0</sup> Neumann <sup>depending</sup> are defined as linear combinations of the functionsproblems, <sup>on</sup> <sup>the</sup> <sup>MsFEM</sup> in the offline <sup>formulation).</sup> phase of <sup>This</sup> the <sup>leads</sup> approach. φ <sup>‹to</sup> <sup>solving</sup> For each <sup>the</sup> element K, each edge Γjk of K and each node i of K, we look for θi <sup>jk</sup> P H <sup>1</sup> pKq such that 1 ˆ |K| i <sup>jk</sup> P H <sup>1</sup> pKq such that ˜ Γjk Γjk | <sup>ε</sup> K <sup>pθ</sup> i <sup>jk</sup> v (39) ˆK φ <sup>‹</sup> i φ <sup>‹</sup> i @v P H <sup>1</sup> pKq, B| <sup>ε</sup> i <sup>jk, vq “</sup> ˆ <sup>‹</sup> ¸ φ <sup>‹</sup> i <sup>v ´</sup> and for µ <sup>jk</sup> i P H <sup>1</sup> pKq such that 1 |K| ˜ ˆ Γjk Γjk ∇φ <sup>‹</sup> i <sup>¨ nK</sup> | <sup>ε</sup> K <sup>pµjk</sup> i ˆK ¸ @v P H <sup>1</sup> pKq, B| <sup>ε</sup> <sup>jk</sup> i <sup>, vq “</sup> ˆ v. (40) ∇φ <sup>‹</sup> i <sup>¨ nK</sup> <sup>v ´</sup> 22 i <sup>jk</sup> and µ <sup>jk</sup> i i <sup>jk</sup> and µ <sup>jk</sup> i Of course, θi <sup>jk</sup> Of course, θi <sup>jk</sup> and µ <sup>jk</sup> i are only defined up to the addition of a constant. Since f is constant in K, the solution w <sup>ε</sup> to (38) can then be written as a linear combination of θi <sup>jk</sup> and µ <sup>jk</sup> i <sup>.</sup> , the solution w <sup>ε</sup> to (38) can then be written as a linear combination of θi <sup>jk</sup> and µ <sup>jk</sup> i <sup>.</sup> For more complex variations of f in K, we write f “ f |K ` δf|K in K, where δf|K is self-equilibrated in K (i.e. ˆ K δf|K “ 0). A flux qp <sup>ε</sup> f the above is inexpensive, f |K <sup>which</sup> <sup>is</sup> <sup>equilibrated</sup> <sup>with</sup> <sup>the</sup> <sup>tractions</sup> term f |K can be computed using the above approach (replacing f with f |K in (38) and using thegpK offline(the computationprocedure (39)–(40)).of which is inexpensive,The mean-freewhateverterm δfthe|K canformbe handledof f ) andin twothe constant,manners.firstIt can either be taken into account in the CRE bound (see (25)). It can also give rise to a flux δf |K <sup>,</sup> <sup>equilibrated</sup> <sup>with</sup> <sup>δf</sup> |K <sup>,</sup> <sup>and</sup> <sup>computed</sup> <sup>as</sup> qp <sup>ε</sup> and B <sup>ε</sup> δf|K v. (41) δf |K <sup>“ Aε∇ρ</sup> @v P H <sup>1</sup> pKq, |K <sup>pρ, vq “</sup> ˆ δf |K <sup>,</sup> <sup>equilibrated</sup> <sup>with</sup> <sup>δf</sup> |K <sup>,</sup> <sup>and</sup> <sup>computed</sup> <sup>as</sup> qp <sup>ε</sup> δf <sup>ε</sup> |K <sup>“ Aε∇ρ</sup> and @v P H <sup>1</sup> pKq, B| <sup>ε</sup> | <sup>ε</sup> K <sup>pρ, vq “</sup> ˆ K δf|K v. (41) It is of course possible to expand δf|K over a given polynomial basis made of self-equilibrated basis functions rj|K. Then most of the computations associated to (41) can be performed offline, by computing beforehand the elementary solutions ρj to @v P H <sup>1</sup> pKq, B| <sup>ε</sup> K <sup>pρj, vq “</sup> ˆK rj|K v. (42) Recall now that f is a macroscopic function (it does not depend on ε). On each coarse element K, δf|K may thus be accurately approximated with a limited number of basis functions rj|K. ### 5 Adaptive strategy In the previous section, we have developed a CRE estimate that yields a fully computable upper bound quantifying the overall MsFEM error. In this section, we develop error indicators that assess the various error sources and enable an automatic adaptation of the MsFEM parameters (the coarse mesh size H, the fine mesh size h and the oversampling ratio) in order to reach a given error tolerance while keeping the computational cost minimal. The error indicators are defined from (hierarchical) auxiliary reference problems, which are detailed below, and the associated CRE properties. 5.1 Recast of MsFEM From the MsFEM formulations presented in Section 3, it is not straightforward to set up a clear adaptive strategy of MsFEM parameters. This is due to the fact that there is no hierarchy appearing in the MsFEM approximation, going from the reference model (3) to the numerical approximation. Such a hierarchy was recently enlightened in [37], using similarities between the MsFEM approach and the Variational Multiscale (VMS) Method [8], and enabling a posteriori adaptive strategies similar to those presented in [31] for VMS. Following [37], we first recast MsFEM so that the hierarchical structure becomes apparent. We recall that V “ H0 <sup>1</sup>,ΓD <sup>pΩq</sup> <sup>(see</sup> <sup>(4)).</sup> <sup>Let</sup> <sup>us</sup> <sup>introduce</sup> <sup>a</sup> <sup>projection</sup> <sup>operator</sup> <sup>IH</sup> <sup>:</sup> <sup>V</sup> <sup>Ñ</sup> VH <sup>0</sup> <sup>Ă</sup> <sup>V</sup> <sup>(satisfying</sup> <sup>IH</sup> <sup>˝ IH</sup> <sup>“</sup> <sup>IH)</sup> <sup>such</sup> <sup>that</sup> <sup>its</sup> <sup>image</sup> <sup>is</sup> <sup>V</sup> H <sup>0</sup> <sup>:</sup> <sup>Im IH</sup> <sup>“</sup> <sup>V</sup> H <sup>0</sup> <sup>(we</sup> <sup>can</sup> <sup>e.g.</sup> <sup>take</sup> We recall that V “ H0 <sup>1</sup> H <sup>0</sup> <sup>:</sup> <sup>Im IH</sup> <sup>“</sup> <sup>V</sup> H <sup>0</sup> H <sup>0</sup> <sup>Ă</sup> Clément <sup>V</sup> <sup>(satisfying</sup> interpolant), <sup>IH</sup> <sup>˝ IH</sup> where <sup>“</sup> <sup>IH</sup> V <sup>)</sup> H <sup>0suchis</sup> <sup>thethatP1-Lagrangeits</sup> <sup>image</sup> <sup>isfiniteV</sup> H <sup>0</sup> theVH <sup>0</sup> <sup>Ă</sup> Clément <sup>V</sup> <sup>(satisfying</sup> interpolant), <sup>IH</sup> <sup>˝ IH</sup> where <sup>“</sup> <sup>IH</sup> V <sup>)</sup> H <sup>0suchis</sup> <sup>thethatP1-Lagrangeits</sup> <sup>image</sup> <sup>isfiniteV</sup> H <sup>0</sup> <sup>:</sup> <sup>dimensionalIm IH</sup> <sup>“</sup> <sup>V</sup> H <sup>0space(we</sup> <sup>can(5).e.g.We</sup> <sup>takealso</sup> the Clément interpolant), where VH <sup>0</sup> <sup>is</sup> <sup>the</sup> <sup>P1-Lagrange</sup> <sup>finite</sup> <sup>dimensional</sup> <sup>space</sup> <sup>(5).</sup> <sup>We</sup> <sup>also</sup> introduce the fine-scale space V <sup>f</sup> Ă V defined by 23 V <sup>f</sup> “ ␣ φ P V, IHpφq “ 0 . ( We then have For each function ϕH P VH <sup>0</sup> <sup>,</sup> <sup>we</sup> <sup>define</sup> <sup>the</sup> <sup>corrector</sup> <sup>QεpϕH</sup> <sup>q</sup> <sup>P</sup> <sup>V</sup> <sup>f</sup> <sup>as</sup> <sup>the</sup> <sup>solution</sup> <sup>to</sup> <sup>the</sup> problem: For each function ϕH P VH <sup>0</sup> problem: V “ VH <sup>0</sup> H <sup>0</sup> <sup>‘ V</sup> <sup>f</sup> <sup>.</sup> ˘ fv ` ϕH ` Q <sup>ε</sup> pϕH q ¨ ∇v “ g v. (43) @v P V <sup>f</sup>, ˆΩ A <sup>ε</sup> ∇ ˆ Ω ˆΓN ˆ H <sup>0</sup> <sup>Ñ V</sup> <sup>f</sup> <sup>is</sup> <sup>an</sup> <sup>affine</sup> <sup>operator:</sup> The associated operator Q <sup>ε</sup> : VH <sup>0</sup> ` Q <sup>ε</sup> pϕH q “ Q <sup>ε</sup> 0 <sup>` Q</sup> ℓ <sup>εpϕH</sup> <sup>q</sup> (44) with A <sup>ε</sup> ∇Q <sup>ε</sup> ˆ 0 <sup>¨ ∇v</sup> <sup>“</sup> Q <sup>ε</sup> 0 <sup>P V</sup> <sup>f</sup> s.t. @v P V <sup>f</sup>, ˆ g v (45) Ω <sup>ε</sup> ˆ 0 <sup>¨ ∇v</sup> <sup>“</sup> Ω fv ` ˆΓN ˆ and where Q <sup>ε</sup> ℓ <sup>is</sup> <sup>a</sup> <sup>linear</sup> <sup>operator</sup> <sup>defined</sup> <sup>by</sup> ` ϕH ` Qℓ <sup>ε</sup> <sup>q</sup> ˘ ℓ <sup>εpϕH</sup> <sup>q</sup> Q <sup>ε</sup> ℓ <sup>pϕH</sup> <sup>q P V</sup> <sup>f</sup> s.t. @v P V <sup>f</sup>, ˆΩ A <sup>ε</sup> ∇ ¨ ∇v “ 0. (46) We then define a reconstruction operator R <sup>ε</sup> : V <sup>0</sup> ε multiscale functional space V H <sup>:“</sup> <sup>tRεpϕH</sup> <sup>q,</sup> ϕH P HVH <sup>0Ñu</sup> <sup>“V</sup> <sup>Qasε</sup> <sup>Rε</sup> <sup>“</sup> <sup>I</sup> φ <sup>`0</sup> i <sup>Q`ε Q,</sup> <sup>as</sup> ℓ <sup>εpφwell0</sup>, <sup>as</sup> where <sup>the</sup> We then define a reconstruction operator R <sup>ε</sup> : VH <sup>0</sup> εH <sup>:“</sup> <sup>tRεpϕH</sup> <sup>q,</sup> ϕH P VH <sup>0</sup> <sup>Rε</sup> <sup>“</sup> <sup>I</sup> <sup>ε</sup> 0 <sup>` Span</sup> ε <sup>that</sup> <sup>V</sup> H ␣ ε H <sup>is</sup> <sup>an</sup> <sup>affine</sup> <sup>space.</sup> <sup>0</sup> i <sup>q</sup> φ <sup>0</sup> i ℓ <sup>εpφ0</sup> i ( multiscale functional space V φ <sup>0</sup>, where H <sup>:“</sup> <sup>tRεpϕH</sup> <sup>q,</sup> ϕH P VH <sup>0</sup> <sup>u</sup> <sup>“</sup> <sup>Qε</sup> 0 <sup>` Span</sup> ε i <sup>` Q</sup> ℓ <sup>εpφ0</sup> i <sup>q</sup> H <sup>.</sup> <sup>We</sup> <sup>note</sup> <sup>that</sup> <sup>V</sup> H <sup>is</sup> <sup>an</sup> <sup>affine</sup> <sup>space.</sup> tφ <sup>0</sup> i <sup>u</sup> <sup>is</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>the</sup> <sup>Lagrange</sup> <sup>basis</sup> <sup>functions</sup> <sup>of</sup> <sup>V</sup> <sup>0</sup> ␣ ( <sup>0</sup> i <sup>u</sup> <sup>is</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>the</sup> <sup>Lagrange</sup> <sup>basis</sup> <sup>functions</sup> <sup>of</sup> <sup>V</sup> H <sup>0</sup> H <sup>0</sup> <sup>u</sup> <sup>“</sup> <sup>Qε</sup> 0 H <sup>0</sup> <sup>.</sup> <sup>We</sup> <sup>note</sup> <sup>that</sup> <sup>V</sup> <sup>0</sup> i <sup>` Q</sup> ℓ <sup>ε</sup> <sup>an</sup> Let us now consider the following MsFEM-like problem: A <sup>ε</sup> ∇u <sup>ε</sup> H <sup>¨ ∇v</sup> <sup>“</sup> ˆΩ ˆ ˆΩ fv ` g v. (47) Find u <sup>ε</sup> H <sup>P V</sup> ε H <sup>such</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P V</sup> H <sup>0</sup> <sup>,</sup> A <sup>ε</sup> ∇u <sup>ε</sup> ˆ ΓN and writing u <sup>ε</sup> H <sup>“ Qε</sup> H <sup>,</sup> <sup>problem</sup> <sup>(47)</sup> <sup>can</sup> <sup>be</sup> <sup>recast</sup> <sup>as</sup> H Problem (47) is well-posed. Indeed, introducing the vector space V <sup>r</sup> <sup>ε</sup> 0 <sup>` ruε</sup> ␣ ( ℓ <sup>εpφ0</sup> i <sup>0</sup> i <sup>q</sup> φ <sup>0</sup> i <sup>0</sup> i <sup>` Q</sup> ℓ <sup>ε</sup> and writing u <sup>ε</sup> <sup>ε</sup> H <sup>“ Qε</sup> is 0 <sup>ε</sup> H <sup>,</sup> <sup>problem</sup> <sup>(47)</sup> <sup>can</sup> <sup>be</sup> <sup>recast</sup> <sup>as</sup> Indeed, introducing the 0 <sup>` ruε</sup> H <sup>,</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P V</sup> <sup>0</sup> ˆ H <sup>¨∇v</sup> H <sup>“</sup> <sup>Span</sup> <sup>ε</sup> H <sup>P</sup> <sup>Vr</sup> H <sup>ε</sup> Find ur <sup>ε</sup> H H <sup>0</sup> <sup>,</sup> <sup>we</sup> <sup>have</sup> <sup>Qε</sup> ℓ H <sup>such</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P V</sup> H <sup>0</sup> ΓN Ω ˆ Ω H <sup>0</sup> <sup>,</sup> ˆ Ω A <sup>ε</sup> ∇Q <sup>ε</sup> 0 <sup>¨∇v.</sup> g v´ ˆ fv` ˆ A <sup>ε</sup> ∇urH <sup>ε</sup> H <sup>¨∇v</sup> <sup>“</sup> For any v P VH <sup>0</sup> <sup>,</sup> <sup>we</sup> <sup>have</sup> <sup>Qε</sup> ℓ <sup>pvq</sup> <sup>P V</sup> <sup>f</sup> <sup>.</sup> <sup>Thus,</sup> <sup>in</sup> <sup>view</sup> <sup>of</sup> <sup>(46),</sup> <sup>the</sup> <sup>above</sup> <sup>problem</sup> <sup>is</sup> <sup>equivalent</sup> to: For any v P VH <sup>0</sup> fvH` ˆΓN ˆ g vH´ ˆ A <sup>ε</sup> ∇urH <sup>ε</sup> <sup>ε</sup> H <sup>P</sup> <sup>Vr</sup> H <sup>ε</sup> Find ur <sup>ε</sup> H H <sup>ε</sup> <sup>such</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P</sup> <sup>Vr</sup> H <sup>ε</sup> H <sup>0</sup> <sup>is</sup> <sup>such</sup> <sup>that</sup> <sup>v</sup> <sup>“</sup> <sup>vH</sup> <sup>` Q</sup> ℓ <sup>ε</sup> Lax-Milgram lemma. Ω ˆΩ ˆ H <sup>,</sup> ˆ Ω A <sup>ε</sup> ∇Q <sup>ε</sup> 0 <sup>¨∇vH,</sup> H <sup>¨∇v</sup> <sup>“</sup> where vH P VH <sup>0</sup> thanks to the where vH P VH <sup>0</sup> <sup>is</sup> <sup>such</sup> <sup>that</sup> <sup>v</sup> <sup>“</sup> <sup>vH</sup> <sup>` Q</sup> ℓ <sup>εpvHq.</sup> <sup>The</sup> <sup>above</sup> <sup>problem</sup> <sup>is</sup> <sup>obviously</sup> <sup>well-posed</sup> thanks to the Lax-Milgram lemma. It is next straightforward to show, from (45), (46) and (47), that u <sup>ε</sup> H <sup>satisfies the variational</sup> formulation (3) of the reference problem. We hence have u <sup>ε</sup> H <sup>“ uε.</sup> It is next straightforward to show, from (45), (46) and (47), that u <sup>ε</sup> H formulationThe formulation(3) of the(47)referenceis as challengingproblem. Weto henceuse ashavethe uformulation <sup>ε</sup> H <sup>“ uε.</sup> (3) (note in particular that V <sup>f</sup> is not of finite dimension, and that computing Q <sup>ε</sup> ℓ <sup>pϕH</sup> <sup>q</sup> <sup>amounts</sup> <sup>to</sup> <sup>solving</sup> <sup>a</sup> <sup>highly</sup> that V <sup>f</sup> is not of finite dimension, and that computing Q <sup>ε</sup> ℓ <sup>pϕH</sup> <sup>q</sup> <sup>amounts</sup> <sup>to</sup> <sup>solving</sup> <sup>a</sup> <sup>highly</sup> oscillatory problem over the whole domain Ω). It is however useful as explained in what follows. 24 Remark 5.1. The solution u <sup>ε</sup> H <sup>to</sup> <sup>(47)</sup> <sup>is</sup> <sup>also</sup> <sup>solution</sup> <sup>to</sup> <sup>the</sup> <sup>following</sup> <sup>problem:</sup> A <sup>ε</sup> ∇u <sup>ε</sup> H <sup>¨ ∇v</sup> <sup>“</sup> fv ` ˆ ε H <sup>,</sup> ˆΩ ˆΩ ˆ Find u <sup>ε</sup> H <sup>P V</sup> ε H <sup>such</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P V</sup> ΓN g v. (48) This problem is a Galerkin type problem, whereas (47) is a Petrov-Galerkin type problem. The problems (47) and (48) are equivalent, but they will lead to different approximations, as shown below. Starting from the formulations (47) or (48), we can construct a fully discrete MsFEM formulation over the MsFEM space VH <sup>ε</sup> <sup>by</sup> <sup>making</sup> <sup>the</sup> <sup>following</sup> <sup>simplifying</sup> <sup>changes</sup> <sup>(denoted</sup> S# ): - S1 : Replace the right-hand side term with 0 in the fine-scale problem (43), which makes the operator Q <sup>ε</sup> linear and independent of the load (Q <sup>ε</sup> ℓ <sup>),</sup> <sup>and</sup> <sup>leads</sup> <sup>to</sup> 0 <sup>“ 0</sup> <sup>and</sup> <sup>Qε</sup> <sup>” Qε</sup> the operator Q <sup>ε</sup> linear and independent of the load (Q <sup>ε</sup> ℓ <sup>),</sup> <sup>and</sup> <sup>leads</sup> <sup>to</sup> a low-dimensional vector space SpantR <sup>ε</sup> pφ <sup>0</sup> i <sup>qu “ Span</sup> 0φ <sup>“0</sup> i <sup>0` Qand</sup> ℓ <sup>εpφQ0</sup> i <sup>qε</sup> <sup>”</sup> . <sup>Qε</sup> ␣ ( S2 elements: Restrictconnectedto Ωi theto nodecorrectioni. ThisQ <sup>ε</sup> leadspφ <sup>0</sup> i <sup>q,</sup> to <sup>where</sup> considering <sup>Ωi</sup> <sup>is</sup> <sup>the</sup> <sup>support</sup> <sup>of</sup> <sup>φ</sup> i <sup>0,</sup> <sup>i.e.</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> 0 ␣ <sup>0</sup> i <sup>q</sup> ℓ <sup>εpφ0</sup> i ( . <sup>0</sup> i <sup>qu “ Span</sup> φ <sup>0</sup> i <sup>0</sup> i <sup>` Q</sup> ℓ <sup>ε</sup> - S2 elements: Restrictconnectedto Ωi theto nodecorrectioni. ThisQ <sup>ε</sup> leadspφ <sup>0</sup> i <sup>q,</sup> to <sup>where</sup> considering <sup>Ωi</sup> <sup>is</sup> <sup>the</sup> <sup>support</sup> <sup>of</sup> <sup>φ</sup> i <sup>0</sup> <sup>0</sup> i <sup>` Q</sup> ℓ <sup>ε</sup> <sup>0</sup> i <sup>q</sup> |Ωi ℓ <sup>εpφ0</sup> i . (49) ( V ε H,1 <sup>“ Span</sup> ␣ φ <sup>0</sup> i - S3 : Localize the fine-scale problem (46) by replacing Ω by smaller domains. In practice, these are subdomains SK including the element K, with prescribed homogeneous Dirichlet boundary conditions on BSK . More precisely, for each K P TH and each basis function φ <sup>0</sup> i <sup>P V</sup> H <sup>0</sup> <sup>,</sup> <sup>a</sup> <sup>local</sup> <sup>correction</sup> <sup>Qε</sup> K <sup>pφ0</sup> i|K <sup>q P V</sup> <sup>f</sup> <sup>pSK</sup> <sup>q</sup> <sup>is</sup> <sup>defined</sup> <sup>as</sup> <sup>the</sup> <sup>solution</sup> <sup>to:</sup> H <sup>0</sup> <sup>,</sup> <sup>a</sup> <sup>local</sup> <sup>correction</sup> <sup>Qε</sup> <sup>0</sup> i|K <sup>q P V</sup> <sup>f</sup> <sup>pSK</sup> <sup>q</sup> <sup>is</sup> <sup>defined</sup> <sup>as</sup> <sup>the</sup> <sup>solution</sup> <sup>to:</sup> <sup>0</sup> i <sup>P V</sup> H <sup>0</sup> <sup>ε</sup> K <sup>pφ0</sup> i| A <sup>ε</sup> ∇ ` ` @v P V <sup>f</sup> pSKq, ˆSK i <sup>0</sup> |K <sup>q ` Qε</sup> K ˘ πpφi <sup>0</sup> | <sup>ε</sup> K <sup>pφ</sup> i <sup>0</sup> | i <sup>0</sup> |K <sup>q</sup> ¨ ∇v “ 0, where i <sup>0</sup> |K <sup>q</sup> <sup>is</sup> <sup>the</sup> <sup>affine</sup> <sup>function</sup> <sup>on</sup> <sup>SK</sup> <sup>which</sup> <sup>is</sup> <sup>equal</sup> <sup>to</sup> <sup>φ</sup> i <sup>0</sup> | <sup>0</sup> i <sup>P</sup> <sup>V</sup> H <sup>0</sup> and where πpφi <sup>0</sup> | V <sup>f</sup> pSKq “ H0 <sup>1</sup> 0 <sup>1pSK</sup> <sup>q</sup> and where πpφi <sup>0</sup> |K <sup>q</sup> <sup>is</sup> <sup>the</sup> <sup>affine</sup> <sup>function</sup> <sup>on</sup> <sup>SK</sup> <sup>which</sup> <sup>is</sup> <sup>equal</sup> <sup>to</sup> <sup>φ</sup> i <sup>0</sup> |K <sup>on</sup> <sup>K.</sup> <sup>Local</sup> correctors Q <sup>ε</sup> K <sup>are</sup> <sup>then</sup> <sup>connected</sup> <sup>together</sup> <sup>in</sup> <sup>a</sup> <sup>global</sup> <sup>corrector</sup> <sup>Qε:</sup> <sup>for</sup> <sup>any</sup> <sup>φ0</sup> i <sup>P</sup> <sup>V</sup> H <sup>0</sup> <sup>,</sup> <sup>ε</sup> K <sup>are</sup> <sup>then</sup> <sup>connected</sup> <sup>together</sup> <sup>in</sup> <sup>a</sup> <sup>global</sup> <sup>corrector</sup> <sup>Qε:</sup> <sup>for</sup> <sup>any</sup> <sup>φ0</sup> i correctorswe set Q <sup>ε</sup> pφQ <sup>0</sup> i <sup>ε</sup> K <sup>q “are</sup> <sup>then</sup> Q <sup>ε</sup> K <sup>connectedpφ0</sup> i|K <sup>q|K</sup> <sup>.</sup> <sup>togetherThe</sup> <sup>MsFEMin</sup> <sup>a</sup> <sup>globalfunctionalcorrectorspaceQeventuallyε:</sup> <sup>for</sup> <sup>anyreadsφ0</sup> i <sup>P</sup> <sup>V</sup> H <sup>0</sup> <sup>,</sup> ÿ <sup>0</sup> i|K <sup>q|K</sup> <sup>.</sup> <sup>The</sup> <sup>MsFEM</sup> <sup>functional</sup> <sup>space</sup> <sup>eventually</sup> <sup>reads</sup> <sup>0</sup> i <sup>q “</sup> KPTH PT ÿ Q <sup>ε</sup> <sup>ε</sup> K <sup>pφ0</sup> i| <sup>0</sup> i <sup>` Qεpφ0</sup> i <sup>0</sup> i <sup>qu</sup> (50) <sup>0</sup> i <sup>q “ φ0</sup> i V εH,2 <sup>“ SpantRεpφ0</sup> i <sup>0</sup> i <sup>qu “ Spantφ0</sup> i where the global reconstruction operator R <sup>ε</sup> is defined by R <sup>ε</sup> pφ <sup>0</sup> i <sup>0</sup> i <sup>` Qεpφ0</sup> i <sup>0</sup> i <sup>q.</sup> - S4 : Replace V <sup>f</sup> pSK q by a discrete P1-Lagrange FE space Vh <sup>f</sup> <sup>pSK</sup> <sup>q</sup> <sup>associated</sup> <sup>to</sup> <sup>a</sup> <sup>fine</sup> grid Th obtained from a regular refinement of TH. The mesh size h should be chosen so that oscillations of the data can be accurately captured. Remark 5.2. Simplification S1 can be motivated by the following heuristics. Assume for instance that IH is the Clément interpolant. Consider v P V <sup>f</sup> . By definition of the Clément interpolant, we infer from IHpvq “ 0 that, for any i, ˆ Ωi v p “ 0 for any continuous and piecewise affine function p on Ωi. The function v then satisfies a Poincaré inequality of the type }v}L2pΩiq ď CH}∇v}L2pΩiq. Since the mesh is regular, we hence get }v}L2pΩq ď CH}∇v}L2pΩq. It is thus expected that the left- and the right-hand sides of the corrector problem (43) have different orders of magnitude. 25 From simplifications S1 - S4, a general MsFEM formulation with possible oversampling is obtained. For each K P TH and each basis function φ <sup>0</sup> i <sup>P V</sup> H <sup>0</sup> <sup>, the local correction Qε</sup> h,K <sup>pφ0</sup> i|K <sup>q P</sup> H <sup>0</sup> <sup>, the local correction Qε</sup> <sup>0</sup> i|K <sup>q P</sup> <sup>ε</sup> h,K <sup>pφ0</sup> i| V <sup>f</sup> h <sup>f</sup> <sup>pSKq</sup> <sup>is</sup> <sup>defined</sup> <sup>as</sup> <sup>the</sup> <sup>solution</sup> <sup>to:</sup> <sup>0</sup> i <sup>P V</sup> H <sup>0</sup> <sup>ε</sup> h <sup>defined by Qε</sup> h ` @v P Vh <sup>f</sup> <sup>pSK</sup> <sup>q,</sup> ˆSK A <sup>ε</sup> ∇ πpφ <sup>0</sup> i| <sup>0</sup> i|K <sup>q ` Qε</sup> <sup>0</sup> i|K <sup>q</sup> <sup>ε</sup> h,K <sup>pφ0</sup> i| ˘ ¨ ∇v “ 0. Local correctors Q <sup>ε</sup> <sup>ε</sup> h,K <sup>are then connected together in a global corrector Qε</sup> h <sup>ε</sup> h <sup>pφ0</sup> i Local correctors Q <sup>ε</sup> h,K <sup>are then connected together in a global corrector Qε</sup> h <sup>defined by Qε</sup> h <sup>pφ0</sup> i <sup>q “</sup> PTH Q <sup>ε</sup> h,K <sup>pφ0</sup> i <sup>q</sup> |K <sup>for</sup> <sup>any</sup> <sup>φ0</sup> i <sup>P</sup> <sup>V</sup> H <sup>0</sup> <sup>.</sup> The MsFEM functional space eventually reads VH <sup>ε</sup> <sup>“</sup> ÿ Q <sup>ε</sup> <sup>0</sup> i <sup>q</sup> |K <sup>for</sup> <sup>any</sup> <sup>φ0</sup> i <sup>0</sup> i <sup>P</sup> <sup>V</sup> H <sup>0</sup> H <sup>0</sup> <sup>.</sup> The MsFEM functional space eventually reads VH <sup>ε</sup> H <sup>ε</sup> <sup>“</sup> KPTH <sup>ε</sup> h,K <sup>pφ0</sup> i SpantR <sup>ε</sup> h by R <sup>ε</sup> <sup>0</sup> i <sup>qu</sup> <sup>where</sup> <sup>the</sup> <sup>global</sup> <sup>reconstruction</sup> <sup>operator</sup> <sup>R</sup> h <sup>ε</sup> <sup>ε</sup> h <sup>pφ0</sup> i <sup>0</sup> i <sup>` Q</sup> h <sup>ε</sup> Spanby Rt <sup>ε</sup> hR <sup>pφε</sup> h <sup>0</sup> i <sup>pq “φ0</sup> i <sup>qu φ0</sup> i <sup>“`Span Q</sup> h <sup>ε</sup> <sup>ptφφ00</sup> i <sup>` Q</sup> h <sup>ε</sup> <sup>pφ0</sup> i <sup>qu</sup> <sup>where</sup> <sup>the</sup> <sup>global</sup> <sup>reconstruction</sup> <sup>operator</sup> <sup>R</sup> h <sup>ε</sup> <sup>is</sup> <sup>defined</sup> <sup>0</sup> i <sup>q.</sup> <sup>ε</sup> h <sup>pφ0</sup> i <sup>0</sup> i <sup>q “ φ0</sup> i <sup>0</sup> i <sup>qu</sup> <sup>“</sup> <sup>Spantφ0</sup> i h <sup>ε</sup> <sup>pφ0</sup> i <sup>0</sup> i <sup>` Q</sup> h <sup>ε</sup> h <sup>ε</sup> <sup>pφ0</sup> i The MsFEM approximation of u <sup>ε</sup> is u <sup>ε</sup> h <sup>ε</sup> <sup>puHq P V</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>solution</sup> <sup>to</sup> <sup>the</sup> <sup>problem</sup> <sup>ε</sup> H <sup>“ R</sup> h <sup>ε</sup> ΓN A <sup>ε</sup> ∇u <sup>ε</sup> H <sup>¨ ∇v</sup> <sup>“</sup> fv ` ˆ ˆΩ @v P VH <sup>0</sup> <sup>,</sup> KPTH ÿ ˆK g v, which is a Petrov-Galerkin formulation (in the spirit of (47)), or to the problem ΓN fv ` ˆ A <sup>ε</sup> ∇u <sup>ε</sup> H <sup>¨ ∇v</sup> <sup>“</sup> ˆΩ @v P VH <sup>ε</sup> <sup>,</sup> KPTH ÿ ˆK g v, (51) which is a Galerkin formulation (in the spirit of (48)). Even though the continuous formulations (47) and (48) are equivalent, the two above discrete formulations are a priori not equivalent. Remark 5.3. When choosing SK “ K, the Galerkin formulation (51) is exactly the MsFEM formulation described in Section 3.2. Remark 5.4. In [37], a conforming projection PH,h that maps piecewise continuous functions on TH to elements of V <sup>f</sup> h <sup>“</sup> <sup>f</sup> h <sup>which</sup> <sup>can</sup> <sup>be</sup> <sup>constructed</sup> <sup>from</sup> <sup>simple</sup> <sup>local</sup> <sup>averaging</sup> <sup>on</sup> <sup>element</sup> hhere. <sup>is</sup> <sup>introduced,</sup> <sup>in</sup> <sup>order</sup> <sup>to</sup> <sup>define</sup> <sup>a</sup> <sup>conforming</sup> <sup>global</sup> <sup>corrector</sup> <sup>Qrε</sup> on TH to elements of V <sup>f</sup> h <sup>“</sup> PH,hpQ <sup>ε</sup> h <sup>q.</sup> <sup>This</sup> <sup>projector,</sup> <sup>which</sup> <sup>can</sup> <sup>be</sup> <sup>constructed</sup> <sup>from</sup> <sup>simple</sup> <sup>local</sup> <sup>averaging</sup> <sup>on</sup> <sup>element</sup> h <sup>is</sup> <sup>introduced,</sup> <sup>in</sup> <sup>order</sup> <sup>to</sup> <sup>define</sup> <sup>a</sup> <sup>conforming</sup> <sup>global</sup> <sup>corrector</sup> <sup>Qrε</sup> PH,hpQ <sup>ε</sup> h <sup>q.</sup> <sup>This</sup> <sup>projector,</sup> <sup>which</sup> <sup>can</sup> <sup>be</sup> <sup>constructed</sup> <sup>from</sup> <sup>simple</sup> <sup>local</sup> <sup>averaging</sup> <sup>on</sup> <sup>element</sup> edges, is not consideredhhere. <sup>is</sup> <sup>introduced,</sup> <sup>in</sup> <sup>order</sup> <sup>to</sup> <sup>define</sup> <sup>a</sup> <sup>conforming</sup> <sup>global</sup> <sup>corrector</sup> <sup>Qrε</sup> 5.2 Definition of error indicators using CRE The previous formulation of MsFEM indicates that 3 parameters can be tuned in an adaptive procedure in order to improve the accuracy: ‚ the local size HK of the coarse mesh TH. Simplification S1 amounts to ignoring the influence of f and g in the micro-scale equations. This assumption is valid provided HK is comparable to the characteristic length of spatial variations of the external loading and macroscale solution (capability of TH to represent long wavelength phenomena). Remark 5.2 also indicates that, the smaller HK is, the better Simplification S1 is justified. The validity of simplification S2 is also related to HK. If the set tHK u is not chosen correctly, the coarse-scale discretization error can dominate the overall approximation error. 26 ‚ the size dK (minimum patch radius) of the computational domains SK used to solve the micro-scale equations obtained after the simplification S3 . If the set tdK u is not chosen correctly, the artificial boundary conditions set on BSK may strongly dominate the overall approximation error. ‚ the local size hK of the fine mesh used to solve the micro-scale equations (in each SK) after applying simplification S4 . If the set thK u is not chosen correctly, a fine-scale discretization error (say of order Oph{εq if a P1 approximation is used to solve the problems in SK) 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; (ii) to adjust locally and optimally the relevant parameters among the three ones mentioned above. The first item can be directly addressed with a spatial decomposition, over the macro mesh TH, of the a posteriori error H <sup>q built in Section 4, in order to derive local error estimates</sup> in each element K. As regards the second item, it requires the definition of specific error indicatorsestimate ∆associatedMsF EM “ EtoCREeachpuperror <sup>ε</sup> H <sup>, pqε</sup> source. H error <sup>ε</sup> H <sup>, pqε</sup> H <sup>q built in Section 4, in order to derive local error estimates</sup> in each element K. As regards the second item, it requires the definition of specific error indicatorsestimate ∆associatedMsF EM “ EtoCREeachpuperror <sup>ε</sup> H <sup>, pqε</sup> source. In order to set up such error indicators, we introduce two intermediate reference problems, denoted PR1 and PR2 below. The first intermediate reference problem, denoted PR1, is obtained from the initial reference problem (3) (recast as (47) or (48) and denoted PR0 ) by applying simplifications S1 ε and S2 . The functional space associated with PR1 is thus the space V H,1 <sup>defined</sup> <sup>by</sup> <sup>(49),</sup> ε and S2 . The functional space associated with PR1 is thus the space V H,1 <sup>defined</sup> <sup>by</sup> <sup>(49),</sup> and the solution to PR1 is denoted u <sup>ε</sup> H,1 <sup>.</sup> <sup>We</sup> <sup>note</sup> <sup>that,</sup> <sup>in</sup> <sup>PR1</sup> <sup>,</sup> <sup>fine-scale</sup> <sup>computations</sup> <sup>are</sup> and the solution to PR1 is denoted u <sup>ε</sup> H,1 <sup>.</sup> <sup>We</sup> <sup>note</sup> <sup>that,</sup> <sup>in</sup> <sup>PR1</sup> <sup>,</sup> <sup>fine-scale</sup> <sup>computations</sup> <sup>are</sup> still defined over the whole domain Ω (infinite oversampling). Assuming for instance that we adopt as PR0 the Galerkin formulation (48), the problem PR1 reads: Ω K ε H,1 <sup>,</sup> KPTH ÿ ˆ Find u <sup>ε</sup> H,1 <sup>P V</sup> ε H,1 <sup>such</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P V</sup> ˆ ˆΓN g v. A <sup>ε</sup> ∇u <sup>ε</sup> H,1 <sup>¨ ∇v</sup> <sup>“</sup> fv ` The second intermediate reference problem, denoted PR2, is obtained from the initial reference problem PR0 by applying simplifications S1, S2 and S3 . The functional space ε associated with PR2 is thus the space V H,2 <sup>defined</sup> <sup>by</sup> <sup>(50),</sup> <sup>and</sup> <sup>the</sup> <sup>solution</sup> <sup>to</sup> <sup>PR2</sup> <sup>is</sup> ε associated with PR2 is thus the space V H,2 <sup>defined</sup> <sup>by</sup> <sup>(50),</sup> <sup>and</sup> <sup>the</sup> <sup>solution</sup> <sup>to</sup> <sup>PR2</sup> <sup>is</sup> denoted u <sup>ε</sup> H,2 <sup>.</sup> <sup>In</sup> <sup>PR2</sup> <sup>,</sup> <sup>the</sup> <sup>fine-scale</sup> <sup>computations</sup> <sup>are</sup> <sup>defined</sup> <sup>over</sup> <sup>the</sup> <sup>subdomains</sup> <sup>SK</sup> <sup>(and</sup> denoted u <sup>ε</sup> H,2 <sup>.</sup> <sup>In</sup> <sup>PR2</sup> <sup>,</sup> <sup>the</sup> <sup>fine-scale</sup> <sup>computations</sup> <sup>are</sup> <sup>defined</sup> <sup>over</sup> <sup>the</sup> <sup>subdomains</sup> <sup>SK</sup> <sup>(and</sup> not over Ω) and are performed exactly, without any discretization. If PR0 is again taken as the Galerkin formulation (48), the problem PR2 reads: Ω K ε H,2 <sup>,</sup> KPTH ÿ ˆ Find u <sup>ε</sup> H,2 <sup>P V</sup> ε H,2 <sup>such</sup> <sup>that,</sup> <sup>for</sup> <sup>any</sup> <sup>v</sup> <sup>P V</sup> ˆ ˆΓN g v. A <sup>ε</sup> ∇u <sup>ε</sup> H,2 <sup>¨ ∇v</sup> <sup>“</sup> fv ` Note that the solutions u <sup>ε</sup> <sup>ε</sup> H,1 <sup>and</sup> <sup>uε</sup> <sup>ε</sup> H,2 <sup>may</sup> <sup>be</sup> <sup>nonconforming.</sup> We next write u <sup>ε</sup> ´u <sup>ε</sup> <sup>ε</sup> H <sup>“ puε´u</sup> H, <sup>ε</sup> H, <sup>ε</sup> 1 <sup>q`puε</sup> H, <sup>ε</sup> H,1 <sup>´uε</sup> <sup>ε</sup> H,2 <sup>q`puε</sup> <sup>ε</sup> H,2 <sup>´uε</sup> <sup>ε</sup> H <sup>q,</sup> <sup>hence</sup> <sup>|||uε ´ uε</sup> H <sup>ε</sup> H <sup>|||</sup> H <sup>ď emacro`eover`emicro,</sup> where: ‚ emacro “ ˇˇˇˇˇˇ ˇˇˇˇˇˇ ˇˇˇuε ´ uε 27 ˇˇˇˇˇˇ H,1 ˇˇˇˇˇˇ ˇˇˇˇˇˇ H <sup>is</sup> <sup>the</sup> <sup>part</sup> <sup>of</sup> <sup>the</sup> <sup>error</sup> <sup>due</sup> <sup>to</sup> <sup>the</sup> <sup>coarse-scale</sup> <sup>discretization;</sup> H H,2 <sup>´ uε</sup> ‚ eover “ ˇˇˇˇˇˇˇˇˇ ˇˇˇˇˇˇˇˇˇ H, (46); ˇˇˇˇˇˇuε H, H,1 <sup>´ uε</sup> H,2 H <sup>is</sup> <sup>the</sup> <sup>part</sup> <sup>of</sup> <sup>the</sup> <sup>error</sup> <sup>due</sup> <sup>to</sup> <sup>the</sup> <sup>localization</sup> <sup>on</sup> <sup>SK</sup> <sup>of</sup> <sup>the</sup> problems (46); ˇˇˇˇˇˇ ˇˇˇˇˇˇˇˇˇ ˇˇˇˇˇˇ ˇˇˇˇˇˇˇˇˇ ˇˇˇˇˇˇˇˇˇ ‚ emicro “ ˇˇˇˇˇˇ ˇˇˇˇˇˇ ˇˇˇˇˇˇuε H ˇˇˇˇˇˇ H <sup>is</sup> <sup>the</sup> <sup>part</sup> <sup>of</sup> <sup>the</sup> <sup>error</sup> <sup>due</sup> <sup>to</sup> <sup>the</sup> <sup>fine-scale</sup> <sup>discretization.</sup> These three error components can also be understood as emacro “ lim H SK “Ω, hK Ñ0 <sup>|||uε ´ uε</sup> H <sup>|||</sup> H <sup>,</sup> eover “ lim H <sup>ε</sup> HK Ñ0, hK Ñ0 <sup>|||uε ´ uε</sup> emicro “ lim H SK “Ω, HK Ñ0 <sup>|||uε ´ uε</sup> H <sup>|||</sup> H <sup>.</sup> <sup>ε</sup> H <sup>|||</sup> H <sup>,</sup> <sup>ε</sup> The strategy to assess emacro, eover and emicro from error indicators is illustrated in Figure 5. First, the part emicro of the error can be assessed from the CRE concept considering admissibility in the sense of reference problem PR2 . The associated error indicator thus reads ε H,micro <sup>P V</sup> ε ∆micro “ ECREpup <sup>ε</sup> H,micro <sup>, pq</sup> microH,2 <sup>,</sup> <sup>q, where</sup> <sup>upε</sup> H,2 <sup>and pq</sup> micro <sup>is a flux field that satisfies</sup> g v. (52) @v P V ˆ ˆ fv ` ˆ ÿ ε <sup>ε</sup> H,micro <sup>, pq</sup> microH,2 <sup>,</sup> <sup>q, where</sup> <sup>upε</sup> @v P V ˆ ÿ ε H,2 <sup>and pq</sup> micro <sup>is a flux field that satisfies</sup> g v. (52) ˆ fv ` ˆ H,micro <sup>ε</sup> <sup>P V</sup> qpmicro ¨ ∇v “ Ω ε H,2 <sup>,</sup> PT ÿ ˆ ˆ ΓN @v P V KPTH g v. (52) fv ` ˆ K ε solving (52). H,micro <sup>P</sup> <sup>V</sup> A firstIn practice,possibilitywe wouldproceedbeintoa lookslightlyfor differenta relevantmanner.up <sup>ε</sup> RecallH,indeed2 <sup>and</sup> that <sup>to</sup> <sup>find</sup> our <sup>a</sup> aim <sup>field</sup> is <sup>qp</sup> to getmicro solving (52). A firstIn practice,possibilitywe wouldproceedbeintoa lookslightlyfor differenta relevantmanner.up <sup>ε</sup> H,micro <sup>ε</sup> <sup>P</sup> <sup>V</sup> In practice, we proceed in a slightly different manner. Recall indeed that our aim is to get an approximation of emicro and not to get a certified estimator for the error stemming from using a finite value hK for the fine mesh size. We use that flexibility to simplify the procedure our approach only needs the resolution of some local problems (namely, the problems (54) below).and circumventThere isthenoconstructionneed to findofequilibrateda field qpmicrotractionsthat wouldon theexactlycoarsesolvemesh(52).edges,In particular,as in the estimation of the global error. ε Our approach is based on the fact that, in the conforming case (i.e. when SK “ K), the difference R <sup>ε</sup> pφ <sup>0</sup> i <sup>q ´ R</sup> h <sup>ε</sup> <sup>pφ0</sup> i <sup>q</sup> <sup>between</sup> <sup>the</sup> <sup>basis</sup> <sup>functions</sup> <sup>of</sup> <sup>V</sup> H,2 <sup>and</sup> <sup>those</sup> <sup>of</sup> <sup>V</sup> H <sup>ε</sup> <sup>is</sup> <sup>a</sup> <sup>bubble</sup> <sup>0</sup> i <sup>q ´ R</sup> h <sup>ε</sup> h <sup>ε</sup> <sup>pφ0</sup> i <sup>0</sup> i <sup>q</sup> <sup>between</sup> <sup>the</sup> <sup>basis</sup> <sup>functions</sup> <sup>of</sup> <sup>V</sup> ε case (i.e. when S H,2 <sup>and</sup> <sup>those</sup> <sup>of</sup> <sup>V</sup> H <sup>ε</sup> <sup>0</sup> i <sup>q ´ R</sup> h <sup>ε</sup> . Rather than difference R <sup>ε</sup> pφ <sup>0</sup> i <sup>q ´ R</sup> h <sup>ε</sup> <sup>pφ0</sup> i <sup>q</sup> <sup>between</sup> <sup>the</sup> <sup>basis</sup> <sup>functions</sup> <sup>of</sup> <sup>V</sup> H,2 <sup>and</sup> <sup>those</sup> <sup>of</sup> <sup>V</sup> H <sup>ε</sup> <sup>is</sup> <sup>a</sup> <sup>bubble</sup> ε X0pKq “ Span pR <sup>ε</sup> pφ <sup>0</sup> i <sup>q ´ R</sup> h <sup>ε</sup> <sup>pφ0</sup> i <sup>qq</sup> |K . Rather than working in V H,2 <sup>, our idea is to work in V</sup> <sup>ε</sup> ␣. To improve robustness, we actually( enrichfunction:VH <sup>ε</sup> it <sup>by</sup> belongs <sup>an</sup> <sup>orthogonal</sup> to ‘KX <sup>rspace.</sup> 0pKq with <sup>We</sup> <sup>thus</sup> H <sup>r‘</sup> ´ <sup>define,</sup> X0p <sup>for</sup> Kq <sup>any</sup> ¯ <sup>coarse</sup> <sup>element</sup> <sup>K,</sup> <sup>the</sup> <sup>space</sup> ‘K <sup>r</sup> h <sup>ε</sup> <sup>pφ0</sup> i <sup>0</sup> i <sup>qq</sup> |K ( ␣ ¯ p∇vq <sup>T</sup> A <sup>ε</sup> ∇w “ 0 ´ pR <sup>ε</sup> pφ <sup>0</sup> i X0pKq <sup>define,</sup> <sup>for</sup> ‘K <sup>r</sup> enrichfunction:working inVH <sup>ε</sup> it V <sup>by</sup> belongsH, <sup>an</sup> 2 <sup>, our idea is to work inorthogonal</sup> to ‘KX <sup>rspace.</sup> 0pKq with <sup>We Vthus</sup> H <sup>εr‘</sup> ´ <sup>define,</sup> X0p <sup>for</sup> Kq <sup>any</sup> ¯. To improve robustness, we actually <sup>coarse</sup> <sup>element</sup> <sup>K,</sup> <sup>the</sup> <sup>space</sup> ‘K <sup>r</sup> working in V εH,2 <sup>, our idea is to work in V</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>‘</sup> H <sup>ε</sup> <sup>by</sup> <sup>an</sup> <sup>orthogonal</sup> <sup>space.</sup> <sup>We</sup> <sup>thus</sup> <sup>define,</sup> <sup>for</sup> <sup>any</sup> <sup>coarse</sup> <sup>element</sup> <sup>K,</sup> <sup>the</sup> <sup>space</sup> " XmicropKq “ w P X <sup>r</sup> 0pKq, @v P VH <sup>ε</sup> <sup>ε</sup> H <sup>ε</sup> <sup>,</sup> ␣ ¯ ˆ K , H,micro <sup>ε</sup> <sup>P W</sup> consider the space W H,2 <sup>“</sup> <sup>V</sup> H <sup>ε</sup> <sup>‘</sup> <sup>p‘KXmicro</sup> ε <sup>pKqq</sup> <sup>and</sup> <sup>make</sup> <sup>the</sup> <sup>approximation</sup> <sup>∆micro</sup> <sup>«</sup> H,micro <sup>P W</sup> ε ECREpup <sup>ε</sup> H,micro <sup>, pq</sup> micro <sup>q,</sup> <sup>where</sup> H,2 <sup>,upε</sup> H,2 <sup>and</sup> <sup>qp</sup> micro <sup>is</sup> <sup>a</sup> <sup>flux</sup> <sup>field</sup> g v. <sup>that</sup> <sup>satisfies</sup> (53) @v P W ˆ ˆ fv ` ˆ ÿ consider the space W εH,2 <sup>“</sup> <sup>V</sup> H <sup>ε</sup> ε <sup>ε</sup> H,micro <sup>, pq</sup> micro@v <sup>q,</sup> P W <sup>where</sup> H,2 <sup>,upε</sup> PT ÿ K ε H,2 <sup>and</sup> <sup>qp</sup> micro <sup>is</sup> <sup>a</sup> <sup>flux</sup> <sup>field</sup> g v. <sup>that</sup> <sup>satisfies</sup> ˆ fv ` ˆ Ω ε H,2 <sup>,</sup> ˆ ˆ ΓN @v P W KPTH g v. (53) qpmicro ¨ ∇v “ fv ` ˆ H,micro <sup>“</sup> <sup>uε</sup> H <sup>P</sup> <sup>V</sup> H <sup>ε</sup> <sup>Ă</sup> <sup>W</sup> ε coarse element K, we define wK P XmicropKq solution to: We choose up <sup>ε</sup> H,2 <sup>.</sup> <sup>To</sup> <sup>build</sup> <sup>qp</sup> micro <sup>,</sup> <sup>we</sup> <sup>proceed</sup> <sup>as</sup> <sup>follows.</sup> <sup>For</sup> <sup>any</sup> coarse element We choose up <sup>ε</sup> H,micro <sup>ε</sup> <sup>“</sup> <sup>uε</sup> H <sup>ε</sup> H <sup>P</sup> <sup>V</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>Ă</sup> <sup>W</sup> ˆ ˆ K @v P XmicropKq, ˆ K H p∇vq <sup>T</sup> A <sup>ε</sup> ∇u <sup>ε</sup> H <sup>.</sup> (54) <sup>ε</sup> p∇vq <sup>T</sup> A <sup>ε</sup> ∇wK “ K fv ´ 28 This problem is in practice solved using a fine discretization (i.e. finer than the current H <sup>`</sup> K 1K A <sup>ε</sup> ∇wK. It is easy ÿ to check that (53) is satisfied. Consider indeed, with obvious notations, a generic function value hK of the fine meshε on K). We next set qpmicro “ A <sup>ε</sup> ∇u <sup>ε</sup> H <sup>`</sup> K ÿ K 1K A <sup>ε</sup> ∇wK. It is easy to check that (53) is satisfied. Consider indeed, with obvious notations, a generic function ε v “ vH ` K vK in W H,2 <sup>.</sup> <sup>We</sup> <sup>compute</sup> ÿ vK in W ε H,2 <sup>.</sup> <sup>We</sup> <sup>compute</sup> K PT ÿ PT ÿ PT ÿ that K ÿ qpmicro ¨ ∇v <sup>ε</sup> H <sup>` ∇wKq</sup> KPTH ˆK p∇vHq <sup>T</sup> A <sup>ε</sup> ∇u <sup>ε</sup> H <sup>`</sup> p∇vHq <sup>T</sup> A <sup>ε</sup> ∇u <sup>ε</sup> H “ “ KPTH KPTH p∇vH ` ∇vK q <sup>T</sup> A <sup>ε</sup> p∇u <sup>ε</sup> H p∇vH q <sup>T</sup> A <sup>ε</sup> ∇wK ` p∇vKq <sup>T</sup> A <sup>ε</sup> p∇u <sup>ε</sup> H <sup>` ∇wKq.</sup> p∇vKq <sup>T</sup> A <sup>ε</sup> p∇u <sup>ε</sup> KPTH ÿ ˆ K PTH ÿ ˆK ˆ KPTH ÿ ˆ ˆ K K For the first term, we use the variational formulation satisfied by u <sup>ε</sup> H <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>second</sup> <sup>term,</sup> we use the orthogonality condition of the definition of XmicropKq. For the third term, we use the definition (54) of wK . We thus obtain that KPTH ÿ PT ÿ f vK “ Ω ˆK ˆ qpmicro ¨ ∇v “ ˆ ˆΓN ˆΩ f v ` KPTH ÿ ˆK ˆΓN g vH ` g v, f vH ` which is exactly (53). ε Remark 5.5. If we formally assume that hK “ 0, then ∆micro “ 0. Indeed, in that case, X0pKq “ t0u and thus W H,2 <sup>“</sup> <sup>V</sup> <sup>ε</sup> H <sup>,</sup> <sup>which</sup> <sup>leads</sup> <sup>to</sup> ∆micro “ 0. we have <sup>r</sup> H <sup>.</sup> <sup>We</sup> <sup>then</sup> <sup>have</sup> <sup>qp</sup> micro <sup>“</sup> <sup>Aε∇uε</sup> ε that H,2 <sup>“</sup> <sup>V</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>.</sup> <sup>We</sup> <sup>then</sup> <sup>have</sup> <sup>qp</sup> micro <sup>“</sup> <sup>Aε∇u</sup> H <sup>ε</sup> X0pKq “ t0u and thus W H,2 <sup>“</sup> <sup>V</sup> <sup>ε</sup> H <sup>,</sup> <sup>which</sup> <sup>leads</sup> <sup>to</sup> ∆micro “ 0. we have <sup>r</sup> H <sup>.</sup> <sup>We</sup> <sup>then</sup> <sup>have</sup> <sup>qp</sup> micro <sup>“</sup> <sup>Aε∇uε</sup> Second, the part eover of the error can be assessed assuming that H,2 H,1 <sup>´ uε</sup> H <sup>«</sup> H H,1 <sup>is</sup> <sup>solution</sup> <sup>to</sup> <sup>the</sup> <sup>problem</sup> <sup>obtained</sup> <sup>from</sup> <sup>PR1</sup> <sup>and</sup> <sup>applying</sup> <sup>sim-</sup> H,1 <sup>´ uε</sup> ˇˇˇˇˇˇˇˇˇuε ˇˇˇˇˇˇˇˇˇ plification S4 (that is, discretization on a fine mesh of size h of the corrector problems). The ˇˇˇassociatedˇˇˇˇˇˇruε functionalˇˇˇˇˇˇˇˇˇH <sup>,</sup> <sup>where</sup> space <sup>urε</sup> is ˇˇˇˇˇˇ ˇˇˇˇˇˇ <sup>and</sup> ˇˇˇuε H,1 <sup>´ uε</sup> H,2 ˇˇˇˇˇˇˇˇˇ ˇˇˇˇˇˇ ˇˇˇ ˇˇˇruε Second, the part eover of the error can be assessed assuming that ˇˇˇˇˇˇ H H,1 <sup>´ uε</sup> H S4 ˇˇˇˇˇˇˇˇˇ ˇˇˇˇˇˇ ˇˇˇˇˇˇ H, (that is, functionalˇˇˇH <sup>,</sup> <sup>where</sup> space <sup>urε</sup> H,1 <sup>is</sup> <sup>solution</sup> <sup>to</sup> <sup>the</sup> <sup>problem</sup> <sup>obtained</sup> <sup>from</sup> <sup>PR1</sup> <sup>and</sup> <sup>applying</sup> <sup>sim-</sup> plification S4 (that is, discretization on a fine mesh of size h of the corrector problems). The associated functionalH <sup>,</sup> <sup>where</sup> space <sup>urε</sup> is ␣ <sup>0</sup> i <sup>q</sup> |Ωi ℓ,h <sup>ε</sup> <sup>pφ0</sup> i i ( (55) H, <sup>ε</sup> 1 <sup>“ Span</sup> φ <sup>0</sup> i <sup>0</sup> i <sup>` Qε</sup> where Q <sup>ε</sup> <sup>ε</sup> ℓ,h <sup>pφ0</sup> i VrH, <sup>ε</sup> where Q <sup>ε</sup> ℓ,h <sup>pφ0</sup> i <sup>q</sup> <sup>is</sup> <sup>the</sup> <sup>solution</sup> <sup>to</sup> <sup>(46)</sup> <sup>after</sup> <sup>discretization</sup> <sup>on</sup> <sup>a</sup> <sup>fine</sup> <sup>mesh</sup> <sup>of</sup> <sup>size</sup> <sup>h.</sup> An error indicator for eover could then be constructed from the CRE concept considering admissibility in the sense of the previous problem. It reads ∆over “ ECREpup <sup>ε</sup> H,over <sup>, pq</sup> over <sup>q,</sup> where up <sup>ε</sup> H,over <sup>P</sup> <sup>Vr</sup> H, <sup>ε</sup> 1 <sup>and</sup> <sup>qp</sup> over <sup>is</sup> <sup>a</sup> <sup>flux</sup> <sup>field</sup> <sup>that</sup> <sup>satisfies</sup> in <sup>ε</sup> H,over <sup>P</sup> <sup>Vr</sup> H, <sup>ε</sup> H, @v P V <sup>r</sup> <sup>ε</sup> H,1 <sup>,</sup> where up <sup>ε</sup> sense of the previous problem. It H, <sup>ε</sup> 1 <sup>and</sup> <sup>qp</sup> over <sup>is</sup> <sup>a</sup> <sup>flux</sup> <sup>field</sup> <sup>that</sup> <sup>satisfies</sup> H,1 <sup>,</sup> ˆ ˆ g v. <sup>ε</sup> H,over <sup>, pq</sup> over <sup>q,</sup> ΓN ˆ <sup>ε</sup> H, H, <sup>is</sup> 1 <sup>definedrather</sup> <sup>bythan</sup> <sup>in</sup> <sup>Vr</sup> <sup>ε</sup> ˆ ˆ Ω fv ` qpover ¨ ∇v “ Ω W <sup>ε</sup> WInH, <sup>ε</sup> practice,1 <sup>“ V</sup> H <sup>ε</sup> <sup>‘ p‘</sup> as for <sup>K</sup> e <sup>X</sup> micro <sup>overp</sup>, <sup>K</sup> we <sup>qq</sup> proceed <sup>.</sup> <sup>The</sup> <sup>enrichment</sup> differently, <sup>space</sup> and work <sup>Xover</sup> in <sup>pKĂq</sup> H, <sup>is</sup> Ă W <sup>ε</sup> H,1 <sup>,</sup> <sup>where</sup> WInH, <sup>ε</sup> practice,1 <sup>“ V</sup> H <sup>ε</sup> <sup>‘ p‘</sup> as for <sup>K</sup> e <sup>X</sup> micro <sup>overp</sup>, <sup>K</sup> we <sup>qq</sup> proceed <sup>.</sup> <sup>The</sup> <sup>enrichment</sup> differently, <sup>space</sup> and work <sup>Xover</sup> in <sup>pKĂq</sup> H, <sup>is</sup> 1 <sup>definedrather</sup> <sup>bythan</sup> <sup>in</sup> <sup>Vr</sup> <sup>ε</sup> Ă , ˆ " H, <sup>ε</sup> practice,1 <sup>“ V</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>‘ p‘KXoverpKqq.</sup> <sup>The</sup> <sup>enrichment</sup> <sup>space</sup> <sup>XoverpKq</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> , 29 XoverpKq “ " w|K, H, w P V <sup>r</sup> <sup>ε</sup> H,1 <sup>,</sup> @v P VH <sup>ε</sup> H <sup>ε</sup> <sup>,</sup> ˆ K p∇vq <sup>T</sup> A <sup>ε</sup> ∇w “ 0 H, where V <sup>r</sup> <sup>ε</sup> domain H,over <sup>“</sup> <sup>uε</sup> H current <sup>ε</sup> <sup>ε</sup> H <sup>P</sup> <sup>V</sup> H <sup>ε</sup> H <sup>`</sup> H,1 <sup>is</sup> <sup>defined</sup> <sup>by</sup> <sup>(55)</sup> <sup>(in</sup> <sup>practice,</sup> <sup>the</sup> <sup>corrector</sup> <sup>problems</sup> <sup>(46)</sup> <sup>are</sup> <sup>solved</sup> <sup>on</sup> <sup>a</sup> <sup>large</sup> where V <sup>r</sup> <sup>ε</sup> H,over <sup>“</sup> <sup>uε</sup> H <sup>P</sup> <sup>V</sup> <sup>ε</sup> W <sup>ε</sup> H <sup>`</sup> K 1K A <sup>ε</sup> ∇wK, domain S <sup>r</sup> K, larger than the current oversampling domain SK, but small enough for (46) to ÿ bewhereaffordable).wK P XoverWepKchooseq is theup <sup>ε</sup> solution to H <sup>Ă</sup> <sup>Ă</sup> H,1 <sup>and</sup> <sup>qp</sup> over <sup>“</sup> <sup>Aε∇uε</sup> K ÿ H <sup>ε</sup> <sup>Ă</sup> W <sup>Ă</sup> H, <sup>ε</sup> <sup>ε</sup> H domain SK, but small H,1 <sup>and</sup> <sup>qp</sup> over <sup>“</sup> <sup>Aε∇uε</sup> K 1K A <sup>ε</sup> ∇wK, where wK P XoverpKq is the solution to H <sup>.</sup> p∇vq <sup>T</sup> A <sup>ε</sup> ∇u <sup>ε</sup> ˆK ˆ p∇vq <sup>T</sup> A <sup>ε</sup> ∇wK “ ˆ ˆΓN g v ´ @v P XoverpKq, ˆK K fv ` qpover ¨ ∇v “ ΓN ˆΩ ˆ We check that PT ÿ g v for any v P W <sup>Ă</sup> H, <sup>ε</sup> 1 <sup>and</sup> <sup>make</sup> <sup>the</sup> <sup>approxi-</sup> KPTH ˆK fv ` Remark mation ∆over 5.6. «If ECREwe pup <sup>ε</sup> Remark 5.6. If we formally assume that SK “ Ω, then ∆over “ 0. Indeed, in that case, H,1 <sup>“</sup> <sup>V</sup> H <sup>ε</sup> <sup>.</sup> The functions in XoverpKq are thus piecewise constant, and hence H <sup>,</sup> <sup>which</sup> <sup>leads</sup> <sup>to</sup> <sup>∆over</sup> <sup>“ 0.</sup> we have V <sup>r</sup> <sup>ε</sup> qpover “ A <sup>ε</sup> ∇u <sup>ε</sup> H, <sup>ε</sup> 1 <sup>“</sup> <sup>V</sup> H <sup>ε</sup> formally <sup>ε</sup> H,over <sup>, p</sup> assume <sup>q</sup> over <sup>q.</sup> H,1 <sup>“</sup> <sup>V</sup> H <sup>ε</sup> <sup>.</sup> The functions in XoverpKq are thus piecewise constant, and hence H <sup>,</sup> <sup>which</sup> <sup>leads</sup> <sup>to</sup> <sup>∆over</sup> <sup>“ 0.</sup> we have V <sup>r</sup> <sup>ε</sup> Third, the part emacro of the error can be assessed assuming that H,1 qpover “ A <sup>ε</sup> ∇u <sup>ε</sup> H and S4 (localization and discretization of the corrector problems).ˇˇˇˇˇˇˇˇˇuε ´The uε associatedˇˇˇˇˇˇˇˇˇH <sup>« |||urε ´</sup> func- <sup>uε</sup> where ur <sup>ε</sup> is solution to the problem obtained from PR0 and applying simplifications S3 the CRE concept considering admissibility in the sense of the previous problem. It reads tional space is denoted V <sup>r</sup> <sup>ε</sup> . An error indicator for emacro could then be constructed from ∆macro “ ECRE pup <sup>ε</sup> H,macro <sup>, pq</sup> macro <sup>q, where</sup> <sup>upε</sup> H,macro <sup>P</sup> <sup>Vr</sup> <sup>ε</sup> <sup>and pq</sup> macrog v. <sup>is a flux field that satisfies</sup> ˆ ˆ fv ` ˆ H <sup>,</sup> <sup>which</sup> <sup>leads</sup> <sup>to</sup> <sup>∆over</sup> <sup>“ 0.</sup> ˇˇˇˇˇˇˇˇˇ Third, the part emacro of the error can be assessed assuming that ˇˇˇˇˇˇˇˇˇ ˇˇˇuε ´The uε H,1 ˇˇˇˇˇˇˇˇˇ ˇˇˇˇˇˇˇˇˇ ˇˇˇˇˇˇˇˇˇ H associatedH <sup>« |||urε ´</sup> func- <sup>uε</sup> H <sup>|||</sup> H <sup>,</sup> <sup>ε</sup> H,macro <sup>, pq</sup> macro <sup>q, where</sup> <sup>upε</sup> ˆ Ω fv ` Ω <sup>ε</sup> H,macro <sup>P</sup> <sup>Vr</sup> <sup>ε</sup> <sup>and pq</sup> macrog v. <sup>is a flux field that satisfies</sup> ˆ fv ` ˆ @v P V <sup>r</sup> <sup>ε</sup>, ˆ ˆ ˆ ΓN g v. qpmacro ¨ ∇v “ H <sup>by</sup> H W <sup>ε</sup> “ V <sup>ε</sup> H <sup>‘ Xmacro</sup> <sup>where</sup> <sup>the</sup> <sup>enrichment</sup> functionsIn practice,of degreeand since4 overV <sup>r</sup> <sup>ε</sup> thediffersmacrofrommeshV <sup>ε</sup> Ă H <sup>by</sup> <sup>macroscale</sup> <sup>functions,</sup> <sup>we</sup> <sup>consider</sup> <sup>the</sup> <sup>space</sup> W <sup>ε</sup> “ V <sup>ε</sup> H <sup>‘ Xmacro</sup> <sup>where</sup> <sup>the</sup> <sup>enrichment</sup> <sup>space</sup> <sup>Xmacro</sup> <sup>is</sup> <sup>made</sup> <sup>of</sup> <sup>monoscale</sup> <sup>Lagrange</sup> <sup>basis</sup> functionsIn practice,of degreeand since4 overV <sup>r</sup> <sup>ε</sup> thediffersmacrofrommeshV <sup>ε</sup> TH. In other words, Xmacro is obtained from a higher-degreeĂ space VH <sup>0</sup> <sup>and</sup> <sup>orthogonalization</sup> <sup>with</sup> <sup>respect</sup> <sup>to</sup> <sup>V</sup> <sup>ε</sup> H,macro <sup>“ uε</sup> W <sup>ε</sup> “ V <sup>ε</sup> H <sup>‘ Xmacro</sup> <sup>where</sup> <sup>the</sup> <sup>enrichment</sup> <sup>space</sup> <sup>Xmacro</sup> <sup>is</sup> <sup>made</sup> <sup>of</sup> <sup>monoscale</sup> <sup>Lagrange</sup> <sup>basis</sup> functionsIn practice,of degreeand since4 overV <sup>r</sup> <sup>ε</sup> thediffersmacrofrommeshV <sup>ε</sup> TH. In other words, Xmacro is obtained from a higher-degreeĂ space VH <sup>0</sup> <sup>and</sup> <sup>orthogonalization</sup> <sup>with</sup> <sup>respect</sup> <sup>to</sup> <sup>V</sup> <sup>ε</sup> H,macro <sup>“ uε</sup> H <sup>0</sup> <sup>and</sup> <sup>orthogonalization</sup> <sup>with</sup> <sup>respect</sup> <sup>to</sup> <sup>V</sup> <sup>ε</sup> H <sup>ε</sup> <sup>Ă</sup> W <sup>Ăε</sup> and qpmacro “ A <sup>ε</sup> ∇uH <sup>ε</sup> @v P Xmacro, ˆ V <sup>ε</sup> H,macro <sup>ε</sup> <sup>“ uε</sup> H H <sup>.</sup> <sup>ε</sup> <sup>ε</sup> H <sup>P</sup> H <sup>ε</sup> <sup>.</sup> <sup>We</sup> <sup>take</sup> <sup>upε</sup> <sup>solution</sup> <sup>to</sup> H p∇vq <sup>T</sup> A <sup>ε</sup> ∇u <sup>ε</sup> fv ` ˆ ˆ Ω ΓN @v P Xmacro, ˆ H <sup>.</sup> <sup>We</sup> H <sup>ε</sup> <sup>` δqp</sup> macro <sup>,</sup> <sup>where</sup> <sup>δqp</sup> macro <sup>is</sup> <sup>a</sup> <sup>solution</sup> <sup>to</sup> ˆ fv ` ˆ g v ´ ˆ p∇vq Ω g v ´ ˆ δqpmacro ¨ ∇v “ Ω in the monoscale case. Introduce the mean of A <sup>ε</sup> over each element K, that we denote A <sup>ε</sup> . Such a fieldWe first compute δqpmacroa primalis obtained as follows, using inexpensive classical equilibration proceduresfield δumacro in the degree 1 space VH <sup>0</sup> <sup>such</sup> <sup>that</sup> H <sup>0</sup> <sup>such</sup> <sup>that</sup> H <sup>.</sup> p∇vq <sup>T</sup> A <sup>ε</sup> ∇u <sup>ε</sup> H p∇vq <sup>T</sup> A <sup>ε</sup> ∇u <sup>ε</sup> g v ´ ˆ Ω fv ` ˆ @v P VH <sup>0</sup> <sup>,</sup> ˆ Ω p∇vq <sup>T</sup> A <sup>ε</sup> δumacro “ Ω ˆΓN ˆ This is a monoscole problem, which is hence inexpensive. We next recover equilibrated tractions, which vary in an affine manner along the element edges. Local equilibration using the high-degree space Xmacro is eventually performed inside each element K to define δqpmacro|K. The error indicators ∆macro, ∆over and ∆micro associated to each error source can be We then make the approximation ∆macro « ECRE pup <sup>ε</sup> H,macro <sup>, pq</sup> macro <sup>q.</sup> The error indicators ∆macro, ∆over and ∆micro associated to each error source can be split into local contributions t∆macro <sup>K</sup> <sup>, ∆K</sup> over <sup>, ∆K</sup> micro <sup>u</sup> <sup>in</sup> <sup>each</sup> <sup>element</sup> <sup>K</sup> <sup>of</sup> <sup>the</sup> <sup>mesh</sup> <sup>TH,</sup> <sup>and</sup> <sup>K</sup> over <sup>, ∆K</sup> each element associated to <sup>ε</sup> H,macro <sup>, pq</sup> macro <sup>q.</sup> macro <sup>K</sup> <sup>, ∆K</sup> over <sup>K</sup> micro <sup>u</sup> <sup>in</sup> <sup>each</sup> <sup>element</sup> <sup>K</sup> <sup>of</sup> <sup>the</sup> <sup>mesh</sup> <sup>TH,</sup> <sup>and</sup> 30 used in a greedy adaptive algorithm which is detailed in the next section. Local indicators enable to mark elements of the coarse mesh for further enrichment. Furthermore, most of the computations which are required to get the indicators can again be performed in the offline stage of MsFEM. PR0 S1-S2 S3 S4 PR1 PR2 MsFEM u- <sup>ε</sup> H,1 u- <sup>ε</sup> H,2 u <sup>ε</sup> H u u <sup>ε</sup> u- <sup>ε</sup> H,1 u- <sup>ε</sup> H,2 u <sup>ε</sup> H H,1 u- <sup>ε</sup> H,2 u- <sup>ε</sup> H,2 u <sup>ε</sup> H emacro eover emicro S4 u~ <sup>ε</sup> ≈ eover u~ H,1 S3-S4 ≈ emacro u~ε Figure 5: Illustration of the strategy we use to define indicators for each error source. 5.3 Greedy adaptive algorithm with offline/online strategy Using the global error estimate ∆MsF EM, the error indicators ∆macro, ∆over and ∆micro, and their decompositions into local contributions, we design a greedy algorithm associated to adaptive MsFEM computations. The overall algorithm is presented in Figure 6. We emphasize that the algorithm is initialized with no oversampling (SK “ K) and a rough fine mesh size (namely hK “ HK). 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 relatively cheap. The adaptive procedure is associated with the following considerations: ‚ the algorithm is initialized with the coarsest MsFEM configuration that can be em ployed (a regular coarse mesh, no oversampling, fine-scale problems solved with a single element); ‚ when modifying the parameters hK from their initial value hK “ HK (in Step 5.7), two values are considered in the adaptive process: hK “ ε{5 and hK “ ε{20 (finest mesh size at the microscale); ‚ when modifying the parameters dK from their initial value dK “ HK i.e. SK “ K (in Step 5.8), the oversampling size is determined by adding layers of progressive thickness ε, 2ε, 3ε, . . . around the element K in the adaptive process. Such an adaptation is not performed when hK “ HK; 31 1. Initialization 1.1 Set the tolerance T OL on the error and the refinement parameter γr 1.2 Define a regular mesh TH <sup>p0q</sup> with uniform mesh size HK “ H 1.3 Set R <sup>p</sup> loc <sup>0q</sup> <sup>“ Rp</sup> glob <sup>0q</sup> <sup>p</sup> glob <sup>0q</sup> <sup>“ tall</sup> <sup>elements</sup> <sup>K</sup> <sup>of</sup> <sup>T</sup> H <sup>p0q</sup> H <sup>p0qu</sup> H 1.4 Set SK “ K and hK “ HK for all elements K of T <sup>p0q</sup> 1.5 Set k “ 0 2. Increment k Ñ k ` 1 3. MICROSCALE OFFLINE COMPUTATIONS loc, solve (18) over SK using a P1 discretization with the mesh size 3.1 For all K P R <sup>pk´1q</sup> hK, in order to get w <sup>ε,Kpkq</sup> (see Section 3.4) 3.2 Store the associated local stiffness matrices 4. MACROSCALE OFFLINE COMPUTATIONS 4.1 Define the new mesh TH <sup>pkq</sup> glob using the local mesh by refining each element K P R <sup>pk´1q</sup> size HK 4.2 For all K P R <sup>p</sup> glob <sup>k´1q,</sup> <sup>define</sup> <sup>the</sup> <sup>new</sup> <sup>MsFEM</sup> <sup>basis</sup> <sup>functions</sup> <sup>φ</sup> i <sup>εpkq</sup> i <sup>εpkq</sup> from w <sup>ε,Kpkq</sup> 4.3 Define ηK following (28) 4.4 Compute the 2 ˆ 2 (or 6 ˆ 6) local matrices M <sup>Γjk</sup> (see Sections 4.2.2 and 4.2.3) 4.5 Solve the local problems (39)–(40) (and possibly (42)) to get θi <sup>jk,</sup> <sup>µ</sup> i <sup>jk</sup> 4.5 Solve the local problems (39)–(40) (and possibly (42)) to get θi <sup>jk,</sup> <sup>µ</sup> i <sup>jk</sup> and possibly ρj 4.6 Solve the local problems associated to the computation of the error indicators (see Section 5.2) 5. MACROSCALE ONLINE COMPUTATIONS 5.1 Solve the global MsFEM problem (8) (or (17)) to get uH <sup>εpkq</sup> H 5.2 Compute Q <sup>K</sup> i i solving (32) or (35) , and recover up <sup>εpkq</sup> and the traction projections <sup>p</sup> b <sup>pj,kq</sup> H 5.2 Compute Q <sup>K</sup> i i i and the traction projections <sup>p</sup> b <sup>pj,kq</sup> 5.3 Deduce gpK from ηK <sup>Γ</sup> <sup>,</sup> <sup>M|Γ</sup> jk <sup>and pbpj,kq</sup> i solving (32) or (35) i and the traction i <sup>,</sup> <sup>µ</sup> i <sup>jk</sup> and 5.3 Deduce gpK from ηK <sup>Γ</sup> <sup>,</sup> <sup>M|Γ</sup> jk <sup>and pbpj,kq</sup> 5.4 Compute qp <sup>εpkq</sup> i i 5.3 Deduce gpK from ηK <sup>Γ</sup> <sup>,</sup> <sup>M|Γ</sup> jk 5.5 Compute the global estimate 5.4 Compute qpH <sup>εpk</sup> |K <sup>q</sup> <sup>from</sup> <sup>gpK,</sup> <sup>θjk</sup> i <sup>,</sup> <sup>µ</sup> i <sup>jk</sup> i <sup>jk</sup> and ρi 5.5 Compute the global estimate ∆ <sup>pkq</sup> H then STOP; otherwise go to Step 5.6 5.6 Compute the indicators MsF EM∆ <sup>p</sup> macro <sup>kq</sup> <sup>“,</sup> <sup>ECRE</sup> ∆ <sup>p</sup> over <sup>kpqup,εpkq</sup> H q. If ∆ <sup>pkq</sup> Compute the global estimate ∆ <sup>pkq</sup> H H then STOP; otherwise go to Step 5.6 q. If ∆ <sup>p</sup> MsF EM <sup>kq</sup> <sup>ď</sup> <sup>T OL,</sup> Compute the indicators MsF EM∆ <sup>p</sup> macro <sup>kq</sup> <sup>“,</sup> <sup>ECRE</sup> ∆ <sup>p</sup> over <sup>kpqup,εpkq</sup>, pq∆ <sup>εpp</sup> micro <sup>kkqq</sup> and M “ max ∆ <sup>p</sup> macro <sup>kq</sup> <sup>, ∆p</sup> over <sup>kq</sup> <sup>, ∆p</sup> micro <sup>kq</sup> 5.6 Compute the indicators ∆ <sup>p</sup> macro <sup>kq</sup> <sup>p</sup> over <sup>kq</sup> <sup>,</sup> ∆ <sup>pkq</sup> H H <sup>p,εpkq</sup>, pq∆ <sup>εppkkqq</sup> ` <sup>p</sup> loc <sup>kq</sup> <sup>“</sup> <sup>Rp</sup> glob <sup>kq</sup> <sup>p</sup> glob <sup>kq</sup> <sup>“</sup> <sup>p</sup> macro <sup>kq</sup> <sup>,</sup> ∆ <sup>p</sup> over <sup>kq</sup> ∆ <sup>pkq</sup> <sup>p</sup> macro <sup>kq</sup> <sup>, ∆p</sup> over <sup>kq</sup> <sup>p</sup> over <sup>kq</sup> <sup>, ∆pkq</sup> micro ˘ K + , modify 5.7 If M “ ∆micro <sup>pkq</sup> <sup>,</sup> <sup>set</sup> <sup>Rp</sup> loc <sup>kq</sup> micro <sup>Kpkq</sup> ě γr maxK |K| ∆ <sup>K</sup> micro <sup>pkq</sup> |K| ∆ <sup>K</sup> micro <sup>pkq</sup> # H K P T <sup>pkq</sup> micro H <sup>,</sup> <sup>∆Kpkq</sup> <sup>pkq</sup> hK for all K P Rloc <sup>pkq</sup> loc <sup>pkq</sup> <sup>and</sup> <sup>go</sup> <sup>to</sup> <sup>Step</sup> <sup>2</sup> K , modify dK + ∆over <sup>Kpkq</sup> |K| 5.8 If M “ ∆over <sup>pkq</sup> <sup>,</sup> <sup>set</sup> <sup>Rp</sup> loc <sup>kq</sup> <sup>p</sup> loc <sup>kq</sup> <sup>“ Rp</sup> glob <sup>kq</sup> <sup>p</sup> glob <sup>kq</sup> <sup>“</sup> over <sup>Kpkq</sup> ě γr maxK |K| # H K P T <sup>pkq</sup> over H <sup>,</sup> <sup>∆Kpkq</sup> <sup>pkq</sup> (i.e. enlarge SK) for all K P Rloc <sup>pkq</sup> loc <sup>pkq</sup> <sup>and</sup> <sup>go</sup> <sup>to</sup> <sup>Step</sup> <sup>2</sup> , + K ∆ <sup>K</sup> macro <sup>pkq</sup> 5.9 If M “ ∆macro <sup>pkq</sup> <sup>,</sup> <sup>set</sup> <sup>Rp</sup> loc <sup>kq</sup> <sup>p</sup> loc <sup>kq</sup> <sup>“ H</sup> <sup>and</sup> <sup>Rp</sup> glob <sup>kq</sup> <sup>p</sup> glob <sup>kq</sup> <sup>“</sup> macro <sup>Kpkq</sup> ě γr maxK |K| # H K P T <sup>pkq</sup> macro H <sup>,</sup> <sup>∆Kpkq</sup> <sup>pkq</sup> ∆ <sup>K</sup> macro <sup>pkq</sup> |K| modify HK for all K P R <sup>p</sup> glob <sup>kq</sup> <sup>and</sup> <sup>go</sup> <sup>to</sup> <sup>Step</sup> <sup>2</sup> Figure 6: Adaptive algorithm to32drive the MsFEM computations. ‚ refining the mesh TH, i.e. modifying the parameters HK (in Step 5.9), is performed using a quadtree (or octree in 3D) method with nested elements. This requires to handle hanging nodes; ‚ the adapted parameters hK, dK and HK are chosen using classical adaptive strategies (see [18]) based on convergence rates given by the a priori estimates (11) or (16), and with an error target ∆macro “ ∆over “ ∆micro “ TOL{3; ‚ the technique proposed in [27] and based on composition rules (see Section 3.4) is ben eficially 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.5 and 4.6, while it is used in its H-refinement version in Step 4.2. In short, this technique allows us to refine the coarse mesh without the need to solve new fine-scale problems of the type (18). The functions w <sup>ε,K</sup> solutions to (18) are left unchanged when the coarse mesh is refined. Note that it would not be the case if the coarse mesh were to be de-refined. Remark 5.7. At initialization, we set hK “ HK. The multiscale basis functions φi <sup>ε</sup> equal to the P1 basis functions φ <sup>0</sup> Remark 5.7. At initialization, we set hK “ HK. The multiscale basis functions φi <sup>ε</sup> <sup>are</sup> <sup>thus</sup> equal to the P1 basis functions φ <sup>0</sup> i <sup>.</sup> <sup>Assuming</sup> <sup>for</sup> <sup>simplicity</sup> <sup>that</sup> <sup>the</sup> <sup>tensor</sup> <sup>Aε</sup> <sup>“</sup> <sup>Aperp¨{εq</sup> <sup>is</sup> equal to the P1 basis functions φ <sup>0</sup> i <sup>.</sup> <sup>Assuming</sup> <sup>for</sup> <sup>simplicity</sup> <sup>that</sup> <sup>the</sup> <sup>tensor</sup> <sup>Aε</sup> <sup>“</sup> <sup>Aperp¨{εq</sup> <sup>is</sup> periodic and that ε ! minK <sup>HK,</sup> <sup>we</sup> <sup>observe</sup> <sup>that</sup> <sup>the</sup> <sup>diffusion</sup> <sup>tensor</sup> <sup>that</sup> <sup>appears</sup> <sup>when</sup> <sup>solving</sup> the global problem is the average A of Aper over its periodic cell. No multiscale feature is encoded in the numerical solution u <sup>ε</sup> H <sup>.</sup> <sup>We</sup> <sup>show</sup> <sup>here</sup> <sup>that</sup> <sup>our</sup> <sup>a</sup> <sup>posteriori</sup> <sup>error</sup> <sup>estimation</sup> minK <sup>HK,</sup> <sup>we</sup> <sup>observe</sup> <sup>that</sup> <sup>the</sup> <sup>diffusion</sup> <sup>tensor</sup> <sup>that</sup> <sup>appears</sup> <sup>when</sup> <sup>solving</sup> encoded in the numerical solution u <sup>ε</sup> H <sup>.</sup> <sup>We</sup> <sup>show</sup> <sup>here</sup> <sup>that</sup> <sup>our</sup> <sup>a</sup> <sup>posteriori</sup> <sup>error</sup> <sup>estimation</sup> procedure is nevertheless still able to observe that the approximation u <sup>ε</sup> H <sup>is</sup> <sup>inaccurate.</sup> <sup>For</sup> procedure is nevertheless still able to observe that the approximation u <sup>ε</sup> H <sup>is</sup> <sup>inaccurate.</sup> <sup>For</sup> simplicity, we argue on the one-dimensional case, assuming homogeneous Neumann boundary conditions and that the mean of f over Ω vanishes. Assuming that max H <sup>ε</sup> <sup>is</sup> <sup>essentially</sup> <sup>equal</sup> <sup>to</sup> <sup>the</sup> <sup>solution</sup> maxK <sup>HK</sup> <sup>!</sup> <sup>1,</sup> <sup>the</sup> <sup>MsFEM</sup> <sup>solution</sup> <sup>u</sup> H <sup>ε</sup> H <sup>ε</sup> dx <sup>pxq</sup> <sup>“</sup> <sup>F</sup> <sup>pxq</sup> <sup>:“</sup>  H “ f . We thus have ´A <sup>duε</sup> dx f . The CRE procedure 0x to ´ dx <sup>d</sup> „ H A <sup>duε</sup> dx H A <sup>duε</sup> ˆ0x is estimated by ECRE pu <sup>ε</sup> amounts to finding an equilibrated flux qp. In the one-dimensional context, qp “ ´F . The error H <sup>, pqq,</sup> <sup>with</sup> H dx ˆ A1 ` <sup>ε</sup> H <sup>, pqq</sup> <sup>ε</sup> average H <sup>, pqq</sup> Ω ˆ 1 ´ <sup>A</sup> A <sup>ε</sup> ˆ H dx qp ´ A <sup>ε duε</sup> ECRE pu <sup>ε</sup> ˙2 “ <sup>ε</sup> equilibrated H <sup>, pqq,</sup> <sup>with</sup> ˆ pA ˘2 “ ˆ ˆ Ω ˙2 . pA <sup>ε</sup> q <sup>´1</sup> F <sup>2</sup> pA <sup>ε</sup> q <sup>´1</sup> A ˙ ˘2of« A A1 <sup>0</sup> <sup>´</sup> <sup>1</sup> A ˆ F <sup>2</sup> Again using the fact that ε ! 1, we see that ` ECRE pu <sup>ε</sup> Ω , where A <sup>0</sup> is the homogenized coefficient (i.e. the harmonic average of Aper here). Unless Aper is H <sup>, pqq</sup> constant, we have A <sup>0</sup> ‰ A and thus a non-vanishing error estimate. The adaptive algorithm enables to adjust automatically (and hopefully optimally) the calculation parameters during the simulation. It is expected to provide MsFEM parameters which ensure a correct compromise between computational cost and solution accuracy. In particular, it should lead to HK « ε to resolve the fine scale in the zones where scale separation and structures are missing, whereas inexpensive computations (with hK ą ε{20 to solve the local problems in the offline phase) should be sufficient in the zones where the fine-scale features of the solution are not activated. This general idea, which consists in computing fine-scale functions with minimal but sufficient accuracy (with respect to a prescribed global error tolerance), was first investigated in [30] for GFEM. 33 ### 6 Numerical results In this section, we investigate the performances of the proposed methodology for a posteriori error estimation and adaptivity in MsFEM computations. In Section 6.1, we consider a one-dimensional non-periodic test case. We next turn in the subsequent sections to twodimensional numerical experiments with an isotropic diffusion tensor A <sup>ε</sup>, which is chosen periodic in Section 6.2 and non-periodic in Section 6.3. Recall indeed that the MsFEM approach is meant to address problems where A <sup>ε</sup> has no specific (periodic, quasi-periodic, . . . ) structure. It is thus important to assess its accuracy (and the accuracy of our a posteriori estimator) in such non-periodic contexts. We eventually consider an example with a crack in Section 6.4. For all numerical experiments, the micro mesh is obtained by a local subdivision inside each macro element (nested meshes). This way, technical difficulties due to overlapping micro and macro meshes are avoided. Regarding the two-dimensional numerical experiments, the coarse mesh and the fine meshes of each coarse element are made of quadrangles. 6.1 Illustrative 1D example in a non-periodic setting We start with a one-dimensional problem defined in Ω “ p0, 1q, with homogeneous Dirichlet boundary conditions at x “ 0 and x “ 1, and the non-uniform load f pxq “ x <sup>2</sup> . We consider a non-periodic diffusion coefficient of the form A <sup>ε</sup> pxq “ 5 ` 50 sin <sup>2</sup> pπx <sup>2</sup> {εq, and we set ε “ 0.025. The evolution of A <sup>ε</sup> pxq is represented in Figure 7. 60 50 40 30 20 10 0 0 0.2 0.4 0.6 0.8 1 x Figure 7: Evolution of A <sup>ε</sup> for the considered 1D non-periodic case. We compute an approximate MsFEM solution using an initial coarse mesh TH composed of 5 elements with equal size (HK “ 0.2). We recall that methods with or without oversampling are identical in the one-dimensional context. We show in Figure 8 the computed MsFEM shape functions considering different fine mesh sizes (that are identical over all coarse elements K): hK “ HK, hK “ ε{5 and hK “ ε{20. 34 1 0.8 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 1 x 1 0.8 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 1 x 1 0.8 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 1 x Figure 8: Shape functions used in the MsFEM approximation, for hK “ HK (left), hK “ ε{5 (center) and hK “ ε{20 (right). The MsFEM solutions u <sup>ε</sup> The MsFEM solutions u <sup>ε</sup> H <sup>obtained using the different values of hK</sup> <sup>are represented in Fig-</sup> ure 9, where we also show the exact solution u <sup>ε</sup> . Obviously, the MsFEM approximation u <sup>ε</sup> H <sup>is</sup> ure 9, where we also show the exact solution u <sup>ε</sup> . Obviously, the MsFEM approximation u <sup>ε</sup> H <sup>is</sup> not accurate when hK “ HK and when hK “ ε{5. We obtain a relative error |||u <sup>ε</sup> ´ uH <sup>ε</sup> <sup>|||{|||uε|||</sup> not accurate when hK “ HK and when hK “ ε{5. We obtain a relative error |||u <sup>ε</sup> ´ uH <sup>ε</sup> <sup>|||{|||uε|||</sup> of 90% for hK “ ε{5, while it falls to 26% for hK “ ε{20. 3 <sup><u>x 10</u></sup> −3 2.5 2 1.5 1 0.5 <u>u</u> <sup>~~ε~~</sup> H <u>u</u> <sup>ε</sup> 3 <sup><u>x 10</u></sup> −3 2.5 2 1.5 1 0.5 <u>u</u> <sup>~~ε~~</sup> H <u>u</u> <sup>ε</sup> 3 <sup><u>x 10</u></sup> −3 2.5 2 1.5 1 0.5 <u>u</u> <sup>~~ε~~</sup> H <u>u</u> <sup>ε</sup> 0 0 0.2 0.4 0.6 0.8 1 x 0 0 0.2 0.4 0.6 0.8 1 x 0 0 0.2 0.4 0.6 0.8 1 x Figure 9: Comparison between the exact solution u <sup>ε</sup> and the approximate MsFEM solution u <sup>ε</sup> H <sup>when</sup> <sup>the</sup> <sup>MsFEM</sup> <sup>basis</sup> <sup>functions</sup> <sup>are</sup> <sup>computed</sup> <sup>with</sup> <sup>hK</sup> <sup>“</sup> <sup>HK</sup> <sup>(left),</sup> <sup>hK</sup> <sup>“ ε{5</sup> <sup>(center)</sup> and hK “ ε{20 (right). For hK “ ε{20, we represent in Figure 10 the gradient duH <sup>ε</sup> of the MsFEM solution, as well as those of the exact solution. H <sup>ε</sup> <sup>{dx and the flux q</sup> H <sup>ε</sup> H <sup>ε</sup> <sup>“ Aεdu</sup> H <sup>ε</sup> of the MsFEM solution, as well as those of the exact solution.For hK “ ε{20, we represent in Figure 10 the gradient duH <sup>ε</sup> <sup>{</sup> The flux of the MsFEM solution <sup>dx and the flux q</sup> H <sup>ε</sup> <sup>“ Aεdu</sup> H <sup>ε</sup> <sup>{dx</sup> is constant in each coarse element, by definition of the MsFEM basis functions. We now consider our adaptive algorithm described in Section 5.3. We hence start with hK “ HK and SK “ K. The two first iterations of the adaptive algorithm indicate that the error indicator ∆micro is the highest. This leads to choosing hK “ ε{20 for the five coarse elements in TH. To decrease the overall error, there are (at least) two possibilities. First, it is possible to uniformly refine the coarse mesh TH. We show on Figure 11 the spatial distribution of the error estimator p∆MsF EM q <sup>2</sup> for a uniform coarse mesh of size HK “ 0.2, HK “ 0.1 and HK “ 0.05 (i.e. with 5, 10 and 20 coarse elements), in the case when hK “ ε{20. Let us notice that the computed value of the estimate ∆MsF EM, considering hK “ ε{20, is actually very close to the value of the exact error |||u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>|||</sup> <sup>here.</sup> <sup>This</sup> <sup>is</sup> <sup>due</sup> <sup>to</sup> <sup>the</sup> <sup>fact</sup> <sup>that</sup> <sup>in</sup> <sup>this</sup> very close to the value of the exact error |||u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>|||</sup> <sup>here.</sup> <sup>This</sup> <sup>is</sup> <sup>due</sup> <sup>to</sup> <sup>the</sup> <sup>fact</sup> <sup>that</sup> <sup>in</sup> <sup>this</sup> H <sup>(almost)</sup> <sup>corresponds</sup> <sup>to</sup> <sup>the</sup> <sup>exact</sup> <sup>flux</sup> <sup>qε.</sup> As an alternative, it is possible to use the adaptive algorithm that we introduced in Sec simple 1D case, the recovered admissible flux qp <sup>ε</sup> H <sup>(almost)</sup> <sup>corresponds</sup> <sup>to</sup> <sup>the</sup> <sup>exact</sup> <sup>flux</sup> <sup>qε.</sup> As an alternative, it is possible to use the adaptive algorithm that we introduced in Sec 1D case, the recovered admissible flux qp <sup>ε</sup> 35 0.02 0.01 0 −0.01 −0.02 −0.03 −0.04 <u>du</u> <sup>~~ε~~</sup> H <sup><u>/dx</u></sup> <u>du</u> <sup>ε</sup> <u>/dx</u> 0.1 0.05 0 −0.05 −0.1 −0.15 −0.2 −0.25 <u>q</u> <sup>~~ε~~</sup> H <u>q</u> <sup>ε</sup> −0.05 0 0.2 0.4 0.6 0.8 1 x −0.3 0 0.2 0.4 0.6 0.8 1 x Figure 10: Comparison between the exact solution and MsFEM solution for hK “ ε{20: gradient (left) and flux (right). 3 <sup><u>x 10</u></sup> −5 2.5 2 1.5 1 0.5 0 1 2 3 4 5 element K 3 <sup><u>x 10</u></sup> −5 2.5 2 1.5 1 0.5 0 1 2 3 4 5 6 7 8 9 10 element K 3 <sup><u>x 10</u></sup> −5 2.5 2 1.5 1 0.5 0 0 5 10 15 20 25 element K Figure 11: Values of p∆ <sup>K</sup> MsF EM <sup>q2</sup> <sup>for</sup> <sup>HK</sup> <sup>“</sup> <sup>0.2</sup> <sup>(left),</sup> <sup>HK</sup> <sup>“</sup> <sup>0.1</sup> <sup>(center)</sup> <sup>and</sup> <sup>HK</sup> <sup>“</sup> <sup>0.05</sup> (right). 36 tion 5.3. For the third iteration and the subsequent ones, the algorithm leads to adapting the sizes HK of the coarse mesh elements, leaving the fine mesh size hK unchanged. We show in Figure 12 the convergence of the relative error estimate ∆MsF EM {|||u <sup>ε</sup> H <sup>|||</sup> <sup>with</sup> <sup>respect</sup> <sup>to</sup> the number of degrees of freedom in TH, for both the uniform refinement and the adaptive refinement. We clearly observe the beneficial use, in terms of convergence rate, of the adaptive algorithm. We also show in Figure 12 the adapted mesh which enables to reach a prescribed error tolerance of 3%. 102 101 uniform refinement <u>adaptive refinement</u> 10100 0 101 102 number of dof in TH Figure 12: Left: error convergence for uniform or adaptive coarse mesh refinement. Right: the coarse mesh which is obtained at the end of the adaptive algorithm. 6.2 2D example with a periodic coefficient We now consider a two-dimensional problem defined in the unit square domain Ω “ p0, 1q <sup>2</sup> . It is similar to the one discussed in [5, 27]. We consider homogeneous Dirichlet boundary conditions on BΩ, and we assume that a uniform load f “ ´1 is applied in Ω. The diffusion tensor is taken as 1 A <sup>ε</sup> pxq “ p2 ` P cosp2πpx1 ´ 0.5q{εqq p2 ` P cosp2πpx2 ´ 0.5q{εqq <sup>I2</sup> <sup>“ Aεpxq I2,</sup> with ε “ 0.04. The contrast parameter P is chosen as P “ 1.8 here. For such a diffusion tensor, the corresponding homogenized tensor is explicit and reads A <sup>0</sup> “ 1{2p4 ´ P <sup>2</sup> q <sup>1{2</sup> I2. We consider an initial coarse mesh TH made of 5 ˆ 5 macro elements. Choosing hK “ ε{3 for any K, and with no oversampling, the approximate MsFEM solution is represented in the Figures 13 and 14 and compared to the exact solution (obtained by using a 500 ˆ 500 fine mesh): solutions u <sup>ε</sup> and u <sup>ε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>13</sup> <sup>and</sup> <sup>fluxes</sup> <sup>qε</sup> <sup>and</sup> <sup>qε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>ε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>13</sup> <sup>and</sup> <sup>fluxes</sup> <sup>qε</sup> <sup>and</sup> <sup>qε</sup> H fine mesh): solutions u <sup>ε</sup> and u <sup>ε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>13</sup> <sup>and</sup> <sup>fluxes</sup> <sup>qε</sup> <sup>and</sup> <sup>qε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> Figure 14. The value of the associated relative error estimate ∆MsF EM {|||u <sup>ε</sup> H <sup>|||</sup> <sup>is</sup> <sup>about</sup> <sup>33%,</sup> <sup>with</sup> <sup>an</sup> K <sup>p∆K</sup> MsF EM <sup>q2</sup> <sup>over</sup> <sup>TH,</sup> <sup>as</sup> well as local effectivity indices, are shown in Figure 15. The difference between the exact and effectivity index of 1.08. Local contributions of p∆MsF EM q <sup>2</sup> “ <sup>ř</sup> the numerical solution, in terms of solution u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>or</sup> <sup>gradient</sup> <sup>|∇puε ´ uε</sup> H <sup>q ¨ e1|,</sup> <sup>is</sup> <sup>shown</sup> <sup>in</sup> The value of the associated relative error estimate ∆MsF EM {|||u <sup>ε</sup> H K <sup>p∆K</sup> MsF EM <sup>q2</sup> <sup>over</sup> <sup>TH,</sup> <sup>as</sup> well as local effectivity indices, are shown in Figure 15. The difference between the exact and effectivity index of 1.08. Local contributions of p∆MsF EM q <sup>2</sup> “ <sup>ř</sup> the numerical solution, in terms of solution u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>or</sup> <sup>gradient</sup> <sup>|∇puε ´ uε</sup> H <sup>q ¨ e1|,</sup> <sup>is</sup> <sup>shown</sup> <sup>in</sup> K <sup>p∆K</sup> <sup>ε</sup> H <sup>or</sup> <sup>gradient</sup> <sup>|∇puε ´ uε</sup> H the numerical solution, in terms of solution u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>or</sup> <sup>gradient</sup> <sup>|∇puε ´ uε</sup> H <sup>q ¨ e1|,</sup> <sup>is</sup> <sup>shown</sup> <sup>in</sup> Figure 16. We now use the adaptive algorithm from this initial, non-accurate MsFEM solution (computed with HK “ 0.2, hK “ HK and SK “ K) and with a prescribed error tolerance of 5%. 37 Figure 13: 2D periodic example: exact solution u <sup>ε</sup> (left) and MsFEM solution u <sup>ε</sup> H <sup>(right).</sup> Figure 14: 2D periodic example: exact flux q <sup>ε</sup> (left) and MsFEM flux q <sup>ε</sup> H <sup>(right)</sup> <sup>(we</sup> <sup>only</sup> show the first component of the flux; the figure for the second component is similar). Figure 15: 2D periodic example: values of p∆ <sup>K</sup> MsF EM <sup>q2</sup> <sup>for</sup> <sup>the</sup> <sup>specific</sup> <sup>computed</sup> <sup>MsFEM</sup> solution (left), and local effectivity indices (right). 38 Figure 16: 2D periodic example: plot of |u <sup>ε</sup> ´ u <sup>ε</sup> H <sup>ε</sup> H <sup>|</sup> <sup>(left)</sup> <sup>and</sup> <sup>of</sup> <sup>|∇puε ´ uε</sup> H <sup>ε</sup> H <sup>q ¨ e1|</sup> <sup>(right).</sup> This leads to the local MsFEM parameters shown in Figure 17. We observe that adapted discretization parameters (small coarse and fine mesh sizes, large oversampling) are required in regions located close to the boundary of Ω. 0 ε 2ε H ε/5 ε/20 Figure 17: 2D periodic example: adapted coarse mesh (left), oversampling size (center) and fine mesh sizes hK (right). Eventually, for the initial mesh TH made of 5 ˆ 5 macro elements and hK “ ε{5, we analyze the effect of the value of the micro scale ε on the effectivity index. The results, given in Table 1, show that the quality of the error estimate is essentially independent of ε. value of ε 0.04 0.01 0.004 0.001 effectivity index 1.08 1.12 1.10 1.15 Table 1: 2D periodic example: effectivity index for various values of ε. 6.3 2D example with a non-periodic coefficient We now consider a two-dimensional problem related to steady conduction through fiber composites. It is identical (up to the value of ε) to the one discussed in [5]. The problem is defined in the unit square domain Ω “ p0, 1q <sup>2</sup> (unit cell of the composite material). Dirichlet boundary conditions upxq “ px1 ´ 0.5q <sup>2</sup> ` px2 ´ 0.5q <sup>2</sup> are applied on BΩ, and a uniform load f “ ´1 is specified in Ω. The conductivity properties of the medium are modeled by the 39 tensor 2 ` P cos p2π tanhpwpr ´ 0.3qq{εq ı ” I2 “ A <sup>ε</sup> pxq I2, A <sup>ε</sup> pxq “ where r “ px1 ´ 0.5q <sup>2</sup> ` px2 ´ 0.5q <sup>2</sup> is the distance from the center of the fiber. The pa rameter P controls the ratio between the conductivity of the fibers and that of the matrix, a the parameter w determines the total width of the reinforcement, and ε sets the wavelength of the unidirectional oscillations. In the following, we set P “ 1.8, w “ 20 and ε “ 0.2, so that the shortest wavelength in the oscillations is about ε0 “ 0.01. where r “ a We take an initial coarse mesh TH made of 5 ˆ 5 macro elements. Choosing hK “ ε0{5 for any K, and with no oversampling, the approximate MsFEM solution is represented in the Figures 18 and 19 and compared to the exact solution (computed using a 500ˆ 500 fine mesh): solutions u <sup>ε</sup> and u <sup>ε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>18</sup> <sup>and</sup> <sup>fluxes</sup> <sup>qε</sup> <sup>and</sup> <sup>qε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>19.</sup> <sup>ε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>18</sup> <sup>and</sup> <sup>fluxes</sup> <sup>qε</sup> <sup>and</sup> <sup>qε</sup> H <sup>ε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>19.</sup> Figure 18: 2D non-periodic example: exact solution u <sup>ε</sup> (left) and MsFEM solution u <sup>ε</sup> H <sup>(right).</sup> qεHx 2.5 2 1.5 1 0.5 0 −0.5 −1 −1.5 −2 −2.5 Figure 19: 2D non-periodic example: exact flux q <sup>ε</sup> (left) and MsFEM flux q <sup>ε</sup> H <sup>(right) (we only</sup> show the first component of the flux; the figure for the second component is similar). The value of the associated relative error estimate ∆MsF EM {|||u <sup>ε</sup> H <sup>|||</sup> <sup>is</sup> <sup>about</sup> <sup>36%,</sup> <sup>with</sup> <sup>an</sup> 40 effectivity index of 1.09. Local contributions of p∆MsF EM q <sup>2</sup> over TH, as well as local effectivity indices, are shown in Figure 20. Figure 20: 2D non-periodic example: values of p∆ <sup>K</sup> MsF EM <sup>q2</sup> <sup>for the specific computed MsFEM</sup> solution (left), and local effectivity indices (right). We now use the adaptive algorithm from this initial, non-accurate MsFEM solution (HK “ 0.2, hK “ HK and SK “ K) and with a prescribed error tolerance of 5%. This leads to the local MsFEM parameters shown in Figure 21, associated with an estimated error of 4.77%. We observe that this error tolerance can be reached without resorting to accurate fine-scale computations in the center of the domain Ω. Our adaptive algorithm leads to a discretization which is much more efficient than the one that would have been obtained using a uniform refinement. 0 ε 2ε H ε/5 ε/20 Figure 21: 2D non-periodic example: adapted coarse mesh (left), oversampling size (center) and fine mesh sizes hK (right). 6.4 A 2D structure with a crack As a last example, we consider a problem over the cracked domain Ω “ p0, 1q <sup>2</sup> ztpx1, 0q, 0.5 ď x1 ď 1u, with the loading f “ 0. It is identical (up to the value of ε) to the one discussed in [33]. On the boundary BΩ (including on the lips of the crack), we prescribe a Dirichlet boundary condition which matches the exact homogenized solution. The diffusion tensor is chosen as ˙ ε ˆ 2πpx2 ´ 0.5q ˙ cos „ 41 ` 8 <sup>9</sup>  I2 “ A <sup>ε</sup> pxq I2, 64 A <sup>ε</sup> pxq “ 9?17 „ sin ε ˆ 2πpx1 ´ 0.5q ε ` 8 <sup>9</sup> with ε “ 0.04. It is periodic, and the homogenized tensor A <sup>0</sup> is equal to the identity matrix: A <sup>0</sup> “ I2. When using standard piecewise linear The homogenized solution u <sup>0</sup> is not in H <sup>2</sup> pΩq. finite elements, the numerical error between u <sup>0</sup> and u <sup>0</sup> H <sup>thus</sup> <sup>decreases</sup> <sup>with</sup> <sup>a</sup> <sup>sub-optimal</sup> finite elements, the numerical error between u <sup>0</sup> and u <sup>0</sup> H <sup>thus</sup> <sup>decreases</sup> <sup>with</sup> <sup>a</sup> <sup>sub-optimal</sup> convergence rate. One possibility to address this issue is to adaptively refine the mesh close to the crack tip. Within the MsFEM approach, we intend to have this same adaptive procedure for the macro mesh TH, all the more so as traditional scale separation assumptions no longer hold in the vicinity of the crack tip (high variation of the gradients). We consider an initial coarse mesh TH made of 8 ˆ 8 macro elements. Choosing hK “ ε{3 for any K, and with no oversampling, the approximate MsFEM solution is represented on Figures 22 and 23 and compared to the exact solution (obtained using a 500 ˆ 500 fine mesh): solutions u <sup>ε</sup> and u <sup>ε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>22,</sup> <sup>and</sup> <sup>fluxes</sup> <sup>qε</sup> <sup>and</sup> <sup>qε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>23.</sup> <sup>ε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>22,</sup> <sup>and</sup> <sup>fluxes</sup> <sup>qε</sup> <sup>and</sup> <sup>qε</sup> H <sup>ε</sup> H <sup>are</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>23.</sup> Figure 22: 2D example with a crack: exact solution u <sup>ε</sup> (left) and MsFEM solution u <sup>ε</sup> H <sup>(right).</sup> Figure 23: 2D example with a crack: exact flux q <sup>ε</sup> (left) and MsFEM flux q <sup>ε</sup> H <sup>(right) (we</sup> <sup>only</sup> show the first component of the flux; the figure for the second component is similar). The value of the associated relative error estimate ∆MsF EM {|||u <sup>ε</sup> H <sup>|||</sup> <sup>is</sup> <sup>about</sup> <sup>47%,</sup> <sup>with</sup> <sup>an</sup> 42 effectivity index of 1.18. Local contributions of p∆MsF EM q <sup>2</sup> over TH, as well as local effectivity indices, are shown in Figure 24. Figure 24: 2D example with a crack: values of p∆ <sup>K</sup> MsF EM <sup>q2</sup> <sup>for the specific computed</sup> <sup>MsFEM</sup> solution (left), and local effectivity indices (right). Starting from the initial, non-accurate MsFEM approximation, we now use our adaptive algorithm, with a prescribed error tolerance of 5%. This leads to the local MsFEM parameters shown in Figure 25. We observe that the coarse mesh needs to be highly refined in the vicinity of the crack tip. In contrast, the oversampling layer never has to be larger than ε. 0 ε 2ε H ε/5 ε/20 Figure 25: 2D example with a crack: adapted coarse mesh (left), oversampling size (center) and fine mesh sizes hK (right). For this example, it would of course be interesting to use a MsFEM version of the XFEM method [61], which would consists in defining the MsFEM basis functions by means of local problems (posed on each coarse element K) complemented by enriched boundary conditions, in the spirit of the XFEM method. We did not pursue in that direction, which goes beyond the scope of this work. ### 7 Conclusions and prospects We have introduced numerical tools for a posteriori error estimation and adaptive strategies in MsFEM computations. They lead to fully computable and guaranteed upper bounds on the error measured in the energy norm, and enable to perform adaptive multiscale computations by selecting the relevant MsFEM parameters to reach a prescribed error tolerance. An important 43 feature of these numerical tools is that they are compatible with the offline/online and elementwise procedure of MsFEM. The additional computational costs are thus affordable. Using this procedure, the fine scale features of the solution are adaptively recovered during the online enrichment phase, if and where needed. Further studies, investigated in future works as extensions to the present article, will be conducted towards the establishement of goal-oriented error estimators, allowing to control the error on specific outputs of the problem [62]. Possible extensions also include the use of the CRE concept for other multiscale problems solved with MsFEM, such as non-symmetric problems (advection-diffusion-reaction), hyperbolic problems (elastodynamics), stochastic problems [63, 64] or some nonlinear problems [65]. ### 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-1-0294. ### References [1] Babuska I., Caloz G., Osborn J.E. Special finite element methods for a class of second order elliptic problems with rough coefficients. SIAM Journal on Numerical Analysis 1994; 31 (4):945–981. [2] Babuska I., Osborn J.E. Generalized finite element methods: their performance and their relation to mixed methods. SIAM Journal on Numerical Analysis 1983; 20 :510–536. [3] Strouboulis T., Copps K., Babuska I. The generalized finite element method. Computer Methods in Applied Mechanics and Engineering 2001; 190 :4081–4193. [4] Fish J., Yuan Z. Multiscale enrichment based on partition of unity. International Journal for Numerical Methods in Engineering 2004; 70 :1341-1359. [5] 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. [6] 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. [7] Efendiev Y., Hou T. Multiscale Finite Element Methods: Theory and Applications. Springer, New York 2009. [8] Hughes T.J.R., Feijoo G.R., Mazzei L., Quincy J.B. The variational multiscale method A paradigm for computational mechanics. Computer Methods in Applied Mechanics and Engineering 1998; 166 (1-2):3–24. [9] Hoang V.H., Schwab C. High-dimensional finite elements for elliptic problems with mul tiple scales. SIAM Multiscale Modeling & Simulation 2005; 3 :168–194. 44 [10] Hackbusch W. Multi-Grid Methods and Applications. Springer Series in Computational Mathematics 1985. [11] E W., Engquist B., Huang Z. Heterogeneous multiscale method: a general methodology for multiscale modeling. Physical Review B 2003; 67 (9):092101. [12] Abdulle A., E W., Engquist B., Vanden-Eijnden E. The heterogeneous multiscale method. Acta Numerica 2012; 21 :1–87. [13] 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. [14] Suquet P. Elements of homogenization theory for inelastic solid mechanics. in Homoge nization techniques for composite media, E. Sanchez-Palencia and A. Zaoui, eds., Lecture Notes in Physics, vol. 272, Springer 1987 (pp. 194–278). [15] Le Bris C., Legoll F., Lozinski A. An MsFEM type approach for perforated domains. SIAM Multiscale Modeling & Simulation 2014; 12 (3):1046–1077. [16] Verfürth R. A review of a posteriori error estimates and adaptive mesh-refinement tech niques. Wiley-Teubner 1996. [17] Ainsworth M., Oden J.T. A posteriori error estimation in finite element analysis. John Wiley & Sons 2000. [18] Ladevèze P., Pelle J.-P. Mastering Calculations in Linear and Nonlinear Mechanics. Springer, 2004. [19] Chamoin L., Díez P. (ed). Verifying calculations, forty years on: an overview of classical verification techniques for FEM simulations. SpringerBriefs, 2015. [20] 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. [21] Oden J.T., Reddy J.N. On dual complementary variational principles in mathematical physics. International Journal of Engineering Science 1974; 12 :1-29. [22] Fraeijs de Veubeke B. Displacement and equilibrium models in the finite element method. International Journal for Numerical Methods in Engineering, Classical Reprint Series 2001; 52 :287-342. [23] Pled F., Chamoin L., Ladevèze 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. [24] Ladevèze P., Chamoin L. Calculation of strict error bounds for finite element approxima tions of nonlinear pointwise quantities of interest. International Journal for Numerical Methods in Engineering 2010; 84 :1638–1664. [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. 45 [26] Hou T., Wu X.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. [27] Allaire G., Brizzi R. A multiscale finite element method for numerical homogenization. SIAM Multiscale Modeling & Simulation 2006; 4 (3):790–812. [28] Hesthaven J., Zhang S., Zhu X. High-order multiscale finite element method for elliptic problems. SIAM Multiscale Modeling & Simulation 2014; 12 (2):650–666. [29] Strouboulis T., Zhang L., Wang D., Babuska I. A posteriori error estimation for gener alized finite element methods. Computer Methods in Applied Mechanics and Engineering 2006; 195 :852–879. [30] Strouboulis T., Zhang L., Babuska I. Assessment of the cost and accuracy of the general ized FEM. International Journal for Numerical Methods in Engineering 2007; 69 :250–283. [31] 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. [32] Nolen J., Papanicolaou G., Pironneau O. A framework for adaptive multiscale methods for elliptic problems. SIAM Multiscale Modeling & Simulation 2008; 7 (1):171–196. [33] Abdulle A., Nonnenmacher A. A posteriori error analysis of the heterogeneous multiscale method for homogenization problems. C.R. Acad. Sci. Paris, Série I 2009; 347 :1081– 1086. [34] Abdulle A., Nonnenmacher A. Adaptive finite element heterogeneous multiscale method for homogenization problems. Computer Methods in Applied Mechanics and Engineering 2011; 200 :2710–2726. [35] Larsson F., Runesson K. On two-scale adaptive FE analysis of micro-heterogeneous media with seamless scale-bridging. Computer Methods in Applied Mechanics and Engineering 2011; 200 :2662–2674. [36] Paladim D., Moitinho de Almeida J.P., Bordas S., Kerfriden P. Guaranteed error bounds in homogenization: an optimum stochastic approach to preserve the numerical separation of scales. International Journal for Numerical Methods in Engineering 2017; 110 (2):103– 132. [37] Henning P., Ohlberger M., Schweizer B. An adaptive multiscale finite element method. SIAM Multiscale Modeling & Simulation 2014; 12 (3):1078–1107. [38] Chung E.T., Efendiev Y., Li G. An adaptive GMsFEM for high contrast flow problems. Journal of Computational Physics 2014; 273 :54–76. [39] Ern A., Stephansen A.F., Vohralik M. Guaranteed and robust discontinuous Galerkin a posteriori error estimates for convection-diffusion-reaction problems. Journal of Computational and Applied Mathematics 2010; 234 (1):114–130. 46 [40] Chamoin L., Legoll F. A pedagogical view on a posteriori error estimation in finite element analysis. Submitted to Applied Mathematics Research Express 2017. [41] 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. [42] Sanchez-Palencia E. Non Homogeneous Media and Vibration Theory. Springer, Heidel berg 1980. [43] Jikov V.V., Kozlov S.M., Oleinik, O.A. Homogenization of differential operators and integral functionals. Springer-Verlag, Berlin Heidelberg 1994. [44] Murat F., Tartar L. Calculus of variations and homogenization. in Topics in the Math ematical Modelling of Composite Materials, Progress in nonlinear differential equations and their applications, vol. 31, Birkhauser 1997 (pp. 139–173). [45] Tartar, L. The general theory of homogenization - A personalized introduction. Lecture Notes of the Unione Matematica Italiana, vol. 7, Springer-Verlag, Berlin Heidelberg 2010. [46] Kanouté P., Boso D.P., Chaboche J.-L., Schrefler B.A. Multiscale methods for composites: a review. Archives of Computational Methods in Engineering 2009; 16 (1):31–75. [47] Ciarlet P.G. The Finite Element Method for Elliptic Problems. North Holland 1978. [48] Strang G., Fix G.J. An Analysis of the Finite Element Method. Prentice Hall 1977. [49] Henning P., Peterseim D. Oversampling for the multiscale finite element method. SIAM Multiscale Modeling & Simulation 2013; 11 (4):1149–1175. [50] Ladevèze P., Leguillon D. Error estimate procedure in the finite element method and applications. SIAM Journal of Numerical Analysis 1983; 20 (3):485–509. [51] Destuynder P., Métivet B. Explicit error bounds in a conforming finite element method. Mathematics of Computation 1999; 68 (288):1379–1396. [52] Fraejis de Veubeke B. Displacement and equilibrium models in the finite element method. in Stress Analysis, O.C. Zienkiewicz and G.S. Holister, eds., New York, Wiley 1965 (pp. 145–197). [53] Ladevèze P., Maunder E.A.W. A general method for recovering equilibrating element tractions. Computer Methods in Applied Mechanics and Engineering 1996; 137 :111–151. [54] Florentin E., Gallimard L., Pelle J.-P. Evaluation of the local quality of stresses in 3d finite element analysis. Computer Methods in Applied Mechanics and Engineering 2002; 191 :4441–4457. [55] Pled F., Chamoin L., Ladevèze P. An enhanced method with local energy minimization for the robust a posteriori construction of equilibrated stress fields in finite element analyses. Computational Mechanics 2012; 49 :357–378. 47 [56] Ladevèze P., Chamoin L., Florentin E. A new non-intrusive technique for the construction of admissible stress fields in model verification. Computer Methods in Applied Mechanics and Engineering 2010; 199 (9-12):766–777. [57] Destuynder P., Métivet B. Explicit error bounds for a nonconforming finite element method. SIAM Journal of Numerical Analysis 1998; 35 (5):2099–2115. [58] Ern A., Nicaise S., Vohralik M. An accurate H(div) flux reconstruction for discontinu ous Galerkin approximations of elliptic problems. C.R. Acad. Sci. Paris, Série I 2007; 345 (12):709–712. [59] Ladevèze P., Rougeot P. New advances on a posteriori error on constitutive relation in finite element analysis. Computer Methods in Applied Mechanics and Engineering 1997; 150 :239–249. [60] Babu˘ska I., Strouboulis T., Upadhyay C.S., Gangaraj S.K., Copps K. Validation of a posteriori error estimators by numerical approach. International Journal for Numerical Methods in Engineering 1994; 37 (7):1073–1123. [61] Moës N., Dolbow J., Belytchko T. A finite element method for crack growth without remeshing. International Journal for Numerical Methods in Engineering 1999; 46 :131– 150. [62] Chamoin L., Legoll F. Goal-oriented error estimation and adaptivity in MsFEM compu tations. in preparation. [63] Xu F.X. A multiscale stochastic finite element method on elliptic problems involving uncertainties. Computer Methods in Applied Mechanics and Engineering 2007; 196 :2723– 2736. [64] 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. [65] Efendiev Y., Hou T., Ginting V. Multiscale finite element methods for nonlinear problems and their applications. Communications in Mathematical Sciences 2004; 2 (4):553–589. 48

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.