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

Multiscale dimension reduction for flow and transport problems in thin domain with reactive boundaries

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

기본 정보

저자
  1. Vasilyeva, Maria
  2. Alekseev, Valentin
  3. Chung, Eric T.
  4. Efendiev, Yalchin
DOI
10.48550/arxiv.2009.01422
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.2009.01422
토픽
Composite Material Mechanics
OpenAlex ID
W6891835745

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
flow and transport problems, thin domains, multiscale model reduction, convection-diffusion equation, reactive boundaries
판단 근거
본 논문은 얇은 영역(thin domain)에서의 유체 흐름 및 물질 전달(transport) 문제를 해결하기 위한 다중척도(multiscale) 차원 축소 모델링 기법을 다룹니다. 이는 수소연료전지(PEMFC)의 핵심 구성 요소인 막가습기(5)의 중공사막 내 유체 흐름이나, 전해질막(6) 및 막전극접합체(7) 내에서의 이온/물질 전달 현상을 수치적으로 시뮬레이션하고 최적화하는 데 응용될 수 있는 수학적 방법론입니다.
R&D 활용 포인트
PEMFC용 중공사막(hollow fiber membrane) 내의 수증기 투과 및 유체 흐름을 효율적으로 예측하기 위한 수치 해석 모델링 및 시뮬레이션 가속화에 활용 가능합니다.
평가 입력
본문 120,950자 중 30,032자 발췌

초록

In this paper, we consider flow and transport problems in thin domains. The mathematical model considered in the paper is described by a system of equations for velocity, pressure, and concentration, where the flow is described by the Stokes equations and the transport is described by an unsteady convection-diffusion equation with non-homogeneous boundary conditions on walls (reactive boundaries). We start with the finite element approximation of the problem on unstructured grids and use it as a reference solution for two and three-dimensional model problems. Fine grid approximation resolves complex geometries on the grid level and leads to a large discrete system of equations that is computationally expensive to solve. To reduce the size of the discrete systems, we develop a multiscale model reduction technique, where we construct local multiscale basis functions to generate a lower-dimensional model on a coarse grid. The proposed multiscale model reduction is based on the Discontinuous Galerkin Generalized Multiscale Finite Element Method (DG-GMsGEM). In DG-GMsFEM for flow problems, we start with constructing the snapshot space for each interface between coarse grid cells to capture possible flows. For the reduction of the snapshot space size, we perform a dimension reduction via a solution of the local spectral problem and use eigenvectors corresponding to the smallest eigenvalues as multiscale basis functions for the approximation on the coarse grid. For the transport problem, we construct multiscale basis functions for each interface between coarse grid cells and present additional basis functions to capture non-homogeneous boundary conditions on walls. Finally, we will present some numerical simulations for three test geometries for two and three-dimensional problems to demonstrate the method's performance.

본문 120,950자

본문 펼치기
## Multiscale dimension reduction for flow and transport problems in thin domain with reactive boundaries Maria Vasilyeva <sup>_∗_</sup> Valentin Alekseev <sup>_†_</sup> Eric T. Chung <sup>_‡_</sup> Yalchin Efendiev <sup>_§_</sup> September 4, 2020 Abstract In this paper, we consider flow and transport problems in thin domains. Modeling problems in thin domains occur in many applications, where thin domains lead to some type of reduced models. A typical example is one dimensional reduced-order model for flows in pipe-like geometries (e.g., blood vessels). In many reduced-order models, the model equations are described apriori by some analytical approaches. In this paper, we propose the use of multiscale methods, which are alternative to reduced-order models and can represent reduced-dimension modeling by using fewer basis functions (e.g., the use of one basis function corresponds to one dimensional approximation). The mathematical model considered in the paper is described by a system of equations for velocity, pressure, and concentration, where the flow is described by the Stokes equations, and the transport is described by an unsteady convection-diffusion equation with non-homogeneous boundary conditions on walls (reactive boundaries). We start with the finite element approximation of the problem on unstructured grids and use it as a reference solution for two and three-dimensional model problems. Fine grid approximation resolves complex geometries on the grid level and leads to a large discrete system of equations that is computationally expensive to solve. To reduce the size of the discrete systems, we develop a multiscale model reduction technique, where we construct local multiscale basis functions to generate a lower-dimensional model on a coarse grid. The proposed multiscale model reduction is based on the Discontinuous Galerkin Generalized Multiscale Finite Element Method (DG-GMsGEM). In DG-GMsFEM for flow problems, we start with constructing the snapshot space for each interface between coarse grid cells to capture possible flows. For the reduction of the snapshot space size, we perform a dimension reduction via a solution of the local spectral problem and use eigenvectors corresponding to the smallest eigenvalues as multiscale basis functions for the approximation on the coarse grid. For the transport problem, we construct multiscale basis functions for each interface between coarse grid cells and present additional basis functions to capture non-homogeneous boundary conditions on walls. Finally, we will present some numerical simulations for three test geometries for two and three-dimensional problems to demonstrate the method’s performance. ### 1 Introduction Mathematical models in thin domains occur in many real-world applications, scientific and engineering problems. Fluid flow and transport in thin tube structures are widely used in biological applications, for example, to simulate blood flow in vessels [1, 2, 3]. In engineering problems, flow simulation is used _∗_ Multiscale model reduction Laboratory, North-Eastern Federal University, Yakutsk, Russia, Institute for Scientific Computation, Texas A&M University, College Station, TX, USA. Email: `vasilyevadotmdotv@gmail.com` . _†_ Yakutsk branch of the Regional Scientific and Educational Mathematical Center ”Far Eastern Center of Mathematical Research”, North-Eastern Federal University, Yakutsk, Russia, Multiscale model reduction Laboratory, North-Eastern Federal University, Yakutsk, Russia _‡_ Department of Mathematics, The Chinese University of Hong Kong (CUHK), Hong Kong SAR. Email: `tschung@math.cuhk.edu.hk` . _§_ Department of Mathematics & Institute for Scientific Computation (ISC), Texas A&M University, College Station, Texas, USA. Email: `efendiev@math.tamu.edu` . to study fluid flow in complex pipe structures, for example in pipewise industrial installations, wells in oil and gas industry, heat exchangers, etc. In reservoir simulations, thin domains are related to the fractures that usually have complex geometries with very small thickness compared to typical reservoir sizes [4, 5, 6]. Such problems are often considered with complex interaction processes with surrounding media or walls. In many applications, these problems are transformed to reduced (e.g., one) dimensional problems via some type of apriori postulated models. Our goal is to present an alternative approach to analytical model reduction by using multiscale basis functions. For the applicability of the convenient numerical methods for simulations of such problems, a very fine grid should be constructed to resolve the geometry’s complex structure on the grid level. Moreover, a very small domain thickness provides an additional complexity in the grid construction for thin and long domains. For a fast and accurate solution of the presented problem, a homogenization (upscaling) technique or multiscale models are used, which are based on constructing the lower dimensional coarse grid models. The asymptotic behavior of the solutions in thin domains is intensively studied. In [7], the authors consider the problem of complete asymptotic expansion for the time-dependent Poiseuille flow in a thin tube. In [8], the method of asymptotic partial decomposition of a domain (MAPDD) was presented to reduce the computational complexity of the numerical solution of such problems. This method combines the three-dimensional description in some neighborhoods of bifurcations and the onedimensional description out of these small subdomains, and it prescribes some special junction conditions at the interface between these 3D and 1D submodels. Numerical results were presented in [2] for the method of asymptotic partial domain decomposition for thin tube structures with Newtonian and nonNewtonian flows in large systems of vessels. Our goal is to provide an alternative systematic approach to model reduction for thin domain problems that can add complexity via additional multiscale basis functions. Model reduction techniques usually depend on a coarse grid approximation, which can be obtained by discretizing the problem on a coarse grid and choosing a suitable coarse-grid formulation of the problem. In the literature, several approaches have been developed to obtain the coarse-grid formulation for the problems in heterogeneous domains, including multiscale finite element method [9, 10, 11], mixed multiscale finite element method [12, 13], generalized multiscale finite element method [14, 15, 16, 17, 18], multiscale mortar mixed finite element method [19], multiscale finite volume method [20, 21], variational multiscale methods [22, 23, 24], and heterogeneous multiscale methods [25] and etc. The non - conforming multiscale method is considered for the solution of the Stokes flow problem in a heterogeneous domain in [26, 27]. In [28, 29], we presented the Generalized Multiscale Finite Element Method (GMsFEM) for the solution of the flow problems in perforated domains with continuous multiscale basis functions. GMsFEM shows a good accuracy for solving the nonlinear (non - Newtonian) fluid flow problems [30]. In [31], we presented the Discontinuous Galerkin Generalized Multiscale Finite Element Method (DG-GMsFEM) for the solving the two - dimensional problems in perforated domains. In this paper, we consider flow and transport processes in thin structures with reactive boundaries. The mathematical model is described using Stokes equations and the unsteady convection-diffusion equation with non - homogeneous boundary conditions. Non-homogeneous boundary conditions occur in many applications. For example, the pore-scale modeling and simulation of reactive flow in porous media have many applications in many branches of science such as biology, physics, chemistry, geomechanics, and geology [32, 33, 34]. In order to handle the complex geometry of the walls and non-homogeneous boundary conditions on them, we present additional spectral multiscale basis functions. In this work, we continue developing the multiscale model reduction techniques for problems with multiscale features and developing the generalization of the techniques for DG-GMsFEM. In our previous work [35, 36], we considered elliptic problems in perforated domains and constructed additional basis functions to capture non-homogeneous boundary conditions on perforations. In [35], we proposed a non-local multi-continua (NLMC) method for Laplace, elasticity, and parabolic equations with non-homogeneous boundary conditions on perforations. In [36], we considered the Continuous Galerkin Generalized Multiscale Finite Element Method (CG-GMsFEM) for problems in perforated domains with non-homogeneous boundary conditions, where we constructed one additional basis function for local domains with perforations. Recently, we extended this technique for solving unsaturated flow problems in heterogeneous domains with rough boundary [37]. In this work, we consider DG-GMsFEM and present additional spectral basis functions for rough non-homogeneous boundaries in transport problems. The concept is based on the separation of the snapshots for each feature and shares a lot of similarities with multiscale methods for fractured media presented in our previous works [38, 39]. Our work is also motivated by a recently developed Edge GMsFEM, where multiscale basis functions are constructed for each coarse grid interface [40, 41]. In this work, we use the DG-GMsFEM for constructing multiscale basis functions for problems in thin domains. The goals of this paper are in constructing the general approach for problems in complex thin geometries with an accurate approximation of the velocity space and transport processes. We construct local multiscale basis functions to generate a lower-dimensional model on a coarse grid. In DG-GMsFEM for flow problem, we start with constructing the snapshot space that captures possible flows between coarse cell interfaces. After constructing the snapshot space, we perform a dimension reduction by a solution of the local spectral problems. For the pressure approximation, we use piecewise constant functions on the coarse grid. For the transport problem, we construct multiscale basis functions for each interface between coarse grid cells and present additional basis functions to capture non-homogeneous boundary conditions on walls. The presented snapshot spaces can accurately capture processes on the rough wall boundaries with non-homogeneous boundary conditions on them. We present the results of the numerical simulations for three test geometries for two and three-dimensional problems. As we mentioned earlier, our goal is to investigate the use of multiscale and generalized multiscale methods for dimension reduction for problems in this domains. Many existing approaches propose analytical or semi-analytical reduced-dimensional problems, where the dimensions are determined apriori. Our idea is to use generalized multiscale method and identify the dimension. The proposed approach combined with aposteriori error estimate can further identify the dimension across thin layers and allow obtaining more accurate solution. The paper is organized as follows. In Section 2, we describe the problem formulation and the fine-scale approximation. In Section 3, we present the multiscale method for flow and transport processes in thin structures with rough reactive boundaries. In Section 4, we present numerical results. The paper ends with a conclusion. ### 2 Problem formulation Let Ωbe a thin domain with multiscale features, where the thickness is small compared to the domain length (See Figure 1 for an illustration). We will consider the following flow and transport equations in the thin domain Ω _ρ_ <sup>_<u>∂u</u>_</sup> _∂t_ <sup>_−_</sup> <sup>_µ_</sup> <sup>∆</sup> <sup>_u_</sup> <sup>+</sup> <sup>_∇p_</sup> <sup>= 0</sup> <sup>_,_</sup> _x ∈_ Ω _,_ _∇· u_ = 0 _,_ _x ∈_ Ω _,_ _<u>∂c</u>_ _∂t_ <sup>+</sup> <sup>_u∇c −∇_</sup> <sup>(</sup> <sup>_D∇c_</sup> <sup>) = 0</sup> <sup>_,_</sup> _x ∈_ Ω _,_ (1) where _µ_ is the fluid viscosity, _ρ_ is the fluid density, _D_ is the diffusion coefficient, _c_ is the concentration, _u_ and _p_ are the velocity and pressure. The system (1) is equipped with following initial conditions _c_ = _c_ 0 _,_ _u_ = _u_ 0 _,_ _x ∈_ Ω _,_ _t_ = 0 _._ Moreover, We consider the following boundary conditions for the flow problem _u_ = _g,_ _x ∈_ Γ _in,_ ( _∇u −_ _pI_ ) _· n_ = 0 _,_ _x ∈_ Γ _out,_ _u_ = 0 _,_ _x ∈_ Γ _w,_ Figure 1: Illustration of a thin domain Ωwith multiscale features. and for the transport problem _c_ = _cin,_ _x ∈_ Γ _in,_ _−D∇c · n_ = 0 _,_ _x ∈_ Γ _out,_ _−D∇c · n_ = _α_ ( _c −_ _cw_ ) _,_ _x ∈_ Γ _w,_ where _n_ is the unit outward normal vector on _∂_ Ω, _I_ is the identity matrix, Γ _in_ is the inflow boundary, Γ _out_ is the outflow boundary, Γ _w_ is the reactive boundary of the thin domain, Γ _w ∪_ Γ _in ∪_ Γ _out_ = _∂_ Ω(see Figure 1). In order to solve the problem (1), we generate an unstructured grid (fine grid) and use a finite element approximation for the spatial discretization. Let _T_ <sup>_h_</sup> be a fine-grid partition of the domain Ωgiven by _T_ <sup>_h_</sup> = _Ncell_ <sup>_h_</sup> _i_ =1 _Ki,_ _cell_ <sup>_h_</sup> <sup>is the number of fine grid cells.</sup> <sup>We use</sup> <sup>_E_</sup> <sup>_h_</sup> <sup>to denote the set of facets in</sup> <sup>_T_</sup> <sup>_h_</sup> <sup>with</sup> <sup>_E_</sup> <sup>_h_</sup> <sup>=</sup> <sup>_E_</sup> _o_ <sup>_h_</sup> where _N_ <sup>_h_</sup> where _Ncell_ <sup>_h_</sup> <sup>is the number of fine grid cells.</sup> <sup>We use</sup> <sup>_E_</sup> <sup>_h_</sup> <sup>to denote the set of facets in</sup> <sup>_T_</sup> <sup>_h_</sup> <sup>with</sup> <sup>_E_</sup> <sup>_h_</sup> <sup>=</sup> <sup>_E_</sup> _o_ <sup>_h_</sup> <sup>_∪E_</sup> _b_ <sup>_h_</sup> <sup>,</sup> where _Eo_ <sup>_h_</sup> <sup>is</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>interior</sup> <sup>facets</sup> <sup>and</sup> <sup>_E_</sup> _b_ <sup>_h_</sup> <sup>is</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>boundary</sup> <sup>facets</sup> <sup>with</sup> <sup>_E_</sup> _b_ <sup>_h_</sup> <sup>=</sup> <sup>_E_</sup> _b,in_ <sup>_h_</sup> <sup>_∪E_</sup> _b,w_ <sup>_h_</sup> <sup>_∪E_</sup> _b,out_ <sup>_h_</sup> (see Figure 2). We use the notations _K_ and _E_ to denote a generic cell and facet in the fine grid _T_ <sup>_h_</sup> (see Figure 2). We define the jump [ _u_ ] and the average _{u}_ of a function _u_ on interior facet by _o_ <sup>_h_</sup> <sup>is</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>interior</sup> <sup>facets</sup> <sup>and</sup> <sup>_E_</sup> _b_ <sup>_h_</sup> _b_ <sup>_h_</sup> <sup>=</sup> <sup>_E_</sup> <sup>_h_</sup> _b_ <sup>_h_</sup> <sup>is</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>boundary</sup> <sup>facets</sup> <sup>with</sup> <sup>_E_</sup> _b_ <sup>_h_</sup> _b,in_ <sup>_h_</sup> <sup>_∪E_</sup> <sup>_h_</sup> _b,w_ <sup>_h_</sup> <sup>_∪E_</sup> <sup>_h_</sup> _o_ <sup>_h_</sup> <sup>_∪E_</sup> _b_ <sup>_h_</sup> [ _u_ ] = _u_ + _−_ _u−,_ _{u}_ = <sup>_<u>u</u>_</sup> <sup><u>+ +</u></sup> <sup>_<u>u−</u>_</sup> _,_ 2 where _u_ + = _u|K_ +, _u−_ = _u|K−_, _K_ <sup>+</sup> and _K_ <sup>_−_</sup> are the two cells sharing the facet _E_ . Note that, we define [ _u_ ] = _u|E_ and _{u}_ = _u|E_ for _E_ _∈Eb_ <sup>_h_</sup> <sup>.</sup> Figure 2: Illustration of the fine grid for domain Ω We define the fine-scale velocity space _Vh_ = _{v_ _∈_ _L_ <sup>2</sup> (Ω) : _v|K_ _∈_ (P1( _K_ )) <sup>2</sup> _,_ _∀K_ _∈T_ <sup>_h_</sup> _},_ which contains functions that are piecewise linear in each fine-grid element _K_ and are discontinuous across coarse grid edges. For the pressure, we use the space of piecewise constant functions _Qh_ = _{q_ _∈_ _L_ <sup>2</sup> (Ω) : _q|K_ _∈_ P0( _K_ ) _,_ _∀K_ _∈T_ <sup>_h_</sup> _}._ The fine-scale space for concentration is the following _Ph_ = _{v_ _∈_ _L_ <sup>2</sup> (Ω) : _v|K_ _∈_ P1( _K_ ) _,_ _∀K_ _∈T_ <sup>_h_</sup> _}._ Using these spaces, we have the following IPDG variational formulation with implicit time approximation for the approximation of (1): _•_ Flow problem: find ( _uh, ph_ ) _∈_ _Vh × Qh_ such that <u>1</u> _τ_ <sup>_mu_</sup> <sup>(</sup> <sup>_uh −_</sup> <sup>_u_</sup> <sup>ˇ</sup> <sup>_h, v_</sup> <sup>) +</sup> <sup>_a_</sup> DG <sup>_u_</sup> <sup>(</sup> <sup>_uh, v_</sup> <sup>) +</sup> <sup>_b_</sup> <sup>DG(</sup> <sup>_ph, v_</sup> <sup>) =</sup> <sup>_lu_</sup> <sup>(</sup> <sup>_v_</sup> <sup>)</sup> <sup>_,_</sup> _∀v_ _∈_ _Vh,_ _b_ DG( _uh, q_ ) = _l_ <sup>_p_</sup> ( _q_ ) _,_ _∀q_ _∈_ _Qh,_ (2) where _K_ _a_ <sup>_u_</sup> DG <sup>(</sup> <sup>_u, v_</sup> <sup>) =</sup> _−_ _m_ <sup>_u_</sup> ( _u, v_ ) = _K∈T_ <sup>_h_</sup> _K∈T_ <sup>_h_</sup> _ρ u v dx,_ _µ∇u · ∇v dx_ _ds,_ _E_ - _{µ∇u · n} ·_ [ _v_ ] + _{µ∇v · n} ·_ [ _u_ ] _−_ <sup>_<u>γu</u>_</sup> _h_ _E∈E_ <sup>_h_</sup> _/Eb,out_ <sup>_h_</sup> <sup>_<u>u</u>_</sup> _h_ <sup>_{µ}_</sup> <sup>[</sup> <sup>_u_</sup> <sup>]</sup> <sup>_·_</sup> <sup>[</sup> <sup>_v_</sup> <sup>]</sup> _K_ _b_ DG( _u, p_ ) = _−_ _K∈T_ <sup>_h_</sup> _K_ _E_ _p ∇u dx_ + _E∈E_ <sup>_h_</sup> _/Eb,out_ <sup>_h_</sup> _p_ [ _u_ ] _· n ds,_ _E_ _E_ ( _g · n_ ) _q dx,_ - _<u>γu</u>_ _h_ <sup>_µv −_</sup> <sup>(</sup> <sup>_µ∇v · n_</sup> <sup>)</sup> _· g ds,_ _l_ <sup>_u_</sup> ( _v_ ) = _l_ <sup>_p_</sup> ( _q_ ) = _E∈Eb,in_ <sup>_h_</sup> _E∈Eb,in_ <sup>_h_</sup> and _γu_ is the penalty perm. _•_ Transport problem: find _ch_ _∈_ _Ph_ such that <u>1</u> _τ_ <sup>_mc_</sup> <sup>(</sup> <sup>_ch −_</sup> <sup>_c_</sup> <sup>ˇ</sup> <sup>_h, r_</sup> <sup>) +</sup> <sup>_cc_</sup> DG <sup>_c_</sup> <sup>(</sup> <sup>_ch, r_</sup> <sup>) +</sup> <sup>_ac_</sup> <sup>_c_</sup> DG <sup>(</sup> <sup>_ch, r_</sup> <sup>) =</sup> <sup>_lc_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_,_</sup> _∀r_ _∈_ _Ph,_ (3) where _a_ <sup>_c_</sup> _DG_ <sup>(</sup> <sup>_c, r_</sup> <sup>) =</sup> _−_ + _m_ <sup>_c_</sup> ( _c, r_ ) = _c_ <sup>_c_</sup> _DG_ <sup>(</sup> <sup>_c, r_</sup> <sup>) =</sup> _l_ <sup>_c_</sup> ( _r_ ) = _K∈T_ <sup>_h_</sup> _K_ _D∇c · ∇r dx_ _E∈E_ 0 <sup>_h∪E_</sup> _b,in_ <sup>_h_</sup> _E_ - _{D∇c · n}_ [ _r_ ] + _{D∇r · n}_ [ _c_ ] _−_ <sup>_<u>γc</u>_</sup> _h_ _ds_ <sup>_<u>c</u>_</sup> _h_ <sup>_{D}_</sup> <sup>[</sup> <sup>_c_</sup> <sup>][</sup> <sup>_r_</sup> <sup>]</sup> _E_ _E∈Eb,w_ <sup>_h_</sup> _K∈T_ <sup>_h_</sup> _K∈T_ <sup>_h_</sup> _α c r ds,_ _c r dx,_ _K_ _K_ _cin dx_ + (˜ _u_ + _c_ + _−_ _u_ ˜ _−c−_ ) [ _r_ ] _ds,_ ( _uh c_ ) _· ∇r dx_ + _E∈E_ 0 <sup>_h∪E_</sup> _b,out_ <sup>_h_</sup> _E_ _E∈Ew_ <sup>_h_</sup> _α cw r ds,_ _E_ - _<u>γc</u>_ _h_ <sup>_D r −{D∇r · n}_</sup> _E∈Eb,in_ <sup>_h_</sup> _E_ and _γc_ is the penalty perm and _u_ ˜ = ( _uh · n_ + _|uh · n|_ ) _/_ 2. In the above systems (2) and (3), _u_ ˇ _h_ and _c_ ˇ _h_ are the solutions from the previous time step and _τ_ is the given time step size. We can write the above discrete systems (2) and (3) as follows. _•_ Flow problem: �� _uh_ _ph_ - _A_ <sup>_u_</sup> _h_ _h_ _h_ _Bh_ 0 <sup>_u_</sup> _h_ _Bh_ <sup>_T_</sup> - _F uh_ _Fh_ <sup>_p_</sup> - _F uh_ _Fh_ <sup>_p_</sup> _._ (4) = <u>1</u> _τ_ - _M uh_ 0�� _uh −_ _u_ ˇ _h_ 0 0 _ph −_ _p_ ˇ _h_ + _•_ Transport problem: <u>1</u> _τ_ <sup>_M c_</sup> _h_ <sup>_c_</sup> _h_ <sup>+</sup> <sup>_C_</sup> _h_ <sup>_c_</sup> <sup>(</sup> <sup>_c_</sup> _h_ <sup>(</sup> <sup>_ch_</sup> <sup>_−_</sup> <sup>_c_</sup> <sup>ˇ</sup> <sup>_h_</sup> <sup>) + (</sup> <sup>_Ac_</sup> _h_ _h_ <sup>_c_</sup> <sup>(</sup> <sup>_uh_</sup> <sup>))</sup> <sup>_ch_</sup> <sup>=</sup> <sup>_F c_</sup> _h_ <sup>_._</sup> <sup>_c_</sup> _h_ <sup>_._</sup> (5) Here, the matrix _Ch_ <sup>_c_</sup> <sup>(</sup> <sup>_uh_</sup> <sup>)</sup> <sup>depends</sup> <sup>on</sup> <sup>the</sup> <sup>function</sup> <sup>_uh_</sup> <sup>.</sup> In the next section, we will present the proposed multiscale method for the solution of the flow and transport problems that used to reduce the system size. In the multiscale method, we solve problems in local domains with various boundary conditions to form a snapshot space and use a spectral problem in the snapshot space to perform the required dimension reduction. ### 3 Multiscale method Let _T_ <sup>_H_</sup> be a coarse-grid partition of the domain Ωwith mesh size _H_ (see Figure 3) _T_ <sup>_H_</sup> = _Ncell_ <sup>_H_</sup> - _Ki,_ _i_ =1 where _Ncell_ <sup>_H_</sup> <sup>is</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>coarse</sup> <sup>grid</sup> <sup>cells</sup> <sup>(local</sup> <sup>domains).</sup> <sup>We</sup> <sup>use</sup> <sup>_E_</sup> <sup>_H_</sup> <sup>to</sup> <sup>denote</sup> <sup>the</sup> <sup>set</sup> <sup>of</sup> <sup>facets</sup> in _T_ <sup>_H_</sup> with _E_ <sup>_H_</sup> = _Eo_ <sup>_H_</sup> <sup>_∪E_</sup> _b_ <sup>_H_</sup> <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>construction</sup> <sup>of</sup> <sup>the</sup> <sup>coarse</sup> <sup>grid</sup> <sup>approximation,</sup> <sup>we</sup> <sup>use</sup> <sup>the</sup> <sup>Discon-</sup> where _N_ <sup>_H_</sup> _o_ <sup>_H_</sup> <sup>_∪E_</sup> _b_ <sup>_H_</sup> in _T_ <sup>_H_</sup> with _E_ <sup>_H_</sup> = _Eo_ <sup>_H_</sup> <sup>_∪E_</sup> _b_ <sup>_H_</sup> <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>construction</sup> <sup>of</sup> <sup>the</sup> <sup>coarse</sup> <sup>grid</sup> <sup>approximation,</sup> <sup>we</sup> <sup>use</sup> <sup>the</sup> <sup>Discon-</sup> tinuous Galerkin Generalized Multiscale Finite Element Method (DG-GMsFEM). In DG-GMsFEM, the multiscale basis functions are supported in each coarse cell _Ki_ [28, 29, 31]. We define _VH_ as the multiscale velocity space and _PH_ as the multiscale space for concentration. For the pressure approximation, we use the piecewise constant function space _QH_ over the coarse cells. Figure 3: Illustration of the coarse grid _T_ <sup>_H_</sup> with coarse cell _Ki_, Γ _w ∪_ Γ _E_ = _∂Ki_ We denote the multiscale spaces for concentration and velocity as _PH_ = span _{φi}_ <sup>_N_</sup> _i_ =1 <sup>_c_</sup> <sup>_N_</sup> _i_ =1 <sup>_c_</sup> <sup>_,_</sup> _VH_ = span _{ψi}_ <sup>_N_</sup> _i_ =1 <sup>_u_</sup> <sup>_N_</sup> _i_ =1 <sup>_u_</sup> <sup>_,_</sup> respectively, where _Nu_ = dim( _VH_ ) is the number of basis functions for velocity, _Nc_ = dim( _PH_ ) is the number of basis functions for concentration. For the pressure, we use the space of piecewise constant functions over the coarse grid cells _QH_ = _{q_ _∈_ _L_ <sup>2</sup> (Ω) : _q|K_ _∈_ P0( _K_ ) _,_ _∀K_ _∈T_ <sup>_H_</sup> _},_ where _Np_ = dim( _QH_ ) is equal to the number of coarse grid cells ( _Np_ = _Ncell_ <sup>_H_</sup> <sup>).</sup> For the coarse grid approximation, we have the following variational formulation: _•_ Flow problem: find ( _uH_ _, pH_ ) _∈_ _VH_ _× QH_ such that <u>1</u> _τ_ <sup>_mu_</sup> <sup>(</sup> <sup>_uH_</sup> <sup>_−_</sup> <sup>_u_</sup> <sup>ˇ</sup> <sup>_H_</sup> <sup>_, v_</sup> <sup>) +</sup> <sup>_a_</sup> DG <sup>_u_</sup> <sup>(</sup> <sup>_uH_</sup> <sup>_, v_</sup> <sup>) +</sup> <sup>_b_</sup> <sup>DG(</sup> <sup>_pH_</sup> <sup>_, v_</sup> <sup>) =</sup> <sup>_lu_</sup> <sup>(</sup> <sup>_v_</sup> <sup>)</sup> _∀v_ _∈_ _VH_ _,_ _b_ DG( _uH_ _, q_ ) = _l_ <sup>_p_</sup> ( _q_ ) _,_ _∀q_ _∈_ _QH_ _._ _•_ Transport problem: find _cH_ _∈_ _PH_ such that (6) <u>1</u> _τ_ <sup>_mc_</sup> <sup>(</sup> <sup>_cH_</sup> <sup>_−_</sup> <sup>_c_</sup> <sup>ˇ</sup> <sup>_H_</sup> <sup>_, r_</sup> <sup>) +</sup> <sup>_ac_</sup> DG <sup>_c_</sup> <sup>(</sup> <sup>_cH_</sup> <sup>_, r_</sup> <sup>) +</sup> <sup>_cc_</sup> <sup>_c_</sup> DG <sup>(</sup> <sup>_cH_</sup> <sup>_, r_</sup> <sup>) =</sup> <sup>_lc_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_,_</sup> _∀r_ _∈_ _PH_ _._ (7) Next, we consider the construction of the multiscale basis functions for velocity and concentration. 3.1 Multiscale space for velocity For the construction of the multiscale space for the velocity, we start with the construction of the snapshot space. The snapshot space is formed by the solution of local problems with all possible boundary conditions up to the fine grid resolution in each coarse cell _Ki,_ ( _i_ = 1 _, · · ·_ _, Ncell_ <sup>_H_</sup> <sup>),</sup> <sup>where</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>is</sup> <sup>the</sup> number of coarse blocks in Ω. After that, we solve a local spectral problem to select dominant modes of the snapshot space. We consider two types of multiscale spaces: _•_ _Type_ _1_ . Multiscale space for flow is defined so that snapshot spaces and spectral problems are constructed for all flow directions. _•_ _Type_ _2_ . Multiscale space for flow is defined so that snapshot spaces and spectral problems are constructed separately for each flow direction. We start with the construction of the _Type_ _2_ multiscale basis functions. The local snapshot space consists of functions _u_ <sup>_i,r_</sup> _l_ _∈_ _Ki_ which are solutions of the following problem _−µ_ ∆ _u_ <sup>_i,r_</sup> _l_ + _∇p_ = 0 _,_ _x ∈_ _Ki,_ _∇· u_ <sup>_i,r_</sup> _l_ <sup>_i,r_</sup> _l_ = _fl_ <sup>_i,r_</sup> _l_ <sup>_i,r_</sup> _,_ _x ∈_ _Ki,_ (8) with boundary conditions _u_ <sup>_i,r_</sup> _l_ <sup>_i,r_</sup> _l_ = _δl_ <sup>_i,r_</sup> _l_ <sup>_i,r,_</sup> _x ∈_ Γ _E,_ _u_ <sup>_i,r_</sup> _l_ <sup>_i,r_</sup> _l_ = 0 _,_ _x ∈_ Γ _w,_ for _l_ = 1 _, · · ·_ _, Ji_, _Ji_ is the number of fine grid facets on Γ _E_, and _δl_ <sup>_i,r_</sup> for _l_ = 1 _, · · ·_ _, Ji_, _Ji_ is the number of fine grid facets on Γ _E_, and _δl_ <sup>_i,r_</sup> is the vector discrete delta function defined on Γ _E_, Γ _E_ = _∂Ki/_ Γ _w_ is the interface between local domains ( _r_ = 1 _, .., d_ and _d_ = 2 _,_ 3 is dimension of problem). Here constant _c_ is chosen by the compatibility condition, _fl_ <sup>_i,r_</sup> = _|K_ <u>1</u> _i|_ �Γ _E_ <sup>_δ_</sup> _l_ <sup>_i,r_</sup> _· n ds_ . For 2D problem, we solve local problems (8) using the following _l_ <sup>_i,r_</sup> = _|K_ <u>1</u> _i|_ Γ _E_ <sup>_δ_</sup> _l_ <sup>_i,r_</sup> _δl_ <sup>_i,_</sup> <sup>1</sup> _l_ <sup>_i,_</sup> <sup>1</sup> = ( _δl,_ 0) _,_ and _δl_ <sup>_i,_</sup> <sup>2</sup> _l_ <sup>_i,_</sup> <sup>2</sup> = (0 _, δl_ ) _._ For 3D problem, we solve the local problems (8) using the following _δl_ <sup>_i,_</sup> <sup>1</sup> _l_ <sup>_i,_</sup> <sup>1</sup> = ( _δl,_ 0 _,_ 0) _,_ _δl_ <sup>_i,_</sup> <sup>2</sup> _l_ <sup>_i,_</sup> <sup>2</sup> = (0 _, δl,_ 0) _,_ and _δl_ <sup>_i,_</sup> <sup>3</sup> _l_ <sup>_i,_</sup> <sup>3</sup> = (0 _,_ 0 _, δl_ ) _._ In the above, _δl_ is the discrete delta function whose value is 1 on the _l_ -th fine grid node and 0 otherwise. We remark that the local problems (8) are solved on the fine mesh by using a standard numerical scheme. Using these local solutions, we form the following local snapshot space _r_ <sup>_i,_</sup> <sup>snap</sup> = _{u_ <sup>_i,r_</sup> _l_ _Vr_ <sup>_i,_</sup> <sup>snap</sup> <sup>_i,r_</sup> _l_ : 1 _≤_ _l ≤_ _Ji},_ where the flow direction, _r_ = 1 _, .., d_, are considered separately. Figure 4: Illustration of the multiscale basis functions for velocity _ψk_ <sup>_i,r_</sup> _k_ <sup>_i,r_</sup> = ( _ψk,x_ <sup>_i,r_</sup> _k,x_ <sup>_i,r_</sup> <sup>_, ψ_</sup> _k,y_ <sup>_i,r_</sup> Figure 4: Illustration of the multiscale basis functions for velocity _ψk_ <sup>_i,r_</sup> = ( _ψk,x_ <sup>_i,r_</sup> <sup>_, ψ_</sup> _k,y_ <sup>_i,r_</sup> <sup>)</sup> <sup>for</sup> <sup>_r_</sup> <sup>=</sup> <sup>1</sup> <sup>and</sup> _k_ = 1 _, ...,_ 5 (from left to right). _Type_ _2_ ( _VH_ <sup>1</sup> <sup>).</sup> <sup>First</sup> <sup>row:</sup> <sup>_ψ_</sup> _k,x_ <sup>_i,_</sup> <sup>1</sup> <sup>.</sup> <sup>Second</sup> <sup>row:</sup> <sup>_ψ_</sup> _k,y_ <sup>_i,_</sup> <sup>1</sup> _H_ <sup>1</sup> <sup>).</sup> <sup>First</sup> <sup>row:</sup> <sup>_ψ_</sup> _k,x_ <sup>_i,_</sup> <sup>1</sup> _k,x_ <sup>_i,_</sup> <sup>1</sup> <sup>.</sup> <sup>Second</sup> <sup>row:</sup> <sup>_ψ_</sup> _k,y_ <sup>_i,_</sup> <sup>1</sup> _k,y_ To reduce the size of direction based snapshot spaces, we solve following local spectral problem in each snapshot space _Vr_ <sup>_i,_</sup> <sup>snap</sup> in _Ki_ _r_ <sup>_i,_</sup> <sup>snap</sup> in _Ki_ _A_ ˜ <sup>_u,K_</sup> _r_ <sup>_i_</sup> _r_ <sup>_u,K_</sup> _iψ_ ˜ <sup>_i,r_</sup> _,_ (9) <sup>_u,K_</sup> _r_ <sup>_i_</sup> _ψ_ ˜ <sup>_i,r_</sup> = _λ_ ˜ _Sr_ <sup>_u,K_</sup> _i_ where _i,_ <sup>_u,r_</sup> snap <sup>_S_</sup> _h_ <sup>_u,Ki_</sup> <sup>_u,K_</sup> _r_ <sup>_i_</sup> = _Ri,_ <sup>_u,r_</sup> <sup>_u,K_</sup> _h_ <sup>_i_</sup> ( _Ri,_ <sup>_u,r_</sup> _i,_ <sup>_u,r_</sup> snap <sup>)</sup> <sup>_T,_</sup> _S_ ˜ _r_ <sup>_u,Ki_</sup> _r_ <sup>_u,Ki_</sup> = _Ri,_ <sup>_u,r_</sup> _h_ <sup>_u,Ki_</sup> ( _Ri,_ <sup>_u,r_</sup> _i,_ <sup>_u,r_</sup> snap <sup>)</sup> <sup>_T,_</sup> _A_ ˜ <sup>_u,K_</sup> _r_ <sup>_i_</sup> _i,_ <sup>_u,r_</sup> snap <sup>_Au,K_</sup> _h_ <sup>_i_</sup> Figure 5: Illustration of the multiscale basis functions for velocity _ψk_ <sup>_i,r_</sup> _k_ <sup>_i,r_</sup> = ( _ψk,x_ <sup>_i,r_</sup> _k,x_ <sup>_i,r_</sup> <sup>_, ψ_</sup> _k,y_ <sup>_i,r_</sup> Figure 5: Illustration of the multiscale basis functions for velocity _ψk_ <sup>_i,r_</sup> = ( _ψk,x_ <sup>_i,r_</sup> <sup>_, ψ_</sup> _k,y_ <sup>_i,r_</sup> <sup>)</sup> <sup>for</sup> <sup>_r_</sup> <sup>=</sup> <sup>2</sup> <sup>and</sup> _k_ = 1 _, ...,_ 5 (from left to right). _Type_ _2_ ( _VH_ <sup>2</sup> <sup>).</sup> <sup>First</sup> <sup>row:</sup> <sup>_ψ_</sup> _k,x_ <sup>_i,_</sup> <sup>2</sup> <sup>.</sup> <sup>Second</sup> <sup>row:</sup> <sup>_ψ_</sup> _k,y_ <sup>_i,_</sup> <sup>2</sup> _H_ <sup>2</sup> <sup>).</sup> <sup>First</sup> <sup>row:</sup> <sup>_ψ_</sup> _k,x_ <sup>_i,_</sup> <sup>2</sup> _k,x_ <sup>_i,_</sup> <sup>2</sup> <sup>.</sup> <sup>Second</sup> <sup>row:</sup> <sup>_ψ_</sup> _k,y_ <sup>_i,_</sup> <sup>2</sup> _k,y_ and _Ah_ <sup>_u,Ki_</sup> _h_ <sup>_u,Ki_</sup> is the matrix representation of the bilinear form _a_ <sup>_u,K_</sup> _DG_ <sup>_i_</sup> <sup>_u,K_</sup> _DG_ <sup>_i_</sup> <sup>(</sup> <sup>_u, v_</sup> <sup>)</sup> <sup>and</sup> <sup>_S_</sup> _h_ <sup>_u,Ki_</sup> and _Ah_ <sup>_u,Ki_</sup> is the matrix representation of the bilinear form _a_ <sup>_u,K_</sup> _DG_ <sup>_i_</sup> <sup>(</sup> <sup>_u, v_</sup> <sup>)</sup> <sup>and</sup> <sup>_S_</sup> _h_ <sup>_u,Ki_</sup> is the matrix represen tation of the bilinear form _s_ <sup>_u,Ki_</sup> ( _u, v_ ) _K_ _u · v dx._ _a_ <sup>_u,K_</sup> DG <sup>_i_</sup> <sup>(</sup> <sup>_u, v_</sup> <sup>) =</sup> _−_ _s_ <sup>_u,Ki_</sup> ( _u, v_ ) = _K∈T_ <sup>_h_</sup> ( _Ki_ ) _E∈Eo_ <sup>_h_</sup> <sup>(</sup> <sup>_Ki_</sup> <sup>)</sup> _E_ _E_ _µ∇u · ∇v dx_ - _{µ∇u · n} ·_ [ _v_ ] + _{µ∇v · n} ·_ [ _u_ ] _−_ <sup>_<u>γu</u>_</sup> _h_ _ds,_ (10) <sup>_<u>u</u>_</sup> _h_ <sup>_{µ}_</sup> <sup>[</sup> <sup>_u_</sup> <sup>]</sup> <sup>_·_</sup> <sup>[</sup> <sup>_v_</sup> <sup>]</sup> _E∈Eb_ <sup>_h_</sup> <sup>(</sup> <sup>_Ki_</sup> <sup>)</sup> The above snapshot space projection matrix is defined by collecting all local solutions - _T_ _,_ _r_ = 1 _, .., d._ _Ri,_ <sup>_u,r_</sup> snap <sup>=</sup> - _u_ <sup>_i,r_</sup> 1 <sup>_, . . ., ui,r_</sup> _Ji_ We remark that the integral in _s_ <sup>_u,Ki_</sup> ( _u, v_ ) is defined on the boundary of the coarse block, and _T_ <sup>_h_</sup> ( _Ki_ ) is the fine grid for local domain _Ki_ . To form a direction based multiscale space for velocity, we arrange the eigenvalues in increasing order and choose eigenvectors corresponding to the first _Mi_ <sup>_u_</sup> <sup>the</sup> <sup>smallest</sup> <sup>eigenvalues</sup> <sup>for</sup> <sup>each</sup> <sup>flow</sup> <sup>direction</sup> _H_ <sup>_r_</sup> <sup>= span</sup> <sup>_{ψ_</sup> _k_ <sup>_i,r_</sup> _VH_ <sup>_r_</sup> _k_ <sup>_i,r_</sup> : 1 _≤_ _i ≤_ _Ncell_ <sup>_H_</sup> _cell_ <sup>_H_</sup> <sup>_,_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_k_</sup> <sup>_≤_</sup> <sup>_M u_</sup> _i_ <sup>_u_</sup> _i_ <sup>_},_</sup> where _ψk_ <sup>_i,r_</sup> _k_ <sup>_i,r_</sup> = _Ri,_ <sup>_u,r_</sup> _i,_ <sup>_u,r_</sup> snap <sup>_ψ_</sup> <sup>˜</sup> _k_ <sup>_i,r_</sup> _k_ <sup>_i,r_</sup> _k_ = 1 _, ..., Mi_ <sup>_u_</sup> <sup>.</sup> where _ψk_ <sup>_i,r_</sup> = _Ri,_ <sup>_u,r_</sup> snap <sup>_ψ_</sup> <sup>˜</sup> _k_ <sup>_i,r_</sup> _k_ = 1 _, ..., Mi_ <sup>_u_</sup> <sup>.</sup> <sup>In</sup> <sup>Figures</sup> <sup>4</sup> <sup>and</sup> <sup>5,</sup> <sup>we</sup> <sup>depicted</sup> <sup>the</sup> <sup>first</sup> <sup>five</sup> <sup>multiscale</sup> <sup>basis</sup> functions in _VH_ <sup>1</sup> <sup>and</sup> <sup>_V_</sup> _H_ <sup>2</sup> <sup>,</sup> <sup>respectively.</sup> <sup>Finally,</sup> <sup>the</sup> <sup>multiscale</sup> <sup>space</sup> <sup>of</sup> <sup>_Type_</sup> <sup>_2_</sup> <sup>is</sup> <sup>defined</sup> <sup>as</sup> <sup>follows</sup> _H_ <sup>1</sup> <sup>and</sup> <sup>_V_</sup> _H_ <sup>2</sup> _H_ <sup>2</sup> <sup>,</sup> <sup>respectively.</sup> <sup>Finally,</sup> <sup>the</sup> <sup>multiscale</sup> <sup>space</sup> <sup>of</sup> <sup>_Type_</sup> <sup>_2_</sup> <sup>is</sup> <sup>defined</sup> <sup>as</sup> <sup>follows</sup> _VH_ = _VH_ <sup>1</sup> _H_ <sup>2</sup> <sup>for</sup> <sup>2D</sup> <sup>_,_</sup> _VH_ = _VH_ <sup>1</sup> _H_ <sup>1</sup> <sup>+</sup> <sup>_V_</sup> _H_ <sup>2</sup> _H_ <sup>1</sup> <sup>+</sup> <sup>_V_</sup> _H_ <sup>2</sup> _H_ <sup>2</sup> <sup>+</sup> <sup>_V_</sup> _H_ <sup>3</sup> _H_ <sup>3</sup> <sup>for</sup> <sup>3D</sup> <sup>_._</sup> The _Type_ _1_ multiscale space is constructed in a similar way. Instead of flow separation by directions, we define the snapshot space as the collection of the local solutions for flow in all directions _V_ <sup>_i,_</sup> <sup>snap</sup> = _{u_ <sup>_i,r_</sup> _l_ : 1 _≤_ _l ≤_ _Ji,_ _r_ = 1 _, .., d}._ Figure 6: Illustration of the multiscale basis functions for velocity _ψk_ <sup>_i_</sup> _k,x_ <sup>_i_</sup> <sup>_, ψi_</sup> _k_ <sup>_i_</sup> <sup>= (</sup> <sup>_ψi_</sup> Figure 6: Illustration of the multiscale basis functions for velocity _ψk_ <sup>_i_</sup> <sup>= (</sup> <sup>_ψ_</sup> _k,x_ <sup>_i_</sup> <sup>_, ψ_</sup> _k,y_ <sup>_i_</sup> <sup>)</sup> <sup>for</sup> <sup>_k_</sup> <sup>= 1</sup> <sup>_, ...,_</sup> <sup>5</sup> <sup>(from</sup> left to right). _Type_ _1_ . First row: _ψk,x_ <sup>_i_</sup> <sup>.</sup> <sup>Second</sup> <sup>row:</sup> <sup>_ψ_</sup> _k,y_ <sup>_i_</sup> _k,x_ <sup>_i_</sup> <sup>.</sup> <sup>Second</sup> <sup>row:</sup> <sup>_ψi_</sup> _k,y_ where _d_ = 2 _,_ 3. To construct a multiscale space, we perform a dimension reduction by the solution of the local spectral problem on snapshot space _V_ <sup>_i,_</sup> <sup>snap</sup> _A_ ˜ <sup>_u,Ki_</sup> _ψ_ ˜ <sup>_i_</sup> = _λ_ ˜ _S_ <sup>_u,Ki_</sup> _ψ_ ˜ <sup>_i_</sup> _,_ (11) _h_ <sup>_u,Ki_</sup> ( _Ri,_ <sup>_u_</sup> _i,_ <sup>_u_</sup> snap <sup>_Au,K_</sup> _h_ <sup>_i_</sup> _i,_ <sup>_u_</sup> snap <sup>)</sup> <sup>_T_</sup> <sup>,</sup> <sup>_S_</sup> <sup>˜</sup> <sup>_u,Ki_</sup> <sup>=</sup> <sup>_R_</sup> _i,_ <sup>_u_</sup> _i,_ <sup>_u_</sup> snap <sup>)</sup> <sup>_T_</sup> <sup>and</sup> with _A_ <sup>˜</sup> <sup>_u,Ki_</sup> = _Ri,_ <sup>_u_</sup> <sup>_u,K_</sup> _h_ <sup>_i_</sup> ( _Ri,_ <sup>_u_</sup> _i,_ <sup>_u_</sup> snap <sup>_S_</sup> _h_ <sup>_u,Ki_</sup> _Ji_ _Ri,_ <sup>_u_</sup> snap <sup>=</sup> - _u_ <sup>_i,_</sup> 1 <sup>1</sup> <sup>_i,_</sup> 1 <sup>1</sup> <sup>_, . . . ui,d_</sup> 1 <sup>_, . . ., ui,_</sup> _Ji_ <sup>1</sup> <sup>_, . . . u_</sup> _J_ <sup>_i,d_</sup> _i_ - _T_ _._ where _A_ <sup>_u,K_</sup> _h_ <sup>_i_</sup> <sup>_u,K_</sup> _h_ <sup>_i_</sup> and _Sh_ <sup>_u,Ki_</sup> where _A_ <sup>_u,K_</sup> _h_ <sup>_i_</sup> and _Sh_ <sup>_u,Ki_</sup> are given in (10). We arrange the eigenvalues in increasing order and choose the first eigenvectors corresponding to the first _Mi_ <sup>_u_</sup> <sup>the</sup> <sup>smallest</sup> <sup>eigenvalues</sup> <sup>as</sup> <sup>the</sup> <sup>basis</sup> <sup>functions</sup> _i_ <sup>_u_</sup> <sup>the</sup> <sup>smallest</sup> <sup>eigenvalues</sup> <sup>as</sup> <sup>the</sup> <sup>basis</sup> <sup>functions</sup> _k_ <sup>_i_</sup> <sup>:</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_i ≤_</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>_u_</sup> _i_ <sup>_}._</sup> _VH_ = span _{ψk_ <sup>_i_</sup> _cell_ <sup>_H_</sup> <sup>_,_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_k_</sup> <sup>_≤_</sup> <sup>_M u_</sup> _i_ _i_ <sup>_u_</sup> <sup>.</sup> <sup>See Figure 6 for an illustration of</sup> <sup>_Type_</sup> <sup>_1_</sup> <sup>multiscale basis functions.</sup> where _ψk_ <sup>_i_</sup> _k_ <sup>_i_</sup> <sup>=</sup> <sup>_R_</sup> _i,_ <sup>_u_</sup> _i,_ <sup>_u_</sup> snap <sup>_ψ_</sup> <sup>˜</sup> _k_ <sup>_i_</sup> _k_ <sup>_i_</sup> <sup>,</sup> <sup>_k_</sup> <sup>= 1</sup> <sup>_, ..., M_</sup> _i_ <sup>_u_</sup> 3.2 Multiscale space for concentration The construction of the multiscale space for the concentration has a similar concept. The space is constructed for each coarse cell _Ki_ (local domain) for _i_ = 1 _, · · ·_ _, Ncell_ <sup>_H_</sup> <sup>.</sup> <sup>We consider two types of multiscale</sup> spaces: _•_ _Type_ _1_ . Multiscale space for transport from all boundaries. Snapshots are constructed for flow in all directions with corresponded spectral problems to dominant mode extraction. _•_ _Type_ _2_ . Multiscale space for each boundary transport separately. Snapshot spaces are constructed separately with corresponded spectral problems for each of them. We will consider two types of boundaries: (1) interface between local domains Γ _E_ and (2) reactive wall boundaries Γ _w_ . This concept is based on the definition of the coarse grid variables and is similar to the approach that we used in [38, 39]. We will present the construction of the multiscale basis functions for three types of wall boundary conditions for the transport problem _•_ Dirichlet boundary conditions ( _DBC_ ): _•_ Neumann boundary conditions ( _NBC_ ): _c_ = _g,_ _x ∈_ Γ _w._ (12) _−_ _D∇c · n_ = _g,_ _x ∈_ Γ _w._ (13) _•_ Robin boundary conditions ( _RBC_ ): _−_ _D∇c · n_ = _α_ ( _c −_ _g_ ) _,_ _x ∈_ Γ _w._ (14) We start with the construction of the _Type_ _2_ multiscale basis function. The local snapshot space consists of functions _c_ <sup>_i,r_</sup> _l_ which are solutions of the following local problem _−∇_ ( _D∇c_ <sup>_i,r_</sup> _l_ <sup>) = 0</sup> <sup>_,_</sup> _x ∈_ _Ki._ (15) where boundary conditions depend on the type of non-homogeneous boundary conditions on wall boundary _•_ _r_ = 1 for transport between local domains on interface Γ _E_, we set _c_ <sup>_i,r_</sup> _l_ _i_ <sup>_l,_</sup> _x ∈_ Γ _E,_ <sup>_i,r_</sup> _l_ = _δi_ <sup>_l_</sup> and _c_ <sup>_i,r_</sup> _l_ = 0 _,_ _x ∈_ Γ _w_ (DBC) _,_ _−D∇c_ <sup>_i,r_</sup> _l_ _· n_ = 0 _,_ _x ∈_ Γ _w_ (NBC) _,_ _−D∇c_ <sup>_i,r_</sup> _l_ _· n_ = _αc,_ _x ∈_ Γ _w_ (RBC) _._ _•_ _r_ = 2 for transport from walls boundary _c_ <sup>_i,r_</sup> _l_ _i_ <sup>_l,_</sup> _x ∈_ Γ _w_ (DBC) _,_ _c_ <sup>_i,r_</sup> _l_ = _δi_ <sup>_l_</sup> _−D∇c_ <sup>_i,r_</sup> _l_ _· n_ = _δi_ <sup>_l,_</sup> _x ∈_ Γ _w_ (NBC) _,_ _−D∇c_ <sup>_i,r_</sup> _l_ _· n_ = _α_ ( _c −_ _δi_ <sup>_l_</sup> <sup>)</sup> <sup>_,_</sup> _x ∈_ Γ _w_ (RBC) _._ and _−D∇c_ <sup>_i_</sup> _l_ <sup>_· n_</sup> <sup>= 0</sup> <sup>_,_</sup> _x ∈_ Γ _E,_ Here _l_ = 1 _, · · ·_ _, Ji_, where _Ji_ is the number of fine grid facets on the boundary of _Ki_, and _δi_ <sup>_l_</sup> <sup>is</sup> <sup>the</sup> discrete delta function defined on _∂Ki_ and equal to 1 if _i_ = _l_ and zero otherwise. This problem is solved on the fine mesh using an appropriate numerical scheme. Using these local solutions, we form a local snapshot space for concentration in _Ki_ _r_ <sup>_i,_</sup> <sup>snap</sup> = _{c_ <sup>_i,r_</sup> _l_ _Pr_ <sup>_i,_</sup> <sup>snap</sup> <sup>_i,r_</sup> _l_ : 1 _≤_ _l ≤_ _Ji},_ and define the snapshot space projection matrix _Ri,_ <sup>_c,r_</sup> snap <sup>=</sup> where _r_ = 1 _,_ 2. - _c_ <sup>_i,r_</sup> 1 <sup>_, . . ., ci,r_</sup> _Ji_ - _T_ _._ To reduce the size of the snapshot space, we solve the following local spectral problem in the snapshot space _Pr_ <sup>_i,_</sup> <sup>snap</sup> _r_ _A_ ˜ <sup>_c,K_</sup> _r_ <sup>_i_</sup> _r_ <sup>_u,K_</sup> _iφ_ ˜ <sup>_i,r_</sup> _,_ (16) ˜ <sup>_c,K_</sup> _r_ <sup>_i_</sup> _φ_ ˜ <sup>_i,r_</sup> = _η_ ˜ _Sr_ <sup>_u,K_</sup> _i_ Figure 7: Illustration of the multiscale basis functions for concentration _φ_ <sup>_i,r_</sup> _k_ Figure 7: Illustration of the multiscale basis functions for concentration _φ_ <sup>_i,r_</sup> _k_ for _r_ = 2 and _k_ = 1 _, ...,_ 5 (from left to right). _Type_ _2_ for Robin boundary conditions on Γ _w_ ( _RBC_ ). First row: _φ_ <sup>_i,_</sup> _k_ <sup>1.</sup> <sup>Second</sup> <sup>row:</sup> (from left to right). _Type_ _2_ for Robin boundary conditions on Γ _w_ ( _RBC_ ). First row: _φ_ <sup>_i,_</sup> _k_ <sup>1.</sup> <sup>Second</sup> <sup>row:</sup> _φ_ <sup>_i,_</sup> _k_ <sup>2</sup> _k_ where _h_ <sup>_c,Ki_</sup> ( _Ri,_ <sup>_c,r_</sup> _i,_ <sup>_c,r_</sup> snap <sup>)</sup> <sup>_T,_</sup> <sup>_c,K_</sup> _r_ <sup>_i_</sup> = _Ri,_ <sup>_c,r_</sup> <sup>_c,K_</sup> _h_ <sup>_i_</sup> ( _Ri,_ <sup>_c,r_</sup> _i,_ <sup>_c,r_</sup> snap <sup>)</sup> <sup>_T,_</sup> _S_ ˜ _r_ <sup>_c,Ki_</sup> _r_ <sup>_c,Ki_</sup> = _Ri,_ <sup>_c,r_</sup> _i,_ <sup>_c,r_</sup> snap <sup>_S_</sup> _h_ <sup>_c,Ki_</sup> _A_ ˜ <sup>_c,K_</sup> _r_ <sup>_i_</sup> _i,_ <sup>_c,r_</sup> snap <sup>_Ac,K_</sup> _h_ <sup>_i_</sup> and _A_ <sup>_c,K_</sup> _h_ <sup>_i_</sup> <sup>_c,K_</sup> _h_ <sup>_i_</sup> is the matrix representation of the bilinear form _a_ <sup>_c,K_</sup> _DG_ <sup>_i_</sup> <sup>_c,K_</sup> _DG_ <sup>_i_</sup> <sup>(</sup> <sup>_c, r_</sup> <sup>)</sup> <sup>and</sup> <sup>_S_</sup> _h_ <sup>_c,Ki_</sup> and _A_ <sup>_c,K_</sup> _h_ <sup>_i_</sup> is the matrix representation of the bilinear form _a_ <sup>_c,K_</sup> _DG_ <sup>_i_</sup> <sup>(</sup> <sup>_c, r_</sup> <sup>)</sup> <sup>and</sup> <sup>_S_</sup> _h_ <sup>_c,Ki_</sup> is the matrix represen tation of the bilinear form _s_ <sup>_u,Ki_</sup> ( _c, r_ ) _K_ _a_ <sup>_c,K_</sup> _DG_ <sup>_i_</sup> <sup>(</sup> <sup>_c, z_</sup> <sup>) =</sup> _−_ _s_ <sup>_c,Ki_</sup> ( _c, z_ ) = _K∈T_ <sup>_h_</sup> ( _Ki_ ) _D∇c · ∇z dx_ _ds_ (17) _E∈E_ 0 <sup>_h_</sup> <sup>(</sup> <sup>_Ki_</sup> <sup>)</sup> _E_ _E_ - _{D∇c · n}_ [ _z_ ] + _{D∇z · n}_ [ _c_ ] _−_ <sup>_<u>γc</u>_</sup> _h_ _c z ds._ <sup>_<u>c</u>_</sup> _h_ <sup>_{D}_</sup> <sup>[</sup> <sup>_c_</sup> <sup>][</sup> <sup>_z_</sup> <sup>]</sup> _E∈Eb_ <sup>_h_</sup> <sup>(</sup> <sup>_Ki_</sup> <sup>)</sup> We remark that the integral in _s_ <sup>_c,Ki_</sup> ( _c, r_ ) is defined on the boundary of the coarse block and _T_ <sup>_h_</sup> ( _Ki_ ) is the fine grid for local domain _Ki_ . We arrange the eigenvalues in increasing order and choose the first eigenvectors corresponding to the first _Mi_ <sup>_c_</sup> <sup>the</sup> <sup>smallest</sup> <sup>eigenvalues</sup> <sup>as</sup> <sup>the</sup> <sup>basis</sup> <sup>functions</sup> _H_ <sup>_r_</sup> <sup>= span</sup> <sup>_{φ_</sup> _k_ <sup>_i,r_</sup> _PH_ <sup>_r_</sup> _k_ <sup>_i,r_</sup> : 1 _≤_ _i ≤_ _Ncell_ <sup>_H_</sup> _cell_ <sup>_H_</sup> <sup>_,_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_k_</sup> <sup>_≤_</sup> <sup>_M c_</sup> _i_ <sup>_c_</sup> _i_ <sup>_}._</sup> where _φ_ <sup>_i,r_</sup> _k_ <sup>_i,r_</sup> _k_ = _Ri,_ <sup>_c,r_</sup> _i,_ <sup>_c,r_</sup> snap <sup>_φ_</sup> <sup>˜</sup> _k_ <sup>_i,r_</sup> _k_ <sup>_i,r_</sup> for _k_ = 1 _, ..., Mi_ <sup>_c_</sup> where _φ_ <sup>_i,r_</sup> _k_ = _Ri,_ <sup>_c,r_</sup> snap <sup>_φ_</sup> <sup>˜</sup> _k_ <sup>_i,r_</sup> for _k_ = 1 _, ..., Mi_ <sup>_c_</sup> <sup>and</sup> <sup>_r_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2.</sup> <sup>Finally,</sup> <sup>the</sup> <sup>multiscale</sup> <sup>space</sup> <sup>of</sup> <sup>_Type_</sup> <sup>_2_</sup> <sup>is</sup> <sup>defined</sup> as follows _PH_ = _PH_ <sup>1</sup> _H_ <sup>1</sup> <sup>_× P_</sup> _H_ <sup>2</sup> _H_ <sup>2</sup> <sup>_._</sup> See Figure 7 for an illustration of the multiscale basis functions. The _Type_ _1_ multiscale space is constructed similarly. In the snapshot space, we collect all possible boundary conditions on _∂Ki_ and solve the following problem _−∇_ ( _D∇c_ <sup>_i_</sup> _l_ <sup>) = 0</sup> <sup>_,_</sup> _x ∈_ _Ki,_ _c_ <sup>_i_</sup> _l_ <sup>_i_</sup> _l_ <sup>=</sup> <sup>_δ_</sup> _i_ <sup>_l_</sup> _i_ <sup>_l,_</sup> _x ∈_ _∂Ki._ (18) Figure 8: Illustration of the multiscale basis functions for concentration. Type 1 Figure 9: Illustration of the multiscale basis functions for concentration _φ_ <sup>_i_</sup> _k_ <sup>for</sup> <sup>_k_</sup> <sup>=</sup> <sup>1</sup> <sup>_, ...,_</sup> <sup>5</sup> <sup>(from</sup> <sup>left</sup> <sup>to</sup> right). _Type_ _1_ . Local solutions are collected as a snapshot space _V_ <sup>_i,_</sup> <sup>snap</sup> = _{c_ <sup>_i_</sup> _l_ <sup>: 1</sup> <sup>_≤_</sup> <sup>_l ≤_</sup> <sup>_Ji}._</sup> Dimension reduction of the snapshot space is performed by the solution of the local spectral problem on snapshot space _A_ ˜ <sup>_c,Ki_</sup> ˜ _φ_ <sup>_i_</sup> = _η_ ˜ _S_ <sup>_u,Ki_</sup> ˜ _φ_ <sup>_i_</sup> _,_ (19) _h_ <sup>_c,Ki_</sup> ( _Ri,_ <sup>_c_</sup> _i,_ <sup>_c_</sup> snap <sup>_Ac,K_</sup> _h_ <sup>_i_</sup> _i,_ <sup>_c_</sup> snap <sup>)</sup> <sup>_T_</sup> <sup>,</sup> <sup>_S_</sup> <sup>˜</sup> <sup>_c,Ki_</sup> <sup>=</sup> <sup>_R_</sup> _i,_ <sup>_c_</sup> _i,_ <sup>_c_</sup> snap <sup>)</sup> <sup>_T_</sup> <sup>and</sup> where _A_ <sup>˜</sup> <sup>_c,Ki_</sup> = _Ri,_ <sup>_c_</sup> <sup>_c,K_</sup> _h_ <sup>_i_</sup> ( _Ri,_ <sup>_c_</sup> _i,_ <sup>_c_</sup> snap <sup>_S_</sup> _h_ <sup>_c,Ki_</sup> - _T_ _._ _Ri,_ <sup>_c_</sup> snap <sup>=</sup> - _c_ <sup>_i_</sup> 1 <sup>_, . . ., ci_</sup> _Ji_ where _A_ <sup>_u,K_</sup> _h_ <sup>_i_</sup> <sup>_u,K_</sup> _h_ <sup>_i_</sup> and _Sh_ <sup>_u,Ki_</sup> where _A_ <sup>_u,K_</sup> _h_ <sup>_i_</sup> and _Sh_ <sup>_u,Ki_</sup> are given in (17). We arrange the eigenvalues in increasing order and choose the first eigenvectors corresponding to the first _Mi_ <sup>_c_</sup> <sup>the</sup> <sup>smallest</sup> <sup>eigenvalues</sup> <sup>as</sup> <sup>the</sup> <sup>basis</sup> <sup>functions</sup> _i_ <sup>_c_</sup> <sup>the</sup> <sup>smallest</sup> <sup>eigenvalues</sup> <sup>as</sup> <sup>the</sup> <sup>basis</sup> <sup>functions</sup> <sup>_i_</sup> _k_ <sup>:</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_i ≤_</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> _PH_ = span _{φ_ <sup>_i_</sup> _k_ _cell_ <sup>_H_</sup> <sup>_,_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_k_</sup> <sup>_≤_</sup> <sup>_M c_</sup> _i_ <sup>_c_</sup> _i_ <sup>_}._</sup> where _φ_ <sup>_i_</sup> _k_ <sup>_i_</sup> _k_ <sup>=</sup> <sup>_R_</sup> _i,_ <sup>_c_</sup> _i,_ <sup>_c_</sup> snap <sup>_φ_</sup> <sup>˜</sup> <sup>_i_</sup> _k_ <sup>_i_</sup> _k_ <sup>for</sup> <sup>_k_</sup> <sup>=</sup> <sup>1</sup> <sup>_, ..., M_</sup> _i_ <sup>_c_</sup> where _φ_ <sup>_i_</sup> _k_ <sup>=</sup> <sup>_R_</sup> _i,_ <sup>_c_</sup> snap <sup>_φ_</sup> <sup>˜</sup> <sup>_i_</sup> _k_ <sup>for</sup> <sup>_k_</sup> <sup>=</sup> <sup>1</sup> <sup>_, ..., M_</sup> _i_ <sup>_c_</sup> <sup>.</sup> <sup>Multiscale</sup> <sup>basis</sup> <sup>functions</sup> <sup>of</sup> <sup>_Type_</sup> <sup>_1_</sup> <sup>are</sup> <sup>presented</sup> <sup>in</sup> <sup>Figure</sup> <sup>9.</sup> We note that, the _Type_ _1_ basis functions do not depend on type of boundary conditions on Γ _w_ . Figure 10: Illustration of the multiscale basis functions for concentration _φ_ <sup>_i_</sup> _k_ <sup>for</sup> <sup>_k_</sup> <sup>= 1</sup> <sup>_, ...,_</sup> <sup>5</sup> <sup>(from</sup> <sup>left</sup> <sup>to</sup> right). _Type_ _1_ with velocity and time Remark 1 _For_ _the_ _use_ _of_ _the_ _unsteady_ _convection-diffusion_ _problem_ _instead_ _of_ _the_ _elliptic_ _problem_ (15) _for_ _the_ _construction_ _of_ _the_ _snapshot_ _space,_ _we_ _can_ _use_ _a_ _local_ _problem_ _formulation_ _that_ _is_ _equivalent_ _to_ _the_ _global_ _problem_ _[42,_ _43]_ <u>1</u> _τ_ <sup>_c_</sup> _l_ <sup>_i_</sup> _l_ <sup>_i_</sup> <sup>+</sup> <sup>_u∇ci_</sup> _l_ <sup>_i_</sup> _l_ <sup>_−∇_</sup> <sup>(</sup> <sup>_D∇c_</sup> _l_ <sup>_i_</sup> _l_ <sup>_i_</sup> <sup>) = 0</sup> <sup>_,_</sup> _x ∈_ _Ki._ (20) _We_ _will_ _use_ _notations_ _”Type_ _1_ _with_ _time_ _and_ _velocity”_ _and_ _”Type_ _2_ _with_ _time_ _and_ _velocity”_ _in_ _the_ _numerical_ _results_ _section._ _Illustration_ _of_ _the_ _multiscale_ _basis_ _functions_ _for_ _Type_ _1_ _and_ _Type_ _2_ _with_ _time_ _and_ _velocity_ _are_ _presented_ _in_ _Figures_ _10_ _and_ _11,_ _respectively._ Figure 11: Illustration of the multiscale basis functions for concentration _φ_ <sup>_i,r_</sup> _k_ for _r_ = 2 and _k_ = 1 _, ...,_ 5 (from left to right). _Type_ _2_ with velocity and time for Robin boundary conditions on Γ _w_ ( _RBC_ ) Figure 12: Additional basis functions. Left: local problem (15) with zero Dirichlet boundary conditions. Right: local problem (20) with zero Dirichlet boundary conditions. The presented basis functions are associated with the boundary basis functions [44, 45]. In addition to the presented multiscale basis functions, we add one interior basis functions, that is constructed by the solution of the corresponding local problem (15) or (20) with zero Dirichlet boundary conditions on _x ∈_ _∂Ki_ (see Figure 12). 3.3 Coarse scale system To construct the coarse grid system, we construct projection matrices using the computed multiscale basis functions for velocity and concentration _Ru_ = [ _ψ_ 1 _, . . ., ψNu_ ] <sup>_T_</sup> _,_ _Rp_ = - _η_ 1 _, . . ., ηNp_ - _T_ _,_ _Rc_ = [ _φ_ 1 _, . . ., φNc_ ] <sup>_T_</sup> _,_ where we used a single index notation. For _Type_ _1_, we have _Nc_ = <sup>�</sup> <sup>_N_</sup> _i_ =1 _cell_ <sup>_H_</sup> <sup>_c_</sup> _i_ <sup>and</sup> <sup>_Nu_</sup> <sup>= �</sup> <sup>_N_</sup> _i_ =1 _cell_ <sup>_H_</sup> <sup>_N_</sup> _i_ =1 _cell_ <sup>_H_</sup> <sup>_M u_</sup> _i_ _Type_ _2_, we have _Nc_ = 2 _·_ <sup>�</sup> _i_ <sup>_N_</sup> =1 _cell_ <sup>_H_</sup> <sup>_c_</sup> _i_ <sup>and</sup> <sup>_Nu_</sup> <sup>=</sup> <sup>_d ·_</sup> <sup>�</sup> _i_ <sup>_N_</sup> =1 _cell_ <sup>_H_</sup> <sup>_N_</sup> _i_ =1 _cell_ <sup>_H_</sup> <sup>_M c_</sup> _i_ <sup>_u_</sup> _i_ <sup>.</sup> <sup>For</sup> _i_ <sup>_N_</sup> =1 _cell_ <sup>_H_</sup> <sup>_M c_</sup> _i_ _i_ <sup>_N_</sup> =1 _cell_ <sup>_H_</sup> <sup>_M u_</sup> _i_ _Type_ _2_, we have _Nc_ = 2 _·_ <sup>�</sup> _i_ <sup>_N_</sup> =1 _cell_ <sup>_H_</sup> <sup>_M c_</sup> _i_ <sup>and</sup> <sup>_Nu_</sup> <sup>=</sup> <sup>_d ·_</sup> <sup>�</sup> _i_ <sup>_N_</sup> =1 _cell_ <sup>_H_</sup> <sup>_M u_</sup> _i_ <sup>.</sup> <sup>Note</sup> <sup>that,</sup> <sup>we</sup> <sup>use</sup> <sup>the</sup> <sup>space</sup> <sup>of</sup> <sup>piecewise</sup> constant functions for _Rp_ over the coarse grid, and set _ηi_ ( _x_ ) equal to 1 if _x_ _∈_ _Ki_ and zero otherwise ( _Np_ = _Ncell_ <sup>_H_</sup> <sup>).</sup> = _Ncell_ <sup>_H_</sup> <sup>).</sup> Using these matrices, we have the following computational systems in matrix form: _•_ Flow problem: �� _uH_ _pH_ - _A_ <sup>_u_</sup> _H_ _H_ _H_ _BH_ 0 <sup>_u_</sup> _H_ _BH_ <sup>_T_</sup> = - _F uH_ _FH_ <sup>_p_</sup> (21) <u>1</u> _τ_ - _M uH_ 0�� _uH_ _−_ _u_ ˇ _H_ 0 0 _pH_ _−_ _p_ ˇ _H_ + where _MH_ <sup>_u_</sup> _H_ <sup>_u_</sup> <sup>=</sup> <sup>_RuM u_</sup> _h_ <sup>_u_</sup> _h_ <sup>_R_</sup> _u_ <sup>_T_</sup> _u_ <sup>_T_</sup> <sup>_,_</sup> _A_ <sup>_u_</sup> _H_ <sup>_u_</sup> _H_ <sup>=</sup> <sup>_RuA_</sup> _h_ <sup>_u_</sup> _h_ <sup>_uR_</sup> _u_ <sup>_T_</sup> _u_ <sup>_T_</sup> <sup>_,_</sup> _BH_ = _RuBhRp_ <sup>_T_</sup> _p_ <sup>_T_</sup> <sup>_,_</sup> _FH_ <sup>_u_</sup> _H_ <sup>_u_</sup> <sup>=</sup> <sup>_RuF u_</sup> _h_ <sup>_u_</sup> _h_ <sup>_,_</sup> _FH_ <sup>_u_</sup> _H_ <sup>_u_</sup> <sup>=</sup> <sup>_RpF p_</sup> _h_ <sup>_p_</sup> _h_ <sup>_,_</sup> and after the solution of the coarse-scale approximation, we reconstruct velocity on a fine grid _ums_ = _Ru_ <sup>_T_</sup> <sup>_uH_</sup> <sup>.</sup> _•_ Transport problem: <u>1</u> _τ_ <sup>_M c_</sup> _H_ <sup>_c_</sup> _H_ <sup>(</sup> <sup>_cH_</sup> <sup>_−_</sup> <sup>_c_</sup> <sup>ˇ</sup> <sup>_H_</sup> <sup>) + (</sup> <sup>_Ac_</sup> _H_ <sup>_c_</sup> _H_ <sup>+</sup> <sup>_C_</sup> _H_ <sup>_c_</sup> _H_ <sup>_c_</sup> <sup>(</sup> <sup>_ums_</sup> <sup>))</sup> <sup>_cH_</sup> <sup>=</sup> <sup>_F c_</sup> _H_ <sup>_c_</sup> _H_ <sup>_._</sup> (22) where _MH_ <sup>_c_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>_RcM c_</sup> _h_ <sup>_c_</sup> _h_ <sup>_R_</sup> _c_ <sup>_T_</sup> _c_ <sup>_T_</sup> <sup>_,_</sup> _A_ <sup>_c_</sup> _H_ <sup>_c_</sup> _H_ <sup>=</sup> <sup>_RcA_</sup> _h_ <sup>_c_</sup> _h_ <sup>_c_</sup> <sup>_R_</sup> _c_ <sup>_T_</sup> _c_ <sup>_T_</sup> <sup>_,_</sup> _CH_ <sup>_c_</sup> _H_ <sup>_c_</sup> <sup>(</sup> <sup>_ums_</sup> <sup>) =</sup> <sup>_RcC_</sup> _h_ <sup>_c_</sup> _h_ <sup>_c_</sup> <sup>(</sup> <sup>_ums_</sup> <sup>)</sup> <sup>_R_</sup> _c_ <sup>_T_</sup> _c_ <sup>_T_</sup> <sup>_,_</sup> _FH_ <sup>_c_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>_RcF c_</sup> _h_ <sup>_c_</sup> _h_ <sup>_,_</sup> and reconstruct concentration on the fine grid _cms_ = _Rc_ <sup>_T_</sup> <sup>_cH_</sup> <sup>.</sup> ### 4 Numerical results In this section, we will present some numerical results. We will use the following three computational domains (Figure 13) to demonstrate the performance of our method: _Geometry_ _1_ with fine grid that contains 17350 cells. Coarse grid contains 10 local domains. _Geometry_ _2_ with fine grid that contains 18021 cells. Coarse grid contains 20 local domains. _Geometry_ _3_ with fine grid that contains 15094 cells. Coarse grid contains 10 local domains. In order to construct structured coarse grids, we explicitly add lines between local domains (coarse grid cells) in geometry construction. For unstructured coarse grid, local domains have a rough interface between local domains. Computational domains with fine and coarse grids are presented in Figure 13 for Geometry 1, 2, and 3. We use Gmsh to construct computational geometries and unstructured fine grids [46]. The numerical implementation is based on the FEniCS library [47]. To investigate the presented multiscale method for solving problems in thin domains with nonhomogeneous boundary conditions, we consider the following test: _•_ _Test_ _1_ for different geometries of computational domain. We consider Geometries 1, 2 and 3 (see Figure 13). We consider problems with non-homogeneous Robin boundary conditions for concentration. _•_ _Test_ _2_ for different boundary conditions and diffusion coefficients ( _D_ = 0 _._ 01, 0 _._ 1 and 1). We consider Dirichlet and Neumann non-homogeneous boundary conditions on the wall boundary Γ _w_ . In this test, we also investigate different types of multiscale basis functions in detail. _•_ _Test_ _3_ for structured and unstructured coarse grids. We investigate the performance of the multiscale method with a rough interface between local domains (unstructured coarse grid). We also investigate the influence of the multiscale velocity accuracy to the concentration errors. For flow problem, we set _µ_ = 1, _ρ_ = 1 and _u_ 0 = 0. We set _g_ = (˜ _g,_ 0) for Geometry 1,2 and _g_ = (0 _,_ 0 _,_ ˜ _g_ ) for Geometry 3 as inflow boundary condition Γ _in_, where _g_ ˜( _x_ ) = _uinn_ <sup>_−_</sup> <sup>1</sup> ( _n_ +2)(1 _−_ ( _r/rmax_ ) <sup>_n_</sup> ) with _n_ = 2 and _uin_ = 1 [48, 3]. Here _r_ is the distance to center point _x_ 0 and _rmax_ is the radius of left boundary Γ _in_, where _x_ 0 = (0 _,_ 0 _._ 05), _rmax_ = 0 _._ 05 for Geometry 1, _x_ 0 = (0 _,_ 1), _rmax_ = 0 _._ 025 for Geometry 2, and _x_ 0 = (0 _,_ 0 _,_ 1), _rmax_ = 0 _._ 035 for Geometry 3. We calculate relative errors in _L_ <sup>2</sup> norm in percentage - <u>�</u> <u>Ω</u> <sup>(</sup> <sup>_cms_</sup> <sup>_−_</sup> <sup>_c_</sup> <sup>)2</sup> <sup>_dx_</sup> <u>�Ω</u> <sup>_c_</sup> <sup>2</sup> <sup>_dx_</sup> _·_ 100% _,_ _e_ ( _u_ ) = <u>Ω</u> <sup>(</sup> <sup>_ums_</sup> <sup>_−_</sup> <sup>_u, ums_</sup> <sup>_−_</sup> <sup>_u_</sup> <sup>)</sup> <sup>_dx_</sup> <u>�</u> - <u>�</u> <u>Ω</u> <sup>(</sup> <sup>_ums_</sup> <sup>_−_</sup> <sup>_u, ums_</sup> <sup>_−_</sup> <sup>_u_</sup> <sup>)</sup> <sup>_dx_</sup> <u>�Ω</u> <sup>(</sup> <sup>_u, u_</sup> <sup>)</sup> <sup>_dx_</sup> _·_ 100% _,_ _e_ ( _c_ ) = where _cms_ and _ums_ are multiscale solutions, _c_ and _u_ are reference solutions. (a) Geometry 1 (fine grid with 17350 cells and coarse grid with 10 local domains) (b) Geometry 2 (fine grid with 18021 cells and coarse grid with 20 local domains) (c) Geometry 3 (fine grid with 15094 cells and coarse grid with 10 local domains) Figure 13: Coarse grid and fine grid for Geometry 1, 2 and 3. Left: computation geometry and coarse grid. Right: fine grid. 4.1 Test 1 (different geometries) We consider a test problem with non-homogeneous Robin boundary condition for concentration _−D∇c · n_ = _α_ ( _c −_ _cw_ ) _,_ _x ∈_ Γ _w,_ where _cw_ = 1, _α_ = 0 _._ 01 and _D_ = 0 _._ 01. As initial conditions, we set _c_ 0 = 1 and _u_ 0 = 0. For the inflow (left) boundary, we set _cin_ = 0 for Γ _in_ . We perform simulations for _tmax_ = 0 _._ 7 (Geometry 1), _tmax_ = 1 (Geometry 2) and _tmax_ = 2 (Geometry 3) with 40 time iterations. The coarse grid is structured with 20 local domains for Geometry 2, and with 10 local domains for Geometry 1 and 3. In Figure 14, we show local domain markers. We consider the performance of the presented method for the solution of transport and flow problems in different computational domains. We consider two types of multiscale basis functions (see Section 3). _M_ <sup>_c_</sup> and _M_ <sup>_u_</sup> are the number of the multiscale basis functions for concentration and velocity, respectively. _DOFh_ <sup>_u_</sup> <sup>and</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> <sup>are</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>degrees</sup> <sup>of</sup> <sup>freedom</sup> <sup>for</sup> <sup>reference</sup> <sup>(fine</sup> <sup>grid)</sup> <sup>solution.</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> <sup>and</sup> _DOFH_ <sup>_c_</sup> <sup>are the numbers of degrees of freedom for a multiscale solution.</sup> <sup>The reference solution is performed</sup> on the fine grid using IPDG approximation presented in Section 2. We used linear basis functions for _h_ <sup>_u_</sup> <sup>and</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> _h_ <sup>_c_</sup> <sup>are</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>degrees</sup> <sup>of</sup> <sup>freedom</sup> <sup>for</sup> <sup>reference</sup> <sup>(fine</sup> <sup>grid)</sup> <sup>solution.</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> (a) Geometry 1 with 10 local domains (b) Geometry 2 with 20 local domains (c) Geometry 3 with 10 local domains Figure 14: Fine grid with subdomain markers for Geometry 1, 2, and 3. _H_ <sup>_c_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> both velocity and concentration fields on the fine grid. Therefore, _DOFh_ <sup>_u_</sup> both velocity and concentration fields on the fine grid. Therefore, _DOFh_ <sup>_u_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_h_</sup> <sup>_·_</sup> <sup>(</sup> <sup>_d_</sup> <sup>(</sup> <sup>_d_</sup> <sup>+ 1) + 1)</sup> <sup>and</sup> _DOFh_ <sup>_c_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_h_</sup> <sup>_·_</sup> <sup>(</sup> <sup>_d_</sup> <sup>+ 1).</sup> <sup>For</sup> <sup>multiscale</sup> <sup>solver,</sup> <sup>we</sup> <sup>have</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>(</sup> <sup>_M u_</sup> <sup>+ 1),</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>(</sup> <sup>_M c_</sup> <sup>+ 1)</sup> _DOFh_ <sup>_c_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_h_</sup> <sup>_·_</sup> <sup>(</sup> <sup>_d_</sup> <sup>+ 1).</sup> <sup>For</sup> <sup>multiscale</sup> <sup>solver,</sup> <sup>we</sup> <sup>have</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>(</sup> <sup>_M u_</sup> <sup>+ 1),</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>(</sup> <sup>_M c_</sup> <sup>+ 1)</sup> for Type 1 and _DOFH_ <sup>_u_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>(</sup> <sup>_d · M u_</sup> <sup>+ 1),</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>(2</sup> <sup>_· M c_</sup> <sup>+ 1)</sup> <sup>for</sup> <sup>Type</sup> <sup>2</sup> <sup>multiscale</sup> <sup>basis</sup> _h_ <sup>_c_</sup> <sup>=</sup> <sup>_N h_</sup> _cell_ <sup>_h_</sup> <sup>_·_</sup> <sup>(</sup> <sup>_d_</sup> <sup>+ 1).</sup> <sup>For</sup> <sup>multiscale</sup> <sup>solver,</sup> <sup>we</sup> <sup>have</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> _H_ <sup>_u_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> _cell_ <sup>_H_</sup> <sup>(</sup> <sup>_d · M u_</sup> <sup>+ 1),</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> _h_ <sup>_u_</sup> <sup>=</sup> <sup>_N h_</sup> for Type 1 and _DOFH_ <sup>_u_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>(</sup> <sup>_d · M u_</sup> <sup>+ 1),</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> <sup>(2</sup> <sup>_· M c_</sup> <sup>+ 1)</sup> <sup>for</sup> <sup>Type</sup> <sup>2</sup> <sup>multiscale</sup> <sup>basis</sup> functions. Because velocity does not depend on the concentration in our test problems. We start with results for flow problems. In Figure 15, we present reference and multiscale solutions for Geometries 1, 2, and 3. We depicted the magnitude of the velocity field at the final time. In a multiscale solver, we used _M_ <sup>_u_</sup> = 20 multiscale basis functions for each direction (Type 2). For Geometry 1, we have _DOFh_ <sup>_u_</sup> <sup>=</sup> <sup>121450</sup> <sup>and</sup> _DOFH_ <sup>_u_</sup> <sup>= 410</sup> <sup>(0.33</sup> <sup>%</sup> <sup>from</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> <sup>).</sup> <sup>For</sup> <sup>Geometry</sup> <sup>2,</sup> <sup>we</sup> <sup>have</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> <sup>= 126147</sup> <sup>and</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> <sup>= 820</sup> <sup>(0.65</sup> % from _DOFh_ <sup>_u_</sup> <sup>).</sup> <sup>For</sup> <sup>Geometry</sup> <sup>3,</sup> <sup>we</sup> <sup>have</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> <sup>=</sup> <sup>196222</sup> <sup>and</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> <sup>=</sup> <sup>610</sup> <sup>(0.31</sup> <sup>%</sup> <sup>from</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> <sup>).</sup> We observe a good accuracy of the presented method with huge reduction of the discrete system size. In Table 1, we present relative errors in % for velocity between reference solution and multiscale solution with different numbers of the multiscale basis functions at the final times. We observe a reduction of the error with an increasing number of multiscale basis functions for all geometries. For example for 40 _H_ <sup>_u_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>_N_</sup> _cell_ <sup>_H_</sup> _cell_ <sup>_H_</sup> <sup>(</sup> <sup>_M u_</sup> <sup>+ 1),</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> _H_ <sup>_u_</sup> <sup>= 410</sup> <sup>(0.33</sup> <sup>%</sup> <sup>from</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> _h_ <sup>_u_</sup> <sup>).</sup> <sup>For</sup> <sup>Geometry</sup> <sup>2,</sup> <sup>we</sup> <sup>have</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> _h_ <sup>_u_</sup> <sup>=</sup> <sup>196222</sup> <sup>and</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> _H_ <sup>_u_</sup> <sup>=</sup> <sup>610</sup> <sup>(0.31</sup> <sup>%</sup> <sup>from</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> _h_ <sup>_u_</sup> <sup>).</sup> <sup>For</sup> <sup>Geometry</sup> <sup>3,</sup> <sup>we</sup> <sup>have</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> _h_ <sup>_u_</sup> <sup>= 126147</sup> <sup>and</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> (a) Geometry 1. Left: reference solution, _DOFh_ <sup>_u_</sup> _h_ <sup>_u_</sup> <sup>= 121450.</sup> <sup>Right:</sup> <sup>multiscale</sup> <sup>solution,</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> _H_ <sup>_u_</sup> <sup>= 410</sup> (b) Geometry 2. Left: reference solution, _DOFh_ <sup>_u_</sup> _H_ <sup>_u_</sup> <sup>= 820</sup> _h_ <sup>_u_</sup> <sup>= 126147.</sup> <sup>Right:</sup> <sup>multiscale</sup> <sup>solution,</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> (c) Geometry 3. Left: reference solution, _DOFh_ <sup>_u_</sup> _h_ <sup>_u_</sup> <sup>= 196222.</sup> <sup>Right:</sup> <sup>multiscale</sup> <sup>solution,</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> _H_ <sup>_u_</sup> <sup>= 610</sup> Figure 15: Reference and multiscale solutions of velocity (magnitude) at final time. Geometry 1, 2 and 3 (Test 1). Left: reference solution. Right: multiscale solution with 20 multiscale basis functions of Type 2. multiscale basis functions of Type 2, we have 1 _._ 3 % of error for Geometry 1, 1 _._ 5 % of error for Geometry 2, and 4 _._ 0 % of error for Geometry 3. For Type 1 and 2, we observe similar errors for two-dimensional problems (Geometry 1 and 2). For three - dimensional domain in Geometry 3, we obtain better results with Type 2 multiscale basis functions. In Figures 16, 17 and 18, we present concentration distributions for the reference (fine scale) and multiscale solutions at different time layers _tm_ for _m_ = 10 _,_ 20 and 40. In these calculations, we used a fixed number of multiscale basis functions for the velocity field ( _M_ <sup>_u_</sup> = 20 of Type 2). We will investigate the influence of the velocity accuracy on the concentration solution later in Test 3. In figures, we presented results for _M_ <sup>_u_</sup> = 20 multiscale basis functions for each type of local domain boundaries (Type 2). For Geometry 1 (Figure 16), we have _DOFh_ <sup>_c_</sup> <sup>= 52050 and</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> <sup>= 410 (0.78 % from</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> <sup>).</sup> <sup>For Geometry</sup> _h_ <sup>_c_</sup> <sup>= 52050 and</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> _H_ <sup>_c_</sup> <sup>= 410 (0.78 % from</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> _h_ <sup>_c_</sup> <sup>).</sup> <sup>For Geometry</sup> <u>Type</u> <u>1</u> _<u>DOFH</u>_ <sup>_<u>u</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>u</u>_ <u>)</u> <u>(%)</u> <u>Geometry</u> <u>1</u> 110 (10) 11.70 210 (20) 6.013 410 (40) 1.536 610 (60) 1.086 <u>810</u> <u>(80)</u> <u>1.064</u> <u>Geometry</u> <u>2</u> 220 (10) 27.20 420 (20) 6.205 820 (40) 1.485 1220 (60) 1.369 <u>1620</u> <u>(80)</u> <u>1.374</u> <u>Geometry</u> <u>3</u> 160 (15) 36.70 310 (30) 10.76 610 (60) 9.493 910 (90) 8.548 <u>1210</u> <u>(120)</u> <u>5.657</u> <u>Type</u> <u>2</u> _<u>DOFc</u>_ <sup>_<u>u</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>u</u>_ <u>)</u> <u>(%)</u> <u>Geometry</u> <u>1</u> 110 (5) 19.85 210 (10) 10.52 410 (20) 3.230 610 (30) 1.756 <u>810</u> <u>(40)</u> <u>1.346</u> <u>Geometry</u> <u>2</u> 220 (5) 31.51 420 (10) 10.08 820 (20) 3.570 1220 (30) 1.906 <u>1620</u> <u>(40)</u> <u>1.521</u> <u>Geometry</u> <u>3</u> 160 (5) 15.96 310 (10) 10.63 610 (20) 6.548 910 (30) 4.167 <u>1210</u> <u>(40)</u> <u>4.082</u> Table 1: Relative _L_ 2 error for the velocity at the final time. Geometry 1, 2, and 3 (Test 1). Left: Type 1 multiscale basis functions. Right: Type 2 multiscale basis functions. Reference solution with _DOFh_ <sup>_u_</sup> <sup>= 121450</sup> <sup>(Geometry</sup> <sup>1),</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> <sup>= 126147</sup> <sup>(Geometry</sup> <sup>2)</sup> <sup>and</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> <sup>= 196222</sup> <sup>(Geometry</sup> <sup>3).</sup> _h_ <sup>_u_</sup> <sup>= 121450</sup> <sup>(Geometry</sup> <sup>1),</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> _h_ <sup>_u_</sup> <sup>= 196222</sup> <sup>(Geometry</sup> <sup>3).</sup> _h_ <sup>_u_</sup> <sup>= 126147</sup> <sup>(Geometry</sup> <sup>2)</sup> <sup>and</sup> <sup>_DOF_</sup> _h_ <sup>_u_</sup> (a) Concentration, _c_ 10. Left: reference solution. Right: multiscale solution (b) Concentration, _c_ 20. Left: reference solution. Right: multiscale solution (c) Concentration, _c_ 40. Left: reference solution. Right: multiscale solution Figure 16: Reference and multiscale solutions of concentration at _tm_ for _m_ = 10 _,_ 20 and 40. Geometry 1 (Test 1). Left: reference solution, _DOFh_ <sup>_c_</sup> <sup>= 52050.</sup> <sup>Right:</sup> <sup>multiscale</sup> <sup>solution</sup> <sup>with</sup> <sup>20</sup> <sup>multiscale</sup> <sup>basis</sup> functions of Type 2, _DOFH_ <sup>_c_</sup> <sup>= 410.</sup> (a) Concentration, _c_ 10. Left: reference solution. Right: multiscale solution (b) Concentration, _c_ 20. Left: reference solution. Right: multiscale solution (c) Concentration, _c_ 40. Left: reference solution. Right: multiscale solution Figure 17: Reference and multiscale solutions of concentration at _tm_ for _m_ = 10 _,_ 20 and 40. Geometry 2 (Test 1). Left: reference solution, _DOFh_ <sup>_c_</sup> <sup>= 54063.</sup> <sup>Right:</sup> <sup>multiscale</sup> <sup>solution</sup> <sup>with</sup> <sup>20</sup> <sup>multiscale</sup> <sup>basis</sup> functions of Type 2, _DOFH_ <sup>_c_</sup> <sup>= 820.</sup> 2 Figure 17), we have _DOFh_ <sup>_c_</sup> <sup>=</sup> <sup>54063</sup> <sup>and</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>820</sup> <sup>(1.5</sup> <sup>%</sup> <sup>from</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> 2 Figure 17), we have _DOFh_ <sup>_c_</sup> <sup>=</sup> <sup>54063</sup> <sup>and</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>820</sup> <sup>(1.5</sup> <sup>%</sup> <sup>from</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> <sup>).</sup> <sup>For</sup> <sup>Geometry</sup> <sup>3</sup> <sup>Figure</sup> 18), we have _DOFh_ <sup>_c_</sup> <sup>=</sup> <sup>60376</sup> <sup>and</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>410</sup> <sup>(0.67</sup> <sup>%</sup> <sup>from</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> <sup>).</sup> <sup>We</sup> <sup>observe</sup> <sup>good</sup> <sup>results</sup> <sup>of</sup> <sup>the</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>410</sup> <sup>(0.67</sup> <sup>%</sup> <sup>from</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> 18), we have _DOFh_ <sup>_c_</sup> <sup>=</sup> <sup>60376</sup> <sup>and</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> <sup>=</sup> <sup>410</sup> <sup>(0.67</sup> <sup>%</sup> <sup>from</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> <sup>).</sup> <sup>We</sup> <sup>observe</sup> <sup>good</sup> <sup>results</sup> <sup>of</sup> <sup>the</sup> presented method for solving transport problems for all three geometries. (a) Concentration, _c_ 10. Left: reference solution. Right: multiscale solution (b) Concentration, _c_ 20. Left: reference solution. Right: multiscale solution (c) Concentration, _c_ 40. Left: reference solution. Right: multiscale solution Figure 18: Reference and multiscale solutions of concentration at _tm_ for _m_ = 10 _,_ 20 and 40. Geometry 3 (Test 1). Left: reference solution, _DOFh_ <sup>_c_</sup> <sup>= 60376.</sup> <sup>Right:</sup> <sup>multiscale</sup> <sup>solution</sup> <sup>with</sup> <sup>20</sup> <sup>multiscale</sup> <sup>basis</sup> functions of Type 2, _DOFH_ <sup>_c_</sup> <sup>= 410.</sup> We present numerical results in Tables 2 and 3 for different number of multiscale basis functions for concentration (Type 1 and 2) for a fixed number of multiscale basis functions for velocity field ( _M_ <sup>_u_</sup> = 20 of Type 2). Relative errors for concentrations are presented for four time layers _tm_ with _m_ = 10 _,_ 20 _,_ 30 and 40. We can obtain good multiscale solution when we take a sufficient number of multiscale basis functions for pressure and for displacements. For example, we obtain near 40 % of concentration error, when we take 3 multiscale basis functions of Type 1 and near 20 % for Type 2. For 40 multiscale basis functions of Type 2, the error reduce to 1 _._ 6 % for Geometry 1, 1 _._ 1 % for Geometry 2, and 1 _._ 9 % for Geometry 3. For two-dimensional problems (Geometry 1 and 2), we obtain a similar error for Type 1 <u>Type</u> <u>1,</u> <u>without</u> <u>velocity</u> _<u>DOFH</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Geometry</u> <u>1</u> 30 (2) 42.27 38.93 37.68 37.64 70 (6) 6.747 7.675 8.587 9.206 110 (10) 3.160 3.818 4.269 4.549 210 (20) 1.954 2.228 2.294 2.300 410 (40) 1.924 2.189 2.252 2.259 610 (60) 1.920 2.184 2.247 2.253 <u>810</u> <u>(80)</u> <u>1.916</u> <u>2.177</u> <u>2.236</u> <u>2.240</u> <u>Geometry</u> <u>2</u> 60 (2) 60.30 61.20 55.67 46.25 140 (6) 1.931 2.021 2.668 2.766 220 (10) 1.784 1.495 1.471 1.451 420 (20) 1.041 1.074 1.059 0.989 820 (40) 1.048 1.315 1.069 0.997 1220 (60) 1.054 1.085 1.075 1.004 <u>1620</u> <u>(80)</u> <u>1.058</u> <u>1.088</u> <u>1.079</u> <u>1.009</u> <u>Geometry</u> <u>3</u> 30 (2) 16.17 16.07 21.69 23.32 70 (6) 16.60 14.86 15.52 15.85 110 (10) 16.23 14.50 15.15 15.47 210 (20) 5.274 4.940 5.252 5.648 410 (40) 4.871 4.607 4.947 5.338 610 (60) 4.623 4.391 4.715 5.094 <u>810</u> <u>(80)</u> <u>4.568</u> <u>4.337</u> <u>4.659</u> <u>5.037</u> <u>Type</u> <u>2,</u> <u>without</u> <u>velocity</u> _<u>DOFc</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Geometry</u> <u>1</u> 30 (1) 46.99 53.03 52.54 50.25 70 (3) 4.111 4.070 4.746 5.154 110 (5) 2.653 2.851 2.973 2.989 210 (10) 1.950 2.196 2.236 2.224 410 (20) 1.906 2.127 2.154 2.140 610 (30) 1.902 2.121 2.148 2.135 <u>810</u> <u>(40)</u> <u>1.901</u> <u>2.120</u> <u>2.147</u> <u>2.134</u> <u>Geometry</u> <u>2</u> 60 (1) 73.44 84.91 87.34 87.06 140 (3) 2.256 2.205 2.349 2.249 220 (5) 1.341 1.569 1.692 1.581 420 (10) 1.142 1.204 1.228 1.144 820 (20) 1.145 1.190 1.215 1.144 1220 (30) 1.148 1.191 1.218 1.149 <u>1620</u> <u>(40)</u> <u>1.149</u> <u>1.191</u> <u>1.219</u> <u>1.150</u> <u>Geometry</u> <u>3</u> 30 (1) 58.70 71.74 74.82 73.37 70 (3) 2.322 1.866 2.071 2.229 110 (5) 2.306 1.895 2.051 2.214 210 (10) 2.317 2.142 2.348 2.586 410 (20) 1.892 1.773 1.992 2.210 610 (30) 1.691 1.595 1.792 1.988 <u>810</u> <u>(40)</u> <u>1.651</u> <u>1.552</u> <u>1.746</u> <u>1.938</u> Table 2: Relative _L_ 2 error for concentration at _tm_ ( _m_ = 10 _,_ 20 _,_ 30 and 40). Geometry 1, 2 and 3 (Test 1). Multiscale basis functions without velocity. Left: Type 1 multiscale basis functions for concentration. Right: Type 2 multiscale basis functions for concentration. Reference solution with _DOFh_ <sup>_c_</sup> <sup>=</sup> <sup>52050</sup> (Geometry 1), _DOFh_ <sup>_c_</sup> <sup>= 54063</sup> <sup>(Geometry</sup> <sup>2)</sup> <sup>and</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> <sup>= 60376</sup> <sup>(Geometry</sup> <sup>3).</sup> _h_ <sup>_c_</sup> <sup>= 54063</sup> <sup>(Geometry</sup> <sup>2)</sup> <sup>and</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> _h_ <sup>_c_</sup> <sup>= 60376</sup> <sup>(Geometry</sup> <sup>3).</sup> and 2 multiscale basis functions. However, for three - dimensional problem (Geometry 3), the multiscale basis of Type 2 is better. We observe that the presented multiscale method provides good results with small errors and huge reduction of the system size for all three test geometries. For the presented test problem in the 3D case is better to use basis functions without information on the velocity field. For the 2D result, we observe similar errors for basis with and without velocity. For three-dimensional problem Type 2 multiscale basis functions are better than Type 1 due to direct definitions of the flow and transport directions. However, for 2D problem, we obtain similar results for Type 1 and 2 basis functions. 4.2 Test 2 (different boundary conditions and diffusion coefficients) Next, we consider the efficiency of the presented method for the solution of the transport problem with different types of boundary conditions and different values of diffusion coefficient _D_ . To investigate the influence of the boundary conditions on the results of the presented multiscale method, we consider Geometry 1 and set diffusion coefficient _D_ = 0 _._ 01. We consider following types of boundary conditions on Γ _w_ : _DBC_ - Dirichlet type boundary conditions: _c_ = _cw,_ _x ∈_ Γ _w,_ <u>Type</u> <u>1,</u> <u>with</u> <u>velocity</u> _<u>DOFH</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Geometry</u> <u>1</u> 30 (2) 60.48 66.48 65.71 63.81 70 (6) 41.95 45.45 43.60 40.94 110 (10) 31.93 34.33 31.66 28.18 210 (20) 6.114 7.652 6.285 4.931 410 (40) 1.747 1.776 1.572 1.376 610 (60) 1.742 1.762 1.555 1.359 <u>810</u> <u>(80)</u> <u>1.741</u> <u>1.758</u> <u>1.549</u> <u>1.352</u> <u>Geometry</u> <u>2</u> 60 (2) 65.49 64.93 58.22 48.53 140 (6) 47.06 53.16 53.16 42.65 220 (10) 16.22 15.71 15.73 14.42 420 (20) 1.467 1.491 1.474 1.275 820 (40) 1.277 1.315 1.274 1.089 1220 (60) 1.262 1.302 1.259 1.075 <u>1620</u> <u>(80)</u> <u>1.252</u> <u>1.293</u> <u>1.248</u> <u>1.065</u> <u>Geometry</u> <u>3</u> 30 (2) 43.35 39.21 40.01 40.01 70 (6) 22.71 21.47 21.47 21.47 110 (10) 21.90 20.70 21.68 20.55 210 (20) 15.56 14.70 15.34 15.34 410 (40) 12.48 12.05 12.96 13.77 610 (60) 11.50 11.24 12.14 12.94 <u>810</u> <u>(80)</u> <u>11.20</u> <u>10.98</u> <u>11.88</u> <u>12.68</u> <u>Type</u> <u>2,</u> <u>with</u> <u>velocity</u> _<u>DOFc</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Geometry</u> <u>1</u> 30 (1) 49.91 53.68 52.64 50.36 70 (3) 26.22 24.27 21.11 19.47 110 (5) 14.63 13.24 9.694 7.351 210 (10) 6.909 5.760 3.943 2.372 410 (20) 1.867 2.004 1.870 1.701 610 (30) 1.850 1.979 1.842 1.674 <u>810</u> <u>(40)</u> <u>1.846</u> <u>1.973</u> <u>1.836</u> <u>1.669</u> <u>Geometry</u> <u>2</u> 60 (1) 48.37 53.67 52.88 49.64 140 (3) 14.56 19.78 20.14 15.63 220 (5) 12.46 16.05 16.30 12.98 420 (10) 1.474 1.517 1.532 1.350 820 (20) 1.308 1.362 1.340 1.159 1220 (30) 1.282 1.338 1.310 1.133 <u>1620</u> <u>(40)</u> <u>1.272</u> <u>1.331</u> <u>1.302</u> <u>1.126</u> <u>Geometry</u> <u>3</u> 30 (1) 32.10 32.21 34.24 32.98 70 (3) 32.09 32.19 34.22 32.96 110 (5) 10.03 9.976 10.90 11.25 210 (10) 7.491 7.609 8.511 8.736 410 (20) 6.934 7.026 7.702 8.124 610 (30) 6.189 6.384 7.065 7.484 <u>810</u> <u>(40)</u> <u>6.028</u> <u>6.234</u> <u>6.909</u> <u>7.320</u> Table 3: Relative _L_ 2 error for concentration at _tm_ ( _m_ = 10 _,_ 20 _,_ 30 and 40). Geometry 1, 2 and 3 (Test 1). Multiscale basis functions with velocity. Left: Type 1 multiscale basis functions for concentration. Right: Type 2 multiscale basis functions for concentration. Reference solution with _DOFh_ <sup>_c_</sup> <sup>= 52050</sup> <sup>(Geometry</sup> 1), _DOFh_ <sup>_c_</sup> <sup>= 54063</sup> <sup>(Geometry</sup> <sup>2)</sup> <sup>and</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> <sup>= 60376</sup> <sup>(Geometry</sup> <sup>3).</sup> with _cw_ = 1, initial condition _c_ 0 = 0 and _cin_ = 1 on Γ _in_ . We perform simulations for _tmax_ = 0 _._ 1 with 40 time iterations. _NBC_ - Neumann type boundary conditions: _−D∇c · n_ = _β,_ _x ∈_ Γ _w,_ with _β_ = 0 _._ 01, initial condition _c_ 0 = 1 and _cin_ = 0 on Γ _in_ . We perform simulations for _tmax_ = 0 _._ 5 with 40 time iterations. The coarse grid is structured with 10 local domains. To investigate the presented method for different diffusion coefficients, we consider transport problem in Geometry 1 with Robin boundary conditions (RBC) with _cw_ = 1 and _α_ = 0 _._ 1, We set initial condition _c_ 0 = 1 and _cin_ = 0 on Γ _in_ . Simulations are performed for _tmax_ = 0 _._ 7 with 40 time iterations. We consider _D_ = 0 _._ 1 and _D_ = 1. For each type of boundary condition and value of diffusion coefficient, we investigate the influence of the types of multiscale basis functions in detail. We consider _Type_ _1_ and _Type_ _2_ multiscale basis functions and present the results for multiscale basis functions with and without time and velocity in the construction of the snapshot space. Note that, spectral problems are similar for all types of snapshots and contain only information about diffusion. (a) Concentration, _c_ 10. Left: reference solution. Right: multiscale solution (b) Concentration, _c_ 20. Left: reference solution. Right: multiscale solution (c) Concentration, _c_ 40. Left: reference solution. Right: multiscale solution Figure 19: Reference and multiscale solutions of concentration at _tm_ for _m_ = 10 _,_ 20 and 40. Dirichlet boundary conditions (Test 2). Left: reference solution. Right: multiscale solution with 20 multiscale basis functions of Type 2. (a) Concentration, _c_ 10. Left: reference solution. Right: multiscale solution (b) Concentration, _c_ 20. Left: reference solution. Right: multiscale solution (c) Concentration, _c_ 40. Left: reference solution. Right: multiscale solution Figure 20: Reference and multiscale solutions of concentration at _tm_ for _m_ = 10 _,_ 20 and 40. Neumann boundary conditions (Test 2). Left: reference solution. Right: multiscale solution with 20 multiscale basis functions of Type 2. <u>with</u> <u>velocity</u> _<u>DOFH</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Type</u> <u>1,</u> <u>without</u> <u>time</u> 30 (2) 51.74 36.78 26.43 18.88 70 (6) 51.75 36.82 26.45 18.90 110 (10) 44.35 31.52 22.54 16.19 210 (20) 18.04 11.93 8.893 6.877 410 (40) 9.781 5.784 4.241 3.229 610 (60) 9.205 5.434 3.993 3.036 <u>810</u> <u>(80)</u> <u>9.114</u> <u>5.366</u> <u>3.946</u> <u>3.001</u> <u>Type</u> <u>2,</u> <u>without</u> <u>time</u> 30 (1) 44.40 31.76 23.15 16.78 70 (3) 17.92 11.85 8.891 6.782 110 (5) 12.42 6.768 4.681 3.486 210 (10) 9.150 5.210 3.815 2.906 410 (20) 8.845 5.065 3.848 2.888 610 (30) 8.831 5.132 3.787 2.887 <u>810</u> <u>(40)</u> <u>8.829</u> <u>5.131</u> <u>3.786</u> <u>2.886</u> <u>Type</u> <u>2,</u> <u>with</u> <u>time</u> 30 (1) 44.40 31.76 23.15 16.78 70 (3) 17.92 11.86 8.892 6.783 110 (5) 12.42 6.768 4.681 3.487 210 (10) 9.150 5.210 3.815 2.906 410 (20) 8.844 5.135 3.788 2.888 610 (30) 8.831 5.132 3.787 2.887 <u>810</u> <u>(40)</u> <u>8.829</u> <u>5.131</u> <u>3.786</u> <u>2.886</u> <u>without</u> <u>velocity</u> _<u>DOFH</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Type</u> <u>1,</u> <u>with</u> <u>time</u> 30 (2) 67.69 49.62 34.35 23.66 70 (6) 67.83 49.75 34.47 23.78 110 (10) 64.16 48.15 33.99 23.80 210 (20) 15.70 13.12 11.58 9.439 410 (40) 9.781 5.065 3.848 2.939 610 (60) 6.883 4.778 3.650 2.779 <u>810</u> <u>(80)</u> <u>6.831</u> <u>4.736</u> <u>3.619</u> <u>2.754</u> <u>Type</u> <u>2,</u> <u>without</u> <u>time</u> 30 (1) 89.85 83.50 73.50 65.06 70 (3) 62.18 62.39 59.84 56.96 110 (5) 51.05 48.08 42.41 36.61 210 (10) 7.397 4.893 3.972 3.309 410 (20) 6.750 4.405 3.397 2.656 610 (30) 6.728 4.392 3.381 2.648 <u>810</u> <u>(40)</u> <u>6.726</u> <u>4.392</u> <u>3.381</u> <u>2.649</u> <u>Type</u> <u>2,</u> <u>with</u> <u>time</u> 30 (1) 89.85 83.51 73.50 65.07 70 (3) 62.18 62.40 59.85 56.97 110 (5) 51.03 48.06 42.40 36.60 210 (10) 7.397 4.892 3.971 3.308 410 (20) 6.750 4.405 3.398 2.656 610 (30) 6.728 4.392 3.381 2.648 <u>810</u> <u>(40)</u> <u>6.726</u> <u>4.393</u> <u>3.381</u> <u>2.649</u> Table 4: Relative _L_ 2 error for concentration at _tm_ ( _m_ = 10 _,_ 20 _,_ 30 and 40). Dirichlet boundary conditions (Test 2). Left: Type 1 multiscale basis functions for concentration. Right: Type 2 multiscale basis functions for concentration. Reference solution with _DOFh_ <sup>_c_</sup> <sup>= 52050</sup> In Figures 19 and 20, we present results for Dirichlet and Neumann boundary conditions. Concentration distributions are depicted for the reference (fine scale) and multiscale solutions at different time layers _tm_ for _m_ = 10 _,_ 20 and 40. In calculations, we used a fixed number of multiscale basis functions for the velocity field ( _M_ <sup>_u_</sup> = 20 of Type 2 with time and velocity). We observe good results of the presented method for solving transport problems for all types of nonhomogeneous boundary conditions. In Tables 4 and 5, we present relative errors for concentration in % for different number of multiscale basis functions for a fixed number of multiscale basis functions for velocity field ( _M_ <sup>_u_</sup> = 20 of Type 2). Relative errors for concentrations are presented for four time layers _tm_ with _m_ = 10 _,_ 20 _,_ 30 and 40. For a test with Dirichlet boundary conditions and snapshots with velocity information, we obtain near 2 % of concentration error at the final time, when we take 20 multiscale basis functions of Type 2. For Type 1 basis functions, we obtain similar results for the same size of the coarse grid system ( _DOFH_ <sup>_c_</sup> <sup>=</sup> <sup>410).</sup> Numerical results are almost similar for any type of snapshot space due to large influence of the boundary conditions to the transport problem solution (see Figure 19). For Neumann boundary conditions, we observe that the multiscale basis functions are better when we take into account velocity into the local problems. For example, we obtain 4-7 % of errors for basis functions without velocity and reduce errors to 2 % for basis with velocity information. However, adding time information into basis construction does not affect the errors for tests with any typed of boundary conditions. We observe that Type 1 and 2 basis functions provide similar results for the 2D transport problem. Note that, for the homogeneous boundary conditions it is not needed to add second space for handling boundary conditions in Type 2 basis functions and the size of the coarse grid system will be two times smaller. <u>without</u> <u>velocity</u> _<u>DOFH</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Type</u> <u>1,</u> <u>without</u> <u>time</u> 30 (2) 45.87 48.36 50.73 48.27 70 (6) 5.842 6.302 7.917 11.05 110 (10) 2.860 3.474 4.482 6.459 210 (20) 2.131 2.703 3.338 4.570 410 (40) 2.104 2.670 3.284 4.465 610 (60) 2.102 2.667 3.279 4.453 <u>810</u> <u>(80)</u> <u>2.099</u> <u>2.664</u> <u>3.274</u> <u>4.442</u> <u>Type</u> <u>2,</u> <u>without</u> <u>time</u> 30 (1) 75.71 89.67 93.60 93.30 70 (3) 6.233 6.465 8.005 11.93 110 (5) 4.621 6.042 7.537 10.75 210 (10) 3.385 4.431 5.718 8.192 410 (20) 3.164 4.037 5.214 7.593 610 (30) 3.088 3.928 5.065 7.375 <u>810</u> <u>(40)</u> <u>3.056</u> <u>3.896</u> <u>5.021</u> <u>7.301</u> <u>Type</u> <u>2,</u> <u>with</u> <u>time</u> 30 (1) 67.10 82.64 88.56 88.73 70 (3) 4.373 4.409 5.511 8.065 110 (5) 2.680 3.212 4.097 5.803 210 (10) 2.143 2.723 3.338 4.492 410 (20) 2.123 2.691 3.290 4.409 610 (30) 2.121 2.689 3.287 4.405 <u>810</u> <u>(40)</u> <u>2.120</u> <u>2.688</u> <u>3.286</u> <u>4.402</u> <u>with</u> <u>velocity</u> _<u>DOFH</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Type</u> <u>1,</u> <u>with</u> <u>time</u> 30 (2) 69.34 84.22 89.44 89.28 70 (6) 49.09 61.96 67.20 64.77 110 (10) 36.89 47.61 51.47 46.71 210 (20) 7.022 11.53 13.35 16.50 410 (40) 2.080 2.587 2.744 2.371 610 (60) 2.071 2.565 2.713 2.336 <u>810</u> <u>(80)</u> <u>2.069</u> <u>2.559</u> <u>2.705</u> <u>2.327</u> <u>Type</u> <u>2,</u> <u>without</u> <u>time</u> 30 (1) 47.37 56.09 61.62 59.57 70 (3) 28.27 31.79 31.76 24.81 110 (5) 15.85 18.89 18.45 15.28 210 (10) 8.635 8.903 7.371 9.659 410 (20) 2.126 2.669 2.823 2.283 610 (30) 2.112 2.651 2.801 2.272 <u>810</u> <u>(40)</u> <u>2.109</u> <u>2.646</u> <u>2.797</u> <u>2.270</u> <u>Type</u> <u>2,</u> <u>with</u> <u>time</u> 30 (1) 47.38 56.10 61.64 59.59 70 (3) 28.26 31.78 31.76 24.80 110 (5) 15.85 18.89 18.45 15.29 210 (10) 8.636 8.902 7.368 9.661 410 (20) 2.126 2.669 2.822 2.283 610 (30) 2.112 2.651 2.801 2.272 <u>810</u> <u>(40)</u> <u>2.109</u> <u>2.646</u> <u>2.797</u> <u>2.270</u> Table 5: Relative _L_ 2 error for concentration at _tm_ ( _m_ = 10 _,_ 20 _,_ 30 and 40). Neumann boundary conditions (Test 2). Left: Type 1 multiscale basis functions for concentration. Right: Type 2 multiscale basis functions for concentration. Reference solution with _DOFh_ <sup>_c_</sup> <sup>= 52050</sup> In Figures 21 and 22, we present results for _D_ = 0 _._ 1 and 1 with Robin boundary conditions on the wall boundary. Concentration distributions are depicted for the reference (fine scale) and multiscale solutions at different time layers _tm_ for _m_ = 10 _,_ 20 and 40. We used a fixed number of multiscale basis functions for the velocity field ( _M_ <sup>_u_</sup> = 20 of Type 2 with time and velocity). Relative errors for concentration for different types of multiscale basis functions are presented in Tables 6 and 7. For velocity field we used _M_ <sup>_u_</sup> = 20 of Type 2 multiscale basis functions in all calculations. Concentration errors are presented for four time layers _tm_ with _m_ = 10 _,_ 20 _,_ 30 and 40. We observe smaller errors for larger values of diffusion coefficients. For example, we have 0 _._ 4 % of errors for _M_ <sup>_u_</sup> = 20 of Type 2 multiscale basis functions for _D_ = 0 _._ 1 and 0 _._ 2 % of errors for _D_ = 0 _._ 1. For larger diffusion, coefficients errors reduce faster with an increasing number of basis functions, and we can use 5 multiscale basis functions of Type 2 for obtaining results with less than one percent of errors. Numerical results show that the results are better for basis functions construction without time and velocity. However, they are almost the same and in general, it is better to construct a basis using all information in the snapshot space constructions. For Test 2 with different boundary conditions and diffusion coefficients, we have the following conclusions for the transport problem: _•_ Multiscale basis functions are better to construct with all information (time and velocity). _•_ Type 1 and 2 provide almost the same results with the same size of the coarse grid system for the 2D problem. However, Type 2 is preferable due to the exact definition of the coarse grid parameters (a) Concentration, _c_ 10. Left: reference solution. Right: multiscale solution (b) Concentration, _c_ 20. Left: reference solution. Right: multiscale solution (c) Concentration, _c_ 40. Left: reference solution. Right: multiscale solution Figure 21: Relative _L_ 2 error for concentration at _tm_ ( _m_ = 10 _,_ 20 _,_ 30 and 40). Diffusion coefficient _D_ = 0 _._ 1 (Test 2). Left: Type 1 multiscale basis functions for concentration. Right: Type 2 multiscale basis functions for concentration. Reference solution with _DOFh_ <sup>_c_</sup> <sup>= 52050</sup> (a) Concentration, _c_ 10. Left: reference solution. Right: multiscale solution (b) Concentration, _c_ 20. Left: reference solution. Right: multiscale solution (c) Concentration, _c_ 40. Left: reference solution. Right: multiscale solution Figure 22: Relative _L_ 2 error for concentration at _tm_ ( _m_ = 10 _,_ 20 _,_ 30 and 40). Diffusion coefficient _D_ = 1 (Test 2). Left: Type 1 multiscale basis functions for concentration. Right: Type 2 multiscale basis functions for concentration. Reference solution with _DOFh_ <sup>_c_</sup> <sup>= 52050</sup> <u>without</u> <u>velocity</u> _<u>DOFH</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Type</u> <u>1,</u> <u>without</u> <u>time</u> 30 (2) 45.03 46.24 45.64 44.56 70 (6) 3.870 3.959 3.910 3.813 110 (10) 0.843 0.842 0.841 0.816 210 (20) 0.505 0.502 0.505 0.492 410 (40) 0.471 0.465 0.470 0.462 610 (60) 0.469 0.462 0.468 0.460 <u>810</u> <u>(80)</u> <u>0.468</u> <u>0.462</u> <u>0.467</u> <u>0.459</u> <u>Type</u> <u>2,</u> <u>without</u> <u>time</u> 30 (1) 93.96 93.31 92.55 92.02 70 (3) 3.892 3.337 2.978 2.793 110 (5) 0.486 0.488 0.503 0.509 210 (10) 0.384 0.361 0.362 0.362 410 (20) 0.380 0.357 0.356 0.357 610 (30) 0.380 0.356 0.355 0.356 <u>810</u> <u>(40)</u> <u>0.380</u> <u>0.356</u> <u>0.356</u> <u>0.356</u> <u>Type</u> <u>2,</u> <u>with</u> <u>time</u> 30 (1) 93.96 93.31 92.55 92.02 70 (3) 3.893 3.339 2.980 2.795 110 (5) 0.486 0.488 0.503 0.509 210 (10) 0.384 0.361 0.362 0.363 410 (20) 0.380 0.357 0.356 0.357 610 (30) 0.380 0.356 0.355 0.356 <u>810</u> <u>(40)</u> <u>0.380</u> <u>0.356</u> <u>0.355</u> <u>0.356</u> <u>with</u> <u>velocity</u> _<u>DOFH</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Type</u> <u>1,</u> <u>with</u> <u>time</u> 30 (2) 48.32 51.01 50.58 49.42 70 (6) 6.069 6.268 6.097 5.845 110 (10) 0.827 0.875 0.870 0.826 210 (20) 0.516 0.569 0.570 0.537 410 (40) 0.475 0.524 0.528 0.502 610 (60) 0.472 0.521 0.525 0.499 <u>810</u> <u>(80)</u> <u>0.472</u> <u>0.520</u> <u>0.524</u> <u>0.498</u> <u>Type</u> <u>2,</u> <u>without</u> <u>time</u> 30 (1) 71.43 75.52 73.94 72.40 70 (3) 8.661 8.862 8.827 8.631 110 (5) 1.208 1.440 1.440 1.492 210 (10) 0.509 0.619 0.656 0.648 410 (20) 0.408 0.467 0.490 0.486 610 (30) 0.400 0.454 0.475 0.472 <u>810</u> <u>(40)</u> <u>0.399</u> <u>0.451</u> <u>0.472</u> <u>0.469</u> <u>Type</u> <u>2,</u> <u>with</u> <u>time</u> 30 (1) 71.43 75.52 73.94 72.40 70 (3) 8.662 8.863 8.828 8.632 110 (5) 1.209 1.441 1.514 1.493 210 (10) 0.509 0.619 0.656 0.649 410 (20) 0.408 0.467 0.490 0.487 610 (30) 0.400 0.454 0.475 0.472 <u>810</u> <u>(40)</u> <u>0.399</u> <u>0.452</u> <u>0.472</u> <u>0.469</u> Table 6: Relative _L_ 2 error for concentration at _tm_ ( _m_ = 10 _,_ 20 _,_ 30 and 40). Diffusion coefficient _D_ = 0 _._ 1 (Test 2). Left: Type 1 multiscale basis functions for concentration. Right: Type 2 multiscale basis functions for concentration. Reference solution with _DOFh_ <sup>_c_</sup> <sup>= 52050</sup> and can be more usable for the general case with homogeneous boundary conditions. _•_ The presented multiscale method provides good results with small errors and gives a huge reduction of the system size. 4.3 Test 3 (unstructured coarse grid) Finally, we consider the test for unstructured coarse grids and investigate the influence of the velocity accuracy to the concentration errors for both structured and unstructured coarse grids. We consider a test problem with non-homogeneous Robin boundary condition for concentration with _cw_ = 1, _α_ = 0 _._ 01 and _D_ = 0 _._ 01. We set _c_ 0 = 1 and _u_ 0 = 0 as initial conditions. For the inflow (left) boundary, we set _cin_ = 0 for Γ _in_ . We perform simulations for _tmax_ = 0 _._ 7 with 40 time iterations. We consider a structured and unstructured coarse grid with 10 local domains. The structured coarse grid is similar to Test 1. The unstructured grid is depicted in Figure 23, where we show local domain markers. In Figure 24, we present reference and multiscale solutions for an unstructured grid. We depicted the magnitude of the velocity field and concentration at the final time. In multiscale solver, we used _M_ <sup>_u_</sup> = 40 multiscale basis functions for velocity and _M_ <sup>_u_</sup> = 20 multiscale basis functions for concentration. For reference solution, we have _DOFh_ <sup>_u_</sup> <sup>=</sup> <sup>121226</sup> <sup>and</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> <sup>=</sup> <sup>51954.</sup> <sup>For</sup> <sup>multiscale</sup> <sup>solution,</sup> <sup>we</sup> <sup>have</sup> _DOFH_ <sup>_u_</sup> <sup>= 810 and</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> <sup>= 610.</sup> <sup>We observe a good accuracy of the presented method on an unstructured</sup> grid. _H_ <sup>_u_</sup> <sup>= 810 and</sup> <sup>_DOF_</sup> _H_ <sup>_c_</sup> _h_ <sup>_u_</sup> <sup>=</sup> <sup>121226</sup> <sup>and</sup> <sup>_DOF_</sup> _h_ <sup>_c_</sup> <u>without</u> <u>velocity</u> _<u>DOFc</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Type</u> <u>1,</u> <u>without</u> <u>time</u> 30 (2) 82.00 80.87 78.91 78.04 70 (6) 9.095 10.93 11.00 10.74 110 (10) 2.086 2.625 2.636 2.562 210 (20) 1.344 1.707 1.718 1.671 410 (40) 1.149 1.458 1.468 1.428 610 (60) 1.128 1.431 1.442 1.402 <u>810</u> <u>(80)</u> <u>1.120</u> <u>1.421</u> <u>1.431</u> <u>1.392</u> <u>Type</u> <u>2,</u> <u>without</u> <u>time</u> 30 (1) 98.76 98.43 98.25 98.17 70 (3) 7.119 7.728 7.684 7.536 110 (5) 0.699 0.872 0.870 0.846 210 (10) 0.197 0.251 0.253 0.246 410 (20) 0.114 0.143 0.145 0.141 610 (30) 0.109 0.136 0.138 0.134 <u>810</u> <u>(40)</u> <u>0.108</u> <u>0.135</u> <u>0.137</u> <u>0.133</u> <u>Type</u> <u>2,</u> <u>with</u> <u>time</u> 30 (1) 98.76 98.43 98.25 98.17 70 (3) 7.119 7.728 7.684 7.536 110 (5) 0.699 0.872 0.872 0.846 210 (10) 0.197 0.251 0.251 0.246 410 (20) 0.114 0.143 0.145 0.141 610 (30) 0.109 0.136 0.138 0.134 <u>810</u> <u>(40)</u> <u>0.108</u> <u>0.135</u> <u>0.137</u> <u>0.133</u> <u>with</u> <u>velocity</u> _<u>DOFc</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>Type</u> <u>1,</u> <u>with</u> <u>time</u> 30 (2) 82.06 80.92 78.95 78.09 70 (6) 9.142 10.99 11.05 10.79 110 (10) 2.094 2.636 2.647 2.572 210 (20) 1.354 1.720 1.731 1.683 410 (40) 1.159 1.471 1.481 1.441 610 (60) 1.138 1.444 1.455 1.415 <u>810</u> <u>(80)</u> <u>1.130</u> <u>1.434</u> <u>1.444</u> <u>1.405</u> <u>Type</u> <u>2,</u> <u>without</u> <u>time</u> 30 (1) 95.75 94.61 94.00 93.75 70 (3) 5.556 6.164 6.173 6.059 110 (5) 0.765 0.965 0.988 0.973 210 (10) 0.299 0.387 0.398 0.391 410 (20) 0.155 0.204 0.210 0.205 610 (30) 0.144 0.189 0.194 0.190 <u>810</u> <u>(40)</u> <u>0.143</u> <u>0.187</u> <u>0.192</u> <u>0.188</u> <u>Type</u> <u>2,</u> <u>with</u> <u>time</u> 30 (1) 95.75 94.61 94.00 93.75 70 (3) 5.556 6.164 6.173 6.059 110 (5) 0.765 0.965 0.988 0.974 210 (10) 0.299 0.387 0.398 0.391 410 (20) 0.155 0.204 0.210 0.205 610 (30) 0.144 0.189 0.194 0.190 <u>810</u> <u>(40)</u> <u>0.143</u> <u>0.187</u> <u>0.192</u> <u>0.188</u> Table 7: Relative _L_ 2 error for concentration at _tm_ ( _m_ = 10 _,_ 20 _,_ 30 and 40). Diffusion coefficient _D_ = 1 (Test 2). Left: Type 1 multiscale basis functions for concentration. Right: Type 2 multiscale basis functions for concentration. Reference solution with _DOFh_ <sup>_c_</sup> <sup>= 52050</sup> Figure 23: Fine grid with subdomain markers for Geometry 1 with 10 local domains In Table 8, we present relative errors in % for velocity between reference solution and multiscale solution with different numbers of the multiscale basis functions at the final times. Results are presented (a) Velocity at final time. Left: reference solution. Right: multiscale solution (b) Concentration at final time. Left: reference solution. Right: multiscale solution Figure 24: Reference and multiscale solutions of velocity (first row) and concentration (second row) at the final time. Unstructured coarse grid solution (Test 3). Left: reference solution with _DOFh_ <sup>_u_</sup> <sup>= 121226</sup> and _DOFh_ <sup>_c_</sup> <sup>= 51954.</sup> <sup>Right:</sup> <sup>multiscale</sup> <sup>solution</sup> <sup>with</sup> <sup>multiscale</sup> <sup>basis</sup> <sup>functions</sup> <sup>of</sup> <sup>Type</sup> <sup>2,</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> <sup>= 810</sup> and _DOFH_ <sup>_c_</sup> <sup>= 610.</sup> _h_ <sup>_c_</sup> <sup>= 51954.</sup> <sup>Right:</sup> <sup>multiscale</sup> <sup>solution</sup> <sup>with</sup> <sup>multiscale</sup> <sup>basis</sup> <sup>functions</sup> <sup>of</sup> <sup>Type</sup> <sup>2,</sup> <sup>_DOF_</sup> _H_ <sup>_u_</sup> _H_ <sup>_c_</sup> <sup>= 610.</sup> <u>Structured</u> _<u>DOFH</u>_ <sup>_<u>u</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>u</u>_ <u>)</u> <u>(%)</u> 110 (5) 19.856 210 (10) 10.529 410 (20) 3.230 610 (30) 1.756 <u>810</u> <u>(40)</u> <u>1.346</u> <u>Unstructured</u> _<u>DOFH</u>_ <sup>_<u>u</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>u</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>u</u>_ <u>)</u> <u>(%)</u> 110 (5) 24.824 210 (10) 16.777 410 (20) 7.981 610 (30) 5.986 <u>810</u> <u>(40)</u> <u>3.846</u> Table 8: Relative _L_ 2 error for the velocity at the final time. Unstructured coarse grid solution (Test 3). Type 2 multiscale basis functions for velocity. _DOFh_ <sup>_u_</sup> <sup>= 121226.</sup> for structured and unstructured grids. We observe good results for the unstructured grid, however, velocity errors are smaller on a structured grid. For example for 40 multiscale basis functions, we have 1 _._ 3 % of error for a structured grid and 3 _._ 8 % of error for an unstructured grid. In Table 9, we investigate the influence of the velocity accuracy on the concentration solution for structured and unstructured coarse grids. We present numerical results for different number of multiscale basis functions for concentration of Type 2. Relative errors for concentrations are presented for four time layers _tm_ with _m_ = 10 _,_ 20 _,_ 30 and 40. We can obtain good solution for concentration when we take at least 10 multiscale basis functions for velocity. For example, we obtain near 10 % of concentration error ( _M_ <sup>_c_</sup> = 20), when we use multiscale velocity solution with 5 multiscale basis functions and near 1 % using velocity with _M_ <sup>_u_</sup> = 20. For concentration, we obtain similar results for structured and unstructured coarse grids using a multiscale solution of velocity with a sufficient number of basis functions. ### 5 Conclusions We developed a multiscale model order reduction technique for the solution of the flow and transport problem in thin domains. Our motivation stems from reducing the problem dimension in thin layer applications. For the fine grid approximation, we apply the discontinuous Galerkin method and use the <u>Structured</u> _<u>DOFc</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>u</u> <u>with</u> <u>5</u> <u>basis</u> 30 (1) 49.86 53.64 52.60 50.31 70 (3) 26.77 24.59 21.24 19.56 110 (5) 15.25 13.78 10.12 7.744 210 (10) 8.775 7.873 6.543 5.582 410 (20) 5.185 5.501 5.294 4.947 610 (30) 5.185 5.495 5.290 4.947 <u>810</u> <u>(40)</u> <u>5.184</u> <u>5.493</u> <u>5.289</u> <u>4.947</u> <u>u</u> <u>with</u> <u>10</u> <u>basis</u> 30 (1) 49.94 53.73 52.69 50.41 70 (3) 26.42 24.39 21.14 19.49 110 (5) 14.87 13.39 9.707 7.362 210 (10) 7.543 6.480 4.788 3.503 410 (20) 3.061 3.319 3.203 2.937 610 (30) 3.056 3.309 3.193 2.931 <u>810</u> <u>(40)</u> <u>3.054</u> <u>3.306</u> <u>3.190</u> <u>2.929</u> <u>u</u> <u>with</u> <u>20</u> <u>basis</u> 30 (1) 49.91 53.68 52.64 50.36 70 (3) 26.22 24.27 21.11 19.47 110 (5) 14.63 13.24 9.693 7.351 210 (10) 6.909 5.760 3.943 2.372 410 (20) 1.867 2.003 1.870 1.701 610 (30) 1.850 1.978 1.842 1.674 <u>810</u> <u>(40)</u> <u>1.846</u> <u>1.972</u> <u>1.836</u> <u>1.669</u> <u>u</u> <u>with</u> <u>40</u> <u>basis</u> 30 (1) 49.89 53.64 52.60 50.32 70 (3) 26.18 24.23 21.09 19.44 110 (5) 14.60 13.21 9.708 7.396 210 (10) 6.812 5.646 3.806 2.237 410 (20) 1.689 1.820 1.701 1.600 610 (30) 1.669 1.790 1.667 1.569 <u>810</u> <u>(40)</u> <u>1.664</u> <u>1.783</u> <u>1.660</u> <u>1.562</u> <u>u</u> <u>fine</u> 30 (1) 49.89 53.64 52.60 50.32 70 (3) 26.17 24.22 21.07 19.42 110 (5) 14.58 13.17 9.620 7.312 210 (10) 6.814 5.621 3.714 2.068 410 (20) 1.538 1.647 1.437 1.307 610 (30) 1.517 1.617 1.402 1.275 <u>810</u> <u>(40)</u> <u>1.512</u> <u>1.611</u> <u>1.395</u> <u>1.269</u> <u>Unstructured</u> _<u>DOFc</u>_ <sup>_<u>c</u>_</sup> <sup><u>(</u></sup> <sup>_<u>M</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>)</u></sup> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>10)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>20)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>30)</u> _<u>e</u>_ <u>(</u> _<u>c</u>_ <u>40)</u> <u>u</u> <u>with</u> <u>5</u> <u>basis</u> 30 (1) 50.856 56.271 55.245 52.700 70 (3) 22.335 20.899 17.647 15.467 110 (5) 16.503 14.952 11.308 8.805 210 (10) 13.910 13.089 10.954 9.543 410 (20) 11.157 10.444 9.704 9.628 610 (30) 11.627 10.835 10.103 10.070 <u>810</u> <u>(40)</u> <u>11.947</u> <u>11.174</u> <u>10.448</u> <u>10.412</u> <u>u</u> <u>with</u> <u>10</u> <u>basis</u> 30 (1) 50.920 56.299 55.222 52.667 70 (3) 21.705 19.859 16.463 14.420 110 (5) 15.006 13.277 9.427 6.236 210 (10) 10.891 9.877 7.186 4.499 410 (20) 3.275 3.438 3.026 2.431 610 (30) 3.132 3.334 3.004 2.515 <u>810</u> <u>(40)</u> <u>3.103</u> <u>3.346</u> <u>3.070</u> <u>2.616</u> <u>u</u> <u>with</u> <u>20</u> <u>basis</u> 30 (1) 50.997 56.365 55.282 52.732 70 (3) 21.744 20.012 16.703 14.762 110 (5) 14.917 13.181 9.2779 6.281 210 (10) 10.609 9.420 6.659 4.097 410 (20) 2.186 2.284 1.889 1.438 610 (30) 2.004 2.159 1.833 1.485 <u>810</u> <u>(40)</u> <u>1.895</u> <u>2.075</u> <u>1.816</u> <u>1.517</u> <u>u</u> <u>with</u> <u>40</u> <u>basis</u> 30 (1) 50.999 56.357 55.267 52.717 70 (3) 21.735 21.734 16.768 14.822 110 (5) 14.897 13.165 9.307 6.338 210 (10) 10.552 9.308 6.583 4.088 410 (20) 2.054 2.133 1.775 1.424 610 (30) 1.850 1.998 1.7076 1.452 <u>810</u> <u>(40)</u> <u>1.738</u> <u>1.919</u> <u>1.688</u> <u>1.482</u> <u>u</u> <u>fine</u> 30 (1) 50.968 50.968 55.240 52.692 70 (3) 21.805 20.080 16.763 14.858 110 (5) 15.055 13.196 9.225 6.391 210 (10) 10.6257 9.221 6.366 3.951 410 (20) 1.844 1.737 1.342 1.058 610 (30) 1.575 1.549 1.247 1.074 <u>810</u> <u>(40)</u> <u>1.420</u> <u>1.433</u> <u>1.215</u> <u>1.100</u> Table 9: Relative _L_ 2 error for concentration at _tm_ ( _m_ = 10 _,_ 20 _,_ 30 and 40). Unstructured coarse grid solution (Test 3). Type 2 multiscale basis functions for velocity. _DOFh_ <sup>_u_</sup> <sup>= 51954.</sup> solution as a reference solution. Our multiscale approach for solving problems in complex thin geometries gives an accurate approximation of the velocity space and transport processes. We presented two types of the local multiscale basis functions for velocity and concentration, where the first is based on the approach combining all possible flows and transports directions in the local domain and the second approach is based on the separation of the macroscale parameters by the flow direction for velocity and by boundary type for transport. Moreover, our multiscale spaces can accurately capture complex processes on the rough wall boundaries with non-homogeneous boundary conditions. We use numerical simulations for three test geometries for two and three-dimensional problems to demonstrate the performance of our method. Numerical investigation of the presented method was performed (1) for different geometries of the computational domain, (2) for different boundary conditions and diffusion coefficients, and (3) for the unstructured coarse grid. The proposed multiscale method provides good results with small errors and gives a huge reduction of the system size. ### References [1] Alfio Quarteroni and Luca Formaggia. Mathematical modelling and numerical simulation of the cardiovascular system. _Handbook_ _of_ _numerical_ _analysis_, 12:3–127, 2004. [2] Abdessalem Nachit, Gregory P Panasenko, and Abdelmalek Zine. Asymptotic partial domain de composition in thin tube structures: numerical experiments. _International_ _Journal_ _for_ _Multiscale_ _Computational_ _Engineering_, 11(5), 2013. [3] Marie Oshima, Ryo Torii, Toshio Kobayashi, Nobuyuki Taniguchi, and Kiyoshi Takagi. Finite element simulation of blood flow in the cerebral artery. _Computer_ _methods_ _in_ _applied_ _mechanics_ _and_ _engineering_, 191(6-7):661–671, 2001. [4] Vincent Martin, J´erˆome Jaffr´e, and Jean E Roberts. Modeling fractures and barriers as interfaces for flow in porous media. _SIAM_ _Journal_ _on_ _Scientific_ _Computing_, 26(5):1667–1691, 2005. [5] Luca Formaggia, Alessio Fumagalli, Anna Scotti, and Paolo Ruffo. A reduced model for darcy’s prob lem in networks of fractures. _ESAIM:_ _Mathematical_ _Modelling_ _and_ _Numerical_ _Analysis_, 48(4):1089– 1116, 2014. [6] Carlo D’angelo and Alfio Quarteroni. On the coupling of 1d and 3d diffusion-reaction equations: application to tissue perfusion problems. _Mathematical_ _Models_ _and_ _Methods_ _in_ _Applied_ _Sciences_, 18(08):1481–1504, 2008. [7] Grigory Panasenko and Konstantin Pileckas. Asymptotic analysis of the nonsteady viscous flow with a given flow rate in a thin pipe. _Applicable_ _Analysis_, 91(3):559–574, 2012. [8] Grigory Panasenko. Method of asymptotic partial decomposition of domain for multistructures. _Applicable_ _Analysis_, 96(16):2771–2779, 2017. [9] Thomas Y Hou and Xiao-Hui Wu. A multiscale finite element method for elliptic problems in composite materials and porous media. _Journal_ _of_ _computational_ _physics_, 134(1):169–189, 1997. [10] Yalchin Efendiev and Thomas Y Hou. _Multiscale_ _finite_ _element_ _methods:_ _theory_ _and_ _applications_, volume 4. Springer Science & Business Media, 2009. [11] Eric T Chung and Yalchin Efendiev. Reduced-contrast approximations for high-contrast multiscale flow problems. _Multiscale_ _Modeling_ _&_ _Simulation_, 8(4):1128–1153, 2010. [12] Zhiming Chen and Thomas Hou. A mixed multiscale finite element method for elliptic problems with oscillating coefficients. _Mathematics_ _of_ _Computation_, 72(242):541–576, 2003. [13] Jorg E Aarnes. On the use of a mixed multiscale finite element method for greaterflexibility and increased speed or improved accuracy in reservoir simulation. _Multiscale_ _Modeling_ _&_ _Simulation_, 2(3):421–439, 2004. [14] Yalchin Efendiev, Juan Galvis, and Thomas Y Hou. Generalized multiscale finite element methods (gmsfem). _Journal_ _of_ _Computational_ _Physics_, 251:116–135, 2013. [15] Eric Chung, Yalchin Efendiev, and Thomas Y Hou. Adaptive multiscale model reduction with generalized multiscale finite element methods. _Journal_ _of_ _Computational_ _Physics_, 320:69–95, 2016. [16] Eric T Chung and Wing Tat Leung. A sub-grid structure enhanced discontinuous galerkin method for multiscale diffusion and convection-diffusion problems. _Communications_ _in_ _Computational_ _Physics_, 14(2):370–392, 2013. [17] Siu Wun Cheung, Eric T Chung, and Wing Tat Leung. Constraint energy minimizing generalized multiscale discontinuous galerkin method. _Journal of Computational and Applied Mathematics_, page 112960, 2020. [18] Eric Chung, Jiuhua Hu, and Sai-Mang Pun. Convergence of the cem-gmsfem for stokes flows in heterogeneous perforated domains. _arXiv_ _preprint_ _arXiv:2007.03237_, 2020. [19] Todd Arbogast, Gergina Pencheva, Mary F Wheeler, and Ivan Yotov. A multiscale mortar mixed finite element method. _Multiscale_ _Modeling_ _&_ _Simulation_, 6(1):319–346, 2007. [20] Patrick Jenny, Seong H Lee, and Hamdi A Tchelepi. Adaptive multiscale finite-volume method for multiphase flow and transport in porous media. _Multiscale_ _Modeling_ _&_ _Simulation_, 3(1):50–64, 2005. [21] Hadi Hajibeygi, Giuseppe Bonfigli, Marc Andre Hesse, and Patrick Jenny. Iterative multiscale finite volume method. _Journal_ _of_ _Computational_ _Physics_, 227(19):8604–8621, 2008. [22] Thomas JR Hughes, Gonzalo R Feij´oo, Luca Mazzei, and Jean-Baptiste Quincy. The variational multiscale method?a paradigm for computational mechanics. _Computer methods in applied mechanics_ _and_ _engineering_, 166(1-2):3–24, 1998. [23] Ralf Kornhuber, Daniel Peterseim, and Harry Yserentant. An analysis of a class of variational multiscale methods based on subspace decomposition. _Mathematics_ _of_ _Computation_, 87(314):2765– 2774, 2018. [24] Axel M˚alqvist and Daniel Peterseim. Localization of elliptic multiscale problems. _Mathematics_ _of_ _Computation_, 83(290):2583–2603, 2014. [25] Assyr Abdulle, E Weinan, Bj¨orn Engquist, and Eric Vanden-Eijnden. The heterogeneous multiscale method. _Acta_ _Numerica_, 21:1–87, 2012. [26] Bagus Putra Muljadi, Jacek Narski, Alexei Lozinski, and Pierre Degond. Nonconforming multiscale finite element method for stokes flows in heterogeneous media. part i: methodologies and numerical experiments. _Multiscale_ _Modeling_ _&_ _Simulation_, 13(4):1146–1172, 2015. [27] Gaspard Jankowiak and Alexei Lozinski. Non-conforming multiscale finite element method for stokes flows in heterogeneous media. part ii: Error estimates for periodic microstructure. _arXiv_ _preprint_ _arXiv:1802.04389_, 2018. [28] Eric T Chung, Yalchin Efendiev, Guanglian Li, and Maria Vasilyeva. Generalized multiscale finite el ement methods for problems in perforated heterogeneous domains. _Applicable Analysis_, 95(10):2254– 2279, 2016. [29] Eric T Chung, Wing Tat Leung, Maria Vasilyeva, and Yating Wang. Multiscale model reduction for transport and flow problems in perforated domains. _Journal_ _of_ _Computational_ _and_ _Applied_ _Mathematics_, 330:519–535, 2018. [30] ET Chung, O Iliev, and MV Vasilyeva. Generalized multiscale finite element method for nonnewtonian fluid flow in perforated domain. In _AIP_ _Conference_ _Proceedings_, volume 1773, page 100001. AIP Publishing, 2016. [31] Eric T Chung, Maria Vasilyeva, and Yating Wang. A conservative local multiscale model reduction technique for stokes flows in heterogeneous perforated domains. _Journal_ _of_ _Computational_ _and_ _Applied_ _Mathematics_, 321:389–405, 2017. [32] Oleg Iliev, Zahra Lakdawala, Katherine HL Neßler, Torben Prill, Yavor Vutov, Yongfei Yang, and Jun Yao. On the pore-scale modeling and simulation of reactive transport in 3d geometries. _Mathematical_ _Modelling_ _and_ _Analysis_, 22(5):671–694, 2017. [33] Ulrich Hornung and Willi J¨ager. Diffusion, convection, adsorption, and reaction of chemicals in porous media. _Journal_ _of_ _differential_ _equations_ _(Print)_, 92(2):199–225, 1991. [34] Gr´egoire Allaire, Andro Mikeli´c, and Andrey Piatnitski. Homogenization approach to the dispersion theory for reactive transport through porous media. _SIAM_ _Journal_ _on_ _Mathematical_ _Analysis_, 42(1):125–144, 2010. [35] Maria Vasilyeva, Eric T Chung, Wing Tat Leung, Yating Wang, and Denis Spiridonov. Upscaling method for problems in perforated domains with non-homogeneous boundary conditions on perforations using non-local multi-continuum method (nlmc). _Journal_ _of_ _Computational_ _and_ _Applied_ _Mathematics_, 357:215–227, 2019. [36] Denis Spiridonov, Maria Vasilyeva, and Wing Tat Leung. A generalized multiscale finite element method (gmsfem) for perforated domain flows with robin boundary conditions. _Journal_ _of_ _Compu-_ _tational_ _and_ _Applied_ _Mathematics_, 357:319–328, 2019. [37] Denis Spiridonov, Maria Vasilyeva, Eric T Chung, Yalchin Efendiev, and Raghavendra Jana. Mul tiscale model reduction of the unsaturated flow problem in heterogeneous porous media with rough surface topography. _Mathematics_, 8(6):904, 2020. [38] Eric T Chung, Yalchin Efendiev, Wing Tat Leung, Maria Vasilyeva, and Yating Wang. Non-local multi-continua upscaling for flows in heterogeneous fractured media. _Journal_ _of_ _Computational_ _Physics_, 372:22–34, 2018. [39] Maria Vasilyeva, Eric T Chung, Wing Tat Leung, and Valentin Alekseev. Nonlocal multicontinuum (nlmc) upscaling of mixed dimensional coupled flow problem for embedded and discrete fracture models. _GEM-International_ _Journal_ _on_ _Geomathematics_, 10(1):23, 2019. [40] Shubin Fu, Guanglian Li, Richard Craster, and Sebastien Guenneau. Wavelet-based edge multiscale finite element method for helmholtz problems in perforated domains. _arXiv_ _preprint_ _arXiv:1906.08453_, 2019. [41] Shubin Fu, Eric Chung, and Guanglian Li. Edge multiscale methods for elliptic problems with heterogeneous coefficients. _Journal_ _of_ _Computational_ _Physics_, 396:228–242, 2019. [42] Ibrahim Y Akkutlu, Yalchin Efendiev, and Maria Vasilyeva. Multiscale model reduction for shale gas transport in fractured media. _Computational_ _Geosciences_, 20(5):953–973, 2016. [43] Yashar Mehmani and Hamdi A Tchelepi. Multiscale formulation of two-phase flow at the pore scale. _Journal_ _of_ _Computational_ _Physics_, 389:164–188, 2019. [44] Eric T Chung, Yalchin Efendiev, and Wing Tat Leung. An adaptive generalized multiscale dis continuous galerkin method for high-contrast flow problems. _Multiscale_ _Modeling_ _&_ _Simulation_, 16(3):1227–1257, 2018. [45] Eric T Chung, Yalchin Efendiev, Maria Vasilyeva, and Yating Wang. A multiscale discontinuous galerkin method in perforated domains. In _Proceedings_ _of_ _the_ _Institute_ _of_ _Mathematics_ _and_ _Mechan-_ _ics_, volume 42, pages 212–229. INST MATHEMATICS & MECHANICS, NATL ACAD SCIENCES AZERBAIJAN 9 B VAHABZADEH . . ., 2016. [46] Christophe Geuzaine and Jean-Fran¸cois Remacle. Gmsh: A 3-d finite element mesh generator with built-in pre-and post-processing facilities. _International_ _journal_ _for_ _numerical_ _methods_ _in_ _engineer-_ _ing_, 79(11):1309–1331, 2009. [47] Anders Logg, Kent-Andre Mardal, and Garth Wells. _Automated_ _solution_ _of_ _differential_ _equations_ _by_ _the_ _finite_ _element_ _method:_ _The_ _FEniCS_ _book_, volume 84. Springer Science & Business Media, 2012. [48] Tatyana Dobroserdova, Fuyou Liang, Grigory Panasenko, and Yuri Vassilevski. Multiscale models of blood flow in the compliant aortic bifurcation. _Applied_ _Mathematics_ _Letters_, 93:98–104, 2019.

섹션 본문

섹션 본문이 없습니다.

참고문헌

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