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

Online basis construction for goal-oriented adaptivity in the Generalized Multiscale Finite Element Method

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Chung, Eric T.
  2. Pollock, Sara
  3. Pun, Sai-Mang
DOI
10.48550/arxiv.1812.02290
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1812.02290
토픽
Composite Material Mechanics
OpenAlex ID
W6910965364

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In this research, we develop an online enrichment framework for goal-oriented adaptivity within the generalized multiscale finite element method for flow problems in heterogeneous media. The method for approximating the quantity of interest involves construction of residual-based primal and dual basis functions used to enrich the multiscale space at each stage of the adaptive algorithm. Three different online enrichment strategies based on the primal-dual online basis construction are proposed: standard, primal-dual combined and primal-dual product based. Numerical experiments are performed to illustrate the efficiency of the proposed methods for high-contrast heterogeneous problems.

본문 71,129자

본문 펼치기
# Online basis construction for goal-oriented adaptivity in the Generalized Multiscale Finite Element Method #### Eric Chung ∗, Sara Pollock †, Sai-Mang Pun ‡ March 19, 2019 Abstract In this research, we develop an online enrichment framework for goal-oriented adaptivity within the generalized multiscale finite element method for flow problems in heterogeneous media. The method for approximating the quantity of interest involves construction of residual-based primal and dual basis functions used to enrich the multiscale space at each stage of the adaptive algorithm. Three different online enrichment strategies based on the primal-dual online basis construction are proposed: standard, primal-dual combined and primal-dual product based. Numerical experiments are performed to illustrate the efficiency of the proposed methods for high-contrast heterogeneous problems. Keywords Goal-oriented adaptivity, multiscale finite element method, online basis construction, flow in heterogeneous media. ### 1 Introduction In this work, we propose an efficient goal-oriented framework for approximating quantities of interest for flow problems posed in heterogeneous media. Many problems arising from engineering involve heterogeneous materials which have strong contrasts in their physical properties. In general, one may model these so-called multiscale problems using partial differential equations (PDEs) with high-contrast valued multiscale coefficients. An important example is Darcy’s law describing flow in porous media, modeled here by the boundary value problem in the computational domain Ω ⊂ R <sup>d</sup> (d = 2, 3) −div(κ(x)∇u) = f (x) in Ω, u = 0 on ∂Ω. (1) The direct simulation of multiscale PDEs with accurate resolution can be costly as a relatively fine mesh is required to resolve the coefficients, leading to a prohibitively large ∗Department of Mathematics, The Chinese University of Hong Kong, Shatin, Hong Kong †Department of Mathematics, University of Florida, Gainesville, FL 32611, United States ‡Department of Mathematics, The Chinese University of Hong Kong, Shatin, Hong Kong number of degrees of freedom (DOF), a high percentage of which may be extraneous. Recently, these computational challenges have been addressed by the development of efficient model reduction techniques such as numerical homogenization methods [17, 18, 27, 31, 32] and multiscale methods [5, 6, 7, 22, 33, 34]. These methods have been shown to reduce the computational cost of the simulation, for instance approximating u of (1). Here, we apply goal-oriented methods to further reduce the computational cost in the approximation of a quantity of interest. We consider (1) with f ∈ L <sup>2</sup> (Ω) given and for which κ(x) satisfies κ0 ≤ κ(x) ≤ κ1 for a.e. x in Ωwith constants 0 < κ0 ≪ κ1. We proceed by posing (1) in its variational form a(u, v) = f (v) ∀v ∈ H0 <sup>1(Ω),</sup> (2) where a(u, v) := where a(u, v) := Ω <sup>κ(x)∇u</sup> <sup>·</sup> <sup>∇v dx</sup> <sup>and</sup> <sup>f</sup> <sup>(v)</sup> <sup>:=</sup> Ω <sup>fv dx.</sup> We are interested in the case where κ(x) is �a heterogeneous coefficient with high-contrast,� and model reduction is necessary to efficiently approximate the solution. Next, we briefly describe the continuous Galerkin (CG) formulation of the generalized multiscale finite element method (GMsFEM) [7, 14], a systematic approach to multiscale model reduction. We start with the notion of fine and coarse grids. Let T <sup>H</sup> be a conforming partition of the computational domain Ωwith mesh size H - 0. We refer to this partition as the coarse grid. Subordinate to the coarse grid, we define the fine grid partition (with mesh size h ≪ H), denoted by T <sup>h</sup>, by refining each coarse element into a connected union of fine grid blocks. We assume the above refinement is performed such that T <sup>h</sup> is a conforming partition of Ω. Let Nc be the number of interior coarse grid nodes and let {xi} <sup>N</sup> i=1 <sup>c</sup> <sup>be</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>coarse</sup> <sup>grid</sup> <sup>nodes</sup> <sup>of</sup> <sup>the</sup> <sup>coarse</sup> <sup>mesh</sup> <sup>T</sup> <sup>H.</sup> <sup>Let</sup> <sup>N</sup> <sup>be</sup> �a Ω <sup>κ(x)∇u</sup> <sup>·</sup> <sup>∇v dx</sup> <sup>and</sup> <sup>f</sup> <sup>(v)</sup> <sup>:=</sup> nodes and let {xi} <sup>N</sup> i=1 <sup>c</sup> <sup>be</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>coarse</sup> <sup>grid</sup> <sup>nodes</sup> <sup>of</sup> <sup>the</sup> <sup>coarse</sup> <sup>mesh</sup> <sup>T</sup> <sup>H.</sup> <sup>Let</sup> <sup>N</sup> <sup>be</sup> the number of elements in the coarse mesh. Define the coarse neighborhood of the node xi by ωi := {Kj ∈T <sup>H</sup> : xi ∈ K j}, that is, the union of all coarse elements which have the node xi as a vertex. Let the fine-scale finite element space V be the conforming piecewise linear finite element space corresponding to the fine grid T <sup>h</sup> and let u ∈ V be the fine-scale solution satisfying the variational problem a(u, v) = f (v) ∀v ∈ V . (3) Define the energy norm on V by ∥u∥ <sup>2</sup> V <sup>:= a(u, u).</sup> For each coarse node xi, we construct a so-called offline set of basis functions supported on the neighborhood ωi. These pre-computed multiscale basis functions are obtained from a local snapshot space and a local spectral decomposition defined on that snapshot space. The snapshot space contains a collection of basis functions that can capture most of the fine features of the solution. The multiscale basis functions are computed by selecting the dominant modes of the snapshot space through the local spectral problem. Once the basis functions are identified, the CG global coupling is given through the variational formulation a(ums, v) = f (v) ∀v ∈ Voff, where Voff, called the offline space, is the space spanned by the multiscale basis functions. In order to obtain an efficient representation of solution, it is desirable to determine the number of basis functions per coarse neighborhood adaptively based on the heterogeneities of the coefficient κ. In [9], a residual based a posteriori error indicator is derived and an adaptive basis enrichment algorithm is developed under the CG formulation. In particular, it is shown that ∥u − ums∥ <sup>2</sup> V <sup>≤</sup> <sup>C</sup> Nc �i=1 ∥Ri∥ <sup>2</sup> V i , �−1 Vi <sup>∗</sup> λl <sup>(</sup> i <sup>i)</sup> li+1 i <sup>∗</sup> <sup>is</sup> <sup>the</sup> <sup>dual</sup> <sup>space</sup> <sup>to</sup> <sup>Vi</sup> <sup>:=</sup> <sup>H</sup> 0 <sup>1</sup> where Vi <sup>∗</sup> <sup>is</sup> <sup>the</sup> <sup>dual</sup> <sup>space</sup> <sup>to</sup> <sup>Vi</sup> <sup>:=</sup> <sup>H</sup> 0 <sup>1(ωi) ∩</sup> <sup>V,</sup> <sup>Ri</sup> <sup>∈</sup> <sup>V</sup> i <sup>∗</sup> <sup>is</sup> <sup>the</sup> <sup>residual</sup> <sup>operator</sup> <sup>with</sup> respect to the multiscale solution ums on ωi and λl <sup>(</sup> i <sup>i</sup> +1 <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>smallest</sup> <sup>eigenvalue</sup> <sup>whose</sup> where Vi <sup>∗</sup> respect to the multiscale solution ums on ωi and λl <sup>(</sup> i <sup>i</sup> +1 <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>smallest</sup> <sup>eigenvalue</sup> <sup>whose</sup> eigenvector is excluded in the construction of the offline space on coarse neighborhood ωi. Thus, local residuals of the multiscale solution together with the corresponding eigenvalues give indicators to the error of the solution in the energy norm. One can then enrich the multiscale space by selectively adding basis functions corresponding to the coarse neighborhoods in which indicators are large. On the other hand, for some applications it can be beneficial to adaptively construct new online basis functions during the course of the adaptive algorithm to capture distant effects. In [8], such online adaptivity is proposed and mathematically analyzed. More precisely, when the local residual related to some coarse neighborhood ωi is large, one may construct a new basis function φi ∈ Vi in the online stage by solving a(φi, v) = Ri(v) ∀v ∈ Vi, then adding φi as one of the basis functions of multiscale space. It is further shown that if the offline space Voff contains sufficient information in the form of offline basis functions, then the online basis construction leads to an efficient approximation of the fine-scale solution. The adaptivity procedures discussed above are designed with the aim of reducing the error in the energy norm. In some applications, one may be more interested in reducing error measured by some quantity of interest or function of the solution other than a norm. For example, in flow applications, one needs to obtain a good approximation of the pressure in locations where the wells are situated. Goal-oriented adaptivity [1, 4, 19, 21, 25, 26, 28, 30, 35] (and the references therein) can be used to more efficiently reduce the error in the quantity of interest without necessarily achieving the same rate of error reduction in a global sense. Goal-oriented adaptivity has been introduced within the setting of multiscale methodologies in for instance [2, 3, 29], where the authors review the framework of approximating a quantity of interest and investigate the use of this framework in a number of multiscale scientific applications (e.g. quasicontinuum models and molecular dynamics). In [23] the authors perform goal-oriented mesh refinement in the setting of numerical homogenization for nonlinear lattice elasticity problems. In [24], the a posteriori error estimate within the framework of multiscale finite element method was proposed; and, goal-oriented enrichment within the flexible GMsFEM framework with offline basis functions is discussed in [10, 11]. In this research, we develop an online basis construction for goal-oriented adaptivity within GMsFEM for (1). For a given linear functional g : V → R, referred to as the goal functional, we seek to approximate g(u) where u is the solution to (3). One may adaptively enrich the approximation space in order to reduce the goal-error defined by |g(u − ums)|, where ums is the latest multiscale solution. For the construction of goaloriented adaptivity, the dual problem is considered based on a <sup>∗</sup> ( ·, - ), the formal adjoint of a( ·, - ) which satisfies a <sup>∗</sup> (w, v) = a(v, w). In the current symmetric linear case, the dual form is identical to the primal. For the primal problem a(u, v) = f (v) for all v ∈ V, the dual problem is to find z ∈ V such that a(z, v) = g(v) ∀v ∈ V, (4) where g : V → R is the goal functional. For symmetric bilinear form a( ·, - ), the primaldual equivalence f (z) = a(u, z) = a <sup>∗</sup> (z, u) = a(z, u) = g(u), then follows. Error estimates for the quantity of interest follow from the above equality and Galerkin orthogonality. For ums and zms, the respective primal and dual multiscale solutions satisfy f (z − zms) = a(u, z − zms) = a(z − zms, u − ums) = g(u − ums). (5) Goal-oriented adaptivity for GMsFEM using offline basis construction was developed for (1) in [10] and also in the setting of mixed methods in [11]. In both cases, the goaloriented methods based on either residual estimators or a multiscale version of the dualweighted residual indicator were shown to decrease the goal-error more efficiently than standard adaptivity. In this research, we add constructed online basis functions to the approximation space in regions where the residuals are large. The remainder of the paper is organized as follows. In Section 2, we review the framework of GMsFEM. In Section 3, we detail the construction of the primal and dual online basis functions and analyze the convergence of primal-dual enrichment. In Section 4, we present the online adaptive algorithm with three enrichment strategies. In Section 5, we then perform numerical experiments to demonstrate the efficiency of the proposed strategies. Concluding remarks are drawn in Section 6. ### 2 The GMsFEM In this section, we briefly overview the GMsFEM applied to the problem (1). For further details on GMsFEM we refer the reader to [7, 9, 13, 14, 15], and the references therein. The framework of this systematic approach starts with the construction of snapshot functions. After that, one may obtain the multiscale basis functions by solving a class of specific spectral problems in the snapshot space and these multiscale basis functions will be used to solve the multiscale solution. To improve the accuracy of the multiscale approximation, one may then adaptively construct more basis functions in the online stage. #### 2.1 Snapshot space First, we present the construction of the snapshot space which is computed in the offline stage; that is, these snapshot functions are pre-computed before solving the actual problem. The snapshot space consists of harmonic extensions of fine-grid functions that are defined on the boundary of a generic neighborhood ωi of Ki, where Ki is a coarse element from the coarse partition T <sup>H</sup> of the domain Ωand ωi is the coarse neighborhood corresponding to the node xi. We denote the fine-grid function δl <sup>h</sup> We denote the fine-grid function δl <sup>h(xk)</sup> <sup>:=</sup> <sup>δlk</sup> <sup>for</sup> <sup>xk</sup> <sup>∈</sup> <sup>Jh(ωi),</sup> <sup>where</sup> <sup>Jh(ωi)</sup> <sup>denotes</sup> <sup>the</sup> set of fine-grid boundary nodes on ∂ωi. Denote the cardinality of Jh(ωi) as Li. Then, for l = 1, · · ·, Li, the snapshot function ηl <sup>(i)</sup> is defined to be the solution to the following for l = 1, · · ·, Li, the snapshot function ηl <sup>(i)</sup> is defined to be the solution to the following system −div(κ(x)∇ηl <sup>(i)) =</sup> 0 in ωi, ηl <sup>(i)</sup> l <sup>h</sup> on ∂ωi. l <sup>(i)</sup> = δl <sup>h</sup> The local snapshot space Vsnap <sup>(i)</sup> The local snapshot space Vsnap <sup>(i)</sup> <sup>corresponding</sup> <sup>to</sup> <sup>the</sup> <sup>coarse</sup> <sup>neighborhood</sup> <sup>ω</sup> i <sup>is</sup> <sup>defined</sup> <sup>as</sup> Vsnap <sup>(i)</sup> <sup>:=</sup> <sup>span{η</sup> l <sup>(i)</sup> : l = 1, · · ·, Li}. One may define the global snapshot space Vsnap as snap <sup>(i)</sup> <sup>:=</sup> <sup>span{η</sup> l <sup>(i)</sup> Vsnap <sup>(i)</sup> <sup>:=</sup> <sup>span{η</sup> l <sup>(i)</sup> : l = 1, · · ·, Li}. One may define the global snapshot space Vsnap as snap <sup>.</sup> i=1 <sup>V</sup> <sup>(i)</sup> Vsnap := <sup>�Nc</sup> snap i=1 <sup>V</sup> <sup>(i)</sup> snap <sup>.</sup> <sup>(i)</sup> #### 2.2 Offline multiscale basis construction Next, we perform a spectral decomposition in the snapshot space and select the dominant modes (corresponding to small eigenvalues) to construct the multiscale space. Let ωi be a coarse neighborhood corresponding to a coarse node xi. For each i = 1, · · ·, Nc, the spectral problem is to find φ <sup>(</sup> j <sup>i)</sup> ∈ Vsnap <sup>(i)</sup> <sup>and</sup> <sup>λ</sup> j <sup>(i)</sup> ∈ R such that snap <sup>(i)</sup> <sup>and</sup> <sup>λ</sup> j <sup>(i)</sup> <sup>(</sup> j <sup>i)</sup> ∈ Vsnap <sup>(i)</sup> j <sup>(i)</sup> ∈ R such that <sup>(</sup> j <sup>i), w) = λ</sup> j <sup>(i)</sup> ai(φ <sup>(</sup> j <sup>i)</sup> j <sup>(i)si(φ</sup> j <sup>(i)</sup> j <sup>(i), w)</sup> ∀w ∈ Vsnap <sup>(i)</sup> snap <sup>(i)</sup> <sup>,</sup> j = 1, · · ·, Li, (6) where ai(·, ·) is a symmetric non-negative definite bilinear operator and si(·, ·) is a symmetric positive definite bilinear operators defined on Vsnap <sup>(i)</sup> <sup>× V</sup> snap <sup>(i)</sup> <sup>,</sup> <sup>where</sup> <sup>the</sup> <sup>eigenfunctions</sup> ric positive definite bilinear operators defined on Vsnap <sup>(i)</sup> <sup>× V</sup> snap <sup>(i)</sup> <sup>,</sup> <sup>where</sup> <sup>the</sup> <sup>eigenfunctions</sup> φ <sup>(</sup> j <sup>i)</sup> are normalized to satisfy si(φj <sup>(i), φ</sup> j <sup>(i))</sup> <sup>=</sup> <sup>1.</sup> The analyses in [16, 20] motivate the <sup>(</sup> j <sup>i)</sup> are normalized to satisfy si(φj <sup>(i)</sup> j <sup>(i), φ</sup> j <sup>(i)</sup> snap <sup>(i)</sup> <sup>× V</sup> snap <sup>(i)</sup> φ <sup>(</sup> j <sup>i)</sup> are normalized to satisfy si(φj <sup>(i), φ</sup> j <sup>(i))</sup> <sup>=</sup> <sup>1.</sup> The analyses in [16, 20] motivate the following definition of the spectral problem. Choose the bilinear forms to be ai(v, w) := �ωi κ(x)∇v · ∇w dx and si(v, w) := �ωi κ˜(x)vw dx, j=1 element basis functions, where κ˜(x) := H <sup>2 �Nc</sup> j=1 <sup>κ(x)|∇χj|2</sup> <sup>and</sup> <sup>{χj}</sup> j <sup>N</sup> =1 <sup>c</sup> j=1 <sup>κ(x)|∇χj|2</sup> <sup>and</sup> <sup>{χj}</sup> j <sup>N</sup> =1 <sup>c</sup> <sup>is</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>standard</sup> <sup>multiscale</sup> <sup>finite</sup> element basis functions, which is a partition of unity. Specifically, the function χi satisfies where κ˜(x) := H <sup>2 �Nc</sup> the following system −div(κ(x)∇χi) = 0 in K ⊂ ωi, χi = pi on ∂K, χi = 0 on ∂ωi, for all coarse elements K ⊂ ωi, where pi is linear and continuous on ∂K. Assume that the eigenvalues obtained from (6) are arranged in ascending order and we use the first li ∈ N <sup>+</sup> eigenfunctions (corresponding to the smallest li eigenvalues) to construct the local auxiliary multiscale space Voff <sup>(i)</sup> <sup>:=</sup> <sup>span{χiφ</sup> j <sup>(i)|</sup> <sup>j</sup> <sup>=</sup> <sup>1, · · ·</sup> <sup>, li}.</sup> <sup>The</sup> off <sup>(i)</sup> <sup>:=</sup> <sup>span{χiφ</sup> j <sup>(i)</sup> construct the local auxiliary multiscale space Voff <sup>(i)</sup> <sup>:=</sup> <sup>span{χiφ</sup> j <sup>(i)|</sup> <sup>j</sup> <sup>=</sup> <sup>1, · · ·</sup> <sup>, li}.</sup> <sup>The</sup> global auxiliary space Voff is the direct sum of these local auxiliary multiscale space, i=1 <sup>V</sup> off <sup>(i).</sup> namely Voff := <sup>�Nc</sup> i=1 <sup>V</sup> off <sup>(i)</sup> off <sup>(i).</sup> The offline multiscale solution ums ∈ Voff then solves the variational problem a(ums, v) = f (v) ∀v ∈ Voff, giving a lower-dimensional approximation of the fine-scale solution of (3). Similarly, the dual offline multiscale problem: find zms ∈ Voff such that a(zms, v) = g(v) ∀v ∈ Voff, offers a lower-dimensional approximation of the solution to (4). ### 3 Online construction In order to achieve rapid convergence of the sequence of low-rank approximations to the fine-scale solution, one may construct so-called online basis functions to enrich the multiscale space Voff defined in the previous section. In this section, we will give the details of the construction of online basis functions for both primal and dual problems. For analytical convergence of the method we rely on the pre-computed basis functions from Voff satisfying the online error reduction property (ONERP) (see [8], and Section 3.2 below), meaning sufficiently many offline basis functions are used in the approximation. Then, the addition of the constructed online basis functions yields provable error reduction, at a guaranteed rate. As in [8], the ONERP is required in order to archive rapid analytical and numerical convergence independent of the contrast in the permeability field for general quantities of interest. While our numerical results indicate fast convergence for certain (highly localized) quantities of interest may occur even without this property, the convergence is not robust with respect to the contrast without the satisfaction of the ONERP. #### 3.1 Online basis functions Let the index m ∈ N represent the enrichment level of the adaptive algorithm and Vms <sup>m</sup> denote the corresponding multiscale space. On iteration m the primal multiscale solution u <sup>m</sup> ms <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> <sup>solves</sup> <sup>m</sup> ms <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> ms <sup>m</sup> <sup>solves</sup> a(u <sup>m</sup> ms <sup>m</sup> ms <sup>, v) = f</sup> <sup>(v)</sup> ∀v ∈ Vms <sup>m</sup> ms <sup>m</sup> <sup>,</sup> (7) and the dual multiscale solution zms <sup>m</sup> ms <sup>m</sup> <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> ms <sup>m</sup> <sup>solves</sup> a(zms <sup>m</sup> ms <sup>m</sup> <sup>, v) = g(v)</sup> ∀v ∈ Vms <sup>m</sup> ms <sup>m</sup> <sup>.</sup> (8) For m > 0, the space Vms <sup>m</sup> For m > 0, the space Vms <sup>m</sup> <sup>generally contains both offline and online functions and initially</sup> one can set Vms <sup>0</sup> <sup>= Voff.</sup> <sup>The computation of these online basis functions is based on Riesz-</sup> one can set Vms <sup>0</sup> <sup>= Voff.</sup> <sup>The computation of these online basis functions is based on Riesz-</sup> representation of the local residuals for the current multiscale primal and dual solutions u <sup>m</sup> ms <sup>and</sup> <sup>z</sup> ms <sup>m</sup> <sup>.</sup> Let ωi be a given coarse neighborhood of the computational domain Ωand let Vi := H0 <sup>1(ωi) ∩</sup> <sup>V .</sup> <sup>Recall</sup> <sup>that</sup> <sup>u ∈</sup> <sup>V</sup> <sup>and</sup> <sup>z</sup> <sup>∈</sup> <sup>V</sup> <sup>are</sup> <sup>the</sup> <sup>fine-scale</sup> <sup>solutions</sup> <sup>to</sup> <sup>(3)</sup> <sup>and</sup> <sup>(4).</sup> <sup>m</sup> ms <sup>and</sup> <sup>z</sup> ms <sup>m</sup> ms <sup>m</sup> <sup>.</sup> Let ωi be a given coarse neighborhood of the computational domain Ωand let Vi := H0 <sup>1(ωi) ∩</sup> <sup>V .</sup> <sup>Recall</sup> <sup>that</sup> <sup>u ∈</sup> <sup>V</sup> <sup>and</sup> <sup>z</sup> <sup>∈</sup> <sup>V</sup> <sup>are</sup> <sup>the</sup> <sup>fine-scale</sup> <sup>solutions</sup> <sup>to</sup> <sup>(3)</sup> <sup>and</sup> <sup>(4).</sup> Define the primal and dual residuals as follows Ri <sup>u</sup> i <sup>u(v) := f</sup> <sup>(v) −</sup> <sup>a(u</sup> ms <sup>m</sup> i <sup>z(v) := g(v) −</sup> <sup>a(z</sup> ms <sup>m</sup> ms <sup>m</sup> <sup>, v),</sup> <sup>v</sup> <sup>∈</sup> <sup>Vi,</sup> R <sup>u</sup> (v) := f (v) − a(u <sup>m</sup> ms ms <sup>m</sup> <sup>, v),</sup> <sup>v</sup> <sup>∈</sup> <sup>Vi,</sup> R <sup>z</sup> (v) := g(v) − a(zms <sup>m</sup> Ri <sup>u(v) := f</sup> <sup>(v) −</sup> <sup>a(u</sup> ms <sup>m</sup> <sup>, v),</sup> <sup>v</sup> <sup>∈</sup> <sup>Vi,</sup> R <sup>u</sup> (v) := f (v) − a(u <sup>m</sup> ms <sup>, v),</sup> <sup>v</sup> <sup>∈</sup> <sup>V,</sup> (9) Ri <sup>z(v) := g(v) −</sup> <sup>a(z</sup> ms <sup>m</sup> <sup>, v),</sup> <sup>v</sup> <sup>∈</sup> <sup>Vi,</sup> R <sup>z</sup> (v) := g(v) − a(zms <sup>m</sup> <sup>, v),</sup> <sup>v</sup> <sup>∈</sup> <sup>V.</sup> (10) ms <sup>m</sup> <sup>, v),</sup> <sup>v</sup> <sup>∈</sup> <sup>V.</sup> (10) Let e = u − u <sup>m</sup> ms <sup>m</sup> ms <sup>and e∗</sup> <sup>= z −</sup> <sup>z</sup> ms <sup>m</sup> Let e = u − u <sup>m</sup> ms <sup>and e∗</sup> <sup>= z −</sup> <sup>z</sup> ms <sup>m</sup> <sup>.</sup> <sup>We seek</sup> <sup>a function φ that solves</sup> <sup>g(e</sup> <sup>−</sup> <sup>φ) = 0.</sup> <sup>Assume</sup> {χi} <sup>N</sup> i=1 <sup>c</sup> <sup>is</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>partition</sup> <sup>of</sup> <sup>unity</sup> <sup>functions</sup> <sup>subordinate</sup> <sup>to</sup> <sup>the</sup> <sup>coarse</sup> <sup>grid.</sup> <sup>By</sup> <sup>the</sup> {χi} <sup>N</sup> i=1 <sup>c</sup> <sup>is</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>partition</sup> <sup>of</sup> <sup>unity</sup> <sup>functions</sup> <sup>subordinate</sup> <sup>to</sup> <sup>the</sup> <sup>coarse</sup> <sup>grid.</sup> <sup>By</sup> <sup>the</sup> definition of dual problem (4), the linearity of g(·) and symmetry of a(·, ·) we have g(e − φ) = g(e) − g(φ) = a(z, e) − a(z, φ) = a(e, z) − a(φ, z). (11) Localizing each term on the right-hand side of (11) over all the coarse neighborhoods ωi using the partition of unity functions yields Nc �i=1 Ri <sup>u(χiz),</sup> (12) Ri <sup>u</sup> a(e, z) = Nc �i=1 a(u, χiz) − a(u <sup>m</sup> ms <sup>, χiz) =</sup> and similarly a(φ, z) = Nc �i=1 a(φ, χiz), (13) which suggests finding the local function φi ∈ Vi by solving a(φi, v) = Ri <sup>u(v)</sup> ∀v ∈ Vi. (14) This agrees with the online basis construction of [8], where the construction is found by least-squares minimization of the energy norm of the error. Noting the solution φi to (14) satisfies ∥φi∥Vi = ∥Ri <sup>u∥</sup> Vi <sup>∗,</sup> <sup>it</sup> <sup>holds</sup> <sup>that</sup> <sup>∥u −</sup> <sup>(u</sup> ms <sup>m</sup> <sup>+ αφi)∥2</sup> V <sup>=</sup> <sup>∥u −</sup> <sup>u</sup> ms <sup>m</sup> <sup>∥2</sup> V <sup>−∥φi∥2</sup> Vi <sup>for</sup> ms <sup>m</sup> <sup>∥2</sup> V i <sup>∗,</sup> <sup>it</sup> <sup>holds</sup> <sup>that</sup> <sup>∥u −</sup> <sup>(u</sup> ms <sup>m</sup> <sup>2</sup> V <sup>=</sup> <sup>∥u −</sup> <sup>u</sup> ms <sup>m</sup> <sup>2</sup> V <sup>−∥φi∥2</sup> V satisfies ∥φi∥Vi = ∥Ri <sup>u∥</sup> Vi <sup>∗,</sup> <sup>it</sup> <sup>holds</sup> <sup>that</sup> <sup>∥u −</sup> <sup>(u</sup> ms <sup>m</sup> <sup>+ αφi)∥2</sup> V <sup>=</sup> <sup>∥u −</sup> <sup>u</sup> ms <sup>m</sup> <sup>∥2</sup> V <sup>−∥φi∥2</sup> Vi <sup>for</sup> α = a(u − ums, φi). If the basis function φi were included in the basis functions of Vms <sup>m+1</sup>, i <sup>u∥</sup> Vi <sup>∗</sup> ms <sup>m</sup> <sup>+ αφi)∥2</sup> V α = a(u − ums, φi). If the basis function φi were included in the basis functions of Vms <sup>m+1</sup>, by C´ea’s lemma we can obtain an upper bound for the energy error. Specifically, if u <sup>m</sup> ms <sup>+1</sup> ms is the solution to (7) with Vms <sup>m+1</sup> = Vms ⊕ span{φi}, it holds that Vms <sup>m+1</sup> = Vms ⊕ span{φi}, it holds that ms V <sup>≤∥u −</sup> <sup>u</sup> ms <sup>m</sup> <sup>∥2</sup> V <sup>−∥φi∥2</sup> Vi <sup>.</sup> ��u − um+1��2 V <sup>≤∥u −</sup> <sup>u</sup> ms <sup>m</sup> ��2 <sup>2</sup> V <sup>−∥φi∥2</sup> V ms <sup>m</sup> <sup>∥2</sup> V <sup>2</sup> Vi <sup>.</sup> (15) On the other hand, we have the primal-dual equivalence (5), that is g(e) = f (e <sup>∗</sup> ). Similarly to above, but seeking a function ψ where f (e <sup>∗</sup> - ψ) = 0, we obtain f (e <sup>∗</sup> - ψ) = f (e <sup>∗</sup> ) − f (ψ) = a(u, e <sup>∗</sup> ) − a(u, ψ) = a(e <sup>∗</sup>, u) − a(ψ, u). (16) As in (12)-(13) we have Nc a(ψ, χiu). (17) �i=1 a(e <sup>∗</sup>, u) = Nc �i=1 a(e <sup>∗</sup>, χiu) = Nc �i=1 Ri <sup>z(χiu)</sup> <sup>and</sup> <sup>a(ψ, u) =</sup> Ri <sup>z</sup> Putting (17) into (16) suggests solving a(ψi, v) = Ri <sup>z(v)</sup> ∀v ∈ Vi. (18) This is now the dual form of auxiliary problem (14). Importantly, by the definition of the dual residual (10), the basis functions ψi defined by (18) contain localized information on features of the goal-functional not captured by the current approximation. Analogously to (15), if the space Vms <sup>m+1</sup> is constructed by Vms <sup>m+1</sup> = Vms <sup>m</sup> <sup>⊕</sup> <sup>span{ψi},</sup> <sup>it</sup> <sup>holds</sup> <sup>that</sup> ms <sup>m+1</sup> is constructed by Vms <sup>m+1</sup> ms <sup>m+1</sup> = Vms <sup>m</sup> <sup>+1</sup> is constructed by Vms <sup>m+1</sup> = Vms <sup>m</sup> <sup>⊕</sup> <sup>span{ψi},</sup> <sup>it</sup> <sup>holds</sup> <sup>that</sup> ms V <sup>≤∥z −</sup> <sup>z</sup> ms <sup>m</sup> <sup>∥2</sup> V <sup>−∥ψi∥2</sup> Vi <sup>.</sup> ��z − zm+1��2 V <sup>≤∥z −</sup> <sup>z</sup> ms <sup>m</sup> ��2 <sup>2</sup> V <sup>−∥ψi∥2</sup> Vi ms <sup>m</sup> <sup>∥2</sup> V <sup>2</sup> Vi <sup>.</sup> (19) By the standard bound from (5) on the error in the goal-functional in terms of the primal and dual energy-norm errors [19, 21, 26] |g(u − ums)| = |a(u − ums, z − zms)| ≤ ∥u − ums∥V ∥z − zms∥V, reduction of the error in the quantity of interest can be assured by reductions in energy error of both primal and dual solutions. Putting this together with (15) and (19) we have for arbitrary 1 ≤ i, j ≤ Nc that if Vms <sup>m+1</sup> = Vms <sup>m</sup> <sup>⊕</sup> <sup>span{φi, ψj},</sup> ms <sup>m+1</sup> = Vms <sup>m</sup> with (15) and (19) we have for arbitrary 1 ≤ i, j ≤ Nc that if Vms <sup>m+1</sup> = Vms <sup>m</sup> <sup>⊕</sup> <sup>span{φi, ψj},</sup> it holds that ms <sup>)</sup> ��g(u − um+1 �� ∥u − u <sup>m</sup> ms �� ≤ <sup>m</sup> ms <sup>∥2 −∥φi∥2</sup> V Vi ∥z − zms <sup>m</sup> �1/2� ms <sup>m</sup> <sup>∥2 −∥ψj∥2</sup> V Vj (20) �1/2. This estimate motivates the enrichment strategies in Section 4 where online basis functions are added according to the ordering of their magnitude in local energy norm. More than one primal or dual functions may be added in the construction of Vms <sup>m+1</sup> and basis functions one primal or dual functions may be added in the construction of Vms <sup>m+1</sup> and basis functions with overlapping neighborhoods may be added. However, assuming the primal enrichment neighborhoods are non-overlapping and the same for the dual, an assured rate of goalerror reduction may be deduced assuming the offline space contains sufficient information. This result is presented in the following section. #### 3.2 Error estimation Next, we show a sufficient condition for reduction in the goal-error. The following results are summarized from [8] and extended to the dual problem. Let Ip, Id ⊂{1, 2, · · ·, Nc} be the index sets over coarse neighborhoods, where the neighborhoods ωi, i ∈ Ip are nonoverlapping, as are the neighborhoods ωj, j ∈ Id. For each i ∈ Ip and j ∈ Id, define the online basis functions φi by the solution to (14) and ψj by (18). Set Vms <sup>m+1</sup> = Vms <sup>m</sup> <sup>⊕</sup> the online basis functions φi by the solution to (14) and ψj by (18). Set Vms <sup>m+1</sup> = Vms <sup>m</sup> <sup>⊕</sup> span{φi, ψj : i ∈ Ip, j ∈ Id}. Let ri = ∥Ri <sup>u∥</sup> Vi <sup>∗</sup> <sup>and</sup> <sup>r</sup> j <sup>∗</sup> <sup>=</sup> j Vj <sup>∗</sup> <sup>.</sup> <sup>Let</sup> <sup>Λp</sup> <sup>=</sup> <sup>mini∈Ip λ</sup> l <sup>(</sup> i <sup>i</sup> +1 <sup>)</sup> ��Rz�� V <sup>∗</sup> j �� ms <sup>m+1</sup> = Vms <sup>m</sup> i <sup>u∥</sup> Vi <sup>∗</sup> Vi <sup>∗</sup> <sup>and</sup> <sup>r</sup> j <sup>∗</sup> j <sup>∗</sup> <sup>=</sup> j ��Rz <sup>∗</sup> li j <sup>.</sup> <sup>Let</sup> <sup>Λp</sup> <sup>=</sup> <sup>mini∈Ip λ(i)</sup> li+1 and Λd = minj∈Id λl <sup>(</sup> j <sup>j)</sup> l <sup>(</sup> j <sup>j</sup> +1 <sup>)</sup> <sup>,</sup> <sup>where</sup> <sup>λ(</sup> li <sup>i)</sup> and Λd = minj∈Id λl <sup>(</sup> j <sup>j</sup> +1 <sup>)</sup> <sup>,</sup> <sup>where</sup> <sup>λ(</sup> li <sup>i</sup> +1 <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>(li + 1)-th</sup> <sup>eigenvalue</sup> <sup>corresponding</sup> <sup>to</sup> <sup>(6)</sup> <sup>in</sup> the coarse neighborhood ωi. From [8, Equation (15)], we have the following estimates for primal and dual energy norm error reduction j∈Id <sup>(r</sup> j <sup>∗)2(λ(</sup> lj <sup>j</sup> +1 <sup>)</sup> <sup>)−1</sup> j=1 <sup>(r</sup> j <sup>∗)2(λ(</sup> lj <sup>j</sup> +1 <sup>)</sup> <sup>)−1</sup> �Nc ms ��u − um+1 ms ��z − zm+1 ≤ V �� ≤ V �� 1 − <sup>Λp</sup> - Cerr 1 − <sup>Λd</sup> - Cerr i∈Ip <sup>r</sup> i <sup>2(λ</sup> l <sup>(</sup> i <sup>i</sup> +1 <sup>)</sup> <sup>)−1</sup> i=1 <sup>r</sup> i <sup>2(λ</sup> l <sup>(</sup> i <sup>i</sup> +1 <sup>)</sup> <sup>)−1</sup> �Nc j <sup>)2(λ(</sup> lj <sup>j</sup> +1 <sup>)</sup> i∈Ip <sup>r</sup> i <sup>2</sup> ∥u − u <sup>m</sup> ms <sup>∥</sup> V <sup>,</sup> (21) �1/2 i <sup>2(λ</sup> l <sup>(</sup> i <sup>i)</sup> i <sup>2(λ</sup> l <sup>(</sup> i <sup>i)</sup> j <sup>∗)2(λ(</sup> lj <sup>j)</sup> j <sup>∗)2(λ(</sup> lj <sup>j)</sup> l <sup>(</sup> i <sup>i</sup> +1 <sup>)</sup> <sup>)−1</sup> <sup>(</sup> lj <sup>j</sup> +1 <sup>)</sup> <sup>)−1</sup> j∈Id <sup>(r</sup> j <sup>∗</sup> ∥z − zms <sup>m</sup> <sup>∥</sup> V <sup>,</sup> (22) �1/2 where Cerr is a uniform constant independent of the contrast κ(x) [9, Theorem 4.1]. Theorem 3.1. Assume that the multiscale space Voff satisfies online error reduction property (ONERP). That is, there is some constant θ0 ∈ (0, 1), with θ0 - δ where δ is inde pendent of the permeability field κ and j <sup>∗)2(λ(</sup> lj <sup>j)</sup> j <sup>∗)2(λ(</sup> lj <sup>j)</sup> <sup>(</sup> li <sup>i</sup> +1 <sup>)</sup> <sup>)−1</sup> Λd <sup>(</sup> li <sup>i</sup> +1 <sup>)</sup> <sup>)−1</sup> <sup>≥</sup> <sup>θ0</sup> <sup>and</sup> Cerr (23) <sup>(</sup> lj <sup>j</sup> +1 <sup>)</sup> <sup>)−1</sup> <sup>≥</sup> <sup>θ0.</sup> j∈Id <sup>(r</sup> j <sup>∗)2(λ(</sup> lj <sup>j</sup> +1 <sup>)</sup> <sup>)−1</sup> �jN=1c <sup>(r</sup> j <sup>∗)2(λ(</sup> lj <sup>j</sup> +1 <sup>)</sup> <sup>)−1</sup> j∈Id <sup>(r</sup> j <sup>∗</sup> Λp Cerr i∈Ip <sup>(ri)2(λ(</sup> li <sup>i</sup> +1 <sup>)</sup> <sup>)−1</sup> �iN=1c <sup>(ri)2(λ(</sup> li <sup>i</sup> +1 <sup>)</sup> <sup>)−1</sup> i∈Ip <sup>(ri)2(λ(</sup> li <sup>i)</sup> Then, the error in terms of a given quantity of interest g(·) satisfies the following estimate |g(u − u <sup>m</sup> ms <sup>+1</sup> <sup>m</sup> ms <sup>+1)|</sup> ≤ (1 − θ0) ∥u − u <sup>m</sup> ms ≤ (1 − θ0) ∥u − u <sup>m</sup> ms <sup>∥</sup> V <sup>∥z −</sup> <sup>z</sup> ms <sup>m</sup> <sup>∥</sup> V ≤ ms V (1 − θ0) <sup>m+1 ��</sup> u − u <sup>0</sup> �� ��z − z <sup>m</sup> ms <sup>∥</sup> V <sup>∥z −</sup> <sup>z</sup> ms <sup>m</sup> ms ��z − z0 V <sup>.</sup> (24) �� ms V �� Proof. Let u and z be the respective primal and dual (fine-scale) solutions to (3) and (4). By the definition of the dual problem and Galerkin orthogonality g(u − u <sup>m</sup> ms <sup>+1</sup> <sup>m</sup> ms <sup>+1) = a(u −</sup> <sup>u</sup> ms <sup>m+1</sup> ms <sup>m+1, z) = a(u −</sup> <sup>um</sup> ms <sup>+1</sup> <sup>m</sup> ms <sup>+1, z −</sup> <sup>z</sup> ms <sup>m+1</sup> ms <sup>m+1).</sup> Therefore by (21), (22) and satisfaction of (23) we have ms ��z − zm+1 and dual V <sup>≤</sup> (1 − θ0) ∥u − u <sup>m</sup> ms �� error reduction in the V �� |g(u − u <sup>m</sup> ms <sup>+1)| ≤</sup> ms ��u − um+1 for the <sup>m</sup> ms <sup>∥</sup> V <sup>∥z −</sup> <sup>z</sup> ms <sup>m</sup> ms <sup>m</sup> <sup>∥</sup> V <sup>.</sup> Iterating the result for the primal and dual error reduction in the energy norm yields the second inequality of (24). Consistent with this analysis, the improvement in error reduction with both primal and dual online basis constructions is strongly evident in our numerical results which follow. Moreover, when sufficiently many offline basis functions are used, meaning Λp and Λd are large enough, rapid convergence of the error in the goal-functional is observed as online basis functions are added to the multiscale space. ### 4 Online adaptive algorithm In this section, we give the details of the adaptive algorithm with the online construction. The adaptive algorithm is based on the local enrichments of online basis functions for both primal and dual problems. We use the eigenvalue information obtained in (6) as well as the norms of local primal and dual residual operators as the indicators. During the online stage, the regions with larger indicators should require more enrichments of basis functions in order to reduce the error. Using these indicators, we construct the corresponding primal and dual online basis functions by solving (14) and (18), respectively. In the following sections, three different enrichment strategies based on these local indicators will be proposed. #### 4.1 Standard enrichment In this section, we propose the first strategy referred to as standard enrichment. In this strategy, primal and dual (online) basis functions are added based on the largest local residuals in each of the primal and dual problems. As the two sets of residuals are considered separately, this strategy aims to reduce the largest source of error in each problem. Algorithm: standard enrichment Set m = 0. Pick two parameters γ, θ ∈ (0, 1] and denote Vms <sup>m</sup> Set m = 0. Pick two parameters γ, θ ∈ (0, 1] and denote Vms <sup>m</sup> <sup>=</sup> <sup>Voff.</sup> <sup>Choose</sup> <sup>a</sup> <sup>small</sup> tolerance tol ∈ R+. For each m ∈ N, assume that Vms <sup>m</sup> <sup>is</sup> <sup>given.</sup> <sup>Go</sup> <sup>to</sup> <sup>Step</sup> <sup>1</sup> <sup>below.</sup> ms <sup>m</sup> <sup>is</sup> <sup>given.</sup> <sup>Go</sup> <sup>to</sup> <sup>Step</sup> <sup>1</sup> <sup>below.</sup> Step 1: Solve the equations (7) and (8) to obtain the primal solution u <sup>m</sup> ms Solve the equations (7) and (8) to obtain the primal solution u <sup>m</sup> ms <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> <sup>and</sup> <sup>the</sup> dual solution zms <sup>m</sup> <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> <sup>.</sup> ms <sup>m</sup> <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> ms <sup>m</sup> <sup>.</sup> <sup>m</sup> ms <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> Step 2: For each i = 1, · · ·, Nc, compute the residuals ri and ri <sup>∗</sup> <sup>for the coarse neighborhood</sup> ωi. Assume that we have r1 ≥ r2 ≥· · · ≥ rNc and r1 <sup>∗</sup> <sup>≥</sup> <sup>r</sup> 2 <sup>∗</sup> <sup>≥· · · ≥</sup> <sup>r</sup> N <sup>∗</sup> c <sup>.</sup> Step 3: Take the smallest integer kp such that kp �i=1 ri <sup>2.</sup> ri <sup>2</sup> θ Nc �i=1 ri <sup>2</sup> <sup>≤</sup> Next, for i = 1, · · ·, kp, add basis functions φi (by solving (14)) in the space Vms <sup>m</sup> <sup>.</sup> Similarly, take the smallest integer kd such that kd �i=1 (ri <sup>∗)2.</sup> i <sup>∗)2.</sup> γ Nc �i=1 (ri <sup>∗)2</sup> <sup>≤</sup> i <sup>∗)2</sup> <sup>≤</sup> For j = 1, · · ·, kd, add basis functions ψj (by solving (18)) in the space Vms <sup>m</sup> For j = 1, · · ·, kd, add basis functions ψj (by solving (18)) in the space Vms <sup>m</sup> <sup>.</sup> <sup>Denote</sup> the new multiscale basis functions space as Vms <sup>m+1</sup> . That is, ms <sup>m+1</sup> . That is, Vms <sup>m+1</sup> ms <sup>m+1</sup> = Vms <sup>m</sup> ms <sup>m</sup> <sup>⊕</sup> <sup>span{φi,</sup> <sup>ψj</sup> <sup>: 1 ≤</sup> <sup>i ≤</sup> <sup>kp, 1 ≤</sup> <sup>j</sup> <sup>≤</sup> <sup>kd}.</sup> i=1 set m Step 4: If <sup>�Nc</sup> i=1 <sup>r</sup> i <sup>2</sup> i <sup>2</sup> <sup>≤</sup> <sup>tol</sup> <sup>or</sup> <sup>the</sup> <sup>dimension</sup> <sup>of</sup> <sup>V</sup> ms <sup>m+1</sup> i=1 <sup>r</sup> i <sup>2</sup> <sup>≤</sup> <sup>tol</sup> <sup>or</sup> <sup>the</sup> <sup>dimension</sup> <sup>of</sup> <sup>V</sup> ms <sup>m+1</sup> is large enough, then stop. Otherwise, set m ← m + 1 and go back to Step 1. If <sup>�Nc</sup> Remark. If both θ and γ are equal to 1, then the enrichment is said to be uniform. The standard enrichment is equivalent to the residual-driven online method proposed in [8] if one sets γ = 0. #### 4.2 Primal-dual combined enrichment In this section, we propose the second strategy for online enrichment, which combines the set of primal and dual residual indicators and selects neighborhoods to enrich with primal and/or dual basis functions based on the largest overall local residuals. We refer this approach to primal-dual combined enrichment. Here the basis functions related to the first k ∈ N <sup>+</sup> largest indicators will be added into the multiscale space. Our numerical results illustrate that this approach leads to a similar of accuracy with comparable and sometimes fewer DOF than the standard approach proposed in Section 4.1. Algorithm: primal-dual combined enrichment Set m = 0. Pick a parameter β ∈ (0, 1] and denote Vms <sup>m</sup> Set m = 0. Pick a parameter β ∈ (0, 1] and denote Vms <sup>m</sup> <sup>= Voff.</sup> <sup>Choose</sup> <sup>a</sup> <sup>small</sup> <sup>tolerance</sup> tol ∈ R+. For each m ∈ N, assume that Vms <sup>m</sup> <sup>is</sup> <sup>given.</sup> <sup>Go</sup> <sup>to</sup> <sup>Step</sup> <sup>1</sup> <sup>below.</sup> ms <sup>m</sup> <sup>is</sup> <sup>given.</sup> <sup>Go</sup> <sup>to</sup> <sup>Step</sup> <sup>1</sup> <sup>below.</sup> Step 1: Solve the equations (7) and (8) to obtain the primal solution u <sup>m</sup> ms Solve the equations (7) and (8) to obtain the primal solution u <sup>m</sup> ms <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> <sup>and</sup> <sup>the</sup> dual solution zms <sup>m</sup> <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> <sup>.</sup> ms <sup>m</sup> <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> ms <sup>m</sup> <sup>.</sup> <sup>m</sup> ms <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> Step 2: For each i = 1, · · ·, Nc, compute the residuals ri and ri <sup>∗</sup> For each i = 1, · · ·, Nc, compute the residuals ri and ri <sup>∗</sup> <sup>for</sup> <sup>every</sup> <sup>coarse</sup> <sup>neighbor-</sup> hood ωi. Denote {sj} <sup>2</sup> j=1 <sup>Nc</sup> <sup>= {ri}</sup> i <sup>N</sup> =1 <sup>c</sup> <sup>∪{r</sup> i <sup>∗}N</sup> i=1 <sup>c</sup> <sup>and</sup> <sup>assume</sup> <sup>that</sup> <sup>2</sup> j=1 <sup>Nc</sup> <sup>= {ri}</sup> i <sup>N</sup> =1 <sup>c</sup> i <sup>∗}N</sup> i=1 <sup>c</sup> i <sup>N</sup> =1 <sup>c</sup> <sup>∪{r</sup> i <sup>∗</sup> <sup>N</sup> i=1 <sup>c</sup> <sup>and</sup> <sup>assume</sup> <sup>that</sup> s1 ≥ s2 ≥· · · ≥ s2Nc. Step 3: Take the smallest integer k such that k �i=1 s <sup>2</sup> i <sup>.</sup> β 2Nc �i=1 s <sup>2</sup> i <sup>≤</sup> Next, for i = 1, · · ·, k, we add basis functions ϕi in the space Vms <sup>m</sup> <sup>,</sup> <sup>where</sup> ϕi = φk if si = rk for some k ∈{1, · · ·, Nc}, - ψℓ if si = rℓ <sup>∗</sup> <sup>for</sup> <sup>some</sup> <sup>ℓ</sup> <sup>∈{1, · · ·</sup> <sup>, Nc}.</sup> Denote the new multiscale basis functions space as Vms <sup>m+1</sup> . That is, Vms <sup>m+1</sup> ms <sup>m+1</sup> = Vms <sup>m</sup> ms <sup>m</sup> <sup>⊕</sup> <sup>span{ϕi</sup> <sup>: 1 ≤</sup> <sup>i ≤</sup> <sup>k}.</sup> i=1 set m ← Step 4: If <sup>�2Nc</sup> i=1 <sup>s</sup> i <sup>2</sup> i <sup>2</sup> <sup>≤</sup> <sup>tol</sup> <sup>or</sup> <sup>the</sup> <sup>dimension</sup> <sup>of</sup> <sup>V</sup> ms <sup>m+1</sup> i=1 <sup>s</sup> i <sup>2</sup> <sup>≤</sup> <sup>tol</sup> <sup>or</sup> <sup>the</sup> <sup>dimension</sup> <sup>of</sup> <sup>V</sup> ms <sup>m+1</sup> is large enough, then stop. Otherwise, set m ← m + 1 and go back to Step 1. If <sup>�2Nc</sup> #### 4.3 Primal-dual product based enrichment In this section, we consider the goal-oriented indicator proposed in [10] for offline enrichment, this time using it for online enrichment. The local indicator in this strategy uses the product of primal and dual norms together with the inverse of the smallest eigenvalue excluded from the local multiscale (offline) space. This indicator is motivated by the estimate shown in [10] . (25) �−1 |g(u − u <sup>m</sup> ms <sup>)| ≤</sup> Nc �i=1 ∥u − u <sup>m</sup> ms <sup>m</sup> ms <sup>∥</sup> Vi <sup>∥z −</sup> <sup>z</sup> ms <sup>m</sup> ms <sup>m</sup> <sup>∥</sup> Vi <sup>≤</sup> <sup>Cerr</sup> λl <sup>(</sup> i <sup>i</sup> +1 <sup>)</sup> Nc �i=1 ri · ri <sup>∗</sup> As such, the indicator ηi := ri · ri <sup>∗</sup> λl <sup>(</sup> i <sup>i</sup> +1 <sup>)</sup> provides a reliable estimator as it serves as - �−1 an upper bound for the goal-error. In contrast, the indicators introduced in Sections 4.1 and 4.2 are based on the forward-looking estimate As such, the indicator ηi := ri · ri <sup>∗</sup> i <sup>∗</sup> λl <sup>(</sup> i <sup>i</sup> +1 <sup>)</sup> In li+1 <sup>∗</sup> i <sup>)2�1/2,</sup> |g(u − u <sup>m</sup> ms <sup>+1)| ≤</sup> ∥u − u <sup>m</sup> ms <sup>m</sup> ms <sup>∥2 −</sup> <sup>r</sup> i <sup>2</sup> i ∥z − zms <sup>m</sup> �1/2 � ms <sup>m</sup> <sup>∥2 −</sup> <sup>(r∗</sup> where Vms <sup>m+1</sup> ms <sup>m+1</sup> is formed by adding φi and ψi to Vms <sup>m</sup> where Vms <sup>m+1</sup> is formed by adding φi and ψi to Vms <sup>m</sup> <sup>.</sup> <sup>Comparison</sup> <sup>of</sup> <sup>the</sup> <sup>two</sup> <sup>bounds</sup> <sup>estab-</sup> lishes why the product of local primal and dual residuals together with the corresponding eigenvalue information is used in this indicator; whereas, neither the product nor the eigenvalue information is used in the first two strategies. As we will see in the numerical experiments of Section 5, while the indicator ηi proposed in this section is natural to consider, it does not perform as efficiently as the strategies developed specifically for online enrichment. Algorithm: primal-dual product based enrichment Set m = 0. Pick a parameter τ ∈ (0, 1] and denote Vms <sup>m</sup> Set m = 0. Pick a parameter τ ∈ (0, 1] and denote Vms <sup>m</sup> <sup>=</sup> <sup>Voff.</sup> <sup>Choose</sup> <sup>a</sup> <sup>small</sup> <sup>tolerance</sup> tol ∈ R+. For each m ∈ N, assume that Vms <sup>m</sup> <sup>is</sup> <sup>given.</sup> <sup>Go</sup> <sup>to</sup> <sup>Step</sup> <sup>1</sup> <sup>below.</sup> ms <sup>m</sup> <sup>is</sup> <sup>given.</sup> <sup>Go</sup> <sup>to</sup> <sup>Step</sup> <sup>1</sup> <sup>below.</sup> Step 1: Solve the equations (7) and (8) to obtain the primal solution u <sup>m</sup> ms Solve the equations (7) and (8) to obtain the primal solution u <sup>m</sup> ms <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> <sup>and</sup> <sup>the</sup> dual solution zms <sup>m</sup> <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> <sup>.</sup> ms <sup>m</sup> <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> ms <sup>m</sup> <sup>.</sup> <sup>m</sup> ms <sup>∈</sup> <sup>V</sup> ms <sup>m</sup> Step 2: For each i = 1, · · ·, Nc, compute the residuals ri and ri <sup>∗</sup> For each i = 1, · · ·, Nc, compute the residuals ri and ri <sup>∗</sup> <sup>for</sup> <sup>every</sup> <sup>coarse</sup> <sup>neighbor-</sup> hood ωi and thus obtain the indicator ηi. Assume that the indicators {ηi} <sup>N</sup> i=1 <sup>c</sup> <sup>are in</sup> hood ωi and thus obtain the indicator ηi. Assume that the indicators {ηi} <sup>N</sup> i=1 <sup>c</sup> <sup>are in</sup> descending order such that η1 ≥ η2 ≥· · · ≥ ηNc. Step 3: Take the smallest integer k such that τ Nc �i=1 ηi ≤ ηi. k �i=1 Next, for i = 1, · · ·, k, we add basis functions φi (by solving (14)) and ψi (by solving (18)) in the space Vms <sup>m</sup> <sup>.</sup> <sup>Denote</sup> <sup>the</sup> <sup>new</sup> <sup>multiscale</sup> <sup>basis</sup> <sup>functions</sup> <sup>space</sup> <sup>as</sup> <sup>V</sup> ms <sup>m+1</sup> . ms <sup>m</sup> <sup>.</sup> <sup>Denote</sup> <sup>the</sup> <sup>new</sup> <sup>multiscale</sup> <sup>basis</sup> <sup>functions</sup> <sup>space</sup> <sup>as</sup> <sup>V</sup> ms <sup>m+1</sup> (18)) in the space Vms <sup>m</sup> <sup>.</sup> <sup>Denote</sup> <sup>the</sup> <sup>new</sup> <sup>multiscale</sup> <sup>basis</sup> <sup>functions</sup> <sup>space</sup> <sup>as</sup> <sup>V</sup> ms <sup>m+1</sup> . That is, Vms <sup>m+1</sup> ms <sup>m+1</sup> = Vms <sup>m</sup> ms <sup>m</sup> <sup>⊕</sup> <sup>span{φi,</sup> <sup>ψi</sup> <sup>: 1 ≤</sup> <sup>i ≤</sup> <sup>k}.</sup> i=1 set m Step 4: If <sup>�Nc</sup> i=1 <sup>ηi</sup> <sup>≤</sup> <sup>tol</sup> <sup>or</sup> <sup>the</sup> <sup>dimension</sup> <sup>of</sup> <sup>V</sup> ms <sup>m+1</sup> i=1 <sup>ηi</sup> <sup>≤</sup> <sup>tol</sup> <sup>or</sup> <sup>the</sup> <sup>dimension</sup> <sup>of</sup> <sup>V</sup> ms <sup>m+1</sup> is large enough, then stop. Otherwise, set m ← m + 1 and go back to Step 1. If <sup>�Nc</sup> ### 5 Numerical results In this section, we present some numerical results to show the performance of the proposed algorithms. The computational domain is Ω= (0, 1) <sup>2</sup> . We use a rectangular mesh for the partition of the domain dividing Ωinto 16 × 16 equal coarse square blocks and we divide each coarse block into 16 × 16 equal square pieces. In other words, the fine mesh contains 256 × 256 fine rectangular elements with the mesh size h = 1/256. The permeability field κ and the source function f used in the first two examples presented below are given in Figures 1a and 1b, respectively. We set the tolerance for the stopping criteria at tol ≈ 10 <sup>−16</sup> . In the following we define the goal-error as ms <sup>)|</sup> eg,m := <sup>|g(u −</sup> <sup>um</sup>, (26) |g(u)| where u is the fine-scale primal solution to (3) and u <sup>m</sup> ms <sup>is</sup> <sup>the</sup> <sup>multiscale</sup> <sup>solution</sup> <sup>in</sup> enrichment level m. We refer m ∈ N to the enrichment level. 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 (a) Permeability field κ. 10000 9000 8000 7000 6000 5000 4000 3000 2000 1000 0 0.2 0.4 0.6 0.8 1 0 0 0.2 0.4 0.6 0.8 1 (b) Source function f . 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0.2 0.4 0.6 0.8 1 0 0 0.2 0.4 0.6 0.8 1 (c) Function 1K . Figure 1: Numerical setting of the experiment. We present three examples to demonstrate the efficiency of the online goal-oriented enrichment. In the first example, we compare the performance between the standard goaloriented enrichment proposed in Section 4.1 and the residual-driven based enrichment in [8], which adds only primal online basis functions to the multiscale space. Next, in the second example, we analyze the capabilities for different online goal-oriented enrichments proposed in Section 4. In the last example, we discuss the issue of ONERP by demonstrating the rate of error reduction from primal-dual online enrichment is robust with respect to the contrast so long as enough offline basis functions are included in the initial multiscale space. The necessary number of offline basis functions may indeed depend on the contrast, in agreement with the theory. Remark. When the current approximation u <sup>m</sup> ms Remark. When the current approximation u <sup>m</sup> ms <sup>is</sup> <sup>close</sup> <sup>to</sup> <sup>the</sup> <sup>fine-scale</sup> <sup>solution</sup> <sup>u</sup> <sup>in</sup> <sup>the</sup> region ωj, the norm of the online basis function φj (or ψj) will be very small. Including φj (or ψj) into the multiscale space Vms <sup>m</sup> <sup>will make the stiffness matrix in the calculation close</sup> (or ψj) into the multiscale space Vms <sup>m</sup> <sup>will make the stiffness matrix in the calculation close</sup> to singular. In all the examples below, online basis functions with norms on the order of 10 <sup>−16</sup> will not be added to the multiscale space. This primarily affects the examples demonstrating uniform refinement (θ = 1). #### 5.1 Example 1: Necessity of the dual The goal functional g : V → R is given as follows g(v) := �K v(x) dx = �Ω 1Kv(x) dx, (27) where 1K is the indicator function of coarse element K = [1/16, 1/8] × [0, 1/16]. See Figure 1c for the visualization of 1K. First, we apply the standard enrichment proposed in Section 4.1 and compute the goal error eg,m. In this example, we set the number of initial basis functions li = 3 for each coarse neighborhood ωi. The results are presented in Figure 2. For instance, the blue curve in Figure 2a refers the goal-error obtained by using the residual-driven based enrichment of [8] with θ = 1. The red curve in Figure 2b is the result obtained by the standard enrichment with θ = 1 and γ = 0.8. Figure 2b shows θ = γ = 0.8, Figure 2c shows θ = γ = 0.5 and Figure 2d shows θ = γ = 0.3. From the results of Figure 2a, the goal-error reduction obtained by the standard enrichment behaves similarly to the example with only primal enrichment. With parameters θ = 1 and γ = 0.8, both standard and primal-only enrichment strategies include all the primal online basis functions computed at each stage. In this setting the additional dual basis functions add only a modest amount of stability to the error reduction. However, when the parameters θ and γ are relatively small, the error reduction curve for the standard enrichment using primal and dual online basis functions is noticeably steeper hence more effective than the primal-only enrichment strategy. 10 <sup>0</sup> 10 <sup>-2</sup> 10 <sup>-2</sup> 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 600 800 1000 1200 1400 1600 1800 2000 (a) θ = 1, γ = 0.8 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> 10 <sup>-6</sup> 10 <sup>-7</sup> 650 700 750 800 850 900 950 1000 1050 1100 (c) θ = γ = 0.5. 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 600 800 1000 1200 1400 1600 1800 (b) θ = γ = 0.8. 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> 650 700 750 800 850 900 950 (d) θ = γ = 0.3. Figure 2: Goal error reduction against DOF. (li = 3) #### 5.2 Example 2: Verification of enrichment strategies In this example, we investigate the performance of different online enrichments proposed in Section 4. Here, we use the permeability field shown in Figure 1a and set li = 3. The goal functional in this example is given by (27). 5.2.1 Comparison with the residual-driven approach First, we compare the efficiency of each dual online enrichment strategy (primial-dual combined and proimal-dual product based) with the primal-only residual-driven approach of [8]. The parameters are set to θ = β = τ = 0.6. The convergence history of goalerror using different approaches is shown in Table 1. The profiles of fine-scale solution u, multiscale solution u <sup>m</sup> ms <sup>(m</sup> <sup>=</sup> <sup>5)</sup> <sup>obtained</sup> <sup>by</sup> <sup>primal-dual</sup> <sup>combined</sup> <sup>approach,</sup> <sup>and</sup> <sup>their</sup> difference are sketched in Figure 3. One may observe that both primal-dual online enrichments outperform the primal residualdriven based approach in terms of the reduction in the goal-error. In particular, both enrichment strategies that incorporate the dual information drive the error decay to a certain range (e.g. 10 <sup>−5</sup> ∼ 10 <sup>−4</sup> ) with fewer iterations than the residual-driven approach does. In the meantime, the primal-dual product based strategy in Section 4.3 provides the greatest change in goal-error reduction on the first iteration, while the primal-dual combined algorithm in Section 4.2 shows a greater decrease in error-reduction with fewer DOF as the simulation progresses. m DOF eg,m 0 675 0.0433 1 732 0.0101 2 782 0.0055 3 842 0.0014 4 894 1.48 × 10 <sup>−4</sup> 5 940 2.99 × 10 <sup>−5</sup> (a) θ = 0.6 m DOF eg,m 0 675 0.0433 1 714 0.0105 2 785 6.61 × 10 <sup>−4</sup> 3 869 7.88 × 10 <sup>−5</sup> 4 957 9.05 × 10 <sup>−7</sup> 5 1058 2.23 × 10 <sup>−7</sup> (b) β = 0.6 m DOF eg,m 0 675 0.0433 1 745 0.0049 2 867 5.41 × 10 <sup>−4</sup> 3 969 7.32 × 10 <sup>−5</sup> 4 1075 9.53 × 10 <sup>−6</sup> 5 1187 6.15 × 10 <sup>−7</sup> (c) τ = 0.6 Table 1: Results of eg,m. Left: primal-only enrichment. Middle: primal-dual combined. Right: primal-dual product. 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 (b) Approximation u <sup>m</sup> ms <sup>.</sup> 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 (c) Difference |u − u <sup>m</sup> ms <sup>|.</sup> 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 (a) Fine-scale solution u. 10 <sup>-3</sup> 7 6 5 4 3 2 1 10 <sup>-3</sup> 7 6 5 4 3 2 1 10 <sup>-6</sup> 3 2.5 2 1.5 1 0.5 Figure 3: Solution profiles of Example 5.2. (m = 5 using primal-dual combined) 5.2.2 Comparison in dual online enrichments Next, we test the different online enrichments involving the dual problem with different settings of the parameters for adaptivity. The corresponding error reduction in the goal functional for each are shown in Figure 4. As seen in Figures 4a with θ = 1 and γ = β = τ = 0.8; 4b with θ = γ = β = τ = 0.8; 4c with θ = γ = β = τ = 0.5; and 4d with θ = γ = β = τ = 0.3, the standard and primal-dual combined approaches in Sections 4.1-4.2 yield the best performance with fewer DOF and higher accuracy in terms of goalerror. Overall, Figures 4a- 4d show the primal-dual combined and standard approaches to have comparable efficiency on each of the problems, although each displays different curves of error reduction suggesting different enrichment in each algorithm. The primaldual product based enrichment in Section 4.3 based on the error bound (25) as opposed to the online-error reduction prediction (24) gives stable error reduction but with a slower convergence rate. 10 <sup>-2</sup> 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 600 800 1000 1200 1400 1600 1800 (a) θ = 1, γ = β = τ = 0.8. 10 <sup>0</sup> 10 <sup>-2</sup> 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 600 700 800 900 1000 1100 1200 1300 1400 (c) θ = γ = β = τ = 0.5. 10 <sup>-2</sup> 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 600 800 1000 1200 1400 1600 1800 (b) θ = γ = β = τ = 0.8. 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> 10 <sup>-6</sup> 10 <sup>-7</sup> 650 700 750 800 850 900 950 1000 1050 (d) θ = γ = β = τ = 0.3. Figure 4: Comparing different online enrichments. (li = 3) Furthermore, we test the performance of different online enrichments with another specific goal functional, whose effective region is near the middle channel of the permeability field (cf. Figure 1a, red square). The goal functional g is now given by K� g(v) := v(x) dx, K� := [1/2, 9/16] × [7/16, 1/2]. We keep the source function f and the permeability field κ unchanged. Figure 5 records the results of eg,m obtained by using different online enrichments with varying setting of adaptive parameters. Again one may observe that both the standard and primal-dual combined enrichments give a faster convergence rate than does the primal-dual product based approach, especially when the parameters getting small (cf. Figures 5c and 5d). Remark. The results in this example also indicate that the bound (20) which motivates both standard and combined enrichment strategies provide a better indication of the role of online basis functions in goal-error reduction than does (25) which shows the reliability of the product-based estimator. Similarly to how the primal-only strategy can work, but is less effective than the primal-dual strategies; the indicator shown effective for primaldual offline enrichment also can work, but is also less effective than the online-specific primal-dual strategies. 10 <sup>-2</sup> 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 600 800 1000 1200 1400 1600 1800 <u>(a)</u> θ <u>= 1,</u> γ <u>= β</u> <u>= τ</u> <u>= 0.8.</u> 10 <sup>-2</sup> 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 600 700 800 900 1000 1100 1200 1300 1400 (c) θ = γ = β = τ = 0.5. 10 <sup>-2</sup> 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 600 800 1000 1200 1400 1600 1800 (b) θ = γ = β = τ = 0.8. 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> 10 <sup>-6</sup> 650 700 750 800 850 900 950 1000 1050 (d) θ = γ = β = τ = 0.3. Figure 5: Comparing different online enrichments with another g. (li = 3) #### 5.3 Example 3: Discussion of ONERP In the section, we discuss how ONERP effects the performance of the dual online algorithms for a given goal functional. In this example, we keep the source function unchanged and use a different permeability field κ. Set the goal functional g : V → R to be K� g(v) := − v(x) dx, (28) K� = [3/8, 7/16] × [3/4, 13/16]. field κ. We test the cases of different contrast values over the channels (i.e. the yellow See Figure 6 for the visualizations of the indicator function of K <sup>�</sup> and the permeability region in Figure 6a). In particular, we increase the contrast by a factor of 100 to see if there are changes in the convergence behavior. In the high-contrast case, the first few eigenvalues related to the channel regions become 100 times smaller [12], meaning an increased number of offline basis functions are necessary for the error bound (24) to assure rapid convergence. Our numerical results illustrate this requirement, as convergence of the error is seen with only a single basis function per neighborhood in the lower-contrast case but not in the higher-contrast case. Next, we present the error reduction in the primal-dual combined enrichment resulting from different numbers of initial basis functions in the offline space. Here, the parameter is β = 0.6. The results are in Figure 7. In the lower contrast case, the smallest eigenvalue whose eigenvector is not included in the offline space is 47.5389 when li = 1. However, in the high contrast case, the corresponding eigenvalue is only 0.4759, meaning the ONERP is not satisfied. As shown in Figure 7b, when only 1 initial basis function is used in each coarse neighborhood, the goal-error decay becomes slower compared to the lower contrast case, and indeed convergence is not observed. The goal-error in this case eg,m stalls at the level around 10 <sup>−4</sup> . However, when sufficiently many (in this case, two or three) initial (local) basis functions are included in the offline space Voff, then the rate of error decay is independent of the contrast of the permeability field. We remark that for the lower contrast case the goal-error is still reduced (with the least stability and more iterations) to below 10 <sup>−8</sup> when only a single offline basis function used in each coarse neighborhood (see red curve in Figure 7a). 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 (a) Permeability field κ. 0 0.2 0.4 0.6 0.8 1 -1 0 0.2 0.4 0.6 0.8 1 (b) Function 1K � <sup>.</sup> 0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 Figure 6: Numerical setting of Example 5.3. ### 6 Conclusion In this research, we propose a GMsFEM based goal-oriented online adaptivity framework for approximating quantities of interest for flow in heterogeneous media. The main idea of the method involves constructing both primal and dual online basis functions by solving local problems related to the local residuals. Each primal (respectively dual) online basis function is computed by solving a local problem for the Riesz representative of the current primal (respectively dual) residual in each coarse neighborhood. After the online basis functions are constructed, they are used to enrich the multiscale space in the next level 10 <sup>0</sup> 10 <sup>-2</sup> 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 200 400 600 800 1000 1200 1400 1600 1800 (a) Contrast: 1e4. 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> 10 <sup>-6</sup> 10 <sup>-7</sup> 10 <sup>-8</sup> 200 400 600 800 1000 1200 1400 1600 1800 (b) Contrast: 1e6. Figure 7: Goal-error reduction using primal-dual combined approach. of the adaptive algorithm to improve the accuracy in a low-dimensional approximation of the quantity of interest. The convergence analysis of the method shows a guaranteed rate of error reduction so long as sufficiently many offline basis functions are used to form the initial multiscale space. The numerical results support the analysis and demonstrate the necessity of the dual basis functions for efficient error reduction in the quantity of interest. Three online enrichment strategies are proposed to adaptively select which regions are supplemented with the online basis functions. While the primal residual based approach is seen to provide a slower and less stable rate of error reduction, particularly for lower values of the adaptivity parameters, the online-specific primal-dual approaches each succeed in achieving steady and more efficient rates. A comparison between different dual strategies is made and the standard approach and primal-dual combined strategies are seen to be the most stable and efficient over different settings of the adaptivity parameters. With sufficiently many basis functions included in the initial offline space, a steady rate of error reduction is observed in the primal-dual standard and combined strategies independent of the contrast in the permeability field. #### Acknowledgement EC’s work is partially supported by Hong Kong RGC General Research Fund (Project 14304217) and CUHK Direct Grant for Research 2017-18. SP was supported in part by NSF DMS 1719849 and NSF DMS 1852876. ### References [1] M. Ainsworth and J. T. Oden. A posteriori error estimation in finite element analysis. Pure and Applied Mathematics. New York : John Wiley, 2000. [2] M. Arndt and M. Luskin. Goal-oriented atomistic-continuum adaptivity for the quasicontinuum approximation. International Journal for Multiscale Computational Engineering, 5(5), 2007. [3] P. T. Bauman, J. T. Oden, and S. Prudhomme. Adaptive multiscale modeling of polymeric materials with arlequin coupling and goals algorithms. Computer Methods in Applied Mechanics and Engineering, 198(5-8):799–818, 2009. [4] R. Becker and R. Rannacher. An optimal control approach to a posteriori error estimation in finite element methods. Acta Numer., 10:1–102, 2001. [5] N. Castelletto, H. Hajibeygi, and H. A. Tchelepi. Multiscale finite-element method for linear elastic geomechanics. Journal of Computational Physics, 331:337–356, 2017. [6] Z. Chen and T. Y. Hou. A mixed multiscale finite element method for elliptic prob lems with oscillating coefficients. Mathematics of Computation, 72(242):541–576, 2003. [7] E. T. Chung, Y. Efendiev, and T. Y. Hou. Adaptive multiscale model reduction with generalized multiscale finite element methods. Journal of Computational Physics, 320:69–95, 2016. [8] E. T. Chung, Y. Efendiev, and W. T. Leung. Residual-driven online generalized multiscale finite element methods. Journal of Computational Physics, 302:176–190, 2015. [9] E. T. Chung, Y. Efendiev, and G. Li. An adaptive GMsFEM for high-contrast flow problems. Journal of Computational Physics, 273:54–76, 2014. [10] E. T. Chung, W. T. Leung, and S. Pollock. Goal-oriented adaptivity for GMsFEM. Journal of Computational and Applied Mathematics, 296:625–637, 2016. [11] E. T. Chung, S. Pollock, and S.-M. Pun. Goal-oriented adaptivity of mixed GMsFEM for flows in heterogeneous media. Comput. Methods Appl. Mech. and Eng., 323:151 - 173, 2017. [12] Y. Efendiev and J. Galvis. A domain decomposition preconditioner for multiscale high-contrast problems. In Domain Decomposition Methods in Science and Engineering XIX, pages 189–196. Springer, 2011. [13] Y. Efendiev and J. Galvis. Coarse-grid multiscale model reduction techniques for flows in heterogeneous media and applications. Chapter of Numerical Analysis of Multiscale Problems, Lecture Notes in Computational Science and Engineering, Vol. 83., pages 97–125, 2012. [14] Y. Efendiev, J. Galvis, and T. Y. Hou. Generalized multiscale finite element methods (GMsFEM). Journal of Computational Physics, 251:116–135, 2013. [15] Y. Efendiev, J. Galvis, G. Li, and M. Presho. Generalized multiscale finite element methods: Oversampling strategies. International Journal for Multiscale Computational Engineering, 12(6), 2014. [16] Y. Efendiev, J. Galvis, and X.-H. Wu. Multiscale finite element methods for high contrast problems using local spectral basis functions. Journal of Computational Physics, 230(4):937–955, 2011. [17] Y. Efendiev and A. Pankov. Numerical homogenization of nonlinear random parabolic operators. Multiscale Modeling & Simulation, 2(2):237–268, 2004. [18] B. Engquist and P. E. Souganidis. Asymptotic and numerical homogenization. Acta Numerica, 17:147–190, 2008. [19] M. Feischl, D. Praetorius, and K. G. van der Zee. An abstract analysis of optimal goal-oriented adaptivity. SIAM J. Numer. Anal., 54(3):1423–1448, 2016. [20] J. Galvis and Y. Efendiev. Domain decomposition preconditioners for multiscale flows in high-contrast media. Multiscale Modeling & Simulation, 8(4):1461–1483, 2010. [21] M. Holst and S. Pollock. Convergence of goal oriented methods for nonsymmetric problems. Numer. Meth. Part. D.E., 32(2):479–509, 2016. [22] T. Y. Hou and X.-H. Wu. A multiscale finite element method for elliptic problems in composite materials and porous media. Journal of Computational Physics, 134(1):169–189, 1997. [23] C. Jhurani and L. Demkowicz. Multiscale modeling using goal-oriented adaptivity and numerical homogenization. Part I: Mathematical formulation and numerical results. Computer Methods in Applied Mechanics and Engineering, 213:399–417, 2012. [24] F. Legoll and L. Chamoin. Multiscale computations based on msfem: model reduction and goal-oriented a posteriori error estimation. In 8th International Conference on Adaptive Modeling and Simulation-ADMOS 2017, 2017. [25] A. Loseille, A. Dervieux, and F. Alauzet. Fully anisotropic goal-oriented mesh adap tation for 3D steady Euler equations. Journal of Computational Physics, 229(8):2866– 2897, 2010. [26] M. S. Mommer and R. Stevenson. A goal-oriented adaptive finite element method with convergence rates. SIAM J. Numer. Anal., 47(2):861–886, 2009. [27] I. Niyonzima, C. Geuzaine, and S. Sch¨ops. Waveform relaxation for the computa tional homogenization of multiscale magnetoquasistatic problems. Journal of Computational Physics, 327:416–433, 2016. [28] J. T. Oden and S. Prudhomme. Estimation of modeling error in computational mechanics. Journal of Computational Physics, 182(2):496–515, 2002. [29] J. T. Oden, S. Prudhomme, A. Romkes, and P. T. Bauman. Multiscale modeling of physical phenomena: Adaptive control of models. SIAM Journal on Scientific Computing, 28(6):2359–2389, 2006. [30] J. T. Oden and K. S. Vemaganti. Estimation of local modeling error and goal-oriented adaptive modeling of heterogeneous materials: I. error estimates and adaptive algorithms. Journal of Computational Physics, 164(1):22–47, 2000. [31] F. Otero, S. Oller, X. Martinez, and O. Salom´on. Numerical homogenization for composite materials analysis. comparison with other micro mechanical formulations. Composite Structures, 122:405–416, 2015. [32] H. Owhadi. Bayesian numerical homogenization. Multiscale Modeling & Simulation, 13(3):812–828, 2015. [33] P. J. Park and T. Y. Hou. Multiscale numerical methods for singularly perturbed convection-diffusion equations. International Journal of Computational Methods, 1(01):17–65, 2004. [34] D. Peterseim. Variational multiscale stabilization and the exponential decay of fine scale correctors. In Building bridges: connections and challenges in modern approaches to numerical partial differential equations, pages 343–369. Springer, 2016. [35] Y. Wang and J. C. Ragusa. Standard and goal-oriented adaptive mesh refinement applied to radiation transport on 2D unstructured triangular meshes. Journal of Computational Physics, 230(3):763–788, 2011.

섹션 본문

섹션 본문이 없습니다.

참고문헌

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