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

Non-intrusive implementation of Multiscale Finite Element Methods: An illustrative example

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

기본 정보

저자
  1. Rutger A. Biezemans — Centre d'Enseignement et de Recherche en Mathématiques et Calcul Scientifique|||MATHematics for MatERIALS
  2. Claude Le Bris — Centre d'Enseignement et de Recherche en Mathématiques et Calcul Scientifique|||MATHematics for MatERIALS
  3. Frédéric Legoll — Modélisation et expérimentation multi-échelle pour les solides hétérogènes|||MATHematics for MatERIALS
  4. Alexei Lozinski — MATHematics for MatERIALS|||Laboratoire de Mathématiques de Besançon (UMR 6623)
DOI
10.1016/j.jcp.2023.111914
저널
Journal of Computational Physics
발행년도
2023
발행기관
Elsevier BV
피인용수
5
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jcp.2023.111914
토픽
Composite Material Mechanics
OpenAlex ID
W4223973763

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(10) 아라미드, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.60
근거 용어
Multiscale Finite Element Methods, highly oscillatory diffusion problem, homogenization theory, numerical approximation, effective diffusion matrix
판단 근거
이 논문은 미세 구조의 변동성을 가진 확산 문제를 해결하기 위한 다중 스케일 유한요소법(MsFEM)의 수치 해석적 구현을 다룹니다. 이는 복합소재(Composite)나 불균질한 구조를 가진 고분자/섬유 소재의 물성을 예측하는 시뮬레이션 모델링에 응용될 수 있습니다.
R&D 활용 포인트
아라미드 나노섬유, 강화 컴파운드, 또는 다층 배리어 필름과 같이 미세 구조가 물성에 큰 영향을 미치는 복합 소재의 유한요소 해석(FEA) 및 물성 예측 모델의 정확도를 높이는 데 활용 가능합니다.
평가 입력
섹션 본문 41,657자 중 30,032자 발췌

초록

초록이 없습니다.

본문 45,638자

본문 펼치기
Multiscale Finite Element Methods (MsFEM) are finite element type approaches dedicated to multiscale problems. They first compute local, oscillatory, problemdependent basis functions which generate a specific 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. Introduction We consider the highly oscillatory diffusion problem − div (A ε ∇u ε ) = f in Ω, u ε = 0 on ∂Ω, Introduction in a bounded domain Ω ⊂ R d , where the diffusion coefficient A ε is assumed to oscillate on a typical length scale of size ε much smaller than the diameter of Ω, and to satisfy the usual ellipticity assumptions (see Section 2 below for details). We seek a numerical approximation of (1) by applying a Galerkin approach. It is well-known that standard (say P 1 ) finite element methods yield an approximation of poor accuracy, as a consequence of the highly oscillatory nature of the problem, unless a prohibitively expensive fine mesh is employed. Dedicated multiscale approaches have thus been introduced, which provide a reasonably accurate approximation of (1) for a limited computational cost. Among the many multiscale approaches that have been proposed in the literature, we mention the Heterogeneous Multiscale Method (henceforth abbreviated as HMM) [1], the Local Orthogonal Decomposition method (LOD) [2], and the Multiscale Finite Element Method (MsFEM) on which we focus here (see [7,5,8] for a comprehensive exposition). Introduction Specifically, the MsFEM method is a finite element type method, which consists of two steps: Introduction • an "offline" phase, where highly oscillatory, problem-dependent (but right-hand side independent) basis functions are numerically computed as solutions to local problems (that mimick the reference problem on a subdomain); Introduction • an "online" phase, where a Galerkin approximation of (1), performed in the finitedimensional space generated by the basis functions computed in the offline phase, is solved. Introduction The MsFEM approach is particularly interesting in multi-query contexts, where (1) is to be repeatedly solved for multiple right-hand sides f (think e.g. of optimization problems, or of time-dependent problems where (1) would be the typical equation to solve to advance from one time step to the next). In this case, the offline phase is only performed once and a significant computational gain is thus achieved. Several MsFEM variants exist, depending on the specific definition of the basis functions. Although their implementation is rightfully considered to be relatively easy (see e.g. [5,10]), they are all definitely intrusive. They indeed require to change the finite element basis set and adjust it to the problem at hand. Our aim in this article is to investigate how these approaches can be adapted (possibly at the price of a marginal loss in their efficiency) so that they become as little intrusive as possible, thereby allowing to use only a legacy, single-scale software (based on standard finite elements) to recover an accurate approximation of (1). We believe that such an endeavor will eventually facilitate the dissemination of MsFEM methods within industrial, non academic codes. Introduction The article is organized as follows. In Section 2, on the example of the diffusion problem (1), we introduce the simplest MsFEM approach (namely the so-called linear MsFEM) in a Galerkin setting (see Algorithm 1), and present its non-intrusive variant, namely Algorithm 2. We also outline the relation between this variant and a Petrov-Galerkin variant of the MsFEM. Some elements of numerical analysis (along with an illustrative numerical result) are provided in Section 3, to estimate the additional error introduced by the non-intrusive implementation of the method. It is well-known that the linear MsFEM variant considered in Sections 2 and 3 is outperformed by several MsFEM variants. For pedagogical purposes, we have deliberately chosen to present our ideas on this simple variant and to collect in Section 4 some concluding remarks on the many possible extensions of our methodology to design non-intrusive implementations of existing approaches. Introduction We postpone a comprehensive presentation of our procedure, with applications to several MsFEM variants, several equations and various boundary conditions, to an upcoming article [4] (see also [3]). Non-intrusive implementation of MsFEM: a simple case We provide problem (1) with all the usual assumptions that make it well-posed at the continuous level and amenable to a classical Galerkin approximation. In particular, we assume that A ε ∈ L ∞ (Ω, R d×d ) satisfies the bounds Non-intrusive implementation of MsFEM: a simple case for some M ≥ m > 0 independent of ε, and that f does not oscillate on the microscopic scale ε. Note that no further structural assumptions on A ε are made (in particular, A ε need not be of the form A(·/ε) for a fixed rescaled function A). We respectively denote by Non-intrusive implementation of MsFEM: a simple case the bilinear and linear forms associated to the variational formulation of (1). We seek a numerical approximation of (1) by applying an MsFEM type Galerkin approach. To this end, we introduce a conformal simplicial mesh T H of Ω (i.e., made of triangles if d = 2, tetrahedra if d = 3) and denote by V H the usual conformal P 1 approximation space on The Multiscale Finite Element Method The MsFEM is a Galerkin approximation that adapts the finite-dimensional approximation space in order to obtain a satisfactory accuracy even on a coarse mesh. Let x 1 , . . . , x Nv be the interior vertices (i.e., the N v vertices that do not lie on ∂Ω) of T H , and let φ P1 i be the unique element of V H such that φ P1 i (x j ) = δ i,j for all 1 ≤ j ≤ N v . For any 1 ≤ i ≤ N v , we define the multiscale basis function φ ε i ∈ H 1 0 (Ω), which is supported by the exact same mesh elements as φ P1 The Multiscale Finite Element Method i , by The Multiscale Finite Element Method The multiscale approximation space is defined as The Multiscale Finite Element Method and it has the same dimension as V H . The MsFEM approach then consists in computing the approximation u ε H ∈ V ε H defined by the problem The Multiscale Finite Element Method Since the space V ε H is problem-dependent, we can hope (and this is indeed the case) the approximation (5) to capture the exact solution much better than a P 1 approximation on the same mesh (even on a mesh of size H of the order of ε). The Multiscale Finite Element Method Remark 1 (Offline vs. online phase). In practice, the local problems (4) need to be approximated, for instance using a standard P 1 approximation on a fine mesh (of K ∈ T H ) of mesh size h ≤ ε which resolves the oscillations of A ε . We omit here this additional discretization. All what follows can readily be extended to the case when only some numerical approximation of φ ε i is available. The Multiscale Finite Element Method The computation of {φ ε i } 1≤i≤Nv is called the offline phase of the MsFEM. All the problems (4) on different mesh elements are independent of each other, and can thus be solved in parallel. On the other hand, the term online phase is used for the resolution of the global problem (5), where the number of degrees of freedom is the same as in a standard P 1 approximation on V H . The Multiscale Finite Element Method The MsFEM approach can schematically be presented as Algorithm 1. Lines 1-11 (resp. 12-16) constitute the offline (resp. online) phase. The Multiscale Finite Element Method Algorithm 1 MsFEM approach for Problem (1) (see comments in the text) The Multiscale Finite Element Method Solve for φ ε i in (4) 4: end for 5: Set A ε := 0 and F ε := 0 6: for all K ∈ T H do 7: The Multiscale Finite Element Method end for 12: The Multiscale Finite Element Method end for 14: end for The Multiscale Finite Element Method 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 10 of Algorithm 1), it is by no means obvious to adapt existing finite element codes based on generic spaces like V H 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 and F K φ ε 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 in the coarse mesh, the assembly of the global stiffness matrix A ε j,i 1≤i,j≤Nv should be manually performed, . . . To alleviate these obstacles, we shall next introduce a way of implementing MsFEM that capitalizes on an existing code for solving (1) by a P 1 approximation on T H in the case of slowlyvarying diffusion coefficients. The Multiscale Finite Element Method To the best of our knowledge, the question of how to make MsFEM approaches less intrusive has not been studied in the literature, and this work (that will be complemented in the future works [4,3]) is a first step in that direction. On the other hand, for some other multiscale approaches (including HMM and LOD), this question has been (at least partially) addressed. By construction, HMM methods are less invasive, since they primarily aim at approximating u ε on the coarse scales. The first step of these methods somewhat consists in building an effective, slowly-varying diffusion coefficient (which plays the role of the matrix A introduced in (11) below), which can next be used in any single-scale solver. The LOD approach, which, similarly to MsFEM, aims at approximating u ε on the coarse and the fine scales, is also invasive in general, since it also introduces adapted basis functions. As shown in [6], the LOD can be recast as a P 1 discretization of an appropriate single-scale problem, an observation which opens the way to non-intrusive implementations. Note however that, despite its current intrusiveness, MsFEM has its own advantages over other multiscale approaches: it directly aims at approximating the oscillatory solution u ε (including its fine scale details), and makes use of fully localized basis functions to do so. Equivalent problem on the macroscopic scale Our starting point for reducing intrusiveness in the above MsFEM implementation is the following key observation. On any K ∈ T H , by linearity of the definition (4) of φ ε i in terms of φ P1 i , and because the finite element space V H consists of functions that are piecewise affine (that is to say, ∇φ P1 i is constant in each K), we have the expansion Equivalent problem on the macroscopic scale for any basis function φ ε i of V ε H . Here, χ ε,α K ∈ H 1 0 (K) is defined as the solution to the local problem Equivalent problem on the macroscopic scale where e α denotes the α-th canonical unit vector of R d . Considering indeed the right-hand side of (6), we compute that its gradient in K is Equivalent problem on the macroscopic scale The right-hand side of (6) therefore satisfies the PDE in (4). It also satisfies the boundary conditions in (4), in view of the boundary conditions in (7). Since the solution to (4) is unique, we deduce the identity (6). Equivalent problem on the macroscopic scale For each K ∈ T H and each 1 ≤ α ≤ d, we extend χ ε,α K by 0 outside K, thereby obtaining a function χ ε,α K ∈ H 1 0 (Ω). We then deduce from (6) that there is a one-to-one correspondence between functions in V ε H and functions in V H . More precisely, for any Equivalent problem on the macroscopic scale and conversely, for Equivalent problem on the macroscopic scale We now consider the linear system associated to (5) and insert therein the expansion (8) for the multiscale basis functions. The solution to (5) Equivalent problem on the macroscopic scale with (8) and using that ∇φ P1 i is piecewise constant, we write Equivalent problem on the macroscopic scale Inserting this relation in the definition of the matrix elements A ε j,i , we obtain Equivalent problem on the macroscopic scale where x α = x · e α is the α-th coordinate. We now define the piecewise constant matrixvalued field A ∈ P 0 (T H , R d×d ) by Equivalent problem on the macroscopic scale where |K| denotes the area or volume of the mesh element K. Using (7) and the bounds (2) satisfied by A ε , it is easy to show (see [4]) that A satisfies the following uniform lower and upper bounds: for any ξ and η in R d , m |ξ| 2 ≤ ξ · A(x)ξ and η · A(x)ξ ≤ M 1 + M m |ξ| |η| a.e. in Ω. Equivalent problem on the macroscopic scale Motivated by (10) and (11), we introduce the coarse-scale problem Equivalent problem on the macroscopic scale and its P 1 Galerkin discretization: find u H ∈ V H such that Equivalent problem on the macroscopic scale where the linear form F is defined by (3) and the bilinear form a A is defined by Problem (14) equivalently writes with Problem (14) equivalently writes We then deduce from (10) that Problem (14) equivalently writes where we recall that the piecewise constant matrix A given by (11), and therefore the stiffness matrix A P1 , depends on the fine scale oscillations of A ε . The above calculations yield the following result. Problem (14) equivalently writes Lemma 2. The stiffness matrix A ε in (9) of the MsFEM problem (5) is identical to the stiffness matrix A P1 in (15) of the P 1 problem (14). Problem (14) equivalently writes We note that the right-hand vector F ε in (9) is in general different from the right-hand side vector F P1 in (15), since we integrate f against highly oscillatory basis functions in the former problem and against P 1 basis functions in the latter. The solutions U ε and U P1 to (9) and (15), respectively, are thus a priori different. Problem (14) equivalently writes The above observations suggest to use the identity (17) of the stiffness matrices to replace the MsFEM discrete problem (9) by the discrete problem (15) stemming from the P 1 Galerkin approximation of the single scale problem (13), which itself may be easily implemented in legacy codes. This results in our non-intrusive MsFEM strategy presented in Algorithm 2. We can distinguish there the offline phase (in lines 1-14) and the online phase (in lines 15-20). The few lines that differ between Algorithm 2 and a standard P 1 algorithm are highlighted in blue. The lines in black are already present in standard codes and are written in Algorithm 2 for the sake of completeness. Problem (14) equivalently writes The superiority of Algorithm 2 over the classical MsFEM Algorithm 1 is that the global problem of the online phase (including its right-hand side) can be completely constructed and solved using a pre-existing P 1 PDE solver. The only requirements in the legacy code are the ability to provide piecewise constant diffusion coefficients to the solver N (n, K) the global index of the vertex of K ∈ T H that has local index 1 ≤ n ≤ d + 1 in K 2: for all K ∈ T H do 3: Problem (14) equivalently writes Solve for χ ε,α K defined by (7) 5: Problem (14) equivalently writes end for 6: Problem (14) equivalently writes Compute A| K defined by (11) 7: end for Problem (14) equivalently writes end for 15: The requirement for these fine-scale solvers is that they have access to the coarse mesh T H of the global solver and that they can evaluate u H anywhere in Ω (which is useful in line 20). Note also that the fine-scale problem (7) is only indexed by the coarse mesh element K, in contrast to the fine scale problem (4), which is indexed both by the coarse mesh element K and the vertex index i. In the latter case, one has to know, for each element K, the global number of the element vertices, a piece of information which may be difficult to access to in a legacy code. In the former case, this correspondence is not needed to compute A and u ε H , which are entirely defined element-wise. Problem (14) equivalently writes Remark 3 (Link with homogenization theory). The above non-intrusive implementation involves quantities which are of course reminiscent of standard quantities introduced in homogenization. The problem (7), the effective diffusion matrix (11), the single-scale problem (13) and the expansion (8) ressemble the corrector problem, the homogenized matrix, the homogenized problem and the two-scale expansion of the oscillatory solution, respectively. In the same spirit, in the case when A ε is the rescaling of some periodic matrix, it can be shown (see [4]) that the effective diffusion matrix A converges to the homogenized matrix when ε → 0. Problem (14) equivalently writes As shown by (17), the matrix A P1 in (15) is identical to the matrix A ε in (9). However, in general, the right-hand sides F ε in (9) and F P1 in (15) are different. This motivates the introduction of the following Petrov-Galerkin variant of the MsFEM: find u ε,P G Problem (14) equivalently writes Note that, in contrast to (5), we take the test functions in the P 1 space V H rather than Problem (14) equivalently writes j the stiffness matrix of the resulting linear system. Of course, the right-hand side vector of this linear system is equal to F P1 defined by (16). Problem (14) equivalently writes Lemma 4. The stiffness matrices A ε and A ε,P G of the problems (5) and (18) are identical (and thus identical to A P1 ). The right-hand side vector of (18) is identical to the right-hand side vector F P1 of the problem (14). The solution u ε,P G H to the Petrov-Galerkin MsFEM (18) thus coincides with the function u ε H computed by Algorithm 2. Proof. To prove this lemma, it is enough to show that the stiffness matrices of (5) and (18) are equal. Using an integration by parts, we compute Problem (14) equivalently writes where n is the unit outward normal vector on ∂K. The two terms above vanish in view of (4). This implies the identity of the stiffness matrices of (5) and (18) and the well-posedness of the Petrov-Galerkin approximation (18). Problem (14) equivalently writes To summarize, the above procedure to go from the MsFEM problem (5) to its nonintrusive implementation described in Algorithm 2 is based on the following steps: Problem (14) equivalently writes 1. we use the linearity of the problem and the fact that gradients of P 1 basis functions are constant in each mesh element to establish the identity (6); 2. we can then recast the MsFEM stiffness matrix A ε as the stiffness matrix A P1 of the P 1 discretization of an appropriate problem; Problem (14) equivalently writes 3. we approximate the right-hand side F ε of the MsFEM problem by a right-hand side F P1 which can be computed in a manner consistent with a P 1 discretization; 4. we postprocess the P 1 solution to obtain an approximation of the reference solution. Problem (14) equivalently writes We nowhere use in these steps that the discrete problem we are actually solving (here (15)) in fact corresponds to some discretization (here, a Petrov-Galerkin discretization) of the reference problem. This correspondence is useful to estimate the error introduced by the non-intrusive implementation (a task we perform in Section 3 below), but it does not necessarily hold for other variants of MsFEM (e.g. the oversampling variant briefly mentioned in Section 4 below) and it is not required to put the non-intrusive approach in action. We expect the computational cost of Algorithm 2 to be smaller than that of Algorithm 1, since F P1 is cheaper to compute than F ε (we do not need to use a quadrature rule on the fine mesh). On the other hand, Algorithm 2 (and non-intrusive implementations in general) may introduce additional numerical errors. We estimate these in Section 3. Problem (14) equivalently writes (provided by Algorithm 2). Assume that f ∈ L 2 (Ω). There exists a constant C independent of ε, H and f such that Problem (14) equivalently writes The classical error estimate for the Galerkin MsFEM approach (5) is obtained in the literature under the assumption that A ε is actually the rescaling of a given periodic matrix. The bound in the estimate reads C (H + √ ε+ ε/H) for some C independent of ε and H (see e.g. [5]). Lemma 6 and a triangle inequality show that the same convergence rate holds for the Petrov-Galerkin MsFEM approach (18), of course under the same periodicity assumption. Problem (14) equivalently writes Proof. Let e ε H = u ε,G H − u ε,P G H . Since the numerical approximations u ε,G H and u ε,P G Upon testing against v = e osc edges of the coarse mesh elements, since the exact solution oscillates along the edges while the numerical approximation does not. To overcome this drawback, several alternative definitions of the multiscale basis functions have been proposed, leading to different MsFEM variants, including the oversampling variant, introduced in [7] and nowadays considered to be a reference MsFEM variant. We will investigate in [4,3] how the nonintrusive implementation procedure presented here can be extended to that case. We note that oversampling multiscale basis functions are again defined in terms of φ P1 i in a linear manner, which should allow to obtain a formula analogous to (6). The stiffness matrices of the Galerkin and the Petrov-Galerkin approximations are in general different (in contrast to the case studied here, see Lemma 4), but formal arguments show that the two of them can be expressed as the stiffness matrix obtained using a standard P 1 approximation of the single-scale problem (13), for an appropriately defined piecewise constant effective matrix A. We refer to [4,3] for definite conclusions. Problem (14) equivalently writes To outline the versality of the above procedure leading to a non-intrusive implementation, we eventually make a few remarks on the advection-diffusion problem − div(A ε ∇u ε ) + b · ∇u ε = f in Ω, u ε = 0 on ∂Ω. Problem (14) equivalently writes The MsFEM basis functions may be defined by (4) or by a similar equation including the advection term (see e.g. [9,3]). Oversampling may also be used. In all cases, for the same reasons as above, an identity of the type (6) should hold, which allows to express the stiffness matrix of the approach as the stiffness matrix obtained using a standard P 1 finite element approximation of a single-scale problem containing diffusion and advection terms, with appropriate definitions of a diffusion matrix A and an advection field b that are both piecewise constant. We again refer to [4,3] for details. Introduction We consider the highly oscillatory diffusion problem − div (A ε ∇u ε ) = f in Ω, u ε = 0 on ∂Ω, Introduction in a bounded domain Ω ⊂ R d , where the diffusion coefficient A ε is assumed to oscillate on a typical length scale of size ε much smaller than the diameter of Ω, and to satisfy the usual ellipticity assumptions (see Section 2 below for details). We seek a numerical approximation of (1) by applying a Galerkin approach. It is well-known that standard (say P 1 ) finite element methods yield an approximation of poor accuracy, as a consequence of the highly oscillatory nature of the problem, unless a prohibitively expensive fine mesh is employed. Dedicated multiscale approaches have thus been introduced, which provide a reasonably accurate approximation of (1) for a limited computational cost. Among the many multiscale approaches that have been proposed in the literature, we mention the Heterogeneous Multiscale Method (henceforth abbreviated as HMM) [1], the Local Orthogonal Decomposition method (LOD) [2], and the Multiscale Finite Element Method (MsFEM) on which we focus here (see [7,5,8] for a comprehensive exposition). Introduction Specifically, the MsFEM method is a finite element type method, which consists of two steps: Introduction • an "offline" phase, where highly oscillatory, problem-dependent (but right-hand side independent) basis functions are numerically computed as solutions to local problems (that mimick the reference problem on a subdomain); Introduction • an "online" phase, where a Galerkin approximation of (1), performed in the finitedimensional space generated by the basis functions computed in the offline phase, is solved. Introduction The MsFEM approach is particularly interesting in multi-query contexts, where (1) is to be repeatedly solved for multiple right-hand sides f (think e.g. of optimization problems, or of time-dependent problems where (1) would be the typical equation to solve to advance from one time step to the next). In this case, the offline phase is only performed once and a significant computational gain is thus achieved. Several MsFEM variants exist, depending on the specific definition of the basis functions. Although their implementation is rightfully considered to be relatively easy (see e.g. [5,10]), they are all definitely intrusive. They indeed require to change the finite element basis set and adjust it to the problem at hand. Our aim in this article is to investigate how these approaches can be adapted (possibly at the price of a marginal loss in their efficiency) so that they become as little intrusive as possible, thereby allowing to use only a legacy, single-scale software (based on standard finite elements) to recover an accurate approximation of (1). We believe that such an endeavor will eventually facilitate the dissemination of MsFEM methods within industrial, non academic codes. Introduction The article is organized as follows. In Section 2, on the example of the diffusion problem (1), we introduce the simplest MsFEM approach (namely the so-called linear MsFEM) in a Galerkin setting (see Algorithm 1), and present its non-intrusive variant, namely Algorithm 2. We also outline the relation between this variant and a Petrov-Galerkin variant of the MsFEM. Some elements of numerical analysis (along with an illustrative numerical result) are provided in Section 3, to estimate the additional error introduced by the non-intrusive implementation of the method. It is well-known that the linear MsFEM variant considered in Sections 2 and 3 is outperformed by several MsFEM variants. For pedagogical purposes, we have deliberately chosen to present our ideas on this simple variant and to collect in Section 4 some concluding remarks on the many possible extensions of our methodology to design non-intrusive implementations of existing approaches. Introduction We postpone a comprehensive presentation of our procedure, with applications to several MsFEM variants, several equations and various boundary conditions, to an upcoming article [4] (see also [3]). Non-intrusive implementation of MsFEM: a simple case We provide problem (1) with all the usual assumptions that make it well-posed at the continuous level and amenable to a classical Galerkin approximation. In particular, we assume that A ε ∈ L ∞ (Ω, R d×d ) satisfies the bounds Non-intrusive implementation of MsFEM: a simple case for some M ≥ m > 0 independent of ε, and that f does not oscillate on the microscopic scale ε. Note that no further structural assumptions on A ε are made (in particular, A ε need not be of the form A(·/ε) for a fixed rescaled function A). We respectively denote by Non-intrusive implementation of MsFEM: a simple case the bilinear and linear forms associated to the variational formulation of (1). We seek a numerical approximation of (1) by applying an MsFEM type Galerkin approach. To this end, we introduce a conformal simplicial mesh T H of Ω (i.e., made of triangles if d = 2, tetrahedra if d = 3) and denote by V H the usual conformal P 1 approximation space on The Multiscale Finite Element Method The MsFEM is a Galerkin approximation that adapts the finite-dimensional approximation space in order to obtain a satisfactory accuracy even on a coarse mesh. Let x 1 , . . . , x Nv be the interior vertices (i.e., the N v vertices that do not lie on ∂Ω) of T H , and let φ P1 i be the unique element of V H such that φ P1 i (x j ) = δ i,j for all 1 ≤ j ≤ N v . For any 1 ≤ i ≤ N v , we define the multiscale basis function φ ε i ∈ H 1 0 (Ω), which is supported by the exact same mesh elements as φ P1 The Multiscale Finite Element Method i , by The Multiscale Finite Element Method The multiscale approximation space is defined as The Multiscale Finite Element Method and it has the same dimension as V H . The MsFEM approach then consists in computing the approximation u ε H ∈ V ε H defined by the problem The Multiscale Finite Element Method Since the space V ε H is problem-dependent, we can hope (and this is indeed the case) the approximation (5) to capture the exact solution much better than a P 1 approximation on the same mesh (even on a mesh of size H of the order of ε). The Multiscale Finite Element Method Remark 1 (Offline vs. online phase). In practice, the local problems (4) need to be approximated, for instance using a standard P 1 approximation on a fine mesh (of K ∈ T H ) of mesh size h ≤ ε which resolves the oscillations of A ε . We omit here this additional discretization. All what follows can readily be extended to the case when only some numerical approximation of φ ε i is available. The Multiscale Finite Element Method The computation of {φ ε i } 1≤i≤Nv is called the offline phase of the MsFEM. All the problems (4) on different mesh elements are independent of each other, and can thus be solved in parallel. On the other hand, the term online phase is used for the resolution of the global problem (5), where the number of degrees of freedom is the same as in a standard P 1 approximation on V H . The Multiscale Finite Element Method The MsFEM approach can schematically be presented as Algorithm 1. Lines 1-11 (resp. 12-16) constitute the offline (resp. online) phase. The Multiscale Finite Element Method Algorithm 1 MsFEM approach for Problem (1) (see comments in the text) The Multiscale Finite Element Method Solve for φ ε i in (4) 4: end for 5: Set A ε := 0 and F ε := 0 6: for all K ∈ T H do 7: The Multiscale Finite Element Method end for 12: The Multiscale Finite Element Method end for 14: end for The Multiscale Finite Element Method 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 10 of Algorithm 1), it is by no means obvious to adapt existing finite element codes based on generic spaces like V H 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 and F K φ ε 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 in the coarse mesh, the assembly of the global stiffness matrix A ε j,i 1≤i,j≤Nv should be manually performed, . . . To alleviate these obstacles, we shall next introduce a way of implementing MsFEM that capitalizes on an existing code for solving (1) by a P 1 approximation on T H in the case of slowlyvarying diffusion coefficients. The Multiscale Finite Element Method To the best of our knowledge, the question of how to make MsFEM approaches less intrusive has not been studied in the literature, and this work (that will be complemented in the future works [4,3]) is a first step in that direction. On the other hand, for some other multiscale approaches (including HMM and LOD), this question has been (at least partially) addressed. By construction, HMM methods are less invasive, since they primarily aim at approximating u ε on the coarse scales. The first step of these methods somewhat consists in building an effective, slowly-varying diffusion coefficient (which plays the role of the matrix A introduced in (11) below), which can next be used in any single-scale solver. The LOD approach, which, similarly to MsFEM, aims at approximating u ε on the coarse and the fine scales, is also invasive in general, since it also introduces adapted basis functions. As shown in [6], the LOD can be recast as a P 1 discretization of an appropriate single-scale problem, an observation which opens the way to non-intrusive implementations. Note however that, despite its current intrusiveness, MsFEM has its own advantages over other multiscale approaches: it directly aims at approximating the oscillatory solution u ε (including its fine scale details), and makes use of fully localized basis functions to do so. Equivalent problem on the macroscopic scale Our starting point for reducing intrusiveness in the above MsFEM implementation is the following key observation. On any K ∈ T H , by linearity of the definition (4) of φ ε i in terms of φ P1 i , and because the finite element space V H consists of functions that are piecewise affine (that is to say, ∇φ P1 i is constant in each K), we have the expansion Equivalent problem on the macroscopic scale for any basis function φ ε i of V ε H . Here, χ ε,α K ∈ H 1 0 (K) is defined as the solution to the local problem Equivalent problem on the macroscopic scale where e α denotes the α-th canonical unit vector of R d . Considering indeed the right-hand side of (6), we compute that its gradient in K is Equivalent problem on the macroscopic scale The right-hand side of (6) therefore satisfies the PDE in (4). It also satisfies the boundary conditions in (4), in view of the boundary conditions in (7). Since the solution to (4) is unique, we deduce the identity (6). Equivalent problem on the macroscopic scale For each K ∈ T H and each 1 ≤ α ≤ d, we extend χ ε,α K by 0 outside K, thereby obtaining a function χ ε,α K ∈ H 1 0 (Ω). We then deduce from (6) that there is a one-to-one correspondence between functions in V ε H and functions in V H . More precisely, for any Equivalent problem on the macroscopic scale and conversely, for Equivalent problem on the macroscopic scale We now consider the linear system associated to (5) and insert therein the expansion (8) for the multiscale basis functions. The solution to (5) Equivalent problem on the macroscopic scale with (8) and using that ∇φ P1 i is piecewise constant, we write Equivalent problem on the macroscopic scale Inserting this relation in the definition of the matrix elements A ε j,i , we obtain Equivalent problem on the macroscopic scale where x α = x · e α is the α-th coordinate. We now define the piecewise constant matrixvalued field A ∈ P 0 (T H , R d×d ) by Equivalent problem on the macroscopic scale where |K| denotes the area or volume of the mesh element K. Using (7) and the bounds (2) satisfied by A ε , it is easy to show (see [4]) that A satisfies the following uniform lower and upper bounds: for any ξ and η in R d , m |ξ| 2 ≤ ξ · A(x)ξ and η · A(x)ξ ≤ M 1 + M m |ξ| |η| a.e. in Ω. Equivalent problem on the macroscopic scale Motivated by (10) and (11), we introduce the coarse-scale problem Equivalent problem on the macroscopic scale and its P 1 Galerkin discretization: find u H ∈ V H such that Equivalent problem on the macroscopic scale where the linear form F is defined by (3) and the bilinear form a A is defined by Problem (14) equivalently writes with Problem (14) equivalently writes We then deduce from (10) that Problem (14) equivalently writes where we recall that the piecewise constant matrix A given by (11), and therefore the stiffness matrix A P1 , depends on the fine scale oscillations of A ε . The above calculations yield the following result. Problem (14) equivalently writes Lemma 2. The stiffness matrix A ε in (9) of the MsFEM problem (5) is identical to the stiffness matrix A P1 in (15) of the P 1 problem (14). Problem (14) equivalently writes We note that the right-hand vector F ε in (9) is in general different from the right-hand side vector F P1 in (15), since we integrate f against highly oscillatory basis functions in the former problem and against P 1 basis functions in the latter. The solutions U ε and U P1 to (9) and (15), respectively, are thus a priori different. Problem (14) equivalently writes The above observations suggest to use the identity (17) of the stiffness matrices to replace the MsFEM discrete problem (9) by the discrete problem (15) stemming from the P 1 Galerkin approximation of the single scale problem (13), which itself may be easily implemented in legacy codes. This results in our non-intrusive MsFEM strategy presented in Algorithm 2. We can distinguish there the offline phase (in lines 1-14) and the online phase (in lines 15-20). The few lines that differ between Algorithm 2 and a standard P 1 algorithm are highlighted in blue. The lines in black are already present in standard codes and are written in Algorithm 2 for the sake of completeness. Problem (14) equivalently writes The superiority of Algorithm 2 over the classical MsFEM Algorithm 1 is that the global problem of the online phase (including its right-hand side) can be completely constructed and solved using a pre-existing P 1 PDE solver. The only requirements in the legacy code are the ability to provide piecewise constant diffusion coefficients to the solver N (n, K) the global index of the vertex of K ∈ T H that has local index 1 ≤ n ≤ d + 1 in K 2: for all K ∈ T H do 3: Problem (14) equivalently writes Solve for χ ε,α K defined by (7) 5: Problem (14) equivalently writes end for 6: Problem (14) equivalently writes Compute A| K defined by (11) 7: end for Problem (14) equivalently writes end for 15: The requirement for these fine-scale solvers is that they have access to the coarse mesh T H of the global solver and that they can evaluate u H anywhere in Ω (which is useful in line 20). Note also that the fine-scale problem (7) is only indexed by the coarse mesh element K, in contrast to the fine scale problem (4), which is indexed both by the coarse mesh element K and the vertex index i. In the latter case, one has to know, for each element K, the global number of the element vertices, a piece of information which may be difficult to access to in a legacy code. In the former case, this correspondence is not needed to compute A and u ε H , which are entirely defined element-wise. Problem (14) equivalently writes Remark 3 (Link with homogenization theory). The above non-intrusive implementation involves quantities which are of course reminiscent of standard quantities introduced in homogenization. The problem (7), the effective diffusion matrix (11), the single-scale problem (13) and the expansion (8) ressemble the corrector problem, the homogenized matrix, the homogenized problem and the two-scale expansion of the oscillatory solution, respectively. In the same spirit, in the case when A ε is the rescaling of some periodic matrix, it can be shown (see [4]) that the effective diffusion matrix A converges to the homogenized matrix when ε → 0. Problem (14) equivalently writes As shown by (17), the matrix A P1 in (15) is identical to the matrix A ε in (9). However, in general, the right-hand sides F ε in (9) and F P1 in (15) are different. This motivates the introduction of the following Petrov-Galerkin variant of the MsFEM: find u ε,P G Problem (14) equivalently writes Note that, in contrast to (5), we take the test functions in the P 1 space V H rather than Problem (14) equivalently writes j the stiffness matrix of the resulting linear system. Of course, the right-hand side vector of this linear system is equal to F P1 defined by (16). Problem (14) equivalently writes Lemma 4. The stiffness matrices A ε and A ε,P G of the problems (5) and (18) are identical (and thus identical to A P1 ). The right-hand side vector of (18) is identical to the right-hand side vector F P1 of the problem (14). The solution u ε,P G H to the Petrov-Galerkin MsFEM (18) thus coincides with the function u ε H computed by Algorithm 2. Proof. To prove this lemma, it is enough to show that the stiffness matrices of (5) and (18) are equal. Using an integration by parts, we compute Problem (14) equivalently writes where n is the unit outward normal vector on ∂K. The two terms above vanish in view of (4). This implies the identity of the stiffness matrices of (5) and (18) and the well-posedness of the Petrov-Galerkin approximation (18). Problem (14) equivalently writes To summarize, the above procedure to go from the MsFEM problem (5) to its nonintrusive implementation described in Algorithm 2 is based on the following steps: Problem (14) equivalently writes 1. we use the linearity of the problem and the fact that gradients of P 1 basis functions are constant in each mesh element to establish the identity (6); 2. we can then recast the MsFEM stiffness matrix A ε as the stiffness matrix A P1 of the P 1 discretization of an appropriate problem; Problem (14) equivalently writes 3. we approximate the right-hand side F ε of the MsFEM problem by a right-hand side F P1 which can be computed in a manner consistent with a P 1 discretization; 4. we postprocess the P 1 solution to obtain an approximation of the reference solution. Problem (14) equivalently writes We nowhere use in these steps that the discrete problem we are actually solving (here (15)) in fact corresponds to some discretization (here, a Petrov-Galerkin discretization) of the reference problem. This correspondence is useful to estimate the error introduced by the non-intrusive implementation (a task we perform in Section 3 below), but it does not necessarily hold for other variants of MsFEM (e.g. the oversampling variant briefly mentioned in Section 4 below) and it is not required to put the non-intrusive approach in action. We expect the computational cost of Algorithm 2 to be smaller than that of Algorithm 1, since F P1 is cheaper to compute than F ε (we do not need to use a quadrature rule on the fine mesh). On the other hand, Algorithm 2 (and non-intrusive implementations in general) may introduce additional numerical errors. We estimate these in Section 3. Problem (14) equivalently writes (provided by Algorithm 2). Assume that f ∈ L 2 (Ω). There exists a constant C independent of ε, H and f such that Problem (14) equivalently writes The classical error estimate for the Galerkin MsFEM approach (5) is obtained in the literature under the assumption that A ε is actually the rescaling of a given periodic matrix. The bound in the estimate reads C (H + √ ε+ ε/H) for some C independent of ε and H (see e.g. [5]). Lemma 6 and a triangle inequality show that the same convergence rate holds for the Petrov-Galerkin MsFEM approach (18), of course under the same periodicity assumption. Problem (14) equivalently writes Proof. Let e ε H = u ε,G H − u ε,P G H . Since the numerical approximations u ε,G H and u ε,P G Upon testing against v = e osc edges of the coarse mesh elements, since the exact solution oscillates along the edges while the numerical approximation does not. To overcome this drawback, several alternative definitions of the multiscale basis functions have been proposed, leading to different MsFEM variants, including the oversampling variant, introduced in [7] and nowadays considered to be a reference MsFEM variant. We will investigate in [4,3] how the nonintrusive implementation procedure presented here can be extended to that case. We note that oversampling multiscale basis functions are again defined in terms of φ P1 i in a linear manner, which should allow to obtain a formula analogous to (6). The stiffness matrices of the Galerkin and the Petrov-Galerkin approximations are in general different (in contrast to the case studied here, see Lemma 4), but formal arguments show that the two of them can be expressed as the stiffness matrix obtained using a standard P 1 approximation of the single-scale problem (13), for an appropriately defined piecewise constant effective matrix A. We refer to [4,3] for definite conclusions. Problem (14) equivalently writes To outline the versality of the above procedure leading to a non-intrusive implementation, we eventually make a few remarks on the advection-diffusion problem − div(A ε ∇u ε ) + b · ∇u ε = f in Ω, u ε = 0 on ∂Ω. Problem (14) equivalently writes The MsFEM basis functions may be defined by (4) or by a similar equation including the advection term (see e.g. [9,3]). Oversampling may also be used. In all cases, for the same reasons as above, an identity of the type (6) should hold, which allows to express the stiffness matrix of the approach as the stiffness matrix obtained using a standard P 1 finite element approximation of a single-scale problem containing diffusion and advection terms, with appropriate definitions of a diffusion matrix A and an advection field b that are both piecewise constant. We again refer to [4,3] for details.

섹션 본문 131문단 · 40,997자

(제목 없음)

1Multiscale Finite Element Methods (MsFEM) are finite element type approaches dedicated to multiscale problems. They first compute local, oscillatory, problemdependent basis functions which generate a specific 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.

Introduction

2We consider the highly oscillatory diffusion problem − div (A ε ∇u ε ) = f in Ω, u ε = 0 on ∂Ω,

3in a bounded domain Ω ⊂ R d , where the diffusion coefficient A ε is assumed to oscillate on a typical length scale of size ε much smaller than the diameter of Ω, and to satisfy the usual ellipticity assumptions (see Section 2 below for details). We seek a numerical approximation of (1) by applying a Galerkin approach. It is well-known that standard (say P 1 ) finite element methods yield an approximation of poor accuracy, as a consequence of the highly oscillatory nature of the problem, unless a prohibitively expensive fine mesh is employed. Dedicated multiscale approaches have thus been introduced, which provide a reasonably accurate approximation of (1) for a limited computational cost. Among the many multiscale approaches that have been proposed in the literature, we mention the Heterogeneous Multiscale Method (henceforth abbreviated as HMM) [1], the Local Orthogonal Decomposition method (LOD) [2], and the Multiscale Finite Element Method (MsFEM) on which we focus here (see [7,5,8] for a comprehensive exposition).

4Specifically, the MsFEM method is a finite element type method, which consists of two steps:

5• an "offline" phase, where highly oscillatory, problem-dependent (but right-hand side independent) basis functions are numerically computed as solutions to local problems (that mimick the reference problem on a subdomain);

6• an "online" phase, where a Galerkin approximation of (1), performed in the finitedimensional space generated by the basis functions computed in the offline phase, is solved.

7The MsFEM approach is particularly interesting in multi-query contexts, where (1) is to be repeatedly solved for multiple right-hand sides f (think e.g. of optimization problems, or of time-dependent problems where (1) would be the typical equation to solve to advance from one time step to the next). In this case, the offline phase is only performed once and a significant computational gain is thus achieved. Several MsFEM variants exist, depending on the specific definition of the basis functions. Although their implementation is rightfully considered to be relatively easy (see e.g. [5,10]), they are all definitely intrusive. They indeed require to change the finite element basis set and adjust it to the problem at hand. Our aim in this article is to investigate how these approaches can be adapted (possibly at the price of a marginal loss in their efficiency) so that they become as little intrusive as possible, thereby allowing to use only a legacy, single-scale software (based on standard finite elements) to recover an accurate approximation of (1). We believe that such an endeavor will eventually facilitate the dissemination of MsFEM methods within industrial, non academic codes.

8The article is organized as follows. In Section 2, on the example of the diffusion problem (1), we introduce the simplest MsFEM approach (namely the so-called linear MsFEM) in a Galerkin setting (see Algorithm 1), and present its non-intrusive variant, namely Algorithm 2. We also outline the relation between this variant and a Petrov-Galerkin variant of the MsFEM. Some elements of numerical analysis (along with an illustrative numerical result) are provided in Section 3, to estimate the additional error introduced by the non-intrusive implementation of the method. It is well-known that the linear MsFEM variant considered in Sections 2 and 3 is outperformed by several MsFEM variants. For pedagogical purposes, we have deliberately chosen to present our ideas on this simple variant and to collect in Section 4 some concluding remarks on the many possible extensions of our methodology to design non-intrusive implementations of existing approaches.

9We postpone a comprehensive presentation of our procedure, with applications to several MsFEM variants, several equations and various boundary conditions, to an upcoming article [4] (see also [3]).

Non-intrusive implementation of MsFEM: a simple case

10We provide problem (1) with all the usual assumptions that make it well-posed at the continuous level and amenable to a classical Galerkin approximation. In particular, we assume that A ε ∈ L ∞ (Ω, R d×d ) satisfies the bounds

11for some M ≥ m > 0 independent of ε, and that f does not oscillate on the microscopic scale ε. Note that no further structural assumptions on A ε are made (in particular, A ε need not be of the form A(·/ε) for a fixed rescaled function A). We respectively denote by

12the bilinear and linear forms associated to the variational formulation of (1). We seek a numerical approximation of (1) by applying an MsFEM type Galerkin approach. To this end, we introduce a conformal simplicial mesh T H of Ω (i.e., made of triangles if d = 2, tetrahedra if d = 3) and denote by V H the usual conformal P 1 approximation space on

The Multiscale Finite Element Method

13The MsFEM is a Galerkin approximation that adapts the finite-dimensional approximation space in order to obtain a satisfactory accuracy even on a coarse mesh. Let x 1 , . . . , x Nv be the interior vertices (i.e., the N v vertices that do not lie on ∂Ω) of T H , and let φ P1 i be the unique element of V H such that φ P1 i (x j ) = δ i,j for all 1 ≤ j ≤ N v . For any 1 ≤ i ≤ N v , we define the multiscale basis function φ ε i ∈ H 1 0 (Ω), which is supported by the exact same mesh elements as φ P1

14i , by

15The multiscale approximation space is defined as

16and it has the same dimension as V H . The MsFEM approach then consists in computing the approximation u ε H ∈ V ε H defined by the problem

17Since the space V ε H is problem-dependent, we can hope (and this is indeed the case) the approximation (5) to capture the exact solution much better than a P 1 approximation on the same mesh (even on a mesh of size H of the order of ε).

18Remark 1 (Offline vs. online phase). In practice, the local problems (4) need to be approximated, for instance using a standard P 1 approximation on a fine mesh (of K ∈ T H ) of mesh size h ≤ ε which resolves the oscillations of A ε . We omit here this additional discretization. All what follows can readily be extended to the case when only some numerical approximation of φ ε i is available.

19The computation of {φ ε i } 1≤i≤Nv is called the offline phase of the MsFEM. All the problems (4) on different mesh elements are independent of each other, and can thus be solved in parallel. On the other hand, the term online phase is used for the resolution of the global problem (5), where the number of degrees of freedom is the same as in a standard P 1 approximation on V H .

20The MsFEM approach can schematically be presented as Algorithm 1. Lines 1-11 (resp. 12-16) constitute the offline (resp. online) phase.

21Algorithm 1 MsFEM approach for Problem (1) (see comments in the text)

22Solve for φ ε i in (4) 4: end for 5: Set A ε := 0 and F ε := 0 6: for all K ∈ T H do 7:

23end for 12:

24end for 14: end for

25Implementing 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 10 of Algorithm 1), it is by no means obvious to adapt existing finite element codes based on generic spaces like V H 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 and F K φ ε 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 in the coarse mesh, the assembly of the global stiffness matrix A ε j,i 1≤i,j≤Nv should be manually performed, . . . To alleviate these obstacles, we shall next introduce a way of implementing MsFEM that capitalizes on an existing code for solving (1) by a P 1 approximation on T H in the case of slowlyvarying diffusion coefficients.

26To the best of our knowledge, the question of how to make MsFEM approaches less intrusive has not been studied in the literature, and this work (that will be complemented in the future works [4,3]) is a first step in that direction. On the other hand, for some other multiscale approaches (including HMM and LOD), this question has been (at least partially) addressed. By construction, HMM methods are less invasive, since they primarily aim at approximating u ε on the coarse scales. The first step of these methods somewhat consists in building an effective, slowly-varying diffusion coefficient (which plays the role of the matrix A introduced in (11) below), which can next be used in any single-scale solver. The LOD approach, which, similarly to MsFEM, aims at approximating u ε on the coarse and the fine scales, is also invasive in general, since it also introduces adapted basis functions. As shown in [6], the LOD can be recast as a P 1 discretization of an appropriate single-scale problem, an observation which opens the way to non-intrusive implementations. Note however that, despite its current intrusiveness, MsFEM has its own advantages over other multiscale approaches: it directly aims at approximating the oscillatory solution u ε (including its fine scale details), and makes use of fully localized basis functions to do so.

Equivalent problem on the macroscopic scale

27Our starting point for reducing intrusiveness in the above MsFEM implementation is the following key observation. On any K ∈ T H , by linearity of the definition (4) of φ ε i in terms of φ P1 i , and because the finite element space V H consists of functions that are piecewise affine (that is to say, ∇φ P1 i is constant in each K), we have the expansion

28for any basis function φ ε i of V ε H . Here, χ ε,α K ∈ H 1 0 (K) is defined as the solution to the local problem

29where e α denotes the α-th canonical unit vector of R d . Considering indeed the right-hand side of (6), we compute that its gradient in K is

30The right-hand side of (6) therefore satisfies the PDE in (4). It also satisfies the boundary conditions in (4), in view of the boundary conditions in (7). Since the solution to (4) is unique, we deduce the identity (6).

31For each K ∈ T H and each 1 ≤ α ≤ d, we extend χ ε,α K by 0 outside K, thereby obtaining a function χ ε,α K ∈ H 1 0 (Ω). We then deduce from (6) that there is a one-to-one correspondence between functions in V ε H and functions in V H . More precisely, for any

32and conversely, for

33We now consider the linear system associated to (5) and insert therein the expansion (8) for the multiscale basis functions. The solution to (5)

34with (8) and using that ∇φ P1 i is piecewise constant, we write

35Inserting this relation in the definition of the matrix elements A ε j,i , we obtain

36where x α = x · e α is the α-th coordinate. We now define the piecewise constant matrixvalued field A ∈ P 0 (T H , R d×d ) by

37where |K| denotes the area or volume of the mesh element K. Using (7) and the bounds (2) satisfied by A ε , it is easy to show (see [4]) that A satisfies the following uniform lower and upper bounds: for any ξ and η in R d , m |ξ| 2 ≤ ξ · A(x)ξ and η · A(x)ξ ≤ M 1 + M m |ξ| |η| a.e. in Ω.

38Motivated by (10) and (11), we introduce the coarse-scale problem

39and its P 1 Galerkin discretization: find u H ∈ V H such that

40where the linear form F is defined by (3) and the bilinear form a A is defined by

Problem (14) equivalently writes

41with

42We then deduce from (10) that

43where we recall that the piecewise constant matrix A given by (11), and therefore the stiffness matrix A P1 , depends on the fine scale oscillations of A ε . The above calculations yield the following result.

44Lemma 2. The stiffness matrix A ε in (9) of the MsFEM problem (5) is identical to the stiffness matrix A P1 in (15) of the P 1 problem (14).

45We note that the right-hand vector F ε in (9) is in general different from the right-hand side vector F P1 in (15), since we integrate f against highly oscillatory basis functions in the former problem and against P 1 basis functions in the latter. The solutions U ε and U P1 to (9) and (15), respectively, are thus a priori different.

46The above observations suggest to use the identity (17) of the stiffness matrices to replace the MsFEM discrete problem (9) by the discrete problem (15) stemming from the P 1 Galerkin approximation of the single scale problem (13), which itself may be easily implemented in legacy codes. This results in our non-intrusive MsFEM strategy presented in Algorithm 2. We can distinguish there the offline phase (in lines 1-14) and the online phase (in lines 15-20). The few lines that differ between Algorithm 2 and a standard P 1 algorithm are highlighted in blue. The lines in black are already present in standard codes and are written in Algorithm 2 for the sake of completeness.

47The superiority of Algorithm 2 over the classical MsFEM Algorithm 1 is that the global problem of the online phase (including its right-hand side) can be completely constructed and solved using a pre-existing P 1 PDE solver. The only requirements in the legacy code are the ability to provide piecewise constant diffusion coefficients to the solver N (n, K) the global index of the vertex of K ∈ T H that has local index 1 ≤ n ≤ d + 1 in K 2: for all K ∈ T H do 3:

48Solve for χ ε,α K defined by (7) 5:

49end for 6:

50Compute A| K defined by (11) 7: end for

51end for 15: The requirement for these fine-scale solvers is that they have access to the coarse mesh T H of the global solver and that they can evaluate u H anywhere in Ω (which is useful in line 20). Note also that the fine-scale problem (7) is only indexed by the coarse mesh element K, in contrast to the fine scale problem (4), which is indexed both by the coarse mesh element K and the vertex index i. In the latter case, one has to know, for each element K, the global number of the element vertices, a piece of information which may be difficult to access to in a legacy code. In the former case, this correspondence is not needed to compute A and u ε H , which are entirely defined element-wise.

52Remark 3 (Link with homogenization theory). The above non-intrusive implementation involves quantities which are of course reminiscent of standard quantities introduced in homogenization. The problem (7), the effective diffusion matrix (11), the single-scale problem (13) and the expansion (8) ressemble the corrector problem, the homogenized matrix, the homogenized problem and the two-scale expansion of the oscillatory solution, respectively. In the same spirit, in the case when A ε is the rescaling of some periodic matrix, it can be shown (see [4]) that the effective diffusion matrix A converges to the homogenized matrix when ε → 0.

53As shown by (17), the matrix A P1 in (15) is identical to the matrix A ε in (9). However, in general, the right-hand sides F ε in (9) and F P1 in (15) are different. This motivates the introduction of the following Petrov-Galerkin variant of the MsFEM: find u ε,P G

54Note that, in contrast to (5), we take the test functions in the P 1 space V H rather than

55j the stiffness matrix of the resulting linear system. Of course, the right-hand side vector of this linear system is equal to F P1 defined by (16).

56Lemma 4. The stiffness matrices A ε and A ε,P G of the problems (5) and (18) are identical (and thus identical to A P1 ). The right-hand side vector of (18) is identical to the right-hand side vector F P1 of the problem (14). The solution u ε,P G H to the Petrov-Galerkin MsFEM (18) thus coincides with the function u ε H computed by Algorithm 2. Proof. To prove this lemma, it is enough to show that the stiffness matrices of (5) and (18) are equal. Using an integration by parts, we compute

57where n is the unit outward normal vector on ∂K. The two terms above vanish in view of (4). This implies the identity of the stiffness matrices of (5) and (18) and the well-posedness of the Petrov-Galerkin approximation (18).

58To summarize, the above procedure to go from the MsFEM problem (5) to its nonintrusive implementation described in Algorithm 2 is based on the following steps:

591. we use the linearity of the problem and the fact that gradients of P 1 basis functions are constant in each mesh element to establish the identity (6); 2. we can then recast the MsFEM stiffness matrix A ε as the stiffness matrix A P1 of the P 1 discretization of an appropriate problem;

603. we approximate the right-hand side F ε of the MsFEM problem by a right-hand side F P1 which can be computed in a manner consistent with a P 1 discretization; 4. we postprocess the P 1 solution to obtain an approximation of the reference solution.

61We nowhere use in these steps that the discrete problem we are actually solving (here (15)) in fact corresponds to some discretization (here, a Petrov-Galerkin discretization) of the reference problem. This correspondence is useful to estimate the error introduced by the non-intrusive implementation (a task we perform in Section 3 below), but it does not necessarily hold for other variants of MsFEM (e.g. the oversampling variant briefly mentioned in Section 4 below) and it is not required to put the non-intrusive approach in action. We expect the computational cost of Algorithm 2 to be smaller than that of Algorithm 1, since F P1 is cheaper to compute than F ε (we do not need to use a quadrature rule on the fine mesh). On the other hand, Algorithm 2 (and non-intrusive implementations in general) may introduce additional numerical errors. We estimate these in Section 3.

62(provided by Algorithm 2). Assume that f ∈ L 2 (Ω). There exists a constant C independent of ε, H and f such that

63The classical error estimate for the Galerkin MsFEM approach (5) is obtained in the literature under the assumption that A ε is actually the rescaling of a given periodic matrix. The bound in the estimate reads C (H + √ ε+ ε/H) for some C independent of ε and H (see e.g. [5]). Lemma 6 and a triangle inequality show that the same convergence rate holds for the Petrov-Galerkin MsFEM approach (18), of course under the same periodicity assumption.

64Proof. Let e ε H = u ε,G H − u ε,P G H . Since the numerical approximations u ε,G H and u ε,P G Upon testing against v = e osc edges of the coarse mesh elements, since the exact solution oscillates along the edges while the numerical approximation does not. To overcome this drawback, several alternative definitions of the multiscale basis functions have been proposed, leading to different MsFEM variants, including the oversampling variant, introduced in [7] and nowadays considered to be a reference MsFEM variant. We will investigate in [4,3] how the nonintrusive implementation procedure presented here can be extended to that case. We note that oversampling multiscale basis functions are again defined in terms of φ P1 i in a linear manner, which should allow to obtain a formula analogous to (6). The stiffness matrices of the Galerkin and the Petrov-Galerkin approximations are in general different (in contrast to the case studied here, see Lemma 4), but formal arguments show that the two of them can be expressed as the stiffness matrix obtained using a standard P 1 approximation of the single-scale problem (13), for an appropriately defined piecewise constant effective matrix A. We refer to [4,3] for definite conclusions.

65To outline the versality of the above procedure leading to a non-intrusive implementation, we eventually make a few remarks on the advection-diffusion problem − div(A ε ∇u ε ) + b · ∇u ε = f in Ω, u ε = 0 on ∂Ω.

66The MsFEM basis functions may be defined by (4) or by a similar equation including the advection term (see e.g. [9,3]). Oversampling may also be used. In all cases, for the same reasons as above, an identity of the type (6) should hold, which allows to express the stiffness matrix of the approach as the stiffness matrix obtained using a standard P 1 finite element approximation of a single-scale problem containing diffusion and advection terms, with appropriate definitions of a diffusion matrix A and an advection field b that are both piecewise constant. We again refer to [4,3] for details.

Introduction

67We consider the highly oscillatory diffusion problem − div (A ε ∇u ε ) = f in Ω, u ε = 0 on ∂Ω,

68in a bounded domain Ω ⊂ R d , where the diffusion coefficient A ε is assumed to oscillate on a typical length scale of size ε much smaller than the diameter of Ω, and to satisfy the usual ellipticity assumptions (see Section 2 below for details). We seek a numerical approximation of (1) by applying a Galerkin approach. It is well-known that standard (say P 1 ) finite element methods yield an approximation of poor accuracy, as a consequence of the highly oscillatory nature of the problem, unless a prohibitively expensive fine mesh is employed. Dedicated multiscale approaches have thus been introduced, which provide a reasonably accurate approximation of (1) for a limited computational cost. Among the many multiscale approaches that have been proposed in the literature, we mention the Heterogeneous Multiscale Method (henceforth abbreviated as HMM) [1], the Local Orthogonal Decomposition method (LOD) [2], and the Multiscale Finite Element Method (MsFEM) on which we focus here (see [7,5,8] for a comprehensive exposition).

69Specifically, the MsFEM method is a finite element type method, which consists of two steps:

70• an "offline" phase, where highly oscillatory, problem-dependent (but right-hand side independent) basis functions are numerically computed as solutions to local problems (that mimick the reference problem on a subdomain);

71• an "online" phase, where a Galerkin approximation of (1), performed in the finitedimensional space generated by the basis functions computed in the offline phase, is solved.

72The MsFEM approach is particularly interesting in multi-query contexts, where (1) is to be repeatedly solved for multiple right-hand sides f (think e.g. of optimization problems, or of time-dependent problems where (1) would be the typical equation to solve to advance from one time step to the next). In this case, the offline phase is only performed once and a significant computational gain is thus achieved. Several MsFEM variants exist, depending on the specific definition of the basis functions. Although their implementation is rightfully considered to be relatively easy (see e.g. [5,10]), they are all definitely intrusive. They indeed require to change the finite element basis set and adjust it to the problem at hand. Our aim in this article is to investigate how these approaches can be adapted (possibly at the price of a marginal loss in their efficiency) so that they become as little intrusive as possible, thereby allowing to use only a legacy, single-scale software (based on standard finite elements) to recover an accurate approximation of (1). We believe that such an endeavor will eventually facilitate the dissemination of MsFEM methods within industrial, non academic codes.

73The article is organized as follows. In Section 2, on the example of the diffusion problem (1), we introduce the simplest MsFEM approach (namely the so-called linear MsFEM) in a Galerkin setting (see Algorithm 1), and present its non-intrusive variant, namely Algorithm 2. We also outline the relation between this variant and a Petrov-Galerkin variant of the MsFEM. Some elements of numerical analysis (along with an illustrative numerical result) are provided in Section 3, to estimate the additional error introduced by the non-intrusive implementation of the method. It is well-known that the linear MsFEM variant considered in Sections 2 and 3 is outperformed by several MsFEM variants. For pedagogical purposes, we have deliberately chosen to present our ideas on this simple variant and to collect in Section 4 some concluding remarks on the many possible extensions of our methodology to design non-intrusive implementations of existing approaches.

74We postpone a comprehensive presentation of our procedure, with applications to several MsFEM variants, several equations and various boundary conditions, to an upcoming article [4] (see also [3]).

Non-intrusive implementation of MsFEM: a simple case

75We provide problem (1) with all the usual assumptions that make it well-posed at the continuous level and amenable to a classical Galerkin approximation. In particular, we assume that A ε ∈ L ∞ (Ω, R d×d ) satisfies the bounds

76for some M ≥ m > 0 independent of ε, and that f does not oscillate on the microscopic scale ε. Note that no further structural assumptions on A ε are made (in particular, A ε need not be of the form A(·/ε) for a fixed rescaled function A). We respectively denote by

77the bilinear and linear forms associated to the variational formulation of (1). We seek a numerical approximation of (1) by applying an MsFEM type Galerkin approach. To this end, we introduce a conformal simplicial mesh T H of Ω (i.e., made of triangles if d = 2, tetrahedra if d = 3) and denote by V H the usual conformal P 1 approximation space on

The Multiscale Finite Element Method

78The MsFEM is a Galerkin approximation that adapts the finite-dimensional approximation space in order to obtain a satisfactory accuracy even on a coarse mesh. Let x 1 , . . . , x Nv be the interior vertices (i.e., the N v vertices that do not lie on ∂Ω) of T H , and let φ P1 i be the unique element of V H such that φ P1 i (x j ) = δ i,j for all 1 ≤ j ≤ N v . For any 1 ≤ i ≤ N v , we define the multiscale basis function φ ε i ∈ H 1 0 (Ω), which is supported by the exact same mesh elements as φ P1

79i , by

80The multiscale approximation space is defined as

81and it has the same dimension as V H . The MsFEM approach then consists in computing the approximation u ε H ∈ V ε H defined by the problem

82Since the space V ε H is problem-dependent, we can hope (and this is indeed the case) the approximation (5) to capture the exact solution much better than a P 1 approximation on the same mesh (even on a mesh of size H of the order of ε).

83Remark 1 (Offline vs. online phase). In practice, the local problems (4) need to be approximated, for instance using a standard P 1 approximation on a fine mesh (of K ∈ T H ) of mesh size h ≤ ε which resolves the oscillations of A ε . We omit here this additional discretization. All what follows can readily be extended to the case when only some numerical approximation of φ ε i is available.

84The computation of {φ ε i } 1≤i≤Nv is called the offline phase of the MsFEM. All the problems (4) on different mesh elements are independent of each other, and can thus be solved in parallel. On the other hand, the term online phase is used for the resolution of the global problem (5), where the number of degrees of freedom is the same as in a standard P 1 approximation on V H .

85The MsFEM approach can schematically be presented as Algorithm 1. Lines 1-11 (resp. 12-16) constitute the offline (resp. online) phase.

86Algorithm 1 MsFEM approach for Problem (1) (see comments in the text)

87Solve for φ ε i in (4) 4: end for 5: Set A ε := 0 and F ε := 0 6: for all K ∈ T H do 7:

88end for 12:

89end for 14: end for

90Implementing 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 10 of Algorithm 1), it is by no means obvious to adapt existing finite element codes based on generic spaces like V H 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 and F K φ ε 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 in the coarse mesh, the assembly of the global stiffness matrix A ε j,i 1≤i,j≤Nv should be manually performed, . . . To alleviate these obstacles, we shall next introduce a way of implementing MsFEM that capitalizes on an existing code for solving (1) by a P 1 approximation on T H in the case of slowlyvarying diffusion coefficients.

91To the best of our knowledge, the question of how to make MsFEM approaches less intrusive has not been studied in the literature, and this work (that will be complemented in the future works [4,3]) is a first step in that direction. On the other hand, for some other multiscale approaches (including HMM and LOD), this question has been (at least partially) addressed. By construction, HMM methods are less invasive, since they primarily aim at approximating u ε on the coarse scales. The first step of these methods somewhat consists in building an effective, slowly-varying diffusion coefficient (which plays the role of the matrix A introduced in (11) below), which can next be used in any single-scale solver. The LOD approach, which, similarly to MsFEM, aims at approximating u ε on the coarse and the fine scales, is also invasive in general, since it also introduces adapted basis functions. As shown in [6], the LOD can be recast as a P 1 discretization of an appropriate single-scale problem, an observation which opens the way to non-intrusive implementations. Note however that, despite its current intrusiveness, MsFEM has its own advantages over other multiscale approaches: it directly aims at approximating the oscillatory solution u ε (including its fine scale details), and makes use of fully localized basis functions to do so.

Equivalent problem on the macroscopic scale

92Our starting point for reducing intrusiveness in the above MsFEM implementation is the following key observation. On any K ∈ T H , by linearity of the definition (4) of φ ε i in terms of φ P1 i , and because the finite element space V H consists of functions that are piecewise affine (that is to say, ∇φ P1 i is constant in each K), we have the expansion

93for any basis function φ ε i of V ε H . Here, χ ε,α K ∈ H 1 0 (K) is defined as the solution to the local problem

94where e α denotes the α-th canonical unit vector of R d . Considering indeed the right-hand side of (6), we compute that its gradient in K is

95The right-hand side of (6) therefore satisfies the PDE in (4). It also satisfies the boundary conditions in (4), in view of the boundary conditions in (7). Since the solution to (4) is unique, we deduce the identity (6).

96For each K ∈ T H and each 1 ≤ α ≤ d, we extend χ ε,α K by 0 outside K, thereby obtaining a function χ ε,α K ∈ H 1 0 (Ω). We then deduce from (6) that there is a one-to-one correspondence between functions in V ε H and functions in V H . More precisely, for any

97and conversely, for

98We now consider the linear system associated to (5) and insert therein the expansion (8) for the multiscale basis functions. The solution to (5)

99with (8) and using that ∇φ P1 i is piecewise constant, we write

100Inserting this relation in the definition of the matrix elements A ε j,i , we obtain

101where x α = x · e α is the α-th coordinate. We now define the piecewise constant matrixvalued field A ∈ P 0 (T H , R d×d ) by

102where |K| denotes the area or volume of the mesh element K. Using (7) and the bounds (2) satisfied by A ε , it is easy to show (see [4]) that A satisfies the following uniform lower and upper bounds: for any ξ and η in R d , m |ξ| 2 ≤ ξ · A(x)ξ and η · A(x)ξ ≤ M 1 + M m |ξ| |η| a.e. in Ω.

103Motivated by (10) and (11), we introduce the coarse-scale problem

104and its P 1 Galerkin discretization: find u H ∈ V H such that

105where the linear form F is defined by (3) and the bilinear form a A is defined by

Problem (14) equivalently writes

106with

107We then deduce from (10) that

108where we recall that the piecewise constant matrix A given by (11), and therefore the stiffness matrix A P1 , depends on the fine scale oscillations of A ε . The above calculations yield the following result.

109Lemma 2. The stiffness matrix A ε in (9) of the MsFEM problem (5) is identical to the stiffness matrix A P1 in (15) of the P 1 problem (14).

110We note that the right-hand vector F ε in (9) is in general different from the right-hand side vector F P1 in (15), since we integrate f against highly oscillatory basis functions in the former problem and against P 1 basis functions in the latter. The solutions U ε and U P1 to (9) and (15), respectively, are thus a priori different.

111The above observations suggest to use the identity (17) of the stiffness matrices to replace the MsFEM discrete problem (9) by the discrete problem (15) stemming from the P 1 Galerkin approximation of the single scale problem (13), which itself may be easily implemented in legacy codes. This results in our non-intrusive MsFEM strategy presented in Algorithm 2. We can distinguish there the offline phase (in lines 1-14) and the online phase (in lines 15-20). The few lines that differ between Algorithm 2 and a standard P 1 algorithm are highlighted in blue. The lines in black are already present in standard codes and are written in Algorithm 2 for the sake of completeness.

112The superiority of Algorithm 2 over the classical MsFEM Algorithm 1 is that the global problem of the online phase (including its right-hand side) can be completely constructed and solved using a pre-existing P 1 PDE solver. The only requirements in the legacy code are the ability to provide piecewise constant diffusion coefficients to the solver N (n, K) the global index of the vertex of K ∈ T H that has local index 1 ≤ n ≤ d + 1 in K 2: for all K ∈ T H do 3:

113Solve for χ ε,α K defined by (7) 5:

114end for 6:

115Compute A| K defined by (11) 7: end for

116end for 15: The requirement for these fine-scale solvers is that they have access to the coarse mesh T H of the global solver and that they can evaluate u H anywhere in Ω (which is useful in line 20). Note also that the fine-scale problem (7) is only indexed by the coarse mesh element K, in contrast to the fine scale problem (4), which is indexed both by the coarse mesh element K and the vertex index i. In the latter case, one has to know, for each element K, the global number of the element vertices, a piece of information which may be difficult to access to in a legacy code. In the former case, this correspondence is not needed to compute A and u ε H , which are entirely defined element-wise.

117Remark 3 (Link with homogenization theory). The above non-intrusive implementation involves quantities which are of course reminiscent of standard quantities introduced in homogenization. The problem (7), the effective diffusion matrix (11), the single-scale problem (13) and the expansion (8) ressemble the corrector problem, the homogenized matrix, the homogenized problem and the two-scale expansion of the oscillatory solution, respectively. In the same spirit, in the case when A ε is the rescaling of some periodic matrix, it can be shown (see [4]) that the effective diffusion matrix A converges to the homogenized matrix when ε → 0.

118As shown by (17), the matrix A P1 in (15) is identical to the matrix A ε in (9). However, in general, the right-hand sides F ε in (9) and F P1 in (15) are different. This motivates the introduction of the following Petrov-Galerkin variant of the MsFEM: find u ε,P G

119Note that, in contrast to (5), we take the test functions in the P 1 space V H rather than

120j the stiffness matrix of the resulting linear system. Of course, the right-hand side vector of this linear system is equal to F P1 defined by (16).

121Lemma 4. The stiffness matrices A ε and A ε,P G of the problems (5) and (18) are identical (and thus identical to A P1 ). The right-hand side vector of (18) is identical to the right-hand side vector F P1 of the problem (14). The solution u ε,P G H to the Petrov-Galerkin MsFEM (18) thus coincides with the function u ε H computed by Algorithm 2. Proof. To prove this lemma, it is enough to show that the stiffness matrices of (5) and (18) are equal. Using an integration by parts, we compute

122where n is the unit outward normal vector on ∂K. The two terms above vanish in view of (4). This implies the identity of the stiffness matrices of (5) and (18) and the well-posedness of the Petrov-Galerkin approximation (18).

123To summarize, the above procedure to go from the MsFEM problem (5) to its nonintrusive implementation described in Algorithm 2 is based on the following steps:

1241. we use the linearity of the problem and the fact that gradients of P 1 basis functions are constant in each mesh element to establish the identity (6); 2. we can then recast the MsFEM stiffness matrix A ε as the stiffness matrix A P1 of the P 1 discretization of an appropriate problem;

1253. we approximate the right-hand side F ε of the MsFEM problem by a right-hand side F P1 which can be computed in a manner consistent with a P 1 discretization; 4. we postprocess the P 1 solution to obtain an approximation of the reference solution.

126We nowhere use in these steps that the discrete problem we are actually solving (here (15)) in fact corresponds to some discretization (here, a Petrov-Galerkin discretization) of the reference problem. This correspondence is useful to estimate the error introduced by the non-intrusive implementation (a task we perform in Section 3 below), but it does not necessarily hold for other variants of MsFEM (e.g. the oversampling variant briefly mentioned in Section 4 below) and it is not required to put the non-intrusive approach in action. We expect the computational cost of Algorithm 2 to be smaller than that of Algorithm 1, since F P1 is cheaper to compute than F ε (we do not need to use a quadrature rule on the fine mesh). On the other hand, Algorithm 2 (and non-intrusive implementations in general) may introduce additional numerical errors. We estimate these in Section 3.

127(provided by Algorithm 2). Assume that f ∈ L 2 (Ω). There exists a constant C independent of ε, H and f such that

128The classical error estimate for the Galerkin MsFEM approach (5) is obtained in the literature under the assumption that A ε is actually the rescaling of a given periodic matrix. The bound in the estimate reads C (H + √ ε+ ε/H) for some C independent of ε and H (see e.g. [5]). Lemma 6 and a triangle inequality show that the same convergence rate holds for the Petrov-Galerkin MsFEM approach (18), of course under the same periodicity assumption.

129Proof. Let e ε H = u ε,G H − u ε,P G H . Since the numerical approximations u ε,G H and u ε,P G Upon testing against v = e osc edges of the coarse mesh elements, since the exact solution oscillates along the edges while the numerical approximation does not. To overcome this drawback, several alternative definitions of the multiscale basis functions have been proposed, leading to different MsFEM variants, including the oversampling variant, introduced in [7] and nowadays considered to be a reference MsFEM variant. We will investigate in [4,3] how the nonintrusive implementation procedure presented here can be extended to that case. We note that oversampling multiscale basis functions are again defined in terms of φ P1 i in a linear manner, which should allow to obtain a formula analogous to (6). The stiffness matrices of the Galerkin and the Petrov-Galerkin approximations are in general different (in contrast to the case studied here, see Lemma 4), but formal arguments show that the two of them can be expressed as the stiffness matrix obtained using a standard P 1 approximation of the single-scale problem (13), for an appropriately defined piecewise constant effective matrix A. We refer to [4,3] for definite conclusions.

130To outline the versality of the above procedure leading to a non-intrusive implementation, we eventually make a few remarks on the advection-diffusion problem − div(A ε ∇u ε ) + b · ∇u ε = f in Ω, u ε = 0 on ∂Ω.

131The MsFEM basis functions may be defined by (4) or by a similar equation including the advection term (see e.g. [9,3]). Oversampling may also be used. In all cases, for the same reasons as above, an identity of the type (6) should hold, which allows to express the stiffness matrix of the approach as the stiffness matrix obtained using a standard P 1 finite element approximation of a single-scale problem containing diffusion and advection terms, with appropriate definitions of a diffusion matrix A and an advection field b that are both piecewise constant. We again refer to [4,3] for details.

참고문헌 9건

  1. 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
  2. New development in freefem++ Journal of Numerical Mathematics · De Gruyter · 2012 10.1515/jnum-2012-0013
  3. The heterogeneous multiscale method Acta Numerica · Cambridge University Press · 2012 10.1017/s0962492912000025
  4. 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
  5. 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
  6. 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
  7. 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
  8. Numerical homogenization beyond scale separation Acta Numerica · Cambridge University Press · 2021 10.1017/s0962492921000015
  9. Multiscale Finite Element Methods Springer eBooks · Springer Nature · 2009 10.1007/978-0-387-09496-0