Multicontinuum Homogenization for Coupled Flow and Transport Equations
Abstract
In this paper, we present the derivation of a multicontinuum model for the coupled flow and transport equations by applying multicontinuum homogenization. We perform the multicontinuum expansion for both flow and transport solutions and formulate novel coupled constraint cell problems to capture the multiscale property, where oversampled regions are utilized to avoid boundary effects. Assuming the smoothness of macroscopic variables, we obtain a multicontinuum system composed of macroscopic elliptic equations and convection-diffusion-reaction equations with homogenized effective properties. Finally, we present numerical results for various coefficient fields and boundary conditions to validate our proposed algorithm.
Keywords: multiscale, multicontinuum, homogenization, coupled flow and transport, miscible displacement.
1 Introduction
The coupled system of flow and transport equations is fundamental in modeling phenomena across various scientific and engineering fields, including hydrology, petroleum engineering, and environmental science. For instance, the miscible displacement of one incompressible fluid by another, which occurs in processes ranging from enhanced oil and gas recovery to the remediation of contaminated groundwater, can be governed by these equations [1]. However, a ubiquitous challenge in these scenarios is the inherent heterogeneities and high contrast in material properties. These complexities not only complicate simulation efforts but also significantly impact the accuracy of predictive models. Consequently, the adoption of upscaling techniques is necessary to accurately capture detailed multiscale properties, enabling time-saving and precise computations.
Many different methods have been developed to perform simulations on a coarse grid, one type of which is homogenization methods [2, 3, 4]. In homogenization methods, one defines upscaled coefficients for multiscale properties through local solutions of fine-grid problems and utilizes them to formulate the macroscopic flow and transport equations on the coarse grid. The homogenized solution for the transport equation can be computed after the macroscopic flow equation has been solved. Such homogenization methods have been applied in petroleum engineering [5, 6].
Another approach is multiscale methods, including the Multiscale Finite Element Method [7, 8, 9], the Multiscale Finite Volume Method [10, 11, 12], the Generalized Multiscale Finite Element Method [13, 14, 15], and others. Multiscale methods construct local basis functions via fine-grid local problems and use them to approximate the solutions. One could either apply multiscale methods to the flow equation and solve the transport equation on the fine grid, or apply these methods to both of them, depending on the media properties [11, 16]. Mixed multiscale methods have also been developed to solve the coarse transport equation [17, 18].
This paper presents the multicontinuum homogenization method following earlier works on the elliptic equation [19] using the ideas of the above two types of methods. For deriving a macroscopic equation, multicontinuum homogenization posits a multicontinuum expansion in each coarse block (or Representative Volume Element (RVE) in the case of scale separation) about macroscopic quantities and multiscale basis functions. The macroscopic quantities are introduced to represent local averages of solution in each continuum and assumed to be smooth over coarse regions. Besides, the multiscale basis functions are obtained from some oversampled locally constraint cell problems solved on a fine grid, which are inspired by [20, 21] and can be designed to promise localization.
In our study, we will apply multicontinuum homogenization to both the flow and the transport equations in the coupled system. However, challenges are that the transport equation contains heterogeneous and high-contrast convection and temporal terms, and its convection coefficient further depends on the solution of the flow equation. To address these problems, we carefully design new coupled constraint cell problems, where the one for transport reflects the multiscale property for each term. With multiscale basis functions obtained from the coupled cell problems, we perform the multicontinuum expansions in the variational forms of the flow and transport equations. We will derive a multicontinuum system composed of macroscopic elliptic equations and convection-diffusion-reaction equations, where the effective properties have been homogenized in each coarse block to capture the fine-scale details. We remark here that the properties for convection-diffusion-reaction equations will depend on the flow equation. Therefore, machine learning techniques could be used to predict effective properties, and we could, as in many model reduction methods, divide the computation into offline and online stages to save online computation. We also note that the fine-scale information can be recovered from macroscopic solutions by the multicontinuum expansions. We apply it to coupled flow and transport equations with different coefficient fields subject to different boundary conditions to validate our proposed method. We change the coarse mesh size and compare the macroscopic results with the averaged reference solutions. The relative errors are very small, and our method performs the simulations accurately.
Our main contributions consist of the following. Firstly, we formulate appropriate coupled constraint cell problems to deal with the multiscale property of the coupled equations. Secondly, we derive a novel multicontinuum coupled model about macroscopic solutions on the coarse grid. Thirdly, we present numerical results for various media fields and boundary conditions to show the validity.
The paper is organized as follows. In Section 2, we present preliminaries and review some earlier works on multiscale methods. Section 3 is contributed to the description of multicontinuum homogenization and the derivation of the multicontinuum model. We present numerical results in Section 4 and finally draw conclusions in Section 5.
2 Preliminaries
In this work, we consider the following linearized and one-way coupled system of flow and transport equations for pressure and concentration in a bounded domain
(1) |
where , is a permeability coefficient, is a porosity, is a diffusion coefficient, and and are source terms. We assume and are heterogeneous and of high contrast. Before delving into multicontinuum homogenization, we briefly review earlier efforts on some methods for multiscale problems, including (numerical) homogenization, MsFEM, GMsFEM.
The main idea of the homogenization method is to derive macroscopic equations, with the multiscale coefficients in original equations replaced by homogenized effective properties. While the classical homogenization method relies on periodicity and posits a formal asymptotic expansion of solution, numerical homogenization defines an upscaled property for each coarse block, conversing averages in a physical sense for specific boundary conditions, without the periodicity assumption. To homogenize the flow equation in (1), for instance, we formulate local problems for each coarse block
(2) |
subject to some appropriate boundary conditions, like on . The elements of the upscaled coefficient are defined by averaging the fluxes
(3) |
and this leads to
(4) |
Then, the transport equation can be homogenized with a similar idea to get upscaled diffusion while the upscaled porosity would be its volume averaging, and consequently, we derive the following coupled macroscopic equations
(5) |
where , and are anisotropic upscaled coefficients. The macroscopic solutions can be obtained by solving the coupled system above on the coarse grid.
The Multiscale Finite Element Method (MsFEM), rather than deriving a macroscopic equation, establishes local multiscale basis functions via local problems formulated on coarse blocks to approximate the solution. Specifically, with multiscale basis functions for pressure and for concentration at each coarse node supported in coarse neighborhood , we seek approximate solutions and that lie in and respectively, and
(6) |
Now, we illustrate how to construct local problems. Since the transport equation in (1) lacks temporal heterogeneity, and can be chosen to satisfy
(7) |
in each coarse block K such that on , where represents the nodal basis at node of the coarse finite element space. Indeed, the mesh grids for pressure and concentration are not necessarily the same, and the boundary conditions for local problems can be chosen differently. Note also that local problems can be defined in representative volume element (RVE) in the case of scale separation, and fine-scale information could be recovered, which is unachievable by most homogenization methods.
The Generalized Multiscale Finite Element Method (GMsFEM), evolving from MsFEM, adds additional local degrees of freedom as necessary and thus can systematically enrich coarse spaces and capture multiscale features more precisely. The first step is to construct the snapshot space and for each generic coarse region , which can be composed of, for example, harmonic extensions of fine-grid functions on , that is,
(8) |
in with on . Here is a piecewise linear function on satisfying for any fine-grid boundary node . Subsequently, we only keep the dominant component subspace of each local snapshot space and form a multiscale space. A local spectral decomposition for each snapshot space is constructed for model reduction purposes. This involves finding and such that
(9) |
We select the eigenvectors corresponding to the smallest eigenvalues, denoted as and , and multiply them by multiscale partition of unity to form the multiscale basis, i.e., and . We remark that the degrees of freedom can be added adaptively according to a-posteriori error estimates. For more details on the methods above, one may refer to [4, 7, 13, 22].
3 Multicontinuum homogenization and multicontinuum model
In this section, we will present the main ideas and concepts of multicontinuum homogenization and apply it to the coupled flow and transport equations to derive a multicontinuum model.
3.1 Main ideas
The multicontinuum homogenization method, similar to classical homogenization, also aims for macroscopic equations. It introduces macroscopic quantities to represent the local averages of solution and posits the general multicontinuum expansion in each local region, like RVE,
(10) |
where is the macroscopic quantity for continuum with physical meaning, , , , are auxiliary basis functions obtained via some carefully constructed cell problems, which minimize local energy under certain constraints. The summation over repeated indices is taken. Here, the choice of cell problems is crucial for ensuring localization of the local basis. In the following, we will ignore the terms after the second term and only use the two-term expansion for simplicity. We apply the above expansion to both the solution and test function and substitute them into the variational form, where RVE concepts could be utilized. Using the smoothness of macroscopic quantities, we can take them out of the local integrals and, after some calculation, arrive at a macroscopic equation about , which can recover the fine-scale information by expansion (10). Note that the smoothness of macroscopic quantities is reasonable and crucial for multicontinuum homogenization. We also remark that the continua are not necessarily defined apriori but could be achieved by local spectral problems.
Next, we will describe the multicontinuum homogenization method for (1) in detail. Since the pressure field’s equation does not depend on the concentration, we can perform homogenization in a split way.
3.2 Flow homogenization
Let us consider the following variational formulation of the flow equation
(11) |
Cell problems.
We assume that our computational domain is partitioned into coarse-grid elements ’s, whose sizes are larger than the scale of heterogeneities. Also, we assume there is a Representative Volume Element (RVE) inside each coarse element . These RVEs have the following properties:
-
•
can represent the entire in terms of its heterogeneities;
-
•
contains N continua (or components). For each continuum of , we introduce the following characteristic function ()
For performing homogenization, we introduce two cell problems in the oversampled RVE constructed around and consisted of several RVEs , where . The relationship between the computational domain , coarse block , RVE and oversampled RVE has been illustrated in Figure 1. We would like to minimize the local energy in under different constraints, where Lagrange multipliers are applied. The first cell problem (12) considers gradient effects and imposes constraints to represent the linear functions in the average behavior of each continuum
(12) |
where is a constant. The second cell problem considers different averages in each continuum and represents the constants in the average behavior
(13) |
We remark that the solution in should be independent of the oversampling size as a result of the construction of our cell problems.
Coarse-grid model.
Next, we introduce the following multicontinuum expansion of in each
(14) |
where is a smooth function in a macroscopic sense representing the homogenized solution for the -th continuum. In our case, we have for some .
Using the definition of RVE, we obtain the following approximation of the variational formulation
(15) |
Next, if we replace with its multicontinuum expansion (14), we get
(16) |
Additionally, we define the following multicontinuum expansion of
(17) |
According to our assumption on the smoothness of the macroscopic variables, the variations of and are relatively small when compared to the variations of and . Similarly, this applies to and .
Then, we can approximate the first term of (16) as follows
(18) |
where
(19) |
The second term of (16) is approximated in a similar way
(20) |
where
(21) |
Therefore, by utilizing continuous approximations for and , we have
(22) |
According to [19], we have the following estimates for the solutions of the local cell problems and their gradients
(23) |
where is the size of RVE. Then, we can obtain the following scalings
We introduce , , and as follows
(24) |
Using these scalings, we obtain
(25) |
By applying the integration by parts formula, one can find out that that the sum of the second and third terms is negligible. Finally, we obtain the following multicontinuum flow equations
(26) |
3.3 Transport homogenization
Let us consider the following variational formulation of the transport equation
(27) |
Cell problems.
To formulate and solve the cell problems, we need to linearize the convective term using known . One can obtain these functions by solving the flow problem prior to that. Another approach is to consider many possible variants of to approximate the effective properties using machine learning techniques.
Again, the first cell problem (28) takes into account gradient effects
(28) |
The second cell problem considers different averages in each continuum
(29) |
Coarse-grid model.
We apply the following multicontinuum expansion of in using and as follows
(30) |
where is a smooth function representing the homogenized solution for the -th continuum.
We obtain the following approximation of the variational formulation
(31) |
The homogenization of the diffusion term is similar to the flow case. We can represent it as follows
(32) |
where
(33) |
We can also approximate the term with time derivative
(34) |
where
Here for the second approximate equality, we use the fact that is of the order and is of the order as will be stated in (39). Again we make use of continuous approximations for and , allowing us to derive the following approximation
(35) |
Next, we need to perform homogenization for the convection term. With our previous assumptions and estimates for the solutions of cell problems, we write
(36) |
where
(37) |
Applying the continuous approximations for and gives us
(38) |
We can establish the following estimates
(39) |
Subsequently, we derive the following scalings
We introduce the scaled effective properties
(40) |
With these scalings, we have
(41) |
One can see that the sum of the third and fourth terms in (41) is negligible. It can be shown by using integration by parts. Consequently, we have
(42) |
where
Therefore, we obtain the following multicontinuum equations
(43) |
The effective properties depend on because they can be different in each coarse block. Moreover, the coefficients of the time term and the source term depend on because the cell problems’ solutions and depend on .
3.4 Coupled multicontinuum model
Finally, we have the following coupled multicontinuum model described by macroscopic elliptic equations and convection-diffusion-reaction equations
(44) |
We can obtain the macroscopic solutions by solving (44) on the coarse grid. In the next section, we present numerical results to verify the obtained model.
4 Numerical examples
We will apply our proposed multicontinuum homogenization approach to solve the system of equations (1) subject to certain boundary conditions, where the spatial domain is chosen to be a unit square . We assume that the permeability coefficient and the diffusion coefficient are of high contrast, and we will consider different coefficient fields in the following examples.
We will divide the computational domain into square coarse blocks of the same size and define the coarse mesh size to be . Each whole coarse block will be taken as an RVE for itself. The oversampling RVE is defined as an extension of itself by layers of coarse blocks. We denote the regions of low and high values by and , respectively, and define the relative errors of solution in and at a specific time by
(45) |
where , and denotes the RVE, which is taken to be the coarse block.
4.1 Example 1: Layered field
4.1.1 Case 1
First, we consider the case when the permeability field and the diffusion field consist of horizontal layers, as shown in Figure 2, and
(46) |
We assume , and for any . We set the following homogeneous Dirichlet boundary conditions
(47) |
To discretize the spatial domain, we fix the fine mesh size to be and take the coarse mesh size to be and , respectively. We use an implicit Euler scheme for the time discretization and choose the time step . The number of oversampling layers is taken to be , that is, for and for , which is inspired by the analysis in [20, 19].
We depict the concentration at the initial time in Figure 3. The relative errors of our proposed algorithm are shown in Table 1. We also depict the results when in Figure 4 and Figure 5. Figure 4 demonstrates the multiscale solution and the reference averaged solution in at , , , , ; Figure 5 demonstrates the multiscale solution and its corresponding reference averaged solution.
In this paragraph, we examine the obtained results. First, we can clearly see that the errors at different time between the multiscale and reference solutions are very small and our method can approximate the results accurately. Furthermore, decreasing the coarse mesh size makes the results more precise. Also, one can observe that the averaged concentration in transports more slowly than that in . This is reasonable because the diffusion coefficient is much higher in than in , as defined in (46).
4.1.2 Case 2
For Case 2, we change the boundary condition for the pressure equation to be an inhomogeneous Dirichlet boundary condition while keeping the homogeneous Dirichlet condition for the concentration equation, that is,
(48) |
All the other assumptions are the same as in Case 1.
We list the relative errors when and in Table 2. The numerical solutions when are presented in Figures 6, 7, and 8. One can notice that our method yields results that closely align with the reference solutions in this case. We can also observe from Figure 6 that the concentration exhibits faster transport in the -direction compared to the -direction. Indeed, due to the imposed boundary condition (48), the pressure generally increases along the -direction on average. According to Darcy’s law, the fluid predominantly flows toward regions of decreasing pressure, thereby carrying substances in the -direction and offsetting the effects of diffusion.
4.1.3 Case 3
For Case 3, we consider a homogeneous Neumann condition for the concentration equation and the boundary conditions will be
(49) |
where is the outward normal vector defined on . We keep all the other assumptions the same as in Case 1.
The relative errors when and are presented in Table 3. The numerical results when are shown in Figures 9 and 10. Our method ensures negligible discrepancy from the reference solution, and the convection can still be observed.
4.2 Example 2: Circular field
In this example, we consider a different structure of permeability field and the diffusion field as illustrated in Figure 11 and
(50) |
All other assumptions remain unchanged.
Again, we apply our algorithm to different boundary conditions corresponding to Cases 1, 2, and 3 in Example 1 and present the errors in Tables 4, 5, and 6, respectively. Numerical solutions for Case 3 when are depicted in Figures 12 and 13, where the color bars have been adjusted to display the results more clearly. One can observe that the transport of the concentration for Case 3 in Example 2 is isotropic and more rapid than in Example 1, which is a consequence of the symmetry and porosity of the circular field. We also note that the numerical results for all three cases are in tight agreement with reference solutions.
5 Conclusion
In this work, we have applied the multicontinuum homogenization method to develop a new multicontinuum model for the coupled flow and transport equations. Coupled constraint cell problems were carefully formulated to obtain the localizable multiscale basis functions, which can capture the heterogeneity and high contrast properties. Macroscopic variables were introduced to represent the local averages of solutions in each continuum. By performing the multicontinuum expansions to both the flow and transport equations, we have achieved a macroscopic system consisting of homogenized elliptic equations and convection-diffusion-reaction equations.
We have conducted a number of numerical experiments to verify the obtained multicontinuum model. We have considered high-contrast layered and circular heterogeneous media with homogeneous and inhomogeneous Dirichlet boundary conditions and mixed Dirichlet-Neumann boundary conditions. Numerical results have shown that the proposed model allows us to approximate the reference averaged solutions for all considered cases accurately. The computed errors demonstrate the convergence of the proposed method on the coarse grid size.
References
- [1] Fred I Stalkup. Miscible displacement. 1983.
- [2] George Papanicolau, Alain Bensoussan, and J-L Lions. Asymptotic analysis for periodic structures. Elsevier, 1978.
- [3] Xiao-Hui Wu, Yalchin Efendiev, and Thomas Y Hou. Analysis of upscaling absolute permeability. Discrete and Continuous Dynamical Systems Series B, 2(2):185–204, 2002.
- [4] Ulrich Hornung. Homogenization and porous media, volume 6. Springer Science & Business Media, 2012.
- [5] Louis J Durlofsky, Richard C Jones, and William J Milliken. A nonuniform coarsening approach for the scale-up of displacement processes in heterogeneous porous media. Advances in Water Resources, 20(5-6):335–347, 1997.
- [6] Yalchin Efendiev, LJ Durlofsky, and SH Lee. Modeling of subgrid effects in coarse-scale simulations of transport in heterogeneous porous media. Water Resources Research, 36(8):2031–2041, 2000.
- [7] 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.
- [8] Thomas Hou, Xiao-Hui Wu, and Zhiqiang Cai. Convergence of a multiscale finite element method for elliptic problems with rapidly oscillating coefficients. Mathematics of computation, 68(227):913–943, 1999.
- [9] Yalchin Efendiev and Thomas Y Hou. Multiscale finite element methods: theory and applications, volume 4. Springer Science & Business Media, 2009.
- [10] Patrick Jenny, SH Lee, and Hamdi A Tchelepi. Multi-scale finite-volume method for elliptic problems in subsurface flow simulation. Journal of computational physics, 187(1):47–67, 2003.
- [11] P. Jenny, S. H. Lee, and H. A. Tchelepi. Adaptive multiscale finite-volume method for multiphase flow and transport in porous media. Multiscale Modeling & Simulation, 3(1):50–64, 2005.
- [12] Patrick Jenny, Seong H Lee, and Hamdi A Tchelepi. Adaptive fully implicit multi-scale finite-volume method for multi-phase flow and transport in heterogeneous porous media. Journal of Computational Physics, 217(2):627–641, 2006.
- [13] Yalchin Efendiev, Juan Galvis, and Thomas Y Hou. Generalized multiscale finite element methods (gmsfem). Journal of computational physics, 251:116–135, 2013.
- [14] Eric T Chung, Yalchin Efendiev, and Chak Shing Lee. Mixed generalized multiscale finite element methods and applications. Multiscale Modeling & Simulation, 13(1):338–366, 2015.
- [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, 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.
- [17] 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.
- [18] Jørg E. Aarnes and Yalchin Efendiev. A multiscale method for modeling transport in porous media on unstructured corner-point grids. Journal of Algorithms & Computational Technology, 2(2):299–318, 2008.
- [19] Yalchin Efendiev and Wing Tat Leung. Multicontinuum homogenization and its relation to nonlocal multicontinuum theories. Journal of Computational Physics, 474:111761, 2023.
- [20] Eric T. Chung, Yalchin Efendiev, and Wing Tat Leung. Constraint energy minimizing generalized multiscale finite element method. Computer Methods in Applied Mechanics and Engineering, 339:298–319, 2018.
- [21] 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.
- [22] Eric Chung, Yalchin Efendiev, and Thomas Y Hou. Multiscale Model Reduction: Multiscale Finite Element Methods and Their Generalizations, volume 212. Springer Nature, 2023.