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

Non-intrusive implementation of a wide variety of Multiscale Finite Element Methods

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

기본 정보

저자
  1. Rutger A. Biezemans — CERMICS - Centre d'Enseignement et de Recherche en Mathématiques et Calcul Scientifique (6 et 8 avenue Blaise Pascal Cité Descartes - Champs sur Marne 77455 Marne la Vallée Cedex 2 - France)|||MATHERIALS - MATHematics for MatERIALS (France)
  2. Claude Le Bris — MATHERIALS - MATHematics for MatERIALS (France)|||CERMICS - Centre d'Enseignement et de Recherche en Mathématiques et Calcul Scientifique (6 et 8 avenue Blaise Pascal Cité Descartes - Champs sur Marne 77455 Marne la Vallée Cedex 2 - France)
  3. Frédéric Legoll — MATHERIALS - MATHematics for MatERIALS (France)|||Multi-échelle - Modélisation et expérimentation multi-échelle pour les solides hétérogènes (École des Ponts ParisTech, 6-8 avenue Blaise Pascal - Cité Descartes - Champs-sur-Marne, 77455 Marne-la-Vallée cedex 2 - France)
  4. Alexei Lozinski — LMB - Laboratoire de Mathématiques de Besançon (UMR 6623) (UFR Sciences et techniques 16 route de Gray 25 030 Besançon cedex - France)|||MATHERIALS - MATHematics for MatERIALS (France)
DOI
10.5802/crmeca.178
저널
Comptes Rendus Mécanique
발행년도
2023
발행기관
Elsevier BV
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.5802/crmeca.178
토픽
Composite Material Mechanics
OpenAlex ID
W4310723758

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(10) 아라미드, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Multiscale Finite Element Methods, highly oscillatory partial differential equations, microstructure, homogenization, numerical approximation
판단 근거
이 논문은 미세 구조(microstructure)를 가진 복잡한 소재의 거동을 해석하기 위한 다중 스케일 유한요소법(MsFEM)의 수치 해석적 방법론을 다룹니다. 이는 코오롱인더스트리의 복합소재(컴파운드)나 고분자 필름, 아라미드 등 미세 구조가 물성에 영향을 미치는 제품의 성능을 시뮬레이션하고 모델링하는 데 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
고분자 컴파운드나 섬유 보강재가 포함된 복합재료의 미세 구조에 따른 기계적/물리적 특성을 효율적으로 예측하는 수치 해석 모델 개발에 활용 가능합니다.
평가 입력
본문 235,786자 중 30,032자 발췌

초록

Multiscale Finite Element Methods (MsFEMs) are now well-established finite element type approaches dedicated to multiscale problems. They first compute local, oscillatory, problem-dependent basis functions that generate a suitable discretization space, and next perform a Galerkin approximation of the problem on that space. We investigate here how these approaches can be implemented in a non-intrusive way, in order to facilitate their dissemination within industrial codes or non-academic environments. We develop an abstract framework that covers a wide variety of MsFEMs for linear second-order partial differential equations. Non-intrusive MsFEM approaches are developed within the full generality of this framework, which may moreover be beneficial to steering software development and improving the theoretical understanding and analysis of MsFEMs.

본문 235,786자

본문 펼치기
# _Comptes Rendus_ ## _Mécanique_ Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski Non-intrusive implementation of a wide variety of Multiscale Finite Element Methods Volume 351, Special Issue S1 (2023), p. 135-180 Online since: 27 July 2023 Part of Special Issue: The scientific legacy of Roland Glowinski Guest editors: Grégoire Allaire (CMAP, Ecole Polytechnique, Institut Polytechnique de Paris, Palaiseau, France), Jean-Michel Coron (Laboratoire Jacques-Louis Lions, Sorbonne Université) and Vivette Girault (Laboratoire Jacques-Louis Lions, Sorbonne Université) [https://doi.org/10.5802/crmeca.178](https://doi.org/10.5802/crmeca.178) This article is licensed under the Creative Commons Attribution 4.0 International License. [http://creativecommons.org/licenses/by/4.0/](http://creativecommons.org/licenses/by/4.0/) CENTRE MERSENNE _The_ Comptes Rendus. Mécanique _are a member of the_ _Mersenne Center for open scientific publishing_ _Comptes Rendus_ _Mécanique_ 2023, Vol. 351, Special Issue S1, p. 135-180 ``` https://doi.org/10.5802/crmeca.178 #### The scientific legacy of Roland Glowinski / L’héritage scientifique _de Roland Glowinski_ ### Non-intrusive implementation of a wide variety of Multiscale Finite Element Methods ``` Rutger A. Biezemans <sup>_∗_</sup> <sup>,</sup> <sup>_a_</sup> <sup>,</sup> <sup>_b_</sup> , Claude Le Bris <sup>_c_</sup> <sup>,</sup> <sup>_d_</sup> , Frédéric Legoll <sup>_c_</sup> <sup>,</sup> <sup>_d_</sup> and Alexei Lozinski , _d_ , _e_ _a_ École Nationale des Ponts et Chaussées, 6 et 8 avenue Blaise Pascal, 77455 Marne-La-Vallée Cedex 2, France _b_ MATHERIALS project-team, Inria Paris, 2 rue Simone Iff, CS 42112, 75589 Paris Cedex 12, France _c_ Université de Franche-Comté, CNRS, LmB, F-25000 Besançon, France _E-mails:_ [rutger.biezemans@enpc.fr (R. A. Biezemans), claude.le-bris@enpc.fr](mailto:rutger.biezemans@enpc.fr) [(C. Le Bris), frederic.legoll@enpc.fr (F. Legoll), alexei.lozinski@univ-fcomte.fr](mailto:frederic.legoll@enpc.fr) (A. Lozinski) _This work is dedicated to the memory of R. Glowinski, a wonderful individual, a leading scientist in computational_ _methods, and a pioneer in the transfer between research and industry._ Abstract. Multiscale Finite Element Methods (MsFEMs) are now well-established finite element type approaches dedicated to multiscale problems. They first compute local, oscillatory, problem-dependent basis functions that generate a suitable discretization space, and next perform a Galerkin approximation of the problem on that space. We investigate here how these approaches can be implemented in a non-intrusive way, in order to facilitate their dissemination within industrial codes or non-academic environments. We develop an abstract framework that covers a wide variety of MsFEMs for linear second-order partial differential equations. Non-intrusive MsFEM approaches are developed within the full generality of this framework, which may moreover be beneficial to steering software development and improving the theoretical understanding and analysis of MsFEMs. Keywords. Partial differential equations, Finite element methods, Multiscale problems, Non-intrusive implementation. Funding. The first author acknowledges the support of DIM Math INNOV. The work of the second and third authors is partially supported by ONR under grant N00014-20-1-2691 and by EOARD under grant FA8655-201-7043. These two authors acknowledge the continuous support from these two agencies. The fourth author thanks Inria for the financial support enabling his two-year partial leave (2020-2022) that has significantly facilitated the collaboration on this project. _Manuscript received 30 November 2022, revised 1 February 2023, accepted 6 February 2023._ _∗_ Corresponding author. 136 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 1. Introduction In this article, we consider highly oscillatory partial differential equations (PDEs) of the form _L_ <sup>_ε_</sup> _u_ <sup>_ε_</sup> _=_ _f_, posed in a bounded domain Ω _⊂_ R <sup>_d_</sup>, where _L_ <sup>_ε_</sup> is a second-order linear differential operator with (possibly rough) coefficients that oscillate on a microscopic length scale of size _ε_ much smaller than the diameter of Ω. (See Sections 2 and 4 for a complete description of the problems that we study.) We seek a numerical approximation of _u_ <sup>_ε_</sup> by applying a Galerkin approach. It is well-known that standard (say P1) finite element methods (FEMs) yield a poor approximation as a consequence of the highly oscillatory nature of the problem, unless a prohibitively expensive fine mesh is employed. An explicit example of this phenomenon is given, e.g., in [1, Example 1.1]. Dedicated multiscale approaches have thus been introduced, which provide a reasonably accurate approximation of _u_ <sup>_ε_</sup> at a limited computational cost. Among the many multiscale approaches that have been proposed in the literature, we mention the _Heterogeneous Multi-_ _scale Method_ (abbreviated HMM) [2], the _Localized Orthogonal Decomposition_ (LOD) [3] method, and the _Multiscale_ _Finite_ _Element_ _Method_ (MsFEM) [4], on which we focus here. We refer the reader to [1,5–7] for more comprehensive expositions of these multiscale methods. The MsFEM is a finite element type approach that relies on the adaptation of the finite element space to the highly oscillatory differential operator, an idea that was first introduced in [8]. The MsFEM was introduced in [4]. It consists of two steps: (1) An “offline” stage, where highly oscillatory, problem-dependent basis functions are com puted numerically as solutions to local problems (that mimic the reference problem on a subdomain). The local problems serve as a preprocessing step of the microstructure. (2) An “online” stage, where a Galerkin approximation of the reference problem, performed in the finite-dimensional space generated by the basis functions that are computed in the offline stage, is solved. This constitutes the global coupling between the local computations performed in the offline stage. The MsFEM approach is particularly interesting for multi-query contexts, where the PDE of interest is to be solved repeatedly for multiple right-hand sides _f_ (think e.g. of optimization problems or time-dependent problems where the time discretization results in a PDE in space to advance from one time step to the next). In this case, the basis functions, which depend on _L_ <sup>_ε_</sup>, remain unchanged, so the offline stage is performed only once. The online stage solves a problem on a space of much lower dimension than a high fidelity space that fully resolves the microscale, resulting in a significant computational gain. The specific choice of problem-dependent basis functions has led to various MsFEM variants in the literature (see, for instance, [4, 6, 9, 10]). Although their implementation is rightfully considered relatively easy [6,11], these methods dictate an intrusive workflow, i.e., substantial modifications have to be made to the code of some existing finite element software to implement the MsFEM. For instance, all automatic computations involving integrals of standard (e.g. polynomial) basis functions have to be replaced by the corresponding computations for specialized basis functions for each specific problem. We explore this further in Section 2.3. The intrusive character of the MsFEM hinders the use of the method in many industrial contexts, because the time and tools required to adapt a legacy code that is currently in use may not be available. In this work, we propose a “non-intrusive” MsFEM strategy that uses an existing legacy code for single-scale problems (based on standard finite elements), without any modifications, to obtain an accurate resolution of oscillatory PDEs. The intrusiveness of the MsFEM is due to the following fact: the microstructure is preprocessed through the computation of specialized basis functions, thereby coupling the microstruc Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 137 ture explicitly to the global numerical model. We circumvent this coupling with a novel formulation of the MsFEM basis functions. The resulting MsFEM strategy can be summarized as follows: (1) In the offline stage, so-called numerical correctors are computed as the solution to problems mimicking the reference problem on a subdomain. The numerical correctors are then used to average the microstructure in the form of effective, piecewise constant coefficients, leading to an effective PDE. (2) In the online stage, the effective PDE is solved by a standard FEM _with the legacy code_ . (3) A post-processing stage is introduced to restore microscopic features in the macroscopic FEM result (obtained in the online stage) with the help of the numerical correctors computed in the offline stage. Our non-intrusive MsFEM approach was introduced on a prototypical example in [12]. In this article, we extend the findings of [12] to a large class of MsFEM variants that can be “related” to a P1 FEM, in a sense that will be made precise in Remark 7. This requires the formulation of a general MsFEM framework, covering a generic definition of the MsFEM for the approximation of an abstract variational formulation of second-order linear PDEs. To the best of our knowledge, the question of how to make MsFEM approaches less intrusive has not been studied in the literature, except for the preliminary study in [12], and this work is a first step in that direction. We comment on the intrusiveness of other multiscale methods in Section 5.4. An overview of the contents of this article is as follows. In Section 2, we recall the basic principles of the FEM and the MsFEM and we explain the intrusive character of the MsFEM. We also review the non-intrusive MsFEM approach that was proposed in [12] for the simplest MsFEM variant on the example of a diffusion problem. We also highlight a link between the non-intrusive MsFEM approach and classical homogenization here. Then we summarize in Section 3 which properties of the MsFEM are essential for the non-intrusive workflow, and motivate the development of a general framework covering a wide variety of MsFEMs that we present in Section 4. We extend the non-intrusive MsFEM approach of [12] to our general MsFEM framework in Section 5. The non-intrusive MsFEM approach of [12] was found to be equivalent to a Petrov–Galerkin MsFEM (with P1 test functions). This is no longer true for all MsFEMs covered by our general framework, and we obtain two non-intrusive MsFEMs: the Petrov–Galerkin MsFEM, which is completely equivalent to its non-intrusive implementation, and an approximate version of the Galerkin MsFEM that can be implemented in a non-intrusive way. The three essential formulas for the formulation of the non-intrusive MsFEM are highlighted in special boxes, both for the diffusion problem in Section 2 and for the general framework in Sections 4 and 5. We then study the general MsFEM framework applied to diffusion problems in Section 6, where we obtain a number of convergence results for the difference between the intrusive and non-intrusive MsFEM approaches. We conclude the article in Section 7 by a numerical comparison of the intrusive and non-intrusive MsFEM approaches for diffusion problems, in order to assess the efficiency of our approaches for cases that are not covered by the convergence results of Section 6. Our results show that the Petrov–Galerkin MsFEM as well as the non-intrusive approximation of the Galerkin MsFEM are close to the original Galerkin MsFEM. Any possible additional error introduced by making the MsFEM non-intrusive is thus negligible. _Notation_ In this article, we shall adopt standard notation for Sobolev spaces. In particular, the dual space of _H_ 0 <sup>1(Ω)</sup> <sup>is</sup> <sup>denoted</sup> <sup>_H_</sup> <sup>_−_</sup> <sup>1(Ω).</sup> <sup>Further,</sup> <sup>for</sup> <sup>a</sup> <sup>given</sup> <sup>simplicial</sup> <sup>mesh</sup> <sup>_TH_</sup> <sup>of</sup> <sup>Ω,</sup> <sup>we</sup> <sup>use</sup> <sup>the</sup> notation _H_ <sup>1</sup> ( _TH_ ) to denote the broken Sobolev space _H_ <sup>1</sup> ( _TH_ ) _=_ - _u ∈_ _L_ <sup>2</sup> (Ω) �� _u|K_ _∈_ _H_ 1( _K_ ) for all mesh elements _K_ _∈_ _TH_ - . 138 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski The standard norm for the space _H_ <sup>1</sup> (Ω) is _∥u∥H_ 1(Ω) _=_ ~~�~~ _∥u∥_ <sup>2</sup> _L_ <sup>2</sup> _L_ <sup>2</sup> (Ω) <sup>_+∥∇u∥_</sup> <sup>2</sup> _L_ _∥u∥H_ 1(Ω) _=_ _L_ <sup>2</sup> (Ω) <sup>_+∥∇u∥_</sup> <sup>2</sup> _L_ <sup>2</sup> (Ω) and the corresponding broken norm is _∥u∥H_ 1( _TH_ ) _=_ ~~�~~ <u>�</u> _K ∈_ _TH_ _∥u∥_ <sup>2</sup> _H_ <sup>1</sup> ( _K_ ) <sup>.</sup> The space of functions whose restriction to each element of _TH_ is a polynomial of degree _k_ is denoted P _k_ ( _TH_ ). 2. The (intrusive) multiscale finite element method for diffusion problems 2.1. _Discrete variational formulation_ Let _d_ _≥_ 1 denote the space dimension of interest and let Ω _⊂_ R <sup>_d_</sup> be a bounded polytope (e.g. a polygon in dimension _d_ _=_ 2, a polyhedron in dimension _d_ _=_ 3). Convexity of Ω can be assumed for elliptic regularity results to hold, for which we refer to [13]. This technical assumption is not necessary for the algorithmic aspects of the MsFEM that are the main focus of this article. By way of example, we consider first the diffusion equation with homogeneous Dirichlet boundary conditions. In a second step, from Section 4 onwards, we will also consider more general problems, and we will mention other types of boundary conditions in Section 5.3. More precisely, we focus here on the boundary value problem - _−_ div( _A_ <sup>_ε_</sup> _∇u_ <sup>_ε_</sup> ) _= f_ in Ω, _u_ <sup>_ε_</sup> _=_ 0 on _∂_ Ω, where the diffusion tensor _A_ <sup>_ε_</sup> _∈_ _L_ <sup>_∞_</sup> (Ω, R <sup>_d_</sup> <sup>_×d_</sup> ) satisfies the uniform bounds _∀_ _ξ ∈_ R <sup>_d_</sup>, _m|ξ|_ <sup>2</sup> _≤_ _ξ_ _· A_ <sup>_ε_</sup> ( _x_ ) _ξ_ a.e. in Ω, (1) (2) and _∀_ _ξ_, _η ∈_ R <sup>_d_</sup>, �� _η_ _· Aε_ ( _x_ ) _ξ_ �� _≤_ _M |ξ||η|_ a.e. in Ω, for some _M_ _≥_ _m >_ 0 independent of _ε_ . The right-hand side _f_ does not vary on the microscopic scale _ε_ . We denote the diffusion tensor with a superscript _ε_ to keep in mind that _A_ <sup>_ε_</sup> might be highly oscillatory on a typical length scale of size _ε_ much smaller than the diameter of Ω (assumed to be of order 1). No further structural assumptions on _A_ <sup>_ε_</sup> are made. In particular, _A_ <sup>_ε_</sup> need not be the rescaling of a fixed periodic matrix of the form _A_ <sup>_ε_</sup> ( _x_ ) _=_ _A_ ( _x_ / _ε_ ). We will specialize to this periodic setting in Section 6.3 only to obtain convergence results, but this assumption is of no relevance for the practical implementation of the MsFEM. Let us also mention that none of the considerations in this article require symmetry of the diffusion tensor. Our development of non-intrusive MsFEMs also generalizes to linear _systems_ of PDEs. The analysis we provide is also expected to extend to e.g. the system of linear elasticity up to some technicalities that we do not consider here. For simplicity of exposition, we assume that _f_ _∈_ _L_ <sup>2</sup> (Ω) (rather than _f_ _∈_ _H_ <sup>_−_</sup> <sup>1</sup> (Ω), for which the problem (1) is in fact well-posed). We do so to avoid unnecessary technicalities. Our proposed non-intrusive MsFEM carries over to the more general case. For some convergence results, the condition _f_ _∈_ _L_ <sup>2</sup> (Ω) cannot be relaxed. In this case, this is also explicitly stated. Problem (1) admits a unique solution in the space _H_ 0 <sup>1(Ω).</sup> <sup>This solution is also characterized</sup> by the variational formulation �Find _u_ <sup>_ε_</sup> _∈_ _H_ 0 <sup>1</sup> 0 <sup>1(Ω)</sup> such that (3) 0 <sup>1(Ω),</sup> _a_ <sup>_ε_</sup> <sup>,diff</sup> ( _u_ <sup>_ε_</sup>, _v_ ) _= F_ ( _v_ ) for all _v ∈_ _H_ 0 <sup>1</sup> Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 139 where the bilinear form _a_ <sup>_ε_</sup> <sup>,diff</sup> and the linear form _F_ are defined, for any _u_, _v ∈_ _H_ 0 <sup>1(Ω), by</sup> _∇v · A_ <sup>_ε_</sup> _∇u_, _F_ ( _v_ ) _=_ _a_ <sup>_ε_</sup> <sup>,diff</sup> ( _u_, _v_ ) _=_ Ω _f v_ . (4) Ω The coercivity hypothesis in (2) ensures that the bilinear form _a_ <sup>_ε_</sup> <sup>,diff</sup> is coercive on the space _H_ 0 <sup>1(Ω).</sup> <sup>Then the Lax–Milgram Theorem [14, Theorem 5.8] shows that (3) is indeed well-</sup> posed. The numerical approximation of (3) with a finite element method starts by the introduction of a mesh _TH_ for Ω. The subscript _H_ denotes the typical size of the mesh elements. We assume _TH_ to be a simplicial, conformal mesh. For some convergence results, we shall assume quasiuniformity. These assumptions are standard in finite element analysis. We refer, e.g., to [15–17] for a general exposition and various examples. Again, these regularity properties of the mesh do not have any impact on the implementation of the MsFEM on a given mesh. The regularity plays a role only to obtain convergence results. A finite element method for (1) is obtained by restricting the equivalent formulation (3) to a finite-dimensional subspace of _H_ 0 <sup>1(Ω),</sup> <sup>typically</sup> <sup>consisting</sup> <sup>of</sup> <sup>functions</sup> <sup>that</sup> <sup>are</sup> <sup>piecewise</sup> polynomial on the mesh _TH_ . We suppose that we are in the regime where _H_ is larger than or comparable to the microscale _ε_ . In this case, it is well known that a Galerkin approximation of (3) on, say, the standard (conforming) Lagrange P1 space on _TH_ provides only a poor, not to say an incorrect approximation of _u_ <sup>_ε_</sup> . See [1, Example 1.1], for instance, for an explicit example where the P1 approximation on a coarse mesh fails. At the same time, the use of a finite element method on a fine mesh of size _H ≪_ _ε_ might be unfeasible from a computational point of view because of its prohibitive computational cost. To remedy this issue, we shall next introduce the _multiscale_ _finite element method_ (MsFEM) [4,6]. 2.2. _A simple multiscale finite element method_ The MsFEM is a Galerkin approximation of (3) for which the approximation space is adapted in order to achieve satisfactory accuracy even on a coarse mesh. The correct choice of approximation space yields a numerical approximation that is much closer to _u_ <sup>_ε_</sup> than a standard P1-approximation when _ε_ is smaller than _H_, and especially when _ε_ becomes asymptotically small. To begin with, we introduce here the simplest variant of the MsFEM, which originally appeared in [4], before moving on to other MsFEM variants in Section 4. Let _x_ 1, ..., _xN_ 0 be an enumeration of the interior vertices of the mesh _TH_, i.e., the vertices that do not lie on _∂_ Ω. We denote by _φ_ <sup>P</sup> _i_ <sup>1</sup> the unique piecewise P1 function such that _φ_ <sup>P</sup> _i_ <sup>1</sup> <sup>(</sup> <sup>_x j_</sup> <sup>)</sup> <sup>_= δi_</sup> <sup>,</sup> <sup>_j_</sup> <sup>for</sup> all 1 _≤_ _j_ _≤_ _N_ 0. (These are the basis functions for the standard P1 Lagrange finite element.) We define the _multiscale basis functions φ_ <sup>_ε_</sup> _i_ <sup>(for 1</sup> <sup>_≤_</sup> <sup>_i_</sup> <sup>_≤_</sup> <sup>_N_</sup> <sup>0) by</sup> <sup>P</sup> _i_ <sup>1</sup> the unique piecewise P1 function such that _φ_ <sup>P</sup> _i_ <sup>1</sup> <sup>_ε_</sup> _i_ <sup>(for 1</sup> <sup>_≤_</sup> <sup>_i_</sup> <sup>_≤_</sup> <sup>_N_</sup> <sup>0) by</sup> - _A_ <sup>_ε_</sup> _∇φ_ <sup>_ε_</sup> _i_ - _A_ <sup>_ε_</sup> _∇φ_ <sup>_ε_</sup> _i_ - _=_ 0 in _K_, _∀_ _K_ _∈_ _TH_, - _−_ div _φ_ <sup>_ε_</sup> _i_ <sup>_ε_</sup> _i_ <sup>_= φ_</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>P</sup> _i_ <sup>1</sup> on _∂K_ . (5) All these problems, on each mesh element _K_, are again well-posed by coercivity of _A_ <sup>_ε_</sup> and the Lax–Milgram Theorem. The functions _φ_ <sup>_ε_</sup> _i_ <sup>so defined belong to the global space</sup> <sup>_H_</sup> 0 <sup>1(Ω) because</sup> the local boundary conditions on _∂K_ imply continuity across all mesh elements _K_ . It is also immediately seen that _φ_ <sup>_ε_</sup> _i_ <sup>is supported by exactly the same mesh elements as</sup> <sup>_φ_</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>.</sup> Remark 1. On each mesh element _K_, problem (5) defines at most _d +_ 1 non-trivial basis functions. Let _i_ 1, ..., _id_ _+_ 1 be the indices of the vertices of _K_ . It is easily inferred from (5) that <sup>_ε_</sup> _i_ <sup>so defined belong to the global space</sup> <sup>_H_</sup> 0 <sup>1</sup> <sup>_ε_</sup> _i_ <sup>is supported by exactly the same mesh elements as</sup> <sup>_φ_</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>.</sup> _φ_ <sup>_ε_</sup> _id_ _+_ 1 ����� _K_ _=_ 1 _−_ _j_ - _=d_ 1 _φ_ <sup>_ε_</sup> _i j_ _φ_ <sup>_ε_</sup> ����� _K_ . Thus, one only has to compute _d_ basis functions by the resolution of the PDE (5) on _K_ . 140 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski The multiscale approximation space is defined as _VH_ <sup>_ε_</sup> _H_ <sup>_ε_</sup>,0 <sup>_=_</sup> <sup>span{</sup> <sup>_φε_</sup> _i_ The multiscale approximation space is defined as _VH_ <sup>_ε_</sup>,0 <sup>_=_</sup> <sup>span{</sup> <sup>_φε_</sup> _i_ <sup>_|_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_i_</sup> <sup>_≤_</sup> <sup>_N_</sup> <sup>0}.</sup> <sup>This</sup> <sup>is</sup> <sup>a</sup> finite-dimensional space of the same dimension as the one used for a P1 Lagrange finite element approximation on the mesh _TH_ . The MsFEM consists in computing the approximation _u_ <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_,0 defined by the problem <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ _∀_ _v_ _H_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_,0 <sup>,</sup> _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_v_</sup> _H_ <sup>_ε_</sup> _H_ - _= F_ - _v_ _H_ <sup>_ε_</sup> - . (6) Since _VH_ <sup>_ε_</sup>,0 <sup>is</sup> <sup>a</sup> <sup>subspace</sup> <sup>of</sup> <sup>_H_</sup> 0 <sup>1(Ω),</sup> <sup>the</sup> <sup>bilinear</sup> <sup>form</sup> <sup>_aε_</sup> <sup>,diff</sup> <sup>is</sup> <sup>coercive</sup> <sup>on</sup> <sup>_V ε_</sup> _H_,0 <sup>and</sup> <sup>the</sup> <sup>discrete</sup> problem (6) is again well-posed by virtue of the Lax–Milgram Theorem. Since _VH_ <sup>_ε_</sup> _H_ <sup>_ε_</sup>,0 <sup>is</sup> <sup>a</sup> <sup>subspace</sup> <sup>of</sup> <sup>_H_</sup> 0 <sup>1</sup> The computation of the multiscale basis functions _φ_ <sup>_ε_</sup> _i_ <sup>is called the</sup> <sup>_offline stage_</sup> <sup>of the MsFEM</sup> and only has to be carried out once if (1) has to be solved multiple times for different right-hand sides. Also note that all problems (5) are independent of each other, and can thus be solved in parallel. Once all basis functions are known, one can compute the stiffness matrix of the MsFEM (see Section 2.3 for more details), which is also part of the offline stage. In practice, the _φ_ <sup>_ε_</sup> _i_ <sup>are approximated numerically on a fine mesh of</sup> <sup>_K_</sup> <sup>_∈_</sup> <sup>_TH_</sup> <sup>of mesh size</sup> <sup>_h ≤_</sup> <sup>_ε_</sup> <sup>that resolves</sup> the oscillations of _A_ <sup>_ε_</sup> . We omit these details here because they have no importance for the nonintrusive strategy that we shall propose later in this article. The resolution of the global problem (6), each time the right-hand side _F_ changes, is called the _online_ _stage_ . The computational cost for this problem is the same as for a standard P1 approximation on the same mesh. A further discussion of the practical implementation of the MsFEM is provided in Section 2.3. This discussion partially reproduces some elements of [12]. We include it here to clarify and motivate the developments in the sequel. 2.3. _Intrusive workflow_ The practical resolution of the global problem (6) consists in the construction and resolution of the following linear system: A <sup>_ε_</sup> _U_ <sup>_ε_</sup> _=_ F <sup>_ε_</sup>, (7) with the stiffness matrix A <sup>_ε_</sup> and the right-hand side F <sup>_ε_</sup> of the linear system given by <sup>_ε_</sup> _j_, _i_ <sup>_= aε_</sup> <sup>,diff �</sup> <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_φε_</sup> _j_ - _φ_ <sup>_ε_</sup> _j_ _∀_ 1 _≤_ _i_, _j_ _≤_ _N_ 0, A <sup>_ε_</sup> _j_ _φ_ <sup>_ε_</sup> _i_ _j_ -, F <sup>_ε_</sup> _j_ <sup>_= F_</sup> , (8) where we recall that _N_ 0 denotes the number of interior vertices of _TH_ . The MsFEM approximation _u_ <sup>_ε_</sup> _H_ <sup>is given by</sup> <sup>_uε_</sup> _H_ <sup>_=_</sup> <sup>�</sup> _i_ <sup>_N_</sup> _=_ <sup>0</sup> 1 <sup>_U ε_</sup> _i_ <sup>_φε_</sup> _i_ <sup>. The MsFEM can then be written (as it is traditionally pre-</sup> sented) as in Algorithm 1. We use the notation _aK_ <sup>_ε_</sup> <sup>,diff</sup> ( _u_, _v_ ) _=_ - _K_ <sup>_∇v · Aε∇u_</sup> <sup>for all</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v ∈_</sup> <sup>_H_</sup> <sup>1(</sup> <sup>_K_</sup> <sup>) and</sup> <sup>_ε_</sup> _H_ <sup>_=_</sup> <sup>�</sup> _i_ <sup>_N_</sup> _=_ <sup>0</sup> <sup>_ε_</sup> _H_ <sup>is given by</sup> <sup>_uε_</sup> _H_ _i_ <sup>_N_</sup> _=_ <sup>0</sup> 1 <sup>_U ε_</sup> _i_ <sup>_ε_</sup> _i_ <sup>_φε_</sup> _i_ sented) as in Algorithm 1. We use the notation _aK_ <sup>_ε_</sup> <sup>,diff</sup> ( _u_, _v_ ) _=_ - _K_ <sup>_∇v · Aε∇u_</sup> <sup>for all</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v ∈_</sup> <sup>_H_</sup> <sup>1(</sup> <sup>_K_</sup> <sup>) and</sup> we write _FK_ ( _v_ ) _=_ - _K_ <sup>_f v_</sup> <sup>for any</sup> <sup>_v ∈_</sup> <sup>_L_</sup> <sup>2(</sup> <sup>_K_</sup> <sup>).</sup> we write _FK_ ( _v_ ) _=_ - _K_ <sup>_f v_</sup> <sup>for any</sup> <sup>_v ∈_</sup> <sup>_L_</sup> <sup>2(</sup> <sup>_K_</sup> <sup>).</sup> Lines (1)-(12) of Algorithm 1 (resp. (13)-(17)) constitute the offline (resp. online) stage of the MsFEM. Note that the computation of the stiffness matrix A <sup>_ε_</sup> in line (11) only depends on the multiscale basis functions (and not on the right-hand side _f_ ) and can therefore be carried out once and for all in the offline stage. Also note that, for an efficient computation of the _φ_ <sup>_ε_</sup> _i_ <sup>in</sup> line (6), one should apply Remark 1. Only the online stage is to be repeated when problem (1) is to be solved multiple times for various right-hand sides _f_ . Implementing Algorithm 1 in an industrial code is challenging. Indeed, the practical implementation of any finite element method relies on (i) the construction of a mesh, (ii) the construction of the linear system associated to the discrete variational formulation and (iii) the resolution of the linear system. An efficient implementation of the second step heavily relies on the choice of the discretization space. Regarding the construction of the linear system (performed in line (11) of Algorithm 1), it is by no means obvious to adapt existing finite element codes based on generic approximation spaces (for instance spaces of piecewise polynomial functions, such as the piecewise affine functions that we will introduce in Definition 10 below) to a different, problem-dependent choice of space _K_ <sup>_ε_</sup> <sup>,diff</sup> ( _u_, _v_ ) _=_ Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 141 Algorithm 1 MsFEM approach for problem (1) (see comments in the text) 1: Construct a mesh _TH_ of Ω, denote _N_ 0 the number of internal vertices and _N_ ( _n_, _K_ ) the global index of the vertex of _K_ _∈_ _TH_ that has local index 1 _≤_ _n ≤_ _d +_ 1 in _K_ 2: Set A <sup>_ε_</sup> : _=_ 0 and F <sup>_ε_</sup> : _=_ 0 3: for all _K_ _∈_ _TH_ do 4: for 1 _≤_ _n ≤_ _d +_ 1 do 5: Set _i_ : _= N_ ( _n_, _K_ ) 6: Solve for _φ_ <sup>_ε_</sup> _i_ �� _K_ <sup>in (5)</sup> 7: end for 8: for 1 _≤_ _l ≤_ _d +_ 1 do 9: Set _j_ : _= N_ ( _l_, _K_ ) 10: for 1 _≤_ _n ≤_ _d +_ 1 do <sup>_ε_</sup> _j_, _i_ <sup>_+= a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> _j_ <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_φε_</sup> _j_ 11: Set _i_ : _= N_ ( _n_, _K_ ) and A <sup>_ε_</sup> _j_ _K_ - _φ_ <sup>_ε_</sup> _i_ 12: end for 13: Set F <sup>_ε_</sup> _j_ <sup>_+= FK_</sup> 14: end for 15: end for - _φ_ <sup>_ε_</sup> _j_ - _φ_ <sup>_ε_</sup> 16: Solve the linear system A <sup>_ε_</sup> _U_ <sup>_ε_</sup> _=_ F <sup>_ε_</sup> 17: Obtain the MsFEM approximation _u_ <sup>_ε_</sup> _H_ <sup>_=_</sup> _N_ 0 _i_ _=_ 1 <sup>_ε_</sup> _i_ <sup>_φ_</sup> _i_ <sup>_ε_</sup> _Ui_ <sup>_ε_</sup> _i_ such as _VH_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> <sup>. No analytic expressions for the basis functions</sup> <sup>_φε_</sup> _i_ _K_ <sup>_ε_</sup> <sup>(</sup> <sup>_φε_</sup> _i_ <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_φε_</sup> _j_ such as _VH_ <sup>_ε_</sup> <sup>. No analytic expressions for the basis functions</sup> <sup>_φε_</sup> _i_ <sup>are available (and thus a fine mesh</sup> should be used to approximate them), the computation of _aK_ <sup>_ε_</sup> <sup>(</sup> <sup>_φε_</sup> _i_ <sup>,</sup> <sup>_φε_</sup> _j_ <sup>)</sup> <sup>should</sup> <sup>be</sup> <sup>performed</sup> <sup>by</sup> quadrature rules on the fine mesh because the integrands are highly oscillatory, one should have at hand the correspondence between element and vertex indices of the coarse mesh ( _N_ ( _n_, _K_ ) in Algorithm 1), the assembly of the global stiffness matrix {A <sup>_ε_</sup> _j_, _i_ <sup>}1</sup> <sup>_≤_</sup> <sup>_i_</sup> <sup>,</sup> <sup>_j ≤_</sup> <sup>_N_</sup> <sup>0</sup> <sup>should</sup> <sup>be</sup> <sup>executed</sup> by a dedicated new piece of software, etc. To alleviate these obstacles, we introduce below a way of implementing the MsFEM that capitalizes on an existing code for solving (1) by a P1 approximation on _TH_ in the case of slowly varying diffusion coefficients. The three central identities for our approach that we aim to generalize to other MsFEMs in this article are framed in distinctive boxes. 2.4. _Effective problem on the macroscopic scale_ Let us consider the construction of the stiffness matrix of the MsFEM in more detail. The stiffness matrix defined in (8) requires the computation of the quantities <sup>_ε_</sup> _j_, _i_ <sup>_= aε_</sup> <sup>,diff �</sup> <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_φε_</sup> _j_ A <sup>_ε_</sup> _j_ _φ_ <sup>_ε_</sup> _i_ _j_ _=_ <sup>_ε_</sup> _i_ <sup>,</sup> (9) _K_ _∇φ_ <sup>_ε_</sup> _j_ <sup>_ε_</sup> _j_ <sup>_· Aε∇φε_</sup> _i_ <sup>,</sup> _K ∈_ _TH_ for all 1 _≤_ _i_, _j_ _≤_ _N_ 0. Following [12], we rewrite the multiscale basis functions as ���� _K_ <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> in _K_, (10) <sup>_ε_</sup> _i_ <sup>_= φ_</sup> <sup>P</sup> _i_ <sup>1</sup> - _d_ _α=_ 1 _∀_ _K_ _∈_ _TH_, _φ_ <sup>_ε_</sup> _i_ _+_ <sup>P</sup> _i_ <sup>1</sup> - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> 142 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski for all 1 _≤_ _i_ _≤_ _N_ 0, where, for each mesh element _K_, we define the numerical corrector _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> _∈_ _H_ 0 <sup>1</sup> for all 1 _≤_ _i_ _≤_ _N_ 0, where, for each mesh element _K_, we define the numerical corrector _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> _∈_ _H_ 0 <sup>1(Ω)</sup> (1 _≤_ _α ≤_ _d_ ) as the function supported by _K_ that is the unique solution to the local problem - _A_ <sup>_ε_</sup> _∇χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> - _−_ div _K_ (11) - _=_ div( _A_ <sup>_ε_</sup> _eα_ ) in _K_, _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _=_ 0 on _∂K_ . Here, _eα_ denotes the _α_ -th canonical unit vector of R <sup>_d_</sup> . The expansion (10) is obtained upon rewriting (5) as a PDE for _φ_ <sup>_ε_</sup> _i_ <sup>_−_</sup> <sup>_φ_</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>,</sup> <sup>and</sup> <sup>then</sup> <sup>using</sup> <sup>linearity</sup> <sup>of</sup> <sup>the</sup> <sup>PDE</sup> <sup>and</sup> <sup>the</sup> <sup>fact</sup> <sup>that</sup> <sup>_∇φ_</sup> _i_ <sup>P1</sup> <sup>_ε_</sup> _i_ <sup>_−_</sup> <sup>_φ_</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>,</sup> <sup>and</sup> <sup>then</sup> <sup>using</sup> <sup>linearity</sup> <sup>of</sup> <sup>the</sup> <sup>PDE</sup> <sup>and</sup> <sup>the</sup> <sup>fact</sup> <sup>that</sup> <sup>_∇φ_</sup> _i_ <sup>P1</sup> _i_ is constant in _K_ to show that - _d_ _α=_ 1 ���� _K_ <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> is indeed the unique solution to this PDE. Inserting (10) for the trial and test functions in (9) and again exploiting the fact that all _φ_ <sup>P1</sup> _i_ _i_ have piecewise constant gradients, we obtain ���� _K_ - _eβ +∇χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> - _eβ +∇χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> �� _K_ - _· A_ <sup>_ε_</sup> <sup>�</sup> _eα +∇χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> - <sup>��</sup> _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> A <sup>_ε_</sup> _j_, _i_ <sup>_=_</sup> A <sup>_ε_</sup> _j_ _K ∈_ _TH_ _K ∈_ _TH_ - _d_ _α_, _β=_ 1 - _d_ _α_, _β=_ 1 - _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> - _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> <sup>1</sup> ���� _K_ _K_ - _x_ <sup>_α_</sup> _+_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_xβ +_</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> �� _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> �� _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> ���� _K_ <sup>.</sup> _=_ - _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> - _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> <sup>1</sup> ���� _K_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> Next we define the piecewise constant effective diffusion tensor _A ∈_ P0( _TH_, R <sup>_d_</sup> <sup>_×d_</sup> ) by _K_ - _x_ <sup>_α_</sup> _+_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_xβ +_</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> _Aβ_, _α_ ��� _K_ <sup>_=_</sup> _|K_ <sup><u>1</u></sup> _|K_ <sup><u>1</u></sup> _|_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> _K_ for each _K_ _∈_ _TH_ and each 1 _≤_ _α_, _β ≤_ _d_, (12) where _|K |_ denotes the measure of the mesh element _K_ . Then (9) can be written as _∇φ_ <sup>P</sup> _j_ <sup>1</sup> (13) <sup>P</sup> _i_ <sup>1</sup> <sup>.</sup> A <sup>_ε_</sup> _j_, _i_ <sup>_=_</sup> A <sup>_ε_</sup> _j_, Ω <sup>P</sup> _j_ <sup>1</sup> <sup>_· A_</sup> <sup>_∇φ_</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>.</sup> Motivated by (13), we introduce the coarse-scale problem _A_ _∇u_ - _−_ div _= f_ in Ω, _u =_ 0 on _∂_ Ω, (14) and its Galerkin discretization with P1 Lagrange elements: with _VH_,0 _=_ span{ _φ_ <sup>P</sup> _i_ <sup>1</sup> _|_ 1 _≤_ _i_ _≤_ _N_ 0} (note that the definition of _VH_,0 will be generalized in Definition 11), find _uH_,0 _∈_ _VH_,0 such that _∀_ _v_ _H_ _∈_ _VH_,0, _<u>a</u>_ <sup>~~d~~</sup> <sup>iff</sup> ( _uH_, _v_ _H_ ) _= F_ ( _v_ _H_ ), (15) where the linear form _F_ is defined in (3) and the bilinear form _<u>a</u>_ <sup>~~d~~</sup> <sup>iff</sup> is defined as _∀_ _u_, _v ∈_ _H_ 0 <sup>1(Ω),</sup> _<u>a</u>_ <sup>~~d~~</sup> <sup>iff</sup> ( _u_, _v_ ) _=_ _∇v · A_ _∇u_ . (16) Ω Problem (15) equivalently writes with A <sup>P1</sup> _U_ <sup>P1</sup> _=_ F <sup>P1</sup>, (17) A <sup>P1</sup> _∀_ 1 _≤_ _i_, _j_ _≤_ _N_ 0, _j_, _i_ <sup>_= a_</sup> <sup>~~d~~</sup> <sup>iff �</sup> <sup>P1</sup> _i_ <sup>,</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> - _φ_ <sup>P1</sup> _j_ - _φ_ <sup>P1</sup> . (18) _φ_ <sup>P</sup> _i_ <sup>1</sup> _j_ -, F <sup>P</sup> _j_ <sup>1</sup> <sup>_= F_</sup> -, F <sup>P</sup> _j_ <sup>1</sup> Comparing the expressions (13) and (18), we deduce that A <sup>_ε_</sup> _=_ A <sup>P1</sup> . In other words: Lemma 2. _The_ _stiffness_ _matrix_ _of_ _the_ _MsFEM_ _problem_ (6) _is_ _identical_ _to_ _the_ _stiffness_ _matrix_ _of_ _the_ P1 _problem_ (15) _._ Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 143 This lemma immediately implies that the P1 problem (15) is well-posed, since the MsFEM problem (6) itself is well-posed. Let us point out that problems (14) and (15) are defined entirely in terms of quantities that vary only on the macroscopic scale _H_ . The finite element problem (15) can thus be solved using a legacy code that is designed for standard FEMs. Lemma 2 then suggests including the P1 approximation (15) of the effective, coarse-scale problem (14) as an integral part of the MsFEM approach. We do so in Algorithm 2 below. The right-hand side vector F <sup>_ε_</sup> in (8) is, in general, different from F <sup>P1</sup> in (18). Indeed, we integrate the product of _f_ with highly oscillatory basis functions in the former problem and with P1 basis functions in the latter. The solutions _U_ <sup>_ε_</sup> and _U_ <sup>P1</sup> to (7) and (17), respectively, are thus different a priori. 2.5. _Non-intrusive workflow_ We propose the following non-intrusive MsFEM variant: _H_ <sup>_ε_</sup>,0 <sup>where</sup> <sup>_uH_</sup> <sup>_∈_</sup> <sup>_VH_</sup> <sup>,0 is the unique solution to (15).</sup> (19) Set _u_ <sup>_ε_</sup> _H_ <sup>_= uH +_</sup> _K ∈_ _TH_ ( _∂αuH_ ) _|K χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> _∈_ _VH_ <sup>_ε_</sup> The MsFEM approximation _u_ <sup>_ε_</sup> _H_ <sup>is</sup> <sup>well-defined,</sup> <sup>since</sup> <sup>we</sup> <sup>have</sup> <sup>seen</sup> <sup>above</sup> <sup>that</sup> <sup>problem</sup> <sup>(15)</sup> <sup>is</sup> well-posed. Note that the symbol _u_ <sup>_ε_</sup> _H_ <sup>shall</sup> <sup>be</sup> <sup>used</sup> <sup>here</sup> <sup>and</sup> <sup>in</sup> <sup>the</sup> <sup>sequel</sup> <sup>for</sup> <sup>the</sup> <sup>solution</sup> <sup>to</sup> <sup>various</sup> MsFEMs variants to alleviate the notation. The exact MsFEM will be specified by the context. We will use distinct notation for different MsFEM variants when required for clarity. The most efficient way to compute _u_ <sup>_ε_</sup> _H_ <sup>from</sup> <sup>_uH_</sup> <sup>is not as stated here, however. The</sup> <sup>_evaluation_</sup> of _uH_ ( _x_ ) may require the determination of the degrees of freedom associated to the simplex _K_ to which _x_ belongs. This demands the use of the internal mechanisms of the legacy code that is used to compute _uH_ . The use of the legacy code can be avoided by expanding _uH_ as follows. For any affine function _ϕ_ on _K_, we have Note that the symbol _u_ <sup>_ε_</sup> The most efficient way to compute _u_ <sup>_ε_</sup> _H_ on _K_, (20) - _+_ - _d_ _α=_ 1 _∂αϕ_ - _x_ <sup>_α_</sup> _−_ _xc_ <sup>_α_</sup>, _K_ _ϕ_ ( _x_ ) _= ϕ_ - _xc_, _K_ where _x_ <sup>_α_</sup> denotes the function that to a point _x_ _∈_ Ω associates its _α_ <sup>th</sup> coordinate, and _xc_, _K_ _=_ ( _xc_ <sup>1</sup>, _K_ <sup>, ...,</sup> <sup>_x_</sup> _c_ <sup>_d_</sup>, _K_ <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>centroid</sup> <sup>of</sup> <sup>_K_</sup> <sup>.</sup> <sup>If</sup> <sup>one</sup> <sup>uses</sup> <sup>the</sup> <sup>legacy</sup> <sup>code</sup> <sup>to</sup> <sup>store</sup> <sup>the</sup> <sup>values</sup> <sup>of</sup> <sup>_uH_</sup> <sup>(</sup> <sup>_xc_</sup> <sup>,</sup> <sup>_K_</sup> <sup>)</sup> and _∂αuH_ element by element at the end of the online stage, then _u_ <sup>_ε_</sup> _H_ <sup>defined</sup> <sup>in</sup> <sup>(19)</sup> <sup>can</sup> <sup>be</sup> _c_ <sup>1</sup>, _K_ <sup>, ...,</sup> <sup>_x_</sup> _c_ <sup>_d_</sup> and _∂αuH_ element by element at the end of the online stage, then _u_ <sup>_ε_</sup> _H_ <sup>defined</sup> <sup>in</sup> <sup>(19)</sup> <sup>can</sup> <sup>be</sup> computed element by element according to <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> _∀_ _K_ _∈_ _TH_, _u_ <sup>_ε_</sup> _H_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_= uH_</sup> <sup>(</sup> <sup>_xc_</sup> <sup>,</sup> <sup>_K_</sup> <sup>)</sup> <sup>_+_</sup> _∀_ _K_ _∈_ _TH_, _u_ <sup>_ε_</sup> _H_ - _d_ _α=_ 1 ( _∂αuH_ ) _|K_ - _x_ <sup>_α_</sup> _−_ _xc_ <sup>_α_</sup>, _c_ <sup>_α_</sup>, _K_ <sup>_+_</sup> <sup>_χε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> on _K_, (21) without using the legacy code. The above observations culminate in the computational approach presented in Algorithm 2. We can distinguish (1) the offline stage consisting of lines (1)-(7), (2) the online stage being executed entirely in line (8), (3) a post-processing step in line (9). The superiority of Algorithm 2 over the classical MsFEM Algorithm 1 is that the global problem of the online stage can completely be constructed and solved by the use of a pre-existing P1 PDE solver. The only requirements for the legacy code are the functionality to provide piecewise constant diffusion coefficients to the solver and the existence of a procedure to store the value of the P1 solution and its gradient at the centroids of the mesh. An additional advantage in the online stage is that the construction of the right-hand side F <sup>P1</sup> (see (18)) for the global problem 144 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski Algorithm 2 Non-intrusive MsFEM approach for problem (1) 1: Let _TH_ be the mesh used by the legacy code 2: for all _K_ _∈_ _TH_ do 3: for 1 _≤_ _α ≤_ _d_ do 4: Solve for _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> defined by (11) 5: end for 6: Compute _A|K_ defined by (12) 7: end for 8: Use the legacy code to solve for _uH_ defined by (15) and to save - _uH_ ( _xc_, _K_ ) Use the legacy code to solve for _uH_ defined by (15) and to save - _uH_ ( _xc_, _K_ )� _K ∈_ _TH_ <sup>and</sup> {( _∂αuH_ ) _|K_ } _K ∈_ _TH_,1 _≤_ _α_ _≤_ _d_ 9: Obtain the MsFEM approximation _u_ <sup>_ε_</sup> _H_ <sup>by (21)</sup> only requires a numerical quadrature on the coarse mesh and is therefore cheaper than the construction of F <sup>_ε_</sup> (see (8)), involving the multiscale basis functions and requiring numerical quadratures at the microscale. The part of the offline stage that manipulates fine meshes (lines (2)-(7)) and the postprocessing step can be developed independently of the legacy code used in line (8). The requirement for these fine-scale solvers is that they have access to the coarse mesh _TH_ used by the global solver. Note also that the local problem (11) is only indexed by the coarse mesh element _K_, in contrast to the local problem (5) that is indexed both by the coarse mesh element _K_ and the vertex index _i_ . For the latter problems, one has to know, for each element _K_, the global index that corresponds to the vertices of _K_, a piece of information that may be difficult to <u>ac-</u> cess in a legacy code. For the problems (11), this correspondence is not needed to compute _A_, nor for the computation of the fine-scale solution _u_ <sup>_ε_</sup> _H_ <sup>in (21), both of which are entirely defined</sup> element-wise. Remark 3 (Quantities of interest). In the post-processing step of Algorithm 2, it is easy to compute pointwise values of the approximation _u_ <sup>_ε_</sup> _H_ <sup>by (21) and to use these for further computational</sup> steps, such as the evaluation of the energy or other quantities of interest. This task can be carried out element wise, hence Eq. (21) can easily be used. (See also Remark 51.) Remark 4 (Visualization). We focus our attention here on the visualization of the MsFEM approximation _u_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>which</sup> <sup>can</sup> <sup>be</sup> <sup>an</sup> <sup>important</sup> <sup>tool</sup> <sup>in</sup> <sup>engineering</sup> <sup>practices.</sup> Visualization requires the combination of information on neighbouring mesh elements, and this can in general not be carried out by the legacy code since it does not have access to the fine meshes used to compute the numerical correctors. Even if this were the case, the fine meshes may not yield a globally conformal mesh when combined. The question of a global visualization then becomes a complex one that requires innovations beyond the contributions of this article. Instead, we propose the following two-step visualization approach: _•_ One can visualize the coarse part _uH_ of the MsFEM approximation for a global view of the solution with the tools provided by the legacy code that is used to compute _uH_ ; _•_ The fine scale details of _u_ <sup>_ε_</sup> _H_ <sup>in</sup> <sup>regions</sup> <sup>of</sup> <sup>interest</sup> <sup>can</sup> <sup>be</sup> <sup>studied</sup> <sup>through</sup> <sup>zooms</sup> <sup>inside</sup> mesh elements, using the code that is used for computations at the microscale. 2.6. _Interpretation of the non-intrusive MsFEM_ We emphasized above that the right-hand sides of the linear system for the MsFEM in (8) and the linear system solved for the non-intrusive MsFEM in (18) are different in general. This motivates Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 145 the comparison of the non-intrusive MsFEM approach (19) to the following Petrov–Galerkin MsFEM: - _φ_ <sup>P1</sup> _j_ - _φ_ <sup>P1</sup> for all 1 _≤_ _j_ _≤_ _N_ 0, (22) _= F_ Find _u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_,0 <sup>such that</sup> <sup>_aε_</sup> <sup>,diff</sup> <sup>�</sup> _u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> _j_ based on the trial space _VH_ <sup>_ε_</sup>,0 <sup>and the test space</sup> <sup>_VH_</sup> <sup>,0 for both the bilinear and the linear form. The</sup> following result was shown in [12]. Lemma 5. _The_ _non-intrusive_ _MsFEM_ _variant_ (19) _coincides_ _with_ _the_ _Petrov-Galerkin_ _Ms-_ _FEM_ (22) _._ The non-intrusive MsFEM approach is generalized in Section 5 after the development of a general framework to define a wide variety of MsFEMs in Section 4. Lemma 5 does not generalize to the full framework. We will see the conditions under which the non-intrusive approach leads to a Petrov–Galerkin MsFEM in Lemma 38. 2.7. _Relation to homogenization theory_ We highlight in this section the fact that many ingredients of our non-intrusive MsFEM approach are reminiscent of standard quantities of homogenization theory, or the theory of _H_ convergence, which studies the limit of a sequence of solutions _u_ <sup>_ε_</sup> to a PDE as _ε_ tends to 0. This relation to _H_ -convergence provides an interesting interpretation of the effective tensor _A_ introduced in (12). Let us suppose in this section (and in this section only, except for Section 6.3) that _A_ <sup>_ε_</sup> ( _x_ ) _=_ _A_ <sup>per</sup> ( _x_ / _ε_ ) for some bounded, Z <sup>_d_</sup> -periodic matrix _A_ <sup>per</sup> satisfying the coercivity property in (2). In this case, the sequence of matrices _A_ <sup>_ε_</sup> has a homogenized limit that is explicitly known. (An explicit characterization of the limit is not available for _H_ -convergence in general.) We summarize the main results below. See, for instance, [18, 19] or [20, Chapter 1] for details on periodic homogenization. Due to _H_ -convergence of _A_ <sup>_ε_</sup>, the functions _u_ <sup>_ε_</sup>, solution to (1), converge to a limit function _u_ <sup>⋆</sup> (weakly in _H_ <sup>1</sup> (Ω), strongly in _L_ <sup>2</sup> (Ω)) as _ε →_ 0. The homogenized limit _u_ <sup>⋆</sup> is the solution to the homogenized equation (25) below. Let _Q_ denote the unit cube of R <sup>_d_</sup> . We introduce the corrector functions _w_ 1, ..., _wd_ _∈_ _Hper_ <sup>1</sup> <sup>(</sup> <sup>_Q_</sup> <sup>)</sup> solution to - _−_ div( _A_ <sup>per</sup> _∇wα_ ) _=_ div( _A_ <sup>per</sup> _eα_ ) in R <sup>_d_</sup>, Let _Q_ denote the unit cube of R <sup>_d_</sup> . We introduce the corrector functions _w_ 1, ..., _wd_ _∈_ _H_ <sup>1</sup> _wα_ is _Q_ -periodic, (23) which uniquely defines _wα_ up to an irrelevant additive constant. The entries of the (constant) homogenized diffusion tensor _A_ <sup>⋆</sup> _∈_ R <sup>_d_</sup> <sup>_×d_</sup> are given by _A_ <sup>⋆</sup> _β_, _α_ <sup>_=_</sup> _Q_ - _eβ +∇wβ_ - _· A_ <sup>per</sup> ( _eα +∇wα_ ), 1 _≤_ _α_, _β ≤_ _d_ . (24) The homogenized limit _u_ <sup>⋆</sup> of _u_ <sup>_ε_</sup> is the unique solution in _H_ 0 <sup>1</sup> is the unique solution in _H_ 0 <sup>1(Ω) to the boundary value problem</sup> - _−_ div( _A_ <sup>⋆</sup> _∇u_ <sup>⋆</sup> ) _= f_ in Ω, _u_ <sup>⋆</sup> _=_ 0 on _∂_ Ω. (25) The truncated reconstruction of _u_ <sup>⋆</sup> that is called the first-order two-scale expansion takes the form - _d_ _α=_ 1 _u_ <sup>_ε_</sup> <sup>,1</sup> ( _x_ ) _= u_ <sup>⋆</sup> ( _x_ ) _+_ _ε_ - _<u>x</u>_ _∂αu_ <sup>⋆</sup> ( _x_ ) _wα_ _ε_ . (26) Under suitable regularity assumptions, the difference _u_ <sup>_ε_</sup> _−_ _u_ <sup>_ε_</sup> <sup>,1</sup> converges to 0 strongly in _H_ <sup>1</sup> (Ω) as _ε →_ 0. This property will be used for the convergence results in Section 6.3. 146 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski In the periodic setting, the expansion (26) can be used to construct a numerical approximation of _u_ <sup>_ε_</sup>, without the need of any computations at the fine scale. This approximation is presumably valid only in the regime of very small parameters _ε_ and deteriorates if _ε_ grows. Moreover, in more general settings, the corrector functions are not local nor explicit, for their definition involves a PDE posed on the whole domain Ω and that depends on an effective tensor that is itself defined in terms of the corrector functions. Details can be found, e.g., in [19–21]. This prevents the _H_ -convergence theory from being directly applicable for the numerical approximation of _u_ <sup>_ε_</sup> . Numerical homogenization techniques, that draw their inspiration from the various elements above, offer an alternative for the approximation of _u_ <sup>_ε_</sup> that can be applied in much more general contexts. We can see the similarities between the corrector functions _wα_ in (23) and the numerical correctors _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> in (11). Note that the _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> solve problems similar to (23), but that they need to be solved at the microscale and on each mesh element _K_ . Similarly, we note the resemblance between the reconstruction (26) and the definition of _u_ <sup>_ε_</sup> _H_ <sup>in (19), and between the</sup> homogenized coefficient _A_ <sup>⋆</sup> defined in (24) and the effective macroscopic coefficient _A_ from (12). However, contrary to _A_ <sup>⋆</sup>, the MsFEM quantity _A_ has to be computed on an element-by-element basis, and it is not necessarily constant throughout Ω. Finally, the MsFEM analogue of the homogenized problem (25) is the resolution of the effective macroscale problem (14). Example 6. A very particular setting, although academic in nature and only useful for pedagogical purposes, actually leads to an MsFEM approximation that is exactly equivalent to a discretization of the periodic homogenization setting. Consider (1) in 2D posed on the unit square. Let us consider a mesh consisting of squares that are perfectly aligned with the periodicity of _A_ <sup>_ε_</sup> . We solve the corrector problems (11) on all square mesh elements with periodic boundary conditions and subsequently compute the effective diffusion tensor _A_ according to (12). In this case, the problems for the numerical correctors all reduce to (23) and _A_ is constant and equal to the homogenized coefficient _A_ <sup>⋆</sup> as defined by (24). A Q1 discretization of the effective problem (14) thus constitutes a non-intrusive MsFEM that is equivalent to the Q1 approximation of the homogenized equation (25). 3. Why develop a general framework? In the sequel we develop a general framework for a wide variety of MsFEMs in an abstract setting. We motivate here why this general framework for MsFEMs is useful. 3.1. _Local boundary conditions_ First, let us explain why various MsFEMs have been proposed in the literature. One reason is that different equations than (1) (e.g. advection-diffusion equations) give rise to different choices of the local problem (5), depending on which terms of the global PDE are included (see, for instance, [10,22].) The other reason is that, even for the pure diffusion problem (1), the choice of the basis functions defined in (5) has an important drawback. The definition of the multiscale basis functions requires a choice of _arbitrary_ boundary conditions on the mesh element boundary _∂K_, since the exact boundary condition satisfied by _u_ <sup>_ε_</sup> is unknown. In (5), affine boundary conditions are imposed. In view of this choice, we shall refer to the MsFEM defined above as the “MsFEMlin”. The MsFEM-lin cannot yield an accurate representation of _u_ <sup>_ε_</sup> near _∂K_ if _A_ <sup>_ε_</sup> is highly oscillatory and the mesh _TH_ is coarse. Variations on the definition of the functions _φ_ <sup>_ε_</sup> _i_ <sup>have been proposed to</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> in (11). Note that the _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> and the mesh _TH_ is coarse. Variations on the definition of the functions _φ_ <sup>_ε_</sup> _i_ <sup>have been proposed to</sup> improve the MsFEM. Here we summarize the ideas of _oversampling_ and of MsFEM _à la Crouzeix–_ _Raviart_, which together inspire the formulation of a general MsFEM framework in Section 4. Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 147 The oversampling variant of the MsFEM was introduced along with the variant based on (5) at the time of its first appearance in [4]. For this method, an oversampling domain _SK_ is associated to each mesh element _K_ (details are provided in Section 4.3.1). The problems (5) are solved on the larger domain _SK_ rather than _K_, so the inadequate boundary conditions are pushed away from the actual mesh elements. To construct the multiscale basis functions, the resulting functions on _SK_ are restricted to the actual mesh elements _K_ and suitably combined around each vertex _xi_ . The new multiscale basis functions oscillate on _∂K_ if the oversampling patch is taken large enough. We note that, in general, this strategy leads to discontinuous basis functions. Hence, the finite element space obtained is no longer conforming. The MsFEM with Crouzeix–Raviart type boundary conditions for the local problems (which we shall abbreviate as “MsFEM-CR”) was introduced in [9]. It uses basis functions associated to the edges of the mesh (in contrast to the MsFEM-lin presented above, and its oversampling variant, where basis functions are associated to the vertices of the mesh). A typical basis function satisfies the following on _∂K_ : the flux through each face of _K_ is constant, and the constants are determined by the condition that the average of the basis function be 1 over one particular face and 0 over all other faces. Again, this is a way to avoid imposing any conditions on the trace of the basis function directly. The multiscale functions can thus be oscillatory on the faces of the mesh. As is the case for oversampling methods, the resulting finite element space is nonconforming. All of these variations, applied to any MsFEM for linear second-order PDEs, are covered by the general MsFEM framework that we develop in Section 4. 3.2. _The non-intrusive approach_ The intrusiveness of the specific MsFEM-lin variant introduced in Section 2.2 is exemplary for all MsFEMs described in Section 3.1. It turns out that the non-intrusive MsFEM approach introduced in [12] and recalled in Section 2.5 can also be generalized to all these MsFEM variants. We summarize the key ingredients that allow for the formulation of the non-intrusive MsFEM approach of Algorithm 2 (corresponding to the identities in boxes in Section 2.4). The non-intrusive MsFEM follows from the expansion (10), namely the expression of the multiscale basis function as a P1 basis function and a linear combination of numerical correctors that are fully localized. We note that _•_ the full localization of the numerical correctors defined in (11) allows the preprocessing of the microstructure independently of the global approximation indices related to the finite element method; _•_ the expansion (10) follows from the fact that _∇φ_ <sup>P1</sup> is piecewise constant combined with _i_ linearity of the local problems (5); _•_ the stiffness matrix can be formulated in terms of a piecewise constant effective diffusion tensor in (13) thanks to full localization of the corrector functions, the piecewise constant gradient of _φ_ <sup>P1</sup> in the expansion (10) and bilinearity of the global problem (3). _i_ These observations provide the main structure of the general framework. First, we choose an underlying, low-dimensional space of _piecewise_ _affine_ functions to which the MsFEM is associated (Definition 10). This will be the standard conforming Lagrange space of order 1 (for the MsFEM-lin), or the Crouzeix–Raviart space of order 1 (for the MsFEM-CR). Second we need to formulate the local problems for the numerical correctors (Definition 17 and Definition 22). This involves the definition of oversampling patches (for MsFEMs with oversampling, Definition 13), and an extension of the notion of degrees of freedom to define the boundary conditions for the numerical correctors (Definitions 11, 14 and 15) on oversampling patches. It is then possible to define the multiscale basis functions as a generalization of (10) (see Definition 26) and finally to define the MsFEM for our general framework in Definition 33. 148 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski Remark 7. We note that our development of non-intrusive MsFEM approaches relies to a great extent on the fact that (10), and its generalization (36) in the general framework developed below, provide a description of the multiscale basis functions in terms of P1 basis functions, without the need of higher-order functions, in a linear manner. Higher-order MsFEMs can be found in [23,24] (see also [25]). Possible analogues of (36) for such MsFEMs and the subsequent techniques to design a non-intrusive MsFEM variant are more involved and may be the topic of future work. See [22]. 3.3. _Other motivations for the general framework_ Besides a unified formulation of our non-intrusive MsFEM approach, our general framework can also be beneficial to concrete code development for the MsFEM. Common features among various multiscale methods have previously been used to design flexible and efficient software for the implementation of such methods on the DUNE platform [26, 27] within the Exa-Dune project [28]. For example, the distribution of local problems over multiple processors and subsequent coupling in a global problem are handled by designated software components [29]. Our work may contribute to the efficient implementation of all MsFEMs covered by our general framework in such a project and similar endeavours yet to come. When formulating the general framework, we also clarify a few practical matters that are often left pending in the various research articles we are aware of. In particular, we give a rigorous definition of the oversampling procedure near the boundary _∂_ Ω of the global domain. As we explore the general framework, we will also propose an MsFEM variant that has not yet appeared in the literature: the MsFEM-CR combined with the oversampling technique (see Example 30). We hope that our framework may also further the development of new MsFEM variants in an attempt to improve on the shortcomings of the methods known today. Finally, the present study may also uncover a deeper understanding of MsFEMs by paving the way to a unified convergence analysis of different variants. This work is currently in preparation. 4. Abstract definition of the MsFEM We develop here a general framework for multiscale finite element methods. The ultimate aim is to generalize the key identities of Section 2.4. This is done in Definition 17 and 22 for the numerical correctors introduced in (11), and in Definition 26 for the expansion (10) of the multiscale basis functions. This allows the reformulation of the linear system of the MsFEM as the linear system of an effective problem in (48) (for a Petrov–Galerkin MsFEM) and (53) (for a Galerkin MsFEM) in Section 5. The other notions introduced in this section, although rather technical and abstract, are necessary tools to capture a wide variety of MsFEMs in our general framework. 4.1. _The continuous problem_ The abstract variational problem for our general MsFEM framework is as follows. Let _a_ <sup>_ε_</sup> be a continuous bilinear form on _H_ <sup>1</sup> (Ω) _× H_ <sup>1</sup> (Ω). We are interested in the solution to the problem Find _u_ <sup>_ε_</sup> _∈_ _H_ 0 <sup>1(Ω) such that</sup> <sup>_aε_</sup> <sup>�</sup> _u_ <sup>_ε_</sup>, _v_ - _= F_ ( _v_ ) for any _v ∈_ _H_ 0 <sup>1(Ω),</sup> (27) where _F_ is defined as in (4) for any _f_ _∈_ _L_ <sup>2</sup> (Ω). To ensure well-posedness of (27), we suppose that the bilinear form _a_ <sup>_ε_</sup> is coercive on _H_ 0 <sup>1(Ω).</sup> <sup>The</sup> <sup>bilinear</sup> <sup>form</sup> <sup>_aε_</sup> <sup>may</sup> <sup>contain</sup> <sup>coefficients</sup> <sup>that</sup> oscillate on a microscopically small scale. Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 149 The oversampling and Crouzeix–Raviart variants of the MsFEM introduced in Section 3.1 show that we need to accommodate for approximation spaces with discontinuities at the interfaces. This requires some additional assumptions on the formulation of the abstract problem. We suppose that the bilinear form _a_ <sup>_ε_</sup> is in fact defined on the broken Sobolev space _H_ <sup>1</sup> ( _TH_ ) _×_ _H_ <sup>1</sup> ( _TH_ ). More precisely, we assume that we can represent it as _a_ <sup>_ε_</sup> _=_ <sup>�</sup> _K ∈_ _TH_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>, where, for each</sup> _K ∈_ _TH_ <sup>_a_</sup> _K_ <sup>_ε_</sup> _H_ <sup>1</sup> ( _TH_ ). More precisely, we assume that we can represent it as _a_ <sup>_ε_</sup> _=_ <sup>�</sup> _K ∈_ _TH_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>, where, for each</sup> _K_ _∈_ _TH_, _aK_ <sup>_ε_</sup> <sup>is a continuous bilinear form defined on</sup> <sup>_H_</sup> <sup>1(</sup> <sup>_K_</sup> <sup>)</sup> <sup>_× H_</sup> <sup>1(</sup> <sup>_K_</sup> <sup>).</sup> _K_ _∈_ _TH_, _aK_ <sup>_ε_</sup> <sup>is a continuous bilinear form defined on</sup> <sup>_H_</sup> <sup>1(</sup> <sup>_K_</sup> <sup>)</sup> <sup>_× H_</sup> <sup>1(</sup> <sup>_K_</sup> <sup>).</sup> To ensure well-posedness of MsFEMs, which may use nonconforming approximation spaces, coercivity on _H_ 0 <sup>1(Ω) may be insufficient.</sup> <sup>Therefore,</sup> <sup>we add the following coercivity hypothesis</sup> for the bilinear forms _aK_ <sup>_ε_</sup> <sup>:</sup> _K_ <sup>_ε_</sup> <sup>:</sup> for all _K_ _∈_ _TH_, there exists _αK_ _>_ 0 such that _∀_ _u ∈_ _H_ <sup>1</sup> ( _K_ ), _aK_ <sup>_ε_</sup> <sup>2</sup> _L_ <sup>2</sup> ( _K_ ) <sup>.</sup> (28) _K_ <sup>_ε_</sup> <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_u_</sup> <sup>)</sup> <sup>_≥_</sup> <sup>_αK ∥∇u∥_</sup> <sup>2</sup> _L_ In order to perform a convergence analysis, one also has to assume that the _αK_ are bounded from below by some _α_ - _>_ 0 that does not depend on _H_ . We provide convergence results in Section 6 for the pure diffusion problem (1), in which case we have _αK_ _= m_ from (2). As an example, the introductory problem (1) with the associated bilinear form _a_ <sup>_ε_</sup> <sup>,diff</sup> is covered by this framework as is made explicit in Example 8 below. Other second-order PDEs that fit in our abstract variational formulation are given in Example 9. Example 8. The diffusion problem (1) is covered by the abstract variational formulation above. Indeed, we can set _a_ <sup>_ε_</sup> _= a_ <sup>_ε_</sup> <sup>,diff</sup>, where _a_ <sup>_ε_</sup> <sup>,diff</sup> is the bilinear form defined in (4). Further, we define _∇v · A_ <sup>_ε_</sup> _∇u_, _K_ <sup>_ε_</sup> <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>)</sup> <sup>_= a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> _aK_ <sup>_ε_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> ( _u_, _v_ ) : _=_ _K_ for all _u_, _v_ _∈_ _H_ <sup>1</sup> ( _TH_ ), so that we have indeed _a_ <sup>_ε_</sup> <sup>,diff</sup> _=_ <sup>�</sup> _K ∈TH_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> . Clearly, each _aK_ <sup>_ε_</sup> <sup>,diff</sup> for all _u_, _v_ _∈_ _H_ <sup>1</sup> ( _TH_ ), so that we have indeed _a_ <sup>_ε_</sup> <sup>,diff</sup> _=_ <sup>�</sup> _K ∈TH_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> . Clearly, each _aK_ <sup>_ε_</sup> <sup>,diff</sup> satis fies (28) with _αK_ _= m_ the coercivity constant from (2). Example 9. The reaction-advection-diffusion equation, _+_ _b ·∇u_ <sup>_ε_</sup> _+_ _σu_ <sup>_ε_</sup> _= f_, _−_ div - _A_ <sup>_ε_</sup> _∇u_ <sup>_ε_</sup> <sup>�</sup> with a divergence-free advection field _b_ : Ω _�→_ R <sup>_d_</sup> and a non-negative reaction coefficient _σ_ : Ω _�→_ R, can be modelled (under some regularity hypotheses that we do not state here) with the bilinear forms _∇v · A_ <sup>_ε_</sup> _∇u + v b ·∇u +_ _σuv_ . _aK_ <sup>_ε_</sup> <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>)</sup> <sup>_=_</sup> _K_ However, these bilinear forms _aK_ <sup>_ε_</sup> <sup>do not satisfy (28) even though the bilinear form</sup> <sup>_aε_</sup> <sup>is coercive</sup> on _H_ 0 <sup>1(Ω).</sup> <sup>To this end, a skew-symmetrized formulation of the transport term can be used.</sup> <sup>The</sup> However, these bilinear forms _aK_ <sup>_ε_</sup> on _H_ 0 <sup>1(Ω).</sup> <sup>To this end, a skew-symmetrized formulation of the transport term can be used.</sup> <sup>The</sup> skew-symmetrized formulation uses the bilinear form _aK_ <sup>_ε_</sup> <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>)</sup> <sup>_=_</sup> _aK_ <sup>_ε_</sup> _K_ _∇v · A_ <sup>_ε_</sup> _∇u +_ 2 <sup><u>1</u></sup> <sup>_v b ·∇u −_</sup> <sup><u>1</u></sup> 2 <sup>_u b ·∇v +_</sup> <sup>_σuv_</sup> <sup>,</sup> (29) which does satisfy (28). Assumption (28) is used for proving well-posedness of the MsFEM in Lemma 34, but note that both choices for _aK_ <sup>_ε_</sup> <sup>mentioned here can be studied in practice. We refer</sup> e.g. to [22,30,31] for more details. Within the general MsFEM framework, _b_ and _σ_ are allowed to be highly oscillatory, and this may impact the specific MsFEM strategy to be preferred. 4.2. _Piecewise affine structure_ In Section 2.2, we have seen that the relation between multiscale basis functions and piecewise affine functions is essential for the development of our non-intrusive MsFEM. For the MsFEM definition in the general framework, we start by choosing such a structure in the following definition. 150 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski Definition 10. _Let a mesh TH_ _be given._ _The_ underlying P1 space _for the MsFEM, denoted VH_ _, is_ _one of the following two spaces: the Lagrange approximation space_ _VH_ <sup>_L_</sup> <sup>_=_</sup> - _v ∈_ P1( _TH_ ) �� _v_ _is continuous on_ Ω�, _in which case we shall refer to the associated MsFEM as the MsFEM-lin,_ _or the Crouzeix–Raviart_ _approximation space_ ���� _∀_ _K_ _∈_ _TH_, _∀_ _e ∈_ _F_ ( _K_ ) _such that e ⊂_ Ω : _e_ _VH_ <sup>_CR_</sup> _=_ _v ∈_ P1( _TH_ ) _�v�=_ 0, _in which case the associated MsFEM shall be called the MsFEM-CR. We use the notation F_ ( _K_ ) _for_ _the_ _set_ _of_ _faces_ _of_ _K_ _and_ _�v�_ _denotes_ _the_ _jump_ _of_ _v_ _over_ _the_ _face_ _e._ _The_ _space_ _VH_ <sup>_L_</sup> <sup>_is_</sup> <sup>_a_</sup> <sup>_subspace_</sup> _of H_ <sup>1</sup> (Ω) _, but VH_ <sup>_CR_</sup> _is not. Note that no restrictions apply on faces lying on ∂_ Ω _._ We note that the underlying P1 space has the following property: if _v_ _∈_ _VH_ is piecewise constant on the mesh _TH_, then _v_ is constant in Ω. Contrary to the space _VH_ <sup>_L_</sup> <sup>,</sup> <sup>functions</sup> <sup>in</sup> <sup>the</sup> Crouzeix–Raviart space _VH_ <sup>_CR_</sup> are discontinuous in general. They are continuous, however, at the centroids of all faces of the mesh. For standard finite elements, the notion of degrees of freedom allows to characterize any finite element function. The idea of the MsFEM is to preserve this notion of degrees of freedom (in a suitable way made precise below) in the definition of a multiscale approximation space, while adapting the piecewise affine structure to the microstructure of the PDE. We formalize this notion for the two underlying P1 spaces that we introduced in Definition 10. The definition involves an arbitrary simplex _K_, which is typically an element of the mesh _TH_, or an associated oversampling patch (for the oversampling technique of the MsFEM) that we shall define in Definition 13. The latter is not always a simplex, and we extend Definition 11 to such oversampling patches in Definitions 14 and 15. Definition 11. _A_ degree of freedom operator _(DOF operator)_ Γ _associates to any simplex K_ _⊂_ R <sup>_d_</sup> _and_ _v_ _∈_ P1( _K_ ) _a vector_ Γ( _K_, _v_ ) _∈_ R <sup>_d_</sup> <sup>_+_</sup> <sup>1</sup> _, whose components are called the_ degrees of freedom _of_ _v_ _on K, in such a way that the application v �→_ Γ( _K_, _v_ ) _is a linear bijection from_ P1( _K_ ) _to_ R <sup>_d_</sup> <sup>_+_</sup> <sup>1</sup> _. More_ _precisely,_ Γ( _K_, _·_ ) _will denote in the sequel one of the following two operators:_ (1) _(DOF operator for the MsFEM-lin.) Let x_ 0, ..., _xd_ _denote the vertices of K . We set_ _∀_ _v ∈_ P1( _K_ ), Γ <sup>_L_</sup> ( _K_, _v_ ) _=_ ( _v_ ( _x_ 0), ..., _v_ ( _xd_ )). _For K_ _∈_ _TH_ _, the degree of freedom_ [Γ <sup>_L_</sup> ( _K_, _·_ )] _j_ _is said to be_ associated to the boundary _if, for_ _all v ∈_ P1( _K_ ) _,_ [Γ <sup>_L_</sup> ( _K_, _v_ )] _j_ _= v_ ( _x_ ) _for a vertex x of the mesh that lies on ∂_ Ω _._ (2) _(DOF operator for the MsFEM-CR.) Let e_ 0, ..., _ed_ _denote the faces of K . We set_ _e_ 0 _v_ . _∀_ _v ∈_ P1( _K_ ), Γ <sup>_CR_</sup> ( _K_, _v_ ) _=_ - <u>1</u> _|e_ 0 _|_ <u>1</u> _v_, ..., _|ed_ _|_ _ed_ _For K_ _∈_ _TH_ _, the degree of freedom_ [Γ <sup>_CR_</sup> ( _K_, _·_ )] _j_ _is said to be_ associated to the boundary _if,_ _for all v ∈_ P1( _K_ ) _,_ [Γ <sup>_CR_</sup> ( _K_, _v_ )] _j_ _=_ _|_ <sup><u>1</u></sup> _e|_ - _e_ <sup>_v_</sup> <sup>_for a face e of the mesh that lies on ∂_</sup> <sup>Ω</sup> <sup>_._</sup> _for all v ∈_ P1( _K_ ) _,_ [Γ <sup>_CR_</sup> ( _K_, _v_ )] _j_ _=_ _|_ <sup><u>1</u></sup> _e|_ - _e_ <sup>_v_</sup> <sup>_for a face e of the mesh that lies on ∂_</sup> <sup>Ω</sup> <sup>_._</sup> _The_ P1 test space _is defined as_ _|e|_ _VH_,0 _=_ _v ∈_ _VH_ ����� _∀_ _K_ _∈_ _TH_, _∀_ 1 _≤_ _j_ _≤_ _d +_ 1,[Γ( _K_, _v_ )] _j_ _=_ 0 _if the degree_ _of freedom_ [Γ( _K_, _·_ )] _j_ _is associated to the boundary_ . The P1 test space is used in practice to approximate the subspace _H_ 0 <sup>1(Ω)</sup> <sup>of</sup> <sup>_H_</sup> <sup>1(Ω).</sup> The degrees of freedom are defined element per element and are thus local. Global properties of the underlying P1 space _VH_ are most easily made explicit through the identification of a basis for _VH_ . Definition 12. _Let VH_ _be an underlying_ P1 _space as in Definition 10, and let_ Γ _be the associated_ _DOF operator._ _We shall denote by N_ _the dimension of VH_ _._ _The_ P1 basis functions _φ_ <sup>P</sup> 1 <sup>1</sup> <sup>, ...,</sup> <sup>_φ_</sup> <sup>P</sup> _N_ <sup>1</sup> <sup>_are_</sup> _defined as follows:_ The P1 test space is used in practice to approximate the subspace _H_ 0 <sup>1</sup> Definition 12. _Let VH_ _be an underlying_ P1 _space as in Definition 10, and let_ Γ _be the associated_ _DOF operator._ _We shall denote by N_ _the dimension of VH_ _._ _The_ P1 basis functions _φ_ <sup>P</sup> 1 <sup>1</sup> <sup>, ...,</sup> <sup>_φ_</sup> <sup>P</sup> _N_ <sup>1</sup> <sup>_are_</sup> Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 151 _•_ _For_ _the_ _MsFEM-lin,_ _let_ _x_ 1, ..., _xN_ _be_ _an_ _enumeration_ _of_ _the_ _(internal_ _and_ _boundary)_ _vertices of TH_ _. Then φ_ <sup>P</sup> _i_ <sup>1</sup> _is defined by φ_ <sup>P</sup> _i_ <sup>1</sup> <sup>(</sup> <sup>_x j_</sup> <sup>)</sup> <sup>_= δi_</sup> <sup>,</sup> <sup>_j_</sup> <sup>_for all_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_i_</sup> <sup>,</sup> <sup>_j_</sup> <sup>_≤_</sup> <sup>_N._</sup> <sup>P</sup> _i_ <sup>1</sup> _is defined by φ_ <sup>P</sup> _i_ <sup>1</sup> _vertices of TH_ _. Then φ_ <sup>P</sup> _i_ <sup>1</sup> _is defined by φ_ <sup>P</sup> _i_ <sup>1</sup> <sup>(</sup> <sup>_x j_</sup> <sup>)</sup> <sup>_= δi_</sup> <sup>,</sup> <sup>_j_</sup> <sup>_for all_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_i_</sup> <sup>,</sup> <sup>_j_</sup> <sup>_≤_</sup> <sup>_N._</sup> _•_ _For the MsFEM-CR, let e_ 1, ..., _eN_ _be an enumeration of the (internal and boundary) faces_ _of TH_ _. Then φ_ <sup>P</sup> _i_ <sup>1</sup> _is defined by_ _|e_ <u>1</u> _j |_ - _e j_ <sup>_φ_</sup> _i_ <sup>P1</sup> _= δi_, _j_ _for all_ 1 _≤_ _i_, _j_ _≤_ _N._ <sup>P</sup> _i_ <sup>1</sup> _is defined by_ _|e_ <u>1</u> _j |_ _e j_ <sup>_φ_</sup> _i_ <sup>P1</sup> _i_ <sup>P1</sup> _= δi_, _j_ _for all_ 1 _≤_ _i_, _j_ _≤_ _N._ _In both cases, these functions form a basis of the corresponding space VH_ _of Definition 10._ 4.3. _Local problems_ 4.3.1. _Oversampling patches_ To replace the (standard) underlying P1 space by a space of the same (low) dimension, adapted to the microstructure of _a_ <sup>_ε_</sup>, we associate to each mesh element _K_ _∈_ _TH_ an oversampling patch. It serves to avoid imposing artificial, non-oscillatory boundary conditions on _K_ directly when computing numerical correctors to process the microstructure. Definition 13. _Let_ _K_ _∈_ _TH_ _be_ _any_ _mesh_ _element_ _and_ _let_ _S_ <sup>_′_</sup> Definition 13. _Let_ _K_ _∈_ _TH_ _be_ _any_ _mesh_ _element_ _and_ _let_ _SK_ <sup>_′_</sup> <sup>_be_</sup> <sup>_a_</sup> <sup>_simplex_</sup> <sup>_obtained_</sup> <sup>_from_</sup> <sup>_K_</sup> <sup>_by_</sup> _homothety around the centroid of K_ _with homothety_ _ratio ρ_ _≥_ 1 _._ _The_ oversampling patch _SK_ _is_ _defined as SK_ _= SK_ <sup>_′_</sup> <sup>_∩_</sup> <sup>Ω</sup> <sup>_._</sup> See Figure 1 for an illustration of the construction of oversampling patches in dimension 2. In this work, we allow for the trivial homothety ratio _ρ =_ 1. In this case, the patch _SK_ coincides with _K_ . We will call an MsFEM _without oversampling_ an MsFEM for which all oversampling patches satisfy _SK_ _= K_ . Otherwise, the MsFEM is called an MsFEM _with oversampling_ . We speak simply of an MsFEM when there are no assumptions on the oversampling patches. (a) (b) _K_ <sup>_′_</sup> <sup>_∩_</sup> <sup>Ω</sup> <sup>_._</sup> Figure 1. Oversampling patches for MsFEM in 2D. Left: the patch for the mesh element _K_ is obtained from _K_ by homothety. Right: The triangle _SK_ <sup>_′_</sup> <sup>partially lies outside the domain</sup> Ω and the oversampling patch _SK_ is not homothetic to _K_ . It is not even a triangle. For most mesh elements _K_, the patch _SK_ in Definition 13 is a simplex. However, for mesh elements close to the boundary _∂_ Ω, alternative constructions should be considered. We have not found any explicit description of such a construction in the literature. This complicates the reproducibility of the method as well as a rigorous convergence analysis. The precise definitions of this section provide a first step to address these issues. A fully rigorous convergence analysis of the MsFEM with oversampling as described here is the subject of ongoing investigations [22]. 152 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 4.3.2. _Degrees of freedom on oversampling patches_ Definition 11 provides the definition of _DOF_ operators on any simplex. For the MsFEM, we wish to compute multiscale functions on oversampling patches _SK_, in which case Definition 11 may be insufficient. We illustrated this in Figure 1b. Indeed, the number of vertices/faces of the oversampling patch may be larger than _d +_ 1. In order to associate a multiscale basis function to every P1 basis function, we still need a notion of _DOF_ operator such that Γ( _SK_, _·_ ) is a linear bijection from P1( _SK_ ) to R <sup>_d_</sup> <sup>_+_</sup> <sup>1</sup> . Therefore, we extend the definition of the degrees of freedom operators Γ <sup>_L_</sup> and Γ <sup>_CR_</sup> in Definitions 14 and 15. Definition 14. _Let_ _K_ _∈_ _TH_ _and_ _let_ _SK_ _be_ _its_ _associated_ _oversampling_ _patch._ _Let_ _x_ 0, ..., _xd_ _be_ _a_ _selection of d +_ 1 _distinct vertices of SK . We define the DOF operator_ Γ <sup>_L_</sup> _by_ _∀_ _v ∈_ P1( _SK_ ), Γ <sup>_L_</sup> ( _SK_, _v_ ) _=_ ( _v_ ( _x_ 0), ..., _v_ ( _xd_ )). We note that any choice of _d +_ 1 nodal values unequivocally characterizes an affine function on _SK_ . Hence, Γ <sup>_L_</sup> ( _SK_, _·_ ) is indeed a bijection. Now the precise choice of the vertices in Definition 14 is unimportant, because Γ <sup>_L_</sup> ( _SK_, _·_ ) will only be used in the sequel to describe the trace of P1 functions on _∂SK_ in boundary value problems. For any P1 function, this trace is uniquely defined by its values in _d +_ 1 distinct vertices of _SK_ . Finally, when _SK_ is a simplex, it has only _d +_ 1 vertices and Definition 14 reduces to Definition 11. To generalize the notion of degrees of freedom for the Crouzeix–Raviart space to nonsimplicial patches, we need to introduce some additional notation. On the boundary of a nonsimplicial oversampling patch, we can identify some faces that collapse to a single vertex if we shrink _SK_ to _K_ . We call these faces the additional faces and denote the set containing them by _Fa_ ( _SK_ ). The other faces of _SK_ are referred to as the dilated faces, collected in the set _Fd_ ( _SK_ ). When the patch _SK_ does not touch _∂_ Ω, we have _Fd_ ( _SK_ ) _= F_ ( _SK_ ) and _Fa_ ( _SK_ ) _= �_ . In Figure 2a, for example, the additional faces are exactly those faces that lie on _∂_ Ω. This is not always the case, as is illustrated by Figure 2b. For the definition of Γ <sup>_CR_</sup> ( _SK_, _·_ ), we shall rely on the existence of _d +_ 1 dilated faces, because we need Γ <sup>_CR_</sup> ( _SK_, _·_ ) to be a bijection between P1( _SK_ ) and R <sup>_d_</sup> <sup>_+_</sup> <sup>1</sup> . This imposes a constraint on the choice of the homothety ratio used to construct _SK_ . For example, in the case of Figure 2a, the lower right dilated face falls outside Ω if the homothety ratio is too large, and the oversampling patch _SK_ only has two dilated faces (edges here) and two additional faces. We do not consider this case hereafter. Definition 15. _Let K_ _∈_ _TH_ _and let SK_ _be its associated oversampling patch._ _We assume that SK_ _has d +_ 1 _dilated faces, and we denote them by e_ 0, ..., _ed_ _. We define the DOF operator_ Γ <sup>_CR_</sup> _by_ _e_ 0 _ed_ <u>1</u> _v_, ..., _|ed_ _|_ _∀_ _v ∈_ P1( _SK_ ), Γ <sup>_CR_</sup> ( _SK_, _v_ ) _=_ - <u>1</u> _|e_ 0 _|_ _v_ . When _SK_ is a simplex, we have _Fd_ ( _SK_ ) _=_ _F_ ( _SK_ ), and Definition 15 coincides with the respective elements of Definition 11. 4.3.3. _Numerical correctors: first oversampling strategy_ We now provide the precise assumptions under which we will consider local problems, i.e., the analogues of (5) defining the MsFEM-lin basis functions and the definition of the numerical correctors in (11). In fact, since the numerical correctors play an essential role in the construction of non-intrusive MsFEM approaches, we define the numerical correctors first and use them to define the multiscale basis functions in Definition 26. We discuss two definitions of the numerical correctors, corresponding to two ways to define the oversampling technique for the MsFEM. The functional settings for these constructions Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 153 (a) (b) Figure 2. Non-simplicial oversampling patches in 2D. The dilated edges of the patch _SK_, those that “correspond” to the edges of the original triangle _K_, are dashed and drawn in red. are provided by Definitions 16 and 21. These definitions involve a “sampling space”, whose name is inspired by the idea that only a limited number of local problems will be solved to encode the microstructure of the PDE in the numerical model. The choice of sampling space has to accommodate for the boundary conditions that one wishes to impose on the numerical correctors and basis functions (e.g. essential or natural; see Examples 18 and 19). Definition 16. _Let K_ _∈_ _TH_ _, let SK_ _be its associated oversampling patch and let_ Γ _be a DOF operator_ _from_ _Definitions_ _11,_ _14_ _or_ _15._ _A_ _subspace VK_ _of_ _H_ <sup>1</sup> ( _SK_ ) _and_ _bilinear_ _form_ _sK_ <sup>_ε_</sup> <sup>:</sup> <sup>_VK_</sup> <sup>_×_</sup> <sup>_VK_</sup> <sup>_→_</sup> <sup>R</sup> <sup>_are_</sup> _called_ sampling space _and_ sampling form _, respectively, if they satisfy the following:_ (1) _the space VK_ _contains the space of affine functions_ P1( _SK_ ) _;_ (2) _the operator_ Γ( _SK_, _·_ ) _is well-defined on VK ;_ (3) _the DOF_ -extended local problem _: find v ∈_ _VK_ _such that_ - _sK_ <sup>_ε_</sup> <sup>(</sup> <sup>_v_</sup> <sup>,</sup> <sup>_w_</sup> <sup>)</sup> _= 〈g_, _w〉_ _for all w ∈_ _VK_,0, Γ( _SK_, _v_ ) _= given_, (30) _has_ _a_ _unique_ _solution_ _for_ _any_ _g_ _∈_ ( _H_ <sup>1</sup> ( _SK_ )) <sup>_′_</sup> _._ _Here,_ _VK_,0 _=_ { _w_ _∈_ _VK_ _|_ Γ( _SK_, _w_ ) _=_ 0} _is_ _the_ sampling test space _._ Problem (30) is called “ _DOF_ -extended” because the degrees of freedom, controlling the boundary conditions associated to the local problem, are imposed on the oversampling patch _SK_ rather than the (generally smaller) mesh element _K_ . The sampling form _sK_ <sup>_ε_</sup> <sup>shall</sup> <sup>be</sup> <sup>used</sup> <sup>to</sup> <sup>encode</sup> <sup>the</sup> <sup>oscillations</sup> <sup>of</sup> <sup>the</sup> <sup>bilinear</sup> <sup>form</sup> <sup>_aε_</sup> <sup>and</sup> thus the microstructure of the problem in the multiscale finite element functions. There is some flexibility in choosing the sampling form; one may choose to include all the same terms as those in the bilinear form _aK_ <sup>_ε_</sup> <sup>of</sup> <sup>the</sup> <sup>original</sup> <sup>problem</sup> <sup>(27),</sup> <sup>or</sup> <sup>only</sup> <sup>some</sup> <sup>of</sup> <sup>them.</sup> <sup>When</sup> <sup>the</sup> <sup>MsFEM</sup> was first proposed in [4], it was suggested that _sK_ <sup>_ε_</sup> <sup>should include those terms that correspond to</sup> the highest-order terms of the PDE that is to be solved. In the context of the advection-diffusion equation, one may thus choose to include in our MsFEM framework only the diffusion terms, or both the diffusion and advection terms. Both options have been studied e.g. in [10,31]. 154 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski In the functional setting of Definition 16, the generalization of (11) to define the numerical correctors for the general MsFEM framework is as follows. Definition 17. _For all K_ _∈_ _TH_ _,_ _for any_ 0 _≤_ _α ≤_ _d,_ _we introduce the function χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _∈_ _VK_,0 _as the_ _unique solution to the_ corrector problem _=_ - _−sK_ <sup>_ε_</sup> _−sK_ <sup>_ε_</sup> _K_ <sup>_ε_</sup> <sup>(1,</sup> <sup>_w_</sup> <sup>)</sup> _if α =_ 0, _∀_ _w ∈_ _VK_,0, _sK_ <sup>_ε_</sup> - _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup>, _w_ _SK_ - _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> - _x_ <sup>_α_</sup> _−_ _x_ <sup>_α_</sup> _c_, <sup>_α_</sup> _c_, _K_ <sup>,</sup> <sup>_w_</sup> - (31) _if_ 1 _≤_ _α ≤_ _d_ . _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _is defined as the restriction of χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _The DOF_ -extended numerical corrector _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _The DOF_ -extended numerical corrector _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _is defined as the restriction of χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _to K, extended_ _to all of_ Ω _by_ 0 _._ Note that the above definition introduces one more numerical corrector than introduced in (11) (namely the corrector for _α_ _=_ 0). The precise definition of the numerical correctors is chosen such that the analogous expansion of (10) for the general framework (see (36)) leads to a PDE for the multiscale basis functions analogous to (5); we show this in Lemma 27 and (for a second oversampling strategy introduced below) in Lemma 28. In the following example, we see that Definition 17 is indeed a generalization of the numerical correctors defined by (11) in Section 2.4. Example 18 (MsFEM-lin for diffusion problems). We consider _VH_ _=_ _VH_ <sup>_L_</sup> <sup>and</sup> <sup>Γ</sup> <sup>_=_</sup> <sup>Γ</sup> <sup>_L_</sup> <sup>from</sup> Definition 11. For the diffusion problem (1), we have _a_ <sup>_ε_</sup> _=_ _a_ <sup>_ε_</sup> <sup>,diff</sup> and we set _sK_ <sup>_ε_</sup> <sup>_=_</sup> <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> (see Example 18 (MsFEM-lin for diffusion problems). We consider _VH_ _=_ _VH_ <sup>_L_</sup> _K_ <sup>_ε_</sup> <sup>_=_</sup> <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> Definition 11. For the diffusion problem (1), we have _a_ <sup>_ε_</sup> _=_ _a_ <sup>_ε_</sup> <sup>,diff</sup> and we set _sK_ <sup>_ε_</sup> <sup>_=_</sup> <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> (see Example 8). The sampling space for the MsFEM-lin is defined as _VK_ _= VK_ <sup>_L_</sup> <sup>:</sup> <sup>_=_</sup> _VK_ _= VK_ <sup>_L_</sup> - _v ∈_ _H_ <sup>1</sup> ( _SK_ ) �� _∃_ _w ∈_ P1( _SK_ ) such that _v|∂SK_ _= w|∂SK_ - . Then the sampling test space _VK_ <sup>_L_</sup>,0 <sup>is the space</sup> <sup>_H_</sup> 0 <sup>1(</sup> <sup>_SK_</sup> <sup>).</sup> <sup>In this case,</sup> <sup>it holds</sup> <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> (1, _w_ ) _=_ 0 for all _w ∈_ _VK_ <sup>_L_</sup>,0 <sup>. Consequently, the</sup> <sup>_DOF_</sup> <sup>-extended numerical corrector</sup> <sup>_χε_</sup> _K_ <sup>,0,e</sup> is identically equal to 0; Then the sampling test space _VK_ <sup>_L_</sup> _K_ <sup>_L_</sup>,0 <sup>is the space</sup> <sup>_H_</sup> 0 <sup>1</sup> _K_ <sup>_L_</sup>,0 <sup>. Consequently, the</sup> <sup>_DOF_</sup> <sup>-extended numerical corrector</sup> <sup>_χε_</sup> _K_ <sup>,0,e</sup> all _w ∈_ _VK_ <sup>_L_</sup>,0 <sup>. Consequently, the</sup> <sup>_DOF_</sup> <sup>-extended numerical corrector</sup> <sup>_χε_</sup> _K_ <sup>,0,e</sup> is identically equal to 0; we obtain indeed exactly _d_ numerical correctors as in Section 2.4. For the non-trivial numerical correctors, Definition 17 corresponds to the weak formulation of the following boundary value problem: - in _SK_, _χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _=_ 0 on _∂SK_, (32) _−_ div - _A_ <sup>_ε_</sup> _∇χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _SK_ - _=_ div - _A_ <sup>_ε_</sup> _eα_ which is clearly well-posed. Example 19 (MsFEM-CR for diffusion problems). Taking _a_ <sup>_ε_</sup>, _aK_ <sup>_ε_</sup> _K_ <sup>_ε_</sup> <sup>and</sup> <sup>_s_</sup> _K_ <sup>_ε_</sup> Example 19 (MsFEM-CR for diffusion problems). Taking _a_ <sup>_ε_</sup>, _aK_ <sup>_ε_</sup> <sup>and</sup> <sup>_s_</sup> _K_ <sup>_ε_</sup> <sup>as</sup> <sup>in</sup> <sup>the</sup> <sup>previous</sup> example, we construct the MsFEM-CR with the sampling space _VK_ <sup>_CR_</sup> : _= H_ <sup>1</sup> ( _SK_ ). With _VH_ _= VH_ <sup>_CR_</sup> _K_ <sup>_CR_</sup> : _= H_ <sup>1</sup> ( _SK_ ). With _VH_ _= VH_ <sup>_CR_</sup> _K_ _H_ and Γ _=_ Γ <sup>_CR_</sup> from Definition 11, the corrector problem (31) for _α =_ 0 reduces to _χ_ <sup>_ε_</sup> _K_ <sup>,0,e</sup> _=_ 0, as in and Γ _=_ Γ <sup>_CR_</sup> from Definition 11, the corrector problem (31) for _α =_ 0 reduces to _χ_ <sup>_ε_</sup> _K_ <sup>,0,e</sup> _=_ 0, as in Example 18. For 1 _≤_ _α ≤_ _d_, the _DOF_ -extended numerical corrector _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> is obtained from the boundary value problem: - _=_ div( _A_ <sup>_ε_</sup> _eα_ ) in _SK_,   - _A_ <sup>_ε_</sup> _∇χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _= −n_ ⃗ _· A_ <sup>_ε_</sup> _eα_ on each _h ∈_ _Fa_ ( _SK_ ), ⃗ _−_ div _SK_ _n · A_ <sup>_ε_</sup> _∇χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _SK_ _n · A_ <sup>_ε_</sup> _∇χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _n · A_ <sup>_ε_</sup> _∇χ_ <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _= ch −_ ⃗ _n · A_ <sup>_ε_</sup> _eα_ on each _h ∈_ _Fd_ ( _SK_ ), <u>1</u> _|h|_ _h_ _χ_ <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _=_ 0 for each _h ∈_ _Fd_ ( _SK_ ), (33)  _h_ _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _=_ 0 for each _h ∈_ _Fd_ ( _SK_ ), where⃗ _n_ denotes the outward unit vector on _∂SK_ and _ch_ is a constant whose value is uniquely determined by the above problem. We note that the condition for the flux on the additional faces of _SK_ is entirely determined by the right-hand side in (31), whereas the flux on the dilated faces of _SK_ involves an additional constant, due to the fact that the test functions in _VK_ <sup>_CR_</sup>,0 <sup>cannot take</sup> arbitrary values on the dilated faces. Indeed, their mean vanishes on these faces according to Definition 16. Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 155 When _SK_ _= K_ and when the faces of _K_ do not lie on _∂_ Ω, this corresponds to the setting of the original MsFEM-CR defined in [9]. The latter work also provides an alternative characterization of the multiscale Crouzeix–Raviart space. When a face _e_ of _K_ lies on _∂_ Ω, the basis functions that we will define below do not satisfy _φ_ <sup>_ε_</sup> _e_ <sup>_=_</sup> <sup>0</sup> on _e_, but only satisfy a weak boundary condition in the average sense on _e_ (and so does the corresponding MsFEM approximation to (27) defined below). This does not correspond to the original definition of the MsFEM-CR in [9, 32]. The MsFEM-CR with local boundary conditions as defined here was studied in [33–35]. Remark 20. In both Examples 18 and 19, the numerical corrector _χ_ <sup>_ε_</sup> _K_ <sup>,0,e</sup> Remark 20. In both Examples 18 and 19, the numerical corrector _χ_ <sup>_ε_</sup> _K_ <sup>,0,e</sup> vanishes, because _sK_ <sup>_ε_</sup> <sup>(1,</sup> <sup>_w_</sup> <sup>)</sup> <sup>_=_</sup> <sup>0</sup> <sup>for</sup> <sup>all</sup> <sup>_w_</sup> <sup>in</sup> <sup>the</sup> <sup>sampling</sup> <sup>test</sup> <sup>space.</sup> <sup>This</sup> <sup>is</sup> <sup>no</sup> <sup>longer</sup> <sup>the</sup> <sup>case</sup> <sup>e.g.</sup> <sup>for</sup> <sup>an</sup> <sup>MsFEM</sup> for advection-diffusion problems in which the sampling problem uses the skew-symmetrized bilinear form defined in (29). In this case, the numerical corrector _χ_ <sup>_ε_</sup> _K_ <sup>,0,e</sup> does not vanish. In the corresponding effective numerical scheme that we will derive in (52), this leads to a term of order 0 even if such a term is not present in the advection-diffusion equation itself. When _Sk_ _= K_ (i.e., in the absence of oversampling), the _DOF_ operator allows us to prescribe certain continuity properties on the faces of the mesh elements _K_ . More precisely, when the MsFEM-lin with _DOF_ operator Γ <sup>_L_</sup> is employed, the numerical correctors _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> vanish at the vertices of the mesh, and, with the correct choice of sampling space (see Example 18), they vanish on all faces of _K_ and are thus continuous on Ω. When the MsFEM-CR with _DOF_ operator Γ <sup>_CR_</sup> is considered, we obtain weak continuity of the numerical correctors over all faces of the mesh. The definition of the multiscale basis functions that we give below (see Definition 26, in the vein of the expansion (10)) shows that the continuity properties of the P1 basis functions of the underlying P1 space are not perturbed when building the multiscale basis functions. When _Sk_ _= K_ (i.e., in the absence of oversampling), the _DOF_ operator allows us to prescribe certain continuity properties on the faces of the mesh elements _K_ . More precisely, when the MsFEM-lin with _DOF_ operator Γ <sup>_L_</sup> is employed, the numerical correctors _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> vanish at the In the general case, when the oversampling patch _SK_ is larger than _K_, we cannot preserve any of these continuity properties if we use _DOF_ -extended local problems for our local computations, since the values on _∂K_ are not controlled by the degrees of freedom Γ( _SK_, _·_ ) on _∂SK_ . Therefore, we introduce another variant of the local problems to define _DOF_ -continuous numerical correctors in the next section. 4.3.4. _Numerical correctors: second oversampling strategy_ Definition 21. _Let K_ _∈_ _TH_ _and let VK_ _and sK_ <sup>_ε_</sup> <sup>_be a sampling space and sampling form, respectively,_</sup> _according to Definition 16._ _Additionally,_ _suppose that the operator_ Γ( _K_, _·_ ) _is well-defined on VK ._ _Then a DOF_ -continuous local problem _is to find v ∈_ _VK_ _such that_ - _sK_ <sup>_ε_</sup> <sup>(</sup> <sup>_v_</sup> <sup>,</sup> <sup>_w_</sup> <sup>)</sup> _= 〈g_, _w〉_ _for all w ∈_ _VK_,0, Γ( _K_, _v_ ) _= given_, (34) _for some g_ _∈_ ( _H_ <sup>1</sup> ( _SK_ )) <sup>_′_</sup> _._ Definition 22. _Suppose any DOF-continuous local problem in Definition 21 is well-posed._ _Then_ _we_ _introduce,_ _for_ _all_ _K_ _∈_ _TH_ _and_ _all_ 0 _≤_ _α ≤_ _d,_ _the_ _functions_ _χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup> _as_ _the_ _unique_ _functions_ _in_ _we_ _introduce,_ _for_ _all_ _K_ _∈_ _TH_ _and_ _all_ 0 _≤_ _α ≤_ _d,_ _the_ _functions_ _χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup> _as_ _the_ _unique_ _functions_ _in_ _VK_ _with_ Γ( _K_, _χ_ <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup> ) _=_ 0 _satisfying_ _the_ _corrector_ _problem_ (31) _._ _We_ _define_ _the_ _DOF_ -continuous _VK_ _with_ Γ( _K_, _χ_ <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup> ) _=_ 0 _satisfying_ _the_ _corrector_ _problem_ (31) _._ _We_ _define_ _the_ _DOF_ -continuous numerical correctors _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _as the restriction of χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup> _to K, extended to all of_ Ω _by_ 0 _._ We emphasize that the local problems of Definitions 17 and 22 use test functions _w_ in _the same_ _space VK_,0. This means that the test functions satisfy Γ( _SK_, _w_ ) _=_ 0 rather than Γ( _K_, _w_ ) _=_ 0. The difference between _DOF_ -extended and _DOF_ -continuous numerical correctors is that the former satisfy Γ( _SK_, _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> ) _=_ 0, whereas the latter satisfy Γ( _K_, _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> ) _=_ 0. Remark 23. Clearly, when _SK_ _=_ _K_, there is no difference between the _DOF_ -extended and _DOF_ -continuous problems (30) and (34). We shall in this case simply refer (30) (or (34)) as <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _as the restriction of χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup> <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _to K, extended to all of_ Ω _by_ 0 _._ _SK_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> ) _=_ 0, whereas the latter satisfy Γ( _K_, _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> ) _=_ 0. 156 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> _=_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> local problems, and we write _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> local problems, and we write _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> _=_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> for the numerical correctors of MsFEMs without oversampling. Example 24 (MsFEM-lin for diffusion problems). Continuing Example 18, consider now the _DOF_ -continuous numerical corrector _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> . Equation (34) solves the following problem for 1 _≤_ _α ≤_ _d_ : there exists _w ∈_ P1( _SK_ ) such that _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _=_ 0 at the vertices of _K_ . - in _SK_, _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _= w_ on _∂SK_, _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> - _A_ <sup>_ε_</sup> _eα_ _−_ div - _A_ <sup>_ε_</sup> _∇χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> - _=_ div The boundary condition on _∂SK_ is complemented by a condition at the vertices of _K_ . Except when _A_ <sup>_ε_</sup> is constant (and a solution is _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _=_ 0), it is not evident whether a solution to this problem exists. For _α =_ 0, the numerical corrector _χ_ <sup>_ε_</sup> _K_ <sup>,0,c</sup> vanishes, as in the _DOF_ -extended case. Example 25 (MsFEM-CR for diffusion problems). For the MsFEM-CR considered in Example 19, the _DOF_ -continuous numerical correctors satisfy the same problem (33) (for 1 _≤_ _α ≤_ _d_ ) as the _DOF_ -extended numerical correctors, but with the average condition (the final equation in (33)) replaced by _|h_ <u>1</u> _|_ - _h_ <sup>_χε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _=_ 0 for each _h_ _∈_ _F_ ( _K_ ). As we saw for the MsFEM-lin in Exam _h_ <sup>_χε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> in (33)) replaced by _|h_ <u>1</u> _|_ - _h_ <sup>_χε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _=_ 0 for each _h_ _∈_ _F_ ( _K_ ). As we saw for the MsFEM-lin in Exam ple 24, this is not a standard boundary value problem on _SK_ . For the case _α =_ 0, we have _χ_ <sup>_ε_</sup> _K_ <sup>,0,c</sup> _=_ 0, ple 24, this is not a standard boundary value problem on _SK_ . For the case _α =_ 0, we have _χ_ <sup>_ε_</sup> _K_ <sup>,0,c</sup> _=_ 0, which clearly satisfies the constraints _|h_ <u>1</u> _|_ - _h_ <sup>_χε_</sup> _K_ <sup>,0,c</sup> _=_ 0 for each _h ∈_ _F_ ( _K_ ). Examples 18 and 19 show that a _DOF_ -extended local problem is typically equivalent to a PDE with boundary conditions on _SK_ . Under reasonable assumptions, these problems have a unique solution as required by Definition 16. We have seen in Examples 24 and 25 that this is not the case for _DOF_ -continuous problems, for which one finds some boundary conditions on _∂SK_ (because the degrees of freedom of test functions in _VK_,0 are prescribed on _SK_ ) and another set of conditions on _∂K_ that are explicitly imposed through the degrees of freedom on _K_ in (34). Wellposedness is not obvious in general, and cannot always be deduced from well-posedness of the _DOF_ -extended counterpart (30). We address the well-posedness of _DOF_ -continuous problems in more detail in Section 4.3.5. The advantage of _DOF_ -continuous oversampling is that it imposes certain continuity properties on the multiscale basis functions, and we will see in Section 7 that it yields better numerical approximations than _DOF_ -extended oversampling. 4.3.5. _Well-posedness of DOF-continuous numerical correctors_ We have seen in Examples 24 and 25 that _DOF_ -continuous local problems lead to nonstandard boundary conditions. This poses not only a theoretical issue, but also a computational challenge. To complete our study of the general MsFEM framework, we now present a computational strategy to obtain the _DOF_ -continuous numerical correctors, and we use this strategy to discuss the well-posedness of the associated local problems. In Definition 16 we assume the well-posedness of _DOF_ -extended problems, and we have seen in Examples 18 and 19 that this is a natural assumption. It is also natural to assume that we can compute _DOF_ -extended numerical correctors numerically. We compute the _DOF_ continuous numerical correctors from the _DOF_ -extended numerical correctors, by subtracting a linear combination of suitable functions _W_ <sup>_β_</sup> from the _DOF_ -extended numerical correctors. The _W_ <sup>_β_</sup> must all satisfy the homogeneous equation _sK_ <sup>_ε_</sup> <sup>(</sup> <sup>_W β_</sup> <sup>,</sup> <sup>_w_</sup> <sup>)</sup> <sup>_=_</sup> <sup>0 for all</sup> <sup>_w_</sup> <sup>_∈_</sup> <sup>_VK_</sup> <sup>,0, in order not</sup> _h_ <sup>_χε_</sup> _K_ <sup>,0,c</sup> <sup>_ε_</sup> _K_ <sup>,0,c</sup> _=_ 0 for each _h ∈_ _F_ ( _K_ ). The _W_ <sup>_β_</sup> must all satisfy the homogeneous equation _sK_ <sup>_ε_</sup> <sup>(</sup> <sup>_W β_</sup> <sup>,</sup> <sup>_w_</sup> <sup>)</sup> <sup>_=_</sup> <sup>0 for all</sup> <sup>_w_</sup> <sup>_∈_</sup> <sup>_VK_</sup> <sup>,0, in order not</sup> to perturb the local problem (31) that is already satisfied by both types of numerical correctors. We shall use the functions _W_ <sup>0</sup> : _=_ 1 _+_ _χ_ <sup>_ε_</sup> <sup>,0,e</sup> and _W_ <sup>_β_</sup> : _= x_ <sup>_β_</sup> _−_ _xc_ <sup>_β_</sup>, _K_ <sup>_+_</sup> <sup>_χε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,e</sup> for 1 _≤_ _β ≤_ _d_, where _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,e</sup> _S_ <sup>_ε_</sup> <sup>,0,</sup> _K_ <sup>e</sup> and _W_ <sup>_β_</sup> : _= x_ <sup>_β_</sup> _−_ _xc_ <sup>_β_</sup>, _c_ <sup>_β_</sup>, _K_ <sup>_+_</sup> <sup>_χ_</sup> _S_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_β_</sup> <sup>,e</sup> _S_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_β_</sup> <sup>,e</sup> for 1 _≤_ _β ≤_ _d_, where _χ_ <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_β_</sup> <sup>,e</sup> _SK_ _SK_ _SK_ is defined in Definition 17. The precise strategy is as follows. Fix 0 _≤_ _α ≤_ _d_ . We look for coefficients _c_ 0 <sup>_α_</sup> <sup>, ...,</sup> <sup>_c_</sup> _d_ <sup>_α_</sup> <sup>such that</sup> <sup>_χε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup> _= χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _−_ <sup>�</sup> <sup>_d_</sup> _β=_ 0 <sup>_c_</sup> _β_ <sup>_α_</sup> <sup>_W β_</sup> <sup>on</sup> <sup>_SK_</sup> <sup>,</sup> where we recall that _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> is defined by Definition 22. Note that both sides of the equation clearly 0 <sup>_α_</sup> <sup>, ...,</sup> <sup>_c_</sup> _d_ <sup>_α_</sup> <sup>such that</sup> <sup>_χε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup> _S_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _−_ <sup>�</sup> <sup>_d_</sup> _β_ Fix 0 _≤_ _α ≤_ _d_ . We look for coefficients _c_ 0 <sup>_α_</sup> <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup> _= χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> <sup>_d_</sup> _β=_ 0 <sup>_c_</sup> _β_ <sup>_α_</sup> <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> is defined by Definition 22. Note that both sides of the equation clearly _SK_ Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 157 satisfy (31). The desired equality thus holds if and only if Γ( _K_, _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> <sup>_d_</sup> _β=_ 0 <sup>_c_</sup> _β_ <sup>_α_</sup> satisfy (31). The desired equality thus holds if and only if Γ( _K_, _χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _−_ <sup>�</sup> <sup>_d_</sup> _β=_ 0 <sup>_c_</sup> _β_ <sup>_α_</sup> <sup>_W β_</sup> <sup>)</sup> <sup>_=_</sup> <sup>0.</sup> <sup>Since the</sup> _DOF_ operators are linear, this leads to the linear system _S_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> _−_ <sup>�</sup> <sup>_d_</sup> _β_    _c_ 0 <sup>_α_</sup> _c_ 1 <sup>_α_</sup> ... _c_ <sup>_α_</sup> _d_ - _K_, _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _SK_ _|_ _|_ _|_ Γ( _K_, _W_ <sup>0</sup> ) Γ( _K_, _W_ <sup>1</sup> ) ... Γ( _K_, _W_ <sup>_d_</sup> )   . (35)    _=_ Γ - _K_, _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _|_ _|_ _|_ - <u>��</u> _=_ : M _d_ Invertibility of the matrix M is thus a sufficient condition for the existence of all _DOF_ -continuous numerical correctors, and the resolution of the linear system (35) for each _α_ (where all _DOF_ extended numerical correctors are replaced by their numerical approximation) allows to compute the _DOF_ -continuous numerical correctors numerically. Before studying the invertibility of the matrix M in a few special cases, let us consider the matrix composed of the degrees of freedom on _SK_, i.e., the matrix    . - _SK_, _W_ <sup>_d_</sup> <sup>�</sup> - _SK_, _W_ <sup>1�</sup> ... Γ M� : _=_  _|_ _|_ _|_ Γ - _SK_, _W_ <sup>0�</sup> Γ - _SK_, _W_ <sup>1�</sup> ... Γ - _SK_, - _SK_, _W_ <sup>0�</sup> Γ _|_ _|_ _|_ By definition of the functions _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,c</sup> <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_β_</sup> <sup>,c</sup>, we have Γ( _SK_, _W_ <sup>_β_</sup> ) _=_ Γ( _SK_, _x_ <sup>_β_</sup> _−_ _xc_ <sup>_β_</sup>, By definition of the functions _χ_ <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_β_</sup> <sup>,c</sup>, we have Γ( _SK_, _W_ <sup>_β_</sup> ) _=_ Γ( _SK_, _x_ <sup>_β_</sup> _−_ _xc_ <sup>_β_</sup>, _K_ <sup>)</sup> <sup>for</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_β_</sup> <sup>_≤_</sup> <sup>_d_</sup> <sup>,</sup> <sup>and</sup> Γ( _SK_, _W_ <sup>0</sup> ) _=_ Γ( _SK_,1). Note that the constant function together with the coordinate functions _x_ <sup>_β_</sup> _−_ _xc_ <sup>_β_</sup>, _K_ <sup>(1</sup> <sup>_≤_</sup> <sup>_β ≤_</sup> <sup>_d_</sup> <sup>)</sup> <sup>span</sup> <sup>P1(</sup> <sup>_SK_</sup> <sup>).</sup> <sup>Since</sup> <sup>Γ(</sup> <sup>_SK_</sup> <sup>,</sup> <sup>_·_</sup> <sup>)</sup> <sup>is</sup> <sup>a</sup> <sup>bijection,</sup> <sup>the</sup> <sup>vectors</sup> <sup>Γ(</sup> <sup>_SK_</sup> <sup>,</sup> <sup>_W_</sup> <sup>0), ..., Γ(</sup> <sup>_SK_</sup> <sup>,</sup> <sup>_W d_</sup> <sup>)</sup> are linearly independent. Hence the matrix M <sup>�</sup> is invertible. One may hope that the linear independence of the vectors Γ( _SK_, _W_ <sup>_β_</sup> ) is preserved for the degrees of freedom on the interior boundary _∂K_ instead of _∂SK_, yielding invertibility of M. We found this to hold for all numerical tests that we performed, involving both the MsFEM-lin and the MsFEM-CR. We can prove invertibility of M in a few special cases. When _sK_ <sup>_ε_</sup> <sup>is the sampling form that was</sup> used in Example 18 (corresponding to a diffusion problem; we will consider this case until the end of this section) and if _A_ <sup>_ε_</sup> is constant, all numerical correctors vanish on _SK_ and the foregoing argument for the matrix M <sup>�</sup> shows invertibility of M. In the periodic setting (see Section 2.7), even though _A_ <sup>_ε_</sup> itself is not constant, its homogenized limit _A_ <sup>⋆</sup> is. In this case, the _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,e</sup> converge to zero weakly in _H_ <sup>1</sup> ( _SK_ ). (We show this in _c_ <sup>_β_</sup>, _K_ <sup>(1</sup> <sup>_≤_</sup> <sup>_β ≤_</sup> <sup>_d_</sup> <sup>)</sup> <sup>span</sup> <sup>P1(</sup> <sup>_SK_</sup> <sup>).</sup> <sup>Since</sup> <sup>Γ(</sup> <sup>_SK_</sup> <sup>,</sup> <sup>_·_</sup> <sup>)</sup> <sup>is</sup> <sup>a</sup> <sup>bijection,</sup> <sup>the</sup> <sup>vectors</sup> <sup>Γ(</sup> <sup>_SK_</sup> <sup>,</sup> <sup>_W_</sup> <sup>0), ..., Γ(</sup> <sup>_SK_</sup> <sup>,</sup> <sup>_W d_</sup> <sup>)</sup> We can prove invertibility of M in a few special cases. When _sK_ <sup>_ε_</sup> limit _A_ <sup>⋆</sup> is. In this case, the _χ_ <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_β_</sup> <sup>,e</sup> converge to zero weakly in _H_ <sup>1</sup> ( _SK_ ). (We show this in Lemma 45 in the absence of oversampling, but the argument can be generalized to _DOF_ extended oversampling.) Now consider the MsFEM-CR. The weak convergence of the _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,e</sup> _SK_ in _H_ <sup>1</sup> ( _SK_ ) ensures weak convergence on each face of _K_ in the _H_ <sup>1/2</sup> -norm by continuity of the trace operator. Since the embedding of _H_ <sup>1/2</sup> ( _∂K_ ) in _L_ <sup>2</sup> ( _∂K_ ) is compact, the _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,e</sup> converge to 0 <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,e</sup> converge to 0 _SK_ strongly in _L_ <sup>2</sup> on each face of _K_ . Consequently, the degrees of freedom Γ( _K_, _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,e</sup> strongly in _L_ <sup>2</sup> on each face of _K_ . Consequently, the degrees of freedom Γ( _K_, _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,e</sup> ) (the averages _SK_ on the faces of _K_ ) converge to zero as _ε →_ 0. Thus, - _K_, _x_ <sup>_β_</sup> _−_ _xc_ <sup>_β_</sup>, _K_ - _K_, _x_ <sup>_β_</sup> _−_ _xc_ <sup>_β_</sup>, as _ε →_ 0 for all 1 _≤_ _β ≤_ _d_ _K_, _W_ <sup>_β_</sup> <sup>�</sup> _→_ Γ Γ - _K_, _W_ <sup>0�</sup> _→_ Γ( _K_,1) and Γ and, by the above argument for the matrix M <sup>�</sup>, the matrix M is invertible in this limit. By continuity of the determinant function, the matrix M is invertible when _ε_ is small enough, and the _DOF_ continuous basis functions exist in this regime. The study of the _DOF_ -continuous numerical correctors for the MsFEM-lin is more delicate, since pointwise operations are involved in evaluating the degrees of freedom, which are illdefined on _H_ <sup>1</sup> ( _SK_ ). One can invoke the De Giorgi–Nash result, which can be found e.g. in [14, Theorem 8.22], to see that the multiscale basis functions, obtained from the numerical correctors in Definition 26 below, are in fact continuous for any bounded diffusion tensor. (See Example 29 for a definition of the multiscale basis functions for the MsFEM-lin independent of the numerical correctors.) Pointwise evaluation is then justified. It would therefore be convenient to study 158 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski the _DOF_ -continuous basis functions directly, without the intermediate step of the numerical correctors. We do not further pursue this topic here. 4.4. _The multiscale basis functions_ We can now define the multiscale basis functions for the approximation of the abstract problem (27) in terms of the numerical correctors. We recall that in Section 2.2, the numerical correctors were derived from the definition of the basis functions. We give an equivalent definition of the multiscale basis functions, independent of the numerical correctors, in Lemmas 27 and 28. Recall that _φ_ <sup>P</sup> 1 <sup>1</sup> <sup>, ...,</sup> <sup>_φ_</sup> <sup>P</sup> _N_ <sup>1</sup> <sup>is a basis of the space</sup> <sup>_VH_</sup> <sup>(see Definition 12). We can suppose that the first</sup> _N_ 0 basis functions form a basis of _VH_,0. The following definition is the generalization of (10) to the general MsFEM framework. Definition 26. _For each i_ _=_ 1, ..., _N, the_ multiscale basis function _φ_ <sup>_ε_</sup> _i_ <sup>_is defined by_</sup> �� _K_ <sup>_=_</sup> <sup>_φ_</sup> <sup>P</sup> _i_ <sup>1</sup> �� _K_ <sup>_=_</sup> <sup>_φ_</sup> <sup>P</sup> _i_ <sup>1</sup> _i_ <sup>P1</sup> <sup>(</sup> <sup>_xc_</sup> <sup>,</sup> <sup>_K_</sup> <sup>)</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,0,</sup> <sup>_•_</sup> - _d_ _α=_ 1 _∀_ _K_ _∈_ _TH_, _φ_ <sup>_ε_</sup> _i_ _∀_ _K_ _∈_ _TH_, _φ_ <sup>_ε_</sup> _i_ ��� _K_ <sup>_+_</sup> <sup>_φ_</sup> _i_ <sup>P1</sup> _+_ _K_ <sup>_ε_</sup> <sup>,0,</sup> <sup>_•_</sup> - _φ_ <sup>P1</sup> _i_ - _φ_ <sup>P1</sup> ��� _K_ - _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup>, (36) - _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> ��� _K_ _K_ _∂α_ _where • =_ e _corresponds to DOF-extended multiscale basis functions and • =_ c _corresponds to DOF-_ _continuous multiscale basis functions._ The _DOF_ -extended multiscale basis functions satisfy a variational problem on the oversampling patches _SK_ as shown by the following lemma. Lemma 27. _Let K_ _be any mesh element and let_ 1 _≤_ _i_ _≤_ _N. Consider an MsFEM with DOF-extended_ _basis functions. Define an extension of φ_ <sup>_ε_</sup> _i_ <sup>_from K_</sup> <sup>_to SK_</sup> <sup>_by_</sup> <sup>_ε_</sup> _φ_ <sup>P1</sup> _i_ <sup>_=_</sup> <sup>�</sup> _i_ ��� _K_ - _d_ _α=_ 1 _∂α_ - _φ_ <sup>P1</sup> _i_ - _φ_ <sup>P1</sup> _φ_ - <sup>_ε_</sup> _i_ _i_ ��� _K_ - _χ_ <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup>, _in SK_, (37) ��� _K_ - _χ_ <sup>_ε_</sup> _S_ <sup>,</sup> _K_ <sup>_α_</sup> <sup>,e</sup> - _xc_, _K_ - _χ_ <sup>_ε_</sup> <sup>,0,e</sup> _+_ _SK_ - _χ_ <sup>_ε_</sup> <sup>,0,e</sup> ��� _K_ <sup>_+_</sup> <sup>_φ_</sup> _i_ <sup>P1</sup> _i_ <sup>�P</sup> _i_ <sup>1</sup> <sup>_|K_</sup> <sup>_denotes the affine extension of φ_</sup> _i_ <sup>P1</sup> _φ_ <sup>_ε_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _is as in Definition 17._ _Then_ <sup>�</sup> _i_ _where_ _φ_ <sup>�P</sup> _i_ <sup>1</sup> <sup>_|K_</sup> _i_ <sup>P1</sup> <sup>_|K_</sup> <sup>_to SK, and χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _where_ <sup>�</sup> _K_ _is as in Definition 17._ _Then_ <sup>�</sup> _i_ _is the unique solution in VK_ _to_  - _=_ 0 _for all w ∈_ _VK_,0, _sK_ <sup>_ε_</sup> Γ _=_ Γ _φ_ <sup>P1</sup> _SK_, <sup>�</sup> _i_ ��� _K_  _K_ - _φ_ - <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_w_</sup> (38) - _φ_ <sup>_ε_</sup> _SK_, <sup>�</sup> _i_ _i_ Γ ��� _K_ . In the case of the MsFEM-lin for the diffusion problem (1), problem (38) with _SK_ _= K_ coincides with the definition of the multiscale basis functions in (5); see Example 29. _φ_ <sup>_ε_</sup> Proof. Problem (38) has a unique solution in view of Definition 16. It thus suffices to show that <sup>�</sup> _i_ satisfies (38). Since the numerical correctors _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> belong to _VK_,0 for all 0 _≤_ _α_ _≤_ _d_, it is clear from (37) that _=_ Γ _φ_ <sup>P1</sup> _SK_, <sup>�</sup> _i_ ��� _K_ _i_ Γ - _φ_ <sup>_ε_</sup> _SK_, <sup>�</sup> _i_ ��� _K_ . Inserting (37) into (38) and applying (31) to all _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,e</sup>, we find, for any test function _w ∈_ _VK_,0, _+_ _φ_ <sup>P1</sup> _i_ _+_ _φ_ <sup>P1</sup> - _= sK_ <sup>_ε_</sup> �� _φ_ <sup>P1</sup> ��� _K_ _i_ - _+_ - _d_ _α=_ 1 - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> ���� _K_ <sup>_s_</sup> _K_ <sup>_ε_</sup> ���� _K_ <sup>_s_</sup> _K_ <sup>_ε_</sup> - _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup>, _w_ _SK_ - _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,e</sup> _sK_ <sup>_ε_</sup> - _φ_ - <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_w_</sup> - _sK_ <sup>_ε_</sup> - _sK_ <sup>_ε_</sup> - _sK_ <sup>_ε_</sup> <sup>(1,</sup> <sup>_w_</sup> <sup>)</sup> <sup>_−_</sup> - _χ_ <sup>_ε_</sup> <sup>,0,e</sup>, _w_ _SK_ - _χ_ <sup>_ε_</sup> <sup>,0,e</sup>, ��� _K_ <sup>,</sup> <sup>_w_</sup> _−_ _φ_ <sup>P1</sup> _i_ _−_ _φ_ <sup>P1</sup> - _xc_, _K_ - _xc_, _K_ ���� _K_ <sup>_s_</sup> _K_ <sup>_ε_</sup> - _x_ <sup>_α_</sup> _−_ _xc_ <sup>_α_</sup>, _K_ <sup>,</sup> <sup>_w_</sup> _= sK_ <sup>_ε_</sup> �� _φ_ <sup>P1</sup> ��� _K_ _i_ - _d_ _α=_ 1 - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> ��� _K_ <sup>,</sup> <sup>_w_</sup> _−_ _sK_ <sup>_ε_</sup> _−_ _sK_ <sup>_ε_</sup> _φ_ <sup>P1</sup> _i_ - _xc_, _K_ ���� _K_ - _x_ <sup>_α_</sup> _−_ _xc_ <sup>_α_</sup>, _K_ , _w_ . _= sK_ <sup>_ε_</sup> �� _φ_ <sup>P1</sup> ��� _K_ _i_ - _d_ _α=_ 1 - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> ��� _K_ <sup>,</sup> <sup>_w_</sup> - _+_ Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 159 Here we use that _sK_ <sup>_ε_</sup> Here we use that _sK_ <sup>_ε_</sup> <sup>is</sup> <sup>a</sup> <sup>bilinear</sup> <sup>form</sup> <sup>on</sup> <sup>_VK_</sup> <sup>,</sup> <sup>that</sup> <sup>all</sup> <sup>piecewise</sup> <sup>affine</sup> <sup>functions</sup> <sup>are</sup> <sup>contained</sup> in _VK_ according to Definition 16 (this ensures that _φ_ <sup>�</sup> <sup>_ε_</sup> _i_ <sup>indeed lies in the domain of</sup> <sup>_s_</sup> _K_ <sup>_ε_</sup> <sup>), and the</sup> property that _∇φ_ <sup>P1</sup> _i_ <sup>P1</sup> _φ_ <sup>P1</sup> _i_ is piecewise constant. Finally, we use (20) for _ϕ =_ <sup>�</sup> _i_ <sup>�</sup> <sup>_ε_</sup> _i_ <sup>indeed lies in the domain of</sup> <sup>_s_</sup> _K_ <sup>_ε_</sup> <sup>P1</sup> to conclude that <sup>�</sup> _i_ _K_ <sup>_ε_</sup> <sup>), and the</sup> _−_ _sK_ <sup>_ε_</sup> _−_ _sK_ <sup>_ε_</sup> _i_ �� _φ_ <sup>P1</sup> ��� _K_ _=_ 0, - _= sK_ <sup>_ε_</sup> - _= sK_ <sup>_ε_</sup> �� _φ_ <sup>P1</sup> ��� _K_ _i_ _sK_ <sup>_ε_</sup> - _φ_ - <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_w_</sup> - _φ_ - <sup>_ε_</sup> _i_ ��� _K_ <sup>,</sup> <sup>_w_</sup> <sup>1</sup> ��� _K_ <sup>,</sup> <sup>_w_</sup> which establishes the desired variational formulation satisfied by _φ_ <sup>�</sup> <sup>_ε_</sup> _i_ <sup>.</sup> If the _DOF_ -continuous problems (34) are well-posed, we obtain by the same arguments the following result for _DOF_ -continuous multiscale basis functions. Lemma 28. _Let K_ _be any mesh element and let_ 1 _≤_ _i_ _≤_ _N. Assume that any DOF-continuous local_ _problem_ (34) _is well-posed._ _Consider an MsFEM with DOF-continuous basis functions._ _Define an_ _extension of φ_ <sup>_ε_</sup> _i_ <sup>_from K_</sup> <sup>_to SK_</sup> <sup>_by_</sup> ��� _K_ - _χS_ <sup>_ε_</sup> <sup>,</sup> _K_ <sup>_α_</sup> <sup>,c</sup>, _in SK_, - _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> <sup>_ε_</sup> _φ_ <sup>P1</sup> _i_ <sup>_=_</sup> <sup>�</sup> _i_ ��� _K_ - _d_ _α=_ 1 _∂α_ - _φ_ <sup>P1</sup> _i_ - _φ_ <sup>P1</sup> _φ_ - <sup>_ε_</sup> _i_ _i_ - _xc_, _K_ - _χ_ <sup>_ε_</sup> <sup>,0,c</sup> _+_ _SK_ - _χ_ <sup>_ε_</sup> <sup>,0,c</sup> ��� _K_ <sup>_+_</sup> <sup>_φ_</sup> _i_ <sup>P1</sup> _i_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _is_ _as_ _in_ _Definition_ _22,_ _and_ _φ_ <sup>�P</sup> _i_ <sup>1</sup> <sup>_|K_</sup> _where_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> <sup>P1</sup> _φ_ <sup>_ε_</sup> <sup>�</sup> _i_ <sup>_|K_</sup> <sup>_is_</sup> <sup>_as_</sup> <sup>_defined_</sup> <sup>_in_</sup> <sup>_Lemma_</sup> <sup>_27._</sup> <sup>_Then_</sup> <sup>�</sup> _i_ _where_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,c</sup> _is_ _as_ _in_ _Definition_ _22,_ _and_ _φ_ <sup>�P</sup> _i_ <sup>1</sup> <sup>_|K_</sup> <sup>_is_</sup> <sup>_as_</sup> <sup>_defined_</sup> <sup>_in_</sup> <sup>_Lemma_</sup> <sup>_27._</sup> <sup>_Then_</sup> _φ_ <sup>�</sup> <sup>_ε_</sup> _i_ <sup>_is_</sup> <sup>_the_</sup> <sup>_unique_</sup> _solution in VK_ _to_  _sK_ <sup>_ε_</sup> - _φ_ - <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_w_</sup> - _=_ 0 _for all w ∈_ _VK_,0, (39) _sK_ <sup>_ε_</sup> Γ _i_ _=_ 0 _for all w ∈_ _VK_,0, - _K_, _φ_ <sup>P1</sup> _i_ - _K_, _φ_ <sup>P1</sup> _i_ _K_ - _φ_ - <sup>_ε_</sup> _i_ <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_w_</sup> - _φ_ <sup>_ε_</sup> _K_, <sup>�</sup> _i_ . Γ _=_ Γ Example 29 (MsFEM-lin for diffusion problems). In the setting of Example 18, any _DOF_ extended multiscale basis function _φ_ <sup>_ε_</sup> _i_ <sup>for the MsFEM-lin constructed in (38) is obtained, in each</sup> mesh element _K_, as the restriction of a function _φ_ <sup>�</sup> <sup>_ε_</sup> _i_ <sup>, which is the unique solution in</sup> <sup>_H_</sup> <sup>1(</sup> <sup>_SK_</sup> <sup>) to</sup> <sup>_ε_</sup> _φ_ <sup>P1</sup> _i_ <sup>_=_</sup> <sup>�</sup> _i_ <sup>�P</sup> _i_ <sup>1</sup> on _∂SK_ . _−_ div - _A_ <sup>_ε_</sup> _∇φ_ <sup>�</sup> <sup>_ε_</sup> _i_ - _A_ <sup>_ε_</sup> _∇φ_ <sup>�</sup> <sup>_ε_</sup> _i_ - _=_ 0 in _SK_, _φ_ - <sup>_ε_</sup> _i_ For a _DOF_ -continuous basis function, _φ_ <sup>�</sup> <sup>_ε_</sup> _i_ For a _DOF_ -continuous basis function, _φ_ <sup>�</sup> <sup>_ε_</sup> _i_ <sup>solves the same PDE in</sup> <sup>_SK_</sup> <sup>, is affine on</sup> <sup>_∂SK_</sup> <sup>, and satisfies</sup> _φ_ - <sup>_ε_</sup> _i_ <sup>(</sup> <sup>_x j_</sup> <sup>)</sup> <sup>_= φ_</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>(</sup> <sup>_x j_</sup> <sup>) at all vertices</sup> <sup>_x j_</sup> <sup>of</sup> <sup>_K_</sup> <sup>.</sup> Example 30 (MsFEM-CR for diffusion problems). In the continuation of Example 19, the _DOF_ extended multiscale basis function _φ_ <sup>_ε_</sup> _i_ <sup>for the MsFEM-CR is the restriction to</sup> <sup>_K_</sup> <sup>of �</sup> _φ_ <sup>_ε_</sup> _i_ <sup>, the unique</sup> solution in _H_ <sup>1</sup> ( _SK_ ) to  - <sup>_ε_</sup> _i_ <sup>(</sup> <sup>_x j_</sup> <sup>)</sup> <sup>_= φ_</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>(</sup> <sup>_x j_</sup> <sup>) at all vertices</sup> <sup>_x j_</sup> <sup>of</sup> <sup>_K_</sup> <sup>.</sup> <sup>_ε_</sup> _i_ <sup>for the MsFEM-CR is the restriction to</sup> <sup>_K_</sup> <sup>of �</sup> _φ_ <sup>_ε_</sup> _i_ _−_ div _i_  - _A_ <sup>_ε_</sup> _∇φ_ <sup>�</sup> <sup>_ε_</sup> _i_ <sup>_ε_</sup> _i_ _=_ 0 on each _h ∈_ _Fa_ ( _SK_ ), _=_ 0 in _SK_, _n · A_ <sup>_ε_</sup> _∇φ_ <sup>�</sup> <sup>_ε_</sup> _i_ _n · A_ <sup>_ε_</sup> _∇φ_ <sup>�</sup> <sup>_ε_</sup> _i_ _n · A_ <sup>_ε_</sup> _∇φ_ <sup>�</sup> <sup>_ε_</sup> _i_ _= ch_ on each _h ∈_ _Fd_ ( _SK_ ), <u>1</u> - _|h|_ _h_ _φ_ - <sup>_ε_</sup> _i_ _=_ _|h_ <sup><u>1</u></sup> _|_ _h_ _φ_ - <sup>P</sup> _i_ <sup>1</sup> for each _h ∈_  _h_ _φ_ - <sup>P1</sup> _|h|_ _h_ _φ_ - <sup>_ε_</sup> _i_ <sup>_ε_</sup> _=_ <sup><u>1</u></sup> _i_ _|h_ - <sup>P</sup> _i_ <sup>1</sup> for each _h ∈_ _Fd_ ( _SK_ ), where the constants _ch_ are uniquely determined by the problem. We recall that the sets of faces _Fa_ ( _SK_ ) and _Fd_ ( _SK_ ) are defined in Section 4.3.2. For _DOF_ -continuous basis functions, the last condition is applied to the faces _h ∈_ _F_ ( _K_ ) (and all other conditions remain unchanged). Our general framework allows two characterizations of the multiscale basis functions, namely (36) and (38) or (39), as was the case for the MsFEM studied in Section 2.2 (where _φ_ <sup>_ε_</sup> _i_ is given by (5) or (10)). The essential advantage of (36) is that the microscale is fully encoded in the numerical correctors _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup>, that can be computed element per element without any global information. In particular, the _global_ index _i_ of the multiscale basis function _φ_ <sup>_ε_</sup> _i_ <sup>is irrelevant for</sup> the computation of the numerical correctors. The expression in (36) is therefore the crucial relationship that we will employ to develop non-intrusive MsFEMs within the general framework in Section 5, just as was (10) in Sections 2.4 and 2.5. 160 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski The second formulation of the multiscale basis functions, as solutions to the local problems (38) or (39), provides a more direct interpretation of the multiscale basis functions in terms of the sampling form chosen. It also gives a relation between the degrees of freedom of the P1 basis functions and the associated multiscale basis function. This is useful in particular for the well-posedness of the MsFEM, that we study in Lemma 34. Remark 31. Our definition of the multiscale basis functions in (36) is reminiscent of the Variational Multiscale Method, a framework developed in [36,37] to adapt Galerkin approximations on low-dimensional spaces to the presence of multiscale features. In this context, our formulation of the MsFEM also exhibits a link with residual-free bubbles, see e.g. [37–39]. Remark 32. The first introduction of the MsFEM in [4] corresponds to the idea of oversampling with _DOF_ -continuous basis functions. Although their existence cannot be established in general, they are computed numerically by taking linear combinations of _DOF_ -extended basis functions (following an analogous strategy to the one we discussed in Section 4.3.5). The MsFEM with _DOF_ extended basis functions is studied in the works [40,41] dealing with the convergence analysis of the MsFEM-lin with oversampling. Let us also note that the combination of Crouzeix-Raviart MsFEM and oversampling has, to the best of our knowledge, not yet been proposed in the literature. This method, for which the basis functions are given explicitly in Example 30, is a natural by-product of the identification of the abstract MsFEM framework. 4.5. _The global problem_ We can now define the multiscale trial and test spaces, respectively _VH_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> <sup>and</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_,0 <sup>, as follows:</sup> - _φ_ <sup>_ε_</sup> _i_ - _φ_ <sup>_ε_</sup> _i_ �� 1 _≤_ _i_ _≤_ _N_ -, _VH_ <sup>_ε_</sup>,0 <sup>_=_</sup> _VH_ <sup>_ε_</sup> <sup>_=_</sup> - _φ_ <sup>_ε_</sup> _i_ �� 1 _≤_ _i_ _≤_ _N_ 0� . We recall that we have assumed the first _N_ 0 basis functions of _VH_ to form a basis of _VH_,0 in Section 4.4. Note that we only use _VH_ <sup>_ε_</sup>,0 <sup>in</sup> <sup>the</sup> <sup>present</sup> <sup>section,</sup> <sup>because</sup> <sup>(27)</sup> <sup>is</sup> <sup>posed</sup> <sup>with</sup> <sup>homo-</sup> geneous Dirichlet boundary conditions, but that the larger space _VH_ <sup>_ε_</sup> <sup>is useful for more general</sup> boundary conditions (see Section 5.3). Applying (36), we have the equivalent characterization in terms of the P1 space _VH_, - _d_ _α=_ 1 _∂α_ ( _v_ _H_ _||K_ ) _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> ������ _v_ _H_ _∈_ _VH_ _VH_ <sup>_ε_</sup> <sup>_=_</sup> _v_ _H_ <sup>_ε_</sup> <sup>_= v_</sup> <sup>_H +_</sup> _K ∈_ _TH_ _+_ _v_ _H_ ( _xc_, _K_ ) _χ_ <sup>_ε_</sup> _K_ <sup>,0,</sup> <sup>_•_</sup> _v_ _H_ ( _xc_, _K_ ) _χ_ <sup>_ε_</sup> _K_ <sup>,0,</sup> <sup>_•_</sup> . Definition 33. _Let_ _VH_ _be_ _an_ _underlying_ P1 _space_ _defined_ _in_ _Definition_ _10_ _with_ _the_ _associated_ _DOF operator_ Γ _from Definition 11 and Definitions 14-15._ _Define for each mesh element K_ _∈_ _TH_ _an oversampling patch (Definition 13), a sampling space and sampling form in accordance with_ _Definition 16. Let the multiscale basis functions φ_ <sup>_ε_</sup> _i_ <sup>_be given as in Definition 26. Then a_</sup> <sup>Multiscale</sup> Finite Element Method _(MsFEM) for problem_ (27) _is: find u_ <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_,0 <sup>_such that_</sup> <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_,0 <sup>_such that_</sup> - _u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_v_</sup> _H_ <sup>_ε_</sup> _H_ - _= F_ _∀_ _v_ _H_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_,0 <sup>,</sup> _aK_ <sup>_ε_</sup> - . (40) _K ∈_ _TH_ - _v_ _H_ <sup>_ε_</sup> - _v_ _H_ <sup>_ε_</sup> In the following lemma, we investigate the well-posedness of the MsFEM. Lemma 34. _Consider_ _an_ _MsFEM_ _without_ _oversampling,_ _or_ _an_ _MsFEM_ _with_ _oversampling_ _us-_ _ing_ _DOF-continuous_ _basis_ _functions_ _(assuming_ _the_ _associated_ _basis_ _functions_ _are_ _well-defined)._ _When a_ <sup>_ε_</sup> _satisfies_ (28) _, the MsFEM_ (40) _has a unique solution._ Proof. Note that, with _DOF_ -continuous oversampling, but also without oversampling, the multiscale basis functions satisfy (39). In particular, all degrees of freedom of _u_ <sup>_ε_</sup> _H_ <sup>related to the bound-</sup> ary vanish. Also note that, the dimension of _VH_ <sup>_ε_</sup>,0 <sup>being finite, it suffices to show that</sup> <sup>_uε_</sup> _H_ <sup>_=_</sup> <sup>0 is the</sup> unique solution to problem (40) with _F_ _=_ 0. Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 161 If 0 _=_ _F_ ( _u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>),</sup> <sup>it</sup> <sup>follows</sup> <sup>from</sup> <sup>(28)</sup> <sup>that</sup> <sup>_uε_</sup> _H_ _i_ <sup>_N_</sup> _=_ <sup>0</sup> 1 <sup>_αi φ_</sup> _i_ <sup>P1</sup> If 0 _=_ _F_ ( _u_ <sup>_ε_</sup> _H_ <sup>)</sup> <sup>_=_</sup> <sup>_aε_</sup> <sup>(</sup> <sup>_uε_</sup> _H_ <sup>,</sup> <sup>_uε_</sup> _H_ <sup>),</sup> <sup>it</sup> <sup>follows</sup> <sup>from</sup> <sup>(28)</sup> <sup>that</sup> <sup>_uε_</sup> _H_ <sup>is</sup> <sup>piecewise</sup> <sup>constant.</sup> <sup>Let</sup> <sup>us</sup> <sup>write</sup> _u_ <sup>_ε_</sup> _H_ <sup>_=_</sup> <sup>�</sup> _i_ <sup>_N_</sup> _=_ <sup>0</sup> 1 <sup>_αi φε_</sup> _i_ <sup>for some coefficients</sup> <sup>_αi_</sup> <sup>_∈_</sup> <sup>R and introduce the function</sup> <sup>_uH_</sup> <sup>_=_</sup> <sup>�</sup> _i_ <sup>_N_</sup> _=_ <sup>0</sup> 1 <sup>_αi φ_</sup> _i_ <sup>P1</sup> _∈_ _VH_ . Because of (39), we have Γ( _K_, _u_ <sup>_ε_</sup> _H_ <sup>)</sup> <sup>_=_</sup> <sup>Γ(</sup> <sup>_K_</sup> <sup>,</sup> <sup>_uH_</sup> <sup>)</sup> <sup>for</sup> <sup>all</sup> <sup>mesh</sup> <sup>elements</sup> <sup>_K_</sup> <sup>.</sup> <sup>Since</sup> <sup>_uε_</sup> _H_ <sup>is</sup> <sup>piecewise</sup> constant and Γ( _K_, _·_ ) is a bijection from P1( _K_ ) to R <sup>_d_</sup> <sup>_+_</sup> <sup>1</sup> (recall Definition 11), it follows that _u_ <sup>_ε_</sup> _H_ <sup>_=_</sup> _uH_ . In particular, the multiscale function _u_ <sup>_ε_</sup> _H_ <sup>in fact belongs to the underlying P1 space</sup> <sup>_VH_</sup> <sup>.</sup> We remarked immediately below Definition 10 that, for either of the two spaces _VH_ _=_ _VH_ <sup>_L_</sup> or _VH_ <sup>_CR_</sup> <sup>, the above implies that</sup> <sup>_uε_</sup> _H_ <sup>is constant throughout Ω.</sup> <sup>Since the degrees of freedom of</sup> <sup>_uε_</sup> _H_ associated to the boundary vanish, we readily deduce that _u_ <sup>_ε_</sup> _H_ <sup>_=_</sup> <sup>0.</sup> <sup>_ε_</sup> _H_ <sup>_=_</sup> <sup>�</sup> _i_ <sup>_N_</sup> _=_ <sup>0</sup> <sup>_ε_</sup> _H_ <sup>)</sup> <sup>_=_</sup> <sup>_aε_</sup> <sup>(</sup> <sup>_uε_</sup> _H_ <sup>_ε_</sup> _i_ <sup>for some coefficients</sup> <sup>_αi_</sup> <sup>_∈_</sup> <sup>R and introduce the function</sup> <sup>_uH_</sup> <sup>_=_</sup> <sup>�</sup> _i_ <sup>_N_</sup> _=_ <sup>0</sup> _i_ <sup>_N_</sup> _=_ <sup>0</sup> 1 <sup>_αi φε_</sup> _i_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_uε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>)</sup> <sup>_=_</sup> <sup>Γ(</sup> <sup>_K_</sup> <sup>,</sup> <sup>_uH_</sup> <sup>)</sup> <sup>for</sup> <sup>all</sup> <sup>mesh</sup> <sup>elements</sup> <sup>_K_</sup> <sup>.</sup> <sup>Since</sup> <sup>_uε_</sup> _H_ . In particular, the multiscale function _u_ <sup>_ε_</sup> _H_ <sup>in fact belongs to the underlying P1 space</sup> <sup>_VH_</sup> <sup>.</sup> We remarked immediately below Definition 10 that, for either of the two spaces _VH_ _=_ _VH_ <sup>_L_</sup> _H_ <sup>_CR_</sup> <sup>, the above implies that</sup> <sup>_uε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>is constant throughout Ω.</sup> <sup>Since the degrees of freedom of</sup> <sup>_uε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>_=_</sup> <sup>0.</sup> We do not know of the existence of a result on the well-posedness of MsFEMs with oversampling using _DOF_ -extended multiscale basis functions. In [41], the authors establish an inf-sup result for a variant of the MsFEM-lin-OS with P1 test functions (see also Definition 35). This result is obtained for a periodic diffusion coefficient in the limit of sufficiently small _ε_ . 5. Non-intrusive MsFEM for the general framework We show in this section how to develop a non-intrusive approach for the general MsFEM framework of Section 4. We have seen in Lemma 5 that, for a particular MsFEM variant, the nonintrusive Galerkin MsFEM approach coincides with a Petrov-Galerkin MsFEM. This does not hold for all MsFEMs in the general framework. We first develop a non-intrusive MsFEM approach for a Petrov–Galerkin MsFEM in the general framework. We show that the non-intrusive approach for the Petrov–Galerkin MsFEM is actually equivalent to the Petrov–Galerkin MsFEM itself. In a second step, we introduce a non-intrusive approximation of the Galerkin MsFEM. Before doing so, let us summarize the main steps of Sections 2.4 and 2.5 to obtain a non-intrusive MsFEM approach: (1) the expansion (10) allows to recast the matrix A <sup>_ε_</sup> of the linear system for the MsFEM as the matrix A <sup>P1</sup> associated to the P1 discretization of an effective problem; (2) we approximate the right-hand side F <sup>_ε_</sup> of the MsFEM problem by the right-hand side F <sup>P1</sup> of this P1 discretization; (3) the post-processing step (21) applied to the P1 approximation of the effective problem yields the MsFEM approximation. 5.1. _The Petrov–Galerkin MsFEM_ We recall that the abstract continuous problem for which we developed the MsFEM in Section 4 is given by (27) and that it can be rewritten in terms of the bilinear forms _aK_ <sup>_ε_</sup> <sup>satisfying (28). Petrov-</sup> Galerkin variants of the multiscale finite element method with P1 test functions were previously studied in [24,41]. In our general MsFEM framework, the adaptation of Definition 33 to a PetrovGalerkin MsFEM is the following. Definition 35. _Let_ _VH_ _be_ _an_ _underlying_ P1 _space_ _defined_ _in_ _Definition_ _10_ _with_ _the_ _associated_ _DOF operator_ Γ _from Definition 11 and Definitions 14-15._ _Define for each mesh element K_ _∈_ _TH_ _an oversampling patch (Definition 13), a sampling space and sampling form in accordance with_ _Definition 16._ _Let the multiscale basis functions φ_ <sup>_ε_</sup> _i_ <sup>_be given as in Definition 26._</sup> <sup>_Then a_</sup> <sup>Petrov-</sup> Galerkin Multiscale Finite Element Method _(PG-MsFEM) for problem_ (27) _is:_ _find u_ <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_,0 <sup>_such_</sup> _that_ - _u_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_v_</sup> <sup>_H_</sup> _aK_ <sup>_ε_</sup> _∀_ _v_ _H_ _∈_ _VH_,0, _K ∈_ _TH_ - _= F_ ( _v_ _H_ ). (41) 162 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski When confusion may arise, we shall refer to the MsFEM defined in Definition 33 as the Galerkin MsFEM (G-MsFEM). To study well-posedness of the PG-MsFEM, it is most convenient to relate this method to the G-MsFEM. Therefore, we postpone well-posedness of (41) to Lemma 38. We now execute step 1 of the summary of the non-intrusive MsFEM approach at the beginning of this section. The matrix A <sup>_ε_</sup> of the linear system associated to (41) is defined by _j_ A <sup>_ε_</sup> _j_, _i_ <sup>_=_</sup> A <sup>_ε_</sup> _j_ _K ∈_ _TH_ _aK_ <sup>_ε_</sup> _aK_ <sup>_ε_</sup> <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> - _φ_ <sup>_ε_</sup> _i_ , 1 _≤_ _i_, _j_ _≤_ _N_ 0. (42) To find an effective P1 formulation with the same linear system, we will use the definition (36) of the multiscale basis functions in the general framework, but first we combine it with (20) applied to _ϕ = φ_ <sup>P1</sup> to rewrite (36) as _i_ (43) _K_ ��� _K_ - _x_ <sup>_α_</sup> _−_ _xc_ <sup>_α_</sup>, _c_ <sup>_α_</sup>, _K_ <sup>_+_</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> �� _K_ <sup>_= φ_</sup> <sup>P</sup> _i_ <sup>1</sup> �� _K_ <sup>_= φ_</sup> <sup>P</sup> _i_ <sup>1</sup> - _+_ _φ_ <sup>P1</sup> _i_ - _+_ _φ_ <sup>P1</sup> - _xc_, _K_ - _χ_ <sup>_ε_</sup> <sup>,0,</sup> <sup>_•_</sup> _+_ _K_ - _χ_ <sup>_ε_</sup> <sup>,0,</sup> <sup>_•_</sup> _K_ - _d_ _α=_ 1 _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> _φ_ <sup>_ε_</sup> _i_ _φ_ <sup>_ε_</sup> _i_ - _xc_, _K_ - _xc_, _K_ _= φ_ <sup>P1</sup> _i_ _= φ_ <sup>P1</sup> - Λ <sup>_ε_</sup> <sup>,0</sup> _K_ <sup>_+_</sup> - Λ <sup>_ε_</sup> <sup>,0</sup> _K_ - _d_ _α=_ 1 _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> ��� _K_ <sup>Λ</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> ��� _K_ <sup>Λ</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> where _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup>, (44) Λ <sup>_ε_</sup> _K_ <sup>,0</sup> <sup>_ε_</sup> <sup>,0</sup> _K_ <sup>:</sup> <sup>_=_</sup> <sup>1</sup> <sup>_+_</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,0,</sup> <sup>_•_</sup> _K_ <sup>_ε_</sup> <sup>,0,</sup> <sup>_•_</sup>, Λ _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> : _= x_ <sup>_α_</sup> _−_ _xc_ <sup>_α_</sup>, _c_ <sup>_α_</sup>, _K_ <sup>_+_</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> for all 1 _≤_ _α ≤_ _d_ and each _K_ _∈_ _TH_ . We recall that _• ∈_ {e,c} indicates the choice of _DOF_ -extended or _DOF_ -continuous basis functions. Inserting (43) into (42) for _φ_ <sup>_ε_</sup> yields _i_ <sup>and (20) for</sup> <sup>_ϕ = φ_</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>_ε_</sup> _i_ <sup>and (20) for</sup> <sup>_ϕ = φ_</sup> <sup>P</sup> _j_ <sup>1</sup> yields <sup>P</sup> _j_ <sup>1</sup> - _φ_ <sup>P1</sup> _j_ - _φ_ <sup>P1</sup> - _xc_, _K_ ���� _K_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>,1</sup> - _xc_, _K_ <sup>P1</sup> _i_ <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> - _φ_ <sup>P1</sup> _j_ A <sup>_ε_</sup> _j_, _i_ <sup>_=_</sup> A <sup>_ε_</sup> _j_ _K ∈_ _TH_ - _xc_, _K_ - _+_ _φ_ <sup>P1</sup> _i_ _|K |_ - _aK_ <sup>_ε_</sup> - _aK_ <sup>_ε_</sup> �Λ <sup>_ε_</sup> <sup>,0</sup> _K_ <sup>,1</sup> �Λ <sup>_ε_</sup> <sup>,0</sup> _K_ - _d_ _α=_ 1 - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> �Λ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ - _d_ _β=_ 1 _c_, _K_ ���� _K_ �� _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> �� _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> �Λ <sup>_ε_</sup> _K_ <sup>,0</sup> <sup>_ε_</sup> <sup>,0</sup> _K_ <sup>,</sup> <sup>_xβ −_</sup> <sup>_x_</sup> _c_ <sup>_β_</sup>, _+_ _+_ _φ_ <sup>P1</sup> _i_ - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> - _∂αφ_ <sup>P</sup> _i_ <sup>1</sup> - _xc_, _K_ - _aK_ <sup>_ε_</sup> - _aK_ <sup>_ε_</sup> <sup>1</sup> ���� _K_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>1</sup> ���� _K_ <sup>_a_</sup> _K_ <sup>_ε_</sup> - _d_ _α_, _β=_ 1 �Λ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>,</sup> <sup>_xβ −_</sup> <sup>_x_</sup> _c_ <sup>_β_</sup>, _c_, _K_ ���� _K_ �� _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> �� _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> , and therefore, A <sup>_ε_</sup> #### j, i = � _K ∈_ _TH_ ~~2~~ _·∇φ_ P _j_ 1 <sup>_+∇φ_</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>_· A_</sup> <sup>_∇φ_</sup> <sup>P</sup> _i_ <sup>1</sup> (45) <sup>P</sup> _i_ <sup>1</sup> <sup>,</sup> - _M_ _φ_ <sup>P</sup> _i_ <sup>1</sup> _j_ _K_ ( _xc_, _K_ ) _+_ ~~1~~ _·∇φ_ P1 _+_ _φ_ <sup>P1</sup> _i_ _i_ <sup>_B_</sup> ~~1~~ _·∇φ_ P1 _+_ _φ_ <sup>P1</sup> _i_ _i_ _φ_ <sup>P1</sup> _j_ <sup>_B_</sup> where we have defined <u>the</u> effective mass _M_, (adjoint) advection vector _B_ ~~1~~ and _B_ ~~2~~, and the effective diffusion tensor _A_, for all 1 _≤_ _α_, _β ≤_ _d_ and for each _K_ _∈_ _TH_, as ��� _K_ <sup>_=_</sup> _|K_ <sup><u>1</u></sup> ��� _K_ <sup>_=_</sup> _|K_ <sup><u>1</u></sup> _|_ _K_ _|K_ <sup><u>1</u></sup> _|_ <sup>_aε_</sup> _K_ _|K_ <sup><u>1</u></sup> _|_ <sup>_aε_</sup> _K_ , _B_ ~~1~~ _α_ �, �Λ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>,1</sup> �Λ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ _M_ _K_ �Λ <sup>_ε_</sup> <sup>,0</sup> _K_ <sup>,1</sup> �Λ <sup>_ε_</sup> <sup>,0</sup> _K_ ~~2~~ _β_ ��� _K_ _|K_ <sup><u>1</u></sup> _|_ <sup>_aε_</sup> _K_ _|K_ <sup><u>1</u></sup> _|_ <sup>_aε_</sup> _K_ _c_, _K_ _K_ �Λ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> _c_, _K_ (46) . _B_ <u>���</u> _K_ <sup>_=_</sup> _|K_ <sup><u>1</u></sup> ��� _K_ <sup>_=_</sup> _|K_ <sup><u>1</u></sup> �Λ <sup>_ε_</sup> _K_ <sup>,0</sup> <sup>_ε_</sup> <sup>,0</sup> _K_ <sup>,</sup> <sup>_xβ −_</sup> <sup>_x_</sup> _c_ <sup>_β_</sup>, <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>,</sup> <sup>_xβ −_</sup> <sup>_x_</sup> _c_ <sup>_β_</sup>, _K_ , _Aβ_, _α_ Note that _M_, _B_ ~~1~~, _B_ ~~2~~ and _A_ are all piecewise constant quantities. All integrals in (45) can be computed exactly by evaluating the integrand at the centroid. With this quadrature rule, we observe that the term _|K |_ ( _M_ _φ_ <sup>P</sup> _i_ <sup>1</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>)(</sup> <sup>_xc_</sup> <sup>,</sup> <sup>_K_</sup> <sup>)</sup> <sup>also</sup> <sup>equals</sup> <sup>the</sup> <sup>numerical</sup> <sup>approximation</sup> <sup>of</sup> <sup>the</sup> Note that _M_, _B_ <sup>P</sup> _i_ <sup>1</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>)(</sup> <sup>_xc_</sup> <sup>,</sup> <sup>_K_</sup> <sup>)</sup> <sup>also</sup> <sup>equals</sup> <sup>the</sup> <sup>numerical</sup> <sup>approximation</sup> <sup>of</sup> <sup>the</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>.</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> integral _K_ <sup>_M_</sup> <sup>_φ_</sup> <sup>P</sup> _i_ <sup>1</sup> Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 163 The new expression (45) for the matrix of the linear system motivates us to introduce the effective bilinear forms _<u>aK</u>_ defined on _H_ <sup>1</sup> ( _K_ ) _× H_ <sup>1</sup> ( _K_ ) by - _B_ ~~2~~ _·∇v_ _+ M u v_, for all _u_, _v ∈_ _H_ <sup>1</sup> ( _K_ ), (47) _<u>aK</u>_ ( _u_, _v_ ) _=_ _K_ _∇v · A_ _∇u + v_ <u>�</u> _B_ ~~1~~ _·∇u_ _+_ _u_ and the associated P1 Galerkin approximation on the space _VH_,0: _K ∈TH_ Find _uH_ _∈_ _VH_,0 such that _<u>aK</u>_ ( _uH_, _v_ _H_ ) _= F_ ( _v_ _H_ ) for all _v_ _H_ _∈_ _VH_,0. (48) This discrete problem leads to a linear system with the matrix _j_ _K ∈_ _TH_ _<u>aK</u>_ _j_ A <sup>P1</sup> _j_, _i_ <sup>_= a_</sup> - _φ_ <sup>P</sup> _i_ <sup>1</sup> <sup>P1</sup> _i_ <sup>,</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> _=_ - _φ_ <sup>P</sup> _i_ <sup>1</sup> <sup>P1</sup> _i_ <sup>,</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> , 1 _≤_ _i_, _j_ _≤_ _N_ 0. The identity (45) thus implies the following result, which generalizes Lemma 2 to the PG-MsFEM in the general framework. Lemma 36. _The_ _matrices_ A <sup>_ε_</sup> _and_ A <sup>P1</sup> _are_ _identical_ _if_ _the_ _integrals_ _in_ (47) _are_ _evaluated_ _at_ _the_ _centroid of each mesh element K_ _for the computation of_ A <sup>P1</sup> _._ _Then the PG-MsFEM_ (41) _coincides_ _with the resolution of the effective problem_ (48) _combined with the post-processing step_ - _d_ _α=_ 1 _∂αuH_ _|K_ Λ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>.</sup> (49) _u_ <sup>_ε_</sup> _H_ �� _K_ <sup>_= uH_</sup> <sup>(</sup> <sup>_xc_</sup> <sup>,</sup> <sup>_K_</sup> <sup>)</sup> <sup>Λ</sup> <sup>_ε_</sup> _K_ <sup>,0</sup> <sup>_+_</sup> Note that Step 2 of the summary at the beginning of this section is irrelevant for the PG-MsFEM. The computation of the right-hand side in (41) is clearly part of any standard FEM software. We refer to Remarks 3 and 4 for some additional comments on the post-processing step. The computational approach described by Lemma 36 naturally fits within the non-intrusive workflow of Algorithm 2. The numerical correctors on line (4) are, of course, replaced by those of Definition 17 or Definition 22. Line (6) is replaced by the computation of all effective quantities in (46), where Λ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> is related to the numerical correctors by (44). The online phase in line (8) amounts to solving the P1 problem (48), where all integrations to construct the matrix of the linear system are to be performed by evaluation at the centroid. (This is not the case for the construction of the right-hand side, however.) Finally, in the post-processing phase, we construct _u_ <sup>_ε_</sup> _H_ <sup>from</sup> <sup>_uH_</sup> <sup>by virtue of (49).</sup> Next we generalize the above expansions to design a non-intrusive approximation of the G-MsFEM. 5.2. _The non-intrusive Galerkin MsFEM_ For the G-MsFEM (introduced in Definition 33), we need to replace the P1 test space _VH_,0 of the PG-MsFEM by the multiscale test space _VH_ <sup>_ε_</sup>,0 <sup>. The matrix of the linear system associated to (40) is</sup> given by _j_ A <sup>_ε_</sup> <sup>,G</sup> _j_, _i_ <sup>_=_</sup> _K ∈_ _TH_ <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_φε_</sup> _j_ _aK_ <sup>_ε_</sup> _aK_ <sup>_ε_</sup> - _φ_ <sup>_ε_</sup> _i_ , 1 _≤_ _i_, _j_ _≤_ _N_ 0. Upon inserting (36) for the test function _φ_ <sup>_ε_</sup> _j_ <sup>, we find, for all 1</sup> <sup>_≤_</sup> <sup>_i_</sup> <sup>,</sup> <sup>_j_</sup> <sup>_≤_</sup> <sup>_N_</sup> <sup>0,</sup> , _K_ - _d_ _β=_ 1 - _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> - _∂βφ_ <sup>P</sup> _j_ <sup>1</sup> ���� _K_ <sup>_a_</sup> _K_ <sup>_ε_</sup> - _φ_ <sup>_ε_</sup> _i_ <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,</sup> <sup>_•_</sup> _K_ - <sup>�</sup> A <sup>_ε_</sup> _j_ <sup>,</sup>, <sup>G</sup> _i_ <sup>_ε_</sup> _j_, _i_ <sup>_+_</sup> <sup>_ε_</sup> <sup>,G</sup> _j_, _i_ <sup>_=_</sup> <sup>A</sup> <sup>_ε_</sup> _j_, _K ∈_ _TH_ - _φ_ <sup>_ε_</sup> _i_ <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,0,</sup> <sup>_•_</sup> _φ_ <sup>P1</sup> _j_ - _aK_ <sup>_ε_</sup> - _aK_ <sup>_ε_</sup> - _xc_, _K_ _+_ where A <sup>_ε_</sup> is the matrix of the Petrov–Galerkin MsFEM, see (42) and (45). An effective formulation can again be derived by inserting (43) for the _φ_ <sup>_ε_</sup> _i_ <sup>. We obtain</sup> 164 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski A <sup>_ε_</sup> <sup>,G</sup> _j_, _i_ A <sup>_ε_</sup> <sup>,G</sup> _j_, _i_ <sup>_=_</sup> #### � _φ_ <sup>P1</sup> _j_ ~~2~~,G _·∇φ_ P _j_ 1 <sup>_+∇φ_</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>_· A_</sup> ~~2~~,G _·∇φ_ P _j_ 1 <sup>_+∇φ_</sup> <sup>P</sup> _j_ <sup>1</sup> G _∇φ_ P _i_ 1 <sup>,</sup> (50) G _∇φ_ P1 _i_ _j_ <u>�</u> _M_ ~~G~~ _φ_ P _i_ 1 P1 _i_ <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> _K_ ~~1~~,G _·∇φ_ P1 _+_ _φ_ <sup>P1</sup> _i_ _i_ <sup>_B_</sup> ~~1~~,G _·∇φ_ P1 _+_ _φ_ <sup>P1</sup> _i_ _i_ _|K |_ ( _xc_, _K_ ) _+_ _φ_ <sup>P1</sup> _j_ <sup>_B_</sup> _K ∈TH_ where the effective mass, (adjoint) advection vectors and diffusion tensor are given by (using those defined in (46)) _M_ ~~G~~ <sup>�</sup> �� _K_ <sup>_=_</sup> <sup>_M_</sup> <u>���</u> _K_ <sup>_+_</sup> _|K_ <sup><u>1</u></sup> _|_ ��� _K_ <sup>_=_</sup> <sup>_B_</sup> ~~1~~ _α_ ��� _K_ _|K_ <sup><u>1</u></sup> _|_ <sup>_aε_</sup> _K_ ��� _K_ <sup>_+_</sup> _|K_ <sup><u>1</u></sup> _K_ _K_ ~~1~~,G _α_ , _K_ _|K_ <sup><u>1</u></sup> _|_ <sup>_aε_</sup> _K_ _|K_ <sup><u>1</u></sup> _|_ <sup>_aε_</sup> �Λ <sup>_ε_</sup> _K_ <sup>,0,</sup> _K_ <sup>_ε_</sup> <sup>,0</sup> _K_ <sup>,</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,0,</sup> <sup>_•_</sup> �Λ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>,</sup> <sup>_χε_</sup> _K_ <sup>,0,</sup> <sup>_•_</sup> , _B_ ~~2~~ ��� _K_ <sup>_=_</sup> <sup>_B_</sup> _β_ _K_ ��� _K_ <sup>_+_</sup> _|K_ <sup><u>1</u></sup> _K_ _|K_ <sup><u>1</u></sup> _|_ <sup>_aε_</sup> ��� _K_ <sup>_+_</sup> _|K_ <sup><u>1</u></sup> _|_ ~~G~~ _β_, _α_ ��� _K_ <sup>_=_</sup> <sup>_Aβ_</sup> <sup>,</sup> <sup>_α_</sup> _K_ (51) _K_ _K_ �Λ _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _B_ ~~2~~,G _β_ �Λ <sup>_ε_</sup> _K_ <sup>,0</sup> <sup>_ε_</sup> <sup>,0</sup> _K_ <sup>,</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,</sup> <sup>_•_</sup> <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>,</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> <sup>,</sup> <sup>_•_</sup> , _A_ . Again, these quantities are all piecewise constant. The above computations lead to the introduction of the effective bilinear form _<u>a</u>_ <sup>~~G~~</sup> _=_ _<u>a</u>_ <sup>~~G~~</sup> _K_ with _K ∈_ _TH_ ~~2~~,G _·∇v_ - _+ M_ ~~G~~ _u v_ . (52) ~~1~~,G _·∇u_ - _+_ _u_ <u>�</u> _B_ _<u>a</u>_ <sup>~~G~~</sup> _K_ <sup>(</sup> <sup>_u_</sup> <sup>,</sup> <sup>_v_</sup> <sup>)</sup> <sup>_=_</sup> _K_ G _∇u + v_ _∇v · A_ <u>�</u> _B_ We formulate the following effective variational problem: Find _uH_ _∈_ _VH_,0 such that _K ∈_ _TH_ _<u>a</u>_ <sup>~~G~~</sup> _K_ <sup>(</sup> <sup>_uH_</sup> <sup>,</sup> <sup>_v_</sup> <sup>_H_</sup> <sup>)</sup> <sup>_= F_</sup> <sup>(</sup> <sup>_v_</sup> <sup>_H_</sup> <sup>)</sup> for all _v_ _H_ _∈_ _VH_,0. (53) <sup>P1,G</sup> _=_ _<u>a</u>_ <sup>~~G~~</sup> ( _φ_ <sup>P1</sup> _j_, _i_ _i_ The associated linear system has coefficients A <sup>P1,G</sup> _j_, _i_ <sup>P1</sup> _i_ <sup>,</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> The associated linear system has coefficients A <sup>P1,G</sup> _=_ _<u>a</u>_ <sup>~~G~~</sup> ( _φ_ <sup>P1</sup> We have the following _j_, _i_ _i_ <sup>,</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>).</sup> analogue of Lemma 36, which generalizes Lemma 2 to the G-MsFEM in the general framework. Lemma 37. _The matrices_ A <sup>_ε_</sup> <sup>,G</sup> _and_ A <sup>P1,G</sup> _are identical if the integrals in_ (52) _are evaluated at the_ _centroid of each mesh element K_ _in the computation of_ A <sup>P1,G</sup> _._ Contrary to the matrices, the right-hand sides of the effective problem (53) and the Galerkin MsFEM (40) are not equal in general. We apply step 2 formulated at the beginning of this section: the right-hand side of the G-MsFEM is approximated by the right-hand side of the effective problem to obtain an approximate, but non-intrusive, MsFEM. The non-intrusive G-MsFEM becomes: _j_ _= F_ - _φ_ <sup>P1</sup> _j_ for all 1 _≤_ _j_ _≤_ _N_ 0. (54) Find _u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_,0 <sup>such that</sup> - _u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_φε_</sup> _j_ _aK_ <sup>_ε_</sup> _K ∈TH_ This problem is no longer a Galerkin approximation of (1), because different test spaces are used for the bilinear and for the linear form. In view of Lemma 37, the non-intrusive MsFEM can equivalently be formulated as compute _uH_ _∈_ _VH_,0 solution to (53) and compute _u_ <sup>_ε_</sup> _H_ <sup>from</sup> <sup>_uH_</sup> <sup>by (49),</sup> provided all integrals in (52) are evaluated at the centroid for the construction of the matrix of the linear system in (53). The latter formulation of the non-intrusive MsFEM immediately suggests how to effectively implement the non-intrusive MsFEM in a non-intrusive way similar to Algorithm 2. For completeness, we provide the algorithm for the non-intrusive G-MsFEM in Algorithm 3. The discussion surrounding Algorithm 2 regarding the advantages for the implementation of this non-intrusive MsFEM approach also applies here. Let us now comment on the well-posedness of the MsFEMs for the general framework introduced above. We recall that the hypotheses of the general framework without oversampling, or with _DOF_ -continuous oversampling, provide well-posedness of the G-MsFEM (40) by Lemma 34. Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 165 Algorithm 3 Non-intrusive G-MsFEM for the general framework 1: Let _TH_ be the mesh used by the legacy code, let _• ∈_ {e,c} be the chosen oversampling variant 2: for all _K_ _∈_ _TH_ do 3: for 0 _≤_ _α ≤_ _d_ do 4: Solve for the applicable _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> from Definition 17 or 22 5: end for 6: Compute the effective tensors defined in (51) 7: end for 8: Use the legacy code to construct the matrix A <sup>P1</sup> by evaluating (52) at the centroid of each mesh element and to solve for _uH_ defined by (53) 9: Save - _uH_ ( _xc_, _K_ )� _K ∈_ _TH_ <sup>and {(</sup> <sup>_∂αuH_</sup> <sup>)</sup> <sup>_|K_</sup> <sup>}</sup> <sup>_K ∈_</sup> <sup>_T_</sup> _H_ <sup>,1</sup> <sup>_≤_</sup> <sup>_α_</sup> <sup>_≤_</sup> <sup>_d_</sup> 10: Obtain the MsFEM approximation _u_ <sup>_ε_</sup> _H_ <sup>from (49)</sup> In this case, the non-intrusive approximation (54) is also well-posed, because the matrices associated to both MsFEM variants are the same. Regarding the PG-MsFEM (41), we can only establish well-posedness if the associated matrix coincides with the matrix of the corresponding Galerkin MsFEM. This is stated in the following lemma, which generalizes Lemma 5 to the general framework. Lemma 38. _Consider_ _a_ _G-MsFEM_ _as_ _defined_ _by_ _Definition_ _33_ _without_ _oversampling_ _and_ _sup-_ _pose that the sampling form_ _sK_ <sup>_ε_</sup> <sup>_equals the local bilinear form_</sup> <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>_._</sup> <sup>_Then the matrix associated to_</sup> _this_ _G-MsFEM_ _coincides_ _with_ _the_ _matrix_ _associated_ _to_ _the_ _corresponding_ _PG-MsFEM_ _of_ _Defini-_ _tion 35. Consequently, the non-intrusive Galerkin MsFEM_ (54) _coincides with the Petrov–Galerkin_ _MsFEM_ (41) _and in particular, the Petrov–Galerkin MsFEM is well-posed._ Proof. To prove the lemma, we show that the matrices corresponding to the linear problems defined in (54) and (41) are equal. Using that _sK_ <sup>_ε_</sup> <sup>_= a_</sup> _K_ <sup>_ε_</sup> <sup>, we have for all 1</sup> <sup>_≤_</sup> <sup>_i_</sup> <sup>,</sup> <sup>_j_</sup> <sup>_≤_</sup> <sup>_N_</sup> <sup>0,</sup> _sK_ <sup>_ε_</sup> <sup>_equals the local bilinear form_</sup> <sup>_a_</sup> _K_ <sup>_ε_</sup> _K_ <sup>_ε_</sup> <sup>_= a_</sup> _K_ <sup>_ε_</sup> _K_ <sup>_ε_</sup> <sup>, we have for all 1</sup> <sup>_≤_</sup> <sup>_i_</sup> <sup>,</sup> <sup>_j_</sup> <sup>_≤_</sup> <sup>_N_</sup> <sup>0,</sup> _K ∈_ _TH_ <sup>_ε_</sup> _j_ <sup>_−_</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>_ε_</sup> _j_ <sup>_−_</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> _=_ 0. (55) _=_ A <sup>_ε_</sup> _j_ <sup>,</sup>, <sup>G</sup> _i_ <sup>_ε_</sup> _j_, _i_ <sup>_=_</sup> _j_ _j_ - _φ_ <sup>_ε_</sup> _i_ <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_φε_</sup> _j_ - _φ_ <sup>_ε_</sup> _i_ <sup>_ε_</sup> _i_ <sup>,</sup> <sup>_φε_</sup> _j_ <sup>_ε_</sup> <sup>,G</sup> _j_, _i_ <sup>_−_</sup> <sup>A</sup> <sup>_ε_</sup> _j_ _K ∈_ _TH_ _sK_ <sup>_ε_</sup> _aK_ <sup>_ε_</sup> The last equality stems from the fact that the multiscale basis functions satisfy Γ( _K_, _φ_ <sup>_ε_</sup> _i_ The last equality stems from the fact that the multiscale basis functions satisfy Γ( _K_, _φ_ <sup>_ε_</sup> _i_ <sup>)</sup> <sup>_=_</sup> Γ( _K_, _φ_ <sup>P</sup> _i_ <sup>1</sup> <sup>) for all</sup> <sup>_K_</sup> <sup>,</sup> <sup>so that</sup> <sup>_φε_</sup> _j_ <sup>_−_</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> _∈_ _VK_,0 (see (38) with _SK_ _= K_ and recall Definition 16 for the sampling test space _VK_ <sup>_ε_</sup>,0 <sup>), and the variational problem in (38) (with</sup> <sup>_SK_</sup> <sup>_= K_</sup> <sup>) shows that the above</sup> quantity vanishes. <sup>_ε_</sup> _j_ <sup>_−_</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> <sup>P</sup> _i_ <sup>1</sup> <sup>) for all</sup> <sup>_K_</sup> <sup>,</sup> <sup>so that</sup> <sup>_φε_</sup> _j_ 5.3. _Further extensions of the non-intrusive MsFEM_ We sketch some other FEM settings to which we have applied the above strategy to develop nonintrusive MsFEM approaches. For more details, we refer to [22]. _Stabilized finite element formulations._ In the context of advection-diffusion problems, stabilized finite element formulations add mesh-dependent terms to a discrete variational formulation (such as (40)) to remove numerical instabilities, for example caused by sharp boundary layers of the exact solution. See [10] for such a variant of the MsFEM and see [15,42,43] for the stabilization of single-scale problems. The expansion (43) can also be inserted in these additional terms to find a non-intrusive implementation of the associated MsFEM. _Petrov–Galerkin formulations._ Other test spaces than the P1 space _VH_,0 can be considered in Petrov-Galerkin formulations. An example would be to use multiscale test functions that locally solve the adjoint problem rather than the direct problem, introducing yet another bilinear form 166 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski than _sK_ <sup>_ε_</sup> <sup>in</sup> <sup>(38)</sup> <sup>or</sup> <sup>(39).</sup> <sup>See</sup> <sup>e.g.</sup> <sup>[44].</sup> <sup>An</sup> <sup>expansion</sup> <sup>of</sup> <sup>the</sup> <sup>kind</sup> <sup>(43)</sup> <sup>can</sup> <sup>still</sup> <sup>be</sup> <sup>found</sup> <sup>for</sup> <sup>such</sup> test functions, with a suitably adapted definition of the numerical correctors. This way, a nonintrusive formulation can be found using the techniques of this work. _Non-homogeneous_ _Dirichlet_ _conditions._ Suppose that a legacy FEM code can provide a solution to an effective problem such as (48) posed on the space _VH_,0 and complemented with non-homogeneous Dirichlet conditions for _uH_ on _∂_ Ω. This solution can directly be used to construct a multiscale approximation _u_ <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>from (49).</sup> <sup>The translation of the Dirichlet condition</sup> to the MsFEM approximation is as follows: if _DOF_ -continuous oversampling is applied, the function _u_ <sup>_ε_</sup> _H_ <sup>satisfies [Γ(</sup> <sup>_K_</sup> <sup>,</sup> <sup>_uε_</sup> _H_ <sup>)]</sup> <sup>_j_</sup> <sup>_=_</sup> <sup>[Γ(</sup> <sup>_K_</sup> <sup>,</sup> <sup>_uH_</sup> <sup>)]</sup> <sup>_j_</sup> <sup>for all degrees of freedom associated to the boundary.</sup> Here, [Γ( _K_, _uH_ )] _j_ is determined by the legacy code. When _DOF_ -extended oversampling is used, the degrees of freedom associated to the boundary are equal to the sum of [Γ( _K_, _uH_ )] _j_ and a perturbation due to the fact that the degrees of freedom of the numerical correctors do not vanish. _Neumann_ _conditions._ To apply Neumann conditions on _∂_ Ω, one solves a Galerkin approximation of the variational formulation in the space _VH_ <sup>_ε_</sup> <sup>.</sup> <sup>The</sup> <sup>suitable</sup> <sup>adaptation</sup> <sup>of</sup> <sup>(40)</sup> <sup>can</sup> <sup>be</sup> approximated by a non-intrusive Galerkin MsFEM following the same methodology as above. The effective P1 approximation that is obtained corresponds to the resolution of an effective PDE with Neumann conditions, for which a legacy code can be used. In the case of the diffusion problem (1), the Neumann boundary condition in the effective problem is imposed on the effective flux⃗ _n · A∇uH_, where _A_ is defined in (12). <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>satisfies [Γ(</sup> <sup>_K_</sup> <sup>,</sup> <sup>_uε_</sup> _H_ _Neumann_ _conditions._ To apply Neumann conditions on _∂_ Ω, one solves a Galerkin approximation of the variational formulation in the space _VH_ <sup>_ε_</sup> <sup>.</sup> <sup>The</sup> <sup>suitable</sup> <sup>adaptation</sup> <sup>of</sup> <sup>(40)</sup> <sup>can</sup> <sup>be</sup> _Parabolic_ _equations._ When a parabolic equation is discretized in time, problems of the form (27) are typically obtained for each time step, but with a right-hand side that depends on the solution of the previous time step. This term belongs to the space _VH_ <sup>_ε_</sup> <sup>,</sup> <sup>so</sup> <sup>it</sup> <sup>varies</sup> <sup>on</sup> the microscale and cannot be integrated numerically by the legacy code that operates on the coarse mesh. The non-intrusive strategy of the foregoing sections cannot be applied directly to find a non-intrusive MsFEM. In the vein of our non-intrusive approach, one could introduce an additional approximation by replacing the multiscale solution of the previous time step by its underlying P1 representation in the P1 space _VH_ . Studying the effect of this approximation is beyond the scope of the present work. 5.4. _Intrusiveness of other multiscale methods_ Some work on the formulation of effective P1 problems in multiscale methods, and the related question of non-intrusive approaches, can be found in the literature. We discuss here the case of the HMM and the LOD method in the context of numerical homogenization, and provide some additional references to other fields at the end of the section. First, the HMM is less intrusive than the original MsFEM, because its main objective is to approximate _u_ <sup>_ε_</sup> on the coarse scale. The HMM directly proposes to solve a P1 problem on the coarse scale, where effective coefficients of the P1 problem are defined in terms of the solutions to local problems. This workflow corresponds to our non-intrusive MsFEM approach, and when the local problems of the HMM coincide with the computation of the numerical correctors introduced in this work, the HMM and the MsFEM for the pure diffusion problem are identical. For more general problems, there is an important difference between the two methods. In the MsFEM, the form of the effective equation and the definition of the effective coefficients follow directly from the choice of basis functions, and thus from the choice of local problems. For the HMM, the local problems and the effective equation are formulated independently, and the link between the two is only justified heuristically, drawing inspiration from homogenization theory. The LOD method aims at approximating _u_ <sup>_ε_</sup> at both the coarse and the microscale by the use of multiscale basis functions, like the MsFEM. It is shown in [45] that a Petrov-Galerkin LOD method (see also [46]) can, with some additional approximations, be recast as the P1 discretization of an Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 167 appropriate coarse-scale problem. This opens the way to non-intrusive implementations in the spirit of the present article. The LOD method and the MsFEM notably differ in the fact that the LOD basis functions are defined on a patch around the vertices of the mesh that should generally be taken larger than the support of the associated P1 functions. In contrast, the MsFEM uses fully localized basis functions (even though they may have been computed using oversampling patches), each of which has the same support as the corresponding P1 basis functions. The question of non-intrusive implementations of multiscale algorithms is an interesting and relevant question in many more fields of scientific computing than we can discuss here. Beyond the field of finite element methods, we mention the multiscale finite volume method [47,48], in which a non-intrusive coupling between the local and global computations is natural, since the local computations lead to transmissibilities that can be used in a separate, global finite volume simulator. Other than numerical homogenization methods, there are mixed finite element methods for multiscale modelling [49–51] and domain decomposition techniques (such as the generalized FEM, patches of finite elements, numerical zoom; see [52–54]), for which nonintrusive approaches can e.g. be found in [55,56]. Finally, we would like to mention the reduced basis method for the efficient resolution of parameterized PDEs. Non-intrusive adaptations of this method (both for finite element and finite volume schemes) have been proposed and analyzed e.g. in [57–59]. 6. Comparison of the classical and non-intrusive MsFEM for diffusion problems We study in this section a particular setting within the general MsFEM framework, namely that of MsFEMs for diffusion problems. We set in this section _aK_ <sup>_ε_</sup> <sup>_= a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> defined in Example 8, and we choose the sampling form _sK_ <sup>_ε_</sup> <sup>_= a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> . _K_ <sup>_ε_</sup> <sup>_= a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> . _K_ <sup>_ε_</sup> <sup>_= a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> . 6.1. _The general framework for diffusion problems_ For the convenience of the reader, we first give an explicit description of the simplifications of the general framework in the diffusion setting. In Definitions 17 and 22 for the numerical correctors, Equation (31) reduces to - _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup>, _w_ _SK_ - _x_ <sup>_α_</sup>, _w_ _aK_ <sup>_ε_</sup> <sup>,diff</sup> _aK_ <sup>_ε_</sup> <sup>,diff</sup> - _= −aK_ <sup>_ε_</sup> <sup>,diff</sup> - _= −aK_ <sup>_ε_</sup> <sup>,diff</sup> -, (56) for all _w ∈_ _VK_,0 (where _VK_,0 is the sampling test space for either the MsFEM-lin or the MsFEM-CR; see Examples 18 and 19) when 1 _≤_ _α ≤_ _d_, whereas _χ_ <sup>_ε_</sup> <sup>,0,</sup> <sup>_•_</sup> _=_ 0. (The notation _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> will be used in <sup>_ε_</sup> _S_ <sup>,0,</sup> _K_ <sup>_•_</sup> _=_ 0. (The notation _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> the absence of oversampling, see Remark 23.) This means that Λ <sup>_ε_</sup> _K_ <sup>,0</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> will be used in the absence of oversampling, see Remark 23.) This means that Λ <sup>_ε_</sup> _K_ <sup>,0</sup> _=_ 1 in (43). Consequently, regarding the formulation of the effective P1 problem, only the effective diffusion coefficient does not vanish in (46) and (51). Its definition in (51) is identical to the formula in (12) for the applicable choice of the numerical correctors. The definition of the multiscale basis functions by (36) reduces to (10) (again upon replacing the numerical correctors _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> by the relevant ones for the MsFEM under consideration). Hence, we can associate a multiscale counterpart in _VH_ <sup>_ε_</sup> <sup>to any</sup> <sup>_v_</sup> <sup>_H_</sup> <sup>_∈_</sup> <sup>_VH_</sup> <sup>, given by</sup> _H_ <sup>_ε_</sup> <sup>to any</sup> <sup>_v_</sup> <sup>_H_</sup> <sup>_∈_</sup> <sup>_VH_</sup> <sup>, given by</sup> _v_ _H_ <sup>_ε_</sup> <sup>_= v_</sup> <sup>_H +_</sup> _v_ _H_ <sup>_ε_</sup> _K ∈_ _TH_ - _d_ _α=_ 1 ( _∂αv_ _H_ ) _|K χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> . (57) ( _∂αv_ _H_ ) _|K χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_•_</sup> The non-intrusive MsFEM (54) becomes _j_ - _φ_ <sup>P1</sup> _j_ - _φ_ <sup>P1</sup> for all 1 _≤_ _j_ _≤_ _N_ 0. (58) - _u_ <sup>_ε_</sup> _H_ Find _u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_,0 <sup>such that</sup> _aK_ <sup>_ε_</sup> <sup>,diff</sup> <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_φε_</sup> _j_ _K ∈_ _TH_ _= F_ Lemma 38 now amounts to the following. 168 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski Lemma 39. _Let “MsFEM” refer to the MsFEM-lin or the MsFEM-CR, both without oversampling._ _The non-intrusive Galerkin MsFEM_ (58) _coincides with the following Petrov-Galerkin MsFEM:_ _j_ - _φ_ <sup>P1</sup> _j_ - _φ_ <sup>P1</sup> _for all_ 1 _≤_ _j_ _≤_ _N_ 0, (59) - _u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_φ_</sup> <sup>P</sup> _j_ <sup>1</sup> _Find u_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_,0 <sup>_such that_</sup> _aK_ <sup>_ε_</sup> <sup>,diff</sup> _K ∈_ _TH_ _= F_ We will specify for all results in this section to which specific MsFEMs they apply among the MsFEM-lin and the MsFEM-CR, with or without oversampling. Lemmas 40, 42 and 48 are generalizations of results in [12], where the MsFEM-lin without oversampling is considered. 6.2. _Convergence results_ We estimate here the difference between the solutions to the (intrusive) Galerkin approximation (40) and the non-intrusive MsFEM (58), which coincides <u>with</u> the Petrov-Galerkin MsFEM (59). We first show coercivity of the effective diffusion tensor _A_ . Lemma 40. _Consider the MsFEM-lin or the MsFEM-CR, without oversampling, or the MsFEM-CR_ _with DOF-continuous oversampling._ _The effective tensor_ _A_ _defined by_ (12) _with the appropriate_ _numerical correctors satisfies_ _∀_ _ξ ∈_ R <sup>_d_</sup>, _m|ξ|_ <sup>2</sup> _≤_ _ξ_ _· A_ _ξ_ . _Here, m is the same coercivity constant as in_ (2) _._ Proof. Let _ξ =_ ( _ξ_ 1, ..., _ξd_ ) _∈_ R <sup>_d_</sup>, and let _K_ be any simplex of the mesh _TH_ . We have - _ξ_ _+∇χ_ <sup>_ξ_</sup> <sup>�</sup> _· A_ <sup>_ε_</sup> <sup>�</sup> _ξ_ _+∇χ_ <sup>_ξ_</sup> <sup>�</sup> - _d_ _α_, _β=_ 1 -, _ξβ_ _K_ , - _x_ <sup>_β_</sup> _+_ _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> - _x_ <sup>_β_</sup> _+_ _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> _ξα_ - _x_ <sup>_α_</sup> _+_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> - _x_ <sup>_α_</sup> _+_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> �� _=_ _|K |_ _ξ_ _·_ _A_ ��� _K_ <sup>_ξ =_</sup> _aK_ <sup>_ε_</sup> <sup>,diff</sup> denoting by _χ_ <sup>_ξ_</sup> the function _χ_ <sup>_ξ_</sup> _=_ <sup>�</sup> _α_ <sup>_d_</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>. Using (2), we obtain</sup> _α_ <sup>_d_</sup> _=_ 1 <sup>_ξαχε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> _K_ _K_ _|K |_ _ξ_ _·_ _A_ ��� _K_ <sup>_ξ ≥_</sup> <sup>_m_</sup> _ξ_ _·∇χ_ <sup>_ξ_</sup> . ��� _ξ_ _+∇χξ_ ���2 _≥_ _m |K ||ξ|_ <sup>2</sup> _+_ 2 _m_ Using an integration by parts, we see that - _K_ <sup>_ξ · ∇χξ_</sup> <sup>_=_</sup> - _∂K_ <sup>_χξ n · ξ_</sup> <sup>,</sup> <sup>where</sup> <sup>_n_</sup> <sup>is</sup> <sup>the</sup> <sup>unit</sup> <sup>outward</sup> normal vector on _∂K_ . In the case of the MsFEM-lin, the function _χ_ <sup>_ξ_</sup> vanishes on _∂K_ . In the case of the MsFEM-CR with _DOF_ -continuous oversampling, or without oversampling, the function _χ_ <sup>_ξ_</sup> Using an integration by parts, we see that _K_ <sup>_ξ · ∇χξ_</sup> <sup>_=_</sup> has average zero on each face of _K_ . Since the factor _n · ξ_ is constant on each face, the integral again vanishes. In conclusion, we have - _K_ <sup>_ξ_</sup> <sup>_·∇χξ =_</sup> <sup>0.</sup> again vanishes. In conclusion, we have - _K_ <sup>_ξ_</sup> <sup>_·∇χξ =_</sup> <sup>0.</sup> We thus <u>obtain</u> the inequality _ξ · A|K ξ_ _≥_ _m|ξ|_ <sup>2</sup> . Since _K_ _∈_ _TH_ is arbitrary here, this shows coercivity of _A_ and completes the proof. Coercivity of the effective tensor _A_ implies coercivity of the bilinear form _<u>a</u>_ <sup>~~d~~</sup> <sup>iff</sup> on _H_ 0 <sup>1(Ω).</sup> By an application of the Lax-Milgram Theorem, we conclude that the (continuous) effective problem (14) is well-posed for the MsFEM-lin and the MsFEM-CR without oversampling, and for the MsFEM-CR with _DOF_ -continuous oversampling. Remark 41. The proof of the above lemma does not extend to the MsFEM-lin with oversampling, because there is no global information about _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> on the faces of _K_ . Coercivity of the effective tensor _A_ implies coercivity of the bilinear form _<u>a</u>_ <sup>~~d~~</sup> <sup>iff</sup> on _H_ 0 <sup>1</sup> Remark 41. The proof of the above lemma does not extend to the MsFEM-lin with oversampling, because there is no global information about _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> on the faces of _K_ . The following lemma provides a variational characterization of the bijection (57). Lemma 42. _Consider the MsFEM-lin or the MsFEM-CR, both without oversampling. Let v_ _H_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> <sup>_∈_</sup> <sup>_V ε_</sup> _H_ Lemma 42. _Consider the MsFEM-lin or the MsFEM-CR, both without oversampling. Let v_ _H_ <sup>_ε_</sup> <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_._</sup> _The unique v_ _H_ _∈_ _VH_ _for which_ (57) _holds, is the unique solution in VH_ _to the problem_ _∀_ _w_ _H_ _∈_ _VH_, _<u>a</u>_ <sup>~~d~~</sup> <sup>iff</sup> ( _v_ _H_, _w_ _H_ ) _= a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _v_ _H_ <sup>_ε_</sup> <sup>,</sup> <sup>_w_</sup> <sup>_H_</sup> �. (60) _In addition, we have, with the constants m and M_ _from_ (2) _, the estimate_ _∥∇v_ _H_ _∥L_ 2( _TH_ ) _≤_ <sup>_<u>M</u>_</sup> _m_ �� _∇v_ _Hε_ �� _L_ <sup>2</sup> ( _TH_ ) <sup>.</sup> Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 169 Proof. Let _v_ _H_ _∈_ _VH_ be the unique element of _VH_ such that _v_ _H_ <sup>_ε_</sup> <sup>and</sup> <sup>_v_</sup> <sup>_H_</sup> <sup>satisfy</sup> <sup>(57).</sup> <sup>Take</sup> <sup>any</sup> _w_ _H_ _∈_ _VH_ . Using that _∇v_ _H_ and _∇w_ _H_ are piecewise constant, we compute <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_xβ_</sup> <sup>�</sup> _a_ <sup>_ε_</sup> <sup>,diff �</sup> _v_ _H_ <sup>_ε_</sup> <sup>,</sup> <sup>_w_</sup> <sup>_H_</sup> - _d_ _α_, _β=_ 1 - _=_ _K ∈_ _TH_ - _∂βw_ _H_ ��� _K_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> - _x_ <sup>_α_</sup> _+_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_xβ_</sup> <sup>�</sup> ( _∂αv_ _H_ ) _|K_ . For the MsFEM without oversampling, the numerical correctors belong to the sampling test space _VK_,0. We can thus use (56) to obtain _K_ . - _x_ <sup>_α_</sup> _+_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_xβ +_</sup> <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_β_</sup> _∀_ 1 _≤_ _α_, _β ≤_ _d_, _aK_ <sup>_ε_</sup> <sup>,diff</sup> - _x_ <sup>_α_</sup> _+_ _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_xβ_</sup> <sup>�</sup> _= aK_ <sup>_ε_</sup> <sup>,diff</sup> Using the definitions of _A_ in (12) and of _<u>a</u>_ <sup>~~d~~</sup> <sup>iff</sup> in (16) (we recall that these expressions hold true here upon replacing the numerical correctors by those under consideration), we conclude that _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _v_ _H_ <sup>_ε_</sup> <sup>,</sup> <sup>_w_</sup> <sup>_H_</sup> _v_ _H_ <sup>_ε_</sup> - _d_ _α_, _β=_ 1 _K_ _∂βw_ _H_ _Aβ_, _α ∂αv_ _H_ _= a_ <sup>~~d~~</sup> <sup>iff</sup> ( _v_ _H_, _w_ _H_ ). - _=_ _K ∈_ _TH_ It follows that _v_ _H_ satisfies (60). In addition, in view of the coercivity of _A_ established in Lemma 40 and by the Lax-Milgram Theorem, problem (60) uniquely characterizes _v_ _H_ . The estimate on _v_ _H_ follows by testing the characterization (60) against _w_ _H_ _= v_ _H_ . This yields _m ∥∇v_ _H_ _∥_ <sup>2</sup> _L_ <sup>2</sup> ( _TH_ ) <sup>_≤_</sup> <sup>_<u>a</u>_</sup> <sup>~~d~~</sup> <sup>iff</sup> <sup>(</sup> <sup>_v_</sup> <sup>_H_</sup> <sup>,</sup> <sup>_v_</sup> <sup>_H_</sup> <sup>)</sup> <sup>_= aε_</sup> <sup>,diff</sup> <sup>�</sup> <sup>2</sup> _L_ <sup>2</sup> ( _TH_ ) <sup>_≤_</sup> <sup>_<u>a</u>_</sup> <sup>~~d~~</sup> <sup>iff</sup> <sup>(</sup> <sup>_v_</sup> <sup>_H_</sup> <sup>,</sup> <sup>_v_</sup> <sup>_H_</sup> <sup>)</sup> <sup>_= aε_</sup> <sup>,diff</sup> <sup>�</sup> _v_ _H_ <sup>_ε_</sup> <sup>,</sup> <sup>_v_</sup> <sup>_H_</sup> _v_ _H_ <sup>_ε_</sup> - _=_ _K ∈_ _TH_ _K_ _∇v_ _H · A_ <sup>_ε_</sup> _∇v_ _H_ <sup>_ε_</sup> _≤_ _M_ _K ∈_ _TH_ _∥∇v_ _H_ _∥L_ 2( _K_ ) �� _∇v_ _Hε_ �� _L_ <sup>2</sup> ( _K_ ) <sup>.</sup> The first inequality follows from coercivity of _A_ and the second inequality from the upper bound on _A_ <sup>_ε_</sup> in (2) and the Cauchy-Schwarz inequality. With a discrete Cauchy-Schwarz inequality, we obtain �� _L_ <sup>2</sup> ( _K_ ) <sup>_≤_</sup> <sup>_M_</sup> <sup>_∥∇v_</sup> <sup>_H_</sup> <sup>_∥L_</sup> <sup>2(</sup> <sup>_T_</sup> _H_ <sup>)</sup> _m ∥∇v_ _H_ _∥_ <sup>2</sup> _L_ <sup>2</sup> ( _TH_ ) <sup>_≤_</sup> <sup>_M_</sup> _K ∈_ _TH_ _∥∇v_ _H_ _∥L_ 2( _K_ ) �� _∇v_ _Hε_ �� _∇v_ _Hε_ �� _L_ <sup>2</sup> ( _TH_ ) <sup>.</sup> The proof of Lemma 42 is completed upon simplifying by _∥∇v_ _H_ _∥L_ 2( _TH_ ). For the remainder of this section, we consider MsFEMs without oversampling. Let _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> For the remainder of this section, we consider MsFEMs without oversampling. Let _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> denote the solution to the MsFEM approximation (40) (we use the superscript G to stress that this is a _Galerkin_ approximation) and let _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> denote the solution to the non-intrusive MsFEM (58) (which is equivalent to the _Petrov-Galerkin_ MsFEM (59), since we do not apply the oversampling technique). We first study the error _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> when _ε_ _→_ 0. In this case, we do not need a rate of convergence in _H_ and we shall relax the condition _f_ _∈_ _L_ <sup>2</sup> (Ω) to the condition _f_ _∈_ _H_ <sup>_−_</sup> <sup>1</sup> (Ω). Then the definition of the linear form _F_ in (4) has to be adapted. Given _f_ _∈_ _H_ <sup>_−_</sup> <sup>1</sup> (Ω), there exist _f_ 0, _f_ 1, ..., _fd_ _∈_ _L_ <sup>2</sup> (Ω) such that We first study the error _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> �� _K_ _F_ ( _v_ ) _=_ _K ∈_ _TH_ _f_ 0 _v +_ , - _d_ _β=_ 1 _K_ _fβ ∂βv_ which is in fact well-defined for any _v_ _∈_ _H_ <sup>1</sup> ( _TH_ ) and thus in particular on _VH_, the underlying affine space for the MsFEM, and the multiscale space _VH_ <sup>_ε_</sup> <sup>.</sup> We consider in Lemma 43 a sequence of diffusion tensors _A_ <sup>_ε_</sup> that _H_ -converges to a constant diffusion tensor. This means that _u_ <sup>_ε_</sup> converges weakly in _H_ <sup>1</sup> (Ω) as _ε →_ 0 towards a function _u_ <sup>⋆</sup> _∈_ _H_ 0 <sup>1(Ω), solution to the homogenized problem (25), and</sup> <sup>_Aε∇uε_</sup> <sup>�</sup> <sup>_A_</sup> <sup>⋆</sup> <sup>_∇u_</sup> <sup>⋆</sup> <sup>weakly in</sup> <sup>_L_</sup> <sup>2(Ω).</sup> 170 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski Lemma 43. _Consider_ _the_ _MsFEM-lin_ _or_ _the_ _MsFEM-CR,_ _both_ _without_ _oversampling._ _Suppose_ _that_ ( _A_ <sup>_ε_</sup> ) _ε>_ 0 _is a sequence of matrices satisfying_ (2) _that H-converges to a constant matrix._ _Let_ _f_ _∈_ _H_ <sup>_−_</sup> <sup>1</sup> (Ω) _. Then_ ��� _uεH_,G <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> ��� _H_ <sup>1</sup> ( _TH_ ) <sup>_→_</sup> <sup>0</sup> <sup>_as ε →_</sup> <sup>0.</sup> Remark 44. A rate of convergence can be obtained under some additional structural assumptions on _A_ <sup>_ε_</sup> ; see Lemma 50. We need a few auxiliary results to establish Lemma 43. The first result below concerns the convergence of the numerical correctors as _ε →_ 0. Lemma 45. _Suppose_ _that_ _A_ <sup>_ε_</sup> _H-converges_ _to_ _a_ _constant_ _homogenized_ _matrix_ _A_ <sup>⋆</sup> _._ _Consider_ _the_ _MsFEM-lin or the MsFEM-CR, both without oversampling. Then, for all K_ _∈_ _TH_ _and all_ 1 _≤_ _α ≤_ _d,_ _we have χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> - 0 _weakly in H_ <sup>1</sup> ( _K_ ) _as ε →_ 0 _._ _H_ ��� _H_ <sup>1</sup> ( _TH_ ) <sup>_→_</sup> <sup>0</sup> <sup>_as ε →_</sup> <sup>0.</sup> Proof. We introduce for each _α =_ 1, ..., _d_ the function _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _=_ _x_ <sup>_α_</sup> _+ χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ Proof. We introduce for each _α =_ 1, ..., _d_ the function _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _=_ _x_ <sup>_α_</sup> _+ χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>.</sup> <sup>Then</sup> <sup>(56)</sup> <sup>implies</sup> <sup>the</sup> equation _−_ div( _A_ <sup>_ε_</sup> _∇τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> ) _=_ 0 in _K_ . For the MsFEM-lin, the boundary conditions of the local problems for _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> (see (32) with _SK_ _=_ _K_ ) lead to _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _=_ _x_ <sup>_α_</sup> on _∂K_ . The boundary conditions ⃗ problems for _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> (see (32) with _SK_ _=_ _K_ ) lead to _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _=_ _x_ <sup>_α_</sup> on _∂K_ . The boundary conditions associated to the MsFEM-CR follow from (33) and are as follows: the flux⃗ _n · A_ <sup>_ε_</sup> _∇τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> is constant on each face of _K_ (but may depend on _ε_ ) and - _h_ <sup>_τε_</sup> <sup>,</sup> <sup>_α =_</sup> - _h_ <sup>_xα_</sup> <sup>for all faces</sup> <sup>_h_</sup> <sup>of</sup> <sup>_K_</sup> <sup>.</sup> ⃗ on each face of _K_ (but may depend on _ε_ ) and - _h_ <sup>_τε_</sup> <sup>,</sup> <sup>_α =_</sup> - _h_ <sup>_xα_</sup> <sup>for all faces</sup> <sup>_h_</sup> <sup>of</sup> <sup>_K_</sup> <sup>.</sup> It follows that the homogenized limit _τ_ <sup>⋆,</sup> <sup>_α_</sup> of _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> satisfies the equation _−_ div( _A_ <sup>⋆</sup> _∇τ_ <sup>⋆,</sup> <sup>_α_</sup> ) _=_ 0 in _K_ . For the MsFEM-lin, the boundary condition for the homogenized problem is _τ_ <sup>⋆,</sup> <sup>_α_</sup> _=_ _x_ <sup>_α_</sup> on _∂K_ . The boundary conditions associated to the MsFEM-CR are a constant flux⃗ _n · A_ <sup>⋆</sup> _∇τ_ <sup>_α_</sup> <sup>,⋆</sup> on each face of _K_ and - _h_ <sup>_τ_</sup> <sup>⋆,</sup> <sup>_α =_</sup> - _h_ <sup>_xα_</sup> <sup>for all faces</sup> <sup>_h_</sup> <sup>of</sup> <sup>_K_</sup> <sup>.</sup> ⃗ _h_ <sup>_τε_</sup> <sup>,</sup> <sup>_α =_</sup> ⃗ each face of _K_ and - _h_ <sup>_τ_</sup> <sup>⋆,</sup> <sup>_α =_</sup> - _h_ <sup>_xα_</sup> <sup>for all faces</sup> <sup>_h_</sup> <sup>of</sup> <sup>_K_</sup> <sup>.</sup> Both for the MsFEM-lin and the MsFEM-CR, the homogenized equation has a unique solution, which is easily seen to be _τ_ <sup>⋆,</sup> <sup>_α_</sup> _=_ _x_ <sup>_α_</sup>, because _A_ <sup>⋆</sup> is constant. Therefore, _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> - _x_ <sup>_α_</sup> weakly in _H_ <sup>1</sup> ( _K_ ). Subtracting the function _x_ <sup>_α_</sup>, we deduce the desired convergence. We will also use the following result, which is a straightforward generalization of the extended Poincaré inequality in [17, Lemma 3.31]. Lemma 46. _Let W_ _be the subspace of H_ <sup>1</sup> ( _TH_ ) _defined by_ ⃗ _h_ <sup>_τ_</sup> <sup>⋆,</sup> <sup>_α =_</sup> _h_ _�v�=_ 0 _for each face h of Th_, _h_ . _W_ _=_ _v ∈_ _H_ <sup>1</sup> ( _TH_ ) ���� _v =_ 0 _for each face h ⊂_ _∂_ Ω _There exists a constant C_ _>_ 0 _depending only on_ Ω _but not on H_ _such that_ _∀_ _v ∈_ _W_, _∥v∥L_ 2(Ω) _≤_ _C ∥∇v∥L_ 2( _TH_ ). Note that the multiscale space _VH_ <sup>_ε_</sup> Note that the multiscale space _VH_ <sup>_ε_</sup>,0 <sup>is contained in</sup> <sup>_W_</sup> <sup>for both the MsFEM-lin and the MsFEM-</sup> CR, without oversampling. Finally, we provide a number of useful bounds for the difference between _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> and _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> . Lemma 47. _Let_ _f_ _∈_ _H_ <sup>_−_</sup> <sup>1</sup> (Ω) _and consider the MsFEM-lin or the MsFEM-CR, both without over-_ _sampling._ _Let e_ <sup>_ε_</sup> _H_ <sup>_= uε_</sup> _H_ <sup>,G</sup> <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> _._ _There exists a unique e_ <sup>P</sup> _H_ <sup>1</sup> <sup>_∈_</sup> <sup>_VH_</sup> <sup>_and a linear combination of the_</sup> _numerical correctors, that we denote by e_ <sup>osc</sup> _H_ <sup>_, such that eε_</sup> _H_ <sup>_= e_</sup> <sup>P</sup> _H_ <sup>1</sup> <sup>_+_</sup> <sup>_e_</sup> <sup>osc</sup> _H_ <sup>_, and it holds, with the con-_</sup> _stants m_, _M_ _from_ (2) _and the constant C_ _from Lemma 46,_ <sup>_ε_</sup> _H_ <sup>,G</sup> and _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> . <sup>_ε_</sup> _H_ <sup>,PG</sup> . <sup>P</sup> _H_ <sup>1</sup> <sup>_+_</sup> <sup>_e_</sup> <sup>osc</sup> _H_ <sup>_ε_</sup> _H_ <sup>_= uε_</sup> _H_ <sup>,G</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> <sup>_ε_</sup> _H_ <sup>,PG</sup> _._ _There exists a unique e_ <sup>P</sup> _H_ <sup>1</sup> <sup>osc</sup> _H_ <sup>_, such that eε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>_= e_</sup> <sup>P</sup> _H_ <sup>1</sup> _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _e_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ _H_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _e_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ - _= F_ - _e_ <sup>osc</sup> _H_ -, (61) �� _∇e_ osc _H_ �� _L_ <sup>2</sup> ( _K_ ) <sup>_≤_</sup> <sup>_<u>M</u>_</sup> ��� _∇e_ P _H_ 1 ��� _L_ <sup>2</sup> ( _K_ ) _for all K_ _∈_ _TH_, (62) - _e_ <sup>osc</sup> _H_ _H_ - _= F_ �� _L_ <sup>2</sup> ( _K_ ) <sup>_≤_</sup> <sup>_<u>M</u>_</sup> _m_ �� _∇e_ osc _H_ �� _L_ <sup>2</sup> ( _K_ ) <sup>_≤_</sup> <sup>_<u>M</u>_</sup> _m_ ��� _∇e_ P _H_ 1 ��� _L_ <sup>2</sup> ( _K_ ) _for all K_ _∈_ _TH_, (62) ��� _∇e_ P _H_ 1 ��� _L_ <sup>2</sup> ( _TH_ ) <sup>_≤_</sup> <sup>_<u>M</u>_</sup> _m_ �� _∇eεH_ �� _L_ <sup>2</sup> ( _TH_ ) <sup>,</sup> (63) _m_ ��� _L_ <sup>2</sup> ( _TH_ ) <sup>_≤_</sup> <sup>_<u>M</u>_</sup> _m_ _m_ ��� _∇e_ P _H_ 1 �� _∇eεH_ �� _L_ <sup>2</sup> ( _TH_ ) <sup>,</sup> (63) �� _∇eεH_ �� _L_ <sup>2</sup> ( _TH_ ) <sup>_≤_</sup> 1 _+C_ <sup>2</sup> <sup>_<u>M</u>_</sup> _m_ <sup>32</sup> <sup>_∥F_</sup> <sup>_∥L_</sup> <sup>(</sup> <sup>_H_</sup> <sup>1(</sup> <sup>_TH_</sup> <sup>)),</sup> (64) _where ∥·∥L_ ( _H_ 1( _TH_ )) _is the operator norm on L_ ( _H_ <sup>1</sup> ( _TH_ )) _._ Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 171 Proof. Since the numerical approximations _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> Proof. Since the numerical approximations _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> and _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> both belong to the multiscale ap proximation space _VH_ <sup>_ε_</sup> <sup>, it follows that</sup> <sup>_eε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>, and we are in a position to use (57):</sup> <sup>there exists a</sup> unique _e_ <sup>P</sup> _H_ <sup>1</sup> <sup>_∈_</sup> <sup>_VH_</sup> <sup>such that</sup> _H_ <sup>_ε_</sup> <sup>, it follows that</sup> <sup>_eε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>_∈_</sup> <sup>_V ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,G</sup> and _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> <sup>P</sup> _H_ <sup>1</sup> <sup>_∈_</sup> <sup>_VH_</sup> <sup>such that</sup> ���� _K_ <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>.</sup> (65) _e_ <sup>_ε_</sup> _H_ <sup>_= e_</sup> <sup>P</sup> _H_ <sup>1</sup> <sup>osc</sup> _H_ <sup>,</sup> _e_ <sup>osc</sup> _H_ _e_ <sup>_ε_</sup> _H_ <sup>P</sup> _H_ <sup>1</sup> <sup>_+_</sup> <sup>_e_</sup> <sup>osc</sup> _H_ <sup>,</sup> <sup>osc</sup> _H_ _=_ - - _d_ _K ∈_ _TH_ _α=_ 1 - _∂αe_ <sup>P</sup> _H_ <sup>1</sup> Applying Lemma 42 to _v_ _H_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> <sup>_= eε_</sup> _H_ Applying Lemma 42 to _v_ _H_ <sup>_ε_</sup> <sup>_= eε_</sup> _H_ <sup>, we immediately obtain (63).</sup> Now recall that the numerical correctors are defined by (56). Using the fact that _∇e_ <sup>P1</sup> _H_ Now recall that the numerical correctors are defined by (56). Using the fact that _∇e_ <sup>P1</sup> _H_ <sup>is</sup> piecewise constant, this implies that _e_ <sup>osc</sup> _H_ satisfies the following variational problem in each _K_ _∈_ _TH_ : . _∀_ _w ∈_ _VK_,0, _aK_ <sup>_ε_</sup> <sup>,diff</sup> - _e_ <sup>P1</sup> _H_ <sup>P1</sup> _H_ <sup>,</sup> <sup>_w_</sup> - _e_ <sup>osc</sup> _H_ <sup>,</sup> <sup>_w_</sup> - _e_ <sup>osc</sup> _H_ <sup>,</sup> - _= −aK_ <sup>_ε_</sup> <sup>,diff</sup> - _= −aK_ <sup>_ε_</sup> <sup>,diff</sup> Without oversampling, it holds _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> _∈_ _VK_,0 for each 1 _≤_ _α ≤_ _d_, so _e_ <sup>osc</sup> _H_ Without oversampling, it holds _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> _∈_ _VK_,0 for each 1 _≤_ _α ≤_ _d_, so _e_ <sup>osc</sup> _H_ can be used as a test function here. With the bounds in (2), implying continuity and coercivity of _aK_ <sup>_ε_</sup> <sup>,diff</sup>, we obtain (62). here. With the bounds in (2), implying continuity and coercivity of _aK_ <sup>_ε_</sup> <sup>,diff</sup>, we obtain (62). Next using (65), we can write <sup>_ε_</sup> _H_ <sup>,G,</sup> <sup>_eε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,PG</sup>, _e_ <sup>P</sup> _H_ <sup>1</sup> <sup>_ε_</sup> _H_ <sup>,PG</sup>, _e_ <sup>osc</sup> _H_ _H_ - _−_ _a_ <sup>_ε_</sup> <sup>,diff �</sup> _H_ _H_ _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _e_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ _H_ - _= a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> . _u_ <sup>_ε_</sup> _H_ <sup>,G,</sup> _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> - _−_ _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup>, We deduce from (55) that _a_ <sup>_ε_</sup> <sup>,diff</sup> ( _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup>, <sup>osc</sup> _H_ <sup>)</sup> <sup>_=_</sup> <sup>0.</sup> <sup>Since</sup> <sup>_eε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,PG</sup>, _e_ <sup>osc</sup> _H_ We deduce from (55) that _a_ <sup>_ε_</sup> <sup>,diff</sup> ( _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup>, _e_ <sup>osc</sup> _H_ <sup>)</sup> <sup>_=_</sup> <sup>0.</sup> <sup>Since</sup> <sup>_eε_</sup> _H_ <sup>can be used as a test function in the</sup> discrete problem (40) and _e_ <sup>P1</sup> _H_ <sup>in (59), we have</sup> <sup>P1</sup> _H_ <sup>in (59), we have</sup> - _e_ <sup>osc</sup> _H_ -, <sup>_ε_</sup> _H_ <sup>,PG</sup>, _e_ <sup>P</sup> _H_ <sup>1</sup> _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> <sup>_ε_</sup> _H_ <sup>,G,</sup> <sup>_eε_</sup> _H_ _H_ _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> _H_ - _−_ _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> _= F_ which shows (61). It follows that �� _L_ <sup>2</sup> ( _TH_ ) <sup>,</sup> _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _e_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ _H_ - _≤∥F_ _∥L_ ( _H_ 1( _TH_ )) ~~�~~ 1 _+C_ <sup>2</sup> <sup>��</sup> _∇e_ <sup>osc</sup> _H_ �� _e_ osc _H_ �� _H_ <sup>1</sup> ( _TH_ ) <sup>_≤∥F_</sup> <sup>_∥L_</sup> ( <sup>_H_</sup> <sup>1(</sup> <sup>_T_</sup> _H_ <sup>)</sup> ) where _C_ is the Poincaré constant from Lemma 46. Now applying (62) and (63) on the right, and using coercivity of _a_ <sup>_ε_</sup> <sup>,diff</sup> on the left, we find �2 _∥F_ _∥L_ ( _H_ 1( _TH_ )) _m_ �� _∇eεH_ ��2 �1 _+C_ <sup>2</sup> - _<u>M</u>_ _L_ <sup>2</sup> ( _TH_ ) <sup>_≤_</sup> _m_ �� _∇eεH_ �� _L_ <sup>2</sup> ( _TH_ ) <sup>,</sup> from which we deduce (64). <sup>_ε_</sup> _H_ <sup>_=_</sup> <sup>_uε_</sup> _H_ <sup>,G</sup> Proof of Lemma 43. Let _e_ <sup>_ε_</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> Proof of Lemma 43. Let _e_ <sup>_ε_</sup> _H_ <sup>_=_</sup> <sup>_uε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> . We will use (65). By Lemma 47, we have (61). Combined with (2) and Lemma 46, this implies ���2 _H_ _H_ <sup>1</sup> ( _TH_ ) <sup>_≤_</sup> <sup>_aε_</sup> <sup>,diff</sup> <sup>�</sup> ���� _K_ <sup>_F_</sup> - _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ _H_ - _d_ _α=_ 1 - _∂αe_ <sup>P</sup> _H_ <sup>1</sup> - _e_ <sup>osc</sup> _H_ - _e_ <sup>osc</sup> _H_ - _=_ _K ∈_ _TH_ - . _C_ ��� _uεH_,G <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> _e_ <sup>_ε_</sup> _H_ - _= F_ By Lemma 45, we know that _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> By Lemma 45, we know that _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> - 0 as _ε_ _→_ 0 weakly in _H_ <sup>1</sup> ( _K_ ) for each _K_ and for each _α_ . Therefore, _F_ ( _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>)</sup> <sup>_→_</sup> <sup>0 as</sup> <sup>_ε →_</sup> <sup>0.</sup> <sup>In view of (63) and (64),</sup> <sup>every derivative (</sup> <sup>_∂αe_</sup> <sup>P</sup> _H_ <sup>1</sup> <sup>)</sup> <sup>_|K_</sup> <sup>is bounded</sup> independently of _ε_ . It follows that _F_ ( _e_ <sup>osc</sup> _H_ <sup>)</sup> <sup>_→_</sup> <sup>0</sup> <sup>as</sup> <sup>_ε →_</sup> <sup>0.</sup> <sup>The</sup> <sup>conclusion</sup> <sup>now</sup> <sup>follows</sup> <sup>from</sup> <sup>the</sup> above inequality. <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ <sup>)</sup> <sup>_→_</sup> <sup>0 as</sup> <sup>_ε →_</sup> <sup>0.</sup> <sup>In view of (63) and (64),</sup> <sup>every derivative (</sup> <sup>_∂αe_</sup> <sup>P</sup> _H_ <sup>1</sup> We next study the convergence of _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> We next study the convergence of _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> as _H →_ 0. To this end, we return to the original hypotheses of Section 2, i.e., _f_ _∈_ _L_ <sup>2</sup> (Ω). Note that for the next result, the additional convergence hypothesis of Lemma 43 for _A_ <sup>_ε_</sup> is not needed. Lemma 48. _Consider_ _the_ _MsFEM-lin_ _or_ _the_ _MsFEM-CR,_ _both_ _without_ _oversampling._ _Assume_ _that_ _f_ _∈_ _L_ <sup>2</sup> (Ω) _. Then there exists a constant C_ _independent of ε, H_ _and_ _f_ _such that_ ��� _uεH_,G <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> ��� _H_ <sup>1</sup> ( _TH_ ) <sup>_≤_</sup> <sup>_CH_</sup> <sup>_∥_</sup> <sup>_f ∥L_</sup> <sup>2(Ω).</sup> To prove this lemma, we will use some Poincaré–Friedrichs inequalities, for which we refer e.g. to [9, Lemma 4.3], [17, Lemma B.66]. 172 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>)</sup> <sup>_=_</sup> <sup>(</sup> <sup>_f_</sup> <sup>,</sup> <sup>_e_</sup> <sup>osc</sup> _H_ <sup>_ε_</sup> _H_ <sup>_= uε_</sup> _H_ <sup>,G</sup> <sup>_ε_</sup> _H_ <sup>,PG</sup> and recall the results of Lemma 47. We have _e_ <sup>_ε_</sup> _H_ <sup>P</sup> _H_ <sup>1</sup> <sup>_+e_</sup> <sup>osc</sup> _H_ Proof. Let _e_ <sup>_ε_</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_−uε_</sup> _H_ <sup>,PG</sup> Proof. Let _e_ <sup>_ε_</sup> _H_ <sup>_= uε_</sup> _H_ <sup>,G</sup> <sup>_−uε_</sup> _H_ <sup>,PG</sup> and recall the results of Lemma 47. We have _e_ <sup>_ε_</sup> _H_ <sup>_= e_</sup> <sup>P</sup> _H_ <sup>1</sup> <sup>_+e_</sup> <sup>osc</sup> _H_ (see (65)), and (61) provides, for _f_ _∈_ _L_ <sup>2</sup> (Ω), the equality _a_ <sup>_ε_</sup> <sup>,diff</sup> ( _e_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ <sup>)</sup> <sup>_=_</sup> <sup>(</sup> <sup>_f_</sup> <sup>,</sup> <sup>_e_</sup> <sup>osc</sup> _H_ <sup>)</sup> <sup>_L_</sup> <sup>2(Ω). Hence, by the Cauchy–</sup> Schwarz inequality, <sup>_ε_</sup> _H_ <sup>_= e_</sup> <sup>P</sup> _H_ <sup>1</sup> _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _e_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ _H_ �� _e_ osc _H_ �� _L_ <sup>2</sup> (Ω) <sup>.</sup> (66) - _≤∥_ _f ∥L_ 2(Ω) For the MsFEM-lin (without oversampling), it holds that _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> For the MsFEM-lin (without oversampling), it holds that _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _=_ 0 on _∂K_ for all mesh ele ments _K_ and all 1 _≤_ _α ≤_ _d_, and it follows that _e_ <sup>osc</sup> _H_ _=_ 0 on the boundaries of all mesh elements. In the case of the MsFEM-CR (without oversampling), it holds that - _h_ <sup>_χε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> _=_ 0 for all faces _h_ of the mesh and all 1 _≤_ _α ≤_ _d_ . (Note that the average of _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> over any face _h_ is well-defined even if _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> is in general discontinuous along faces.) Since _∂αe_ <sup>P</sup> _H_ <sup>1</sup> <sup>is constant on each mesh element</sup> <sup>_K_</sup> <sup>, we also</sup> have - _h_ <sup>_e_</sup> <sup>osc</sup> _H_ _=_ 0. Hence, both for the MsFEM-lin and for the MsFEM-CR, an appropriate variant of the Poincaré–Friedrichs inequality yields a constant _C_ independent of _K_ but dependent on the regularity of the mesh, such that _h_ <sup>_χε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> _K_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> over any face _h_ is well-defined even if _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> _h_ <sup>_e_</sup> <sup>osc</sup> _H_ �� _L_ <sup>2</sup> ( _K_ ) <sup>.</sup> (67) �� _e_ osc _H_ �� _∇e_ osc _H_ �� _L_ <sup>2</sup> ( _K_ ) <sup>_≤_</sup> <sup>_CH_</sup> Upon inserting the inequalities (67), (62) and (63) into (66), it follows that �2 �� _∇eεH_ �� _L_ <sup>2</sup> ( _TH_ ) <sup>_∥_</sup> <sup>_f ∥L_</sup> <sup>2(Ω).</sup> _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _e_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ <sup>�</sup> _e_ <sup>_ε_</sup> _H_ _H_ - _≤_ _CH_ - _<u>M</u>_ _m_ One more time using the lower bound in (2), we find �� _∇eεH_ �� _L_ <sup>2</sup> ( _TH_ ) <sup>_≤_</sup> <sup>_CH_</sup> <sup>_<u>M</u>_</sup> _m_ <sup>32</sup> <sup>_∥_</sup> <sup>_f ∥L_</sup> <sup>2(Ω).</sup> The proof is concluded by application of Lemma 46 to _e_ <sup>_ε_</sup> _H_ <sup>.</sup> 6.3. _Convergence results in the periodic setting_ We now study the MsFEM-lin applied to the periodic setting introduced in Section 2.7 in some more detail. To the best of our knowledge, all convergence results known for the MsFEM are obtained in this periodic setting (see e.g. [6, 9, 23, 24, 31, 32, 40, 41, 60]). The analysis in these works relies on the explicit description of the microstructure that we summarized in Section 2.7. In particular, recall the existence of a homogenized diffusion coefficient given by (24) and the first-order two-scale expansion (26). We emphasize, however, that the _application_ of the MsFEM does not require the periodic setting, nor does it even suppose the PDE under consideration to be embedded in a sequence of PDEs for a family of parameters _ε_ that tend 0. We refer to Section 7 for examples of such numerical experiments. Applying the <u>MsFEM</u> to <u>a</u> sequence of matrices _A_ <sup>_ε_</sup> _=_ _A_ <sup>per</sup> ( _·_ / _ε_ ), we obtain a sequence of effective tensors _A_ ( _ε_ ). Each _A_ ( _ε_ ) is defined by (12) for a fixed value of _ε_ . We have the following convergence result. Lemma 49. _Let_ _A_ ( _ε_ ) _be the sequence of effective tensors obtained in_ (12) _by applying the MsFEM-_ _lin without oversampling to_ _A_ <sup>_ε_</sup> _= A_ <sup>per</sup> ( _·_ / _ε_ ) _. We have_ _A_ ( _ε_ ) _→_ _A_ <sup>⋆</sup> _as ε →_ 0 _._ Proof. We fix a mesh element _K_ _∈_ _TH_ . First observe that _A_ ( _ε_ ) and _A_ <sup>⋆</sup> satisfy )��� _K_ <sup>_=_</sup> _|K_ <sup><u>1</u></sup> , _A_ <sup>⋆</sup> _β_ <sup>⋆</sup> _β_, _α_ <sup>_=_</sup> - _x_ <sup>_α_</sup> _+_ _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>,</sup> <sup>_xβ_</sup> <sup>�</sup> _Aβ_, _α_ ( _ε_ ) _|K_ <sup><u>1</u></sup> _|_ <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> _K_ _Q_ _eβ · A_ <sup>per</sup> ( _eα +∇wα_ ), (68) for each 1 _≤_ _α_, _β_ _≤_ _d_, in view of the variational formulations satisfied by _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> for each 1 _≤_ _α_, _β_ _≤_ _d_, in view of the variational formulations satisfied by _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> (solution to the PDE (11)) and _wα_ (solution to the PDE (23)). We recall that _Q_ is the unit cube of R <sup>_d_</sup> . Now let _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _=_ _x_ <sup>_α_</sup> _+ χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>.</sup> <sup>In</sup> <sup>view</sup> <sup>of</sup> <sup>Lemma</sup> <sup>45,</sup> <sup>_τε_</sup> <sup>,</sup> <sup>_α_</sup> <sup>�</sup> <sup>_τ_</sup> <sup>⋆,</sup> <sup>_α_</sup> <sup>as</sup> <sup>_ε →_</sup> <sup>0</sup> <sup>weakly</sup> <sup>in</sup> <sup>_H_</sup> <sup>1(</sup> <sup>_K_</sup> <sup>),</sup> <sup>with</sup> _τ_ <sup>⋆,</sup> <sup>_α_</sup> ( _x_ ) _= x_ <sup>_α_</sup> . Writing the two-scale expansion (26) of _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup>, we thus have, when _ε_ is small, Now let _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _=_ _x_ <sup>_α_</sup> _+ χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> <sup>.</sup> - _<u>x</u>_ _ε_ , _τ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> ( _x_ ) _≈_ _τ_ <sup>⋆,</sup> <sup>_α_</sup> ( _x_ ) _+_ _ε_ - _d_ _γ=_ 1 _wγ_ - _<u>x</u>_ _ε_ - _∂γτ_ <sup>⋆,</sup> <sup>_α_</sup> ( _x_ ) _= x_ <sup>_α_</sup> _+_ _ε_ _wα_ Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 173 and the difference tends to zero in _H_ <sup>1</sup> ( _K_ ) as _ε →_ 0. Inserting this convergence in (68), we deduce that _K_ _eβ · A_ <sup>per �</sup> <sup>_<u>x</u>_</sup> <sup>)</sup> ��� _K_ <sup>_=_</sup> <sup>lim</sup> _ε_ _→_ 0 <sup>)</sup> ��� _K_ <sup>_=_</sup> <sup>lim</sup> _ε_ _→_ 0 - _<u>x</u>_ _ε_ �� d _x = A_ <sup>⋆</sup> _β_, _α_ <sup>.</sup> �� d _x = A_ <sup>⋆</sup> _β_ _ε_ lim _→_ 0 <sup>_Aβ_</sup> <sup>,</sup> <sup>_α_</sup> <sup>(</sup> <sup>_ε_</sup> <sup>)</sup> <u>1</u> _|K |_ _ε_ �� _eα +∇wα_ The convergence to the mean on the unit cube in the last equality follows from the _Q_ -periodicity of the function _eβ · A_ <sup>per</sup> ( _eα +∇wα_ ). <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> The following lemma studies the convergence of _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> The following lemma studies the convergence of _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> towards 0 as _ε_ _→_ 0 for the MsFEM-lin without oversampling. As was stated in Remark 44, thanks to the periodic setting, we now obtain a rate for the convergence stated in Lemma 43. Lemma 50. _Let_ _f_ _∈_ _L_ <sup>2</sup> (Ω) _. Suppose that the family of meshes_ ( _TH_ ) _H_ _>_ 0 _is quasi-uniform. Consider_ _the MsFEM-lin without oversampling. For_ _A_ <sup>_ε_</sup> _= A_ <sup>per</sup> ( _·_ / _ε_ ) _sufficiently regular, we have_ ��� _uεH_,G <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> ��� _H_ <sup>1</sup> (Ω) <sup>_≤_</sup> <sup>_C_</sup> <sup>_ε_</sup> <sup>_∥_</sup> <sup>_f ∥L_</sup> <sup>2(Ω),</sup> _where the constant C_ _depends on the dimension d_ _and the constants m_, _M_ _in_ (2) _, but not on ε, H_ _or_ _f ._ <sup>_ε_</sup> _H_ <sup>_=_</sup> <sup>_uε_</sup> _H_ <sup>,G</sup> Proof. Let _e_ <sup>_ε_</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> Proof. Let _e_ <sup>_ε_</sup> _H_ <sup>_=_</sup> <sup>_uε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> . Lemma 47 applies, so we can use (61) and a Cauchy–Schwarz inequality to find ����� _L_ <sup>2</sup> (Ω) _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _e_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ _H_ - _≤∥_ _f ∥L_ 2(Ω) ����� - _∂αe_ <sup>P</sup> _H_ <sup>1</sup> . (69) _K ∈_ _TH_ �� _e_ osc _H_ �� _L_ <sup>2</sup> (Ω) <sup>_≤∥_</sup> <sup>_f ∥L_</sup> <sup>2(Ω)</sup> - _d_ _α=_ 1 - _∂αe_ <sup>P</sup> _H_ <sup>1</sup> ���� _K_ <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> Next we seek a bound on _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> in _L_ <sup>2</sup> ( _K_ ). Using (11) and (23), we have - _A_ <sup>per �</sup> <sup>_·_</sup> _ε_ - _A_ <sup>per �</sup> <sup>_·_</sup> - _χK_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _−_ _ε_ _wα_ - _·_ _ε_ ��� _=_ 0 in _K_ . div _∇_ - _χ_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> _K_ Since _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> vanishes on _∂K_ (recall that we consider the MsFEM-lin without oversampling), the maximum principle [14, Theorem 8.1] yields ���� _L_ <sup>2</sup> ( _K_ ) <sup>_≤_</sup> <sup>sup</sup> _∂K_ ~~�~~ <u>�</u> ��� _χKε_, _α_ _−_ _ε_ _wα_ - _·_ _ε_ ��� _χKε_, _α_ _−_ _ε_ _wα_ - _·_ _ε_ ���� _K_ 1 _= ε_ _|K |_ <sup>1/2</sup> sup _∂K_ ��� _wα_ - _ε·_ ���� . When _A_ <sup>per</sup> is sufficiently regular, the corrector functions _wα_ are uniformly bounded. Then the mesh regularity provides a constant _C_ such that for each _K_ _∈_ _TH_ and each 1 _≤_ _α ≤_ _d_, we have ���� _L_ <sup>2</sup> ( _K_ ) <sup>_+_</sup> <sup>_ε_</sup> ��� _wα_ - _ε·_ ���� _L_ <sup>2</sup> ( _K_ ) <sup>_≤_</sup> <sup>_C_</sup> <sup>_εH_</sup> <sup>_d_</sup> <sup>/2.</sup> �� _χεK_, _α_ ��� _χKε_, _α_ _−_ _ε_ _wα_ �� _L_ <sup>2</sup> ( _K_ ) <sup>_≤_</sup> - _·_ _ε_ Since all _χ_ <sup>_ε_</sup> _K_ <sup>,</sup> <sup>_α_</sup> have disjoint supports, we can use the latter estimate to bound ����� - _∂αe_ <sup>P</sup> _H_ <sup>1</sup> 2 2 _L_ <sup>2</sup> ( _K_ ) _L_ <sup>2</sup> (Ω) ���� _K_ <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> ����� ���� _K_ <sup>_χ_</sup> _K_ <sup>_ε_</sup> <sup>,</sup> <sup>_α_</sup> ����� - _d_ _=_ _K ∈_ _TH_ ����� _K ∈_ _TH_ - _d_ _α=_ 1 - _∂αe_ <sup>P</sup> _H_ <sup>1</sup> _α=_ 1 �2 (70) ���� _K_ _≤_ _C_ _ε_ <sup>2</sup> _K ∈_ _TH_ _≤_ _C_ _ε_ <sup>2</sup> _K ∈_ _TH_ - _d_ _α=_ 1 - _d_ _α=_ 1 - _H_ <sup>_d_</sup> <sup>/2 �</sup> _∂αe_ <sup>P</sup> _H_ <sup>1</sup> _∂αe_ <sup>P</sup> _H_ <sup>1</sup> ���2 _L_ <sup>2</sup> ( _K_ ) ���2 _L_ ��� _∂αe_ P _H_ 1 _= C_ _ε_ <sup>2 ��</sup> - _∇e_ <sup>P</sup> _H_ <sup>1</sup> ���2 _L_ <sup>2</sup> (Ω) <sup>.</sup> The last inequality relies on the quasi-uniformity of the mesh. We insert (70) combined with (63) into (69) to find _a_ <sup>_ε_</sup> <sup>,diff</sup> <sup>�</sup> _e_ <sup>_ε_</sup> _H_ <sup>_ε_</sup> _H_ <sup>,</sup> <sup>_eε_</sup> _H_ _H_ - _≤_ _C_ _ε_ _∥_ _f ∥L_ 2(Ω) �� _L_ <sup>2</sup> (Ω) <sup>.</sup> �� _∇eεH_ 174 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski Applying the coercivity property in (2) on the left-hand side and a Poincaré inequality on Ω, we obtain the desired result. The classical error estimate for the Galerkin MsFEM approach (6) is obtained in the periodic setting and under some regularity assumption on _A_ <sup>per</sup> and on the homogenized limit _u_ <sup>⋆</sup> . The bound obtained in [6, Theorem 6.5] reads _~~�~~_ - <u>�</u> ��� _uε −_ _uεH_,G��� _H_ <sup>1</sup> (Ω) <sup>_≤_</sup> <sup>_C_</sup> _H +_ _ε_ _+_ _ε_ / _H_, (71) for some _C_ independent of _ε_ and _H_ . Lemma 50 shows that the same estimate holds true for _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup>, the Petrov-Galerkin MsFEM approximation, under the correct regularity assumptions. We note that the bound for _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> can also be inferred from Lemma 48. However, since the MsFEM is applied in the regime where _ε < H_, the result of Lemma 50 is more precise, thanks to the extra structural assumptions made on the diffusion tensor _A_ <sup>_ε_</sup> . <u>�</u> , (71) ��� _H_ <sup>1</sup> (Ω) <sup>_≤_</sup> <sup>_C_</sup> _H +_ _ε_ _+_ _~~�~~_ _ε_ / _H_ 7. Numerical comparison We now compare the Galerkin MsFEM (40), its non-intrusive approximation (54) and the Petrov– Galerkin MsFEM (41) on a concrete numerical example in 2D ( _d =_ 2). The numerical approximations obtained for these various MsFEMs shall be denoted _u_ <sup>_ε_</sup> _H_ <sup>,G,</sup> <sup>_uε_</sup> _H_ <sup>,G-ni</sup> and _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup>, respectively. <sup>_ε_</sup> _H_ <sup>,G,</sup> <sup>_uε_</sup> _H_ <sup>,G-ni</sup> <sup>_ε_</sup> _H_ <sup>,G-ni</sup> and _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> <sup>_ε_</sup> _H_ <sup>,PG</sup>, respectively. 7.1. _Description of the numerical experiments_ We consider the pure diffusion equation (1) on the domain Ω _=_ (0,1) _×_ (0,1). Thus, the local bilinear forms are _aK_ <sup>_ε_</sup> <sup>_= a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> defined in Example 8, where we consider the three diffusion tensors _K_ <sup>_ε_</sup> <sup>_= a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> defined in Example 8, where we consider the three diffusion tensors _A_ <sup>_ε_</sup> <sup>,per</sup> ( _x_ ) _= ν_ <sup>_ε_</sup> ( _x_ )Id, _ν_ <sup>_ε_</sup> ( _x_ ) _=_ 1 _+_ 100 cos <sup>2</sup> ( _π_ _x_ 1/ _ε_ )sin <sup>2</sup> ( _π_ _x_ 2/ _ε_ ), (72a) _A_ <sup>_ε_</sup> <sup>,lp</sup> ( _x_ ) _=_ �1 _+_ cos <sup>2</sup> (2 _πx_ 1)� _A_ <sup>_ε_</sup> <sup>,per</sup> ( _x_ ), (72b) - _x_ <u>1</u> <sup>2</sup> <sup>_+ x_</sup> <u>2</u> <sup>2</sup> _ε_ _A_ <sup>_ε_</sup> <sup>,np</sup> ( _x_ ) _= ν_ <sup>_ε_</sup> <sup>,np</sup> ( _x_ )Id, _ν_ <sup>_ϵ_</sup> <sup>,np</sup> ( _x_ ) _=_ 1 _+_ �1 _+_ 100 cos <sup>2</sup> ( _π_ _x_ 1/ _ε_ )sin <sup>2</sup> ( _π_ _x_ 2/ _ε_ )� cos <sup>2</sup> . (72c) We fix _f_ ( _x_ ) _=_ sin( _x_ 1)sin( _x_ 2). The coefficient _A_ <sup>_ε_</sup> <sup>,per</sup> is _ε_ -periodic with period _ε_ _=_ _π_ /150 _≈_ 0.02. The coefficient _A_ <sup>_ε_</sup> <sup>,lp</sup> is locally periodic and, although a homogenized coefficient exists (see [18]), it is not constant. Consequently, a certain number of lemmas established in Section 6 are not known to hold true. Finally, we include the coefficient _A_ <sup>_ε_</sup> <sup>,np</sup> as an example of a multiscale problem for which we are not aware of any explicit homogenization results. We will see nevertheless that the non-intrusive MsFEMs that we introduced above provide good approximations compared to their intrusive GMsFEM counterparts for all test cases. A reference solution _uh_ <sup>_ε_</sup> <sup>is</sup> <sup>computed</sup> <sup>on</sup> <sup>a</sup> <sup>uniform</sup> <sup>1024</sup> <sup>_×_</sup> <sup>1024</sup> <sup>mesh</sup> <sup>_Th_</sup> <sup>by</sup> <sup>means</sup> <sup>of</sup> <sup>a</sup> standard P1 finite element method using FreeFEM++ [61]. The mesh _Th_ (as well as the coarse mesh introduced below) consists of squares cut in two along a diagonal that is in the same direction for all squares, i.e., such as the meshes in Figure 1. The FreeFEM++ scripts to perform all different MsFEMs can be found at [62]. We compare the reference solution _uh_ <sup>_ε_</sup> <sup>to</sup> <sup>MsFEM</sup> <sup>solutions</sup> <sup>obtained</sup> <sup>on</sup> <sup>a</sup> <sup>coarse</sup> <sup>mesh</sup> <sup>_TH_</sup> for varying _H_ . The mesh _TH_ is a uniform 1/ _H ×_ 1/ _H_ triangulation of Ω. We test the MsFEMlin and the MsFEM-CR using the sampling operator _sK_ <sup>_ε_</sup> <sup>_=_</sup> <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> . All oversampling methods in this section use a homothety ratio of 3 for the construction of the oversampling patches in Definition 13. A precise definition of the associated basis functions can be found in Examples 29 We compare the reference solution _uh_ <sup>_ε_</sup> _K_ <sup>_ε_</sup> <sup>_=_</sup> <sup>_a_</sup> _K_ <sup>_ε_</sup> <sup>,diff</sup> Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 175 and 30. The mesh _Th_ is a refinement of _TH_ for all values of _H_ . Therefore, for each _K_ _∈_ _TH_, we use the corresponding submesh of _Th_ (consisting of all triangles included in _K_ ) for the numerical approximation of the numerical correctors in (31) by P1 Lagrange finite elements. Remark 51. We provide a few remarks on the computation of the error, which takes place in the post-processing step of the MsFEM. Evidently, these computations have to be carried out by integration on the fine scale and one may try to perform these computations on the global mesh _Th_ . However, the legacy code does not, in general, operate on the global fine mesh. Moreover, we stress that the approximation _u_ <sup>_ε_</sup> _H_ <sup>is in general discontinuous across element</sup> edges (for the MsFEM-CR, and for all MsFEMs with oversampling), and can therefore not be represented globally by e.g. a piecewise P1 function on the fine mesh _Th_ (even if one supposes that _Th_ is conformal). Thus, one has to compute the error element by element, using the code for the microscale, according to the sum ��2 _H_ <sup>1</sup> ( _K_ ) <sup>.</sup> �� _uε −_ _uεH_ ��2 _H_ <sup>1</sup> ( _TH_ ) <sup>_=_</sup> _K ∈_ _TH_ �� _uε −_ _uεH_ To do so, Equation (49) can be used on each element _K_ to find the correct values of _u_ <sup>_ε_</sup> _H_ <sup>, and the</sup> global fine mesh _Th_ is never used. 7.2. _Results_ We first compare the approximations _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> and _u_ <sup>_ε_</sup> _H_ <sup>,G-ni</sup> We first compare the approximations _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> and _u_ <sup>_ε_</sup> _H_ <sup>,G-ni</sup> for varying _H_ in Figure 3 for MsFEMs with out oversampling and MsFEMs with _DOF_ -continuous oversampling. Without oversampling (OS), the approximation _u_ <sup>_ε_</sup> _H_ <sup>,G-ni</sup> equals _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> due to Lemma 38. We also report the error committed by the G-MsFEM. We observe that, without oversampling, the difference _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,G-ni</sup> is much smaller than this error. As a result, the errors obtained with the G-MsFEM and its non-intrusive approximation are of the same size. Indeed, the error of the non-intrusive G-MsFEM-lin deviates from the error of the G-MsFEM-lin by at most 0.05% for all tests that we report here. For the MsFEM-CR, this is at most 1.2%. In both cases, the two MsFEM variants thus have practically the same accuracy. This is in agreement with the theoretical result of Lemma 48. The estimates obtained in Section 6 do not apply to MsFEMs with oversampling. From Figure 3, we can see that the difference _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,G-ni</sup> is still small with respect to the error committed by the G-MsFEM when _DOF_ -continuous oversampling is applied. The approximation errors for the non-intrusive G-MsFEMs with _DOF_ -continuous oversampling differ by at most 1.3% from the error of the G-MsFEM. Similar conclusions hold for the MsFEM-lin with _DOF_ extended oversampling. The difference between the G-MsFEM and the non-intrusive G-MsFEM is larger for the MsFEM-CR with _DOF_ -extended oversampling. We do not include these results in the comparison of Figure 3 because both methods perform particularly badly when compared to the G-MsFEM without oversampling. Let us also point out the qualitative and quantitative similarities between the performance of the MsFEM for the periodic and the non-periodic diffusion coefficients. Although the study of the homogenized limit of _u_ <sup>_ε_</sup> becomes increasingly difficult for the various coefficients (72a) to (72c), the non-intrusive approximation does not deteriorate the accuracy of the MsFEM in these numerical tests. Before moving on to a comparison with the Petrov–Galerkin MsFEMs with oversampling, let us discuss a phenomenon in Figures 3 and 4 known as the “resonance effect” in the literature, preventing convergence of the MsFEM if the coarse scale _H_ is close to _ε_ . Upon further decreasing _H_, convergence is found only when _H_ is sufficiently small with respect to the microscale _ε_, in which case we ar _~~�~~_ <u>e in the regime of classical FEMs.</u> From a theoretical point of view, this is explained by the term _ε_ / _H_ in the error estimate (71) (or _ε_ / _H_ for the MsFEM-lin with oversampling; see [40]). <sup>_ε_</sup> _H_ <sup>,G-ni</sup> equals _u_ <sup>_ε_</sup> _H_ <sup>,PG</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,G-ni</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> _−_ _u_ <sup>_ε_</sup> _H_ <sup>,G-ni</sup> 176 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski We note that the same error estimate was obtained in [9] for the MsFEM-CR (without oversampling). Figure 4 shows that the resonance effect is more pronounced for the MsFEM-lin with oversampling than for the MsFEM-CR with oversampling. Figure 3. Solid lines: difference between the Galerkin MsFEM approximation ( _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> by (40)) and the non-intrusive Galerkin MsFEM approximation ( _u_ <sup>_ε_</sup> _H_ <sup>,G-ni</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> defined by (40)) and the non-intrusive Galerkin MsFEM approximation ( _u_ <sup>_ε_</sup> _H_ <sup>,G-ni</sup> defined by (54)), without oversampling (no OS) and with _DOF_ -continuous oversampling (OSc), for the diffusion coefficients in (72) as the mesh size _H_ varies. Dashed lines: error of the Galerkin MsFEM with respect to the reference solution. All values are normalized with respect to the _H_ <sup>1</sup> norm of the reference solution. Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 177 Figure 4. Comparison of the errors of the (intrusive) Galerkin MsFEM (40) and the (nonintrusive) Petrov-Galerkin MsFEM (41) for the diffusion coefficients in (72) as the mesh size _H_ varies. Different oversampling strategies are applied: _DOF_ -continuous (OSc, Definition 22) and _DOF_ -extended (OSe, Definition 17). The Galerkin MsFEM without OS is included to illustrate the effect of the OS strategies. We consider next in Figure 4 MsFEMs with the two different oversampling strategies of Section 4: _DOF_ -continuous and _DOF_ -extended oversampling. The PG-MsFEM variant, with or without oversampling, is completely equivalent to its non-intrusive implementation by virtue of Lemma 36. With oversampling, however, it does not coincide with the (intrusive or non-intrusive) G-MsFEM. 178 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski With oversampling, the matrices of the linear systems for the G-MsFEM and PG-MsFEM are different; Lemma 38 does not apply. The result is that the differences _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> are larger than the differences _u_ <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_−uε_</sup> _H_ <sup>,G-ni</sup> . This is reflected in the numerical errors of the methods. We show the errors of the PG-MsFEM and the G-MsFEM with respect to the reference solution _uh_ <sup>_ε_</sup> <sup>in Figure 4.</sup> (The non-intrusive G-MsFEM is too close to the G-MsFEM to be distinguishable on the scale of Figure 4 for all MsFEMs except the MsFEM with _DOF_ -extended oversampling.) The G-MsFEM without oversampling is also shown to highlight the effect of oversampling. Let us first consider the two different oversampling strategies. For all Galerkin MsFEMs, it is clear that the _DOF_ -continuous variant performs (much) better than the _DOF_ -extended variant. For the Petrov–Galerkin MsFEMs, the difference between the two oversampling strategies is smaller, but the _DOF_ -continuous version of oversampling continues to perform better over all. Although clear differences in the performance of the Galerkin and Petrov–Galerkin MsFEMs with _DOF_ -continuous oversampling can be observed, these differences are small and both MsFEM approaches have a comparable accuracy. There is no systematic disadvantage in choosing the non-intrusive PG-MsFEM over the (intrusive or non-intrusive) G-MsFEM. Moreover, the non-periodic test cases again show the robustness of all MsFEM variants when going beyond the setting of periodic homogenization. In particular, this demonstrates the robustness of the nonintrusive approaches for the MsFEM developed in this article. References [1] R. Altmann, P. Henning, D. Peterseim, “Numerical homogenization beyond scale separation”, _Acta Numer._ 30 (2021), p. 1-86. [2] W. E, B. Engquist, “The Heterogeneous Multiscale Methods”, _Commun. Math. Sci._ 1 (2003), no. 1, p. 87-132. [3] A. Målqvist, D. Peterseim, “Localization of elliptic multiscale problems”, _Math. Comput._ 83 (2014), no. 290, p. 2583 2603. [4] T. Y. Hou, X.-H. Wu, “A Multiscale Finite Element Method for Elliptic Problems in Composite Materials and Porous Media”, _J. Comput. Phys._ 134 (1997), no. 1, p. 169-189. [5] A. Abdulle, E. Weinan, B. Engquist, E. Vanden-Eijnden, “The heterogeneous multiscale method”, _Acta_ _Numer._ 21 (2012), p. 1-87. [6] Y. Efendiev, T. Y. Hou, _Multiscale_ _Finite_ _Element_ _Methods_, Surveys and Tutorials in the Applied Mathematical Sciences, vol. 4, Springer, 2009. [7] C. Le Bris, F. Legoll, “Examples of computational approaches for elliptic, possibly multiscale PDEs with random inputs”, _J. Comput. Phys._ 328 (2017), p. 455-473. [8] I. Babuška, J. E. Osborn, “Generalized Finite Element Methods: Their Performance and Their Relation to Mixed Methods”, _SIAM J. Numer. Anal._ 20 (1983), no. 3, p. 510-536. [9] C. Le Bris, F. Legoll, A. Lozinski, “MsFEM à la Crouzeix–Raviart for Highly Oscillatory Elliptic Problems”, _Chin. Ann._ _Math., Ser. B_ 34 (2013), no. 1, p. 113-138. [10] C. Le Bris, F. Legoll, F. Madiot, “A numerical comparison of some Multiscale Finite Element approaches for advection dominated problems in heterogeneous media”, _ESAIM, Math. Model. Numer. Anal._ 51 (2017), no. 3, p. 851-888. [11] L. H. Nguyen, D. Schillinger, “A residual-driven local iterative corrector scheme for the multiscale finite element method”, _J. Comput. Phys._ 377 (2019), p. 60-88. [12] R. A. Biezemans, C. Le Bris, F. Legoll, A. Lozinski, “Non-intrusive implementation of Multiscale Finite Element Methods: An illustrative example”, _J. Comput. Phys._ 477 (2023), article no. 111914. [13] P. Grisvard, _Elliptic_ _Problems_ _in_ _Nonsmooth_ _Domains_, Monographs and Studies in Mathematics, vol. 24, Pitman Publishing Inc., 1985. [14] D. Gilbarg, N. S. Trudinger, _Elliptic Partial Differential Equations of Second Order_, 3rd ed., Classics in Mathematics, Springer, 2001. [15] A. Quarteroni, _Numerical Models for Differential Problems_, 3rd ed., MS&A. Modeling, Simulation and Applications, vol. 16, Springer, 2018. [16] P. G. Ciarlet, _The_ _finite_ _element_ _method_ _for_ _elliptic_ _problems_, Studies in Mathematics and its Applications, no. 4, North-Holland, 1978. [17] A. Ern, J.-L. Guermond, _Theory and Practice of Finite Elements_, Applied Mathematical Sciences, vol. 159, Springer, 2004. <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_−uε_</sup> _H_ <sup>,G-ni</sup> <sup>_ε_</sup> _H_ <sup>,G</sup> <sup>_−_</sup> <sup>_uε_</sup> _H_ <sup>,PG</sup> Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski 179 [18] A. Bensoussan, J.-L. Lions, G. Papanicolaou, _Asymptotic analysis for periodic structures_, Studies in Mathematics and its Applications, vol. 5, North-Holland, 1978. [19] V. V. Zhikov, S. M. Kozlov, O. A. Oleinik, _Homogenization of Differential Operators and Integral Functionals_, Springer Berlin, 1994. [20] G. Allaire, _Shape Optimization by the Homogenization Method_, Applied Mathematical Sciences, vol. 146, Springer, 2002. [21] F. Murat, L. Tartar, “ _H_ -Convergence”, in _Topics in the Mathematical Modelling of Composite Materials_, Progress in Nonlinear Differential Equations and their Applications, vol. 31, Birkhäuser, 1997, p. 21-43. [22] R. A. Biezemans, _Multiscale_ _methods:_ _non-intrusive_ _implementation,_ _advection-dominated_ _problems_ _and_ _related_ _topics_, PhD thesis, École des Ponts ParisTech, Paris, France, 2023, in preparation. [23] G. Allaire, R. Brizzi, “A Multiscale Finite Element Method for Numerical Homogenization”, _Multiscale Model. Simul._ 4 (2005), no. 3, p. 790-812. [24] J. S. Hesthaven, S. Zhang, X. Zhu, “High-Order Multiscale Finite Element Method for Elliptic Problems”, _Multiscale_ _Model. Simul._ 12 (2014), no. 2, p. 650-666. [25] F. Legoll, P.-L. Rothé, C. Le Bris, U. Hetmaniuk, “An MsFEM Approach Enriched Using Legendre Polynomials”, _Multiscale Model. Simul._ 20 (2022), no. 2, p. 798-834. [26] P. Bastian, M. Blatt, A. S. Dedner, C. Engwer, R. Klöfkorn, M. Ohlberger, O. Sander, “A generic grid interface for parallel and adaptive scientific computing. Part I: abstract framework”, _Computing_ 82 (2008), no. 2-3, p. 103-119. [27] P. Bastian, M. Blatt, A. S. Dedner, C. Engwer, R. Klöfkorn, R. Kornhuber, M. Ohlberger, O. Sander, “A generic grid interface for parallel and adaptive scientific computing. Part II: implementation and tests in DUNE”, _Computing_ 82 (2008), no. 2-3, p. 121-138. [28] P. Bastian, C. Engwer, D. Göddeke, O. Iliev, O. Ippisch, M. Ohlberger, S. Turek, J. Fahlke, S. Kaulmann, S. Müthing, D. Ribbrock, “EXA-DUNE: Flexible PDE Solvers, Numerical Methods and Applications”, in _Euro-Par 2014:_ _Parallel_ _Processing Workshops_, Lecture Notes in Computer Science, vol. 8806, Springer, 2014, p. 530-541. [29] P. Bastian, C. Engwer, J. Fahlke, M. Geveler, D. Göddeke, O. Iliev, O. Ippisch, R. Milk, J. Mohring, S. Müthing, M. Ohlberger, D. Ribbrock, S. Turek, “Advances Concerning Multiscale Methods and Uncertainty Quantification in EXA-DUNE”, in _Software for Exascale Computing - SPPEXA 2013-2015_, Lecture Notes in Computational Science and Engineering, vol. 113, Springer, 2016, p. 25-43. [30] V. John, J. M. Maubach, L. Tobiska, “Nonconforming streamline-diffusion-finite-element-methods for convection diffusion problems”, _Numer. Math._ 78 (1997), no. 2, p. 165-188. [31] C. Le Bris, F. Legoll, F. Madiot, “Multiscale Finite Element Methods for Advection-Dominated Problems in Perforated Domains”, _Multiscale Model. Simul._ 17 (2019), no. 2, p. 773-825. [32] C. Le Bris, F. Legoll, A. Lozinski, “An MsFEM type approach for perforated domains”, _Multiscale_ _Model._ _Simul._ 12 (2014), no. 3, p. 1046-1077. [33] P. Degond, A. Lozinski, B. P. Muljadi, J. Narski, “Crouzeix-Raviart MsFEM with Bubble Functions for Diffusion and Advection-Diffusion in Perforated Media”, _Commun. Comput. Phys._ 17 (2015), no. 4, p. 887-907. [34] B. P. Muljadi, J. Narski, A. Lozinski, P. Degond, “Nonconforming Multiscale Finite Element Method for Stokes Flows in Heterogeneous Media. Part I: Methodologies and Numerical Experiments”, _Multiscale_ _Model._ _Simul._ 13 (2015), no. 4, p. 1146-1172. [35] G. Jankowiak, A. Lozinski, “Non-Conforming Multiscale Finite Element Method for Stokes Flows in Heterogeneous [Media. Part II: error estimates for periodic microstructure”, https://arxiv.org/abs/1802.04389, submitted, 2018.](https://arxiv.org/abs/1802.04389) [36] T. J. R. Hughes, “Multiscale phenomena: Green’s functions, the Dirichlet-to-Neumann formulation, subgrid scale models, bubbles and the origins of stabilized methods”, _Comput._ _Methods_ _Appl._ _Mech._ _Eng._ 127 (1995), no. 1-4, p. 387-401. [37] T. J. R. Hughes, G. R. Feijóo, L. Mazzei, J.-B. Quincy, “The variational multiscale method—a paradigm for computa tional mechanics”, _Comput. Methods Appl. Mech. Eng._ 166 (1998), no. 1-2, p. 3-24. [38] F. Brezzi, A. Russo, “Choosing bubbles for advection-diffusion problems”, _Math. Models Methods Appl. Sci._ 4 (1994), no. 4, p. 571-587. [39] F. Brezzi, L. P. Franca, T. J. R. Hughes, A. Russo, “ _b =_ - _g_ ”, _Comput. Methods Appl. Mech. Eng._ 145 (1997), p. 329-339. [40] Y. Efendiev, T. Y. Hou, X.-H. Wu, “Convergence of a nonconforming multiscale finite element method”, _SIAM_ _J._ _Numer. Anal._ 37 (2000), no. 3, p. 888-910. [41] T. Y. Hou, X.-H. Wu, Y. Zhang, “Removing the Cell Resonance Error in the Multiscale Finite Element Method via a Petrov–Galerkin Formulation”, _Commun. Math. Sci._ 2 (2004), no. 2, p. 185-205. [42] A. N. Brooks, T. J. R. Hughes, “Streamline Upwind/Petrov–Galerkin Formulations for Convection Dominated Flow with Particular Emphasis on the Incompressible Navier–Stokes Equation”, _Comput._ _Methods_ _Appl._ _Mech._ _Eng._ 32 (1982), p. 199-259. [43] T. J. R. Hughes, L. E. Franca, G. M. Hulbert, “A New Finite Element Method Formulation for Computational Fluid Dynamics: VIII. The Galerkin/Least-Squares Method for Advective-Diffusive Equations”, _Comput._ _Methods_ _Appl._ _Mech. Eng._ 73 (1989), p. 173-189. 180 Rutger A. Biezemans, Claude Le Bris, Frédéric Legoll and Alexei Lozinski [44] L. P. Franca, A. Russo, “Recovering SUPG using Petrov–Galerkin formulations enriched with adjoint residual-free bubbles”, _Comput. Methods Appl. Mech. Eng._ 182 (2000), no. 3-4, p. 333-339. [45] D. Gallistl, D. Peterseim, “Computation of Quasi-Local Effective Diffusion Tensors and Connections to the Mathe matical Theory of Homogenization”, _Multiscale Model. Simul._ 15 (2017), no. 4, p. 1530-1552. [46] D. Elfverson, V. Ginting, P. Henning, “On multiscale methods in Petrov–Galerkin formulation”, _Numer._ _Math._ 131 (2015), no. 4, p. 643-682. [47] P. Jenny, S. H. Lee, H. A. Tchelepi, “Multi-scale finite-volume method for elliptic problems in subsurface flow simulation”, _J. Comput. Phys._ 187 (2003), no. 1, p. 47-67. [48] H. Hajibeygi, G. Bonfigli, M. A. Hesse, P. Jenny, “Iterative multiscale finite-volume method”, _J._ _Comput._ _Phys._ 227 (2008), no. 19, p. 8604-8621. [49] Z. Chen, T. Y. Hou, “A mixed multiscale finite element method for elliptic problems with oscillating coefficients”, _Math. Comput._ 72 (2002), no. 242, p. 541-576. [50] T. Arbogast, “Implementation of a Locally Conservative Numerical Subgrid Upscaling Scheme for Two-Phase Darcy Flow”, _Comput. Geosci._ 6 (2002), p. 453-481. [51] T. Arbogast, G. Pencheva, M. F. Wheeler, I. Yotov, “A Multiscale Mortar Mixed Finite Element Method”, _Multiscale_ _Model. Simul._ 6 (2007), no. 1, p. 319-346. [52] F. Brezzi, J.-L. Lions, O. Pironneau, “The Chimera method for a model problem”, in _Numerical_ _Mathematics_ _and_ _Advanced Applications_ (F. Brezzi, A. Buffa, S. Corsaro, A. Murli, eds.), Springer, 2003, p. 817-825. [53] R. Glowinski, J. He, A. Lozinski, J. Rappaz, J. Wagner, “Finite element approximation of multi-scale elliptic problems using patches of elements”, _Numer. Math._ 101 (2005), no. 4, p. 663-687. [54] J.-B. Apoung Kamga, O. Pironneau, “Numerical zoom for multiscale problems with an application to nuclear waste disposal”, _J. Comput. Phys._ 224 (2007), no. 1, p. 403-413. [55] M. Duval, J.-C. Passieux, M. Salaün, S. Guinard, “Non-intrusive Coupling: Recent Advances and Scalable Nonlinear Domain Decomposition”, _Arch. Comput. Methods Eng._ 23 (2016), no. 1, p. 17-38. [56] P. Gupta, J. P. Pereira, D.-J. Kim, C. A. Duarte, T. Eason, “Analysis of three-dimensional fracture mechanics problems: A non-intrusive approach using a generalized finite element method”, _Eng. Fract. Mech._ 90 (2012), p. 41-64. [57] R. Chakir, Y. Maday, “Une méthode combinée d’éléments finis à deux grilles/bases réduites pour l’approximation des solutions d’une E.D.P. paramétrique (A two-grid finite-element/reduced basis scheme for the approximation of the solution of parametric dependent P.D.E.)”, _C. R., Math., Acad. Sci. Paris_ 347 (2009), no. 7-8, p. 435-440. [58] R. Chakir, Y. Maday, P. Parnaudeau, “A non-intrusive reduced basis approach for parametrized heat transfer prob lems”, _J. Comput. Phys._ 376 (2019), p. 617-633. [59] E. Grosjean, Y. Maday, “Error estimate of the non-intrusive reduced basis method with finite volume schemes”, _ESAIM, Math. Model. Numer. Anal._ 55 (2021), no. 5, p. 1941-1961. [60] C. Le Bris, F. Legoll, F. Thomines, “Multiscale Finite Element approach for “weakly” random problems and related issues”, _ESAIM, Math. Model. Numer. Anal._ 48 (2014), no. 3, p. 815-858. [61] F. Hecht, “New development in FreeFem++”, _J. Numer. Math._ 20 (2012), no. 3-4, p. 251-265. [62] [R. A. Biezemans, “MsFEM in FreeFEM: Release version 1.0.0”, 2023, doi: 10.5281/zenodo.7525059.](https://doi.org/10.5281/zenodo.7525059)

섹션 본문 349문단 · 103,267자

(제목 없음)

1Multiscale Finite Element Methods (MsFEMs) are now well-established finite element type approaches dedicated to multiscale problems.They first compute local, oscillatory, problemdependent basis functions that generate a suitable discretization space, and next perform a Galerkin approximation of the problem on that space.We investigate here how these approaches can be implemented in a non-intrusive way, in order to facilitate their dissemination within industrial codes or non-academic environments.We develop an abstract framework that covers a wide variety of MsFEMs for linear second-order partial differential equations.Non-intrusive MsFEM approaches are developed within the full generality of this framework, which may moreover be beneficial to steering software development and improving the theoretical understanding and analysis of MsFEMs.

Introduction

2In this article, we consider highly oscillatory partial differential equations (PDEs) of the form L ε u ε = f, posed in a bounded domain Ω ⊂ R d , where L ε is a second-order linear differential operator with (possibly rough) coefficients that oscillate on a microscopic length scale of size ε much smaller than the diameter of Ω. (See Sec. 2 and 4 for a complete description of the problems that we study.)We seek a numerical approximation of u ε by applying a Galerkin approach.

3It is well-known that standard (say P 1 ) finite element methods (FEMs) yield a poor approximation as a consequence of the highly oscillatory nature of the problem, unless a prohibitively expensive fine mesh is employed.An explicit example of this phenomenon is given, e.g., in [4,Example 1.1.].Dedicated multiscale approaches have thus been introduced, which provide a reasonably accurate approximation of u ε at a limited computational cost.Among the many multiscale approaches that have been proposed in the literature, we mention the Heterogeneous Multiscale Method (abbreviated HMM) [18], the Local Orthogonal Decomposition (LOD) [44] method, and the Multiscale Finite Element Method (MsFEM) [29], on which we focus here.We refer the reader to [1,19,36,4] for more comprehensive expositions of these multiscale methods.

4The MsFEM is a finite element type approach that relies on the adaptation of the finite element space to the highly oscillatory differential operator, an idea that was first introduced in [5].The MsFEM was introduced in [29].It consists of two steps:

51.An "offline" stage, where highly oscillatory, problem-dependent basis functions are computed numerically as solutions to local problems (that mimic the reference problem on a subdomain).The local problems serve as a preprocessing step of the microstructure.

62. An "online" stage, where a Galerkin approximation of the reference problem, performed in the finite-dimensional space generated by the basis functions that are computed in the offline stage, is solved.This constitutes the global coupling between the local computations performed in the offline stage.

7The MsFEM approach is particularly interesting for multi-query contexts, where the PDE of interest is to be solved repeatedly for multiple right-hand sides f (think e.g. of optimization problems or time-dependent problems where the time discretization results in a PDE in space to advance from one time step to the next).In this case, the basis functions, which depend on L ε , remain unchanged, so the offline stage is performed only once.The online stage solves a problem on a space of much lower dimension than a high fidelity space that fully resolves the microscale, resulting in a significant computational gain.

8The specific choice of problem-dependent basis functions has led to various MsFEM variants in the literature (see, for instance, [29,19,38,39]).Although their implementation is rightfully considered relatively easy [19,45], these methods dictate an intrusive workflow, i.e., substantial modifications have to be made to the code of some existing finite element software to implement the MsFEM.For instance, all automatic computations involving integrals of standard (e.g.polynomial) basis functions have to be replaced by the corresponding computations for specialized basis functions for each specific problem.We explore this further in Sec.2.3.

9The intrusive character of the MsFEM hinders the use of the method in many industrial contexts, because the time and tools required to adapt a legacy code that is currently in use may not be available.In this work, we propose a 'non-intrusive' MsFEM strategy that uses an existing legacy code for single-scale problems (based on standard finite elements), without any modifications, to obtain an accurate resolution of oscillatory PDEs.

10The intrusiveness of the MsFEM is due to the following fact: the microstructure is preprocessed through the computation of specialized basis functions, thereby coupling the microstructure explicitly to the global numerical model.We circumvent this coupling with a novel formulation of the MsFEM basis functions.The resulting MsFEM strategy can be summarized as follows:

111.In the offline stage, so-called numerical correctors are computed as the solution to problems mimicking the reference problem on a subdomain.The numerical correctors are then used to average the microstructure in the form of effective, piecewise constant coefficients, leading to an effective PDE.

122. In the online stage, the effective PDE is solved by a standard FEM with the legacy code.

133. A post-processing stage is introduced to restore microscopic features in the macroscopic FEM result (obtained in the online stage) with the help of the numerical correctors computed in the offline stage.

14Our non-intrusive MsFEM approach was introduced on a prototypical example in [12].In this article, we extend the findings of [12] to a large class of MsFEM variants.This requires the formulation of a general MsFEM framework, covering a generic definition of the MsFEM for the approximation of an abstract variational formulation of second-order linear PDEs.To the best of our knowledge, the question of how to make MsFEM approaches less intrusive has not been studied in the literature, except for the preliminary study in [12], and this work is a first step in that direction.We will comment on the intrusiveness of other multiscale methods in Sec.5.4.An overview of the contents of this article is as follows.In Sec. 2, we recall the basic principles of the FEM and the MsFEM and we explain the intrusive character of the MsFEM.We also review the non-intrusive MsFEM approach that was proposed in [12] for the simplest MsFEM variant on the example of a diffusion problem.We also highlight a link between the non-intrusive MsFEM approach and classical homogenization here.Then we summarize in Sec. 3 which properties of the MsFEM are essential for the non-intrusive workflow, and motivate the development of a general framework covering a wide variety of MsFEMs that we present in Sec. 4. We extend the nonintrusive MsFEM approach of [12] to our general MsFEM framework in Sec. 5.The non-intrusive MsFEM approach of [12] was found to be equivalent to a Petrov-Galerkin MsFEM (with P 1 test functions).This is no longer true for all MsFEMs covered by our general framework, and we obtain two non-intrusive MsFEMs: the Petrov-Galerkin MsFEM, which is completely equivalent to its non-intrusive implementation, and an approximate version of the Galerkin MsFEM that can be implemented in a non-intrusive way.The three essential formulas for the formulation of the nonintrusive MsFEM are highlighted in special boxes, both for the diffusion problem in Sec. 2 and for the general framework in Sec. 4 and 5.We then study the general MsFEM framework applied to diffusion problems in Sec.6, where we obtain a number of convergence results for the difference between the intrusive and non-intrusive MsFEM approaches.We conclude the article in Sec.7 by a numerical comparison of the intrusive and non-intrusive MsFEM approaches for diffusion problems, in order to assess the efficiency of our approaches for cases that are not covered by the convergence results of Sec. 6.Our results show that the Petrov-Galerkin MsFEM as well as the non-intrusive approximation of the Galerkin MsFEM are close to the original Galerkin MsFEM.Any possible additional error introduced by making the MsFEM non-intrusive is thus negligible.

Notation

15In this article, we shall adopt standard notation for Sobolev spaces.In particular, the dual space of H 1 0 (Ω) is denoted H −1 (Ω).Further, for a given simplicial mesh T H of Ω, we use the notation H 1 (T H ) to denote the broken Sobolev space H 1 (T H ) = u ∈ L 2 (Ω) u| K ∈ H 1 (K) for all mesh elements K ∈ T H .

16The standard norm for the space H 1 (Ω) is u H 1 (Ω) = u 2 L 2 (Ω) + ∇u 2 L 2 (Ω) and the correspond-

17. The space of functions whose restriction to each element of T H is a polynomial of degree k is denoted P k (T H ).

182 The (intrusive) multiscale finite element method

Discrete variational formulation

19Let d ≥ 1 denote the space dimension of interest and let Ω ⊂ R d be a bounded polytope.Convexity can be assumed for elliptic regularity results to hold, for which we refer to [26].This technical assumption is not necessary for the algorithmic aspects of the MsFEM that are the main focus of this article.By way of example, we consider first the diffusion equation with homogeneous Dirichlet boundary conditions.In a second step, from Sec. 4 onwards, we will also consider more general problems, and we will mention other types of boundary conditions in Sec.5.3.More precisely, we focus here on the boundary value problem

20where the diffusion tensor A ε ∈ L ∞ (Ω, R d×d ) satisfies the uniform bounds

21for some M ≥ m > 0 independent of ε.The right-hand side f does not vary on the microscopic scale ε.We denote the diffusion tensor with a superscript ε to keep in mind that A ε might be highly oscillatory on a typical length scale of size ε much smaller than the diameter of Ω (assumed to be of order 1).No further structural assumptions on A ε are made.In particular, A ε need not be the rescaling of a fixed periodic matrix of the form A ε (x) = A(x/ε).We will specialize to this periodic setting in Sec.6.3 only to obtain convergence results, but this assumption is of no relevance for the practical implementation of the MsFEM.Let us also mention that none of the considerations in this article require symmetry of the diffusion tensor.Our development of non-intrusive MsFEMs also generalizes to linear systems of PDEs.The analysis we provide is also expected to extend to e.g. the system of linear elasticity up to some technicalities that we do not consider here.

22For simplicity of exposition, we assume that f ∈ L 2 (Ω) (rather than f ∈ H −1 (Ω), for which the problem (1) is in fact well-posed).We do so to avoid unnecessary technicalities.Our proposed non-intrusive MsFEM carries over to the more general case.For some convergence results, the condition f ∈ L 2 (Ω) cannot be relaxed.In this case, this is also explicitly stated.

23Problem (1) admits a unique solution in the space H 1 0 (Ω).This solution is also characterized by the variational formulation

24where the bilinear form a ε,diff and the linear form F are defined, for any u, v ∈ H 1 0 (Ω), by

25The coercivity hypothesis in (2) ensures that the bilinear form a ε,diff is coercive on the space H 1 0 (Ω).Then the Lax-Milgram Theorem [25,Theorem 5.8] shows that (3) is indeed well-posed.

26The numerical approximation of (3) with a finite element method starts by the introduction of a mesh T H for Ω.The subscript H denotes the typical size of the mesh elements.We assume T H to be a simplicial, conformal mesh.For some convergence results, we shall assume quasi-uniformity.These assumptions are standard in finite element analysis.We refer, e.g., to [46,16,22] for a general exposition and various examples.Again, these regularity properties of the mesh do not have any impact on the implementation of the MsFEM on a given mesh.The regularity plays a role only to obtain convergence results.

27A finite element method for (1) is obtained by restricting the equivalent formulation (3) to a finite-dimensional subspace of H 1 0 (Ω), typically consisting of functions that are piecewise polynomial on the mesh T H .We suppose that we are in the regime where H is larger than or comparable to the microscale ε and cannot be taken smaller due to computational limitations.In this case, it is well known that a Galerkin approximation of (3) on, say, the standard (conforming) Lagrange P 1 space on T H provides only a poor, not to say an incorrect approximation of u ε .See [4, Example 1.1], for instance, for an explicit example where the P 1 approximation on a coarse mesh fails.At the same time, the use of a finite element method on a fine mesh of size H ≪ ε might be unfeasible from a computational point of view because of its prohibitive computational cost.To remedy this issue, we shall next introduce the multiscale finite element method (MsFEM) [29,19].

A simple multiscale finite element method

28The MsFEM is a Galerkin approximation of (3) for which the approximation space is adapted in order to achieve satisfactory accuracy even on a coarse mesh.The correct choice of approximation space yields a numerical approximation that is much closer to u ε than a standard P 1 -approximation when ε is smaller than H, and especially when ε becomes asymptotically small.To begin with, we introduce here the simplest variant of the MsFEM, which originally appeared in [29], before moving on to other MsFEM variants.

29Let x 1 , . . ., x N 0 be an enumeration of the interior vertices of the mesh T H , i.e., the vertices that do not lie on ∂Ω.We denote by φ P 1 i the unique piecewise P 1 function such that φ P 1 i (x j ) = δ i,j for all 1 ≤ j ≤ N 0 .(These are the basis functions for the standard P 1 Lagrange finite element.)We define the multiscale basis functions

30All these problems, on each mesh element K, are again well-posed by coercivity of A ε and the Lax-Milgram Theorem.The functions φ ε i so defined belong to the global space H 1 0 (Ω) because the local boundary conditions on ∂K imply continuity across all mesh elements K.It is also immediately seen that φ ε i is supported by exactly the same mesh elements as φ P 1 i .Remark 1.On each mesh element K, problem (5) defines at most d + 1 non-trivial basis functions.Let i 1 , . . ., i d+1 be the indices of the vertices of K.It is easily inferred from (5) that

31. Thus, one only has to compute d basis functions by the resolution of a PDE on K.

32The multiscale approximation space is defined as

33. This is a finite-dimensional space of the same dimension as the one used for a P 1 Lagrange finite element approximation on the mesh T H .The MsFEM consists in computing the approximation

34Since V ε H,0 is a subspace of H 1 0 (Ω), the bilinear form a ε,diff is coercive on V ε H,0 and the discrete problem ( 6) is again well-posed by virtue of the Lax-Milgram Theorem.

35The computation of the multiscale basis functions φ ε i is called the offline stage of the MsFEM and only has to be carried out once if (1) has to be solved multiple times for different right-hand sides.Also note that all problems (5) are independent of each other, and can thus be solved in parallel.In practice, the φ ε i are approximated numerically on a fine mesh of K ∈ T H of mesh size h ≤ ε that resolves the oscillations of A ε .We omit these details here because they have no importance for the non-intrusive strategy that we shall propose later in this article.

36The resolution of the global problem ( 6) is called the online stage.The computational cost for this problem is the same as for a standard P 1 approximation on the same mesh.A further discussion of the practical implementation of the MsFEM is provided in Sec.2.3.This discussion partially reproduces some elements of [12].We include it here to clarify and motivate the developments in the sequel.

Intrusive workflow

37The practical resolution of the global problem (6) consists in the construction and resolution of the following linear system:

38with

39where we recall that N 0 denotes the number of interior vertices of T H .The MsFEM approxi-

40The MsFEM can then be written (as it is traditionally presented) as in Algorithm 1.We use the notation

41and we write

42Algorithm 1 MsFEM approach for problem (1) (see comments in the text)

43for 1 ≤ n ≤ d + 1 do

5:

44Set i := N (n, K)

6:

45Solve for

46end for 8:

47for 1 ≤ l ≤ d + 1 do

9:

48Set j := N (l, K)

49end for 13:

50end for 15: end for 16: Solve the linear system

51Lines 1-12 of Algorithm 1 (resp.[13][14][15][16][17] constitute the offline (resp.online) stage of the MsFEM.Note that the computation of the stiffness matrix in line 11 only depends on the multiscale basis functions (and not on the right-hand side f ) and can therefore be carried out once and for all in the offline stage.Also note that, for an efficient computation of the φ ε i in line 6, one should apply Rem. 1.Only the online stage is to be repeated when problem (1) is to be solved multiple times for various right-hand sides f .Implementing Algorithm 1 in an industrial code is challenging.Indeed, the practical implementation of any finite element method relies on (i) the construction of a mesh, (ii) the construction of the linear system associated to the discrete variational formulation and (iii) the resolution of the linear system.An efficient implementation of the second step heavily relies on the choice of the discretization space.

52Regarding the construction of the linear system (performed in line 11 of Algorithm 1), it is by no means obvious to adapt existing finite element codes based on generic approximation spaces (such as the spaces V L H and V CR H in Def.4.1) to a different, problem-dependent choice of space such as V ε H .No analytic expressions for the basis functions φ ε i are available (and thus a fine mesh should be used to approximate them), the computation of a ε K (φ ε i , φ ε j ) should be performed by quadrature rules on the fine mesh because the integrands are highly oscillatory, one should have at hand the correspondence between element and vertex indices of the coarse mesh (N (n, K) in Algorithm 1), the assembly of the global stiffness matrix {A ε j,i } 1≤i,j≤N 0 should be executed by a dedicated new piece of software, etc.To alleviate these obstacles, we introduce below a way of implementing the MsFEM that capitalizes on an existing code for solving (1) by a P 1 approximation on T H in the case of slowly varying diffusion coefficients.The three central identities for our approach that we aim to generalize to other MsFEMs in this article are framed in distinctive boxes.

Effective problem on the macroscopic scale

53Let us consider the construction of the stiffness matrix of the MsFEM in more detail.The stiffness matrix defined in (8) requires the computation of the quantities

54for all 1 ≤ i, j ≤ N 0 .Following [12], we rewrite the multiscale basis functions as

55for all 1 ≤ i ≤ N 0 , where, for each mesh element K, we define the numerical corrector χ ε,α K ∈ H 1 0 (Ω) (1 ≤ α ≤ d) as the function supported by K that is the unique solution to the local problem

56Here, e α denotes the α-th canonical unit vector of R d .The expansion (10) is obtained upon rewriting (5) as a PDE for φ ε i − φ P 1 i , and then using linearity of the PDE and the fact that ∇φ

57K is indeed the unique solution to this PDE.

58Inserting (10) for the trial and test functions in (9) and again exploiting the fact that all φ P 1 i have piecewise constant gradients, we obtain

59Next we define the piecewise constant effective diffusion tensor A ∈ P 0 (T H , R d×d ) by

60where |K| denotes the measure of the mesh element K. Then (9) can be written as

61Motivated by (13), we introduce the coarse-scale problem

62and its Galerkin discretization with P 1 Lagrange elements: with V H,0 = span φ P 1 i | 1 ≤ i ≤ N 0 (note that the definition of V H,0 will be generalized in Def.4.1), find u H,0 ∈ V H,0 such that

63where the linear form F is defined in (3) and the bilinear form a diff is defined as

64Problem (15) equivalently writes

65with

66Comparing the expressions ( 13) and ( 17), we deduce that A ε = A P 1 .In other words:

67Lemma 1.The stiffness matrix of the MsFEM problem (6) is identical to the stiffness matrix of the P 1 problem (15).

68This lemma immediately implies that the P 1 problem ( 15) is well-posed, since the MsFEM (6) itself is well-posed.

69Let us point out that problems (14) and (15) are defined entirely in terms of quantities that vary only on the macroscopic scale H.The finite element problem (15) can thus be solved using a legacy code that is designed for standard FEMs.Lemma 1 then suggests including the P 1 approximation (15) of the effective, coarse-scale problem (14) as an integral part of the MsFEM approach.We do so in Algorithm 2 below.

70The right-hand side vector F ε in ( 8) is, in general, different from F P 1 in (17).Indeed, we integrate the product of f with highly oscillatory basis functions in the former problem and with P 1 basis functions in the latter.The solutions U ε and U P 1 to (7) and (16), respectively, are thus different a priori.

Non-intrusive workflow

71We propose the following non-intrusive MsFEM variant:

72where u H ∈ V H,0 is the unique solution to (15).(18) The MsFEM approximation u ε H is well-defined, since we have seen above that problem (15) is well-posed.

73Note that the symbol u ε H shall be used here and in the sequel for the solution to various MsFEMs variants to alleviate the notation.The exact MsFEM will be specified by the context.We will use distinct notation for different MsFEM variants when required for clarity.

74The most efficient way to compute u ε H from u H is not as stated here, however.The evaluation of u H (x) may require the determination of the degrees of freedom associated to the simplex K to which x belongs.This demands the use of the internal mechanisms of the legacy code that is used to compute u H .The use of the legacy code can be avoided by expanding u H as follows.For any affine function ϕ on K, we have

75where x α denotes the function that to a point x ∈ Ω associates its α-th coordinate, and x c,K = (x 1 c,K , . . ., x d c,K ) is the centroid of K.If one uses the legacy code to store the values of u H (x c,K ) and ∂ α u H element by element at the end of the online stage, then u ε H defined in (18) can be computed element by element according to

76without using the legacy code.

77The above observations culminate in the computational approach presented in Algorithm 2. We can distinguish (1) the offline stage consisting of lines 1-7,

78(2) the online stage being executed entirely in line 8,

79(3) a post-processing step in line 9.

80The superiority of Algorithm 2 over the classical MsFEM Algorithm 1 is that the global problem of the online stage can completely be constructed and solved by the use of a pre-existing P 1 PDE solver.The only requirements for the legacy code are the functionality to provide piecewise constant diffusion coefficients to the solver and the existence of a procedure to store the value of the P 1 solution and its gradient at the centroids of the mesh.An additional advantage in the online stage is that the construction of the right-hand side F P 1 (see (17)) for the global problem only requires a numerical quadrature on the coarse mesh and is therefore cheaper than the construction of F ε (see (8)), involving the multiscale basis functions and requiring numerical quadratures at the microscale.

81The part of the offline stage that manipulates fine meshes (lines 2-7) and the post-processing step can be developed independently of the legacy code used in line 8.The requirement for these fine-scale solvers is that they have access to the coarse mesh T H used by the global solver.Note Algorithm 2 Non-intrusive MsFEM approach for problem (1) 1: Let T H be the mesh used by the legacy code 2: for all K ∈ T H do 3:

82Solve for χ ε,α K defined by (11) 5:

83end for 6:

84Compute A| K defined by (12) 7: end for 8: Use the legacy code to solve for u H defined by (15) and to save {u

859: Obtain the MsFEM approximation u ε H by (20) also that the local problem ( 11) is only indexed by the coarse mesh element K, in contrast to the local problem (5) that is indexed both by the coarse mesh element K and the vertex index i.For the latter problems, one has to know, for each element K, the global index that corresponds to the vertices of K, a piece of information that may be difficult to access in a legacy code.For the problems (11), this correspondence is not needed to compute A, nor for the computation of the fine-scale solution u ε H in (20), both of which are entirely defined element-wise.

Interpretation of the non-intrusive MsFEM

86We emphasized above that the right-hand sides of the linear system for the MsFEM in (8) and the linear system solved for the non-intrusive MsFEM in (17), are different in general.This motivates the comparison of the non-intrusive MsFEM approach (18) to the following Petrov-Galerkin MsFEM:

87based on the trial space V ε H,0 and the test space V H,0 for both the bilinear and the linear form.The following result was shown in [12].

88Lemma 2. The non-intrusive MsFEM variant (18) coincides with the Petrov-Galerkin MsFEM (21).

89The non-intrusive MsFEM approach is generalized in Sec. 5 after the development of a general framework to define a wide variety of MsFEMs in Sec. 4. Lemma 2 does not generalize to the full framework.We will see the conditions under which the non-intrusive approach leads to a Petrov-Galerkin MsFEM in Lemma 8.

Relation to homogenization theory

90We highlight in this section the fact that many ingredients of our non-intrusive MsFEM approach are reminiscent of standard quantities of homogenization theory, or the theory of H-convergence, which studies the limit of a sequence of solutions u ε to a PDE as ε tends to 0. This relation to H-convergence provides an interesting interpretation of the effective tensor A introduced in (12).

91Let us suppose in this section (and in this section only, except for Sec.6.3) that A ε (x) = A per (x/ε) for some bounded, Z d -periodic matrix A per satisfying the coercivity property in (2).In this case, the sequence of matrices A ε has a homogenized limit that is explicitly known.(An explicit characterization of the limit is not available for H-convergence in general.)We summarize the main results below.See, for instance, [10,47] or [2, Chapter 1] for details on periodic homogenization.

92Due to H-convergence of A ε , the functions u ε , solution to (1), converge to a limit function u ⋆ (weakly in H 1 (Ω), strongly in L 2 (Ω)) as ε → 0. The homogenized limit u ⋆ is the solution to the homogenized equation (24) below.

93Let Q denote the unit cube of R d .We introduce the corrector functions w 1 , . . .,

94which uniquely defines w α up to an irrelevant additive constant.The entries of the (constant) homogenized diffusion tensor A ⋆ ∈ R d×d are given by

95The homogenized limit u ⋆ of u ε is the unique solution in H 1 0 (Ω) to the boundary value problem

96The truncated reconstruction of u ⋆ that is called the first-order two-scale expansion takes the form

97Under suitable regularity assumptions, the difference u ε − u ε,1 converges to 0 strongly in H 1 (Ω) as ε → 0. This property will be used for the convergence results in Sec.6.3.

98In the periodic setting, the expansion (25) can be used to construct a numerical approximation of u ε , without the need of any computations at the fine scale.This approximation is presumably valid only in the regime of very small parameters ε and deteriorates if ε grows.Moreover, in more general settings, the corrector functions are not local nor explicit, for their definition involves a PDE posed on the whole domain Ω and that depends on an effective tensor that is itself defined in terms of the corrector functions.Details can be found, e.g., in [3,2,43,47].This prevents the H-convergence theory from being directly applicable for the numerical approximation of u ε .

99Numerical homogenization techniques, that draw their inspiration from the various elements above, offer an alternative for the approximation of u ε that can be applied in much more general contexts.We can see the similarities between the corrector functions w α in (22) and the numerical correctors χ ε,α K in (11).Note that the χ ε,α K solve problems similar to (22), but that they need to be solved at the microscale and on each mesh element K. Similarly, we note the resemblance between the reconstruction (25) and the definition of u ε H in (18), and between the homogenized coefficient A ⋆ defined in (23) and the effective macroscopic coefficient A from (12).However, contrary to A ⋆ , the MsFEM quantity A has to be computed on an element-by-element basis, and it is not necessarily constant throughout Ω.Finally, the MsFEM analogue of the homogenized problem (24) is the resolution of the effective macroscale problem (14).

100Example 1.A very particular setting, although academic in nature and only useful for pedagogical purposes, actually leads to an MsFEM approximation that is exactly equivalent to a discretization of the periodic homogenization setting.Consider (1) in 2D posed on the unit square.Let us consider a mesh consisting of squares that are perfectly aligned with the periodicity of A ε .We solve the corrector problems (11) on all square mesh elements with periodic boundary conditions and subsequently compute the effective diffusion tensor A according to (12).In this case, the problems for the numerical correctors all reduce to (22) and A is constant and equal to the homogenized coefficient A ⋆ as defined by (23).A Q 1 discretization of the effective problem ( 14) thus constitutes a non-intrusive MsFEM that is equivalent to the Q 1 approximation of the homogenized equation (24).

1013 Why develop a general framework?

102In the sequel we develop a general framework for a wide variety of MsFEMs in an abstract setting.We motivate here why this general framework for MsFEMs is useful.

Local boundary conditions

103First, let us explain why various different MsFEMs have been proposed in the literature.One reason is that different equations than (1) (e.g.advection-diffusion equations) give rise to different choices of the local problem (5), depending on which terms of the global PDE are included (see, for instance, [39].)

104The other reason is that, even for the pure diffusion problem (1), the choice of the basis functions defined in (5) has an important drawback.The definition of the multiscale basis functions requires a choice of arbitrary boundary conditions on the mesh element boundary ∂K, since the exact boundary condition satisfied by u ε is unknown.In (5), affine boundary conditions are imposed.In view of this choice, we shall refer to the MsFEM defined above as the 'MsFEM-lin'.

105The MsFEM-lin cannot yield an accurate representation of u ε near ∂K if A ε is highly oscillatory and the mesh T H is coarse.Variations on the definition of the functions φ ε i have been proposed to improve the MsFEM.Here we summarize the ideas of oversampling and of MsFEM à la Crouzeix-Raviart, which together inspire the formulation of a general MsFEM framework in Sec. 4.

106The oversampling variant of the MsFEM was introduced along with the variant based on (5) at the time of its first appearance in [29].For this method, an oversampling domain S K is associated to each mesh element K (details are provided in Sec.4.3.1).The problems (5) are solved on the larger domain S K rather than K, so the inadequate boundary conditions are pushed away from the actual mesh elements.To construct the multiscale basis functions, the resulting functions on S K are restricted to the actual mesh elements K and suitably combined around each vertex x i .The new multiscale basis functions oscillate on ∂K if the oversampling patch is taken large enough.We note that, in general, this strategy leads to discontinuous basis functions.Hence, the finite element space obtained is no longer conforming.

107The MsFEM with Crouzeix-Raviart type boundary conditions for the local problems (which we shall abbreviate as 'MsFEM-CR') was introduced in [38].It uses basis functions associated to the edges of the mesh (in contrast to the MsFEM-lin presented above, and its oversampling variant, where basis functions are associated to the vertices of the mesh).A typical basis function satisfies the following on ∂K: the flux through each face of K is constant, and the constants are determined by the condition that the average of the basis function be 1 over one particular face and 0 over all other faces.Again, this is a way to avoid imposing any conditions on the trace of the basis function directly.The multiscale functions can thus be oscillatory on the faces of the mesh.As is the case for oversampling methods, the resulting finite element space is nonconforming.

108All of these variations, applied to any MsFEM for linear second-order PDEs, are covered by the general MsFEM framework that we develop in Sec. 4.

The non-intrusive approach

109The intrusiveness of the specific MsFEM-lin variant introduced in Sec.2.2 is exemplary for all Ms-FEMs described in Sec.3.1.It turns out that the non-intrusive MsFEM approach introduced in [12] and recalled in Sec.2.5 can also be generalized to all these MsFEM variants.We summarize the key ingredients that allow for the formulation of the non-intrusive MsFEM approach of Algorithm 2 (corresponding to the identities in boxes in Sec.2.4).

110The non-intrusive MsFEM follows from the expansion (10), namely the expression of the multiscale basis function as a P 1 basis function and a linear combination of numerical correctors that are fully localized.We note that

111• the full localization of the numerical correctors defined in (11) allows the preprocessing of the microstructure independently of the global approximation indices related to the finite element method;

112• the expansion (10) follows from the fact that ∇φ P 1 i is piecewise constant combined with linearity of the local problems (5);

113• the stiffness matrix can be formulated in terms of a piecewise constant effective diffusion tensor in ( 13) thanks to full localization of the corrector functions, the piecewise constant gradient of φ P 1 i in the expansion (10) and bilinearity of the global problem (3).

114These observations provide the main structure of the general framework.First, we choose an underlying, low-dimensional space of piecewise affine functions to which the MsFEM is associated (Def.4.1).This will be the standard conforming Lagrange space of order 1 (for the MsFEM-lin), or the Crouzeix-Raviart space of order 1 (for the MsFEM-CR).Second we need to formulate the local problems for the numerical correctors (Def.4.8 and Def.4.10).This involves the definition of oversampling patches (for MsFEMs with oversampling, Def.4.4), and an extension of the notion of degrees of freedom to define the boundary conditions for the numerical correctors (Def.4.2, 4.5 and 4.6) on oversampling patches.It is then possible to define the multiscale basis functions as a generalization of (10) (see Def. 4.11) and finally to define the MsFEM for our general framework in Def.4.12.

115Remark 2. We note that our development of non-intrusive MsFEM approaches relies to a great extent on the fact that (10), and its generalization (33) in the general framework developed below, provide a description of the multiscale basis functions in terms of P 1 basis functions, without the need of higher-order functions.Higher-order MsFEMs can be found in [3,28].Possible analogues of (33) for such MsFEMs and the subsequent techniques to design a non-intrusive MsFEM variant are more involved and may be the topic of future work.See [11].

Other motivations for the general framework

116Besides a unified formulation of our non-intrusive MsFEM approach, our general framework can also be beneficial to concrete code development for the MsFEM.Common features among various multiscale methods have previously been used to design flexible and efficient software for the implementation of such methods on the DUNE platform [7,6] within the Exa-Dune project [9].For example, the distribution of local problems over multiple processors and subsequent coupling in a global problem are handled by designated software components [8].Our work may contribute to the efficient implementation of all MsFEMs covered by our general framework in such a project and similar endeavours yet to come.

117When formulating the general framework, we also clarify a few practical matters that are often left pending in the various research articles we are aware of.In particular, we give a rigorous definition of the oversampling procedure near the boundary ∂Ω of the global domain.

118As we explore the general framework, we will also propose an MsFEM variant that has not yet appeared in the literature: the MsFEM-CR combined with the oversampling technique (see Example 9).We hope that our framework may also further the development of new MsFEM variants in an attempt to improve on the shortcomings of the methods known today.

119Finally, the present study may also uncover a deeper understanding of MsFEMs by paving the way to a unified convergence analysis of different variants.This work is currently in preparation.

Abstract definition of the MsFEM

120We develop here a general framework for multiscale finite element methods.The ultimate aim is to generalize the key identities of Sec.2.4.This is done in Def.4.8 and 4.10 for the numerical correctors introduced in (11), and in Def.4.11 for the expansion (10) of the multiscale basis functions.This allows the reformulation of the linear system of the MsFEM as the linear system of an effective problem in (41) (for a Petrov-Galerkin MsFEM) and ( 46) (for a Galerkin MsFEM) in Sec. 5.The other notions introduced in this section, although rather technical and abstract, are necessary tools to capture a wide variety of MsFEMs in our general framework.

The continuous problem

121The abstract variational problem for our general MsFEM framework is as follows.Let a ε be a continuous bilinear form on H 1 (Ω) × H 1 (Ω).We are interested in the solution to the problem

122where F is defined as in (4) for any f ∈ L 2 (Ω).To ensure well-posedness of (26), we suppose that the bilinear form a ε is coercive on H 1 0 (Ω).The bilinear form a ε may contain coefficients that oscillate on a microscopically small scale.

123The oversampling and Crouzeix-Raviart variants of the MsFEM introduced in Sec.3.1 show that we need to accommodate for approximation spaces with discontinuities at the interfaces.This requires some additional assumptions on the formulation of the abstract problem.We suppose that the bilinear form a ε is in fact defined on the broken Sobolev space H 1 (T H ) × H 1 (T H ).More precisely, we assume that we can represent it as

124To ensure well-posedness of MsFEMs, which may use nonconforming approximation spaces, coercivity on H 1 0 (Ω) may be insufficient.Therefore, we add the following coercivity hypothesis for the bilinear forms a ε K : for all K ∈ T H , there exists

125In order to perform a convergence analysis, one also has to assume that the α K are bounded from below by some α > 0 that does not depend on H.We provide convergence results in Sec.6 for the pure diffusion problem (1), in which case we have α K = m from (2).

126As an example, the introductory problem (1) with the associated bilinear form a ε,diff is covered by this framework as is made explicit in Example 2 below.Other second-order PDEs that fit in our abstract variational formulation are given in Example 3.

127Example 2. The diffusion problem (1) is covered by the abstract variational formulation above.Indeed, we can set a ε = a ε,diff , where a ε,diff is the bilinear form defined in (4).Further, we define

128with α K = m the coercivity constant from (2).

129Example 3. The reaction-advection-diffusion equation,

130with a divergence-free advection field b : Ω → R d and a positive reaction coefficient σ : Ω → R, can be modelled (under some regularity hypotheses that we do not state here) with the bilinear forms

131However, these bilinear forms a ε K do not satisfy (27) even though the bilinear form a ε is coercive on H 1 (Ω).To this end, a skew-symmetrized formulation of the transport term can be used.The skew-symmetrized formulation uses the bilinear form

132which does satisfy (27).However, the assumption ( 27) is used for proving well-posedness of the MsFEM in Lemma 5, but both choices for a ε K mentioned here can be studied in practice.We refer e.g. to [35,40,11] for more details.Within the general MsFEM framework, b and σ are allowed to be highly oscillatory, and this may impact the specific MsFEM strategy to be preferred.

Piecewise affine structure

133In Sec.2.2, we have seen that the relation between multiscale basis functions and piecewise affine functions is essential for the development of our non-intrusive MsFEM.For the MsFEM definition in the general framework, we start by choosing such a structure in the following definition.Definition 4.1.Let a mesh T H be given.The underlying P 1 space for the MsFEM, denoted V H , is one of the following two spaces: the Lagrange approximation space

134in which case we shall refer to the associated MsFEM as the MsFEM-lin, or the Crouzeix-Raviart approximation space

135in which case the associated MsFEM shall be called the MsFEM-CR.We use the notation F (K) for the set of faces of K and v denotes the jump of v over the face e.The space V L H is a subspace of H 1 (Ω), but V CR H is not.Note that no restrictions apply on faces lying on ∂Ω.

136We note that the underlying P 1 space has the following property: if v ∈ V H is piecewise constant on the mesh T H , then v is constant in Ω. Contrary to the space V L H , functions in the Crouzeix-Raviart space V CR H are discontinuous in general.They are continuous, however, at the centroids of all faces of the mesh.

137For standard finite elements, the notion of degrees of freedom allows to characterize any finite element function.The idea of the MsFEM is to preserve this notion of degrees of freedom (in a suitable way made precise below) in the definition of a multiscale approximation space, while adapting the piecewise affine structure to the microstructure of the PDE.We formalize this notion for the two underlying P 1 spaces that we introduced in Def.4.1.The definition involves an arbitrary simplex K, which is typically an element of the mesh T H , or an associated oversampling patch (for the oversampling technique of the MsFEM) that we shall define in Def.4.4.The latter is not always a simplex, and we extend Def.4.2 to such oversampling patches in Def.4.5 and 4.6.Definition 4.2.A degree of freedom operator (DOF operator) Γ associates to any simplex K ⊂ R d and v ∈ P 1 (K) a vector Γ(K, v) ∈ R d+1 , whose components are called the degrees of freedom of v on K, in such a way that the application v → Γ(K, v) is a linear bijection from P 1 (K) to R d+1 .More precisely, Γ(K, •) will denote in the sequel one of the following two operators:

1381. (DOF operator for the MsFEM-lin.)Let x 0 , . . ., x d denote the vertices of K. We set

139for a vertex x of the mesh that lies on ∂Ω.

1402. (DOF operator for the MsFEM-CR.)Let e 0 , . . ., e d denote the faces of K. We set

141For K ∈ T H , the degree of freedom [Γ CR (K, •)] j is said to be associated to the boundary

142for a face e of the mesh that lies on ∂Ω.

143The P 1 test space is defined as

144•)] j is associated to the boundary, .

145The P 1 test space is used in practice to approximate the subspace H 1 0 (Ω) of H 1 (Ω).The degrees of freedom are defined element per element and are thus local.Global properties of the underlying P 1 space V H are most easily made explicit through the identification of a basis for V H . Definition 4.3.Let V H be an underlying P 1 space as in Def.4.1, and let Γ be the associated DOF operator.We shall denote by N the dimension of V H .The P 1 basis functions φ P 1 1 , . . ., φ P 1 N are defined as follows:

146• For the MsFEM-lin, let x 1 , . . ., x N be an enumeration of the (internal and boundary) vertices of T H . Then φ P 1 i is defined by φ P 1 i (x j ) = δ i,j for all 1 ≤ i, j ≤ N .

147• For the MsFEM-CR, let e 1 , . . ., e N be an enumeration of the (internal and boundary) faces of T H . Then φ P 1 i is defined by

148In both cases, these functions form a basis of the corresponding space V H of Def.4.1.

Oversampling patches

149To replace the (standard) underlying P 1 space by a space of the same (low) dimension, adapted to the microstructure of a ε , we associate to each mesh element K ∈ T H an oversampling patch.It serves to avoid imposing artificial, non-oscillatory boundary conditions on K directly when computing numerical correctors to process the microstructure.

150Definition 4.4.Let K ∈ T H be any mesh element and let S ′ K be a simplex obtained from K by homothety around the centroid of K with homothety ratio ρ ≥ 1.The oversampling patch S K is defined as S K = S ′ K ∩ Ω. See Fig. 1 for an illustration of the construction of oversampling patches in dimension 2. In this work, we allow for the trivial homothety ratio ρ = 1.In this case, the patch S K coincides with K.

151We will call an MsFEM without oversampling an MsFEM for which all oversampling patches satisfy S K = K.Otherwise, the MsFEM is called an MsFEM with oversampling.We speak simply of an MsFEM when there are no assumptions on the oversampling patches.

152Figure 1: Oversampling patches for MsFEM in 2D.Left: the patch for the mesh element K is obtained from K by homothety.Right: The triangle S ′ K partially lies outside the domain Ω and the oversampling patch S K is not homothetic to K. It is not even a triangle.

153For most mesh elements K, the patch S K in Def.4.4 is a simplex.However, for mesh elements close to the boundary ∂Ω, alternative constructions should be considered.We have not found any explicit description of such a construction in the literature.This complicates the reproducibility of the method as well as a rigorous convergence analysis.The precise definitions of this section provide a first step to address these issues.A fully rigorous convergence analysis of the MsFEM with oversampling as described here is the subject of ongoing investigations [11].

Degrees of freedom on oversampling patches

154Definition 4.2 provides the definition of DOF operators on any simplex.For the MsFEM, we wish to compute multiscale functions on oversampling patches S K , in which case Def.4.2 may be insufficient.We illustrated this in Fig. 1b.Indeed, the number of vertices/faces of the oversampling patch may be larger than d + 1.In order to associate a multiscale basis function to every P 1 basis function, we will still need a notion of DOF operator such that Γ(S K , •) is a linear bijection from P 1 (S K ) to R d+1 .Therefore, we extend the definition of the degrees of freedom operators Γ L and Γ CR in Def.4.5 and 4.6.Definition 4.5.Let K ∈ T H and let S K be its associated oversampling patch.Let x 0 , . . ., x d be a selection of d + 1 distinct vertices of S K .We define the DOF operator Γ L by

155We note that any choice of d + 1 nodal values unequivocally characterizes an affine function on S K .Hence, Γ L (S K , •) is indeed a bijection.Since Γ(S K , •) will only be used to identify elements of P 1 (S K ) on the boundary of S K , the particular choice of the vertices x 0 , . . ., x d is unimportant in the above definition.Finally, when S K is a simplex, it has only d + 1 vertices and Def.4.5 reduces to Def. 4.2.

156To generalize the notion of degrees of freedom for the Crouzeix-Raviart space to non-simplicial patches, we need to introduce some additional notation.On the boundary of a non-simplicial oversampling patch, we can identify some faces that collapse to a single vertex if we shrink S K to K. We call these faces the additional faces and denote the set containing them by F a (S K ).The other faces of S K are referred to as the dilated faces, collected in the set F d (S K ).When the patch S K does not touch ∂Ω, we have F d (S K ) = F (S K ) and F a (S K ) = ∅.In Fig. 2a, for example, the additional faces are exactly those faces that lie on ∂Ω.This is not always the case, as is illustrated by Fig. 2b.

157For the definition of Γ CR (S K , •), we shall rely on the existence of d + 1 dilated faces, because we need Γ CR (S K , •) to be a bijection between P 1 (S K ) and R d+1 .This imposes a constraint on the choice of the homothety ratio used to construct S K .For example, in the case of Fig. 2a, the lower right dilated face falls outside Ω if the homothety ratio is too large, and the oversampling patch S K only has two dilated faces (edges here) and two additional faces.

158Figure 2: Non-simplicial oversampling patches in 2D.The dilated edges of the patch S K , those that 'correspond' to the edges of the original triangle K, are dashed.Definition 4.6.Let K ∈ T H and let S K be its associated oversampling patch.We assume that S K has d + 1 dilated faces, and we denote hem by e 0 , . . ., e d .We define the DOF operator Γ CR by

159When S K is a simplex, we have F d (S K ) = F (S K ), and Def.4.6 coincides with the respective elements of Def.4.2.

Numerical correctors: first oversampling strategy

160We now provide the precise assumptions under which we will consider local problems, i.e., the analogues of ( 5) defining the MsFEM-lin basis functions and the definition of the numerical correctors in (11).In fact, since the numerical correctors play an essential role in the construction of nonintrusive MsFEM approaches, we define the numerical correctors first and use them to define the multiscale basis functions in Def.4.11.

161The two possible functional settings for all these constructions are provided by Def.4.7 and 4.9.Both definitions present a different implementation of the oversampling technique.These definitions involve a 'sampling space', whose name is inspired by the idea that only a limited number of local problems will be solved to encode the microstructure of the PDE in the numerical model.The choice of sampling space has to accommodate for the boundary conditions that one wishes to impose on the numerical correctors and basis functions (e.g.essential or natural; see Examples 4 and 5).Definition 4.7.Let K ∈ T H , let S K be its associated oversampling patch and let Γ be a DOF operator from Def. 4.2.A subspace V K of H 1 (S K ) and bilinear form s ε K : V K × V K → R are called sampling space and sampling form, respectively, if they satisfy the following:

1621. the space V K contains the space of affine functions P 1 (S K ); 2. the operator Γ(S K , •) is well-defined on V K ; 3. the DOF -extended local problem: find v ∈ V K such that

163has a unique solution for any g ∈ (H 1 (S K )) ′ .Here,

164Problem ( 28) is called 'DOF -extended' because the degrees of freedom, controlling the boundary conditions associated to the local problem, are imposed on the oversampling patch S K rather than the (generally smaller) mesh element K.

165The sampling form s ε K shall be used to encode the oscillations of the bilinear form a ε and thus the microstructure of the problem in the multiscale finite element functions.There is some flexibility in choosing the sampling form; one may to choose to include all the same terms as those in the bilinear form a ε K of the original problem (26), or only some of them.When the MsFEM was first proposed in [29], it was suggested that s ε K should include those terms that correspond to the highest-order terms of the PDE that is to be solved.In the context of the advection-diffusion equation, one may thus choose to include only the diffusion terms, but also the advection term can be included in our MsFEM framework.Both options have been studied e.g. in [39,40].

166In the functional setting of Def.4.7, the generalization of (11) to define the numerical correctors for the general MsFEM framework is as follows.

167Definition 4.8.We introduce for all K ∈ T H , for any 0 ≤ α ≤ d, the function χ ε,α,e S K ∈ V K,0 as the unique solution to the corrector problem

168The DOF -extended numerical corrector χ ε,α,e K is defined as the restriction of χ ε,α,e S K to K, extended to all of Ω by 0. Note that the above definition introduces one more numerical corrector than introduced in (11).The precise definition of the numerical correctors is chosen such that the analogous expansion of (11) for the general framework (see (33)) leads to a PDE for the multiscale basis functions analogous to (5); we show this in Lemma 3 and (for a second oversampling strategy introduced below) in Lemma 4. In the following example, we see that Def.4.8 is indeed a generalization of the numerical correctors defined by (11) in Sec.2.4.

169Example 4 (MsFEM-lin for diffusion problems).We consider V H = V L H and Γ = Γ L from Def. 4.2.For the diffusion problem (1), we have a ε = a ε,diff and we set

170. The sampling space for the MsFEM-lin is defined as

171Then the sampling test space V L K,0 is the space H 1 0 (S K ).In this case, it holds a ε,diff K (1, w) = 0 for all w ∈ V L K,0 .Consequently, the DOF -extended numerical corrector χ ε,0,e K is identically equal to 0; we obtain indeed exactly d numerical correctors as in Sec.2.4.For the non-trivial numerical correctors, Def.4.8 corresponds to the weak formulation of the following boundary value problem:

172which is clearly well-posed.

173Example 5 (MsFEM-CR for diffusion problems).Taking a ε , a ε K and s ε K as in the previous example, we construct the MsFEM-CR with the sampling space

174where n denotes the outward unit vector on ∂S K and c h is a constant whose value is uniquely determined by the above problem.We note that the condition for the flux on the additional faces of S K is entirely determined by the right-hand side in (29), whereas the flux on the dilated faces of S K involves an additional constant, due to the fact that the test functions in V CR K,0 cannot take arbitrary values on the dilated faces.Indeed, their mean vanishes on these faces according to Def. 4.7.

175When S K = K and when the faces of K do not lie on ∂Ω, this corresponds to the setting of the original MsFEM-CR defined in [38].The latter work also provides an alternative characterization of the multiscale Crouzeix-Raviart space.When a face e of K lies on Ω, the basis functions that we will obtain do not satisfy φ ε e = 0 on e, but only satisfy a weak boundary condition in the average sense on e.This does not correspond to the original definition of the MsFEM-CR in [38,37].The MsFEM-CR with local boundary conditions as defined here was studied in [17,42,34].

176When S k = K (i.e., in the absence of oversampling), the DOF operator allows us to prescribe certain continuity properties on the faces of the mesh elements K.More precisely, when the MsFEMlin with DOF operator Γ L is employed, the numerical correctors χ ε,α,e K vanish at the vertices of the mesh, and, with the correct choice of sampling space (see Example 4), they vanish on all faces of K and are thus continuous on Ω.When the MsFEM-lin with DOF operator Γ CR is considered, we obtain weak continuity of the numerical correctors over all faces of the mesh.The definition of the multiscale basis functions that we give below (see Def. 4.11, in the vein of the expansion ( 10)) shows that this means that the continuity properties of the P 1 basis functions of the underlying P 1 space are not perturbed when building the multiscale basis functions.

177In the general case, when the oversampling patch S K is larger than K, we cannot preserve any of these continuity properties if we use DOF -extended local problems for our local computations, since the values on ∂K are not controlled by the degrees of freedom Γ(S K , •) on ∂S K .Therefore, we introduce another variant of the local problems and the DOF -extended numerical correctors in the next section.

Numerical correctors: second oversampling strategy

178Definition 4.9.Let K ∈ T H and let V K and s ε K be a sampling space and sampling form, respectively, according to Def. 4.7.Additionally, suppose that the operator Γ(K, •) is well-defined on V K .Then a DOF -continuous local problem is to find v ∈ V K such that

179for some g ∈ (H 1 (S K )) ′ .

180Definition 4.10.Suppose any DOF -continuous local problem in Def.4.9 is well-posed.Then we introduce, for all K ∈ T H and all 0 ≤ α ≤ d, the functions χ ε,α,c S K as the unique functions in V K with Γ K, χ ε,α,c S K = 0 satisfying the corrector problem (29).We define the DOF -continuous numerical correctors χ ε,α,c K as the restriction of χ ε,α,c S K to K, extended to all of Ω by 0. We emphasize that the local problems of Def.4.7 and 4.9 use test functions w in the same space V K,0 .This means that the test functions satisfy Γ(S K , w) = 0, rather than Γ(K, w) = 0. Remark 3. Clearly, when S K = K, there is no difference between the DOF -extended and DOF -continuous problems (28) and (31).We shall in this case simply refer (28) (or (31)) as local problems, and we write χ ε,α,• K = χ ε,α K for the numerical correctors of MsFEMs without oversampling.

181Example 6 (MsFEM-lin for diffusion problems).Continuing Example 4, consider now the DOFcontinuous numerical corrector χ ε,α,c K .Equation (36) solves the following problem: there exists w ∈ P 1 (S K ) such that

182The boundary condition on ∂S K is 'completed' by a condition at the vertices of K. Except when A ε is constant (and, consequently, φ ε i is affine on S K ), it is not evident whether a solution to this problem exists.

183Example 7 (MsFEM-CR for diffusion problems).For the MsFEM-CR considered in Example 5, the DOF -continuous numerical correctors satisfy the same problem (30) as the DOF -extended numerical correctors, but with the average condition replaced by

184As we saw for the MsFEM-lin, this is not a standard boundary value problem on S K .

185Examples 4 and 5 show that a DOF -extended local problem is typically equivalent to a PDE with boundary conditions on S K .Under reasonable assumptions, these problems have a unique solution as required by Def.4.7.This is not the case for DOF -continuous problems, for which one finds some boundary conditions on ∂S K (because the degrees of freedom of test functions in V K,0 are prescribed on S K ) and another set of conditions on ∂K that are explicitly imposed through the degrees of freedom on K in (31).Well-posedness is not obvious in general, and cannot always be deduced from well-posedness of the DOF -extended counterpart (28).See Examples 6 and 7 for concrete local problems.We now address the well-posedness of DOF -continuous problems in more detail in Sec.4.3.5.

Well-posedness of DOF-continuous numerical correctors

186We have seen in Examples 6 and 7 that DOF -continuous local problems lead to non-standard boundary conditions.This poses not only a theoretical issue, but also a computational challenge.To complete our study of the general MsFEM framework, we now present a computational strategy to obtain the DOF -continuous numerical correctors, and we use this strategy to discuss the wellposedness of the associated local problems.

187In Def.4.7 we assume the well-posedness of DOF -extended problems, and we have seen in Examples 4 and 5 that this is a natural assumption.It is also natural to assume that we can compute DOF -extended numerical correctors numerically.We compute the DOF -continuous numerical correctors from the DOF -extended numerical correctors, by subtracting a linear combination of suitable functions W β from the DOF -extended numerical correctors.The W β must all satisfy the homogeneous equation s ε K W β , w = 0 for all w ∈ V K,0 , in order not to perturb the local problem (29) that is already satisfied by both types of numerical correctors.We shall use the functions W 0 := 1 + χ ε,0,e S K and W β := x β − x β c,K + χ ε,β,e S K for 1 ≤ β ≤ d, where χ ε,β,e S K is defined in Def.4.8.The precise strategy is as follows.

188Fix 0 ≤ α ≤ d.We look for coefficients c α 0 , . . ., c α d such that χ ε,α,c

189where we recall that χ ε,α,c S K is defined by Def.4.10.Note that both sides of the equation clearly satisfy (29).The desired equality thus holds if and only if Γ

190Since the DOF operators are linear, this leads to the linear system

191Invertibility of the matrix M is thus a sufficient condition for the existence of all DOF -continuous numerical correctors, and the resolution of the linear system (32) for each α (where all DOFextended numerical correctors are replaced by their numerical approximation) allows to compute the DOF -continuous numerical correctors numerically.Before studying the invertibility of the matrix M in a few special cases, let us consider the matrix composed of the degrees of freedom on S K , i.e., the matrix

192By definition of the functions χ ε,β,c S K , we have Γ(S K , W β ) = Γ(S K , x β − x β c,K ) for 1 ≤ β ≤ d, and Γ(S K , W 0 ) = Γ(S K , 1).Note that the constant function together with the coordinate functions

193) is a bijection, the vectors Γ(S K , W 0 ), . . ., Γ(S K , W d ) are linearly independent.Hence the matrix M is invertible.One may hope that the linear independence of the vectors Γ(S K , W β ) is preserved for the degrees of freedom on the interior boundary ∂K instead of ∂S K , yielding invertibility of M. We found this to hold for all numerical tests that we performed, involving both the MsFEM-lin and the MsFEM-CR.

194We can prove invertibility of M in a few special cases.When s ε K is the sampling form that was used in Example 4 (corresponding to a diffusion problem; we will consider this case until the end of this section) and if A ε is constant, all numerical correctors vanish on S K and the foregoing argument for the matrix M shows invertibility of M.

195In the periodic setting (see Sec. 2.7), even though A ε itself is not constant, its homogenized limit A * is.In this case, the χ ε,β,e S K converge to zero weakly in H 1 (S K ).(We show this in Lemma 13 in the absence of oversampling, but the argument can be generalized to DOF -extended oversampling.)Now consider the MsFEM-CR.The weak convergence of the χ ε,β,e S K in H 1 (S K ) ensures weak convergence on each face of K in the H 1/2 -norm by continuity of the trace operator.Since the embedding of H 1/2 (∂K) in L 2 (∂K) is compact, the χ ε,β,e S K converge to 0 strongly in L 2 on each face of K. Consequently, the degrees of freedom Γ(K, χ ε,β,e S K ) (the averages on the faces of K) converge to zero as ε → 0. Thus, Γ(K, W 0 ) → Γ(K, 1) and Γ(K, W β ) → Γ(K, x β − x β c,K ) as ε → 0 for all 1 ≤ β ≤ d and, by the above argument for the matrix M, the matrix M is invertible in this limit.By continuity of the determinant function, the matrix M is invertible when ε is small enough, and the DOF -continuous basis functions exist in this regime.

196The study of the DOF -continuous numerical correctors for the MsFEM-lin is more delicate, since pointwise operations are involved in evaluating the degrees of freedom, which are ill-defined on H 1 (S K ).One can invoke the De Giorgi-Nash result, which can be found e.g. in [25,Theorem 8.22], to see that the multiscale basis functions, obtained from the numerical correctors in Def.4.11 below, are in fact continuous for any bounded diffusion tensor.(See Example 8 for a definition of the multiscale basis functions for the MsFEM-lin independent of the numerical correctors.)Pointwise evaluation is then justified.It would therefore be convenient to study the DOF -continuous basis functions directly, without the intermediate step of the numerical correctors.We omit the details here.

The multiscale basis functions

197We can now define the multiscale basis functions for the approximation of the abstract problem (26) in terms of the numerical correctors.We recall that in Sec.2.2, the numerical correctors were derived from the definition of the basis functions.We give an equivalent definition of the multiscale basis functions, independent of the numerical correctors, in Lemmas 3 and 4. Recall that φ P 1 1 , . . ., φ P 1 N is a basis of the space V H (see Def. 4.3).We can suppose that the first N 0 basis functions form a basis of V H,0 .The following definition is the generalization of (10) to the general MsFEM framework.Definition 4.11.For each i = 1, . . ., N , the multiscale basis function φ ε i is defined by

198where • = e corresponds to DOF -extended multiscale basis functions and • = c corresponds to DOF -continuous multiscale basis functions.

199The DOF -extended multiscale basis functions satisfy the variational formulation in the following lemma on the oversampling patches S K .Lemma 3. Let K be any mesh element and let 1 ≤ i ≤ N .Consider an MsFEM with DOF-extended basis functions.Define an extension of φ ε i from K to S K by

200where φ P 1 i K denotes the affine extension of φ P 1 i K to S K , and χ ε,α,e K is as in Def.4.8.Then

201In the case of the MsFEM-lin for the diffusion problem (1), problem (35) with S K = K coincides with the definition of the multiscale basis functions in (5); see Example 8.

202Proof.Problem (35) has a unique solution in view of Def.4.7.It thus suffices to show that φ ε i satisfies (35).Since the numerical correctors χ ε,α,e K belong to V K,0 for all 1 ≤ α ≤ N , it is clear from (35)

203Inserting (34) into (35) and applying ( 29) to all χ ε,α,e K , we find, for any test function w ∈ V K,0 ,

204Here we use that s ε K is a bilinear form on V K , that all piecewise affine functions are contained in V K according to Def. 4.7, and the property that ∇φ P 1 i is piecewise affine.Finally, we use ( 19) for ϕ = φ P 1 i to conclude that

205which establishes the desired variational formulation satisfied by φ ε i .

206If the DOF -continuous problems (31) are well-posed, we obtain by the same analysis the following result for DOF -continuous multiscale basis functions.

207where χ ε,α,c K is as in Def.4.10.Then

208Example 8 (MsFEM-lin for diffusion problems).In the setting of Example 4, any DOF -extended multiscale basis function φ ε i for the MsFEM-lin constructed in ( 35) is obtained, in each mesh element K, as the restriction of a function φ ε i , which is the unique solution in H 1 (S K ) to

209For a DOF -continuous basis function, φ ε i solves the same PDE in S K , is affine on ∂S K , and satisfies φ ε i (x j ) = φ P 1 i (x j ) at all vertices x j of K.

210Example 9 (MsFEM-CR for diffusion problems).In the continuation of Example 5, the DOFextended multiscale basis function φ ε i for the MsFEM-CR is the restriction to K of φ ε i , the unique solution in H 1 (S K ) to

211where the constants c h are uniquely determined by the problem.For DOF -continuous basis functions, the last condition is applied to the faces h ∈ F (K) (and all other conditions remain unchanged).

212Our general framework allows two characterizations of the multiscale basis functions, namely ( 33) and ( 35) or (36), as was the case for the MsFEM studied in Sec.2.2 (where φ ε i is given by ( 5) or ( 10)).The essential advantage of ( 33) is that the microscale is fully encoded in the numerical correctors χ ε,α,• K , that can be computed element per element without any global information.In particular, the global index i of the multiscale basis function φ ε i is irrelevant for the computation of the numerical correctors.The expression in ( 33) is therefore the crucial relationship that we will employ to develop non-intrusive MsFEMs within the general framework in Sec. 5.

213The second formulation of the multiscale basis functions, as solutions to the local problems ( 35) or (36), provides a more direct interpretation of the multiscale basis functions in terms of the sampling form chosen.It also gives a relation between the degrees of freedom of the P 1 basis functions and the associated multiscale basis function.This is useful in particular for the wellposedness of the MsFEM, that we study in Lemma 5.

214Remark 4. Our definition of the multiscale basis functions in (33) is reminiscent of the Variational Multiscale Method, a framework developed in [32,33] to adapt Galerkin approximations on lowdimensional spaces to the presence of multiscale features.In this context, our formulation of the MsFEM also exhibits a link with residual-free bubbles, see e.g.[14,13,33].

215Remark 5.The first introduction of the MsFEM in [29] corresponds to the idea of oversampling with DOF -continuous basis functions.Although their existence cannot be established in general, they are computed numerically by taking linear combinations of DOF -extended basis functions (following an analogous strategy to the one we discussed in Sec.4.3.5).The MsFEM with DOFextended basis functions is studied in the works [20,30] dealing with the convergence analysis of the MsFEM-lin with oversampling.Let us also note that the combination of Crouzeix-Raviart MsFEM and oversampling has, to the best of our knowledge, not yet been proposed in the literature.This method, for which the basis functions are given explicitly in Example 9, is a natural by-product of the identification of the abstract MsFEM framework.

The global problem

216We can now define the multiscale trial and test spaces, respectively V ε H and V ε H,0 , as follows:

217Note that we only use V ε H,0 in the present section, because ( 26) is posed with homogeneous Dirichlet conditions, but that the larger space V ε H is used for more general boundary conditions (see Sec. 5.3).

218Applying (33), we have the equivalent characterization in terms of the P 1 space V H ,

219Definition 4.12.Let V H be an underlying P 1 space defined in Def.4.1 with the associated DOF operator Γ from Def. 4.2 and Def.4.5-4.6.Define for each mesh element K ∈ T H an oversampling patch (Def.4.4), a sampling space and sampling form in accordance with Def.4.7.

220Let the multiscale basis functions φ ε i be given as in Def.4.11.Then a Multiscale Finite Element Method (MsFEM) for problem (26) is: find

221In the following lemma, we investigate the well-posedness of the MsFEM.

222Lemma 5. Consider an MsFEM without oversampling, or an MsFEM with oversampling using DOF-continuous basis functions (assuming the associated basis functions are well-defined).When a ε satisfies (27), the MsFEM (37) has a unique solution.

223Proof.Note that, with DOF -continuous oversampling, but also without oversampling, the multiscale basis functions satisfy (36).In particular, all degrees of freedom of u ε H related to the boundary vanish.Also note that, the dimension of V ε H,0 being finite, it suffices to show that u ε H = 0 is the unique solution to problem (37) with

224Because of (36), we have Γ(K, u ε H ) = Γ(K, u H ) for all mesh elements K. Since u ε H is piecewise constant and Γ(K, •) is a bijection from P 1 (K) to R d+1 (recall Def.4.2), it follows that u ε H = u H .In particular, the multiscale function u ε H in fact belongs to the underlying P 1 space V H .We remarked immediately below Def.4.1 that, for either of the two spaces V H = V L H or V CR H , the above implies that u ε H is constant throughout Ω.Since the degrees of freedom of u ε H associated to the boundary vanish, we readily deduce that u ε H = 0.

225We do not know of the existence of a result on the well-posedness of MsFEMs with oversampling using DOF -extended multiscale basis functions.In [30], the authors establish an inf-sup result for a variant of the MsFEM-lin-OS with P 1 test functions (see also Def. 5.1).This result is obtained for a periodic diffusion coefficient in the limit of sufficiently small ε.

Non-intrusive MsFEM for the general framework

226We show in this section how to develop a non-intrusive approach for the general MsFEM framework of Sec. 4. We have seen in Lemma 2 that for a particular MsFEM variant, the non-intrusive Galerkin MsFEM approach coincides with a Petrov-Galerkin MsFEM.This does not hold for all MsFEMs in the general framework.We first develop a non-intrusive MsFEM approach for a Petrov-Galerkin MsFEM in the general framework.The non-intrusive approach for the Petrov-Galerkin MsFEM is equivalent to the Petrov-Galerkin MsFEM itself.In a second step, we introduce a non-intrusive approximation of the Galerkin MsFEM.Before doing so, let us summarize the main steps of Sec.2.4 and 2.5 to obtain a non-intrusive MsFEM approach:

227(1) the expansion (10) allows to recast the matrix A ε of the linear system for the MsFEM as the matrix A P 1 associated to the P 1 discretization of an effective problem;

228(2) we approximate the right-hand side F ε of the MsFEM problem by the right-hand side F P 1 of this P 1 discretization;

229(3) the post-processing step (20) applied to the P 1 approximation of the effective problem yields the MsFEM approximation.

The Petrov-Galerkin MsFEM

230We recall that the abstract continuous problem for which we developed the MsFEM in Sec. 4 is given by (26) and that it can be rewritten in terms of the bilinear forms a ε K satisfying (27).Petrov-Galerkin variants of the multiscale finite element method with P 1 test functions were previously studied in [30,28].In our general MsFEM framework, the adaptation of Def.4.12 to a Petrov-Galerkin MsFEM is the following.Definition 5.1.Let V H be an underlying P 1 space defined in Def.4.1 with the associated DOF operator Γ from Def. 4.2 and Def.4.5-4.6.Define for each mesh element K ∈ T H an oversampling patch (Def.4.4), a sampling space and sampling form in accordance with Def.4.7.Let the multiscale basis functions φ ε i be given as in Def.4.11.Then a Petrov-Galerkin Multiscale Finite Element Method (PG-MsFEM) for problem (26)

231When confusion may arise, we shall refer to the MsFEM defined in Def.4.12 as the Galerkin MsFEM (G-MsFEM).To study well-posedness of the PG-MsFEM, it is most convenient to relate this method to the G-MsFEM.Therefore, we postpone well-posedness of (38) to Lemma 8.

232We now execute step (1) of the summary of the non-intrusive MsFEM approach at the beginning of this section.The matrix A ε of the linear system associated to (38) is defined by

233To find an effective P 1 formulation with the same linear system, we will use the definition (33) of the multiscale basis functions in the general framework, but first we combine it with (19) applied to ϕ = φ P 1 i to rewrite (33) as

234where Λ ε,0

235K , for all 1 ≤ α ≤ d and each K ∈ T H .We recall that • ∈ {e, c} indicates the choice of DOF -extended or DOF -continuous basis functions.Inserting (40) into (39) for φ ε i and ( 19) for ϕ = φ P 1 j yields

236where we have defined the effective mass M , (adjoint) advection vector B 1 and B 2 , and the effective diffusion tensor A, for all 1 ≤ α, β ≤ d and for each K ∈ T H , as

237Note that all integrals in (41) can be computed exactly by evaluating the integrand at the centroid.With this quadrature rule, we observe that the term |K| M φ P 1 i φ P 1 j (x c,K ) also equals the numerical approximation of the integral K M φ P 1 i φ P 1 j .The new expression (41) for the matrix of the linear system motivates us to introduce the effective bilinear forms a K defined on

238and the associated P 1 Galerkin approximation on the space V H,0 :

239This discrete problem leads to a linear system with the matrix

240The identity (41) thus implies the following result, which generalizes Lemma 1 to the PG-MsFEM in the general framework.

241Lemma 6.The matrices A ε and A P 1 are identical if the integrals in (43) are evaluated at the centroid of each K for the computation of A P 1 .Then the PG-MsFEM (38) coincides with the resolution of the effective problem (44) combined with the post-processing step

242Note that step (2) of the summary at the beginning of this section is irrelevant for the PG-MsFEM.The computation of the right-hand side in (38) is clearly part of any standard FEM software.

243The computational approach described by Lemma 6 naturally fits within the non-intrusive workflow of Algorithm 2. The numerical correctors on line 4 are, of course, replaced by those of Def.4.8 or Def.4.10.Line 6 is replaced by the computation of all effective quantities in (42).The online phase in line 8 amounts to solving the P 1 problem (44), where all integrations to construct the matrix of the linear system are to be performed by evaluation at the centroid.(This is not the case for the construction of the right-hand side, however.)Finally, in the post-processing phase we construct u ε H from u H by virtue of ( 45).Next we generalize the above expansions to design a non-intrusive approximation of the G-MsFEM.

The non-intrusive Galerkin MsFEM

244For the G-MsFEM (introduced in Def.4.12), we need to replace the P 1 test space of the PG-MsFEM by the multiscale test space V ε H,0 .The matrix of the linear system associated to (37) is given by

245Upon inserting (33) for the test function φ ε j , we find, for all 1 ≤ i, j ≤ N 0 ,

246where A ε is the matrix of the Petrov-Galerkin MsFEM, see (39) and ( 41).An effective formulation can again be derived by inserting (40) for the φ ε i .We obtain

247where the effective mass, (adjoint) advection vectors and diffusion tensor are given by (using those defined in (42))

248The above computations lead to the introduction of the effective bilinear form

249We formulate the following effective variational problem:

250The associated linear system has coefficients A P 1 ,G j,i = a G φ P 1 i , φ P 1 j .We have the following analogue of Lemma 6, which generalizes Lemma 1 to the G-MsFEM in the general framework.

251Lemma 7. The matrices A ε,G and A P 1 ,G are identical if the integrals in (48) are evaluated at the centroid of each K in the computation of A P 1 ,G .

252Contrary to the matrices, the right-hand sides of the effective problem (49) and the Galerkin MsFEM (37) are not equal in general.We apply step (2) formulated at the beginning of this section: the right-hand side of the G-MsFEM is approximated by the right-hand side of the effective problem to obtain an approximate, but non-intrusive, MsFEM.The non-intrusive G-MsFEM becomes:

253This problem is no longer a Galerkin approximation of (1), because different test spaces are used for the bilinear and for the linear form.In view of Lemma 7, the non-intrusive MsFEM can equivalently be formulated as compute u H ∈ V H,0 solution to (49) and compute u ε H from u H by ( 45), provided all integrals in (48) are evaluated at the centroid for the construction of the matrix of the linear system in (49).The latter formulation of the non-intrusive MsFEM immediately suggests how to effectively implement the non-intrusive MsFEM in a non-intrusive way similar to Algorithm 2. For completeness, we provide the algorithm for the non-intrusive G-MsFEM in Algorithm 3.

Algorithm 3 Non-intrusive G-MsFEM for the general framework

2541: Let T H be the mesh used by the legacy code, let • ∈ {e, c} be the chosen oversampling variant Compute the effective tensors defined in (47) 7: end for 8: Use the legacy code to construct the matrix A P 1 by evaluating (48) at the centroid of each mesh element and to solve for u H defined by (49)

255The discussion surrounding Algorithm 2 regarding the advantages for the implementation of this non-intrusive MsFEM approach also applies here.

256Let us now comment on the well-posedness of the MsFEMs for the general framework introduced above.We recall that the hypotheses of the general framework without oversampling, or with DOFcontinuous oversampling, provide well-posedness of the G-MsFEM (37) by Lemma 5.In this case, the non-intrusive approximation (50) is also well-posed, for the matrices associated to both MsFEM variants are the same.Regarding the PG-MsFEM (38), we can only establish well-posedness if the associated matrix coincides with the matrix of the corresponding Galerkin MsFEM.This is stated in the following lemma, which generalizes Lemma 2 to the general framework.Lemma 8. Consider a G-MsFEM as defined by Def.4.12 without oversampling and suppose that the sampling form s ε K equals the local bilinear form a ε K .Then the matrix associated to this G-MsFEM coincides with the matrix associated to the corresponding PG-MsFEM of Def.5.1.Consequently, the non-intrusive Galerkin MsFEM (50) coincides with the Petrov-Galerkin MsFEM of Def.5.1 and in particular, The Petrov-Galerkin MsFEM is well-posed.Proof.To prove the lemma, we show that the matrices corresponding to the linear problems defined in (50) and (38) are equal.Using s ε K = a ε,diff K , we have for all 1 ≤ i, j ≤ N 0 ,

257Indeed, the multiscale basis functions satisfy Γ(K, φ ε i ) = Γ(K, φ P 1 i ) for all K, so that φ ε j − φ P 1 j ∈ V K,0 (see (35) with S K = K and recall Def.4.7 for the sampling test space V ε K,0 ), and the variational problem in (35) (with S K = K) shows that the above quantity vanishes.

Further extensions of the non-intrusive MsFEM

258We sketch some other FEM settings to which we have applied the above strategy to develop nonintrusive MsFEM approaches.For more details, we refer to [11].

259Stabilized finite element formulations.Stabilized finite element formulations add meshdependent terms to a discrete variational formulation (such as (37)) to remove numerical instabilities, for example caused by sharp boundary layers of the exact solution.See [39] for such a variant of the MsFEM and see [15,31,46] for the stabilization of single-scale problems.The expansion (40) can also be inserted in these additional terms to find a non-intrusive implementation of the associated MsFEM.

260Petrov-Galerkin formulations.Other test spaces than the P 1 space V H,0 can be considered in Petrov-Galerkin formulations.An example would be to use multiscale test functions that locally solve the adjoint problem rather than the direct problem that is used for the multiscale functions in (5).See e.g.[23].An expansion of the kind (40) can still be used to find a non-intrusive formulation, with a suitably adapted definition of the numerical correctors.

261Non-homogeneous Dirichlet conditions.Suppose that a legacy FEM code can provide a solution to an effective problem such as (15) posed on the space V H,0 and complemented with non-homogeneous Dirichlet conditions on ∂Ω.This solution can directly be used to construct a multiscale approximation u ε H ∈ V ε H from (45).The translation of the Dirichlet condition to the MsFEM approximation is as follows: if DOF -continuous oversampling is applied, the function

262] j for all degrees of freedom associated to the boundary.Here, [Γ(K, u H )] j is determined by the legacy code.When DOF -extended oversampling is used, the degrees of freedom associated to the boundary are equal to the sum of [Γ(K, u H )] j and a perturbation due to the fact that the degrees of freedom of the numerical correctors do not vanish.

263Neumann conditions.To apply Neumann conditions on ∂Ω, one solves a Galerkin approximation of the variational formulation in the space V ε H .The suitable adaptation of (37) can be approximated by a non-intrusive Galerkin MsFEM following the same methodology as above.The effective P 1 approximation that is obtained corresponds to the resolution of an effective PDE with Neumann conditions, for which a legacy code can be used.In the case of the diffusion problem (1), the Neumann boundary condition in the effective problem is imposed on the effective flux n • A∇u H , where A is defined in (12).

264Parabolic equations.When a parabolic equation is discretized in time, problems of the form (26) are typically obtained for each time step, but with a right-hand side that depends on the solution of the previous time step.This term belongs to the space V ε H , so it varies on the microscale and cannot be integrated numerically by the legacy code that operates on the coarse mesh.The non-intrusive strategy of the foregoing sections cannot be applied directly to find a non-intrusive MsFEM.In the vein of our non-intrusive approach, one could introduce an additional approximation upon replacing the multiscale solution of the previous time step by its underlying P 1 in (40).The effect of this approximation is beyond the scope of the present work.

Intrusiveness of other multiscale methods

265Some work on the formulation of effective P 1 problems in multiscale methods, and the related question of non-intrusive approaches, can be found in the literature.We discuss here the case of the HMM and the LOD method.

266First, the HMM is less intrusive than the original MsFEM, because its main objective is to approximate u ε on the coarse scale.The HMM directly proposes to solve a P 1 problem on the coarse scale, where effective coefficients of the P 1 problem are defined in terms of the solutions to local problems.This workflow corresponds to our non-intrusive MsFEM approach, and when the local problems of the HMM coincide with the computation of the numerical correctors introduced in this work, the HMM and the MsFEM for the pure diffusion problem are identical.For more general problems, there is an important difference between the two methods.In the MsFEM, the form of the effective equation and the definition of the effective coefficients follows directly from the choice of basis functions, and thus from the choice of local problems.For the HMM, the local problems and the effective equation are formulated independently, and the link between the two is only justified heuristically, drawing inspiration from homogenization theory.

267The LOD method aims at approximating u ε at the coarse and the microscale by the use of multiscale basis functions, like the MsFEM.It is shown in [24] that a Petrov-Galerkin LOD method (also see [21]) can, with some additional approximations, be recast as the P 1 discretization of an appropriate coarse-scale problem.This opens the way to non-intrusive implementations in the spirit of the present article.The LOD method and the MsFEM notably differ in the fact that the LOD basis functions are defined on a patch around the vertices of the mesh that should generally be taken larger than the support of the associated P 1 functions.In contrast, the MsFEM uses fully localized basis functions (even though they may have been computed using oversampling patches), each of which has the same support as the corresponding P 1 basis functions.

Comparison of the classical and non-intrusive MsFEM for diffusion problems

268We study in this section a particular setting within the general MsFEM framework, namely that of MsFEMs for diffusion problems.We set in this section a ε K = a ε,diff K defined in Example 2, and we choose the sampling form s ε K = a ε,diff K .

The general framework for diffusion problems

269For the convenience of the reader, we first give an explicit description of the simplifications of the general framework in the diffusion setting.In Def.4.8 and 4.10 for the numerical correctors, Equation ( 29) reduces to

270for all w ∈ V K,0 (where V K,0 is the sampling test space for either the MsFEM-lin or the MsFEM-CR; see Examples 4 and 5) when 1 ≤ α ≤ d, whereas χ ε,0,• S K = 0. (The notation χ ε,α K will be used in the absence of oversampling, see Rem. 3.) This means that Λ ε,0 K = 1 in (40).Consequently, regarding the formulation of the effective P 1 problem, only the effective diffusion coefficient does not vanish in (42) and (47).Its definition in (47) is identical to the formula in (12) for the applicable choice of the numerical correctors.

271The definition of the multiscale basis functions by (33) reduces to (10) (again upon replacing the numerical correctors χ ε,α K by the relevant ones for the MsFEM under consideration).Hence, we can associate a multiscale counterpart in V ε H to any v H ∈ V H , given by

272The non-intrusive MsFEM (50) becomes

273Lemma 8 now amounts to the following.

274Lemma 9. Let 'MsFEM' refer to the MsFEM-lin or the MsFEM-CR without oversampling.The non-intrusive Galerkin MsFEM (54) coincides with the following Petrov-Galerkin MsFEM:

275We will specify for all results in this section to which specific MsFEMs they apply among the MsFEM-lin and the MsFEM-CR, with or without oversampling.Lemmas 10, 11 and 16 are generalizations of results of [12], where the MsFEM-lin without oversampling is treated.

Convergence results

276We estimate here the difference between the solutions to the (intrusive) Galerkin approximation (37) and the non-intrusive MsFEM (54), which coincides with the Petrov-Galerkin MsFEM (55).We first show coercivity of the effective diffusion tensor A.

277Lemma 10.Consider the MsFEM-lin or the MsFEM-CR without oversampling, or the MsFEM-CR with DOF-continuous oversampling.The effective tensor A defined by (12) with the appropriate numerical correctors satisfies

278Here, m is the same coercivity constant as in (2).

279Proof.Let ξ = (ξ 1 , . . ., ξ d ) ∈ R d , and let K be any simplex of the mesh T H .We have

280Using an integration by parts, we see that

281where n is the unit outward normal vector on ∂K.In the case of the MsFEM-lin, the function χ ξ vanishes on ∂K.In the case of the MsFEM-CR with DOF -continuous oversampling, or without oversampling, the function χ ξ has average zero on each face of K. Since the factor n • ξ is constant on each face, the integral again vanishes.In conclusion, we have

282We thus obtain the inequality ξ • A K ξ ≥ m|ξ| 2 .Since K ∈ T H is arbitrary here, this shows coercivity of A and completes the proof.

283Coercivity of the effective tensor A implies coercivity of the bilinear form a diff on H 1 0 (Ω).By an application of the Lax-Milgram Theorem, we conclude that the (continuous) effective problem ( 14) is well-posed for the MsFEM-lin and the MsFEM-CR without oversampling, and for the MsFEM-CR with DOF -continuous oversampling.Remark 6.The proof of the above lemma does not extend to the MsFEM-lin with oversampling, because there is no global information about χ ε,α K on the faces of K.The following lemma provides a variational characterization of the bijection (53).

284Lemma 11.Consider the MsFEM-lin or the MsFEM-CR without oversampling.

285In addition, we have, with the constants m and M from (2), the estimate

286Proof.Let v H ∈ V H be the unique element of V H such that v ε H and v H satisfy (53).Take any w H ∈ V H . Using that ∇v H and ∇w H are piecewise constant, we compute

287For the MsFEM without oversampling, the numerical correctors belong to the sampling test space V K,0 .We can thus use (52) to obtain

288Using the definitions of A in (12) and the of a diff in (15) (we recall that these expressions hold true here upon replacing the numerical correctors by those under consideration), we conclude that

289It follows that v H satisfies (56).In addition, in view of the coercivity of A established in Lemma 10 and by the Lax-Milgram Theorem, problem (56) uniquely characterizes v H .

290The estimate on v H follows by testing the characterization (56) against w H = v H .This yields, for any

291The first inequality follows from coercivity of A and the second inequality from the upper bound on A ε in (2) and the Cauchy-Schwarz inequality.We thus find that ∇v

292. The desired result is obtained upon squaring the inequality and summing over all K ∈ T H .

293For the remainder of this section, we will consider MsFEMs without oversampling.Let u ε,G H denote the solution to the MsFEM approximation (37) (we use the superscript G to stress that this is a Galerkin approximation) and let u ε,PG H denote the solution to the non-intrusive MsFEM (54) (which is equivalent to the Petrov-Galerkin MsFEM (55), since we do not apply the oversampling technique).

294We first study the error u ε,G H −u ε,PG H when ε → 0. In this case, we do not need a rate of convergence in H and we shall relax the condition f ∈ L 2 (Ω) to the condition f ∈ H −1 (Ω).Then the linear form F in (3) has to be redefined.Given f ∈ H −1 (Ω), there exist f 0 , f 1 , . . ., f d ∈ L 2 (Ω) such that

295which is in fact well-defined for any v ∈ H 1 (T H ) and thus in particular on V H , the underlying affine space for the MsFEM, and the multiscale space V ε H .We consider in Lemma 12 a sequence of diffusion tensors A ε that H-converges to a constant diffusion tensor.This means that u ε converges weakly in H 1 (Ω) as ε → 0 towards a function u ⋆ ∈ H 1 0 (Ω), solution to the homogenized problem (24), and A ε ∇u ⋆ ⇀ A ⋆ ∇u ⋆ weakly in L 2 (Ω).

296Lemma 12. Consider the MsFEM-lin or the MsFEM-CR without oversampling.Suppose that (A ε ) ε>0 is a sequence of matrices satisfying (2) that H-converges to a constant matrix.Let f ∈ H

297→ 0 as ε → 0.

298Remark 7. A rate of convergence can be obtained under some additional structural assumptions on A ε ; see Lemma 18.

299We need a few auxiliary results to establish Lemma 12.The first result below concerns the convergence of the numerical correctors as ε → 0.

300Lemma 13.Suppose that A ε H-converges to a constant homogenized tensor A ⋆ .Consider the MsFEM-lin or the MsFEM-CR without oversampling.Then, for all K ∈ T H and all 1 ≤ α ≤ d, we have χ ε,α K ⇀ 0 weakly in H 1 (K) as ε → 0. Proof.We introduce for each α = 1, . . ., d the function τ ε,α = x α + χ ε,α K .Then (52) implies the PDE −div(A ε ∇τ ε,α ) = 0 in K.The homogenized limit of this problem is −div(A ⋆ ∇τ ⋆,α ) = 0 in K.For the MsFEM-lin, the boundary conditions of the local problems impose τ ⋆,α = x α on ∂K.The boundary conditions associated to the MsFEM-CR are a constant flux n • A ⋆ ∇τ α,⋆ on each face of K and h τ ⋆,α = h x α for all faces h of K.In both cases, the homogenized equation has a unique solution, which is easily seen to be τ ⋆,α = x α , because A ⋆ is constant.Therefore, τ ⋆,α ⇀ x α weakly in H 1 (K).Subtracting again the function x α , we deduce the desired convergence.

301We will also use the following result, which is a straightforward generalization of the extended Poincaré inequality in [22,Lemma 3.31].Lemma 14.Let W be the subspace of H 1 (T H ) defined by

302There exists a constant C > 0 depending only on Ω but not on H such that

303Note that the multiscale space V ε H,0 is contained in W for both the MsFEM-lin and the MsFEM-CR without oversampling.Finally, we provide a number of useful bounds for the difference between u ε,G H and u

304where

305Proof.Since the numerical approximations u ε,G H and u

306Applying Lemma 11 to v ε H = e ε H ,we immediately obtain (59).Now recall that the numerical correctors are defined by (52).Using the fact that ∇e P 1 H is piecewise constant, this implies that e osc H satisfies the following variational problem in each K ∈ T H :

307Without oversampling, it holds χ ε,α K ∈ V K,0 for each 1 ≤ α ≤ d, so e osc H can be used as a test function here.With the bounds in (2), implying continuity and coercivity of a ε,diff K , we obtain (58).Next using (61), we can write

308We deduce from (51) that a ε,diff u ε,PG H , e osc H = 0. Since e ε H can be used as a test function in the discrete problem (37)

309where C is the Poincaré constant from Lemma 14.Now applying (58) and (59) on the right, and using coercivity of a ε,diff on the left, we find

310from which we deduce (60).

311Proof of Lemma 12. Let e ε H = u ε,G H − u ε,PG H .We will use (61).By Lemma 15, we have (57).Combined with (2), it holds

312By Lemma 13, we know that χ ε,α K ⇀ 0 as ε → 0 weakly in H 1 (K) for each K and for each α.Therefore, F χ ε,α K → 0 as ε → 0. In view of ( 59) and (60), every derivative ∂ α e P 1 H K is bounded independently of ε.It follows that F (e osc H ) → 0 as ε → 0. The conclusion now follows from the above inequality.

313We next study the convergence of u ε,G H − u ε,PG H as H → 0. To this end, we return to the original hypotheses of Sec. 2, i.e., f ∈ L 2 (Ω).Note that for the next result, the additional convergence hypothesis of Lemma 12 for A ε is not needed.Lemma 16.Consider the MsFEM-lin or the MsFEM-CR without oversampling.Assume that f ∈ L 2 (Ω).Then there exists a constant C independent of ε, H and f such that

314To prove this lemma, we will use some Poincaré-Friedrichs inequalities, for which we refer e.g. to [38,Lemma 4.3], [22,Lemma B.66

315For the MsFEM-lin, it holds that χ ε,α K = 0 on ∂K for all mesh elements K and all 1 ≤ α ≤ d, and it follows that e osc H = 0 on the boundaries of all mesh elements.In the case of the MsFEM-CR, it holds that h χ ε,α K = 0 for all faces h of the mesh and all α.Since ∂ α e P 1 H is constant on each mesh element K, we also have One more time using the lower bound in (2), we find

316The proof is concluded by application of Lemma 14 to e ε H .

Convergence results in the periodic setting

317We now study the MsFEM-lin applied to the periodic setting introduced in Sec.2.7 in some more detail.To the best of our knowledge, all convergence results known for the MsFEM are obtained in this periodic setting (see e.g.[20,30,19,3,28,38,37,41,40]).The analysis in these works relies on the explicit description of the microstructure that we summarized in Sec.2.7.In particular, recall the existence of a homogenized diffusion coefficient given by ( 23) and the first-order twoscale expansion (25).We emphasize, however, that the application of the MsFEM does not require the periodic setting, nor does it even suppose the PDE under consideration to be embedded in a sequence of PDEs for a family of parameters ε that tend 0. Applying the MsFEM to a sequence of matrices A ε = A per (•/ε), we obtain a sequence of effective tensors A(ε).Each A(ε) is defined by (12) for a fixed value of ε.We have the following convergence result.

318Lemma 17.Let A(ε) be the sequence of effective tensors obtained in (12) by applying the MsFEMlin without oversampling to A ε = A per (•/ε).We have A(ε) → A ⋆ as ε → 0.

319Proof.We fix a mesh element K ∈ T H . First observe that A(ε) and A ⋆ satisfy

320for each 1 ≤ α, β ≤ d, in view of the variational formulations satisfied by χ ε,α K (solution to the PDE (11)) and w α (solution to the PDE (22)).Now let τ ε,α = x α + χ ε,α K .In view of Lemma 13, τ ε,α ⇀ τ ⋆,α as ε → 0 weakly in H 1 (K).Writing the two-scale expansion (25) of τ ε,α , we thus have, when ε is small,

321and the difference tends to zero in H 1 (K) as ε → 0. Inserting this convergence in (64), we deduce that lim

322The convergence to the mean on the unit cube in the last equality follows from the Q-periodicity of the function e β • A per (e α + ∇w α ).

323The following lemma studies the convergence of u ε,G H − u ε,PG H towards 0 as ε → 0 for the MsFEMlin.As was stated in Rem. 7, thanks to the periodic setting, we now obtain a rate for the convergence stated in Lemma 12.

324Lemma 18.Let f ∈ L 2 (Ω).Suppose that the family of meshes (T H ) H>0 is quasi-uniform.Consider the MsFEM-lin without oversampling.For A ε = A per (•/ε) sufficiently regular, we have

325where the constant C depends on the dimension d and the constants m, M in (2), but not on ε, H or f .

326Proof.Let e ε H = u ε,G H −u ε,PG H . Lemma 15 applies, so we can use (57) and a Cauchy-Schwarz inequality to find a ε,diff (e ε H , e ε H ) ≤ f L 2 (Ω) e osc H L 2 (Ω) ≤ f L 2 (Ω)

327Next we seek a bound on χ ε,α K in L 2 (K).Using (11) and ( 22), we have div

328Since χ ε,α K vanishes on ∂K (recall that we consider the MsFEM-lin without oversampling), the maximum principle [25,Theorem 8.1] yields

329When A per is sufficiently regular, the corrector functions w α are uniformly bounded.Then the mesh regularity provides a constant C such that for each K ∈ T H and each 1 ≤ α ≤ d, we have

330Since all χ ε,α K have disjoint supports, we can use the latter estimate to bound .

331(66)

332The last inequality relies on the quasi-uniformity of the mesh.We insert (66) combined with (59) into (65) to find a ε,diff (e ε H , e ε H ) ≤ Cε f L 2 (Ω) ∇e ε H L 2 (Ω) .

333Applying the coercivity property in (2) on the left-hand side, we obtain the desired result.

334The classical error estimate for the Galerkin MsFEM approach (6) is obtained in the periodic setting and under some regularity assumption on A per and on the homogenized limit u ⋆ .The bound obtained in [19,Theorem 6.5] reads

335≤ C H + ε + ε/H , for some C independent of ε and H. Lemma 18 shows that the same estimate holds true for u ε,PG H , the Petrov-Galerkin MsFEM approximation, under the correct regularity assumptions.We note that the bound for u ε,PG H can also be inferred from Lemma 16.However, since the MsFEM is applied in the regime where ε < H, the result of Lemma 18 is more precise, thanks to the extra structural assumptions made on the diffusion tensor A ε .

Numerical comparison

336We now compare the Galerkin MsFEM (37), its non-intrusive approximation (50) and the Petrov-Galerkin MsFEM (38) on a concrete numerical example in 2D (d = 2).The numerical approximations obtained for these various MsFEMs shall be denoted u ε,G H , u ε,G-ni H and u ε,PG H , respectively.We consider the pure diffusion equation (1) on the domain Ω = (0, 1) × (0, 1).Thus, the local bilinear forms are a ε K = a ε,diff K defined in Example 2, where we will consider the two diffusion tensors A ε (x) = ν ε (x) Id, ν ε (x) = 1 + 100 cos (π x 1 /ε) 2 sin (π x 2 /ε) 2 , (67a)

337We fix f (x) = sin (x 1 ) sin (x 2 ).The coefficient A ε is ε-periodic with period ε = π/150 ≈ 0.02.The coefficient A ε,np is not periodic and, although a homogenized coefficient exists (see [10]), it is not constant.Consequently, a certain number of lemmas established in Sec.6 are not known to hold true.We will see nevertheless that the non-intrusive MsFEMs that we introduced above provide good approximations compared to the intrusive G-MsFEM.

338A reference solution u ε h is computed on a uniform 1024×1024 mesh T h by means of a standard P 1 finite element method using FreeFEM++ [27].The FreeFEM++ scripts to perform all different MsFEMs can be found in the GitHub repository at https://github.com/RBiezemans/MsFEM-in-FreeFEM.

339We compare the reference solution u ε h to MsFEM solutions obtained on a coarse mesh T H for varying H.The mesh T H is a uniform 1/H × 1/H triangulation of Ω.We test the MsFEM-lin and the MsFEM-CR using the sampling operator s ε K = a ε,diff K .All oversampling methods in this section use a homothety ratio of 3 for the construction of the oversampling patches in Def.4.4, and DOF -continuous basis functions, which ensure certain continuity properties on the boundary of the mesh elements.A precise definition of the associated basis functions can be found in Examples 8 and 9.The mesh T h is a refinement of T H for all values of H. Therefore, for each K ∈ T H , we use the corresponding submesh of T h (consisting of all triangles included in K) for the numerical approximation of the numerical correctors in (29) by P 1 Lagrange finite elements.

340We first compare the approximations u ε,G H and u ε,G-ni H for varying H in Fig. 3. Without oversampling (OS), the approximation u ε,G-ni H equals u ε,PG H due to Lemma 8. We also report the error committed by the G-MsFEM.We observe that, without oversampling, the difference u ε,G H − u ε,G-ni H is much smaller than this error.As a result, the errors obtained with the G-MsFEM and its nonintrusive approximation are of the same size.Indeed, the error of the non-intrusive G-MsFEM-lin deviates from the error of the G-MsFEM-lin by at most 0.05% for all tests that we report here.For the MsFEM-CR, this is at most 1.2%.In both cases, the two MsFEM variants thus have practically the same accuracy.This is in agreement with the theoretical result of Lemma 16.The estimates obtained in Sec.6 do not apply to MsFEMs with oversampling.From Fig. 3, we can see that the difference u ε,G H − u ε,G-ni H is still small with respect to the error committed by the G-MsFEM when oversampling is applied.The approximation errors for the non-intrusive G-MsFEMs with oversampling differ by at most 1.3% from the error of the G-MsFEM.Let us also point out the qualitative and quantitative similarities between the performance of the MsFEM for the periodic and the nonperiodic diffusion coefficient.Although the homogenized coefficient of A ε,np has a more complicated

341e. in Ω, and ∀ ξ, η ∈ R d , |η • A ε (x)ξ| ≤ M |ξ| |η| a.e. in Ω,

Lemma 4 .

342Let K be any mesh element and let 1 ≤ i ≤ N .Assume that any DOF-continuous local problem (31) is well-posed.Consider an MsFEM with DOF-continuous oversampling.Define an extension of φ ε i from K to S K by

2 : 4 :

343for all K ∈ T H do 3:for 0 ≤ α ≤ d doSolve for the applicable χ ε,α,

344In both cases, an appropriate variant of the Poincaré-Friedrichs inequality yields a constant C independent of K but dependent on the regularity of the mesh, such thate osc H L 2 (K) ≤ CH ∇e osc H L 2 (K) .(63)Uponinserting the inequalities (63), (58) and (59) into (62), it follows thata ε,diff (e ε H , e ε H ) ≤ CH M m 2 ∇e ε H L 2 (T H ) f L 2 (Ω) .

H d/ 2 ∂ α e P 1 H K 2 ≤ 2 K∈T H d α=1 ∂ α e P 1 H 2 L 2 = Cε 2 ∇e P 1 H 2 L 2

345Cε (K) (Ω)

346ε,PG H . Lemma 15.Let f ∈ H −1 (Ω) and consider the MsFEM-lin or the MsFEM-CR without oversampling.Let e ε H = u ε,G H − u ε,PG H .There exists a unique e P 1 H ∈ V H and a linear combination of the numerical correctors, that we denote by e osc H , such that e ε H = e P 1 H + e osc H , and it holds, with the constants m, M from (2) and the constant C from Lemma 14,

347and e P 1

348H in (55), we have a ε,diff u ε,G H , e ε H − a ε,diff u ε,PG H , e P 1 H = F (e osc H ), which shows (57).It follows that a

349]. and recall the results of Lemma 15.We have e ε H = e P 1 H + e osc H (see(61)), and (57) provides, for f ∈ L 2 (Ω), the equality a ε,diff (e ε H , e ε H ) = (f, e osc H ) L 2 (Ω) .Hence, by the Cauchy-Schwarz inequality, a ε,diff (e ε H , e ε H ) ≤ f L 2 (Ω) e osc H L 2 (Ω) .

참고문헌 58건

  1. Elliptic Problems in Nonsmooth Domains 2011 10.1137/1.9781611972030
  2. Theory and Practice of Finite Elements Applied mathematical sciences · Springer Nature · 2004 10.1007/978-1-4757-4355-5
  3. Elliptic Partial Differential Equations of Second Order Classics in mathematics · Springer Nature · 2001 10.1007/978-3-642-61798-0
  4. (제목 없음) Computational Geosciences · Springer Science+Business Media · 2002 10.1023/a:1021295215383
  5. Removing the Cell Resonance Error in the Multiscale Finite Element Method via a Petrov-Galerkin Formulation Communications in Mathematical Sciences · International Press of Boston · 2004 10.4310/cms.2004.v2.n2.a3
  6. CHOOSING BUBBLES FOR ADVECTION-DIFFUSION PROBLEMS Mathematical Models and Methods in Applied Sciences · World Scientific · 1994 10.1142/s0218202594000327
  7. A new finite element formulation for computational fluid dynamics: VIII. The galerkin/least-squares method for advective-diffusive equations Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1989 10.1016/0045-7825(89)90111-4
  8. Localization of elliptic multiscale problems Mathematics of Computation · American Mathematical Society · 2014 10.1090/s0025-5718-2014-02868-8
  9. Shape Optimization by the Homogenization Method Applied mathematical sciences · Springer Nature · 2002 10.1007/978-1-4684-9286-6
  10. Nonconforming streamline-diffusion-finite-element-methods for convection-diffusion problems Numerische Mathematik · Springer Science+Business Media · 1997 10.1007/s002110050309
  11. MsFEM à la Crouzeix-Raviart for Highly Oscillatory Elliptic Problems Chinese Annals of Mathematics Series B · Springer Science+Business Media · 2013 10.1007/s11401-012-0755-7
  12. Recovering SUPG using Petrov–Galerkin formulations enriched with adjoint residual-free bubbles Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2000 10.1016/s0045-7825(99)00196-6
  13. The Heterognous Multiscale Methods Communications in Mathematical Sciences · International Press of Boston · 2003 10.4310/cms.2003.v1.n1.a8
  14. A Multiscale Mortar Mixed Finite Element Method Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2007 10.1137/060662587
  15. Multi-scale finite-volume method for elliptic problems in subsurface flow simulation Journal of Computational Physics · Elsevier BV · 2003 10.1016/s0021-9991(03)00075-5
  16. A mixed multiscale finite element method for elliptic problems with oscillating coefficients Mathematics of Computation · American Mathematical Society · 2002 10.1090/s0025-5718-02-01441-2
  17. Generalized Finite Element Methods: Their Performance and Their Relation to Mixed Methods SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1983 10.1137/0720034
  18. Analysis of three-dimensional fracture mechanics problems: A non-intrusive approach using a generalized finite element method Engineering Fracture Mechanics · Elsevier BV · 2012 10.1016/j.engfracmech.2012.04.014
  19. Multiscale Finite Element approach for “weakly” random problems and related issues ESAIM Mathematical Modelling and Numerical Analysis · EDP Sciences · 2013 10.1051/m2an/2013122
  20. A Multiscale Finite Element Method for Elliptic Problems in Composite Materials and Porous Media Journal of Computational Physics · Elsevier BV · 1997 10.1006/jcph.1997.5682
  21. A Multiscale Finite Element Method for Numerical Homogenization Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2005 10.1137/040611239
  22. Finite element approximation of multi-scale elliptic problems using patches of elements Numerische Mathematik · Springer Science+Business Media · 2005 10.1007/s00211-005-0614-5
  23. Convergence of a Nonconforming Multiscale Finite Element Method SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2000 10.1137/s0036142997330329
  24. The Finite Element Method for Elliptic Problems Studies in mathematics and its applications · Elsevier BV · 1978 10.1016/s0168-2024(08)x7014-6
  25. A generic grid interface for parallel and adaptive scientific computing. Part I: abstract framework Computing · Springer Science+Business Media · 2008 10.1007/s00607-008-0003-x
  26. Iterative multiscale finite-volume method Journal of Computational Physics · Elsevier BV · 2008 10.1016/j.jcp.2008.06.013
  27. Une méthode combinée d'éléments finis à deux grilles/bases réduites pour l'approximation des solutions d'une E.D.P. paramétrique Comptes Rendus Mathématique · Elsevier BV · 2009 10.1016/j.crma.2009.02.019
  28. Multiscale phenomena: Green's functions, the Dirichlet-to-Neumann formulation, subgrid scale models, bubbles and the origins of stabilized methods Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1995 10.1016/0045-7825(95)00844-9
  29. Streamline upwind/Petrov-Galerkin formulations for convection dominated flows with particular emphasis on the incompressible Navier-Stokes equations Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1982 10.1016/0045-7825(82)90071-8
  30. The variational multiscale method—a paradigm for computational mechanics Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1998 10.1016/s0045-7825(98)00079-6
  31. New development in freefem++ Journal of Numerical Mathematics · De Gruyter · 2012 10.1515/jnum-2012-0013
  32. A generic grid interface for parallel and adaptive scientific computing. Part II: implementation and tests in DUNE Computing · Springer Science+Business Media · 2008 10.1007/s00607-008-0004-9
  33. On multiscale methods in Petrov–Galerkin formulation Numerische Mathematik · Springer Science+Business Media · 2015 10.1007/s00211-015-0703-z
  34. High-Order Multiscale Finite Element Method for Elliptic Problems Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2014 10.1137/120898024
  35. The heterogeneous multiscale method Acta Numerica · Cambridge University Press · 2012 10.1017/s0962492912000025
  36. Numerical zoom for multiscale problems with an application to nuclear waste disposal Journal of Computational Physics · Elsevier BV · 2007 10.1016/j.jcp.2007.03.020
  37. Non-intrusive Coupling: Recent Advances and Scalable Nonlinear Domain Decomposition Archives of Computational Methods in Engineering · Springer Science+Business Media · 2014 10.1007/s11831-014-9132-x
  38. The Chimera method for a model problem Springer eBooks · Springer Nature · 2003 10.1007/978-88-470-2089-4_74
  39. Advances Concerning Multiscale Methods and Uncertainty Quantification in EXA-DUNE Lecture notes in computational science and engineering · Springer Nature · 2016 10.1007/978-3-319-40528-5_2
  40. Examples of computational approaches for elliptic, possibly multiscale PDEs with random inputs Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.10.027
  41. Computation of Quasi-Local Effective Diffusion Tensors and Connections to the Mathematical Theory of Homogenization Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2017 10.1137/16m1088533
  42. A non-intrusive reduced basis approach for parametrized heat transfer problems Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.10.001
  43. A residual-driven local iterative corrector scheme for the multiscale finite element method Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.10.030
  44. Crouzeix-Raviart MsFEM with Bubble Functions for Diffusion and Advection-Diffusion in Perforated Media Communications in Computational Physics · Cambridge University Press · 2015 10.4208/cicp.2014.m299
  45. An MsFEM type approach for perforated domains arXiv (Cornell University) · Cornell University · 2013 10.48550/arxiv.1307.0876
  46. A numerical comparison of some Multiscale Finite Element approaches for advection-dominated problems in heterogeneous media ESAIM Mathematical Modelling and Numerical Analysis · EDP Sciences · 2016 10.1051/m2an/2016057
  47. Multiscale Finite Element methods for advection-dominated problems in\n perforated domains arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1710.09331
  48. An MsFEM Approach Enriched Using Legendre Polynomials Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2022 10.1137/21m1444151
  49. Numerical homogenization beyond scale separation Acta Numerica · Cambridge University Press · 2021 10.1017/s0962492921000015
  50. Error estimate of the non-intrusive reduced basis method with finite volume schemes ESAIM Mathematical Modelling and Numerical Analysis · EDP Sciences · 2021 10.1051/m2an/2021044
  51. Non-intrusive implementation of Multiscale Finite Element Methods: An illustrative example Journal of Computational Physics · Elsevier BV · 2023 10.1016/j.jcp.2023.111914
  52. H-Convergence Birkhäuser Boston eBooks · Birkhäuser Boston · 1997 10.1007/978-1-4612-2032-9_3
  53. Multiscale Finite Element Methods Springer eBooks · Springer Nature · 2009 10.1007/978-0-387-09496-0
  54. Homogenization of Differential Operators and Integral Functionals Springer eBooks · Springer Nature · 1994 10.1007/978-3-642-84659-5
  55. Numerical Models for Differential Problems Modeling, simulation & applications · 2017 10.1007/978-3-319-49316-9
  56. Asymptotic Analysis for Periodic Structures Studies in mathematics and its applications · Elsevier BV · 1978 10.1016/s0168-2024(08)x7015-8
  57. Non-Conforming Multiscale Finite Element Method for Stokes Flows in Heterogeneous Media. Part II: error estimates for periodic microstructure arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1802.04389
  58. EXA-DUNE: Flexible PDE Solvers, Numerical Methods and Applications Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-319-14313-2_45