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

Enhanced multiscale restriction-smoothed basis (MsRSB) preconditioning with applications to porous media flow and geomechanics

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

기본 정보

저자
  1. Sebastian B.M. Bosma — Department of Energy Resources Engineering, Stanford University, Stanford, CA, USA
  2. Sergey Klevtsov — Department of Energy Resources Engineering, Stanford University, Stanford, CA, USA
  3. Olav Møyner — Department of Mathematical Sciences, Norwegian University of Science and Technology, Norway|||SINTEF Digital, Norway
  4. Nicola Castelletto — Atmospheric, Earth, and Energy Division, Lawrence Livermore National Laboratory, Livermore, CA, USA
DOI
10.1016/j.jcp.2020.109934
저널
Journal of Computational Physics
발행년도
2020
발행기관
Elsevier BV
피인용수
12
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jcp.2020.109934
토픽
Composite Material Mechanics
OpenAlex ID
W2995334152

평가 내용

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

초록

초록이 없습니다.

본문 88,064자

본문 펼치기
## Enhanced multiscale restriction-smoothed basis (MsRSB) preconditioning with applications to porous media flow and geomechanics $ Sebastian BM Bosma <sup>a,∗</sup>, Sergey Klevtsov <sup>a,∗</sup>, Olav Møyner <sup>b,c</sup>, Nicola Castelletto <sup>d</sup> _aDepartment of Energy Resources Engineering, Stanford University, Stanford, CA, USA_ _bSINTEF Digital_ _cNorwegian University of Science and Technology, Department of Mathematical Sciences_ _dAtmospheric, Earth, and Energy Division, Lawrence Livermore National Laboratory, Livermore, CA, U.S.A._ Abstract A novel method to enable application of the Multiscale Restricted Smoothed Basis (MsRSB) method to non Mmatrices is presented. The original MsRSB method is enhanced with a filtering strategy enforcing M-matrix properties to enable the robust application of MsRSB as a preconditioner. Through applications to porous media flow and linear elastic geomechanics, the method is proven to be effective for scalar and vector problems with multipoint finite volume (FV) and finite element (FE) discretization schemes, respectively. Realistic complex (un)structured two- and threedimensional test cases are considered to illustrate the method’s performance. _Keywords:_ Multiscale methods, MsRSB, Multipoint flux approximation, Finite element method, Preconditioning, Geomechanics 1. Introduction Large-scale numerical simulations are often required to understand and predict real world dynamics. In many applications, the use of high-resolution grids is required to characterize the heterogeneity of the material properties and the geometric complexity of the domains. Such simulations impose severe computational challenges and motivate the need for efficient solution schemes. Attractive multilevel strategies to achieve this are multiscale methods [1]. In this paper, we propose a generalization of the multiscale restriction-smoothed basis method (MsRSB) recently put forward in [2], and investigate its use as an effective preconditioner for multipoint flux approximation finite volume (FV) and finite element (FE) discretizations of second-order elliptic problems. Specifically we focus on applications to porous media flow and linear elastic geomechanics. The original idea underlying multiscale discretization methods for heterogeneous second-order elliptic problems can be traced back four decades [3, 4]. In essence, these methods aim at constructing accurate coarse-scale problems that preserve information of fine scale heterogeneity and can be solved at low computational cost. This is accomplished by numerically computing multiscale basis functions, which are local solutions of the original problem, that are used to both: (i) construct the coarse-scale problem, and (ii) interpolate the coarse-scale solution back to the fine-scale. Various methods to obtain these basis functions have been developed, for example generalized finite-element (GFE) methods [5], multiscale finite-element (MsFE) methods [6], numerical-subgrid upscaling [7], multiscale mixed finiteelement (MsMFE) methods [8], multiscale finite-volume (MsFV) methods [9], multiscale mortar mixed finite-element (MsMMFE) methods [10], multilevel multiscale mimetic (M <sup>3</sup> ) methods [11], multiscale mixed/mimetic finite-element (MsMFEM) [12] and generalized multiscale finite element (GMsFE) [13] methods, to name a few. In the geoscience community, multiscale methods have been extensively applied both as single-pass [9] and iterative schemes [14, 15] $This document is a collaborative effort. ∗Corresponding authors _Email addresses:_ `sbosma@stanford.edu` (Sebastian BM Bosma), `klevtsov@stanford.edu` (Sergey Klevtsov), `olav.moyner@sintef.no` (Olav Møyner), `castelletto1@llnl.gov` (Nicola Castelletto) _Preprint submitted to arXiv_ _July 28, 2020_ to resolve some of the limitations of existing upscaling methods. They have established a solid framework for simulating complex subsurface flow processes, e.g. [16–28]. Multiscale methods for linear elastic problems have focused primarily on the derivation of accurate coarse space basis functions which are robust with respect to material property heterogeneities and enable scalable performance [29–33]. Applications to the poroelasticity equations include [34–40]. The MsRSB method was proposed in the context of FV simulation for fluid flow in highly heterogeneous porous media [2]. Based on a two-grid approach, the MsRSB method constructs multiscale basis functions through restricted smoothing on the fine-scale matrix. In more detail, the basis functions, which are consistent with the local differential operators, are constructed with a cheap relaxation scheme, i.e. a weighted Jacobi iteration, similar to approaches used in smoothed aggregation multigrid methods [41–43]. An important advantage of MsRSB is that smoothing by relaxation provides a great deal of flexibility in handling unstructured grids, an essential requirement, for example, in applications involving complex geological structures. MsRSB has been widely proven and implemented in open source and commercial simulators using a linear two-point flux approximation (TPFA) [26]. Because of the two-point structure, the linear TPFA scheme is monotone [44], i.e. it preserves the positivity of the differential solution [45], and leads to an M-matrix with a small stencil. This is the reason why linear TPFA is the scheme of choice in most engineering software. Unfortunately, the consistency of TPFA is not guaranteed for arbitrary grids and anisotropic permeability distributions, potentially leading to inaccurate results [46]. Therefore, other FV methods such as multipoint flux approximation (MPFA) and/or nonlinear schemes [44, 47] must be considered to achieve consistent fluxes. To date, few works have investigated MsRSB applied to MPFA or other consistent discretizations [48]. Moreover, to the authors’ knowledge, the issues associated to non M-matrices have not been addressed in the literature. Hence, in this paper, we focus on enhancing MsRSB to enable the solution of second-order elliptic problems using discretization methods that do not result in an M-matrix, thus allowing general application to consistent discretizations. Based on the MPFA-O method [49], we show that the MsRSB basis construction as presented in [2] can fail due to divergent iterations for an anisotropic diffusion problem. We propose a variant of the original MsRSB approach that restores the desired behavior by enforcing M-matrix properties based on a filtering strategy. We develop the new method focusing on FV discretizations for porous media single-phase flow, and extend its use to vector elliptic problems by targeting FE-based simulation of linear elastic geomechanics. The paper is structured as follows. First, the original multiscale restriction-smoothed basis method is briefly reviewed in 2. Second, MsRSB for an MPFA flow discretization is analyzed and the novel approach is proposed in Section 3. Next, the proposed method is extended to geomechanics in Section 4. Challenging two- and threedimensional experiments are presented to demonstrate properties, robustness and scalability of the method throughout Section 3 and 4, including comparisons to existing methods and published results. Finally the report is concluded and future work specified. 2. The Multiscale Restriction-Smoothed Basis method (MsRSB) We propose a two-level preconditioning framework based on MsRSB for accelerating iterative Krylov methods to solve linear systems of the form: _A_ u = f, (1) where the coefficient matrix _A_ ∈ R <sup>_n_</sup> <sup>×</sup> <sup>_n_</sup> arises from a finite volume (FV) or finite element (FE) discretization of a scalar or vector second-order elliptic problem. Furthermore, u = { _ui_ } <sup>_n_</sup> _i_ =1 <sup>∈</sup> <sup>R</sup> <sup>_n_</sup> <sup>is</sup> <sup>the</sup> <sup>solution</sup> <sup>vector</sup> <sup>containing</sup> <sup>the</sup> scalar or vector second-order elliptic problem. Furthermore, u = { _ui_ } <sup>_n_</sup> _i_ =1 <sup>∈</sup> <sup>R</sup> <sup>_n_</sup> <sup>is</sup> <sup>the</sup> <sup>solution</sup> <sup>vector</sup> <sup>containing</sup> <sup>the</sup> unknown degrees of freedom, and f = { _f_ _j_ } <sup>_n_</sup> _j_ =1 <sup>∈</sup> <sup>R</sup> <sup>_n_</sup> <sup>is the discrete forcing term. In this work we develop the method and</sup> unknown degrees of freedom, and f = { _f_ _j_ } <sup>_n_</sup> _j_ =1 <sup>∈</sup> <sup>R</sup> <sup>_n_</sup> <sup>is the discrete forcing term. In this work we develop the method and</sup> illustrate its performance focusing on two simple but representative models routinely employed in practical simulation of subsurface processes: (i) the incompressible single-phase flow equation, and (ii) the linear elastostatic equations. For the flow problem we will concentrate on FV fine-scale discretizations while for the elastostatics problem we will consider the FE method. A review of governing equations and the derivation of the matrix form in (1) are provided for both models in Appendix A and Appendix B, respectively. The essence of any multiscale formulation and solution algorithm lies in the construction of a representative coarse-scale problem capable of capturing fine-scale features of a high-resolution model. The connection among scales is accounted for by computing basis functions, i.e. localized fine-scale solutions, which are used to construct a coarse-scale (upscaled) problem and reconstruct a fine-scale (downscaled) solution from the coarse solution. The 2 reconstruction stage can be represented through the _prolongation operator_ _P_, a sparse linear operator that stores the basis function associated to each coarse degree of freedom in the corresponding column such that _P_ : R <sup>_nc_</sup> → R <sup>_n_</sup> <sup>_f_</sup>, u _c_ �→ u _f_ = _P_ u _c_ . (2) Here and in the following, subscripts _f_ and _c_ indicate quantities associated with the fine and the coarse problem. In particular, _nc_ and _n_ _f_ denote the number of coarse- and fine-scale degrees of freedom, respectively. Assuming _P_, to be specified hereafter, is available, the definition of the coarse problem proceeds as follows. First the fine-scale solution in (1) is replaced with the approximation u = u _f_ ≈ _P_ u _c_ . Second the resulting residual vector, namely r = ( f - _AP_ u _c_ ), is orthogonalized against _nc_ vectors in R <sup>_nc_</sup> that form the rows of the operator _R_ . Hence, u _c_ is the solution to the linear system with _nc_ equations _Ac_ u _c_ = f _c_ with _Ac_ = _RAP_, f _c_ = _R_ f . (3) We refer to _R_ as the _restriction operator_, a linear operator mapping vectors from the fine- to the coarse-scale _R_ : R <sup>_n_</sup> <sup>_f_</sup> → R <sup>_nc_</sup>, u _f_ �→ u _c_ = _R_ u _f_ . (4) Different options may be considered for _R_ . If the fine-scale matrix _A_ is symmetric positive definite (SPD), a Galerkin orthogonalization, i.e. _R_ = _P_ <sup>_T_</sup>, is typically the strategy of choice since it provides a coarse scale operator _Ac_ that is still SPD. Alternatively, a Petrov-Galerkin approach is often used. For example, in the MSFV method [9], which is designed for diffusion problems, _R_ is constructed such that discrete mass conservation also holds for the coarse-scale problem. _2.1._ _MsRSB for TPFA finite volume schemes_ A crucial component of multiscale methods is the efficient and accurate construction of the prolongation operator, that is the computation of the basis functions. Originally proposed for the cell-centered finite volume solution to the diffusion equation for flow through porous media [2], the MsRSB method computes the basis functions iteratively with restricted smoothing. To describe this process, some terminology is first defined. A primary coarse grid is defined as a partitioning of the fine grid. In each coarse cell, a coarse node is chosen as the representative fine cell for that coarse cell. Furthermore, support boundary cells are defined as the cells connecting neighboring coarse nodes. Support edge cells are defined as the cells connecting a coarse node to its neighbors. Note that edge cells for one coarse node will be boundary cells for other coarse nodes. Fig. 1 shows an example of the coarse grid structure for a flow problem. The initial guess for the basis function associated to the _j_ th coarse node consists of the characteristic function of the primary _j_ th coarse cell, hence it is equal to 1 for fine scale cells belonging to the _j_ th coarse cell and 0 elsewhere. Let _L_ and _U_ denote the strictly lower-triangular and upper-triangular part of the matrix _G_ which we want to compute basis functions for. We assume that _G_ has the same dimensions as the fine-scale discretization matrix _A_, but otherwise leave the relationship ambiguous for the time being. Let _D_ <sup>ˆ</sup> be the diagonal matrix such that the entries in each row of matrix _G_ <sup>ˆ</sup> = ( _L_ + _D_ <sup>ˆ</sup> + _U_ ) sum to zero, i.e. [ _D_ <sup>ˆ</sup> ] _ii_ = − _n_ _j_ =1, _j_ - _i_ [ _G_ ] _i j_, ∀ _i_ ∈{1, 2 . . ., _n_ }. (5) Each MsRSB basis function is then iteratively smoothed by applying the following relaxation scheme [ _P_ ] <sup>_k_</sup> ∗ <sup>+</sup> _j_ <sup>1</sup> <sup>_k_</sup> ∗ _j_ <sup>−</sup> <sup>ω ˆ</sup> <sup>_D_</sup> <sup>−1</sup> <sup>_G_</sup> <sup>ˆ[</sup> <sup>_P_</sup> <sup>]</sup> ∗ <sup>_k_</sup> <sup>_k_</sup> ∗ <sup>+</sup> _j_ <sup>1</sup> = [ _P_ ] <sup>_k_</sup> ∗ ∗ <sup>_k_</sup> _j_ <sup>,</sup> (6) where [ _P_ ]∗ _j_ denotes the _j_ th column of _P_, i.e. the basis function corresponding to coarse node _j_, and _k_ is the iteration count. Furthermore, ω is a relaxation factor which in this work is set to 2/3, i.e. the value warranting the optimal 3 (a) (b) (c) Figure 1: Coarse grid features for the internal block of a regular 3×3 partition: (a) primal grid and coarse nodes ( ); (b) support boundary ( ), and edge ( ) cells; and (c) basis function. smoothing factor of the weighted Jacobi iteration for the homogeneous Poisson’s equation [50]. If the smoothing update extends the basis function outside of its support region, the update is adjusted to enforce that the basis support is enclosed by the boundary cells. This is done by adding overflowing basis function values to the neighboring basis functions. We refer the reader to [2] for additional details. An important feature of the originally described smoothing process is that it theoretically guarantees the conservation of the initial partition of unity at each iteration. However, round-off errors in a numerical implementation can cause a violation of this condition. An efficient and robust MsRSB implementation, which guarantees the numerical partition of unity, is described in algorithm 2 of [51]. In short, the updated basis function values are rescaled rather than the updates. Section 3.7 of the thesis elaborates on the issues of round off error. The full MsRSB basis function construction process is also incorporated in algorithm 1. 3. MsRSB for non-M matrices: multipoint FV schemes In order to demonstrate the challenges of applying a multiscale method to discretized systems which do not result in M-matrices, we will consider a specific fine-scale discretization of the incompressible single-phase pressure equation - div(Λ · grad _p_ ) = _q_, (7) where _p_ is the scalar pressure field, _q_ a source term distributed in the domain and Λ a positive-definite tensor describing the diffusion properties of the medium. Generally, Λ is characterized by the permeability tensor κ and fluid viscosity µ. A detailed description of the governing equations is provided in Appendix A.1. The standard approach for discretizing (7) is a two-point flux approximation (TPFA) scheme, which is only consistent when the principal axes of the permeability tensor are aligned with the grid [52]—i.e., for so-called κ-orthogonal grids. One possible choice to solve pressure on rough grids with non-diagonal permeability tensors is the MPFA-O method [49], which may not result in M-matrices for grids of interest. In the MPFA-O method, transmissibilities are computed by enforcing continuity of fluxes over each half-face for local reconstructions of linear flow. These fluxes rely on all the cell pressure unknowns surrounding a grid vertex and guarantee by construction that the set of equations, related to the half faces connected to a grid vertex, result in a solvable system. As it is not the focus of this paper, the authors refer to the cited paper for more details on the well-established method. Furthermore, we note that the implementation of MsRSB for MPFA was done using the Matlab Reservoir Simulation Toolbox [46]. In the following, we address two points: i) we will consider scalar systems discretized with MPFA-O as a proxy for the inherent difficulties in applying multiscale methods to non-M-matrices and ii) demonstrate a practical approach for implementing MsRSB or similar methods to MPFA-type discretizations for flow. 4 _3.1._ _Extension to non M-matrices_ To avoid complications related to non M-matrices, a method is devised to alter, with minimal intrusion, the original fine-scale matrix _A_ such that it satisfies M-matrix properties. This approximation of the linear system is justified because we aim to find an approximate solution using multiscale methods, where the basis functions should account for the M-matrix like part of the system matrix. This is conceptually similar to e.g. using incompressible or steadystate basis functions for flow when the problem under consideration is nonlinear due to compressibility [53, 54]. Moreover, this work’s primary objective is to employ the proposed method as a preconditioner for GMRES and other iterative Krylov solvers, where an inexpensive local solver will target any local errors in the approximation. In the following, we assume that the discretization matrix has by convention a positive diagonal and primarily negative off-diagonal entries. To enforce M-matrix properties, it is sufficient to filter out all positive off-diagonal entries and construct a modified system matrix _A_ <sup>˜</sup> [ _A_ <sup>˜</sup> ] _ij_ = _min_ ([ _A_ ] _ij_, 0), ∀( _i_, _j_ ) ∈{1, 2, . . ., _n_ } × {1, 2, . . ., _n_ }, (8) from which we can easily compute the basis functions by setting _G_ = _A_ <sup>˜</sup> . As the resulting matrix _G_ <sup>ˆ</sup> from eq. (6) now has zero row sum with only non-positive off-diagonal entries, the enhanced MsRSB method guarantees the robust generation of partition-of-unity basis functions with entries in [0, 1]. Furthermore, note that these changes do not affect a problem described by an M-matrix and as such the method can be implemented generally. To verify that the method has the desired effect, a simple test case is devised. Starting from an equidistant 2-D Cartesian grid, all grid vertices are perturbed randomly in both _x_ - and _y_ -direction. Additionally the grid is stretched by a factor 10 in the _y_ -direction. The resulting test case primal grid is shown in Fig. 2a. The fine grid has 9x9 cells where we coarsen by a ratio of 3 in each direction. Furthermore all flow properties are homogeneous. Note that MPFA-O for a κ-orthogonal Cartesian grid is equivalent to the TPFA method. Therefore the test case is designed to vary from an orthogonal grid substantially. (a) (b) (c) (d) Figure 2: Basis function for the internal block of a regular 3×3 partition: (a) primal grid and coarse nodes ( ); (b) support boundary ( ), edge ( ) and internal cells ( ); (c) MsRSB basis function using the original fine-scale system; and (d) MsRSB basis function using the filtered fine-scale system. The convergence criteria is _eit_ < 10 <sup>−12</sup>, where _eit_ is the maximum value in the smoother update on the internal cells (see algorithm 1). However as the case with the original linear system diverges, the basis function obtained after 11 iterations is plotted in (c). The basis functions corresponding to the central coarse node are plotted in Figure 2. Figure 2c displays the basis function obtained after 11 iterations when using the original linear system. It is evident from the plot that the prolongator is diverging. Figure 2d presents the converged basis function when using the altered linear system. In 5 this case, the desired monotone basis functions are obtained. Note that due to the cancellation of certain connections in the matrix, the basis function does not spread over the full domain. This effect is especially present in the corners of the dual-region. As will be shown in numerical examples in Section 4, although this has no impact on the final solution, it is favorable to avoid small coarsening ratios to ensure good performance. The proposed multiscale method is summarized in algorithm 1. Furthermore, the multiscale preconditioning strategy employed in the numerical results is described in algorithms 2-4. <u>Algorithm 1</u> <u>Enhanced MsRSB method to construct prolongation operator.</u> 1: function EnhancedMsRSB( _A_, _P_ ) 2: _A_ ˆ = min( _A_, 0) - Eq. 8 3: _A_ ˆ ← _A_ ˆ − diag(rowsum( ˆ _A_ )) - Eq. 5 4: _D_ ˆ = diag( ˆ _A_ ) 5: k = 0, _eit_ = ∞ 6: while _eit_ - tol do 7: δ _P_ = −ω _D_ <sup>ˆ</sup> <sup>−1</sup> _AP_ <sup>ˆ</sup> - Eq. 6 8: Modify δ _P_ to avoid stencil growth outside of support region - See section 3.3 step 2 of [2] 9: _P_ ← _P_ + δ _P_ 10: for _i_ = 1 : _n f_ do 11: [ _P_ ] _i_ ∗ ← [ _P_ ] _i_ ∗/ <sup>�</sup> _j_ <sup>([</sup> <sup>_P_</sup> <sup>]</sup> _ij_ <sup>)</sup> - Rescale to guarantee numerical partition of unity 12: end for 13: if ( _k_ mod _nit_ ) = 0 then - Check convergence every _nit_ iterations 14: _eit_ = max _i_, _j_ <sup>(abs([δ</sup> <sup>_P_</sup> <sup>]</sup> <sup>_ij_</sup> <sup>)),</sup> _i_ - support edges 15: end if 16: _k_ ← _k_ + 1 17: end while 18: return _P_ - The converged prolongation operator 19: <u>end function</u> <u>Algorithm 2</u> <u>Setup of enhanced MsRSB preconditioner.</u> 1: procedure SetupMsRSBpreconditioner( _A_ ) 2: if Not initialized then 3: Initialize _P_ 4: end if 5: _P_ = EnhancedMsRSB( _A_, _P_ ) 6: if Petrov-Galerkin restriction then 7: _R_ ← Construct restriction operator - Compute restriction operator 8: else 9: _R_ = _P_ <sup>_T_</sup> 10: end if 11: _Ac_ = _RAP_ - Compute coarse-scale system matrix 12: _Mc_ <sup>−1</sup> ≈ _A_ <sup>−</sup> _c_ <sup>1</sup> - Set up coarse system solver _c_ <sup>−1</sup> ≈ _A_ <sup>−</sup> _c_ <sup>1</sup> 12: _Mc_ <sup>−1</sup> ≈ _A_ <sup>−</sup> _c_ <sup>1</sup> - Set up coarse system solver 13: end procedure _3.2._ _MsRSB for an MPFA-O discretization:_ _2D test case_ The example problem is shown in Figure 3 and consists of a 100 by 100 structured grid discretizing a rectangular domain of 20 by 150 meters. We impose a unit pressure drop from _x_ = 0m to _x_ = 20m. Interior vertices are perturbed by a factor 0.2Ψ∆ _x_ where Ψ ∈ [− 2 <sup><u>1</u></sup> <sup>,</sup> <sup><u>1</u></sup> 2 <sup>] is a uniformly random variable with expected value 0.</sup> <sup>The tensor</sup> Λ has a diagonal value of λ _xx_ = λ _yy_ = 100 md·cP <sup>-1</sup> with off-diagonal elements λ _xy_ = λ _yx_ = 25 md·cP <sup>-1</sup> . The 6 <u>Algorithm 3</u> <u>Application of the enhanced MsRSB</u> 1: function ApplyMsRSBpreconditioner( v ) 2: vc = _R_ v - Restrict residual 3: w _c_ = _Mc_ <sup>−1</sup> <sup>v</sup> <sup>_c_</sup> - Solve coarse problem 4: w = _P_ w _c_ - Interpolate the solution 5: return w 6: <u>end function</u> <u>Algorithm 4</u> <u>Application of the two-level preconditioner with pre- and post-smoothing.</u> 1: function ApplyMsRSBTwoLevelPreconditioner( _A_, v ) 2: z ← z + _M_ pre. <sup>−1</sup> 2: z ← z + _M_ pre. <sup>−1</sup> <sup>(</sup> <sup>v</sup> <sup>−</sup> <sup>_A_</sup> <sup>z</sup> <sup>)</sup> - Pre-smoothing relaxation starting from z = 0 3: w = ApplyMsRSBpreconditioner( v - _A_ z ) - Compute correction 4: z ← z + w - Apply correction 5: z ← z + _M_ post. <sup>−1</sup> <sup>(</sup> <sup>v</sup> <sup>−</sup> <sup>_A_</sup> <sup>z</sup> <sup>)</sup> - Post-smoothing relaxation 5: z ← z + _M_ post. <sup>−1</sup> <sup>(</sup> <sup>v</sup> <sup>−</sup> <sup>_A_</sup> <sup>z</sup> <sup>)</sup> - Post-smoothing relaxation 6: return z 7: <u>end function</u> combined effect of the non-orthogonal grid and the strength of the off-diagonal permeability means that directly applying the MsRSB iterative process to the system matrix results in rapid divergence of the basis functions. With the proposed regularization, however, MsRSB can be employed and satisfactory convergence rates are obtained for both Richardson and GMRES-accelerated iterations. We partition the domain into 400 coarse blocks, each comprised of a 5 by 5 segment of fine cells and solve the MPFA system to a tolerance of 10 <sup>−8</sup> . The results are displayed in Figure 4, where Symmetric Gauss-Seidel (SGS) or ILU(0) is used as the second stage of the preconditioner (post-smoothing). No pre-smoother is applied here. We observe a clear improvement to convergence rates indicating that the basis functions successfully capture the local features of the system and resolve low-frequency errors. As a non-accelerated stand-alone solver, i.e. Richardson, MsRSB+ILU(0) converges in 30 iterations while ILU(0) fails to converge in 150 iterations. The set-up with the cheaper but less effective smoother SGS fails to converge in both cases although the multiscale stage again leads to a higher convergence rate. The performance difference between the single- and twolevel solvers is reduced when GMRES is used to accelerate the solution process, nonetheless the multiscale solvers still only require half as many iterations as smoothers alone. (a) (b) Figure 3: Grid (a) and reference solution (b) for the 2D example with a MPFA-discretized pressure equation. Note that the dimensions of the grid have been scaled for plotting visibility. 7 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> 10 <sup>−3</sup> 10 <sup>−4</sup> 10 <sup>−5</sup> 10 <sup>−6</sup> 10 <sup>−7</sup> 10 <sup>−8</sup> SGS MsRSB + SGS <u>ILU(0)</u> <u>MsRSB + ILU(0)</u> 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> 10 <sup>−3</sup> 10 <sup>−4</sup> 10 <sup>−5</sup> 10 <sup>−6</sup> 10 <sup>−7</sup> 10 <sup>−8</sup> SGS MsRSB + SGS <u>ILU(0)</u> <u>MsRSB + ILU(0)</u> 10 <sup>−9</sup> 0 25 50 75 100 125 150 Iteration number (a) Stand-alone solver 10 <sup>−9</sup> 0 25 50 75 100 125 150 Iteration number (b) GMRES Figure 4: Stand-alone iterative (a) and GMRES-accelerated iterative performance (b) for the 2D MPFA example. _3.3._ _MsRSB for an MPFA-O discretization:_ _3D Field Test Case_ Next a somewhat more realistic conceptual problem is considered. The test case consists of a 50 by 50 structured grid, with 30 layers in the vertical direction. The physical domain has a horizontal extent of 1000 by 1000 meters, with a vertical thickness of 100 meters. Similar to the 2D case, the vertices of the grid are perturbed to create a rough grid. Additionally, the top surface has a varying topography. The model has five different regions of a log-normally distributed diffusion tensor, with mean values of 700, 1000, 300, 800 and 100 md·cP <sup>-1</sup>, respectively as shown in Figure 5a. We consider a logically structured coarse mesh with block sizes of 5 by 5 by 5 fine cells, resulting in a total of 600 coarse blocks to partition the fine-grid with 75,000 cells. We apply a simple boundary condition resulting in flow from _x_ = 0 to _x_ = 1000 meters. In engineering applications, flow would typically be driven by wells, but our goal here is to produce flow over the entire domain to verify our implementation. The reference solution is plotted in Figure 5b. The convergence rates of MsRSB+ILU(0), ILU(0), MsRSB+SGS and SGS are compared in Figure 6 with and without Krylov acceleration. We observe that the benefits of the multiscale stage are more significant than in the 2D example. This is likely due to the denser stencil in 3D which leads to a fundamentally more difficult linear system, even for an equivalent number of degrees of freedom. We point out that the multiscale solver with SGS smoothing exhibits robust convergence with GMRES acceleration while the smoother-only setup stagnates. We also observe that the performance of the multiscale solver with ILU(0) is excellent, using 21 and 11 iterations without and with GMRES, respectively. We can also examine the initial multiscale solution, that is, the solution without any application of ILU(0) as an approximate solver. The solution is shown in Figure 5c where we observe that the general solution is accurately captured, with minor artifacts near the boundary of the domain. The solution in the interior of the domain is largely unaffected, which is reflected in the sum of the error: ∥ p - p _ms_ ∥1/∥ p ∥1 = 0.0385 with a maximum cell-wise error of 0.1883. These values are in line with similar MsRSB-TPFA examples for 3D models where flow is driven by boundary conditions. 4. MsRSB for non-M matrices: FE simulation of linear elastic geomechanics In this section, we investigate the extension of the enhanced MsRSB preconditioner to linear systems arising from geomechanical problems assuming linear elastic behavior. By means of this application, we extend the method’s applicability to problems with vector unknowns. The linear elastostatics governing equations and their FE discretization 8 (a) Permeability and grid (b) Reference solution (c) Initial multiscale solution (d) Error in initial multiscale Figure 5: The permeability, grid (a) and the reference solution (b) for the 3D MPFA example together with the initial, uniterated multiscale solution (c) and the corresponding error relative to the fine-scale (d). 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> 10 <sup>−3</sup> 10 <sup>−4</sup> 10 <sup>−5</sup> 10 <sup>−6</sup> 10 <sup>−7</sup> 10 <sup>−8</sup> <u>SGS</u> <u>MsRSB + SGS</u> ILU(0) MsRSB + ILU(0) SGS MsRSB + SGS <u>ILU(0)</u> <u>MsRSB + ILU(0)</u> 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> 10 <sup>−3</sup> 10 <sup>−4</sup> 10 <sup>−5</sup> 10 <sup>−6</sup> 10 <sup>−7</sup> 10 <sup>−8</sup> 10 <sup>−9</sup> 0 25 50 75 100 125 150 Iteration number (a) Stand-alone solver 10 <sup>−9</sup> 0 25 50 75 100 125 150 Iteration number (b) GMRES Figure 6: Stand-alone iterative (a) and GMRES-accelerated iterative performance (b) for the 3D MPFA example. 9 using a classical displacement formulation [55] are reviewed in Appendix A.2 and Appendix B.2, respectively. To compute the nodal displacement discrete solution, the FE method requires the solution of linear systems characterized by a fine scale stiffness matrix _A_ that is SPD but not an M-matrix. Therefore, in the construction of the prolongation operator, a na¨ıve implementation of MsRSB would exhibit the same convergence issues as discussed for the pressure equation in Section 3.1. To apply the enhanced MsRSB preconditioner, we observe that if the displacement degrees of freedom are ordered based on each coordinate direction, the stiffness matrix _A_ possesses a block structure, namely: (9) , _A_ = _Axx_ _Axy_ _Axz_ _Ayx_ _Ayy_ _Ayz_  _Azx_ _Azy_ _Azz_ which reflects the full coupling between _x_, _y_, and _z_ components of displacements. For preconditioning purposes, the complete matrix is often replaced with a sparser block diagonal approximation _Azz_ _A_ <sup>(sdc)</sup> =  _Axx_ _Ayy_ (10) , namely the _separate displacement component_ (SDC) approximation proposed in [56]. The motivation behind the SDC approximation is that, using Korn’s inequality, one can show that _A_ <sup>(SDC)</sup> is spectrally equivalent to _A_ [57, 58]. Note that this approximation breaks down in the incompressible elasticity limit, i.e. Poisson ratio ν → 0.5. As each diagonal block in (9) corresponds to the finite element discretization of an anisotropic diffusion operator for the corresponding displacement component—see Remark Appendix B.2—, enhanced MsRSB can be readily applied to (10) to obtain an approximate solution or preconditioner for the fine-scale matrix. In two- (or three-) dimensional FE-based elasticity simulation, two (or three, respectively) basis functions are associated with each coarse node. Computing such basis functions using _A_ <sup>(sdc)</sup> implies that the fine-scale displacement field in each coordinate direction is expressed as a linear combination of coarse nodal displacement in the corresponding direction only. Hence, the prolongation operator will be block diagonal. Nevertheless, we emphasize that the coarse operator, _Ac_, computed with eq. (3), will still capture full coupling influences between _x_ -, _y_ -, and _z_ -displacement components when using enhanced MsRSB basis functions. Note that the block diagonal property of the prolongation operator represents a major difference with a classic MSFE approach [32]. At the cost of a much denser prolongation operator, those approaches account for additional coupling between all displacement solution directions and basis functions directions. This extension to the enhanced MsRSB method is tested on a simple homogeneous problem defined in terms of dimensionless quantities with unit Lam´e parameters, i.e. setting _E_ =1 and ν=0.25. The fine grid is chosen to be 12 × 12 Cartesian. The coarse grid has 5 coarse nodes in each direction. Finally, the grid is rescaled by a factor of 20 in the _y_ -dimension. The high aspect ratio is chosen to induce strong non-M matrix properties of the resulting linear system. Figure 7a depicts the coarse and fine grid of the test case on the _x_ - _y_ plane. To assess the robustness of the enhanced MsRSB method including the extension to vector physics, a basis function obtained using a na¨ıve implementation of MsRSB is compared to the same basis function obtained with the enhanced method. Here, a na¨ıve implementation of MsRSB is a straightforward application of the original method for M matrices to the linear system. Figure 7 depicts the obtained basis functions for a given coarse node. It is obvious from the plots that the original MsRSB produces to diverging basis functions whereas the enhanced method recovers the expected bi-linear interpolators of a Cartesian homogeneous problem. The results reemphasize the findings of section 3.1. _4.1._ _MsRSB for Geomechanics:_ _A 2D Heterogeneous Test Case_ To compare the enhanced MsRSB method to an existing multiscale preconditioner for geomechanics [32], we investigate a 2D test case consisting of an elastic isotropic domain with a heterogeneous (layered) distribution of Young’s modulus, shown in Figure 8. Four mesh families ( `cart`, `skew`, `trig` and `rand` ) are considered, each with a different type of geometric distortion applied to the coarse elements. In each case a 224 × 224 fine-scale mesh 10 (a) (b) (c) (d) Figure 7: Basis function relative to the displacement degree of freedom in the _x_ -direction associated to the innermost coarse node of a regular 4×4 partition: (a) primal grid; (b) coarse ( ), support boundary ( ), edge ( ) and internal ( ) nodes; (c) MsRSB basis function using the original fine-scale system; and (d) enhanced MsRSB basis function using the filtered fine-scale system. The convergence criterion is _eit_ < 10 <sup>−3</sup>, where _eit_ is the maximum value in the smoother update on the internal nodes (see algorithm 1). However as the case with the original linear system diverges, the basis function obtained after 20 iterations is plotted in (c). Figure 8: Structured 2D heterogeneous case [32]: Young’s modulus distribution and computational mesh setup. 11 Table 1: Structured 2D heterogeneous case: number of PCG iterations to converge to 10 <sup>−8</sup> for different mesh families, coarse grid sizes and Young’s modulus variations. β # coarse elements laterally constrained laterally unconstrained simple shear ``` cart skew trig rand cart skew trig rand cart skew trig rand ``` 1 56 × 56 5 7 7 6 5 7 7 6 6 7 7 6 28 × 28 9 12 13 10 9 13 13 11 12 15 15 13 14 × 14 16 21 22 20 18 24 23 22 24 27 27 23 <u>7 × 7</u> <u>37</u> <u>40</u> <u>46</u> <u>40</u> <u>41</u> <u>45</u> <u>48</u> <u>45</u> <u>50</u> <u>43</u> <u>47</u> <u>43</u> 2 56 × 56 5 6 7 6 7 7 8 7 7 7 8 7 28 × 28 8 11 12 10 9 12 12 10 13 15 17 14 14 × 14 17 22 25 21 19 24 27 24 32 32 32 30 <u>7 × 7</u> <u>47</u> <u>44</u> <u>52</u> <u>48</u> <u>58</u> <u>53</u> <u>55</u> <u>55</u> <u>67</u> <u>50</u> <u>54</u> <u>52</u> 3 56 × 56 5 7 10 8 9 9 11 9 10 10 11 10 28 × 28 8 12 14 11 11 13 15 13 16 17 19 16 14 × 14 21 28 42 30 23 31 44 33 39 40 52 40 <u>7 × 7</u> <u>50</u> <u>54</u> <u>66</u> <u>60</u> <u>72</u> <u>64</u> <u>85</u> <u>71</u> <u>94</u> <u>63</u> <u>75</u> <u>64</u> and 7 × 7 coarse mesh are defined on the domain. The reader is referred to section 4.1 of [32] for a more detailed description of the test case setup. Two Krylov solver setups are tested. The first variant is Preconditioned Conjugate Gradient (PCG), with a symmetric preconditioning operator constructed by pre– and post–smoothing the multiscale (MsRSB) operator with no-fill Incomplete Cholesky factorization (IC(0)). The second version employs Biconjugate Gradient Stabilized (BiCGStab) with a two–stage preconditioning scheme, which consists of the multiscale operator as the global step followed by no–fill incomplete LU factorization (ILU(0)) as post-smoothing with no pre-smoother. This setup is identical to the one used in [32], except that MSFE is replaced by enhanced MsRSB to construct the multiscale operator. Table 1 summarizes the iteration counts using PCG for different mesh families and levels of contrast in material properties. With exception of the case with extremely large coarse elements (7×7, which results in each coarse element consisting of 32 × 32 fine elements), the preconditioner offers robust performance over a variety of mesh families and types of boundary conditions. In a direct comparison against an identical setup using MSFE, from [32], Table 2 shows similar results obtained with BiCGSTab and a single ILU(0) smoothing step. Here, the proposed MsRSB method achieves similar performance compared to MSFE, with only a modest (about 20–25% on average) increase in the number of iterations for most cases, with a notable exception of Cartesian laterally constrained case, where MSFE basis functions provide an exact interpolation. Note that the BiCGStab solver applies the preconditioner twice at every iteration, which corresponds to two applications of both multiscale operator and smoother, whereas PCG employs a single application of the preconditioner, which involves two smoothing steps (pre– and post–smoothing) and only one multiscale step. Nevertheless, comparable performance is observed in terms of iteration count, suggesting PCG with symmetric preconditioning should lead to a more efficient option due to its lower cost per iteration. _4.2._ _MsRSB for Geomechanics:_ _A Geological 2D Cross-Section Test Case_ A second geomechanics test case is designed to represent a 2D cross-section ( _x_ - _z_ plane) of an elastic subsurface porous medium domain, characterized by distinct geological layers and faults (shown in Figure 9a). A vertical distribution of Young’s modulus is prescribed, based on a correlation for uniaxial compressibility developed in [59] and recently used in [32]. Specifically, the medium vertical compressibility is computed as _cM_ = 0.01241 |σ <sup>′</sup> _z_ <sup>|−1.1342</sup> (11) where σ <sup>′</sup> _z_ <sup>= σ</sup> <sup>_z_</sup> <sup>+</sup> <sup>_p_</sup> <sup>= −0.12218 |</sup> <sup>_z_</sup> <sup>|1.0766 + 0.1|</sup> <sup>_z_</sup> <sup>|</sup> (12) 12 Table 2: Structured 2D heterogeneous case: number of BICGSTAB iterations to converge to 10 <sup>−8</sup> for different mesh families, coarse grid sizes and Young’s modulus variations. β # coarse elements laterally constrained laterally unconstrained simple shear ``` cart skew trig rand cart skew trig rand cart skew trig rand ``` 1 56 × 56 5 7 6 5 4 7 6 5 6 7 7 5 28 × 28 8 10 11 8 8 12 11 10 13 16 17 14 14 × 14 16 20 19 16 18 21 22 19 26 29 32 26 <u>7 × 7</u> <u>37</u> <u>33</u> <u>40</u> <u>40</u> <u>41</u> <u>38</u> <u>43</u> <u>43</u> <u>40</u> <u>47</u> <u>44</u> <u>42</u> 2 56 × 56 4 6 6 5 5 6 6 6 5 6 6.5 5 28 × 28 7 10 12 8 9 10 12 9 12 19 20 17 14 × 14 17 26 26 18 18 23 25 22 37 39 46 37 <u>7 × 7</u> <u>46</u> <u>50</u> <u>54</u> <u>49</u> <u>52</u> <u>58</u> <u>53</u> <u>53</u> <u>51</u> <u>59</u> <u>55</u> <u>51</u> 3 56 × 56 4 6 8 6 6 8 10 9 6 7 8 7 28 × 28 10 11 13 10 11 12 17 10 17 19 19 18 14 × 14 22 30 39 30 21 32 40 34 46 49 47 50 <u>7 × 7</u> <u>49</u> <u>61</u> <u>73</u> <u>63</u> <u>63</u> <u>71</u> <u>86</u> <u>71</u> <u>62</u> <u>67</u> <u>71</u> <u>58</u> is the vertical effective stress, consisting of vertical total stress σ _z_ and hydrostatic pressure _p_ (both in units of [bar]). Young’s modulus is expressed as _E_ = <sup><u>(1 −</u></sup> <sup><u>2ν)(1 + ν)</u></sup> (1 − ν) _cM_ (13) with a Poisson ratio ν set to 0.3 everywhere. In addition, a constant value is added to Young’s modulus in each layer, specifically the mean Young’s modulus in that layer multiplied by a layer–dependent coefficient. This is done to emulate discontinuities in material properties between layers as often encountered in real subsurface systems. The resulting distribution spans 3 orders of magnitude over the domain and is depicted in Figure 9b. The domain is gridded with an unstructured triangular mesh that conforms to the layers and faults (see Figure 9c), with the faults themselves considered inactive (no slip between fault surfaces). Seven different resolutions of the mesh are considered, ranging between 11,879 and 745,900 elements — see Table 3 for detailed information on mesh resolution and corresponding problem sizes. The domain is subject to roller boundary conditions on three sides, while the ground surface is traction-free. The deformation process is driven by a constant pressure drawdown of ∆ _p_ = 20 bar prescribed in a small reservoir zone inside the domain (shown in Figure 9a), that acts as an external distributed force. Figure 10 displays the the reference fine-scale displacement solution (computed on a grid corresponding to resolution level 0 in Table 3) in comparison with an approximate solution obtained from a single application of the two-stage multiscale preconditioner. Note that the smoothing stage is used to capture the effect of the forcing term prescribed in the interior of the domain via reservoir pressure drop. To evaluate the algorithmic scalability of the MsRSB method for mechanics, the problem is solved with a Krylov solver (namely PCG) to a relative tolerance of 10 <sup>−8</sup> . Three symmetric two-stage preconditioning operators are constructed using different choices of pre- and post-smoother: 2 sweeps of _l_ 1-Jacobi, symmetric Gauss-Seidel, and no-fill incomplete Cholesky factorization. The coarse grid for the multiscale solver is generated by agglomerating fine-scale cells based on face connectivity using METIS [60] graph partitioning software. For each mesh resolution, the ratio of fine–to–coarse elements and nodes is kept approximately the same, which results in the size of the coarse problem growing with mesh resolution. As a comparative baseline, a smoothing-only preconditioner (i.e. not involving the global multiscale step) is also applied to the problem for each choice of smoother. Krylov iteration counts are recorded to evaluate performance. Table 4 summarizes the findings. The multiscale solver convergence remains well bounded for all mesh resolutions and only exhibits very mild mesh dependence, while the baseline approach does not scale well, in some cases failing to achieve convergence within 1000 CG iterations. This example demonstrates a clear benefit of using a multiscale approach for subsurface mechanical problems compared to relying on incomplete factorizations only. It also 13 Table 3: Geological 2D cross–section test case: refinement levels and corresponding fine– and coarse–scale problem sizes. fine grid coarse grid coarsening ratio ℓ <u># cell</u> <u># node</u> <u># dof</u> <u># cell</u> <u># node</u> <u># dof</u> <u>cell</u> <u>dof</u> 0 11,879 6,119 12,238 12 26 52 989.9 235.4 1 23,390 11,947 23,894 25 51 102 935.6 234.3 2 46,932 23,817 47,634 50 102 204 938.6 233.5 3 93,129 47,085 94,170 100 202 404 931.3 233.1 4 186,940 94,165 188,330 200 408 816 934.7 230.8 5 372,360 187,210 374,420 400 803 1,606 930.9 233.1 <u>6</u> <u>745,900</u> <u>374,350</u> <u>748,690</u> <u>800</u> <u>1,603</u> <u>3,206</u> <u>932.4</u> <u>233.5</u> emphasizes the method’s excellent algorithmic scalability and mesh independence on unstructured grids. (a) 0 −1 −2 −3 10 <sup>7</sup> 10 <sup>8</sup> 10 <sup>9</sup> 10 <sup>10</sup> Young’s modulus, _E_ [Pa] (b) (c) (d) Figure 9: Geological 2D cross–section test case: (a) physical domain, layers and faults; (b) Young’s modulus distribution as a function of the elevation for each layer shown in (a); (c) fine and coarse scale grids in addition to support regions of selected basis functions (red markers denote coarse nodes; yellow markers are support boundaries; green markers are support edges); (d) examples of MsRSB displacement basis functions after 10 iterations and their support regions. _4.3._ _MsRSB for Geomechanics:_ _A 3D Test Case_ A third test is performed on a 3D poromechanical domain representing a 16 × 16 × 4 km subsurface formation. The vertical distribution of Young’s modulus prescribed by Eq. 11–13 is applied without discontinuities, and Poisson ratio is again set to 0.3. Also similar to the previous case, boundary conditions are imposed to be rollers (zero normal displacement) on all sides except for the traction-free top surface. Forcing is prescribed through pressure drawdown of ∆ _p_ 1 = 15 bar and ∆ _p_ 2 = 22 bar, respectively, in two reservoirs located around the center of the domain highlighted in Figure 11a. The domain is initially gridded with a 70 × 70 × 70 structured Cartesian grid, labeled as `cart` . It is then coarsened with a sequence of progressively finer coarsening ratios leading to grids containing between 5 and 14 coarse cells in 14 (a) Reference solution _x_ -displacement [m] (b) Reference solution _z_ -displacement [m] (c) Initial multiscale solution _x_ -displacement [m] (d) Initial multiscale solution _z_ -displacement [m] (e) Error in initial mutiscale solution _x_ -displacement [m] (f) Error in initial mutiscale solution _z_ -displacement [m] Figure 10: Geological 2D cross-section test case: reference solution (a,b) together with the initial, uniterated multiscale solution (c,d) and the corresponding error (e,f). Table 4: Geological 2D cross–section test case: PCG iteration counts. ”MsRSB” denotes the two-stage multiscale preconditioner with pre- and post-smoothing. ”no MS” columns reports results for the baseline approach (only pre- and post-smoother, without the multiscale step). Dashes are shown for cases where the solver failed to converge in 1000 iterations. _l_ 1-Jacobi (×2) Sym. Gauss-Seidel IC(0) ℓ <u>MsRSB</u> <u>no MS</u> <u>MsRSB</u> <u>no MS</u> <u>MsRSB</u> <u>no MS</u> 0 117 259 66 145 47 97 1 113 369 63 204 43 137 2 122 517 68 290 47 194 3 126 727 71 407 48 268 4 129 - 72 570 49 385 5 133 - 75 816 51 544 <u>6</u> <u>134</u> <u>—</u> <u>75</u> <u>—</u> <u>50</u> <u>769</u> 15 Table 5: 3D domain test case: coarse grid dimensions and CG iteration counts with different smoother options. _l_ 1-Jacobi ×2 Gauss-Seidel IC(0) # coarse cells coarse cell size ``` cart skew cart skew cart skew ``` 5 × 5 × 5 14 × 14 × 14 257 269 93 96 24 7 × 7 × 7 10 × 10 × 10 213 229 77 82 21 10 × 10 × 10 7 × 7 × 7 178 203 67 73 17 <u>14 × 14 × 14</u> <u>5 × 5 × 5</u> <u>149</u> <u>169</u> <u>58</u> <u>63</u> <u>13</u> <u>—</u> each dimension (examples are shown in Figures 11b–11c). For example a coarsening factor of 10 in each dimension, results in a 7 × 7 × 7 coarse-scale grid. In addition, nodes of the grid are shifted, resulting in a skewed grid, shown in Figure 11a, labeled `skew` . For both grids, the multiscale preconditioner was constructed using the same choices of pre- and post-smoothers as in the previous example, i.e. _l_ 1-Jacobi, symmetric Gauss-Seidel and no-fill incomplete Cholesky (the latter not being used with the skewed mesh due to numerical breakdowns in factorization which are not related to the multiscale method). Table 5 reports the observed iteration counts using CG as the chosen Krylov method and Figure 12 compares convergence histories obtained using both multiscale (with a 10 × 10 × 10 coarse element size) and smoother-only preconditioned CG solvers. The results are in line with the lower dimensional test cases. Acceptable iteration counts and good scalability is observed. (a) Mesh and reservoir zones. (b) 7 × 7 × 7 coarse-scale grid. (c) 10 × 10 × 10 coarse-scale grid. Figure 11: 3D skewed mesh test case. 5. Conclusion A novel preconditioner based on Multiscale Restricted Smoothed Basis(MsRSB) functions is presented. The essence of the enhanced MsRSB approach consists of enforcing M-matrix properties on the fine-scale linear system based on a filtering technique. Using the resulting approximate linear system, basis functions can robustly be constructed using the original iterative MsRSB strategy. The method is demonstrated for the single phase flow problem and the linear elastic geomechanics problem. Enhanced MsRSB is validated to be effective through various test cases including heterogeneous, unstructured 2dimensional and 3-dimensional problems . The proposed preconditioner show similar iteration counts compared to existing multiscale methods while enabling increased flexibility, easier implementation and sparser systems. Studies on CPU times and computational efficiency are subject of further work. Finally, as shown for the porous media problem, the proposed method allows for the application of multiscale methods to multipoint stencils. Noting that multiscale operators are themselves inherently multipoint, the adapted MsRSB enables multilevel multiscale. Such a development has not yet been achieved in literature and is the topic of current research. 16 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> 10 <sup>−3</sup> 10 <sup>−4</sup> 10 <sup>−5</sup> 10 <sup>−6</sup> 10 <sup>−7</sup> 10 <sup>−8</sup> Jacobi MsRSB + Jacobi <u>SGS</u> <u>MsRSB + SGS</u> <u>IC(0)</u> <u>MsRSB + IC(0)</u> 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> 10 <sup>−3</sup> 10 <sup>−4</sup> 10 <sup>−5</sup> 10 <sup>−6</sup> 10 <sup>−7</sup> 10 <sup>−8</sup> Jacobi MsRSB + Jacobi <u>SGS</u> <u>MsRSB + SGS</u> 10 <sup>−9</sup> 0 50 100 150 200 250 300 Iteration number (a) Cartesian structured grid 10 <sup>−9</sup> 0 50 100 150 200 250 300 Iteration number (b) Skewed structured grid Figure 12: CG-accelerated iterative performance for the Cartesian 3D mesh (a) and for the skewed structured 3D mesh (b). Acknowledgements SB is supported by a named Stanford Graduate Fellowship in Science and Engineering (SGF). Funding for SK and NC was provided by Total S.A. through the FC-MAELSTROM Project. OM is funded by VISTA, which is a basic research program funded by Equinor and conducted in close collaboration with The Norwegian Academy of Science and Letters. Portions of this work were performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07-NA27344. The authors also thank Dr. Igor Shovkun and Dr. Jacques Franc for their feedback and Prof. Hamdi Tchelepi for many helpful discussions. Appendix A. Model problems: Governing equations Let Ω ⊂ R <sup>_nsd_</sup> and Γ denote a domain occupied by a heterogeneous porous medium and its boundary, respectively, with _n_ Γ the unit outward normal vector to Γ, _x_ the position vector in R <sup>_nsd_</sup>, and _nsd_ (= 2 or 3) the spatial dimension of the problem. _Appendix_ _A.1._ _Incompressible single-phase flow_ <u>Let</u> _<u>p</u>_ denote the pore pressure. For the application of the boundary conditions, let Γ be decomposed as Γ = Γ <sup>_D_</sup> ∪ Γ <sup>_N_</sup>, where Γ <sup>_D_</sup> ∩ Γ <sup>_N_</sup> = ∅. The strong form of the incompressible single-phase flow boundary value problem (BVP) may be formally stated as follows: given _q_ : Ω → R, _gD_ : Γ <sup>_D_</sup> → R, and _gN_ : Γ <sup>_N_</sup> → R, find _p_ : Ω → R such that div _w_ ( _p_ ) = _q_, in Ω (pressure equation), (A.1a) _p_ = _gD_, on Γ <sup>_D_</sup> (prescribed boundary pressure), (A.1b) _w_ ( _p_ ) · _n_ Γ = _gN_, on Γ <sup>_N_</sup> (prescribed boundary flux), (A.1c) _w_ ( _p_ ) = −Λ · grad _p_, in Ω (Darcy’s law). (A.1d) Here, _w_ ( _p_ ) is the Darcy velocity, Λ = (κ/µ) is the the rank-two tensor characterizing the diffusion properties of the medium, with κ the intrinsic symmetric positive definite permeability tensor and µ the fluid viscosity, which is assumed constant, and _q_ denotes a volumetric source term. 17 _Appendix_ _A.2._ _Linear elastostatics_ Let _d_ = { _d_ ℓ} <sup>_n_</sup> ℓ= <sup>_sd_</sup> Let _d_ = { _d_ ℓ} <sup>_n_</sup> ℓ= <sup>_sd_</sup> 1 <sup>be the displacement-vector, where</sup> <sup>_d_</sup> <sup>ℓ</sup> <sup>=</sup> <sup>(</sup> <sup>_e_</sup> <sup>ℓ</sup> <sup>·</sup> <sup>_d_</sup> <sup>) are the displacement components with respect to</sup> the Euclidean basis { _e_ } <sup>_n_</sup> ℓ= <sup>_sd_</sup> 1 <sup>in</sup> <sup>R</sup> <sup>_nsd_</sup> <sup>.</sup> <sup>Let</sup> <sup>us</sup> <sup>consider</sup> <sup>_nsd_</sup> <sup>non-overlapping</sup> <sup>partitions</sup> <sup>of</sup> <sup>the</sup> <sup>domain</sup> <sup>boundary</sup> <sup>into</sup> <sup>two</sup> <sup>_n_</sup> ℓ= <sup>_sd_</sup> 1 <sup>in</sup> <sup>R</sup> <sup>_nsd_</sup> <sup>.</sup> <sup>Let</sup> <sup>us</sup> <sup>consider</sup> <sup>_nsd_</sup> <sup>non-overlapping</sup> <sup>partitions</sup> <sup>of</sup> <sup>the</sup> <sup>domain</sup> <sup>boundary</sup> <sup>into</sup> <sup>two</sup> ℓ <sup>_D_</sup> <sup>∪</sup> <sup>Γ</sup> ℓ <sup>_N_</sup> segments associated with Dirichlet, Γℓ <sup>_D_</sup> ℓ <sup>_N_</sup> <sup>, respectively, such that Γ = Γ</sup> ℓ <sup>_D_</sup> segments associated with Dirichlet, Γℓ <sup>_D_</sup> <sup>, and Neumann boundary conditions, Γ</sup> ℓ <sup>_N_</sup> <sup>, respectively, such that Γ = Γ</sup> ℓ <sup>_D_</sup> <sup>∪</sup> <sup>Γ</sup> ℓ <sup>_N_</sup> <sup>,</sup> with Γℓ <sup>_D_</sup> <sup>∩</sup> <sup>Γ</sup> ℓ <sup>_N_</sup> <sup>=</sup> <sup>∅,</sup> <sup>ℓ</sup> <sup>∈{1, . . .,</sup> <sup>_nsd_</sup> <sup>}.</sup> <sup>The</sup> <sup>strong</sup> <sup>form</sup> <sup>of</sup> <sup>the</sup> <sup>linear</sup> <sup>elastostatic</sup> <sup>BVP</sup> <sup>reads</sup> <sup>as:</sup> <sup>given</sup> <sup>_b_</sup> <sup>:</sup> <sup>Ω</sup> <sup>→</sup> <sup>R3,</sup> with Γℓ <sup>_D_</sup> <sup>∩</sup> <sup>Γ</sup> ℓ <sup>_N_</sup> <sup>=</sup> <sup>∅,</sup> <sup>ℓ</sup> <sup>∈{1, . . .,</sup> <sup>_nsd_</sup> <sup>}.</sup> <sup>The</sup> <sup>strong</sup> <sup>form</sup> <sup>of</sup> <sup>the</sup> <sup>linear</sup> <sup>elastostatic</sup> <sup>BVP</sup> <sup>reads</sup> <sup>as:</sup> <sup>given</sup> <sup>_b_</sup> <sup>:</sup> <sup>Ω</sup> <sup>→</sup> <sup>R3,</sup> _gD_,ℓ : Γℓ <sup>_D_</sup> <sup>→</sup> <sup>R, and</sup> <sup>_gN_</sup> <sup>,ℓ</sup> <sup>: Γ</sup> ℓ <sup>_N_</sup> <sup>→</sup> <sup>R, find</sup> <sup>_d_</sup> <sup>: Ω</sup> <sup>→</sup> <sup>R3</sup> <sup>such that</sup> ℓ <sup>_D_</sup> <sup>∩</sup> <sup>Γ</sup> ℓ <sup>_N_</sup> ℓ <sup>_N_</sup> <sup>→</sup> <sup>R, find</sup> <sup>_d_</sup> <sup>: Ω</sup> <sup>→</sup> <sup>R3</sup> <sup>such that</sup> ℓ <sup>_D_</sup> <sup>, and Neumann boundary conditions, Γ</sup> ℓ <sup>_N_</sup> ℓ <sup>_D_</sup> <sup>→</sup> <sup>R, and</sup> <sup>_gN_</sup> <sup>,ℓ</sup> <sup>: Γ</sup> ℓ <sup>_N_</sup> −div σ( _d_ ) = _b_, in Ω (equilibrium equations), (A.2a) _d_ ℓ = _gD_,ℓ, on Γℓ <sup>_D_</sup> (prescribed boundary displacements), (A.2b) σ( _d_ ) : ( _e_ ℓ ⊗ _n_ Γ) = _gN_,ℓ, on Γℓ <sup>_N_</sup> (prescribed boundary tractions), (A.2c) σ( _d_ ) = C : sym(grad _d_ ), in Ω (generalized Hooke’s law), (A.2d) with ℓ ∈{1, . . ., _nsd_ }.. Here, σ( _d_ ) is the rank-2 stress-tensor, respectively, C _dr_ is the rank-4 elasticity tensor, and _b_ is a body force. In this work we will focus on isotropic linear elastic materials, hence only two independent elastic coefficients are required for the definition of C, namely C = λ( _I_ ⊗ _I_ ) + 2 _G_ I, (A.3) where _I_ and I are the second-order and fourth-order identity tensor, respectively, and λ = (1+ν)(1 _<u>E</u>_ <u>ν−2ν)</u> <sup>and</sup> <sup>_G_</sup> <sup>=</sup> 2(1 _<u>E</u>_ +ν) <sup>are</sup> the Lam´e parameters of the material, with _E_ the Young modulus and ν the Poisson ratio. Note that the subscripts _x_, _y_, and _z_ are also used to denote a quantity associated with the spatial dimension ℓ equal to 1, 2, and 3, respectively. Appendix B. Model problems: Discrete formulation _Appendix_ _B.1._ _Incompressible single-phase flow:_ _Finite volume formulation_ Given a partition T <sup>_h_</sup> of the domain Ω consisting of non-overlapping conforming cells, a finite volume discretization of (A.1) consists of writing the pressure equation for each cell (control-volume) in T <sup>_h_</sup> in integral form [61]. Let F <sup>_h_</sup> be the set of interfaces in T <sup>_h_</sup>, namely edges ( _nsd_ = 2), or faces ( _nsd_ = 3). Let _V_ <sup>_h_</sup> be the space of piecewise constant cell-wise fuctions associated with T <sup>_h_</sup> . We consider a discrete approximation for the pressure field such that _p_ ≈ _u_ <sup>_h_</sup> ∈ _V_ <sup>_h_</sup> . Let _g_ <sup>_h_</sup> _D_ <sup>denote</sup> <sup>the</sup> <sup>piecewise</sup> <sup>constant</sup> <sup>interface-wise</sup> <sup>interpolant</sup> <sup>of</sup> <sup>_gD_</sup> <sup>having</sup> <sup>support</sup> <sup>in</sup> <sup>F</sup> <sup>_h_</sup> <sup>,</sup> <sup>_D_</sup> <sup>⊂F</sup> <sup>_h_</sup> <sup>,</sup> namely the set of interfaces belonging to Γ <sup>_D_</sup> . Similarly, F <sup>_h_</sup> <sup>,</sup> <sup>_N_</sup> ⊂F <sup>_h_</sup> is the set of boundary interfaces lying on Γ <sup>_N_</sup> . Finally, let _w_ ˆ <sup>γ</sup> denote a conservative numerical flux approximating the volumetric flux through an interface γ ∈F <sup>_h_</sup>, namely _w_ ˆ <sup>γ</sup> ≈ �γ <sup>_w_</sup> <sup>·</sup> <sup>_n_</sup> <sup>γ dΓ, with</sup> <sup>_n_</sup> <sup>γ</sup> <sup>a unit normal vector defining a unique global orientation for γ.</sup> <sup>Based on a suitable</sup> _p_ ≈ _u_ <sup>_h_</sup> ∈ _V_ <sup>_h_</sup> . Let _g_ <sup>_h_</sup> _D_ namely _w_ ˆ <sup>γ</sup> ≈ �γ <sup>_w_</sup> <sup>·</sup> <sup>_n_</sup> <sup>γ dΓ, with</sup> <sup>_n_</sup> <sup>γ</sup> <sup>a unit normal vector defining a unique global orientation for γ.</sup> <sup>Based on a suitable</sup> functional dependence on _u_ <sup>_h_</sup> and _g_ <sup>_h_</sup> _D_ <sup>,</sup> <sup>for linear flux approximation schemes</sup> <sup>_w_</sup> <sup>ˆ</sup> <sup>γ(</sup> <sup>_uh_</sup> <sup>,</sup> <sup>_gh_</sup> _D_ <sup>) can be split as a sum of two</sup> terms; <sup>_h_</sup> _D_ <sup>,</sup> <sup>for linear flux approximation schemes</sup> <sup>_w_</sup> <sup>ˆ</sup> <sup>γ(</sup> <sup>_uh_</sup> <sup>,</sup> <sup>_gh_</sup> _D_ _w_ ˆ <sup>γ</sup> ( _u_ <sup>_h_</sup>, _g_ <sup>_h_</sup> _D_ <sup>_h_</sup> _D_ <sup>) =</sup> <sup>_w_</sup> <sup>˚</sup> <sup>γ(</sup> <sup>_uh_</sup> <sup>) +</sup> <sup>_w_</sup> <sup>¯</sup> <sup>γ(</sup> <sup>_gh_</sup> _D_ <sup>_h_</sup> _D_ <sup>),</sup> (B.1) to highlight the contribution to the flux related to _u_ <sup>_h_</sup> and _g_ <sup>_h_</sup> _D_ <sup>_h_</sup> _D_ <sup>,</sup> <sup>respectively.</sup> <sup>Clearly,</sup> <sup>_w_</sup> <sup>¯</sup> <sup>γ(</sup> <sup>_gh_</sup> _D_ to highlight the contribution to the flux related to _u_ <sup>_h_</sup> and _g_ <sup>_h_</sup> _D_ <sup>,</sup> <sup>respectively.</sup> <sup>Clearly,</sup> <sup>_w_</sup> <sup>¯</sup> <sup>γ(</sup> <sup>_gh_</sup> _D_ <sup>)</sup> <sup>is</sup> <sup>nonzero</sup> <sup>only</sup> <sup>in</sup> <sup>the</sup> presence of non homogeneous pressure boundary conditions. The first term to the right-hand side in (B.1) is expressed as a linear combination of pressure values from selected cells—e.g., the two cells sharing γ in the TPFA method, or the cells sharing at least a vertex with γ in the MPFA-O method [49, 52]—using constant transmissibility coefficients. A similar linear expression is utilized for _w_ ¯ <sup>γ</sup> ( _g_ <sup>_h_</sup> _D_ <sup>). Nonlinear flux approximation schemes are not considered in this work.</sup> For a review and details on recent developments on finite volume discretizations for anisotropic diffusion problems in heterogeneous media, we refer the reader to [44, 47] and references therein. The finite volume discretization provides an approximation _u_ <sup>_h_</sup> to the weak pressure solution of(A.1) by solving a set of discrete balance equations that are equivalent to the following mesh-dependent variational problem: find _u_ <sup>_h_</sup> ∈ _V_ <sup>_h_</sup> such that 18 _a_ <sup>_h_</sup> ( _v_, _u_ ) = _F_ <sup>_h_</sup> ( _v_ ) ∀ _v_ <sup>_h_</sup> ∈ _V_ <sup>_h_</sup>, (B.2) where the discrete bilinear form _a_ <sup>_h_</sup> : _V_ <sup>_h_</sup> × _V_ <sup>_h_</sup> → R and the discrete linear form _F_ : _V_ <sup>_h_</sup> → R are defined as _a_ <sup>_h_</sup> ( _v_ <sup>_h_</sup>, _u_ <sup>_h_</sup> ) = − γ∈F <sup>_h_</sup> \F <sup>_h_</sup> <sup>,</sup> <sup>_N_</sup> ⟦ _v_ <sup>_h_</sup> ⟧γ ˚ _w_ <sup>γ</sup> ( _u_ <sup>_h_</sup> ), (B.3) ⟦ _v_ <sup>_h_</sup> ⟧γ γ _F_ <sup>_h_</sup> ( _v_ <sup>_h_</sup> ) = _v_ <sup>_h_</sup> _q_ dΩ+ γ∈F <sup>_h_</sup> <sup>,</sup> <sup>_N_</sup> _q_ ¯ dΓ + γ∈F <sup>_h_</sup> \F <sup>_h_</sup> <sup>,</sup> <sup>_N_</sup> ⟦ _v_ <sup>_h_</sup> ⟧γ ¯ _w_ <sup>γ</sup> ( _g_ <sup>_h_</sup> _D_ <sup>).</sup> (B.4) Ω Here, the symbol ⟦·⟧γ denotes the jump of a quantity across an interface γ ∈F <sup>_h_</sup> . For internal interfaces, ⟦ _v_ <sup>_h_</sup> ⟧γ = ( _v_ <sup>_h_</sup> |τ _L_ - _v_ <sup>_h_</sup> |τ _K_ ), with _v_ <sup>_h_</sup> |τ _L_ and _v_ <sup>_h_</sup> |τ _K_ the restriction of _v_ <sup>_h_</sup> on cells τ _K_ and τ _L_ sharing γ, with _n_ γ pointing from τ _K_ to τ _L_ . For domain boundary interfaces, the jump expression simplifies to ⟦ _v_ <sup>_h_</sup> ⟧γ = − _v_ <sup>_h_</sup> |τ _K_ . To obtain the matrix form of the FV discrete problem, we introduce the basis {χ _i_ } _i_ ∈N _h_ for _V_ <sup>_h_</sup>, with χ _i_ the characteristic function of the _i_ th cell τ _i_ in T <sup>_h_</sup> such that χ _i_ ( _x_ ) = 1, if _x_ ∈ τ _i_, χ _i_ ( _x_ ) = 0, if _x_ - τ _i_, and N <sup>_h_</sup> = {1, . . ., _n_ τ} with _n_ τ the total number of cells. Hence, the approximate pressure field is expressed as _p_ ( _x_ ) ≈ _u_ <sup>_h_</sup> ( _x_ ) = <sup>�</sup> _i_ ∈N <sup>_h u_</sup> _i_ <sup>χ</sup> _i_ <sup>(</sup> <sup>_x_</sup> <sup>), with</sup> <sup>_u_</sup> _i_ the unknown cell pressure values. Requiring that _u_ <sup>_h_</sup> satisfy (B.4) for each function of the basis itself yields the system of discrete balance equations for the unknown coefficients vector u = { _ui_ } _Ap_ u = f _p_, (B.5) with the system matrix _Ap_ and the right-hand side f _p_ such that [ _Ap_ ] _i j_ = _a_ (χ _i_, χ _j_ ) with { _i_, _j_ } ∈N <sup>_h_</sup> × N <sup>_h_</sup> and { f _p_ } _i_ = _F_ (χ _i_ ), with _i_ ∈N <sup>_h_</sup> . The properties of matrix _Ap_ depend on the flux approximation scheme chosen for _w_ ˆ <sup>γ</sup> . For example, a TPFA scheme produces a symmetric positive definite matrix whereas MPFA methods typically lead to a non-symmetric _Ap_ [44]. _Appendix_ _B.2._ _Linear elastostatics:_ _Galerkin finite element formulation_ The weak form of the linear elastostatics BVP is derived based on the classical displacement formulation [55] by eliminating σ( _d_ ) in (A.2a) using (A.2d). Under appropriate regularity assumptions, (A.1) admits a unique solution _d_ that can be obtained by solving an equivalent variational problem [55]. Let _V_ = { _v_ ∈ [ _H_ <sup>1</sup> (Ω)] <sup>_nsd_</sup> : _v_ ℓ = ( _e_ ℓ - _v_ ) ∈ _V_ ℓ} denote the space of test functions, where _V_ ℓ = { _v_ ∈ _H_ <sup>1</sup> (Ω) : _v_ |Γℓ _D_ <sup>=</sup> <sup>0}, ℓ</sup> <sup>∈{1, . . .,</sup> <sup>_nsd_</sup> <sup>}.</sup> <sup>Let us consider an extension</sup> denote the space of test functions, where _V_ ℓ = { _v_ ∈ _H_ <sup>1</sup> (Ω) : _v_ |Γℓ _D_ <sup>=</sup> <sup>0}, ℓ</sup> <sup>∈{1, . . .,</sup> <sup>_nsd_</sup> <sup>}.</sup> <sup>Let us consider an extension</sup> of the Dirichlet boundary datum _g_ ˜ _D_ ∈ [ _H_ <sup>1</sup> (Ω)] <sup>_nsd_</sup> such that ( _e_ ℓ - _g_ ˜ _D_ ) = _gD_,ℓ on Γℓ <sup>_D_</sup> <sup>, ℓ</sup> <sup>∈{1, . . .,</sup> <sup>_nsd_</sup> <sup>}.</sup> <sup>By expressing the</sup> of the Dirichlet boundary datum _g_ ˜ _D_ ∈ [ _H_ <sup>1</sup> (Ω)] <sup>_nsd_</sup> such that ( _e_ ℓ - _g_ ˜ _D_ ) = _gD_,ℓ on Γℓ <sup>_D_</sup> <sup>, ℓ</sup> <sup>∈{1, . . .,</sup> <sup>_nsd_</sup> <sup>}.</sup> <sup>By expressing the</sup> displacement as _d_ = _g_ ˜ _D_ + _u_, the weak form of (A.2) reads as: find _u_ ∈ _V_ such that _a_ ( _v_, _u_ ) = _F_ ( _v_ ) ∀ _v_ ∈ _V_, (B.6) where the bilinear form _a_ : _V_ × _V_ → R and the linear form _F_ : _V_ → R are defined as _a_ ( _v_, _u_ ) = _F_ ( _v_ ) = Ω Ω sym(grad _v_ ) : C _dr_ : sym(grad _u_ ) dΩ, (B.7) _v_ - _b_ dΩ+ _nsd_ ℓ=1 Γℓ <sup>_N_</sup> _v_ ℓ _gN_,ℓ dΓ − Ω sym(grad _v_ ) : C _dr_ : sym(grad _g_ ˜ _D_ ) dΩ. (B.8) Let _X_ <sup>_h_</sup> be the finite element space of piecewise polynomial vector functions that are continuous in Ω associated with a conforming triangulation T <sup>_h_</sup> of Ω. Let {η _i_ } _i_ ∈N _h_ be the standard (vector) nodal basis for _X_ <sup>_h_</sup>, with N <sup>_h_</sup> = {1, . . ., _nsdnn_ } and _nn_ the number of node points in T <sup>_h_</sup> . We define the finite dimensional counterpart of _V_ as _V_ <sup>_h_</sup> = _X_ <sup>_h_</sup> ∩ _V_ and denote its basis as {η _i_ } _i_ ∈N _hu_, with N _u_ <sup>_h_</sup> <sup>⊂N</sup> <sup>_h_</sup> <sup>the set of indexes of basis functions of</sup> <sup>_X_</sup> <sup>_h_</sup> <sup>vanishing on Γ</sup> ℓ <sup>_D_</sup> <sup>, ℓ</sup> <sup>∈{1, . . .,</sup> <sup>_nsd_</sup> <sup>}.</sup> <sup>The</sup> _u_ <sup>_h_</sup> <sup>⊂N</sup> <sup>_h_</sup> <sup>the set of indexes of basis functions of</sup> <sup>_X_</sup> <sup>_h_</sup> <sup>vanishing on Γ</sup> ℓ <sup>_D_</sup> its basis as {η _i_ } _i_ ∈N _hu_, with N _u_ <sup>_h_</sup> <sup>⊂N</sup> <sup>_h_</sup> <sup>the set of indexes of basis functions of</sup> <sup>_X_</sup> <sup>_h_</sup> <sup>vanishing on Γ</sup> ℓ <sup>_D_</sup> <sup>, ℓ</sup> <sup>∈{1, . . .,</sup> <sup>_nsd_</sup> <sup>}.</sup> <sup>The</sup> discrete approximation to the displacement field can then be expressed as 19 _j_ ∈N <sup>_h_</sup> \N _u_ <sup>_h_</sup> _d_ ( _x_ ) ≈ _g_ ˜ <sup>_h_</sup> _D_ <sup>(</sup> <sup>_x_</sup> <sup>) +</sup> <sup>_u_</sup> <sup>_h_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) =</sup> _nsd_ ℓ=1 _gD_,ℓ(φℓ _j_ )φℓ _j_ ( _x_ ) _e_ ℓ + _j_ ∈N _u_ <sup>_h_</sup> _u j_ η _j_ ( _x_ ), (B.9) <sup>_h_</sup> _D_ <sup>∈</sup> <sup>_X_</sup> <sup>_h_</sup> <sup>is</sup> <sup>the</sup> <sup>trivial</sup> <sup>discrete</sup> <sup>extension</sup> <sup>of</sup> <sup>the</sup> <sup>Dirichlet</sup> <sup>boundary</sup> <sup>datum</sup> <sup>such</sup> <sup>that</sup> <sup>_e_</sup> <sup>ℓ</sup> <sup>·</sup> <sup>_g_</sup> <sup>˜</sup> <sup>_h_</sup> _D_ where _g_ ˜ <sup>_h_</sup> <sup>_h_</sup> _D_ <sup>on</sup> <sup>Γ</sup> ℓ <sup>_D_</sup> where _g_ ˜ <sup>_h_</sup> _D_ <sup>∈</sup> <sup>_X_</sup> <sup>_h_</sup> <sup>is</sup> <sup>the</sup> <sup>trivial</sup> <sup>discrete</sup> <sup>extension</sup> <sup>of</sup> <sup>the</sup> <sup>Dirichlet</sup> <sup>boundary</sup> <sup>datum</sup> <sup>such</sup> <sup>that</sup> <sup>_e_</sup> <sup>ℓ</sup> <sup>·</sup> <sup>_g_</sup> <sup>˜</sup> <sup>_h_</sup> _D_ <sup>on</sup> <sup>Γ</sup> ℓ <sup>_D_</sup> <sup>is</sup> <sup>equal</sup> <sup>to</sup> the finite element interpolant of _gD_,ℓ, ℓ ∈{1, . . ., _nsd_ }, φℓ _j_ = ( _e_ ℓ - η _j_ ( _x_ )), and _u_ <sup>_h_</sup> ∈ _V_ <sup>_h_</sup> is an approximate solution to the corresponding homogeneous Dirichlet problem with _u_ _j_ the unknown nodal displacement degrees of freedom. Substituting _g_ ˜ _D_ by _g_ ˜ <sup>_h_</sup> _D_ <sup>in (B.8) and requiring that</sup> <sup>_u_</sup> <sup>_h_</sup> <sup>satisfy (B.6) for each basis function of</sup> <sup>_V_</sup> <sup>_h_</sup> <sup>yields the matrix form</sup> Substituting _g_ ˜ _D_ by _g_ ˜ <sup>_h_</sup> _D_ <sup>in (B.8) and requiring that</sup> <sup>_u_</sup> <sup>_h_</sup> <sup>satisfy (B.6) for each basis function of</sup> <sup>_V_</sup> <sup>_h_</sup> <sup>yields the matrix form</sup> of the variational problem, namely the system of equations for the unknown coefficients vector u = { _u_ _j_ } _Ad_ u = f _d_, (B.10) with _Ad_ and f _d_ the symmetric positive definite (SPD) stiffness matrix and force vector, respectively, such that [ _Ad_ ] _i j_ = _a_ (η _i_, η _j_ ) with { _i_, _j_ } ∈N _u_ <sup>_h_</sup> <sup>× N</sup> _u_ <sup>_h_</sup> <sup>and {</sup> <sup>f</sup> <sup>_d_</sup> <sup>}</sup> <sup>_i_</sup> <sup>=</sup> <sup>_F_</sup> <sup>(η</sup> _i_ <sup>), with</sup> <sup>_i_</sup> <sup>∈N</sup> _u_ <sup>_h_</sup> <sup>.</sup> _Remark_ Appendix B.1 _._ For efficiency reasons, the linear system (B.10) is typically assembled ignoring the essential (Dirichlet) boundary conditions—i.e., {η _i_, η _j_ } is the range over the bases for _X_ <sup>_h_</sup> . This is also the strategy adopted in our implementation. The Dirichlet conditions are introduced by using a so-called _symmetric diagonalization_ approach [62]. In this approach, rows and columns of the stiffness matrix associated with displacement degrees of freedom where such conditions apply are modified while preserving symmetry, with the right-hand-side updated accordingly. _Remark_ Appendix B.2 _._ If displacement degrees of freedom are ordered based on each coordinate direction, _Ad_ possesses a _nsd_ × _nsd_ block structure, namely: _u_ <sup>_h_</sup> <sup>× N</sup> _u_ <sup>_h_</sup> _u_ <sup>_h_</sup> <sup>and {</sup> <sup>f</sup> <sup>_d_</sup> <sup>}</sup> <sup>_i_</sup> <sup>=</sup> <sup>_F_</sup> <sup>(η</sup> _i_ <sup>), with</sup> <sup>_i_</sup> <sup>∈N</sup> _u_ <sup>_h_</sup> <sup>.</sup> _u_ <sup>_h_</sup> <sup>.</sup> _A_ 11 . . . _A_ 1 _nsd_ ... ... ... _Ansd_ 1 . . . _Ansdnsd_  _Ad_ =  , (B.11) which reflects the full coupling between ℓ-components of displacements, ℓ = {1, . . ., _nsd_ }. Each diagonal block _A_ ℓℓ in (9) corresponds to the finite element discretization of the anisotropic diffusion operator −div(Λ · grad _d_ ℓ), with anisotropic diffusion tensor Λ = _G_ _I_ + ( _G_ + λ) _e_ ℓ ⊗ _e_ ℓ, ℓ = {1, . . ., _nsd_ }. References [1] Y. Efendiev, T. Y. Hou, Multiscale Finite Element Methods: Theory and Applications, Springer, New York, NY, USA, 2009. `[doi:10.1007/](https://doi.org/10.1007/978-0-387-09496-0)` `[978-0-387-09496-0](https://doi.org/10.1007/978-0-387-09496-0)` . [2] O. Møyner, K.-A. Lie, A multiscale restriction-smoothed basis method for high contrast porous media represented on unstructured grids, Journal of Computational Physics 304 (2016) 46–71. `[doi:10.1016/j.jcp.2015.10.010](https://doi.org/10.1016/j.jcp.2015.10.010)` . [3] L. G. Strakhovskaya, R. P. Fedorenko, A version of the finite element method, USSR Computational Mathematics and Mathematical Physics 19 (4) (1979) 162–173. `[doi:10.1016/0041-5553(79)90164-2](https://doi.org/10.1016/0041-5553%0x2879%0x2990164-2)` . [4] I. Babuˇska, J. E. Osborn, Generalized finite element methods: Their performance and their relation to mixed methods, SIAM Journal on Numerical Analysis 20 (3) (1983) 510–536. `[doi:10.1137/0720034](https://doi.org/10.1137/0720034)` . [5] I. Babuˇska, G. Caloz, J. E. Osborn, Special finite element methods for a class of second order elliptic problems with rough coefficients, SIAM Journal on Numerical Analysis 31 (4) (1994) 945–981. `[doi:10.1137/0731051](https://doi.org/10.1137/0731051)` . [6] T. Y. Hou, X.-H. Wu, A multiscale finite element method for elliptic problems in composite materials and porous media, Journal of Compu tational Physics 134 (1) (1997) 169–189. `[doi:10.1006/jcph.1997.5682](https://doi.org/10.1006/jcph.1997.5682)` . [7] T. Arbogast, Implementation of a locally conservative numerical subgrid upscaling scheme for two-phase Darcy flow, Computational Geo sciences 6 (3–4) (2002) 453–481. `[doi:10.1023/A:1021295215383](https://doi.org/10.1023/A:1021295215383)` . [8] Z. Chen, T. Y. Hou, A mixed multiscale finite element method for elliptic problems with oscillating coefficients, Mathematics of Computation 72 (2003) 541–576. `[doi:10.1090/S0025-5718-02-01441-2](https://doi.org/10.1090/S0025-5718-02-01441-2)` . [9] P. Jenny, S. H. Lee, H. A. Tchelepi, Multi-scale finite-volume method for elliptic problems in subsurface flow simulation, Journal of Compu tational Physics 187 (2003) 47–67. `[doi:10.1016/S0021-9991(03)00075-5](https://doi.org/10.1016/S0021-9991%0x2803%0x2900075-5)` . [10] T. Arbogast, G. Pencheva, M. F. Wheeler, I. Yotov, A multiscale mortar mixed finite element method, Multiscale Modeling & Simulation 6 (1) (2007) 319–346. `[doi:10.1137/060662587](https://doi.org/10.1137/060662587)` . 20 [11] K. Lipnikov, J. D. Moulton, D. Svyatskiy, A multilevel multiscale mimetic (M <sup>3</sup> ) method for two-phase flows in porous media, Journal of Computational Physics 227 (14) (2008) 6727–6753. `[doi:10.1016/j.jcp.2008.03.029](https://doi.org/10.1016/j.jcp.2008.03.029)` . [12] J. E. Aarnes, S. Krogstad, K.-A. Lie, Multiscale mixed/mimetic methods on corner-point grids, Computational Geosciences 12 (3) (2008) 297–315. `[doi:10.1007/s10596-007-9072-8](https://doi.org/10.1007/s10596-007-9072-8)` . [13] Y. Efendiev, J. Galvis, T. Y. Hou, Generalized multiscale finite element methods (gmsfem), Journal of Computational Physics 15 (2013) 116–135. `[doi:10.1016/j.jcp.2013.04.045](https://doi.org/10.1016/j.jcp.2013.04.045)` . [14] J. M. Nordbotten, P. E. Bjørstad, On the relationship between the multiscale finite volume method and domain decomposition preconditioners, Computational Geosciences 12 (3) (2008) 367–376. `[doi:10.1007/s10596-007-9066-6](https://doi.org/10.1007/s10596-007-9066-6)` . [15] H. Hajibeygi, G. Bonfigli, M. A. Hesse, P. Jenny, Iterative multiscale finite-volume method, Journal of Computational Physics 227 (19) (2008) 8604–8621. `[doi:10.1016/j.jcp.2008.06.013](https://doi.org/10.1016/j.jcp.2008.06.013)` . [16] J. Juanes, H. A. Tchelepi, Special issue on multiscale methods for flow and transport in heterogeneous porous media, Computational Geo sciences 12 (3) (2008) 255–256. `[doi:10.1007/s10596-008-9084-z](https://doi.org/10.1007/s10596-008-9084-z)` . [17] J. M. Nordbotten, Variational and heterogeneous multiscale methods, in: G. Kreiss, P. L¨otstedt, A. Målqvist, M. Neytcheva (Eds.), Numerical Mathematics and Advanced Applications 2009, 2009, pp. 713–720. `[doi:10.1007/978-3-642-11795-4_76](https://doi.org/10.1007/978-3-642-11795-4_76)` . [18] R. Helmig, J. Niessner, B. Flemisch, M. Wolff, J. Fritz, Efficient modeling of flow and transport in porous media using multiphysics and multiscale approaches, in: W. Freeden, M. Z. Nashed, T. Sonar (Eds.), Handbook of Geomathematics, Springer Berlin Heidelberg, 2010, pp. 417–457. `[doi:10.1007/978-3-642-01546-5_15](https://doi.org/10.1007/978-3-642-01546-5_15)` . [19] H. Zhou, H. A. Tchelepi, Two-stage algebraic multiscale linear solver for highly heterogeneous reservoir models, SPE Journal 17 (2) (2012) 523–539. `[doi:10.2118/141473-PA](https://doi.org/10.2118/141473-PA)` . [20] Y. Wang, H. Hajibeygi, H. A. Tchelepi, Algebraic multiscale solver for flow in heterogeneous porous media, Journal of Computational Physics 259 (2014) 284–303. `[doi:10.1016/j.jcp.2013.11.024](https://doi.org/10.1016/j.jcp.2013.11.024)` . [21] A. Kozlova, Z. Li, J. R. Natvig, S. Watanabe, Y. Zhou, K. Bratvedt, S. H. Lee, A real-field multiscale black-oil reservoir simulator, SPE Journal 21 (6) (2016) 2049–2061. `[doi:10.2118/173226-PA](https://doi.org/10.2118/173226-PA)` . [22] M. Cusini, A. A. Lukyanov, J. Natvig, H. Hajibeygi, Constrained pressure residual multiscale (cpr-ms) method for fully implicit simulation of multiphase flow in porous media, Journal of Computational Physics 299 (2015) 472–486. `[doi:10.1016/j.jcp.2015.07.019](https://doi.org/10.1016/j.jcp.2015.07.019)` . [23] E. T. Chung, Y. Efendiev, C. S. Lee, Mixed generalized multiscale finite element methods and applications, Multiscale Modeling & Simulation 13 (1) (2015) 338–366. `[doi:10.1137/140970574](https://doi.org/10.1137/140970574)` . [24] E. Parramore, M. G. Edwards, M. Pal, S. Lamine, Multiscale finite-volume CVD-MPFA formulations on structured and unstructured grids, Multiscale Modeling & Simulation 14 (2) (2015) 559–594. `[doi:10.1137/140953691](https://doi.org/10.1137/140953691)` . [25] M. T¸ene, M. S. Al Kobaisi, H. Hajibeygi, Algebraic multiscale method for fractured porous media, Journal of Computational Physics 321 (2016) 819–845. `[doi:10.1016/j.jcp.2016.06.012](https://doi.org/10.1016/j.jcp.2016.06.012)` . [26] K.-A. Lie, O. Møyner, J. R. Natvig, A. Kozlova, K. Bratvedt, S. Watanabe, Z. Li, Successful application of multiscale methods in a real reservoir simulator environment, Computational Geosciences 21 (5) (2017) 981–998. `[doi:10.1007/s10596-017-9627-2](https://doi.org/10.1007/s10596-017-9627-2)` . [27] K.-A. Lie, O. Møyner, J. R. Natvig, Use of multiple multiscale operators to accelerate simulation of complex geomodels, SPE Journal 22 (6) (2017) 1929–1945. `[doi:10.2118/182701-PA](https://doi.org/10.2118/182701-PA)` . [28] M. Cusini, B. Fryer, C. van Kruijsdijk, H. Hajibeygi, Algebraic dynamic multilevel method for compositional flow in heterogeneous porous media, Journal of Computational Physics 354 (2018) 593–612. `[doi:10.1016/j.jcp.2017.10.052](https://doi.org/10.1016/j.jcp.2017.10.052)` . [29] M. Buck, O. Iliev, H. Andr¨a, Multiscale finite element coarse spaces for the application to linear elasticity, Central European Journal of Mathematics 11 (4) (2013) 680–701. `[doi:10.2478/s11533-012-0166-8](https://doi.org/10.2478/s11533-012-0166-8)` . [30] M. Buck, O. Iliev, H. Andr¨a, Multiscale finite eelements for linear elasticity: Oscillatory boundary conditions, in: J. Erhel, M. Gander, L. Halpern, G. Pichot, T. Sassi, O. Widlund (Eds.), Domain Decomposition Methods in Science and Engineering XXI, Vol. 98 of Lecture Notes in Computational Science and Engineering, 2014, pp. 237–245. `[doi:10.1007/978-3-319-05789-7_20](https://doi.org/10.1007/978-3-319-05789-7_20)` . [31] N. Spillane, V. Dolean, P. Hauret, F. Nataf, C. Pechstein, R. Scheichl, Abstract robust coarse spaces for systems of PDEs via generalized eigenproblems in the overlaps, Numerische Mathematik 126 (4) (2014) 741–770. `[doi:10.1007/s00211-013-0576-y](https://doi.org/10.1007/s00211-013-0576-y)` . [32] N. Castelletto, H. Hajibeygi, H. A. Tchelepi, Multiscale finite-element method for linear elastic geomechanics, Journal of Computational Physics 331 (2017) 337–356. `[doi:10.1016/j.jcp.2016.11.044](https://doi.org/10.1016/j.jcp.2016.11.044)` . [33] E. T. Chung, C. S. Lee, A mixed generalized multiscale finite element method for planar linear elasticity, Journal of Computational and Applied Mathematics 348 (2019) 298–313. `[doi:10.1016/j.cam.2018.08.054](https://doi.org/10.1016/j.cam.2018.08.054)` . [34] H. W. Zhang, Z. D. Fu, J. K. Wu, Coupling multiscale finite element method for consolidation analysis of heterogeneous saturated porous media, Advances in Water Resources 32 (2) (2009) 268–279. `[doi:10.1016/j.advwatres.2008.11.002](https://doi.org/10.1016/j.advwatres.2008.11.002)` . [35] D. L. Brown, M. Vasilyeva, A generalized multiscale finite element method for poroelasticity problems I: Linear problems, Journal of Computational and Applied Mathematics 294 (2016) 372–388. `[doi:10.1016/j.cam.2015.08.007](https://doi.org/10.1016/j.cam.2015.08.007)` . [36] D. L. Brown, M. Vasilyeva, A generalized multiscale finite element method for poroelasticity problems II: Nonlinear coupling, Journal of Computational and Applied Mathematics 297 (2016) 132–146. `[doi:10.1016/j.cam.2015.11.007](https://doi.org/10.1016/j.cam.2015.11.007)` . [37] S. Dana, B. Ganis, M. F. Wheeler, A multiscale fixed stress split iterative scheme for coupled flow and poromechanics in deep subsurface reservoirs, Journal of Computational Physics 352 (2018) 1–22. `[doi:10.1016/j.jcp.2017.09.049](https://doi.org/10.1016/j.jcp.2017.09.049)` . [38] I. Y. Akkutlu, Y. Efendiev, M. Vasilyeva, Y. Wang, Multiscale model reduction for shale gas transport in poroelastic fractured media, Journal of Computational Physics 353 (2018) 356–376. `[doi:10.1016/j.jcp.2017.10.023](https://doi.org/10.1016/j.jcp.2017.10.023)` . [39] I. Sokolova, M. G. Bastisya, H. Hajibeygi, Multiscale finite volume method for finite-volume-based simulation of poroelasticity, Journal of Computational Physics 379 (2019) 309–324. `[doi:10.1016/j.jcp.2018.11.039](https://doi.org/10.1016/j.jcp.2018.11.039)` . [40] N. Castelletto, S. Klevtsov, H. Hajibeygi, H. A. Tchelepi, Multiscale two-stage solver for Biot’s poroelasticity equations in subsurface media, Computational Geosciences 23 (2) (2019) 207–224. `[doi:10.1007/s10596-018-9791-z](https://doi.org/10.1007/s10596-018-9791-z)` . [41] P. Vanek, J. Mandel, M. Brezina, Algebraic multigrid by smoothed aggregation for second and fourth order elliptic problems, Computing 56 (3) (1996) 179–196. `[doi:10.1007/BF02238511](https://doi.org/10.1007/BF02238511)` . [42] P. Vanek, J. Mandel, M. Brezina, Convergence of algebraic multigrid based on smoothed aggregation, Numerische Mathematik 88 (3) (2001) 21 559–579. `[doi:10.1007/s211-001-8015-y](https://doi.org/10.1007/s211-001-8015-y)` . [43] M. Brezina, R. Falgout, S. MacLachlan, T. Manteuffel, S. McCormick, J. Ruge, Adaptive smoothed aggregation (αSA) multigrid, SIAM Review 47 (2) (2005) 317–346. `[doi:10.1137/050626272](https://doi.org/10.1137/050626272)` . [44] J. Droniou, Finite volume schemes for diffusion equations: Introduction to and review of modern methods, Mathematical Models and Methods in Applied Sciences 24 (08) (2014) 1575–1619. `[doi:10.1142/S0218202514400041](https://doi.org/10.1142/S0218202514400041)` . [45] A. Berman, R. J. Plemmons, Nonnegative Matrices in the Mathematical Sciences, Society for Industrial and Applied Mathematics, 1994. `[doi:10.1137/1.9781611971262](https://doi.org/10.1137/1.9781611971262)` . [46] K.-A. Lie, An Introduction to Reservoir Simulation Using MATLAB/GNU Octave, Cambridge University Press, 2019. `[doi:10.1017/](https://doi.org/10.1017/9781108591416)` `[9781108591416](https://doi.org/10.1017/9781108591416)` . [47] K. M. Terekhov, B. T. Mallison, H. A. Tchelepi, Cell-centered nonlinear finite-volume methods for the heterogeneous anisotropic diffusion problem, Journal of Computational Physics 330 (2017) 245–267. `[doi:10.1016/j.jcp.2016.11.010](https://doi.org/10.1016/j.jcp.2016.11.010)` . [48] A. C. R. de Souza, L. M. C. Barbosa, F. R. L. Contreras, P. R. M. Lyra, D. K. E. de Carvalho, A multiscale control volume framework using the multiscale restriction smooth basis and a non-orthodox multi-point flux approximation for the simulation of two-phase flows on truly unstructured grids, Journal of Petroleum Science and Engineering 188 (2020) 106851. `[doi:https://doi.org/10.1016/j.petrol.](https://doi.org/https://doi.org/10.1016/j.petrol.2019.106851)` `[2019.106851](https://doi.org/https://doi.org/10.1016/j.petrol.2019.106851)` . [49] I. Aavatsmark, An introduction to multipoint flux approximations for quadrilateral grids, Computational Geosciences 6 (3-4) (2002) 405–432. `[doi:10.1023/A:1021291114475](https://doi.org/10.1023/A:1021291114475)` . [50] Y. Saad, Iterative Methods for Sparse Linear Systems, 2nd Edition, Society for Industrial and Applied Mathematics, 2003. `[doi:10.1137/](https://doi.org/10.1137/1.9780898718003)` `[1.9780898718003](https://doi.org/10.1137/1.9780898718003)` . [51] F. Johannessen, Accelerated smoothing and construction of prolongation [operators](http://hdl.handle.net/11250/2433754) for the multiscale restricted-smoothed basis method on [distributed memory systems, Master’s thesis, NTNU (Norwegian University of Science and Technology) (2016).](http://hdl.handle.net/11250/2433754) URL `[http://hdl.handle.net/11250/2433754](http://hdl.handle.net/11250/2433754)` [52] M. G. Edwards, C. F. Rogers, Finite volume discretization with imposed flux continuity for the general tensor pressure equation, Computa tional Geosciences 4 (2) (1998) 259–290. `[doi:10.1023/A:1011510505406](https://doi.org/10.1023/A:1011510505406)` . [53] H. Zhou, H. Tchelepi, Operator-based multiscale method for compressible flow, SPE Journal 13 (2008) 267–273. `[doi:10.2118/106254-MS](https://doi.org/10.2118/106254-MS)` . [54] O. Møyner, K.-A. Lie, A multiscale restriction-smoothed basis method for compressible black-oil models, SPE Journal 21 (2016) 2079–2096. `[doi:10.2118/173265-PA](https://doi.org/10.2118/173265-PA)` . [55] T. J. R. Hughes, The Finite Element Method: Linear Static and Dynamic Finite Element Analysis, Dover Publications, 2000. [56] O. Axelsson, I. Gustafsson, Iterative methods for the solution of the Navier equations of elasticity, Computer Methods in Applied Mechanics and Engineering 15 (2) (1978) 241–258. `[doi:10.1016/0045-7825(78)90026-9](https://doi.org/10.1016/0045-7825%0x2878%0x2990026-9)` . [57] R. Blaheta, Displacement decomposition-incomplete factorization preconditioning techniques for linear elasticity problems, Numerical Linear Algebra with Applications 1 (2) (1994) 107–128. `[doi:10.1002/nla.1680010203](https://doi.org/10.1002/nla.1680010203)` . [58] I. Gustafsson, G. Lindskog, On parallel solution of linear elasticity problems: Part i: Theory, Numerical Linear Algebra with Applications 5 (2) (1998) 123–139. `[doi:10.1002/(SICI)1099-1506(199803/04)5:2<123::AID-NLA130>3.0.CO;2-D](https://doi.org/10.1002/%0x28SICI%0x291099-1506%0x28199803/04%0x295:2<123::AID-NLA130>3.0.CO;2-D)` . [59] D. Ba´u, M. Ferronato, G. Gambolati, P. Teatini, Basin-scale compressibility of the northern Adriatic by the radioactive marker technique, G´eotechnique 52 (8) (2002) 605–616. `[doi:10.1680/geot.52.8.605.38832](https://doi.org/10.1680/geot.52.8.605.38832)` . [60] G. Karypis, V. Kumar, A fast and highly quality multilevel scheme for partitioning irregular graphs, SIAM Journal on Scientific Computing 20 (1) (1998) 359–392. `[doi:10.1137/S1064827595287997](https://doi.org/10.1137/S1064827595287997)` . [61] R. Eymard, T. Gallou¨et, R. Herbin, Finite volume methods, in: P. G. Ciarlet, J. L. Lions (Eds.), Handbook of Numerical Analysis, Vol. 7, Elsevier, 2000, pp. 713–1018. `[doi:10.1016/S1570-8659(00)07005-8](https://doi.org/10.1016/S1570-8659%0x2800%0x2907005-8)` . [62] L. Formaggia, F. Saleri, A. Veneziani, Solving Numerical PDEs: Problems, Applications, Exercises, Springer, 2012. 22

섹션 본문 56문단 · 41,662자

(제목 없음)

1A novel multiscale method for non M-matrices using Multiscale Restricted Smoothed Basis (MsRSB) functions is presented. The original MsRSB method is enhanced with a filtering strategy enforcing M-matrix properties to enable the robust application of MsRSB as a preconditioner. Through applications to porous media flow and linear elastic geomechanics, the method is proven to be effective for scalar and vector problems with multipoint finite volume (FV) and finite element (FE) discretization schemes, respectively. Realistic complex (un)structured two-and threedimensional test cases are considered to illustrate the method's performance.

Introduction

2Large-scale numerical simulations are often required to understand and predict real world dynamics. In many applications, the use of high-resolution grids is required to characterize the heterogeneity of the material properties and the geometric complexity of the domains. Such simulations impose severe computational challenges and motivate the need for efficient solution schemes. Attractive multilevel strategies to achieve this are multiscale methods [1]. In this paper, we propose a generalization of the multiscale restriction-smoothed basis method (MsRSB) recently put forward in [2], and investigate its use as an effective preconditioner for multipoint flux approximation finite volume (FV) and finite element (FE) discretizations of second-order elliptic problems. Specifically we focus on applications to porous media flow and linear elastic geomechanics.

3The original idea underlying multiscale discretization methods for heterogeneous second-order elliptic problems can be traced back four decades [3,4]. In essence, these methods aim at constructing accurate coarse-scale problems that preserve information of fine scale heterogeneity and can be solved at low computational cost. This is accomplished by numerically computing multiscale basis functions, which are local solutions of the original problem, that are used to both: (i) construct the coarse-scale problem, and (ii) interpolate the coarse-scale solution back to the fine-scale. Various methods to obtain these basis functions have been developed, for example generalized finite-element (GFE) methods [5], multiscale finite-element (MsFE) methods [6], numerical-subgrid upscaling [7], multiscale mixed finiteelement (MsMFE) methods [8], multiscale finite-volume (MsFV) methods [9], multiscale mortar mixed finite-element (MsMMFE) methods [10], multilevel multiscale mimetic (M 3 ) methods [11], multiscale mixed/mimetic finite-element (MsMFEM) [12] and generalized multiscale finite element (GMsFE) [13] methods, to name a few. In the geoscience community, multiscale methods have been extensively applied both as single-pass [9] and iterative schemes [14,15] to resolve some of the limitations of existing upscaling methods. They have established a solid framework for simulating complex subsurface flow processes, e.g. [16][17][18][19][20][21][22][23][24][25][26][27][28]. Multiscale methods for linear elastic problems have focused primarily on the derivation of accurate coarse space basis functions which are robust with respect to material property heterogeneities and enable scalable performance [29][30][31][32][33]. Applications to the poroelasticity equations include [34][35][36][37][38][39][40].

4The MsRSB method was proposed in the context of FV simulation for fluid flow in highly heterogeneous porous media [2]. Based on a two-grid approach, the MsRSB method constructs multiscale basis functions through restricted smoothing on the fine-scale matrix. In more detail, the basis functions, which are consistent with the local differential operators, are constructed with a cheap relaxation scheme, i.e. a weighted Jacobi iteration, similar to approaches used in smoothed aggregation multigrid methods [41][42][43]. An important advantage of MsRSB is that smoothing by relaxation provides a great deal of flexibility in handling unstructured grids, an essential requirement, for example, in applications involving complex geological structures. MsRSB has been widely proven and implemented in open source and commercial simulators using a linear two-point flux approximation (TPFA) [26].

5Because of the two-point structure, the linear TPFA scheme is monotone [44], i.e. it preserves the positivity of the differential solution [45], and leads to an M-matrix with a small stencil. This is the reason why linear TPFA is the scheme of choice in most engineering software. Unfortunately, the consistency of TPFA is not guaranteed for arbitrary grids and anisotropic permeability distributions, potentially leading to inaccurate results [46]. Therefore, other FV methods such as multipoint flux approximation (MPFA) and/or nonlinear schemes [44,47] must be considered to achieve consistent fluxes. To date, MsRSB has not been combined with MPFA or other consistent discretizations. Hence, in this paper, we focus on enhancing MsRSB to enable the solution of second-order elliptic problems using discretization methods that do not result in an M-matrix. Based on the MPFA-O method [48], we show that the MsRSB basis construction as presented in [2] can fail due to divergent iterations for an anisotropic diffusion problem. We propose a variant of the original MsRSB approach that restores the desired behavior by enforcing M-matrix properties based on a filtering strategy. We develop the new method focusing on FV discretizations for porous media single-phase flow, and extend its use to vector elliptic problems by targeting FE-based simulation of linear elastic geomechanics.

6The paper is structured as follows. First, the original multiscale restriction-smoothed basis method is briefly reviewed in 2. Second, MsRSB for an MPFA flow discretization is analyzed and the novel approach is proposed in Section 3. Next, the proposed method is extended to geomechanics in Section 4. Challenging two-and threedimensional experiments are presented to demonstrate properties, robustness and scalability of the method throughout Section 3 and 4, including comparisons to existing methods and published results. Finally the report is concluded and future work specified.

The Multiscale Restriction-Smoothed Basis method (MsRSB)

7We propose a two-level preconditioning framework based on MsRSB for accelerating iterative Krylov methods to solve linear systems of the form:

8where the coefficient matrix A ∈ R n×n arises from a finite volume (FV) or finite element (FE) discretization of a scalar or vector second-order elliptic problem. Furthermore, u = {u i } n i=1 ∈ R n is the solution vector containing the unknown degrees of freedom, and f = { f j } n j=1 ∈ R n is the discrete forcing term. In this work we develop the method and illustrate its performance focusing on two simple but representative models routinely employed in practical simulation of subsurface processes: (i) the incompressible single-phase flow equation, and (ii) the linear elastostatic equations. For the flow problem we will concentrate on FV fine-scale discretizations while for the elastostatics problem we will consider the FE method. A review of governing equations and the derivation of the matrix form in (1) are provided for both models in Appendix A and Appendix B, respectively.

9The essence of any multiscale formulation and solution algorithm lies in the construction of a representative coarse-scale problem capable of capturing fine-scale features of a high-resolution model. The connection among scales is accounted for by computing basis functions, i.e. localized fine-scale solutions, which are used to construct a coarse-scale (upscaled) problem and reconstruct a fine-scale (downscaled) solution from the coarse solution. The reconstruction stage can be represented through the prolongation operator P, a sparse linear operator that stores the basis function associated to each coarse degree of freedom in the corresponding column such that

10Here and in the following, subscripts f and c indicate quantities associated with the fine and the coarse problem. In particular, n c and n f denote the number of coarse-and fine-scale degrees of freedom, respectively. Assuming P, to be specified hereafter, is available, the definition of the coarse problem proceeds as follows. First the fine-scale solution in (1) is replaced with the approximation u = u f ≈ Pu c . Second the resulting residual vector, namely r = (f − APu c ), is orthogonalized against n c vectors in R n c that form the rows of the operator R. Hence, u c is the solution to the linear system with n c equations

11We refer to R as the restriction operator, a linear operator mapping vectors from the fine-to the coarse-scale

12Different options may be considered for R. If the fine-scale matrix A is symmetric positive definite (SPD), a Galerkin orthogonalization, i.e. R = P T , is typically the strategy of choice since it provides a coarse scale operator A c that is still SPD. Alternatively, a Petrov-Galerkin approach is often used. For example, in the MSFV method [9], which is designed for diffusion problems, R is constructed such that discrete mass conservation also holds for the coarse-scale problem.

MsRSB for TPFA finite volume schemes

13A crucial component of multiscale methods is the efficient and accurate construction of the prolongation operator, that is the computation of the basis functions. Originally proposed for the cell-centered finite volume solution to the diffusion equation for flow through porous media [2], the MsRSB method computes the basis functions iteratively with restricted smoothing. To describe this process, some terminology is first defined. A primary coarse grid is defined as a partitioning of the fine grid. In each coarse cell, a coarse node is chosen as the representative fine cell for that coarse cell. Furthermore, support boundary cells are defined as the cells connecting neighboring coarse nodes. Support edge cells are defined as the cells connecting a coarse node to its neighbors. Note that edge cells for one coarse node will be boundary cells for other coarse nodes. Fig. 1 shows an example of the coarse grid structure for a flow problem. The initial guess for the basis function associated to the jth coarse node consists of the characteristic function of the primary jth coarse cell, hence it is equal to 1 for fine scale cells belonging to the jth coarse cell and 0 elsewhere. Let L and U denote the strictly lower-triangular and upper-triangular part of the matrix G which we want to compute basis functions for. We assume that G has the same dimensions as the fine-scale discretization matrix A, but otherwise leave the relationship ambiguous for the time being. LetD be the diagonal matrix such that the entries in each row of matrixĜ = (L +D + U) sum to zero, i.e.

14Each MsRSB basis function is then iteratively smoothed by applying the following relaxation scheme

15where [P] * j denotes the jth column of P, i.e. the basis function corresponding to coarse node j, and k is the iteration count. Furthermore, ω is a relaxation factor which in this work is set to 2/3, i.e. the value warranting the optimal smoothing factor of the weighted Jacobi iteration for the homogeneous Poisson's equation [49]. If the smoothing update extends the basis function outside of its support region, the update is adjusted to enforce that the basis support is enclosed by the boundary cells. This is done by adding overflowing basis function values to the neighboring basis functions. We refer the reader to [2] for additional details. The original MsRSB basis function construction process is also incorporated in algorithm 1, for a given coarse mesh and support regions. Importantly the described smoothing process theoretically guarantees the conservation of the initial partition of unity at each iteration. However, the authors note that round-off errors in a numerical implementation can cause a violation of this condition. As such, global basis function rescaling is required to guarantee the partition of unity. These are inexpensive operations which can be done every few iterations (n it ).

MsRSB for non-M matrices: multipoint FV schemes

16In order to demonstrate the challenges of applying a multiscale method to discretized systems which do not result in M-matrices, we will consider a specific fine-scale discretization of the incompressible single-phase pressure equation

17where p is the scalar pressure field, q a source term distributed in the domain and Λ a positive-definite tensor describing the diffusion properties of the medium. Generally, Λ is principally characterized by the permeability tensor κ and fluid viscosity µ. A detailed description of the governing equations is provided in Appendix A.1. The standard approach for discretizing (7) is a two-point flux approximation (TPFA) scheme which is only consistent when the principal axes of the permeability tensor are aligned with the grid [50]-i.e., for so-called κ-orthogonal grids. One possible choice to solve pressure on rough grids with non-diagonal permeability tensors is the MPFA-O method [48], which may not result in M-matrices for grids of interest. In the MPFA-O method, transmissibilities are computed by enforcing continuity of fluxes over each half-face for local reconstructions of linear flow. These fluxes rely on all the cell pressure unknowns surrounding a grid node and guarantee by construction that the set of equations, related to the half faces connected to a grid node, result in a solvable system. As it is not the focus of this paper, the authors refer to the cited paper for more details on the well-established method. Furthermore, we note that the implementation of MsRSB for MPFA was done using the Matlab Reservoir Simulation Toolbox [46]. In the following, we address two points: i) we will consider scalar systems discretized with MPFA-O as a proxy for the inherent difficulties in applying multiscale methods to non-M-matrices and ii) demonstrate a practical approach for implementing MsRSB or similar methods to MPFA-type discretizations for flow. While the MsRSB method is well studied for TPFA-type problems, it has not, to the authors' knowledge, been combined with consistent discretizations in the literature.

Extension to non M-matrices

18To avoid issues related to non M-matrices, a method is devised to alter, with minimal intrusion, the original finescale matrix A such that it satisfies M-matrix properties. This approximation of the linear system is justified because we aim to find an approximate solution using multiscale methods, where the basis functions should account for the M-matrix like part of the system matrix. This is conceptually similar to e.g. using incompressible or steady-state basis functions for flow when the problem under consideration is nonlinear due to compressibility [51,52]. Moreover, this work's primary objective is to employ the proposed method as a preconditioner for GMRES and other iterative Krylov solvers, where an inexpensive local solver will target any local errors in the approximation. In the following, we assume that the discretization matrix has by convention a positive diagonal and primarily negative off-diagonal entries.

19To enforce M-matrix properties, it is sufficient to filter out all positive-diagonal entries and construct a modified system matrixÃ

20from which we can easily compute the basis functions by setting G =Ã. As the resulting matrixĜ from eq. (6) now has zero row sum with only non-positive off-diagonal entries, the enhanced MsRSB method guarantees the robust generation of partition-of-unity basis functions with entries in [0, 1]. Furthermore, note that these changes do not affect a problem described by an M-matrix and as such the method can be implemented generally. To verify that the method has the desired effect, a simple test case is devised. Starting from an equidistant 2-D Cartesian grid, all grid nodes are perturbed randomly in both x-and y-direction. Additionally the grid is stretched by a factor 10 in the y-direction. The resulting test case primal grid is shown in Fig. 2a. The fine grid has 9x9 cells where we coarsen by a ratio of 3 in each direction. Furthermore all flow properties are homogeneous. Note that MPFA-O for a κ-orthogonal Cartesian grid is equivalent to the TPFA method. Therefore the test case is designed to vary from an orthogonal grid substantially. The basis functions corresponding to the central coarse node are plotted in Figure 2. Figure 2c displays the basis function obtained after 11 iterations when using the original linear system. It is evident from the plot that the prolongator is diverging. Figure 2d presents the converged basis function when using the altered linear system. In this case, the desired monotone basis functions are obtained. Note that due to the cancellation of certain connections in the matrix, the basis function does not spread over the full domain. This effect is especially present in the corners of the dual-region. As will be shown in numerical examples in Section 4, although this has no impact on the final solution, it is favorable to avoid small coarsening ratios to ensure good performance. The proposed multiscale method is summarized in algorithm 1. Furthermore, the multiscale preconditioning strategy employed in the numerical results is described in algorithms 2-4.

21Algorithm 1 Enhanced MsRSB method to construct prolongation operator. for i = 1 : n f do 12:

22Rescale to guarantee numerical partition of unity 13: end for 14: if Not initialized then A c = RAP Compute coarse-scale system matrix 12:

23c Set up coarse system solver 13: end procedure

MsRSB for an MPFA-O discretization: 2D test case

24The example problem is shown in Figure 3 and consists of a 100 by 100 structured grid discretizing a rectangular domain of 20 by 150 meters. We impose a unit pressure drop from x = 0m to x = 20m. Interior nodes are perturbed by a factor 0.2Ψ∆x where Ψ ∈ [− 1 2 , 1 2 ] is a uniformly random variable with expected value 0. The tensor Λ has a diagonal value of λ xx = λ yy = 100 md·cP -1 with off-diagonal elements λ xy = λ yx = 25 md·cP -1 . The combined effect of the nonorthogonal grid and the strength of the off-diagonal permeability means that directly applying the MsRSB iterative

25Pre-smoothing relaxation starting from z = 0 3:

26Compute correction 4: z ← z + w Apply correction 5:

27Post-smoothing relaxation 6: return z 7: end function process to the system matrix results in rapid divergence of the basis functions. With the proposed regularization, however, MsRSB can be employed and satisfactory convergence rates are obtained for both Richardson and GMRESaccelerated iterations. We partition the domain into 400 coarse blocks, each comprised of a 5 by 5 segment of fine cells and solve the MPFA system to a tolerance of 10 −8 . The results are displayed in Figure 4, where Symmetric Gauss-Seidel (SGS) or ILU(0) is used as the second stage of the preconditioner. We observe a clear improvement to convergence rates indicating that the basis functions successfully capture the local features of the system and resolve low-frequency errors. As a non-accelerated stand-alone solver, i.e. Richardson, MsRSB+ILU(0) converges in 30 iterations while ILU(0) fails to converge in 150 iterations. The set-up with the cheaper but less effective smoother SGS fails to converge in both cases although the multiscale stage again leads to a significantly higher convergence rate. The performance difference between the single-and two-level solvers is reduced when GMRES is used to accelerate the solution process, nonetheless the multiscale solvers still only require half as many iterations as smoothers alone. with a vertical thickness of 100 meters. Similar to the 2D case, the nodes of the grid are perturbed to create a rough grid. Additionally, the top surface has a varying topography. The model has five different regions of a log-normally distributed diffusion tensor, with mean values of 700, 1000, 300, 800 and 100 md·cP -1 , respectively as shown in Figure 5a. We consider a logically structured coarse mesh with block sizes of 5 by 5 by 5 fine cells, resulting in a total of 600 coarse blocks to partition the fine-grid with 75,000 cells. We apply a simple boundary condition resulting in flow from x = 0 to x = 1000 meters. In engineering applications, flow would typically be driven by wells, but our goal here is to produce flow over the entire domain to verify our implementation. The reference solution is plotted in Figure 5b.

28The convergence rates of MsRSB+ILU(0), ILU(0), MsRSB+SGS and SGS are compared in Figure 6 with and without Krylov acceleration. We observe that the benefits of the multiscale stage are more significant than in the 2D example. This is likely due to the denser stencil in 3D which leads to a fundamentally more difficult linear system, even for an equivalent number of degrees of freedom. We point out that the multiscale solver with SGS smoothing exhibits robust convergence with GMRES acceleration while the smoother-only setup stagnates. We also observe that the performance of the multiscale solver with ILU(0) is excellent, using 21 and 11 iterations without and with GMRES, respectively.

MsRSB for non-M matrices: FE simulation of linear elastic geomechanics

29In this section, we investigate the extension of the enhanced MsRSB preconditioner to linear systems arising from geomechanical problems assuming linear elastic behavior. By means of this application, we extend the method's applicability to problems with vector unknowns. The linear elastostatics governing equations and their FE discretization using a classical displacement formulation [53] are reviewed in Appendix A.2 and Appendix B.2, respectively. To compute the nodal displacement discrete solution, the FE method requires the solution of linear systems characterized by a fine scale stiffness matrix A that is SPD but not an M-matrix. Therefore, in the construction of the prolongation operator, a naïve implementation of MsRSB would exhibit the same convergence issues as discussed for the pressure equation in Section 3.1.

30To apply the enhanced MsRSB preconditioner, we observe that if the displacement degrees of freedom are ordered based on each coordinate direction, the stiffness matrix A possesses a block structure, namely:

31which reflects the full coupling between x, y, and z components of displacements. For preconditioning purposes, the complete matrix is often replaced with a sparser block diagonal approximation

32namely the separate displacement component (SDC) approximation proposed in [54]. The motivation behind the SDC approximation is that, using Korn's inequality, one can show that A (SDC) is spectrally equivalent to A [55,56]. Note that this approximation breaks down in the incompressible elasticity limit, i.e. Poisson ratio ν → 0.5. As each diagonal block in (9) corresponds to the finite element discretization of an anisotropic diffusion operator for the corresponding displacement component-see Remark Appendix B.2-, enhanced MsRSB can be readily applied to (10) to obtain a preconditioner for the fine-scale matrix. In FE-based elasticity simulation, two or three MsRSB basis functions are associated with displacement degrees of freedom located at each coarse node in a two-or threedimensional space, respectively. Computing such basis functions using A (sdc) implies that the fine-scale displacement field in each coordinate direction is expressed as a linear combination of coarse nodal displacement in the corresponding direction only. This represents a major difference with a classic MSFE approach [32] that accounts instead for additional coupling, at the price of a much denser prolongation operator, by representing the displacement solution in each direction employing basis functions in all coordinated directions. Nevertheless, we emphasize that the coarse operator, A c , computed using MsRSB basis functions will still capture the full coupling influences between x, y, and z displacement components. This extension to the enhanced MsRSB method is tested on a simple homogeneous problem defined in terms of dimensionless quantities with unit Lamé parameters, i.e. setting E=1 and ν=0.25. The fine grid is chosen to be 12 × 12 Cartesian. The coarse grid has 5 coarse nodes in each direction. Finally, the grid is rescaled by a factor of 20 in the y-dimension. The high aspect ratio is chosen to induce strong non-M matrix properties of the resulting linear system. Figure 7a depicts the coarse and fine grid of the test case on the x-y plane. To assess the robustness of the enhanced MsRSB method including the extension to vector physics, a basis function obtained using a naïve implementation of MsRSB is compared to the same basis function obtained with the enhanced method. Here, a naïve implementation of MsRSB is a straightforward application of the original method for M matrices to the linear system. Figure 7 depicts the obtained basis functions for a given coarse node. It is obvious from the plots that the naïve implementation leads to diverging basis functions whereas the enhanced method recovers the expected bi-linear interpolators of a Cartesian homogeneous problem. The results reemphasize the findings of section 3.1 and illustrate the performance of the enhanced MsRSB method for vector physics.

MsRSB for Geomechanics: A 2D Heterogeneous Test Case

33To compare the enhanced MsRSB method to an existing multiscale preconditioner for geomechanics [32], we investigate a 2D test case consisting of an elastic isotropic domain with a heterogeneous (layered) distribution of Young's modulus, shown in Figure 8. Four mesh families (cart, skew, trig and rand) are considered, each with a different type of geometric distortion applied to the coarse elements. In each case a 224 × 224 fine-scale mesh and 7 × 7 coarse mesh are defined on the domain. The reader is referred to section 4.1 of [32] for a more detailed description of the test case setup. Two Krylov solver setups are tested. The first variant is Preconditioned Conjugate Gradient (PCG), with a symmetric preconditioning operator constructed by pre-and post-smoothing the multiscale (MsRSB) operator with no-fill Incomplete Cholesky factorization (IC(0)). The second version employs Biconjugate Gradient Stabilized (BiCGStab) with a two-stage preconditioning scheme which consists of the multiscale operator as the global step and no-fill incomplete LU factorization (ILU(0)) as the local smoother. This setup is identical to the one used in [32], except that MSFE is replaced by enhanced MsRSB to construct the multiscale operator. Table 1 summarizes the iteration counts using PCG for different mesh families and levels of contrast in material properties. With exception of the case with extremely large coarse elements (7×7, which results in each coarse element consisting of 32 × 32 fine elements), the preconditioner offers robust performance over a variety of mesh families and types of boundary conditions. In a direct comparison against an identical setup using MSFE, from [32], Table 2 shows similar results obtained with BiCGSTab and a single ILU(0) smoothing step. Here, the proposed MsRSB method achieves similar performance compared to MSFE, with only a modest (about 20-25% on average) increase in the number of iterations for most cases, with a notable exception of Cartesian laterally constrained case, where MSFE basis functions provide an exact interpolation. Note that the BiCGStab solver applies the preconditioner twice at every iteration, which corresponds to two applications of both multiscale operator and smoother, whereas PCG employs a single application of the preconditioner, which involves two smoothing steps (pre-and post-smoothing) and only one multiscale step. Nevertheless, comparable performance is observed in terms of iteration count, suggesting PCG with symmetric preconditioning should lead to a more efficient option due to its lower cost per iteration.

MsRSB for Geomechanics: A Geological 2D Cross-Section Test Case

34A second geomechanics test case is designed to represent a 2D cross-section of an elastic subsurface porous media domain, characterized by distinct geological layers and faults (shown in Figure 9a). A vertical distribution of Young's modulus is prescribed, based on a correlation for uniaxial compressibility developed in [57] and recently used in [32]. Specifically, vertical compressibility is computed as c M = 0.01241|σ y | −1.1342 (11) where σ y = σ y + p = −0.12218|z| 1.0766 + 0.1|z| (12) is the vertical effective stress, consisting of vertical total stress σ y [bar] and hydrostatic pressure p (both in units of [bar −1 ]). Young's modulus is expressed as

35with a Poisson ratio ν set to 0.3 everywhere. In addition, a constant value is added to Young's modulus in each layer, specifically the mean Young's modulus in that layer multiplied by a layer-dependent coefficient. This is done to emulate discontinuities in material properties between layers as often encountered in real subsurface systems. The resulting distribution spans 3 orders of magnitude over the domain and is depicted in Figure 9c. The domain is gridded with an unstructured triangular mesh that conforms to the layers and faults (see Figure 9b) with the faults themselves considered inactive (no slip between fault surfaces). Seven different resolutions of the mesh are considered, ranging between 11,879 and 745,900 elements -see Table 3 for detailed information on mesh resolution and corresponding problem sizes. The domain is subject to roller boundary conditions on three sides, while the ground surface is traction-free. The deformation process is driven by a constant pressure drawdown of ∆p = 20 bar prescribed in a small reservoir zone inside the domain (shown in Figure 9b), that acts as an external distributed force.

36To evaluate the algorithmic scalability of the MsRSB method for mechanics, the problem is solved with a Krylov solver (namely PCG) to a relative tolerance of 10 −8 . Three symmetric two-stage preconditioning operators are constructed using different choices of pre-and post-smoother: 2 sweeps of l 1 -Jacobi, symmetric Gauss-Seidel, and no-fill incomplete Cholesky factorization. The coarse grid for the multiscale solver is generated by agglomerating fine-scale cells based on face connectivity using METIS [58] graph partitioning software. For each mesh resolution, the ratio of fine-to-coarse elements and nodes is kept approximately the same, which results in the size of the coarse problem growing with mesh resolution. As a comparative baseline, a smoothing-only preconditioner (i.e. not involving the global multiscale step) is also applied to the problem for each choice of smoother. Krylov iteration counts are recorded to evaluate performance. Table 4 summarizes the findings. The multiscale solver convergence remains well bounded for all mesh resolutions and only exhibits very mild mesh dependence, while the baseline approach does not scale well, in some cases failing to achieve convergence within 1000 CG iterations. This example demonstrates a clear benefit of using a multiscale approach for subsurface mechanical problems compared to relying on incomplete factorizations only. It also emphasizes the method's excellent algorithmic scalability and mesh independence on two-dimensional unstructured grids.

MsRSB for Geomechanics: A 3D Test Case

37A third test is performed on a 3D poromechanical domain representing a 16 × 16 × 4 km subsurface formation. The vertical distribution of Young's modulus prescribed by Eq. 11-13 is applied without discontinuities, and Poisson ratio is again set to 0.3. Also similar to the previous case, boundary conditions are imposed to be rollers (zero normal displacement) on all sides except for the traction-free top surface. Forcing is prescribed through pressure drawdown of ∆p 1 = 15 bar and ∆p 2 = 22 bar, respectively, in two reservoirs located around the center of the domain highlighted in Figure 10a. Table 4: Geological 2D cross-section test case: PCG iteration counts. "MsRSB" denotes the two-stage multiscale preconditioner with pre-and post-smoothing. "no MS" columns reports results for the baseline approach (only pre-and post-smoother, without the multiscale step). Dashes are shown for cases where the solver failed to converge in 1000 iterations. The domain is initially gridded with a 70 × 70 × 70 structured Cartesian grid, labeled as cart. It is then coarsened with a factor of 10 in each dimension, resulting in a 7×7×7 coarse-scale grid. In addition, nodes of the grid are shifted, resulting in a skewed grid, shown in Figure 10a, labeled skew. For both grids, the multiscale preconditioner was constructed using the same choices of pre-and post-smoothers as in the previous example. i.e. l 1 -Jacobi, symmetric Gauss-Seidel and no-fill incomplete Cholesky (the latter not being used with the skewed mesh due to numerical breakdowns in factorization which are not related to the multiscale method). A sequence of progressively finer coarse grids is used, containing between 5 and 14 coarse cells in each dimension. Table 5 reports the observed iteration counts using CG as the chosen Krylov method and Figure 11 compares convergence histories obtained using both multiscale (with a 10 × 10 × 10 coarse element size) and smoother-only preconditioned CG solvers.

38The results are in line with the lower dimensional test cases. Acceptable iteration counts and good scalability is observed. Moreover, the test case indicates that the developed enhanced MsRSB method generates a robust multiscale preconditioner for 3D geomechanics or other vectorial physics yielding non-M matrices.

Conclusion

39A novel multiscale method for non M-matrices using Multiscale Restricted Smoothed Basis(MsRSB) functions is presented. The essence of the enhanced MsRSB method consists of enforcing M-matrix properties on the fine-scale linear system based on a filtering technique. Using the resulting approximate linear system, basis functions can robustly be constructed using the original iterative MsRSB strategy. The method is demonstrated for the single phase flow problem and the linear elastic geomechanics problem. Enhanced MsRSB is validated to be effective through various test cases including heterogeneous, unstructured 2-dimensional and 3-dimensional problems . Moreover, when it is applied as a preconditioner, the results show similar iteration counts compared to existing multiscale methods while enabling increased flexibility, easier implementation and sparser systems. Studies on CPU times and computational efficiency are subject of further work.

40Finally, as shown for the porous media problem, the proposed method allows for the application of multiscale methods to multipoint stencils. Noting that multiscale operators are themselves inherently multipoint, the adapted MsRSB enables multilevel multiscale. Such a development has not yet been achieved in literature and is the topic of current research.

Appendix A.2. Linear elastostatics

41Let d = {d } n sd =1 be the displacement-vector, where d = (e · d) are the displacement components with respect to the Euclidean basis {e} n sd =1 in R n sd . Let us consider n sd non-overlapping partitions of the domain boundary into two segments associated with Dirichlet, Γ D , and Neumann boundary conditions, Γ N , respectively, such that Γ = Γ D ∪ Γ N , with Γ D ∩ Γ N = ∅, ∈ {1, . . . , n sd }. The strong form of the linear elastostatic BVP reads as: given b : Ω → R 3 , g D, : Γ D → R, and g N, : Γ N → R, find d :

42in Ω (equilibrium equations), (A.2a)

43in Ω (generalized Hooke's law), (A.2d)

44with ∈ {1, . . . , n sd }.. Here, σ(d) is the rank-2 stress-tensor, respectively, C dr is the rank-4 elasticity tensor, and b is a body force. In this work we will focus on isotropic linear elastic materials, hence only two independent elastic coefficients are required for the definition of C, namely

45where I and I are the second-order and fourth-order identity tensor, respectively, and λ = Eν (1+ν)(1−2ν) and G = E 2(1+ν) are the Lamé parameters of the material, with E the Young modulus and ν the Poisson ratio. Note that the subscripts x, y, and z are also used to denote a quantity associated with the spatial dimension equal to 1, 2, and 3, respectively. Given a partition T h of the domain Ω consisting of non-overlapping conforming cells, a finite volume discretization of (A.1) consists of writing the pressure equation for each cell (control-volume) in T h in integral form [59]. Let F h be the set of interfaces in T h , namely edges (n sd = 2), or faces (n sd = 3). Let V h be the space of piecewise constant cell-wise fuctions associated with T h . We consider a discrete approximation for the pressure field such that p ≈ u h ∈ V h . Let g h D denote the piecewise constant interface-wise interpolant of g D having support in F h,D ⊂ F h , namely the set of interfaces belonging to Γ D . Similarly, F h,N ⊂ F h is the set of boundary interfaces lying on Γ N . Finally, letŵ γ denote a conservative numerical flux approximating the volumetric flux through an interface γ ∈ F h , namelyŵ γ ≈ γ w · n γ dΓ, with n γ a unit normal vector defining a unique global orientation for γ. Based on a suitable functional dependence on u h and g h D , for linear flux approximation schemesŵ γ (u h , g h D ) can be split as a sum of two terms;ŵ

46to highlight the contribution to the flux related to u h and g h D , respectively. Clearly,w γ (g h D ) is nonzero only in the presence of non homogeneous pressure boundary conditions. The first term to the right-hand side in (B.1) is expressed as a linear combination of pressure values from selected cells-e.g., the two cells sharing γ in the TPFA method, or the cells sharing at least a vertex with γ in the MPFA-O method [48,50]-using constant transmissibility coefficients. A similar linear expression is utilized forw γ (g h D ). Nonlinear flux approximation schemes are not considered in this work. For a review and details on recent developments on finite volume discretizations for anisotropic diffusion problems in heterogeneous media, we refer the reader to [44,47] and references therein.

47The finite volume discretization provides an approximation u h to the weak pressure solution of(A.1) by solving a set of discrete balance equations that are equivalent to the following mesh-dependent variational problem: find

48where the discrete bilinear form a h : V h × V h → R and the discrete linear form F : V h → R are defined as

49Here, the symbol · γ denotes the jump of a quantity across an interface

50with v h |τ L and v h |τ K the restriction of v h on cells τ K and τ L sharing γ, with n γ pointing from τ K to τ L . For domain boundary interfaces, the jump expression simplifies to v h γ = −v h |τ K . To obtain the matrix form of the FV discrete problem, we introduce the basis {χ i } i∈N h for V h , with χ i the characteristic function of the ith cell τ i in T h such that

51. . , n τ } with n τ the total number of cells. Hence, the approximate pressure field is expressed as p(x) ≈ u h (x) = i∈N h u i χ i (x), with u i the unknown cell pressure values. Requiring that u h satisfy (B.4) for each function of the basis itself yields the system of discrete balance equations for the unknown coefficients vector u = {u i } A p u = f p , (B.5)

52with the system matrix A p and the right-hand side f p such that [A p ] i j = a(χ i , χ j ) with {i, j} ∈ N h × N h and {f p } i = F(χ i ), with i ∈ N h . The properties of matrix A p depend on the flux approximation scheme chosen forŵ γ . For example, a TPFA scheme produces a symmetric positive definite matrix whereas MPFA methods typically lead to a non-symmetric A p [44]. .

(B.9)

53Let X h be the finite element space of piecewise polynomial vector functions that are continuous in Ω associated with a conforming triangulation T h of Ω. Let {η i } i∈N h be the standard (vector) nodal basis for X h , with N h = {1, . . . , n sd n n } and n n the number of node points in T h . We define the finite dimensional counterpart of V as V h = X h ∩ V and denote its basis as {η i } i∈N h u , with N h u ⊂ N h the set of indexes of basis functions of X h vanishing on Γ D , ∈ {1, . . . , n sd }. The discrete approximation to the displacement field can then be expressed as

54whereg h D ∈ X h is the trivial discrete extension of the Dirichlet boundary datum such that e ·g h D on Γ D is equal to the finite element interpolant of g D, , ∈ {1, . . . , n sd }, φ j = (e · η j (x)) , and u h ∈ V h is an approximate solution to the corresponding homogeneous Dirichlet problem with u j the unknown nodal displacement degrees of freedom. Substitutingg D byg h D in (B.8) and requiring that u h satisfy (B.6) for each basis function of V h yields the matrix form of the variational problem, namely the system of equations for the unknown coefficients vector u = {u j }

55with A d and f d the symmetric positive definite (SPD) stiffness matrix and force vector, respectively, such that [A d ] i j = a(η i , η j ) with {i, j} ∈ N h u × N h u and {f d } i = F(η i ), with i ∈ N h u . Remark Appendix B.1. For efficiency reasons, the linear system (B.11) is typically assembled ignoring the essential (Dirichlet) boundary conditions-i.e., {η i , η j } is the range over the bases for X h . This is also the strategy adopted in our implementation. The Dirichlet conditions are introduced by using a so-called symmetric diagonalization approach [60]. In this approach, rows and columns of the stiffness matrix associated with displacement degrees of freedom where such conditions apply are modified while preserving symmetry, with the right-hand-side updated accordingly.

56Remark Appendix B.2. If displacement degrees of freedom are ordered based on each coordinate direction, A d possesses a n sd × n sd block structure, namely: which reflects the full coupling between -components of displacements, = {1, . . . , n sd }. Each diagonal block A in (9) corresponds to the finite element discretization of the anisotropic diffusion operator −div(Λ · grad d ), with anisotropic diffusion tensor Λ = GI + (G + λ) e ⊗ e , = {1, . . . , n sd }.

참고문헌 69건

  1. Solving Numerical PDEs: Problems, Applications, Exercises Unitext · Springer International Publishing · 2012 10.1007/978-88-470-2412-0
  2. Nonnegative Matrices in the Mathematical Sciences Elsevier eBooks · Elsevier BV · 1979 10.1016/c2013-0-10361-3
  3. Iterative Methods for Sparse Linear Systems Society for Industrial and Applied Mathematics eBooks · Society for Industrial and Applied Mathematics · 2003 10.1137/1.9780898718003
  4. (제목 없음) Computational Geosciences · Springer Science+Business Media · 2002 10.1023/a:1021291114475
  5. (제목 없음) Annals of Software Engineering · Springer Nature · 1998 10.1023/a:1011510505406
  6. Finite volume methods Handbook of numerical analysis · Elsevier BV · 2000 10.1016/s1570-8659(00)07005-8
  7. The Finite Element Method: Linear Static and Dynamic Finite Element Analysis 1987
  8. (제목 없음) Computational Geosciences · Springer Science+Business Media · 2002 10.1023/a:1021295215383
  9. A Generalized Multiscale Finite Element Method for poroelasticity problems I: Linear problems Journal of Computational and Applied Mathematics · Elsevier BV · 2015 10.1016/j.cam.2015.08.007
  10. Adaptive Smoothed Aggregation ($\alpha$SA) Multigrid SIAM Review · Society for Industrial and Applied Mathematics · 2005 10.1137/050626272
  11. On the relationship between the multiscale finite-volume method and domain decomposition preconditioners Computational Geosciences · Springer Science+Business Media · 2008 10.1007/s10596-007-9066-6
  12. Iterative methods for the solution of the navier equations of elasticity Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1978 10.1016/0045-7825(78)90026-9
  13. Algebraic multiscale solver for flow in heterogeneous porous media Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.11.024
  14. A Multiscale Mortar Mixed Finite Element Method Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2007 10.1137/060662587
  15. Multi-scale finite-volume method for elliptic problems in subsurface flow simulation Journal of Computational Physics · Elsevier BV · 2003 10.1016/s0021-9991(03)00075-5
  16. A mixed multiscale finite element method for elliptic problems with oscillating coefficients Mathematics of Computation · American Mathematical Society · 2002 10.1090/s0025-5718-02-01441-2
  17. Generalized Finite Element Methods: Their Performance and Their Relation to Mixed Methods SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1983 10.1137/0720034
  18. 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
  19. Mixed Generalized Multiscale Finite Element Methods and Applications Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2015 10.1137/140970574
  20. Coupling multiscale finite element method for consolidation analysis of heterogeneous saturated porous media Advances in Water Resources · Elsevier BV · 2008 10.1016/j.advwatres.2008.11.002
  21. Special issue on multiscale methods for flow and transport in heterogeneous porous media Computational Geosciences · Springer Science+Business Media · 2008 10.1007/s10596-008-9084-z
  22. A multilevel multiscale mimetic (M3) method for two-phase flows in porous media Journal of Computational Physics · Elsevier BV · 2008 10.1016/j.jcp.2008.03.029
  23. Basin-scale compressibility of the northern Adriatic by the radioactive marker technique Géotechnique · ICE Publishing · 2002 10.1680/geot.2002.52.8.605
  24. Iterative multiscale finite-volume method Journal of Computational Physics · Elsevier BV · 2008 10.1016/j.jcp.2008.06.013
  25. A Fast and High Quality Multilevel Scheme for Partitioning Irregular Graphs SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 1998 10.1137/s1064827595287997
  26. Multiscale finite element coarse spaces for the application to linear elasticity Open Mathematics · De Gruyter Open · 2013 10.2478/s11533-012-0166-8
  27. Finite volume schemes for diffusion equations: Introduction to and review of modern methods Mathematical Models and Methods in Applied Sciences · World Scientific · 2014 10.1142/s0218202514400041
  28. A version of the finite element method USSR Computational Mathematics and Mathematical Physics · Pergamon Press · 1979 10.1016/0041-5553(79)90164-2
  29. On parallel solution of linear elasticity problems: Part I: theory Numerical Linear Algebra with Applications · Wiley · 1998 10.1002/(sici)1099-1506(199803/04)5:2<123::aid-nla130>3.0.co;2-d
  30. Displacement decomposition—incomplete factorization preconditioning techniques for linear elasticity problems Numerical Linear Algebra with Applications · Wiley · 1994 10.1002/nla.1680010203
  31. Abstract robust coarse spaces for systems of PDEs via generalized eigenproblems in the overlaps Numerische Mathematik · Springer Science+Business Media · 2013 10.1007/s00211-013-0576-y
  32. Two-Stage Algebraic Multiscale Linear Solver for Highly Heterogeneous Reservoir Models SPE Journal · Society of Petroleum Engineers · 2012 10.2118/141473-pa
  33. Generalized multiscale finite element methods (GMsFEM) Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.04.045
  34. Multiscale mixed/mimetic methods on corner-point grids Computational Geosciences · Springer Science+Business Media · 2008 10.1007/s10596-007-9072-8
  35. Algebraic multigrid by smoothed aggregation for second and fourth order elliptic problems Computing · Springer Science+Business Media · 1996 10.1007/bf02238511
  36. Special Finite Element Methods for a Class of Second Order Elliptic Problems with Rough Coefficients SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1994 10.1137/0731051
  37. Operator-Based Multiscale Method for Compressible Flow All Days · 2007 10.2118/106254-ms
  38. A multiscale restriction-smoothed basis method for high contrast porous media represented on unstructured grids Journal of Computational Physics · Elsevier BV · 2015 10.1016/j.jcp.2015.10.010
  39. Multiscale Finite Elements for Linear Elasticity: Oscillatory Boundary Conditions Lecture notes in computational science and engineering · Springer Nature · 2014 10.1007/978-3-319-05789-7_20
  40. Convergence of algebraic multigrid based on smoothed aggregation Numerische Mathematik · Springer Science+Business Media · 2001 10.1007/s211-001-8015-y
  41. EfficientModeling of Flow and Transport in Porous Media Using Multiphysics andMultiscale Approaches Springer eBooks · Springer Nature · 2010 10.1007/978-3-642-01546-5_15
  42. Multiscale Finite-Volume CVD-MPFA Formulations on Structured and Unstructured Grids Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2016 10.1137/140953691
  43. Algebraic multiscale method for flow in heterogeneous porous media with embedded discrete fractures (F-AMS) Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.06.012
  44. A Multiscale Restriction-Smoothed Basis Method for Compressible Black-Oil Models SPE Journal · Society of Petroleum Engineers · 2016 10.2118/173265-pa
  45. Numerical Mathematics and Advanced Applications Springer eBooks · Springer Nature · 2008 10.1007/978-3-540-69777-0
  46. A Real-Field Multiscale Black-Oil Reservoir Simulator SPE Journal · Society of Petroleum Engineers · 2016 10.2118/173226-pa
  47. Cell-centered nonlinear finite-volume methods for the heterogeneous anisotropic diffusion problem Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.11.010
  48. Multiscale finite-element method for linear elastic geomechanics Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.11.044
  49. The finite element method. Linear static and dynamic finite element analysis Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1987 10.1016/0045-7825(87)90013-2
  50. Successful application of multiscale methods in a real reservoir simulator environment Computational Geosciences · Springer Science+Business Media · 2017 10.1007/s10596-017-9627-2
  51. Domain Decomposition Methods in Science and Engineering XXI Lecture notes in computational science and engineering · Springer Nature · 2014 10.1007/978-3-319-05789-7
  52. Accelerated Smoothing and Construction of Prolongation Operators for the Multiscale Restricted-Smoothed Basis Method on Distributed Memory Systems 2016
  53. Use of Multiple Multiscale Operators To Accelerate Simulation of Complex Geomodels SPE Journal · Society of Petroleum Engineers · 2017 10.2118/182701-pa
  54. A multiscale fixed stress split iterative scheme for coupled flow and poromechanics in deep subsurface reservoirs Journal of Computational Physics · Elsevier BV · 2017 10.1016/j.jcp.2017.09.049
  55. Multiscale model reduction for shale gas transport in poroelastic fractured media Journal of Computational Physics · Elsevier BV · 2017 10.1016/j.jcp.2017.10.023
  56. Algebraic dynamic multilevel method for compositional flow in heterogeneous porous media Journal of Computational Physics · Elsevier BV · 2017 10.1016/j.jcp.2017.10.052
  57. A mixed generalized multiscale finite element method for planar linear elasticity Journal of Computational and Applied Mathematics · Elsevier BV · 2018 10.1016/j.cam.2018.08.054
  58. Multiscale two-stage solver for Biot’s poroelasticity equations in subsurface media Computational Geosciences · Springer Science+Business Media · 2018 10.1007/s10596-018-9791-z
  59. Multiscale finite volume method for finite-volume-based simulation of poroelasticity Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.11.039
  60. A generalized multiscale finite element method for poroelasticity problems II: Nonlinear coupling Journal of Computational and Applied Mathematics · Elsevier BV · 2015 10.1016/j.cam.2015.11.007
  61. An Introduction to Reservoir Simulation Using MATLAB/GNU Octave 2019 10.1017/9781108591416
  62. A Multiscale Control Volume framework using the Multiscale Restriction Smooth Basis and a non-orthodox Multi-Point Flux Approximation for the simulation of two-phase flows on truly unstructured grids Journal of Petroleum Science and Engineering · Elsevier BV · 2019 10.1016/j.petrol.2019.106851
  63. Finite volume schemes for diffusion equations: Introduction to and review of modern methods Mathematical Models and Methods in Applied Sciences · World Scientific · 2014 10.1142/s0218202514400041
  64. Multiscale Finite Element Methods: Theory and Applications 2009
  65. Operator-Based Multiscale Method for Compressible Flow SPE Journal · Society of Petroleum Engineers · 2008 10.2118/106254-pa
  66. Nonnegative Matrices in the Mathematical Sciences 1994 10.1137/1.9781611971262
  67. Handbook of Geomathematics Springer eBooks · Springer Nature · 2010 10.1007/978-3-642-01546-5
  68. Variational and Heterogeneous Multiscale Methods Springer eBooks · Springer Nature · 2010 10.1007/978-3-642-11795-4_76
  69. Constrained pressure residual multiscale (CPR-MS) method for fully implicit simulation of multiphase flow in porous media Journal of Computational Physics · Elsevier BV · 2015 10.1016/j.jcp.2015.07.019