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

Cluster-based generalized multiscale finite element method for elliptic PDEs with random coefficients

간접 관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (6) PEM(고분자전해질막)(7) MEA(막전극접합체)

기본 정보

저자
  1. Eric T. Chung — Department of Mathematics, The Chinese University of Hong Kong (CUHK), Hong Kong Special Administrative Region
  2. Yalchin Efendiev — Department of Mathematics & Institute for Scientific Computation (ISC), Texas A&M University, College Station, TX 77843, USA
  3. Wing Tat Leung — Department of Mathematics, Texas A&M University, College Station, TX 77843, USA
  4. Zhiwen Zhang — Department of Mathematics, The University of Hong Kong, Hong Kong Special Administrative Region
DOI
10.1016/j.jcp.2018.05.041
저널
Journal of Computational Physics
발행년도
2018
발행기관
Elsevier BV
피인용수
17
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jcp.2018.05.041
토픽
Composite Material Mechanics
OpenAlex ID
W2767757270

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체)
R&D 측면
분석·모델링
확신도
0.60
근거 용어
multiscale finite element method, stochastic partial differential equations, uncertainty quantification, permeability field, heterogeneous
판단 근거
이 논문은 불확실성을 가진 확률적 편미분 방정식(SPDE)을 효율적으로 풀기 위한 다중스케일 유한요소법(GMsFEM)을 다룹니다. 이는 다공성 매질(porous media) 내의 투과율(permeability) 모델링을 포함하며, 코오롱인더스트리의 수소연료전지용 중공사막(hollow fiber membrane)이나 고분자막의 미세 구조 내 유체 흐름 및 불확실성 분석 모델링에 응용될 수 있습니다.
R&D 활용 포인트
연료전지용 분리막이나 가습기용 중공사막의 미세 기공 구조 내에서의 수증기/가스 투과 성능을 확률적/다중스케일 관점에서 시뮬레이션하고 예측하는 모델링 기술로 활용 가능합니다.
평가 입력
본문 66,588자 중 30,032자 발췌

초록

초록이 없습니다.

본문 66,588자

본문 펼치기
# Cluster-based Generalized Multiscale Finite Element Method for elliptic PDEs with random coefficients #### Eric T. Chung ∗ Yalchin Efendiev † Wing Tat Leung ‡ Zhiwen Zhang § Abstract We propose a generalized multiscale finite element method (GMsFEM) based on clustering algorithm to study the elliptic PDEs with random coefficients in the multiquery setting. Our method consists of offline and online stages. In the offline stage, we construct a small number of reduced basis functions within each coarse grid block, which can then be used to approximate the multiscale finite element basis functions. In addition, we coarsen the corresponding random space through a clustering algorithm. In the online stage, we can obtain the multiscale finite element basis very efficiently on a coarse grid by using the pre-computed multiscale basis. The new GMsFEM can be applied to multiscale SPDE starting with a relatively coarse grid, without requiring the coarsest grid to resolve the smallest-scale of the solution. The new method offers considerable savings in solving multiscale SPDEs. Numerical results are presented to demonstrate the accuracy and efficiency of the proposed method for several multiscale stochastic problems without scale separation. _AMS_ _subject_ _classification:_ 35R60, 60H15, 60H35, 65C30 _Key_ _words:_ _Stochastic_ _partial_ _differential_ _equations_ _(SPDEs);_ _generalized_ _multiscale_ _finite_ _element_ _method_ _(GMsFEM);_ _multiscale_ _basis_ _functions;_ _Karhunen-Lo`eve_ _expan-_ _sion;_ _uncertainty_ _quantification_ _(UQ);_ _clustering_ _algorithm._ _∗_ Department of Mathematics, The Chinese University of Hong Kong (CUHK), Hong Kong SAR. Email: `tschung@math.cuhk.edu.hk` . _†_ Department of Mathematics & Institute for Scientific Computation (ISC), Texas A&M University, College Station, TX, 77843, USA. Email: `efendiev@math.tamu.edu` . _‡_ Department of Mathematics, Texas A&M University, College Station, TX 77843, USA. Email: `sidnet123@yahoo.com.hk` . _§_ Department of Mathematics, The University of Hong Kong, Hong Kong SAR. Email: `zhangzw@hku.hk` . Corresponding author. 1 ### 1 Introduction Many multiscale problems have stochastic nature due to missing information at small scales. For example, in porous media applications, the media properties are unknown in many locations and interpolated from some indirect and direct measurements. As a result, engineers can typically produce many realizations of the permeability field. In some cases, the stochastic description of the permeability is parameterized; however, in many cases, one deals with very large number of permeability realizations. The objective is to perform many simulations and understand the solution as a stochastic quantity. In this paper, our objective is to propose a fast method based on coarsening of both spatial and uncertainty space (in terms of realizations) for computing the solution space. The stochastic description of the permeability field contains multiple scales, which do not have apparent scale separation. Moreover, the uncertainties at different scales can be tightly coupled and one needs to upscale their interaction together. For this reason, stochastic upscaled models are often used. Stochastic upscaled models use coarse grids in the physical space and propose an ensemble average of the fine-grid permeability. As a result, one deals with stochastic flow equations on coarse grids. Some more commonly used approaches include upscaling a few realizations and making predictions based on these simulations. Many approaches have been developed for stochastic problems. Most famous approaches include Monte Carlo methods and their variations [18, 2, 30, 17]. In some other approaches the uncertainties are represented using polynomials of random fields or collocation points in uncertainty space. Typical methods are the stochastic finite element method [2], Wiener chaos expansion or generalized polynomial chaos (gPC) method and stochastic collocation method, see [16, 26, 37, 1, 28, 22, 35, 36, 29, 33] and references therein. These approaches do not take into account the interaction between the spatial scales and uncertainties. There are some recent attempts that take into account of the space and uncertainty interaction [31, 32]. In [34], Zabaras et al proposed a probabilistic graphical model approach to efficiently perform uncertainty quantification in the presence of both stochastic input and multiple physical scales. Hou et al explored the low-dimensional structures that hidden behind the high-dimensional SPDE problems and have made some progress in solving high-dimensional and/or multiscale SPDEs [5, 6, 4, 38]. We should point out that it is still extremely challenging to solve stochastic multiscale problems, due to their complicated natures, namely, high-dimensionality of the solution spaces. In our approach, we consider the joint coarsening of both spatial and uncertainty space motivated by many physical applications, where uncertainties and spatial scales are tightly coupled. For representing the spatial scales, we use the generalized multiscale finite element method (GMsFEM) [13, 7, 12, 11, 21, 14]. The main idea of this approach is to use the snapshots and local spectral decomposition for computing few basis functions. In this paper, these ideas are used for a few selected realizations to compute basis functions that can be used to represent multiple realizations. However, it is obvious that the use of many realizations 2 will introduce many spatial patterns and can require too many multiscale basis functions. This can lead to very expensive computations. For this reason, we use coarsening algorithm in the uncertainty space that can allow using a few multiscale basis functions and possibly basis functions that can be written as a product of spatial and stochastic functions. In general, if the uncertainty space is partitioned uniformly, we expect a larger dimensional coarse spaces. To coarsen the uncertainty space, we first define a distance function in each coarse block. The appropriate distance functions in clustering must include the distance between the solutions as this is a correct measure. However, one usually has many local solutions. In this case, we use local solutions with randomized boundary conditions motivated by [3]. The main idea of our motivation is that the local problems with randomized boundary conditions can represent the main modes of local problems that are computed using all boundary conditions. Because there are many realizations, we compute these local solutions for selected realizations and then compute their Karhunen-Lo`eve expansion (KLE) [23, 25] to approximate the solutions at all other realizations. Using these approximate solutions, we compute the distance between two realizations. Using this distance and k-mean clustering algorithms [20], we cluster the uncertainty space and define the corresponding coarse blocks. To construct multiscale basis functions in each cluster and a coarse block, we select a realization or an average realization. The latter is used within GMsFEM to construct multiscale basis functions. The basis function is constructed by computing snapshot vectors and performing local spectral decomposition. In this construction, we assume that the permeability fields within each cluster is almost uniform in the appropriate metric as defined for clustering. One can also try to construct product basis functions. To do so, we will need to construct stochastic basis functions, which represent the variations of the solution in the uncertainty space. Taking the product of stochastic basis functions and spatial multiscale basis functions for some average realizations, we can compute multiscale basis functions, which represent both spatial information and uncertainties. For global coupling of multiscale basis functions, we use continuous Galerkin formulation, though other discretization approaches can be used (e.g., Petrov-Galerkin, Discontinuous Galerkin methods). We consider two global couplings. The first one is a realization based approach, where we solve the global problem for each realization. The computations for each realization can be performed in parallel. Another approach is to use Galerkin in space and uncertainty space. In this approach, the variational formulation takes into account the average across the realizations. The second approach is cheaper for ensemble level calculations because it involves fewer global computations. The offline space constructed in this paper can be enhanced using online basis functions. The online basis functions are adaptively constructed using the residual information to improve the convergence. In [8], this algorithm is discussed for deterministic problems. The extension of this approach to stochastic problems will be discussed in this paper. The online basis functions are constructed for spatial and stochastic spaces by considering the joint 3 residual. The construction can be done adaptively for selected coarse blocks. The rest of the paper is organized as follows. The formulations of the stochastic multiscale model problem is presented in section 2. In section 3, we introduce the coarse grid discretization of the spacial domain and the random space. We also propose the basic clustering algorithm for coarsening the tensor space. In section 4, we give a general introduction of the generalized multiscale finite element method (GMsFEM) based on clustering. Both the offline and online computation will be discussed. In addition, issues regarding the practical implementation and computational complexity analysis will be covered. In Section 5, we present numerical results to demonstrate the efficiency of our method. Concluding remarks are made in Section 6. ### 2 Preliminaries In this section, we present the problem setting and the fine grid discretization. Let _D_ be a bounded domain in R <sup>_d_</sup> ( _d_ = 2 _,_ 3) and Ωis a parameter space in R <sup>_m_</sup>, where the dimension _m_ can be large in practice. We consider the following parameter-dependent second order linear elliptic equation, _−∇·_ ( _κ_ ( _x, ω_ ) _∇u_ ( _x, ω_ )) = _f_ ( _x, ω_ ) _,_ ( _x, ω_ ) _∈_ _D ×_ Ω _,_ _u_ ( _x, ω_ ) = 0 _,_ ( _x, ω_ ) _∈_ _∂D ×_ Ω _,_ (1) where _κ_ ( _x, ω_ ) is highly heterogeneous with respect to the physical space _D_ and _f_ ( _x, ω_ ) _∈_ _L_ <sup>2</sup> ( _D_ ), _∀ω_ _∈_ Ω. Even though we write the problem as parametric, our method will only use realizations of _κ_ ( _x, ω_ ). This is very important since engineers can only obtain realizations of the permeability field in practice. Thus, we assume that Ωis a discrete set of realizations _ωi_ ’s. The weak formulation of the problem (1) is to find _u_ ( _x, ω_ ) _∈_ _L_ <sup>2</sup> (Ω; _H_ <sup>1</sup> ( _D_ )) such that Ω _a_ ( _ω_ ; _u, v_ ) _dω_ = Ω _l_ ( _ω_ ; _v_ ) _dω,_ _∀v_ _∈_ _L_ <sup>2</sup> (Ω; _H_ <sup>1</sup> ( _D_ )) _,_ (2) where the bilinear form _a_ and the linear functional _l_ are defined as, _a_ ( _ω_ ; _u, v_ ) = _l_ ( _ω_ ; _v_ ) = _D_ _κ_ ( _x, ω_ ) _∇u_ ( _x, ω_ ) _· ∇v_ ( _x, ω_ ) _dx,_ _f_ ( _x, ω_ ) _v_ ( _x, ω_ ) _dx._ _D_ We remark that the measure _dω_ in (2) is assumed to be the uniform measure as in many cases we only have realizations of the permeability field _κ_ ( _x, ω_ ) (e.g., the SPE10 model in reservoir simulation). In the space _L_ <sup>2</sup> (Ω; _H_ <sup>1</sup> ( _D_ )), we define the norm of the tensor space _H_ 0 <sup>1(</sup> <sup>_D_</sup> <sup>)</sup> <sup>_⊗_</sup> <sup>_L_</sup> <sup>2(Ω)</sup> <sup>as,</sup> 0 <sup>1(</sup> <sup>_D_</sup> <sup>)</sup> <sup>_⊗_</sup> <sup>_L_</sup> <sup>2(Ω)</sup> <sup>as,</sup> _H_ _∥u∥_ <sup>2</sup> 0 <sup>1(</sup> <sup>_D_</sup> <sup>)</sup> <sup>_⊗L_</sup> <sup>2(Ω)</sup> <sup>=</sup> Ω _H_ 0 <sup>1</sup> _a_ ( _ω_ ; _u, u_ ) _dω._ (3) 4 #### 2.1 Fine grid discretization We introduce the fine grid discretization for solving the multiscale problem (2). Let _T_ <sup>_h_</sup> be a fine-grid partition of the domain _D_ with mesh size _h_ and Ω _d_ be the fine sampling subset of Ω which can approximately represent the whole space Ω, namely Ω _d_ = _{ω_ 1 _, ω_ 2 _, . . ., ωM_ _}_ _⊂_ Ω, and the corresponding weights are _{w_ 1 _, w_ 2 _, ..., wM_ _}_ with <sup>�</sup> _i_ <sup>_M_</sup> =1 <sup>_wi_</sup> <sup>=</sup> <sup>1.</sup> <sup>If</sup> <sup>the</sup> <sup>permeability</sup> field is given as _κ_ ( _x, ω_ ), then we can sample the space of Ωto obtain realizations. There are many methods to sample the space Ω, such as Monte Carlo sampling, quasi Monte Carlo sampling [2], and Latin hypercube sampling. The measure defined on Ω _d_ is a weighted discrete measure which accurately approximates the measure on the Ω, that is, Ω _d_ Ω _u_ ( _x, ω_ ) _dω_ = _M_ _i_ _u_ ( _x, ωi_ ) _wi_ _≈_ _u_ ( _x, ω_ ) _dω._ The fine-grid reference solution _uh_ _∈_ _Vh_ is defined by solving Ω _d_ _a_ ( _ω_ ; _u, v_ ) _dω_ = Ω _d_ _l_ ( _ω_ ; _v_ ) _dω,_ _∀v_ _∈_ _Vh_ (4) where _Vh_ is the fine-grid finite element space defined by _Vh_ = _{v_ ( _x, ω_ ) _∈_ _L_ <sup>2</sup> (Ω _d_ ; _H_ <sup>1</sup> ( _D_ )) : _v_ ( _x, ωi_ ) _|τ_ _∈_ _Q_ 1( _τ_ ) _,_ _∀τ_ _∈T_ <sup>_h_</sup> _,_ _∀ωi_ _∈_ Ω _d},_ where _Q_ 1( _τ_ ) is a linear function on the element _τ_ . We remark that the fine-grid partition _T_ <sup>_h_</sup> of the domain _D_ allows us to resolve all heterogeneities of _κ_ ( _x, ω_ ) in _D_ . In general, solving Eq.(4) is expensive as the dimension of the fine-grid finite element space _Vh_ is large and one needs to solve the multiscale problem for many realizations of _κ_ ( _x, ω_ ). In the following sections, we shall design an effective approach that allows one to solve (4) approximately and accurately with much lower computational costs. We shall build a lower dimensional space _VH_ using the idea of GMsFEM. In order to build the most efficient representation of the solution, we shall not separate the physical variable _x_ and the random variable _ω_ in our framework. That is, we shall not use a tensor product approach. Indeed, we shall couple the influence in terms of both _x_ and _ω_ simultaneously in our construction. ### 3 Coarse grids In this section, we shall introduce the coarse grid discretization of the spacial domain _D_ and the parameter space Ω _d_ . One obvious choice of the partition of the product space _D×_ Ω _d_ is to construct the partitions of _D_ and Ω _d_ separately and then use the tensor products. However, this approach may not be good in practice. We shall use a more adaptive approach, namely, the partition of the parameter space depends on the partition of the spatial domain _D_ . In particular, We shall first define a partition for the domain _D_ . Then for each of the element 5 in the partition of _D_, We shall construct a corresponding partition for the set Ω _d_ . Our numerical experiments demonstrate that this new approach is very effective in solving the heterogenous multiscale problems. #### 3.1 Coarse spatial grid We first present the construction of the coarse grid and related notations for the spatial domain _D_ . We use _T_ <sup>_H_</sup> to denote a coarse grid partition of the domain _D_ and the elements of _T_ <sup>_H_</sup> are called coarse elements, where _H_ is the mesh size of the coarse element. To simplify the discussions, we shall assume that the fine grid partition _T_ <sup>_h_</sup> is a refinement of the coarse grid partition _T_ <sup>_H_</sup> . Let _xi_, 1 _≤_ _i_ _≤_ _N_, be the set of interior nodes in the coarse grid, and _N_ is the number of the interior coarse grid nodes. For each coarse node _xi_, the coarse neighborhood _Di_ is defined by _Di_ = _∪{Kj_ _∈T_ <sup>_H_</sup> : _xi_ _∈_ _K_ _j},_ that is, the union of all coarse elements _Kj_ _∈T_ <sup>_H_</sup> having the vertex _xi_ . We present an illustration of the course grid notations in Figure 1. _T_ <sup>_H_</sup> (Coarse Grid) _K_ 3 _K_ 2 _i_ _i_ _ωi_ Coarse Neighborhood Coarse Element _K_ 4 _K_ 1 _K_ Figure 1: Illustration of the coarse grid and related notations. #### 3.2 Coarsening Ω d via clustering algorithm. Next, we discuss the coarsening of Ω _d_ via clustering algorithm. The clustering algorithm will be performed for each neighborhood of _Di_ in general. In simplified cases, one can assume the same clustering for all _Di_ ’s; however, we emphasize that in general cases, one needs to coarsen Ω _d_ for each coarse spatial grid block _Di_ separately. To perform the clustering, we shall use a distance function _d_ <sup>_i_</sup> ( _·, ·_ ) defined on Ω _d_ for the coarse neighborhood _Di_ . The distance function _d_ <sup>_i_</sup> ( _·, ·_ ) is defined in the solution space instead of the sample space. More precisely, for any two elements _ωn, ωm_ _∈_ Ω _d_, we define the distance _d_ <sup>_i_</sup> ( _ωn, ωm_ ) be the distance of the two functions _φn, φm_ in _Di_, where _φn, φm_ are solutions of _−∇·_ ( _κ_ ( _x, ω_ ) _∇φ_ ( _x, ω_ )) = 0 with _ω_ = _ωn, ωm_ in _Di_ respectively and with an appropriate 6 boundary condition on _∂Di_ . However, solving the multiscale problem to get _φn_ and _φm_ for every pair of elements _ωn_ and _ωm_ in Ω _d_ is expensive. Therefore, we present a simplified way to reduce the computational cost in our clustering algorithm. For each coarse neighborhood _Di_, we first construct a snapshot space for a subset in Ω _d_ . We denote this subset of Ω _d_ by Ω _d_ <sup>subset</sup> . Our objective is to find a simplified distance functions in Ω _d_ that can be used for clustering. The main idea is to use randomized harmonic extensions and KL expansion. The clustering algorithm is illustrated in Figure 2. Figure 2: Illustration of the clustering algorithm _d_ <sup>subset</sup> of Ω _d_ . We let _Di_ <sup>+</sup> We consider the _i_ - _th_ coarse neighborhood _Di_ and a fixed subset Ω _d_ <sup>subset</sup> _d_ _i_ be an oversampled domain for _Di_, that is, _Di_ _⊂_ _Di_ <sup>+.</sup> <sup>More</sup> <sup>details</sup> <sup>about</sup> <sup>the</sup> <sup>oversampling</sup> technique for multiscale finite element method can be found in [15] and references therein. be an oversampled domain for _Di_, that is, _Di_ _⊂_ _Di_ <sup>+.</sup> <sup>More</sup> <sup>details</sup> <sup>about</sup> <sup>the</sup> <sup>oversampling</sup> technique for multiscale finite element method can be found in [15] and references therein. In addition, we let _Vh_ <sup>_i,_</sup> <sup>+</sup> be the subspace of _Vh_ defined by _h_ <sup>_i,_</sup> <sup>+</sup> be the subspace of _Vh_ defined by _Vh_ <sup>_i,_</sup> <sup>+</sup> _d_ ; _H_ <sup>1</sup> ( _D_ <sup>+</sup> <sup>subset</sup> _i_ _d_ _i_ <sup>+</sup> <sup>_,_</sup> <sup>_∀ω_</sup> <sup>_∈_</sup> <sup>Ωsubset</sup> _d_ <sup>subset</sup> _},_ _h_ <sup>_i,_</sup> <sup>+</sup> _d_ = _{v_ ( _x, ω_ ) _∈_ _L_ <sup>2</sup> (Ω <sup>subset</sup> _i_ <sup>+))</sup> <sup>:</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x, ω_</sup> <sup>)</sup> <sup>_|τ_</sup> <sup>_∈_</sup> <sup>_Q_</sup> <sup>1(</sup> <sup>_τ_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_∀τ_</sup> <sup>_∈T_</sup> <sup>_h ∩_</sup> <sup>_D_</sup> _i_ <sup>+</sup> and the subspace _Vh,_ <sup>_i,_</sup> 0 <sup>+</sup> _h,_ <sup>_i,_</sup> 0 <sup>+</sup> <sup>be the subspace of</sup> <sup>_V_</sup> _h_ <sup>_i,_</sup> <sup>+</sup> _h_ <sup>_i,_</sup> <sup>+</sup> containing functions with zero trace on _∂Di_ <sup>+</sup> and the subspace _Vh,_ <sup>_i,_</sup> 0 <sup>+</sup> <sup>be the subspace of</sup> <sup>_V_</sup> _h_ <sup>_i,_</sup> <sup>+</sup> containing functions with zero trace on _∂Di_ <sup>+.</sup> Then we construct a set of snapshot functions _ψj_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>),</sup> <sup>by</sup> <sup>solving</sup> <sup>the</sup> <sup>local</sup> <sup>problem</sup> <sup>in</sup> <sup>the</sup> Then we construct a set of snapshot functions _ψj_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>),</sup> <sup>by</sup> <sup>solving</sup> <sup>the</sup> <sup>local</sup> <sup>problem</sup> <sup>in</sup> <sup>the</sup> oversampling sub-domain _D_ <sup>+</sup> _d_ . In particular, we find _ψ_ <sup>_i_</sup> _h_ such that _i_ <sup>_×_</sup> <sup>Ωsubset</sup> _j_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> <sup>_i,_</sup> <sup>+</sup> <sup>+</sup> _d_ _i_ <sup>_×_</sup> <sup>Ωsubset</sup> _d_ . In particular, we find _ψ_ <sup>_i_</sup> <sup>subset</sup> _j_ <sup>_i_</sup> _h_ _j_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> <sup>_i,_</sup> <sup>+</sup> _h_ such that <sup>_i,_</sup> <sup>+</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x, ω_</sup> <sup>)</sup> <sup>_, v_</sup> <sup>) =</sup> <sup>_l_</sup> <sup>(</sup> <sup>_ω, v_</sup> <sup>)</sup> <sup>_,_</sup> _∀v_ _∈_ _Vh,_ <sup>_i,_</sup> 0 <sup>+</sup> _a_ ( _ω_ ; _ψj_ <sup>_i_</sup> _h,_ <sup>_i,_</sup> 0 <sup>+</sup> <sup>_,_</sup> _∀ω_ _∈_ Ω _d_ <sup>subset</sup> _d_ _,_ (5) <sup>subset</sup> subject to the boundary conditions _ψj_ <sup>_i_</sup> subject to the boundary conditions _ψj_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_|_</sup> _∂Di_ <sup>+</sup> <sup>=</sup> <sup>_Rj_</sup> <sup>,</sup> <sup>_j_</sup> <sup>=</sup> <sup>1</sup> <sup>_, ..., ki_</sup> <sup>,</sup> <sup>where</sup> <sup>_Rj_</sup> <sup>is</sup> <sup>a</sup> <sup>discrete</sup> random function defined with respect to the fine grid boundary point on _∂Di_ <sup>+</sup> <sup>and</sup> <sup>_ki_</sup> <sup>are the</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_|_</sup> _∂Di_ <sup>+</sup> random function defined with respect to the fine grid boundary point on _∂Di_ <sup>+</sup> <sup>and</sup> <sup>_ki_</sup> <sup>are the</sup> number of local problem that one needs to solve in coarse neighborhood _Di_ . How to choose the appropriate number of snapshot functions _ψj_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>number</sup> <sup>_ki_</sup> <sup>will</sup> <sup>effect</sup> the performance of our method. Our goal is to construct a few effective boundary conditions so that the snapshot functions _ψj_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) can be used to approximate the solution space.</sup> <sup>We find</sup> How to choose the appropriate number of snapshot functions _ψj_ <sup>_i_</sup> so that the snapshot functions _ψj_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) can be used to approximate the solution space.</sup> <sup>We find</sup> that this is closely related to the range-finding problem. In discrete level, we can formulate the range-finding problem as: for a matrix _T_, we want to find a matrix _Q_ with independent columns such that its column space accurately approximates the column space _T_, i.e., _||T_ _−_ _QQ_ <sup>_T_</sup> _T_ _|| ≤_ _ϵ,_ (6) where _ϵ_ is a small parameter and _|| · ||_ is a matrix norm. 7 Randomized range finding algorithm is very efficient to construct the matrix _Q_ and to capture the column space of _T_ . See [19, 24] for more details about the randomized algorithms for finding low-dimensional structures. To justify the approximation error _||T −_ _QQ_ <sup>_T_</sup> _T_ _||_, we denote _B_ = ( _I_ _−_ _QQ_ <sup>_T_</sup> ) _T_ and draw _k_ random vectors _ω_ <sup>_j_</sup>, _j_ = 1 _, ..., k_ . We use _T_ to act on these _ω_ <sup>_j_</sup>, _i_ = 1 _, ..., k_, and compute the residual after projecting the images _Tω_ <sup>_j_</sup> to the thancolumn _α_ <sup>_<u>ϵ</u>_</sup> ~~�~~ spa _<u>π</u>_ 2 <sup>,</sup> ce <sup>then</sup> of _Q_ <sup>the</sup>, namely <sup>condition</sup> _||_ ( _I_ <sup>(6)</sup> _−_ _QQ_ <sup>holds</sup> <sup>_T_</sup> ) _Tω_ <sup>except</sup> <sup>_j_</sup> _||_ . If <sup>with</sup> all <sup>a</sup> the <sup>small</sup> _k_ number <sup>probability</sup> of residuals <sup>_α−k_</sup> <sup>,</sup> <sup>where</sup> are smaller <sup>_α >_</sup> <sup>1.</sup> than _α_ <sup>_<u>ϵ</u>_</sup> ~~�~~ _<u>π</u>_ 2 <sup>,</sup> <sup>then</sup> <sup>the</sup> <sup>condition</sup> <sup>(6)</sup> <sup>holds</sup> <sup>except</sup> <sup>with</sup> <sup>a</sup> <sup>small</sup> <sup>probability</sup> <sup>_α−k_</sup> <sup>,</sup> <sup>where</sup> <sup>_α >_</sup> <sup>1.</sup> The good thing about the randomized range-finding algorithms and the error estimation (6) is that they do not require access to each entry of the matrix _T_, but only require the matrix-vector multiplication. For our problem, this matrix-vector multiplication corresponding to solve (5) with certain random boundary conditions. Therefore, we employ the randomized range finding philosophy and the error estimation in our problem to determine an optimal number _k_ <sup>_i_</sup> so that we can reduce the computational cost. In the next step, we perform a KL expansion of the snapshot functions _{ψj_ <sup>_i_</sup> <sup>(</sup> <sup>_x, ω_</sup> <sup>)</sup> <sup>_}_</sup> <sup>and</sup> obtain the dominant modes in the solution space _α_ In the next step, we perform a KL expansion of the snapshot functions _{ψj_ <sup>_i_</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x, ω_</sup> <sup>) =</sup> <sup>_ψ_</sup> <sup>¯</sup> _j_ <sup>_i_</sup> _ψj_ <sup>_i_</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) +</sup> <sup>_i_</sup> _l_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_,_</sup> (7) _l≥_ 1 _p_ <sup>_i_</sup> <sup>_i_</sup> _j,l_ <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_φi_</sup> _l_ 1 _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>=</sup> _d_ _|_ Ω <sup>subset</sup> of sample where _ψ_ <sup>¯</sup> _j_ <sup>_i_</sup> _d_ <sup>subset</sup> _|_ Ω <sup>subset</sup> _d_ <sup>subset</sup> _d_ _ψ_ <sup>_i_</sup> _j_ _d_ <sup>subset</sup> _|_ is <sup>_i_</sup> _d_ _j_ <sup>(</sup> <sup>_x, ω_</sup> <sup>)</sup> <sup>_dω_</sup> <sup>is</sup> <sup>the</sup> <sup>mean</sup> <sup>of</sup> <sup>snapshot</sup> <sup>functions</sup> <sup>and</sup> <sup>_|_</sup> <sup>Ωsubset</sup> <sup>subset</sup> _d_ . We note that _φ_ <sup>_i_</sup> _l_ _i_ <sup>+)</sup> <sup>are</sup> <sup>defined</sup> <sup>by</sup> the number of sample in Ω <sup>subset</sup> _d_ . <sup>_i_</sup> _l_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_Vh,_</sup> <sup>0(</sup> <sup>_D_</sup> _i_ <sup>+</sup> _Vh,_ 0( _Di_ <sup>+</sup> 0 <sup>1(</sup> <sup>_D_</sup> _i_ <sup>+)</sup> <sup>:</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_|τ_</sup> <sup>_∈_</sup> <sup>_Q_</sup> <sup>1(</sup> <sup>_τ_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_∀τ_</sup> <sup>_∈T_</sup> <sup>_h ∩_</sup> <sup>_D_</sup> _i_ <sup>+</sup> _i_ <sup>+) =</sup> <sup>_{v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_H_</sup> 0 <sup>1</sup> _i_ <sup>+</sup> <sup>_}._</sup> We also note that _ψ_ <sup>¯</sup> _j_ <sup>_i_</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>satisfies</sup> <sup>the</sup> <sup>same</sup> <sup>boundary</sup> <sup>condition</sup> <sup>as</sup> <sup>_ψ_</sup> _j_ <sup>_i_</sup> also note that _ψ_ <sup>¯</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>satisfies</sup> <sup>the</sup> <sup>same</sup> <sup>boundary</sup> <sup>condition</sup> <sup>as</sup> <sup>_ψ_</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>).</sup> Among the set _{φl_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_, l_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_, ...}_</sup> <sup>of</sup> <sup>the</sup> <sup>KL</sup> <sup>expansion</sup> <sup>of</sup> <sup>the</sup> <sup>snapshot</sup> shall restrict them in the coarse neighborhood _Di_ and then take Among the set _{φl_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_, l_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_, ...}_</sup> <sup>of</sup> <sup>the</sup> <sup>KL</sup> <sup>expansion</sup> <sup>of</sup> <sup>the</sup> <sup>snapshot</sup> <sup>functions</sup> <sup>in</sup> <sup>(7),</sup> we shall restrict them in the coarse neighborhood _Di_ and then take the first _L_ <sup>_i_</sup> dominant parts and form the reduced spatial snapshot space _V_ snap <sup>_i_</sup> <sup>.</sup> <sup>The low-dimensional reduced space</sup> parts and form the reduced spatial snapshot space _V_ snap <sup>_i_</sup> <sup>.</sup> <sup>The low-dimensional reduced space</sup> _V_ snap <sup>_i_</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> snap <sup>_i_</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> _V_ <sup>_i_</sup> snap <sup>_i_</sup> <sup>= span</sup> <sup>_{φi_</sup> _l_ <sup>_i_</sup> _l_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_,_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_l ≤_</sup> <sup>_Li}._</sup> The key idea of our new algorithm is to use this low-dimensional space to solve the local problem for each realization in Ω _d_ . More precisely, for each _ω_ _∈_ Ω _d_, we find a function _ψ_ ˜ <sup>_i_</sup> _ψ_ ˜ _j_ <sup>_i_</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x, ω_</sup> <sup>)</sup> <sup>such</sup> <sup>that</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x, ω_</sup> <sup>) =</sup> <sup>_ψ_</sup> <sup>¯</sup> _j_ <sup>_i_</sup> _ψ_ ˜ _j_ <sup>_i_</sup> _j_ <sup>_i_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) +</sup> <sup>_i_</sup> _j,l_ <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_φi_</sup> _l_ <sup>_i_</sup> _l_ <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_,_</sup> _x ∈_ _Di,_ - _p_ ˜ <sup>_i_</sup> 1 _≤l≤L_ <sup>_i_</sup> and _a_ ( _ω,_ _ψ_ <sup>˜</sup> _j_ <sup>_i_</sup> snap <sup>_i_</sup> <sup>_._</sup> _j_ <sup>_i, v_</sup> <sup>) =</sup> <sup>_l_</sup> <sup>(</sup> <sup>_ω, v_</sup> <sup>)</sup> <sup>_,_</sup> _∀v_ _∈_ _V_ <sup>_i_</sup> We remark that solving the above problems is very efficient due to the small dimension of the solution space _V_ snap <sup>_i_</sup> <sup>,</sup> <sup>which</sup> <sup>enables</sup> <sup>us</sup> <sup>to</sup> <sup>construct</sup> <sup>a</sup> <sup>distance</sup> <sup>function</sup> <sup>in</sup> <sup>Ω</sup> <sup>_d_</sup> <sup>.</sup> <sup>To</sup> <sup>be</sup> <sup>specific,</sup> 8 we use local solutions to define a distance function on Ω _d_, denoted as _d_ <sup>_i_</sup> ( _·, ·_ ) : Ω _d ×_ Ω _d_ _→_ R <sup>+ �</sup> _{_ 0 _}_, by ~~�~~ <u>�</u> <u>�</u> (˜ _p_ <sup>_i_</sup> 1 _≤l≤L_ <sup>_i_</sup> <u>�</u> <sup>_i_</sup> _j,l_ <sup>(</sup> <sup>_ωn_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_p_</sup> <sup>˜</sup> <sup>_i_</sup> _j,l_ <sup>_i_</sup> <sup>(</sup> <sup>_ωm_</sup> <sup>))2</sup> <sup>_._</sup> (8) _d_ <sup>_i_</sup> ( _ωn, ωm_ ) = ~~�~~ <u>�</u> _j_ We then use the k-means clustering algorithm [20] with the distance function defined in (8) to cluster the sampling space Ω _d_ into _J_ <sup>_i_</sup> clusters Ω <sup>_i_</sup> _j_ <sup>.</sup> _j_ <sup>,</sup> <sup>_j_</sup> <sup>= 1</sup> <sup>_, ..., J_</sup> <sup>_i_</sup> <sup>, such that, Ω</sup> <sup>_d_</sup> <sup>=</sup> <sup>_∪_</sup> <sup>1</sup> <sup>_≤j≤J_</sup> <sup>_i_</sup> <sup>Ω</sup> <sup>_i_</sup> Remark 3.1. _We should point out that the essential idea is that the clustering of the sampling_ _space_ Ω _d_ = _∪_ 1 _≤j≤J_ _i_ Ω _j_ <sup>_i_</sup> <sup>_depends on the spatial location Di._</sup> <sup>_This enables us to efficiently explore_</sup> _the_ _heterogeneities_ _of_ _κ_ ( _x, ω_ ) _as_ _well_ _as_ _the_ _solution_ _space._ <sup>_i_</sup> _j_ _j_ <sup>,</sup> <sup>_j_</sup> <sup>= 1</sup> <sup>_, ..., J_</sup> <sup>_i_</sup> <sup>, such that, Ω</sup> <sup>_d_</sup> <sup>=</sup> <sup>_∪_</sup> <sup>1</sup> <sup>_≤j≤J_</sup> <sup>_i_</sup> <sup>Ω</sup> <sup>_i_</sup> _j_ <sup>_i_</sup> <sup>.</sup> Remark 3.1. _We should point out that the essential idea is that the clustering of the sampling_ _space_ Ω _d_ = _∪_ 1 _≤j≤J_ _i_ Ω _j_ <sup>_i_</sup> <sup>_depends on the spatial location Di._</sup> <sup>_This enables us to efficiently explore_</sup> ### 4 The construction of offline space In this section, we describe the construction of the local offline basis functions. Let _Di_, _i_ = 1 _, ..., N_ and Ω <sup>_i_</sup> _j_ <sup>,</sup> <sup>_j_</sup> <sup>=</sup> <sup>1</sup> <sup>_, ..., J_</sup> <sup>_i_</sup> <sup>be</sup> <sup>a</sup> <sup>given</sup> <sup>coarse</sup> <sup>neighborhood</sup> <sup>and</sup> <sup>a</sup> <sup>cluster</sup> <sup>of</sup> <sup>Ω</sup> <sup>_d_</sup> <sup>,</sup> _i_ = 1 _, ..., N_ and Ω <sup>_i_</sup> _j_ <sup>,</sup> <sup>_j_</sup> <sup>=</sup> <sup>1</sup> <sup>_, ..., J_</sup> <sup>_i_</sup> <sup>be</sup> <sup>a</sup> <sup>given</sup> <sup>coarse</sup> <sup>neighborhood</sup> <sup>and</sup> <sup>a</sup> <sup>cluster</sup> <sup>of</sup> <sup>Ω</sup> <sup>_d_</sup> <sup>,</sup> respectively. In the constructing process, we first construct a snapshot space _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>for</sup> <sup>_D_</sup> _i_ <sup>_×_</sup> <sup>Ω</sup> _j_ <sup>_i_</sup> <sup>.</sup> snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>for</sup> <sup>_D_</sup> _i_ <sup>_×_</sup> <sup>Ω</sup> _j_ <sup>_i_</sup> respectively. In the constructing process, we first construct a snapshot space _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>for</sup> <sup>_D_</sup> _i_ <sup>_×_</sup> <sup>Ω</sup> _j_ <sup>_i_</sup> <sup>.</sup> In the notation _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>),</sup> <sup>the</sup> <sup>indices</sup> <sup>_i_</sup> <sup>are</sup> <sup>corresponding</sup> <sup>to</sup> <sup>coarse</sup> <sup>neighborhood</sup> <sup>_D_</sup> _i_ <sup>and</sup> <sup>the</sup> In the notation _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>),</sup> <sup>the</sup> <sup>indices</sup> <sup>_i_</sup> <sup>are</sup> <sup>corresponding</sup> <sup>to</sup> <sup>coarse</sup> <sup>neighborhood</sup> <sup>_D_</sup> _i_ <sup>and</sup> <sup>the</sup> indices _j_ are induced by _i_ when we use the clustering algorithm. The construction of the snapshot space _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>consists</sup> <sup>of</sup> <sup>solving</sup> <sup>the</sup> <sup>local</sup> <sup>problems</sup> <sup>for</sup> several random boundary conditions. To construct the offline space _V_ off <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup>, we need to solve The construction of the snapshot space _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> several random boundary conditions. To construct the offline space _V_ off <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup>, we need to solve a local spectral problem in the _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>for</sup> <sup>the</sup> <sup>dimension</sup> <sup>reduction.</sup> <sup>We</sup> <sup>shall</sup> <sup>discuss</sup> <sup>the</sup> <sup>full</sup> a local spectral problem in the _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>for</sup> <sup>the</sup> <sup>dimension</sup> <sup>reduction.</sup> <sup>We</sup> <sup>shall</sup> <sup>discuss</sup> <sup>the</sup> <sup>full</sup> description of the construction in the following subsections. #### 4.1 Construct the snapshot space The definition of the snapshot space _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> The definition of the snapshot space _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>is based on</sup> <sup>_a_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)-harmonic extensions.</sup> <sup>Let</sup> <sup>_B_</sup> _h_ <sup>(</sup> <sup>_D_</sup> _i_ <sup>)</sup> be the set of all fine-grid nodes lying on the boundary of the coarse neighborhood of _∂Di_ . For each fine grid node _xi_, the discrete delta function _δk_ <sup>_h_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> _k_ <sup>_h_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>is</sup> <sup>defined</sup> <sup>by</sup> _δk_ <sup>_h_</sup> <sup>(</sup> <sup>_xl_</sup> <sup>) =</sup> 1 _,_ _k_ = _l_ 0 _k̸_ = _l_ _, xl_ _∈_ _Bh_ ( _Di_ ) _._ Next, we define the _k_ -th snapshot basis function _ψk_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>_,_</sup> <sup>snap</sup> _k_ -th snapshot basis function _ψk_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>_,_</sup> <sup>snap</sup> _∈_ _Vh_ ( _Di_ ) as the solution of _Di_ _k_ _κ_ ¯ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ) _∇ψ_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>_,_</sup> <sup>snap</sup> _k_ (9) <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>_,_</sup> <sup>snap</sup> _· ∇v_ = 0 _,_ _∀v_ _∈_ _Vh,_ 0( _Di_ ) _ψk_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>_,_</sup> <sup>snap</sup> _k_ <sup>_h_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_,_</sup> <sup>on</sup> <sup>_∂Di,_</sup> (10) _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>_,_</sup> <sup>snap</sup> ( _x_ ) = _δk_ <sup>_h_</sup> where _κ_ ¯ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ) = ( <sup>1</sup> Ω <sup>_i_</sup> _j_ <sup>_κ_</sup> <sup>(</sup> <sup>_x, ω_</sup> <sup>)</sup> <sup>_dω_</sup> <sup>).</sup> <sup>Here,</sup> <sup>we</sup> <sup>take</sup> <sup>the</sup> <sup>mean of</sup> <sup>_κ_</sup> <sup>(</sup> <sup>_x, ω_</sup> <sup>)</sup> <sup>within</sup> <sup>a cluster</sup> <sup>for</sup> _|_ Ω <sup>_i_</sup> _j_ <sup>_i_</sup> _j_ <sup>_|_</sup> computing offline spaces. In general, one can use a typical realization or a few realizations in 9 a similar fashion. The main idea is that within each cluster, we assume that the realizations are similar in an appropriate metric (i.e., the distance between randomized snapshots). The dimension of _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>is</sup> <sup>equal</sup> <sup>to</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>fine</sup> <sup>grid</sup> <sup>nodes</sup> <sup>lying</sup> <sup>on</sup> <sup>_∂D_</sup> _i_ <sup>.</sup> <sup>We</sup> <sup>can</sup> use the randomized snapshots with oversampling technique to reduce the dimension of _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> and therefore reduce the computational cost of solving these snapshot basis functions. #### 4.2 Construct the offline space To obtain the offline space _V_ off <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> To obtain the offline space _V_ off <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup>, we shall perform a spectral decomposition in the snapshot space. The spectral decomposition is defined as to find ( _φ_ <sup>(</sup> _k_ <sup>_i,j_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> _, λ_ <sup>(</sup> _k_ <sup>_i,j_</sup> <sup>)</sup> ) _∈_ _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>_×_</sup> <sup>R</sup> <sup>such</sup> <sup>that</sup> <sup>(</sup> _k_ <sup>_i,j_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> _, λ_ <sup>(</sup> _k_ <sup>_i,j_</sup> <sup>)</sup> <sup>(</sup> _k_ <sup>_i,j_</sup> <sup>)</sup> ) _∈_ _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> spectral decomposition is defined as to find ( _φ_ <sup>(</sup> _k_ <sup>_i,j_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>)</sup> _, λ_ <sup>(</sup> _k_ <sup>_i,j_</sup> <sup>)</sup> ) _∈_ _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>_×_</sup> <sup>R</sup> <sup>such</sup> <sup>that</sup> - _Di_ _k_ _Di_ _k_ _κ_ ¯ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ) _∇φ_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _k_ _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ) _· ∇v_ = _λ_ <sup>_i,j_</sup> _k_ _κ_ ¯ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ) _|∇χi_ ( _x_ ) _|_ <sup>2</sup> _φ_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ) _v,_ _∀v_ _∈_ _V_ snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> snap <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>_,_</sup> (11) where _{χi_ ( _x_ ) _}_ is the partition of unity functions for the spatial domain _D_ with respect to the partition _{Di}_ and _κ_ ¯ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ) is defined the same as in (9). We assume the eigenvalues are arranged in an ascending order. Then, the offline basis functions for the coarse neighborhood _Di ×_ Ω _j_ <sup>_i_</sup> <sup>are defined by</sup> <sup>_φ_</sup> <sup>˜</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x, ω_ ) = _χi_ ( _x_ ) _I_ Ω _ij_ <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_φ_</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ), for 1 _≤_ _k_ _≤_ _M_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup>, where _I_ Ω _ji_ <sup>is the</sup> _j_ <sup>_i_</sup> <sup>are defined by</sup> <sup>_φ_</sup> <sup>˜</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _ij_ <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_φ_</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x, ω_ ) = _χi_ ( _x_ ) _I_ Ω _ij_ _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ), for 1 _≤_ _k_ _≤_ _M_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup>, where _I_ Ω _ji_ _Di ×_ Ω _j_ <sup>_i_</sup> <sup>are defined by</sup> <sup>_φ_</sup> <sup>˜</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x, ω_ ) = _χi_ ( _x_ ) _I_ Ω _ij_ <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_φ_</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> ( _x_ ), for 1 _≤_ _k_ _≤_ _M_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup>, where _I_ Ω _ji_ <sup>is the</sup> characteristic function of Ω <sup>_i_</sup> _j_ <sup>.</sup> <sup>That</sup> <sup>is,</sup> <sup>_i_</sup> _j_ <sup>.</sup> <sup>That</sup> <sup>is,</sup> _k_ (12) _V_ off = span _{φ_ <sup>˜(</sup> <sup>_i,j_</sup> <sup>)</sup> : _∀i,_ 1 _≤_ _j_ _≤_ _J_ <sup>_i_</sup> _,_ 1 _≤_ _k_ _≤_ _M_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _}._ #### 4.3 Global formulation The offline space _V_ off can be used to solve the multiscale stochastic problem (1) for any input parameter _ω_ and any right hand side function _f_ ( _x, ω_ ). In particular, the stochastic GMsFEM for the multiscale stochastic problem (1) is to find _u_ ms _∈_ _V_ off such that Ω _d_ _a_ ( _ω_ ; _u_ ms _, v_ ) _dω_ = Ω _d_ _l_ ( _ω_ ; _v_ ) _dω,_ _∀v_ _∈_ _V_ off _._ (13) By solving (13) using Galerkin method, we can obtain the numerical approximation solution _u_ ms to the multiscale stochastic solution. #### 4.4 Online basis functions The numerical solution obtained in the offline space has already produced a good approximation to the multiscale stochastic solution. In some cases, however, we need to improve the accuracy of the solution by using some online basis functions, which are constructed in the online stage. 10 To demonstrate the main idea of the online update, we consider a coarse neighborhood _Di_ and the set Ω <sup>_i_</sup> _j_ <sup>for</sup> <sup>example.</sup> <sup>We</sup> <sup>define</sup> <sup>the</sup> <sup>following</sup> <sup>residual</sup> <sup>function</sup> Ω <sup>_i_</sup> _j_ _l_ ( _ω_ ; _v_ ) _dω,_ _∀v_ _∈_ _L_ <sup>2</sup> (Ω _j_ <sup>_i_</sup> <sup>;</sup> <sup>_Vh,_</sup> <sup>0(</sup> <sup>_Di_</sup> <sup>))</sup> <sup>_,_</sup> (14) _Ri,j_ ( _ω_ ; _v_ ) = Ω <sup>_i_</sup> _j_ _a_ ( _ω_ ; _u_ ms _, v_ ) _dω −_ where 0 <sup>1(</sup> <sup>_Di_</sup> <sup>)</sup> <sup>:</sup> <sup>_v_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_|τ_</sup> <sup>_∈_</sup> <sup>_Q_</sup> <sup>1(</sup> <sup>_τ_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_∀τ_</sup> <sup>_∈T_</sup> <sup>_h ∩_</sup> <sup>_Di}._</sup> _Vh,_ 0( _Di_ ) = _{v_ ( _x_ ) _∈_ _H_ 0 <sup>1</sup> To construct an online basis function _φ_ on <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> on <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _∈_ _L_ <sup>2</sup> (Ω _j_ <sup>_i_</sup> _φ_ on <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _∈_ _L_ <sup>2</sup> (Ω _j_ <sup>_i_</sup> <sup>;</sup> <sup>_Vh,_</sup> <sup>0(</sup> <sup>_Di_</sup> <sup>)), we solve the following problem</sup> _a_ ( _ω_ ; _φ_ <sup>(</sup> on <sup>_i,j_</sup> <sup>)</sup> _j_ <sup>_i_</sup> <sup>;</sup> <sup>_Vh,_</sup> <sup>0(</sup> <sup>_Di_</sup> <sup>))</sup> <sup>_._</sup> (15) Ω <sup>_i_</sup> _j_ <sup>(</sup> on <sup>_i,j_</sup> <sup>)</sup> <sup>_, v_</sup> <sup>)</sup> <sup>_dω_</sup> <sup>=</sup> <sup>_Ri,j_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>;</sup> <sup>_v_</sup> <sup>)</sup> <sup>_,_</sup> _∀v_ _∈_ _L_ <sup>2</sup> (Ω _j_ <sup>_i_</sup> We assume a piecewise constant approximation in the space Ω <sup>_i_</sup> _j_ <sup>.</sup> <sup>The</sup> <sup>above</sup> <sup>problem</sup> <sup>(15)</sup> leads to _a_ ( _ωk_ ; _φ_ <sup>(</sup> on <sup>_i,j_</sup> <sup>)</sup> The basis function _φ_ on <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> <sup>(</sup> on <sup>_i,j_</sup> <sup>)(</sup> <sup>_k, ·_</sup> <sup>)</sup> <sup>_, v_</sup> <sup>) =</sup> <sup>_Ri,j_</sup> <sup>(</sup> <sup>_ωk_</sup> <sup>;</sup> <sup>_v_</sup> <sup>)</sup> <sup>_,_</sup> _∀v_ _∈_ _Vh,_ 0( _Di_ ) _._ (16) The basis function _φ_ on <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> is added to the space _V_ off. In general, we do not need to solve (16) for every _ωk_ in the set Ω <sup>_i_</sup> _j_ <sup>.</sup> <sup>We only need to choose those</sup> <sup>_ωk_</sup> <sup>such that the residual</sup> <sup>_Ri,j_</sup> <sup>(</sup> <sup>_ωk_</sup> <sup>;</sup> <sup>_v_</sup> <sup>)</sup> for every _ωk_ in the set Ω <sup>_i_</sup> _j_ <sup>.</sup> <sup>We only need to choose those</sup> <sup>_ωk_</sup> <sup>such that the residual</sup> <sup>_Ri,j_</sup> <sup>(</sup> <sup>_ωk_</sup> <sup>;</sup> <sup>_v_</sup> <sup>)</sup> are large and update its corresponding reduced basis space. #### 4.5 Discussions Before we end this section, we give some general discussions about our algorithms as follows. _•_ In our algorithm, we have used _k_ -mean algorithm for clustering and a multiscale approximation for computing distances for all pairs. In general, we can use other clustering algorithms [27] and more accurate approximation for distances. This can make the coarsening of the uncertainty space (clustering) to provide a better convergence and we plan to study this in our future work. _•_ In the paper, we do not analyze the accuracy of the method. We expect the accuracy depends on the realization-based multiscale approximations and the cluster sizes. The first one has been analyzed in our previous papers [10] and can be improved [9]. The error due to the cluster size will be in the form of the variance of the solution space, which we plan to study in our future works. _•_ The proposed methods can take an advantage of the adaptivity in spatial space and uncertainty space. In particular, the number of multiscale basis functions in each coarse-grid block can be controlled via some error indicators [10]. Adaptivity for clustering will involve changing the cluster sizes and adding more or less elements in each cluster. This can be expensive in general. 11 _•_ The online step is important to accelerate the convergence. By adding the online basis functions adaptively, we can decrease the error significantly at a cost of reformulating the coarse-grid problem. We believe the accuracy of the online method depends on the offline spaces as in [8]. ### 5 Numerical Results In this section, we perform some numerical experiments to test the performance and accuracy of the proposed cluster-based generalized multiscale finite element method for multiscale elliptic PDEs with random coefficients. As we will demonstrate in our paper, our new method could offer accurate numerical solutions with considerable computational savings over traditional stochastic methods. In the results below, we will use two types of error quantities to show the performance of our method. The first type of errors is <u>�</u> _D_ _|uh −_ _uH|_ <sup>2</sup> _dxdω,_ _e_ 2 _,_ Ω := ( _uh −_ _uH_ ) _dω|_ <sup>2</sup> _dx_ ~~�~~ <u>�</u> _D_ _|_ <u>�</u> Ω _e_ 1 _,_ Ω := ~~�~~ <u>�</u> Ω which measures the _L_ <sup>2</sup> norm of the error over all realizations. The second type of errors is _M_ _i_ =1 _uh_ ( _x, ωi_ ) _−_ _uH_ ( _x, ωi_ ) _dω|_ <sup>2</sup> _dx_ ~~�~~ <u>��</u> _D_ _|_ _e_ 1 _,S_ := ~~�~~ <u>�</u> _M_ �� _i_ =1 _D_ _|uh_ ( _x, ωi_ ) _−_ _uH_ ( _x, ωi_ ) _|_ <sup>2</sup> _dxdω,_ _e_ 2 _,S_ := which measures the _L_ <sup>2</sup> norm of the error over _M_ realizations, where _M_ = 10 in our numerical experiments. #### 5.1 Permeability with high-contrast inclusions and channels In this example, we consider a permeability containing high-contrast inclusions and channels (see Figure 3). More precisely, we consider the following 2D elliptic PDE with random coefficient, _−∇·_ ( _a_ ( _x, ω_ ) _∇u_ ( _x, ω_ )) = _f_ ( _x_ ) _,_ ( _x, ω_ ) _∈_ _D ×_ Ω (17) _u_ ( _x, ω_ ) = 0 _,_ ( _x, ω_ ) _∈_ _∂D ×_ Ω (18) To introduce randomness, we move these high-contrast inclusions at different directions and change their permeability values, while keeping the values at a high range. In Figure 3, we depict two realizations. In Table 5.1, we show numerical results for one of the clusters. In this table, we compare _L_ <sup>2</sup> norms of the mean and realizations between the fine-grid solution and the coarse-grid solution across the space and realizations. In particular, we show the results when choosing 12 all realizations and when selecting 10 random realizations. In our results, we increase the number of basis functions and add more basis functions in each coarse-grid block. The latter can be done adaptively. We observe that the error has been reduced to 8% when 5 basis functions are used, which is similar to the case of using 3 basis functions. We note that this is the error due to the clustering size and can not be reduced further unless we change the cluster size. In the next tables, we increase the number of cluster. In Table 2, we use 3 clusters and increase the number of basis functions per coarse element. We observe from this table that the error decreases as we increase the number of basis functions and, moreover, the error is smaller when using 3 clusters compared to the case of using 1 cluster. Next, in Table 3, we use 5 clusters and increase the number of basis functions per coarse element. In this case, we again observe an error decreasing as the number of basis is being increased and smaller error compared to the case with 3 clusters. In this table, we also show an error corresponding when using GMsFEM basis functions for each realization. The latter is used to identify the error due to GMsFEM coarse-grid discretization. We observe that this error is about 4% compared to 6%, which indicates that our approach requires a few clusters in this example to achieve a good accuracy. 10 20 30 40 50 60 70 80 90 x 104 2 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2 10 20 30 40 50 60 70 80 90 x 104 2 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2 100 0 20 40 60 80 100 100 0 20 40 60 80 100 Figure 3: Permeability coefficient _κ_ of two different realizations for case 1. Finally, we present a test case to show the performance of using online basis functions defined in Section 4.4. In Table 4, we show the numerical results. In our computations, we start the process by using 3 offline basis functions, and this step corresponds to zeroth online iteration. Then we show the errors for the next 3 online iterations, where one online basis is added for each iteration. We observe that the method is able to produce very accurate results after a couple of online iterations. In Figure 4, we present the convergence history the online iteration, namely, we show the logarithm of the error versus the number of degrees of freedoms. We observe clearly the exponential decay of the error from this figure. 13 <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,</u>_ <u>Ω</u> _<u>e</u>_ <u>2</u> _<u>,</u>_ <u>Ω</u> <u>1</u> <u>24.38%</u> <u>24.19%</u> <u>3</u> <u>14.57%</u> <u>14.22%</u> <u>5</u> <u>12.28%</u> <u>11.86%</u> <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,S</u>_ _<u>e</u>_ <u>2</u> _<u>,S</u>_ <u>1</u> <u>21.76%</u> <u>21.59%</u> <u>3</u> <u>10.89%</u> <u>10.57%</u> <u>5</u> <u>8.73%</u> <u>8.39%</u> Table 1: Errors for the case 1 using #cluster = 1. <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,</u>_ <u>Ω</u> _<u>e</u>_ <u>2</u> _<u>,</u>_ <u>Ω</u> <u>1</u> <u>23.96%</u> <u>23.76%</u> <u>3</u> <u>12.50%</u> <u>12.06%</u> <u>5</u> <u>10.25%</u> <u>9.75%</u> <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,S</u>_ _<u>e</u>_ <u>2</u> _<u>,S</u>_ <u>1</u> <u>21.76%</u> <u>21.59%</u> <u>3</u> <u>9.52%</u> <u>9.15%</u> <u>5</u> <u>7.37%</u> <u>7.01%</u> Table 2: Errors for the case 1 using #cluster = 3. <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,</u>_ <u>Ω</u> _<u>e</u>_ <u>2</u> _<u>,</u>_ <u>Ω</u> <u>1</u> <u>23.90%</u> <u>23.70%</u> <u>3</u> <u>12.26%</u> <u>11.86%</u> <u>5</u> <u>8.82%</u> <u>8.35%</u> <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,S</u>_ _<u>e</u>_ <u>2</u> _<u>,S</u>_ <u>1</u> <u>21.76%</u> <u>21.59%</u> <u>3</u> <u>9.59%(5.64%)</u> <u>9.24%(5.58%)</u> <u>5</u> <u>6.31%(3.92%)</u> <u>6.10%(3.88%)</u> Table 3: Errors for the case 1 using #cluster = 5. The error in the parenthesis shows the error using GMsFEM basis function using the specific realization. #### 5.2 Permeability with randomness and spatial heterogeneities In this example, we consider the same 2D elliptic PDE (17) with homogeneous boundary condition and a random permeability field _a_ ( _x, ω_ ) = _e_ <sup>0</sup> <sup>_._</sup> <sup>1+</sup> 2+sin(9 <sup><u>2+sin(7</u></sup> _πx_ <sup>_<u>πx</u>_</sup> 1) sin(7 <sup><u>1) sin(8</u></sup> _πx_ <sup>_<u>πx</u>_</sup> 2) <sup><u>2)</u></sup> <sup>_ξ_</sup> <sup>1(</sup> <sup>_ω_</sup> <sup>)+</sup> <sup><u>2+sin(13</u></sup> 2+sin(11 <sup>_<u>πx</u>_</sup> _πx_ <sup><u>1) sin(11</u></sup> 1) sin(13 <sup>_<u>πx</u>_</sup> _πx_ <sup><u>2)</u></sup> 2) <sup>_ξ_</sup> <sup>2(</sup> <sup>_ω_</sup> <sup>)+</sup> <sup><u>2+sin(12</u></sup> 2+sin(15 <sup>_<u>πx</u>_</sup> _πx_ <sup><u>1) sin(14</u></sup> 1) sin(15 <sup>_<u>πx</u>_</sup> _πx_ <sup><u>2)</u></sup> 2) <sup>_ξ_</sup> <sup>3(</sup> <sup>_ω_</sup> <sup>)</sup> _,_ (19) 14 <u>#</u> <u>online</u> <u>iteration</u> _<u>e</u>_ <u>1</u> _<u>,S</u>_ _<u>e</u>_ <u>2</u> _<u>,S</u>_ <u>0</u> <u>11.53%</u> <u>11.31%</u> <u>1</u> <u>3.08%</u> <u>2.55%</u> <u>2</u> <u>2.52%</u> <u>1.96%</u> <u>3</u> <u>1.32%</u> <u>0.89%</u> <u>#</u> <u>online</u> <u>iteration</u> _<u>e</u>_ <u>1</u> _<u>,S</u>_ _<u>e</u>_ <u>2</u> _<u>,S</u>_ <u>0</u> <u>8.40%</u> <u>8.20%</u> <u>1</u> <u>2.55%</u> <u>1.94%</u> <u>2</u> <u>2.11%</u> <u>1.48%</u> <u>3</u> <u>0.93%</u> <u>0.48%</u> Table 4: Online results for using 3 offline basis functions with different numbers of clusters. Top: results for 1 cluster. Bottom: results for 5 clusters. −2 −4 −6 −8 −10 −12 5 clusters <u>1 cluster</u> −14 200 250 300 350 400 450 500 Degrees of freedom Figure 4: Error decay for online basis functions using 3 offline basis functions with different numbers of clusters. where we have 3 random variables _ξi_ ( _ω_ ) follow the standard normal distribution _N_ (0 _,_ 1) that represent the randomness and spatial heterogeneities. We depict two realizations of this permeability field in Figure 5. As in our previous example, We shall vary the number of clusters and the number of basis functions. In Tables 5 and 6, we consider two cluster sizes with 6 and 10 clusters. In each case, we vary the number of basis functions in each coarse-grid block. We observe from these numerical results that the method based on 6 clusters has provided an accurate result that is very comparable to that obtained from using 10 clusters. In Table 6, we present the numerical results when using the multiscale basis functions for each realization (see the numbers in the parentheses). These results show that 10 clusters 15 provide almost the same results compared when using multiscale basis functions for each realization and this, it is sufficient to have only 10 clusters for our multiscale simulations. Remark 5.1. _We_ _should_ _point_ _out_ _that_ _the_ _coefficient_ _a_ ( _x, ω_ ) _in_ (19) _is_ _a_ _highly_ _nonlinear_ _functional_ _of_ _ξi_ ( _ω_ ) _and_ _does_ _not_ _have_ _the_ _affine_ _parameter_ _dependence_ _property._ _The_ _cluster-_ _ing_ _algorithm_ _proposed_ _in_ _this_ _paper_ _helps_ _us_ _automatically_ _explore_ _the_ _heterogeneities_ _of_ _the_ _solution_ _space_ _and_ _constructs_ _the_ _reduced_ _basis_ _functions._ _Thus,_ _our_ _method_ _can_ _efficiently_ _solve_ _this_ _type_ _of_ _challenging_ _problem._ 10 20 30 40 50 60 70 80 90 100 10 20 30 40 50 60 70 80 90 200 180 160 140 120 100 80 60 40 20 40 60 80 100 400 350 300 250 200 150 100 50 20 100 20 40 60 80 100 Figure 5: Permeability coefficient _κ_ of two different realizations for Eq. (19). <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,</u>_ <u>Ω</u> _<u>e</u>_ <u>2</u> _<u>,</u>_ <u>Ω</u> <u>1</u> <u>17.33%</u> <u>17.26%</u> <u>3</u> <u>11.24%</u> <u>11.14%</u> <u>5</u> <u>8.70%</u> <u>8.59%</u> <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,S</u>_ _<u>e</u>_ <u>2</u> _<u>,S</u>_ <u>1</u> <u>16.91%</u> <u>16.80%</u> <u>3</u> <u>10.64%</u> <u>10.54%</u> <u>5</u> <u>8.20%</u> <u>8.10%</u> Table 5: Errors for the case 2 using #cluster = 6. 16 <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,</u>_ <u>Ω</u> _<u>e</u>_ <u>2</u> _<u>,</u>_ <u>Ω</u> <u>1</u> <u>17.26%</u> <u>17.21%</u> <u>3</u> <u>10.11%</u> <u>10.02%</u> <u>5</u> <u>8.01%</u> <u>7.92%</u> <u>number</u> <u>of</u> <u>basis</u> _<u>e</u>_ <u>1</u> _<u>,S</u>_ _<u>e</u>_ <u>2</u> _<u>,S</u>_ <u>1</u> <u>16.96%</u> <u>16.86%</u> <u>3</u> <u>9.29%</u> <u>9.23%</u> <u>5</u> <u>7.83%(7.18%)</u> <u>7.80%(7.13%)</u> Table 6: Errors for the case 2 using #cluster = 10. ### 6 Concluding remarks In the paper, we propose a generalized multiscale approach for stochastic problems. Though construction of multiscale basis functions on a coarse spatial grid is well studied, there has not been much research on coarsening uncertainty space for multiscale problems. The coarsening of the uncertainty space needs adaptivity to avoid a large dimensional coarse spaces. Because the coupling over the uncertainty space, the adaptivity simply requires grouping relevant realizations. We start with an arbitrary spatial coarse grid and perform an adaptivity in the uncertainty space by selecting realizations. The latter requires some carefully selected distances as simple _L_ <sup>2</sup> distance in the coefficients is an appropriate measure for multiscale problems. We then introduce an appropriate distance and present an approximation for the distance, which is used for clustering. Once the clustering is performed, we construct multiscale basis functions for each cluster and perform multiscale simulations. We discuss some further extensions. One of them includes the online procedures, which can be used to accelerate the convergence. Numerical results are presented to demonstrate the accuracy and efficiency of the proposed method for several multiscale stochastic problems without scale separation. Most importantly, we find that the cluster-based method allows us to explore the heterogeneities of the solution space and to solve nonlinear random elliptic PDEs. ### Acknowledgements The research of E. Chung is supported by Hong Kong RGC General Research Fund (Project 14317516). Y. Efendiev would like to thank the partial support from NSF 1620318, the U.S. Department of Energy Office of Science, Office of Advanced Scientific Computing Research, Applied Mathematics program under Award Number DE-FG02-13ER26165 and National Priorities Research Program grant NPRP grant 7-1482-1278 from the Qatar National Research Fund. The research of Z. Zhang is supported by the Hong Kong RGC grants 17 (27300616, 17300817), National Natural Science Foundation of China (Project 11601457), and Seed Funding Programme for Basic Research (HKU). ### References [1] I. Babuska, R. Tempone, and G. Zouraris. Galerkin finite element approximations of stochastic elliptic partial differential equations. _SIAM_ _J._ _Numer._ _Anal._, 42:800–825, 2004. [2] R. E. Caflisch. Monte Carlo and quasi-Monte Carlo methods. _Acta_ _Numerica_, 7:1–49, 1998. [3] VM Calo, Y Efendiev, J Galvis, and G Li. Randomized oversampling for generalized multiscale finite element methods. _http://arxiv.org/pdf/1409.7114.pdf_ . to appear in SIAM MMS. [4] M. Cheng, T. Y. Hou, M. Yan, and Z. Zhang. A data-driven stochastic method for elliptic PDEs with random coefficients. _SIAM_ _J._ _UQ_, 1:452–493, 2013. [5] M. Cheng, T. Y. Hou, and Z. Zhang. A dynamically bi-orthogonal method for stochastic partial differential equations I: derivation and algorithms. _J._ _Comput._ _Phys._, 242:843– 868, 2013. [6] M. Cheng, T. Y. Hou, and Z. Zhang. A dynamically bi-orthogonal method for stochas tic partial differential equations II: adaptivity and generalizations. _J._ _Comput._ _Phys._, 242:753–776, 2013. [7] Eric Chung, Yalchin Efendiev, and Thomas Y Hou. Adaptive multiscale model reduction with generalized multiscale finite element methods. _Journal_ _of_ _Computational_ _Physics_, 320:69–95, 2016. [8] Eric T Chung, Yalchin Efendiev, and Wing Tat Leung. Residual-driven online general ized multiscale finite element methods. _Journal of Computational Physics_, 302:176–190, 2015. [9] Eric T Chung, Yalchin Efendiev, and Wing Tat Leung. Constraint energy minimizing generalized multiscale finite element method. _arXiv_ _preprint_ _arXiv:1704.03193_, 2017. [10] ET Chung, Y Efendiev, and G Li. An adaptive GMsFEM for high-contrast flow prob lems. _Journal_ _of_ _Computational_ _Physics_, 273:54–76, 2014. [11] Y. Efendiev and J. Galvis. A domain decomposition preconditioner for multiscale high contrast problems. In Y. Huang, R. Kornhuber, O. Widlund, and J. Xu, editors, _Domain_ 18 _Decomposition_ _Methods_ _in_ _Science_ _and_ _Engineering_ _XIX_, volume 78 of _Lect._ _Notes_ _in_ _Comput._ _Science_ _and_ _Eng._, pages 189–196. Springer-Verlag, 2011. [12] Y. Efendiev, J. Galvis, and T. Hou. Generalized multiscale finite element methods. _Journal_ _of_ _Computational_ _Physics_, 251:116–135, 2013. [13] Y. Efendiev, J. Galvis, and T. Y. Hou. Generalized multiscale finite element methods. _J._ _Comput._ _Phys._, 251:116–135, 2013. [14] Y. Efendiev, T. Hou, and X.H. Wu. Convergence of a nonconforming multiscale finite element method. _SIAM_ _J._ _Numer._ _Anal._, 37:888–910, 2000. [15] Y. R. Efendiev, T. Y. Hou, and X. Wu. Convergence of a nonconforming multiscale finite element method. _SIAM_ _Journal_ _on_ _Numerical_ _Analysis_, 37(3):888–910, 2000. [16] R. G. Ghanem and P. D. Spanos. _Stochastic_ _Finite_ _Elements:_ _a_ _Spectral_ _Approach._ Springer-Verlag, New York, 1991. [17] M. B. Giles. Multilevel Monte Carlo path simulation. _Operations_ _Research_, 56:607–617, 2008. [18] P. Glasserman. _Monte_ _Carlo_ _methods_ _in_ _financial_ _engineering_, volume 53. Springer Science, 2003. [19] N. Halko, P. Martinsson, and J. Tropp. Finding structure with randomness: proba bilistic algorithms for constructing approximate matrix decompositions. _SIAM_ _review_, 53:217–288, 2011. [20] J.A. Hartigan and M. A. Wong. Algorithm AS 136: A k-means clustering algorithm. _Journal_ _of_ _the_ _Royal_ _Statistical_ _Society._ _Series_ _C_ _(Applied_ _Statistics)_, 28(1):100–108, 1979. [21] T. Hou and X.H. Wu. A multiscale finite element method for elliptic problems in composite materials and porous media. _J._ _Comput._ _Phys._, 134:169–189, 1997. [22] T. Y. Hou, W. Luo, B. Rozovskii, and H. M. Zhou. Wiener chaos expansions and numerical solutions of randomly forced equations of fluid mechanics. _J._ _Comput._ _Phys._, 216:687–706, 2006. [23] K. Karhunen. Uber lineare methoden in der Wahrscheinlichkeitsrechnung. _Ann._ _Acad._ _Sci._ _Fennicae._ _Ser._ _A._ _I._ _Math.-Phys._, 37:1–79, 1947. [24] E. Liberty, F. Woolfe, P.G. Martinsson, V. Rokhlin, and M. Tygert. Randomized algorithms for the low-rank approximation of matrices. _Proceedings_ _of_ _the_ _National_ _Academy_ _of_ _Sciences_, 104(51):20167–20172, 2007. 19 [25] M. Lo`eve. _Probability_ _theory._ _Vol._ _II,_ _4th_ _ed._ _GTM._ _46._ Springer-Verlag, ISBN 0-387 90262-7, 1978. [26] O. Maıtre, O. M. Knio, H. Najm, and R. G. Ghanem. A stochastic projection method for fluid flow: I. basic formulation. _J._ _Comput._ _Phys._, 173:481–511, 2001. [27] Christopher D Manning, Prabhakar Raghavan, Hinrich Sch¨utze, et al. _Introduction_ _to_ _information_ _retrieval_, volume 1. Cambridge university press Cambridge, 2008. [28] H. G. Matthies and A. Keese. Galerkin methods for linear and nonlinear elliptic stochas tic partial differential equations. _Comput._ _Method_ _Appl._ _Mech._ _Eng._, 194:1295–1331, 2005. [29] H. N. Najm. Uncertainty quantification and polynomial chaos techniques in computa tional fluid dynamics. _Annual_ _Review_ _of_ _Fluid_ _Mechanics_, 41:35–52, 2009. [30] H. Niederreiter. _Quasi-Monte_ _Carlo_ _Methods_ . Wiley Online Library., 2010. [31] Anthony Nouy. A generalized spectral decomposition technique to solve a class of linear stochastic partial differential equations. _Computer_ _Methods_ _in_ _Applied_ _Mechanics_ _and_ _Engineering_, 196(45):4521–4537, 2007. [32] Anthony Nouy. Proper generalized decompositions and separated representations for the numerical solution of high dimensional stochastic problems. _Archives_ _of_ _Computational_ _Methods_ _in_ _Engineering_, 17(4):403–434, 2010. [33] T. Sapsis and P. Lermusiaux. Dynamically orthogonal field equations for continuous stochastic dynamical systems. _Physica_ _D:_ _Nonlinear_ _Phenomena_, 238:2347–2360, 2009. [34] J. Wan and N. Zabaras. A probabilistic graphical model approach to stochastic mul tiscale partial differential equations. _Journal_ _of_ _Computational_ _Physics_, 250:477–510, 2013. [35] X. L. Wan and G. Karniadakis. Multi-element generalized polynomial chaos for arbitrary probability measures. _SIAM_ _J._ _Sci._ _Comp._, 28:901–928, 2006. [36] D. Xiu. Fast numerical methods for stochastic computations: a review. _Commun._ _Comput._ _Phys._, 5:242–272, 2009. [37] D. Xiu and G. Karniadakis. Modeling uncertainty in flow simulations via generalized polynomial chaos. _J._ _Comput._ _Phys._, 187:137–167, 2003. [38] Z. Zhang, M. Ci, and T. Y. Hou. A multiscale data-driven stochastic method for elliptic PDEs with random coefficients. _SIAM_ _Multiscale_ _Model._ _Simul._, 13:173–204, 2015. 20

섹션 본문 70문단 · 30,147자

(제목 없음)

1We propose a generalized multiscale finite element method (GMsFEM) based on clustering algorithm to study the elliptic PDEs with random coefficients in the multiquery setting. Our method consists of offline and online stages. In the offline stage, we construct a small number of reduced basis functions within each coarse grid block, which can then be used to approximate the multiscale finite element basis functions. In addition, we coarsen the corresponding random space through a clustering algorithm. In the online stage, we can obtain the multiscale finite element basis very efficiently on a coarse grid by using the pre-computed multiscale basis. The new GMsFEM can be applied to multiscale SPDE starting with a relatively coarse grid, without requiring the coarsest grid to resolve the smallest-scale of the solution. The new method offers considerable savings in solving multiscale SPDEs. Numerical results are presented to demonstrate the accuracy and efficiency of the proposed method for several multiscale stochastic problems without scale separation.

Introduction

2Many multiscale problems have stochastic nature due to missing information at small scales. For example, in porous media applications, the media properties are unknown in many locations and interpolated from some indirect and direct measurements. As a result, engineers can typically produce many realizations of the permeability field. In some cases, the stochastic description of the permeability is parameterized; however, in many cases, one deals with very large number of permeability realizations. The objective is to perform many simulations and understand the solution as a stochastic quantity. In this paper, our objective is to propose a fast method based on coarsening of both spatial and uncertainty space (in terms of realizations) for computing the solution space.

3The stochastic description of the permeability field contains multiple scales, which do not have apparent scale separation. Moreover, the uncertainties at different scales can be tightly coupled and one needs to upscale their interaction together. For this reason, stochastic upscaled models are often used. Stochastic upscaled models use coarse grids in the physical space and propose an ensemble average of the fine-grid permeability. As a result, one deals with stochastic flow equations on coarse grids. Some more commonly used approaches include upscaling a few realizations and making predictions based on these simulations.

4Many approaches have been developed for stochastic problems. Most famous approaches include Monte Carlo methods and their variations [18,2,30,17]. In some other approaches the uncertainties are represented using polynomials of random fields or collocation points in uncertainty space. Typical methods are the stochastic finite element method [2], Wiener chaos expansion or generalized polynomial chaos (gPC) method and stochastic collocation method, see [16,26,37,1,28,22,35,36,29,33] and references therein. These approaches do not take into account the interaction between the spatial scales and uncertainties. There are some recent attempts that take into account of the space and uncertainty interaction [31,32]. In [34], Zabaras et al proposed a probabilistic graphical model approach to efficiently perform uncertainty quantification in the presence of both stochastic input and multiple physical scales. Hou et al explored the low-dimensional structures that hidden behind the high-dimensional SPDE problems and have made some progress in solving high-dimensional and/or multiscale SPDEs [5,6,4,38]. We should point out that it is still extremely challenging to solve stochastic multiscale problems, due to their complicated natures, namely, high-dimensionality of the solution spaces.

5In our approach, we consider the joint coarsening of both spatial and uncertainty space motivated by many physical applications, where uncertainties and spatial scales are tightly coupled. For representing the spatial scales, we use the generalized multiscale finite element method (GMsFEM) [13,7,12,11,21,14]. The main idea of this approach is to use the snapshots and local spectral decomposition for computing few basis functions. In this paper, these ideas are used for a few selected realizations to compute basis functions that can be used to represent multiple realizations. However, it is obvious that the use of many realizations will introduce many spatial patterns and can require too many multiscale basis functions. This can lead to very expensive computations. For this reason, we use coarsening algorithm in the uncertainty space that can allow using a few multiscale basis functions and possibly basis functions that can be written as a product of spatial and stochastic functions. In general, if the uncertainty space is partitioned uniformly, we expect a larger dimensional coarse spaces.

6To coarsen the uncertainty space, we first define a distance function in each coarse block. The appropriate distance functions in clustering must include the distance between the solutions as this is a correct measure. However, one usually has many local solutions. In this case, we use local solutions with randomized boundary conditions motivated by [3]. The main idea of our motivation is that the local problems with randomized boundary conditions can represent the main modes of local problems that are computed using all boundary conditions. Because there are many realizations, we compute these local solutions for selected realizations and then compute their Karhunen-Loève expansion (KLE) [23,25] to approximate the solutions at all other realizations. Using these approximate solutions, we compute the distance between two realizations. Using this distance and k-mean clustering algorithms [20], we cluster the uncertainty space and define the corresponding coarse blocks.

7To construct multiscale basis functions in each cluster and a coarse block, we select a realization or an average realization. The latter is used within GMsFEM to construct multiscale basis functions. The basis function is constructed by computing snapshot vectors and performing local spectral decomposition. In this construction, we assume that the permeability fields within each cluster is almost uniform in the appropriate metric as defined for clustering. One can also try to construct product basis functions. To do so, we will need to construct stochastic basis functions, which represent the variations of the solution in the uncertainty space. Taking the product of stochastic basis functions and spatial multiscale basis functions for some average realizations, we can compute multiscale basis functions, which represent both spatial information and uncertainties.

8For global coupling of multiscale basis functions, we use continuous Galerkin formulation, though other discretization approaches can be used (e.g., Petrov-Galerkin, Discontinuous Galerkin methods). We consider two global couplings. The first one is a realization based approach, where we solve the global problem for each realization. The computations for each realization can be performed in parallel. Another approach is to use Galerkin in space and uncertainty space. In this approach, the variational formulation takes into account the average across the realizations. The second approach is cheaper for ensemble level calculations because it involves fewer global computations.

9The offline space constructed in this paper can be enhanced using online basis functions. The online basis functions are adaptively constructed using the residual information to improve the convergence. In [8], this algorithm is discussed for deterministic problems. The extension of this approach to stochastic problems will be discussed in this paper. The online basis functions are constructed for spatial and stochastic spaces by considering the joint residual. The construction can be done adaptively for selected coarse blocks.

10The rest of the paper is organized as follows. The formulations of the stochastic multiscale model problem is presented in section 2. In section 3, we introduce the coarse grid discretization of the spacial domain and the random space. We also propose the basic clustering algorithm for coarsening the tensor space. In section 4, we give a general introduction of the generalized multiscale finite element method (GMsFEM) based on clustering. Both the offline and online computation will be discussed. In addition, issues regarding the practical implementation and computational complexity analysis will be covered. In Section 5, we present numerical results to demonstrate the efficiency of our method. Concluding remarks are made in Section 6.

Preliminaries

11In this section, we present the problem setting and the fine grid discretization. Let D be a bounded domain in R d (d = 2, 3) and Ω is a parameter space in R m , where the dimension m can be large in practice. We consider the following parameter-dependent second order linear elliptic equation,

12where κ(x, ω) is highly heterogeneous with respect to the physical space D and f (x, ω) ∈ L 2 (D), ∀ω ∈ Ω. Even though we write the problem as parametric, our method will only use realizations of κ(x, ω). This is very important since engineers can only obtain realizations of the permeability field in practice. Thus, we assume that Ω is a discrete set of realizations ω i 's. The weak formulation of the problem (1) is to find u(x, ω) ∈ L 2 (Ω; H 1 (D)) such that Ω a(ω; u, v) dω = Ω l(ω; v) dω, ∀v ∈ L 2 (Ω; H 1 (D)),

13where the bilinear form a and the linear functional l are defined as,

14We remark that the measure dω in (2) is assumed to be the uniform measure as in many cases we only have realizations of the permeability field κ(x, ω) (e.g., the SPE10 model in reservoir simulation). In the space L 2 (Ω; H 1 (D)), we define the norm of the tensor space

Fine grid discretization

15We introduce the fine grid discretization for solving the multiscale problem (2). Let T h be a fine-grid partition of the domain D with mesh size h and Ω d be the fine sampling subset of Ω which can approximately represent the whole space Ω, namely Ω d = {ω 1 , ω 2 , . . . , ω M } ⊂ Ω, and the corresponding weights are

16If the permeability field is given as κ(x, ω), then we can sample the space of Ω to obtain realizations. There are many methods to sample the space Ω, such as Monte Carlo sampling, quasi Monte Carlo sampling [2], and Latin hypercube sampling. The measure defined on Ω d is a weighted discrete measure which accurately approximates the measure on the Ω, that is,

17where V h is the fine-grid finite element space defined by

18where Q 1 (τ ) is a linear function on the element τ . We remark that the fine-grid partition T h of the domain D allows us to resolve all heterogeneities of κ(x, ω) in D. In general, solving Eq.(4) is expensive as the dimension of the fine-grid finite element space V h is large and one needs to solve the multiscale problem for many realizations of κ(x, ω).

19In the following sections, we shall design an effective approach that allows one to solve (4) approximately and accurately with much lower computational costs. We shall build a lower dimensional space V H using the idea of GMsFEM. In order to build the most efficient representation of the solution, we shall not separate the physical variable x and the random variable ω in our framework. That is, we shall not use a tensor product approach. Indeed, we shall couple the influence in terms of both x and ω simultaneously in our construction.

Coarse grids

20In this section, we shall introduce the coarse grid discretization of the spacial domain D and the parameter space Ω d . One obvious choice of the partition of the product space D×Ω d is to construct the partitions of D and Ω d separately and then use the tensor products. However, this approach may not be good in practice. We shall use a more adaptive approach, namely, the partition of the parameter space depends on the partition of the spatial domain D. In particular, We shall first define a partition for the domain D. Then for each of the element in the partition of D, We shall construct a corresponding partition for the set Ω d . Our numerical experiments demonstrate that this new approach is very effective in solving the heterogenous multiscale problems.

Coarse spatial grid

21We first present the construction of the coarse grid and related notations for the spatial domain D. We use T H to denote a coarse grid partition of the domain D and the elements of T H are called coarse elements, where H is the mesh size of the coarse element. To simplify the discussions, we shall assume that the fine grid partition T h is a refinement of the coarse grid partition T H . Let x i , 1 ≤ i ≤ N , be the set of interior nodes in the coarse grid, and N is the number of the interior coarse grid nodes. For each coarse node x i , the coarse neighborhood D i is defined by

22that is, the union of all coarse elements K j ∈ T H having the vertex x i . We present an illustration of the course grid notations in Figure 1. Figure 1: Illustration of the coarse grid and related notations.

Coarsening Ω d via clustering algorithm.

23Next, we discuss the coarsening of Ω d via clustering algorithm. The clustering algorithm will be performed for each neighborhood of D i in general. In simplified cases, one can assume the same clustering for all D i 's; however, we emphasize that in general cases, one needs to coarsen Ω d for each coarse spatial grid block D i separately.

24To perform the clustering, we shall use a distance function d i (·, ·) defined on Ω d for the coarse neighborhood D i . The distance function d i (·, ·) is defined in the solution space instead of the sample space. More precisely, for any two elements ω n , ω m ∈ Ω d , we define the distance d i (ω n , ω m ) be the distance of the two functions φ n , φ m in D i , where φ n , φ m are solutions of −∇ · (κ(x, ω)∇φ(x, ω)) = 0 with ω = ω n , ω m in D i respectively and with an appropriate boundary condition on ∂D i . However, solving the multiscale problem to get φ n and φ m for every pair of elements ω n and ω m in Ω d is expensive. Therefore, we present a simplified way to reduce the computational cost in our clustering algorithm.

25For each coarse neighborhood D i , we first construct a snapshot space for a subset in Ω d . We denote this subset of Ω d by Ω subset d . Our objective is to find a simplified distance functions in Ω d that can be used for clustering. The main idea is to use randomized harmonic extensions and KL expansion. The clustering algorithm is illustrated in Figure 2. We consider the i-th coarse neighborhood D i and a fixed subset Ω subset

26i . More details about the oversampling technique for multiscale finite element method can be found in [15] and references therein.

27subject to the boundary conditions ψ i j (x)| ∂D + i = R j , j = 1, ..., k i , where R j is a discrete random function defined with respect to the fine grid boundary point on ∂D + i and k i are the number of local problem that one needs to solve in coarse neighborhood D i .

28How to choose the appropriate number of snapshot functions ψ i j (x) number k i will effect the performance of our method. Our goal is to construct a few effective boundary conditions so that the snapshot functions ψ i j (x) can be used to approximate the solution space. We find that this is closely related to the range-finding problem. In discrete level, we can formulate the range-finding problem as: for a matrix T , we want to find a matrix Q with independent columns such that its column space accurately approximates the column space T , i.e.,

29where is a small parameter and || · || is a matrix norm.

30Randomized range finding algorithm is very efficient to construct the matrix Q and to capture the column space of T . See [19,24] for more details about the randomized algorithms for finding low-dimensional structures. To justify the approximation error ||T − QQ T T ||, we denote B = (I − QQ T )T and draw k random vectors ω j , j = 1, ..., k. We use T to act on these ω j , i = 1, ..., k, and compute the residual after projecting the images T ω j to the column space of Q, namely ||(I − QQ T )T ω j ||. If all the k number of residuals are smaller than α π 2 , then the condition (6) holds except with a small probability α −k , where α > 1. The good thing about the randomized range-finding algorithms and the error estimation (6) is that they do not require access to each entry of the matrix T , but only require the matrix-vector multiplication. For our problem, this matrix-vector multiplication corresponding to solve (5) with certain random boundary conditions. Therefore, we employ the randomized range finding philosophy and the error estimation in our problem to determine an optimal number k i so that we can reduce the computational cost.

31In the next step, we perform a KL expansion of the snapshot functions {ψ i j (x, ω)} and obtain the dominant modes in the solution space

32whereψ

33We also note thatψ i j (x) satisfies the same boundary condition as ψ i j (x). Among the set {φ i l (x), l = 1, 2, ...} of the KL expansion of the snapshot functions in (7), we shall restrict them in the coarse neighborhood D i and then take the first L i dominant parts and form the reduced spatial snapshot space V i snap . The low-dimensional reduced space

34The key idea of our new algorithm is to use this low-dimensional space to solve the local problem for each realization in Ω d . More precisely, for each ω ∈ Ω d , we find a functioñ

35and a(ω,ψ i j , v) = l(ω, v), ∀v ∈ V i snap . We remark that solving the above problems is very efficient due to the small dimension of the solution space V i snap , which enables us to construct a distance function in Ω d . To be specific, we use local solutions to define a distance function on Ω d , denoted as d i (·, ·) :

36We then use the k-means clustering algorithm [20] with the distance function defined in (8) to cluster the sampling space Ω d into J i clusters Ω i j , j = 1, ..., J i , such that, Ω d = ∪ 1≤j≤J i Ω i j . Remark 3.1. We should point out that the essential idea is that the clustering of the sampling space Ω d = ∪ 1≤j≤J i Ω i j depends on the spatial location D i . This enables us to efficiently explore the heterogeneities of κ(x, ω) as well as the solution space.

The construction of offline space

37In this section, we describe the construction of the local offline basis functions. Let D i , i = 1, ..., N and Ω i j , j = 1, ..., J i be a given coarse neighborhood and a cluster of Ω d , respectively. In the constructing process, we first construct a snapshot space V (i,j) snap for D i ×Ω i j . In the notation V (i,j) snap , the indices i are corresponding to coarse neighborhood D i and the indices j are induced by i when we use the clustering algorithm.

38The construction of the snapshot space V (i,j) snap consists of solving the local problems for several random boundary conditions. To construct the offline space V (i,j) off , we need to solve a local spectral problem in the V (i,j) snap for the dimension reduction. We shall discuss the full description of the construction in the following subsections.

Construct the snapshot space

39The definition of the snapshot space V (i,j) snap is based on a(ω)-harmonic extensions. Let B h (D i ) be the set of all fine-grid nodes lying on the boundary of the coarse neighborhood of ∂D i . For each fine grid node x i , the discrete delta function δ h k (x) is defined by

40Next, we define the k-th snapshot basis function ψ

41Here, we take the mean of κ(x, ω) within a cluster for computing offline spaces. In general, one can use a typical realization or a few realizations in a similar fashion. The main idea is that within each cluster, we assume that the realizations are similar in an appropriate metric (i.e., the distance between randomized snapshots).

42snap is equal to the number of fine grid nodes lying on ∂D i . We can use the randomized snapshots with oversampling technique to reduce the dimension of V (i,j) snap and therefore reduce the computational cost of solving these snapshot basis functions.

Construct the offline space

43To obtain the offline space V (i,j) off , we shall perform a spectral decomposition in the snapshot space. The spectral decomposition is defined as to find (φ

44where {χ i (x)} is the partition of unity functions for the spatial domain D with respect to the partition {D i } andκ (i,j) (x) is defined the same as in (9). We assume the eigenvalues are arranged in an ascending order. Then, the offline basis functions for the coarse neighborhood

Global formulation

45The offline space V off can be used to solve the multiscale stochastic problem (1) for any input parameter ω and any right hand side function f (x, ω). In particular, the stochastic GMsFEM for the multiscale stochastic problem (1) is to find u ms ∈ V off such that

46By solving (13) using Galerkin method, we can obtain the numerical approximation solution u ms to the multiscale stochastic solution.

Online basis functions

47The numerical solution obtained in the offline space has already produced a good approximation to the multiscale stochastic solution. In some cases, however, we need to improve the accuracy of the solution by using some online basis functions, which are constructed in the online stage.

48To demonstrate the main idea of the online update, we consider a coarse neighborhood D i and the set Ω i j for example. We define the following residual function

49where

50To construct an online basis function φ (i,j) on ∈ L 2 (Ω i j ; V h,0 (D i )), we solve the following problem

51We assume a piecewise constant approximation in the space Ω i j . The above problem (15) leads to

52The basis function φ

53on is added to the space V off . In general, we do not need to solve (16) for every ω k in the set Ω i j . We only need to choose those ω k such that the residual R i,j (ω k ; v) are large and update its corresponding reduced basis space.

Discussions

54Before we end this section, we give some general discussions about our algorithms as follows.

55• In our algorithm, we have used k-mean algorithm for clustering and a multiscale approximation for computing distances for all pairs. In general, we can use other clustering algorithms [27] and more accurate approximation for distances. This can make the coarsening of the uncertainty space (clustering) to provide a better convergence and we plan to study this in our future work.

56• In the paper, we do not analyze the accuracy of the method. We expect the accuracy depends on the realization-based multiscale approximations and the cluster sizes. The first one has been analyzed in our previous papers [10] and can be improved [9]. The error due to the cluster size will be in the form of the variance of the solution space, which we plan to study in our future works.

57• The proposed methods can take an advantage of the adaptivity in spatial space and uncertainty space. In particular, the number of multiscale basis functions in each coarse-grid block can be controlled via some error indicators [10]. Adaptivity for clustering will involve changing the cluster sizes and adding more or less elements in each cluster. This can be expensive in general.

58• The online step is important to accelerate the convergence. By adding the online basis functions adaptively, we can decrease the error significantly at a cost of reformulating the coarse-grid problem. We believe the accuracy of the online method depends on the offline spaces as in [8].

Numerical Results

59In this section, we perform some numerical experiments to test the performance and accuracy of the proposed cluster-based generalized multiscale finite element method for multiscale elliptic PDEs with random coefficients. As we will demonstrate in our paper, our new method could offer accurate numerical solutions with considerable computational savings over traditional stochastic methods. In the results below, we will use two types of error quantities to show the performance of our method. The first type of errors is

60which measures the L 2 norm of the error over all realizations. The second type of errors is

61which measures the L 2 norm of the error over M realizations, where M = 10 in our numerical experiments.

Permeability with high-contrast inclusions and channels

62In this example, we consider a permeability containing high-contrast inclusions and channels (see Figure 3). More precisely, we consider the following 2D elliptic PDE with random coefficient,

63To introduce randomness, we move these high-contrast inclusions at different directions and change their permeability values, while keeping the values at a high range. In Figure 3, we depict two realizations. In Table 5.1, we show numerical results for one of the clusters. In this table, we compare L 2 norms of the mean and realizations between the fine-grid solution and the coarse-grid solution across the space and realizations. In particular, we show the results when choosing all realizations and when selecting 10 random realizations. In our results, we increase the number of basis functions and add more basis functions in each coarse-grid block. The latter can be done adaptively. We observe that the error has been reduced to 8% when 5 basis functions are used, which is similar to the case of using 3 basis functions. We note that this is the error due to the clustering size and can not be reduced further unless we change the cluster size.

64In the next tables, we increase the number of cluster. In Table 2, we use 3 clusters and increase the number of basis functions per coarse element. We observe from this table that the error decreases as we increase the number of basis functions and, moreover, the error is smaller when using 3 clusters compared to the case of using 1 cluster.

65Next, in Table 3, we use 5 clusters and increase the number of basis functions per coarse element. In this case, we again observe an error decreasing as the number of basis is being increased and smaller error compared to the case with 3 clusters. In this table, we also show an error corresponding when using GMsFEM basis functions for each realization. The latter is used to identify the error due to GMsFEM coarse-grid discretization. We observe that this error is about 4% compared to 6%, which indicates that our approach requires a few clusters in this example to achieve a good accuracy. Finally, we present a test case to show the performance of using online basis functions defined in Section 4.4. In Table 4, we show the numerical results. In our computations, we start the process by using 3 offline basis functions, and this step corresponds to zeroth online iteration. Then we show the errors for the next 3 online iterations, where one online basis is added for each iteration. We observe that the method is able to produce very accurate results after a couple of online iterations. In Figure 4, we present the convergence history the online iteration, namely, we show the logarithm of the error versus the number of degrees of freedoms. We observe clearly the exponential decay of the error from this figure. Table 3: Errors for the case 1 using #cluster = 5. The error in the parenthesis shows the error using GMsFEM basis function using the specific realization.

Permeability with randomness and spatial heterogeneities

66In this example, we consider the same 2D elliptic PDE (17) with homogeneous boundary condition and a random permeability field a(x, ω) = e 0.1+ 2+sin(7πx 1 ) sin(8πx 2 ) 2+sin(9πx 1 ) sin(7πx 2 ) ξ 1 (ω)+ 2+sin(13πx 1 ) sin(11πx 2 ) 2+sin(11πx 1 ) sin(13πx 2 ) ξ 2 (ω)+ 2+sin(12πx 1 ) sin(14πx 2 ) where we have 3 random variables ξ i (ω) follow the standard normal distribution N (0, 1) that represent the randomness and spatial heterogeneities. We depict two realizations of this permeability field in Figure 5.

67As in our previous example, We shall vary the number of clusters and the number of basis functions. In Tables 5 and 6, we consider two cluster sizes with 6 and 10 clusters. In each case, we vary the number of basis functions in each coarse-grid block. We observe from these numerical results that the method based on 6 clusters has provided an accurate result that is very comparable to that obtained from using 10 clusters.

68In Table 6, we present the numerical results when using the multiscale basis functions for each realization (see the numbers in the parentheses). These results show that 10 clusters provide almost the same results compared when using multiscale basis functions for each realization and this, it is sufficient to have only 10 clusters for our multiscale simulations.

69Remark 5.1. We should point out that the coefficient a(x, ω) in (19) is a highly nonlinear functional of ξ i (ω) and does not have the affine parameter dependence property. The clustering algorithm proposed in this paper helps us automatically explore the heterogeneities of the solution space and constructs the reduced basis functions. Thus, our method can efficiently solve this type of challenging problem. 7.83%(7.18%) 7.80%(7.13%) Table 6: Errors for the case 2 using #cluster = 10.

Concluding remarks

70In the paper, we propose a generalized multiscale approach for stochastic problems. Though construction of multiscale basis functions on a coarse spatial grid is well studied, there has not been much research on coarsening uncertainty space for multiscale problems. The coarsening of the uncertainty space needs adaptivity to avoid a large dimensional coarse spaces. Because the coupling over the uncertainty space, the adaptivity simply requires grouping relevant realizations. We start with an arbitrary spatial coarse grid and perform an adaptivity in the uncertainty space by selecting realizations. The latter requires some carefully selected distances as simple L 2 distance in the coefficients is an appropriate measure for multiscale problems. We then introduce an appropriate distance and present an approximation for the distance, which is used for clustering. Once the clustering is performed, we construct multiscale basis functions for each cluster and perform multiscale simulations. We discuss some further extensions. One of them includes the online procedures, which can be used to accelerate the convergence. Numerical results are presented to demonstrate the accuracy and efficiency of the proposed method for several multiscale stochastic problems without scale separation. Most importantly, we find that the cluster-based method allows us to explore the heterogeneities of the solution space and to solve nonlinear random elliptic PDEs.

참고문헌 43건

  1. Randomized Oversampling for Generalized Multiscale Finite Element Methods Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2016 10.1137/140988826
  2. Introduction to information retrieval Choice Reviews Online · Association of College and Research Libraries · 2009 10.5860/choice.46-2715
  3. Stochastic Finite Elements: A Spectral Approach Springer eBooks · Springer Nature · 1991 10.1007/978-1-4612-3094-6
  4. Monte Carlo Methods in Financial Engineering Applications of mathematics · Springer Nature · 2003 10.1007/978-0-387-21617-1
  5. A Stochastic Projection Method for Fluid Flow Journal of Computational Physics · Elsevier BV · 2001 10.1006/jcph.2001.6889
  6. Quasi-Monte Carlo Methods Springer eBooks · Springer Nature · 2015 10.1007/978-3-319-22321-6_4
  7. A probabilistic graphical model approach to stochastic multiscale partial differential equations Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.05.016
  8. Randomized algorithms for the low-rank approximation of matrices Proceedings of the National Academy of Sciences · National Academy of Sciences · 2007 10.1073/pnas.0709640104
  9. Algorithm AS 136: A K-Means Clustering Algorithm Journal of the Royal Statistical Society Series C (Applied Statistics) · Oxford University Press · 1979 10.2307/2346830
  10. Multi-Element Generalized Polynomial Chaos for Arbitrary Probability Measures SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2006 10.1137/050627630
  11. A Multiscale Data-Driven Stochastic Method for Elliptic PDEs with Random Coefficients Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2015 10.1137/130948136
  12. Dynamically orthogonal field equations for continuous stochastic dynamical systems Physica D Nonlinear Phenomena · Elsevier BV · 2009 10.1016/j.physd.2009.09.017
  13. 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
  14. Convergence of a Nonconforming Multiscale Finite Element Method SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2000 10.1137/s0036142997330329
  15. Galerkin Finite Element Approximations of Stochastic Elliptic Partial Differential Equations SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2004 10.1137/s0036142902418680
  16. Monte Carlo and Quasi-Monte Carlo Methods 1996 Lecture notes in statistics · Springer Nature · 1998 10.1007/978-1-4612-1690-2
  17. Proper Generalized Decompositions and Separated Representations for the Numerical Solution of High Dimensional Stochastic Problems Archives of Computational Methods in Engineering · Springer Science+Business Media · 2010 10.1007/s11831-010-9054-1
  18. Galerkin methods for linear and nonlinear elliptic stochastic partial differential equations Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2004 10.1016/j.cma.2004.05.027
  19. An adaptive GMsFEM for high-contrast flow problems Journal of Computational Physics · Elsevier BV · 2014 10.1016/j.jcp.2014.05.007
  20. A dynamically bi-orthogonal method for time-dependent stochastic partial differential equations II: Adaptivity and generalizations Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.02.020
  21. A generalized spectral decomposition technique to solve a class of linear stochastic partial differential equations Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2007 10.1016/j.cma.2007.05.016
  22. A Data-Driven Stochastic Method for Elliptic PDEs with Random Coefficients SIAM/ASA Journal on Uncertainty Quantification · Society for Industrial and Applied Mathematics · 2013 10.1137/130913249
  23. Uncertainty Quantification and Polynomial Chaos Techniques in Computational Fluid Dynamics Annual Review of Fluid Mechanics · Annual Reviews · 2008 10.1146/annurev.fluid.010908.165248
  24. Finding Structure with Randomness: Probabilistic Algorithms for Constructing Approximate Matrix Decompositions SIAM Review · Society for Industrial and Applied Mathematics · 2011 10.1137/090771806
  25. A dynamically bi-orthogonal method for time-dependent stochastic partial differential equations I: Derivation and algorithms Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.02.033
  26. Generalized multiscale finite element methods (GMsFEM) Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.04.045
  27. Modeling uncertainty in flow simulations via generalized polynomial chaos Journal of Computational Physics · Elsevier BV · 2003 10.1016/s0021-9991(03)00092-5
  28. Wiener Chaos expansions and numerical solutions of randomly forced equations of fluid mechanics Journal of Computational Physics · Elsevier BV · 2006 10.1016/j.jcp.2006.01.008
  29. Monte Carlo and quasi-Monte Carlo methods Acta Numerica · Cambridge University Press · 1998 10.1017/s0962492900002804
  30. A Randomized Algorithm for the Approximation of Matrices 2006 10.21236/ada458932
  31. Residual-driven online generalized multiscale finite element methods Journal of Computational Physics · Elsevier BV · 2015 10.1016/j.jcp.2015.07.068
  32. Multilevel Monte Carlo Path Simulation Operations Research · Institute for Operations Research and the Management Sciences · 2008 10.1287/opre.1070.0496
  33. A Stochastic Projection Method for Fluid Flow Journal of Computational Physics · Elsevier BV · 2002 10.1006/jcph.2002.7104
  34. A Domain Decomposition Preconditioner for Multiscale High-Contrast Problems Lecture notes in computational science and engineering · Springer Nature · 2010 10.1007/978-3-642-11304-8_20
  35. Adaptive multiscale model reduction with Generalized Multiscale Finite Element Methods Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.04.054
  36. Domain Decomposition Methods in Science and Engineering XIX Lecture notes in computational science and engineering · Springer Nature · 2010 10.1007/978-3-642-11304-8
  37. Constraint Energy Minimizing Generalized Multiscale Finite Element Method Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.04.010
  38. Fast numerical methods for stochastic computations: A review Communications in Computational Physics · Cambridge University Press · 2009
  39. Probability theory 1963
  40. Geostatistical Reservoir Modeling Technometrics · Taylor & Francis · 2005 10.1198/tech.2005.s339
  41. A fast randomized algorithm for the approximation of matrices Applied and Computational Harmonic Analysis · Elsevier BV · 2007 10.1016/j.acha.2007.12.002
  42. Geostatistical Reservoir Modeling 2002 10.1093/oso/9780195138061.001.0001
  43. Über lineare Methoden in der Wahrscheinlichkeitsrechnung Suomalainen Tiedeakatemia eBooks · Suomalainen Tiedeakatemia · 1947