Iterative schemes for coupled flow and transport
in porous media - Convergence and truncation errors
Abstract.
Nonlinearities of coupled flow and transport problems for partially saturated porous media are solved with explicit iterative
Key words and phrases:
Richards’ equation, coupled flow and transport, finite differences, global random walk, iterative schemes, convergence order2005 Mathematics Subject Classification:
35G31, 76S05, 76R50, 65M06, 65C35.1. Introduction
Flow and reactive transport in porous media are modeled by systems of coupled nonlinear partial differential equations. The seepage velocity through the bulk of porous medium is proportional to the hydraulic conductivity and to the gradient of the pressure head, according to Darcy’s law, which combined with the conservation equation results in the Richards’ equation. In its general, mixed formulation, Richards’ equation contains two unknown functions, the volumetric water content and the pressure head. Therefore, it needs to be closed by constitutive relationships for the dependence of the water content on the pressure head and the dependence of the hydraulic conductivity on the water content. Such relationships are highly nonlinear, e.g., the exponential model or the van Genuchten-Mualem model, with discontinuous derivatives when the negative pressure, in unsaturated flow regime, changes into the positive pressure characterizing the saturated regime with constant water content and hydraulic conductivity. Consequently, the resulting Richards’ equation for the pressure head is non-linear and parabolic-elliptic degenerate.
The concentration of the chemical compounds transported in soils and aquifers is governed by parabolic advection-diffusion-reaction equations, with flow velocity provided by the solution of the Richards’ equation. In the presence of capillarity effects, for instance in problems of surfactant transport, the water content depends on pressure as well as on concentration and the flow and transport equations are coupled in a nonlinear way in both directions. Solving these coupled nonlinear problems requires iterative schemes that use different linearization techniques, such as Newton’s method, (modified) Picard method,
The
Theoretical proofs of convergence of the linearization schemes essentially show that the errors of the iterative solutions with respect to the exact solution of the nonlinear problem can be made arbitrarily small [8]. However, even if the numerical analysis of the scheme provides estimates of the convergence rates, in general it does not produce a thorough and comprehensive characterization of the type of convergence behavior, by predicting the upper/lower limits of the rates as in the theory of the convergent sequences [3, 4]. The analysis can be completed either by assessing computational orders of convergence, with sequences of successive corrections, or by assessing error-based orders, when exact solutions of the problem are available [20]. This approach could be mainly useful when the constraints required by the theoretical proofs are hard to meet, or when there are no convergence proofs at all, but, in practice, the convergence of the scheme is demonstrated numerically.
We investigate in this framework the convergence of the explicit
2. Coupled flow and transport in porous media
We consider in the following the fully coupled one-dimensional problem of flow governed by Richards’ equation and transport of a single chemical species governed by an advection-diffusion-reaction equation,
(1) |
(2) |
where
Equations (1)-(2) are fully coupled through the terms
2.1. Explicit -schemes for one-dimensional Richards’ equation
Following [17], we start with the staggered FD scheme with backward discretization in time of the Richards’ equation (1) decoupled111In the fully coupled problem
(3) |
To obtain an iterative method for solving Richard’s equation, we denote by
(4) |
In practice, we run successive iterations
To transform the FD scheme (2.1) into a random walk scheme we represent the solution
(5) |
where
In order for (5) to be a random walk scheme, the coefficients multiplying numbers of particles at lattice sites
(6) |
The first three terms in r.h.s. of (5) represent groups of particles jumping on the site
(7) |
(8) |
The numbers
(9) |
where
(10) |
The random variable
algorithm 1.
Reduced fluctuations algorithm
(i) initialize a real variable
(ii) compute
(iii) split
(iv) approximate
(v) sum up the remainders into the variable
(vi) allocate one particle to the first lattice site where
(vii) save
Specifically, the algorithm is implemented in the Matlab code as follows:
Code 1.
Flow-BGRW with reduced fluctuations
restr=0; rest1=0; rest2=0; D=K(tht); D=D(1:I-1); % conductivity function of water content r=dt*D/dx^2/L; rloc=[1-2*r(1),1-(r(1:I-2)+r(2:I-1)),1-2*r(I-1)]; restr=rloc.*n+restr; nn=floor(restr); restr=restr-nn; rest1=r(2:I-1).*n(3:I)+rest1; njumpleft=floor(rest1); rest1=rest1-njumpleft; % left jumps nn(2:I-1)=nn(2:I-1)+njumpleft; rest2=r(1:I-2).*n(1:I-2)+rest2; njumpright=floor(rest2); rest2=rest2-njumpright; % right jumps nn(2:I-1)=nn(2:I-1)+njumpright;
1 computes the solution in the interior of the domain. The Darcy velocity on the boundaries can be computed in several ways: using an approximate forward finite difference discretization of Darcy’s law, extending on the boundary the velocity from the first neighboring interior site, computing the exact velocity analytically when a manufactured solution for the pressure head is available [17, Sect. 5.2.1].
Remark 1.
Since the BGRW is an explicit scheme, the source term can be evaluated first, then the first tree terms of (8) which model the transport will be computed according to 1. The reduced-fluctuations algorithm preserves the indivisibility of the particles by summing up to unity the fractional parts
The FD scheme is also retrieved when all floor operators are removed in 1. The resulting code sequence can be recast as the FD scheme presented in 2 below, where
Code 2.
Flow-FD scheme
D=K(tht); D=D(1:I-1); % conductivity function of water content r=dt*D/dx^2/L; rloc=[1-2*r(1),1-(r(1:I-2)+r(2:I-1)),1-2*r(I-1)]; pp=rloc.*p; pp(2:I-1)=pp(2:I-1)+r(2:I-1).*p(3:I)+r(1:I-2).*p(1:I-2);
Remark 2.
In the particular case of the saturated regime,
This scheme has been used to solve coupled flow and transport in saturated aquifers with moderate heterogeneity [16]. However, because the transient scheme may be very slow for highly heterogeneous coefficients
Matlab codes for one- and two-dimensional solutions of Richards’ equation, verification tests, and benchmark problems presented in [17] are posted at https://github.com/PMFlow/RichardsEquation.
2.2. Explicit BGRW scheme for reactive transport
Similarly to the derivation of the flow scheme in Section 2.1, we start with a FD scheme with backward time discretization of the equation (2) with a constant diffusion coefficient
(11) |
where
(12) |
Representing the concentration by the distribution of
(13) |
where
With the constrains
(14) |
which ensure the normalization of the jump probabilities, the explicit
(15) |
Remark 3.
The biased jump probabilities
The binomial random variables
Code 3.
Transport-BGRW with reduced fluctuations
u=q*dt/Lc/dx; % computation of the BGRW parameters (12) ru=2*D*dt/Lc/dx^2*ones(1,I); restr=0; restjump=0; for x=1:I if n(x) > 0 r=ru(x); restr=n(x)*(1-r)+restr; nsta=floor(restr); restr=restr-nsta; njump=n(x)-nsta; nn(x)=nn(x)+nsta; if(njump)>0 restjump=njump*0.5*(1-u(x)/r)+restjump; nj(1)=floor(restjump); restjump=njump-nj(1); nj(2)=floor(restjump); restjump=restjump-nj(2); if x==1 nn(2)=nn(2)+nj(2); elseif x==I nn(I-1)=nn(I-1)+nj(1); else for i=1:2 xd=x+(2*i-3); nn(xd)=nn(xd)+nj(i); end end end end end
Remark 4.
The ensemble average of the BGRW
Matlab codes for coupled flow and transport and test problems are posted in the repository https://github.com/PMFlow/RichardsEquation. BGRW/GRW solvers for decoupled reactive transport with applications to biodegradation processes in soils and aquifers, presented in [18], may be found in the repository https://github.com/PMFlow/MonodReactions.
2.3. Discussion on convergence
We look for convergence conditions by investigating the evolution of the difference
Let
(16) |
Similarly, with
(17) |
Let
(20) |
(21) |
Adding the inequalities (18) and (19) and using (2.3) and (2.3) one gets
(22) |
With
(23) |
and thus a contractive property of the coupled
For given
(24) |
Similarly, with
(25) |
The schemes (2.1) and (13) are coupled by alternating flow and transport steps at every time iteration [5, 17], which require a unique time step, defined as
(26) |
Using (24)-(26) we introduce the factor
(27) |
Inserting (27) and
We note that, even though the conditions (2.3) and (2.3) show that the coupled
3. Numerical examples
We illustrate the explicit iterative methods presented in Section 2 by three numerical examples. First, we solve a problem with transition between unsaturated and saturated flow regimes for the degenerate Richards’ equation with both the FD and the BGRW scheme presented in Section 2.1. Then, we consider a fully coupled flow and surfactant transport problem [6] with an academic example of constitutive laws
The convergence of the iterative schemes is investigated numerically with tools from the theory of abstract convergent sequences [3]. The convergence of an arbitrary sequence of real numbers
(28) |
which implies the (weaker) order222This is usually denoted by
(29) |
While Eq. (29) is a common way to identify the
If the limit
However, when
Results from the theory of convergent sequences in
Remark 5.
Let
(30) | |||||
Using (30) we also have, for any
(31) |
According to (5),
Remark 6.
From a theoretical perspective the
(32) |
3.1. Example 1: Richards’ equation
For the beginning, let us consider the one-dimensional Richards’ equation (1) closed by one of the simplest models, with exponential dependence of the water content on the pressure head and linear dependence of the hydraulic conductivity on the water content [17],
(33) |
(34) |
where
We solve a typical problem modeling the experimental study of the flow in variably saturated soil columns, formulated in the domain
We use a regular lattice with
To illustrate the consistency of the representation of the solution by ensembles of random walkers and the equivalence of the BGRW and FD schemes, we compare their solutions for increasing
1e3 | 1e6 | 1e10 | 1e18 | 1e24 | |
---|---|---|---|---|---|
1.70e-03 | 4.24e-06 | 2.52e-10 | 7.13e-16 | 9.21e-16 | |
2.27e-02 | 6.52e-05 | 3.32e-09 | 1.13e-14 | 1.40e-14 |
Let
Remark 7.
The convergence behavior illustrated above can be explained with the reduced fluctuations Algorithm 1. The sum of fractional parts
rest=nn+rest; nn=floor(rest); rest=rest-nn;
at the end, and perform the computation with
The plateau of the order
Fig. 6 and Fig. 6 show that the length of the sequence of corrections for
In the absence of an exact solution for this example, we investigate the existence of the “error-based” order
3.2. Example 2: fully coupled flow and surfactant transport
The next example is the fully coupled problem of variably saturated flow, with transition from saturated to unsaturated regime, and surfactant transport governed by Eqs. (1) and (2) with the exact manufactured solutions
and the water contend parameterized by
The hydraulic conductivity is constant
We first solve the problem in the domain
The results obtained for
Tests (not presented here) with a similar two dimensional problem [17, Sec. 5.2.1] also show the plateau
The convergence of the iterations does not yet ensure the convergence of the numerical solution to the manufactured solution. This can be verified by a grid convergence test performed by successively halving the space step
EOC | EOC | EOC | |||||
---|---|---|---|---|---|---|---|
1.00e-1 | 4.59e-02 | – | 1.23e-01 | – | 3.43e-02 | – | |
5.00e-1 | 1.14e-02 | 2.01 | 3.34e-02 | 1.89 | 1.02e-02 | 1.75 | |
2.50e-2 | 2.85e-03 | 2.00 | 8.68e-03 | 1.94 | 2.76e-03 | 1.88 | |
1.25e-2 | 7.11e-04 | 2.00 | 2.21e-03 | 1.98 | 7.21e-04 | 1.94 |
The knowledge of the exact solution allows us to compute error-based orders of convergence as well. Using a finer discretization,
3.3. Example 3: One-way coupled flow and transport problem with van Genuchten-Mualem parameterization
In the following, we consider the one-way coupled system (1)-(2), i.e.,
(35) |
(36) |
where
We chose the manufactured solutions
which illustrate again the degeneracy of Richards’ equation, with transitions from saturated to unsaturated flow regime. The diffusion coefficient in the transport equation (2) is set to
Since the flow is now independent of transport it is not influenced the truncation produced by the 3. Therefore, we focus here on the error-based orders of convergence of the linearization schemes. The coupled problems are solved in the domain
As in the previous example, we found that the correction norms reach values that are systematically smaller by several orders of magnitude than the error norms, for both pressure and concentration and the estimates obtained with (29) indicate the
The grid convergence test, conducted in the same way as in Section 3.2, presented in Table 3 indicates the quadratic convergence of the solution
EOC | EOC | EOC | |||||
---|---|---|---|---|---|---|---|
1.00e-1 | 5.85e-02 | – | 2.28e-03 | – | 1.23e-02 | – | |
5.00e-1 | 1.42e-02 | 2.05 | 5.69e-04 | 2.00 | 3.54e-03 | 1.80 | |
2.50e-2 | 3.27e-03 | 2.11 | 1.48e-04 | 1.94 | 9.19e-04 | 1.95 | |
1.25e-2 | 8.09e-04 | 2.02 | 4.50e-05 | 1.72 | 2.38e-04 | 1.95 |
4. Conclusions
In this study, we demonstrated through numerical examples the convergence of the explicit
The convergence of the iterative schemes has been investigated through estimations of computational and error-based orders of convergence. The three examples presented in Section 3 provide numerical arguments for the
The random walk method for Richards’ equation is rather of academic interest. It has been used, for instance, to prove the stability of the equivalent FD scheme (Remark 1). Instead, the random walk approach is essential in modeling the transport because it facilitates a discrete description at the molecular level of the chemical reactions [18] and provides a basis for the space-time upscaling of the reactive transport in porous media [19]. An issue of concern of this approach are the truncation errors produced by the Algorithm 1 which preserves the indivisibility of the particles. We have shown that the truncation errors induce a plateau in the decrease of the successive corrections of the linearization method (Remark 7). The plateau is inversely proportional to the number of particles,
Acknowledgements.
F.A. Radu acknowledges the support of the VISTA program, The Norwegian Academy of Science and Letters, and Equinor.
References
- [1]
- [2] C.D. Alecsa, I. Boros, F. Frank, P. Knabner, M. Nechita, A. Prechtel, A. Rupp and N. Suciu, Numerical benchmark study for fow in heterogeneous aquifers, Adv. Water Resour., 138 (2020), 103558. https://doi.org/10.1016/j.advwatres.2020.103558
- [3] E. Cătinaş, A survey on the high convergence orders and computational convergence orders of sequences, Appl. Math. Comput. 343 (2019), pp. 1–20. https://doi.org/10.1016/j.amc.2018.08.006
- [4] E. Cătinaş, How many steps still left to x*?, SIAM Rev. 63 (2021) no. 3, pp. 585–624. https://doi.org/10.1137/19M1244858
- [5] D. Illiano, I.S. Pop and F.A. Radu, Iterative schemes for surfactant transport in porous media, Comput. Geosci. 25 (2021), 805–822. https://doi.org/10.1007/s10596-020-09949-2
- [6] P. Knabner, S. Bitterlich, R. Iza Teran, R., A. Prechtel and E. Schneid, Influence of surfactants on spreading of contaminants and soil remediation, pp.152-161 In: Jäger, W., Krebs, H.J. (Eds.), Mathematics –Key Technology for the Future, Springer, Berlin, Heidelberg, 2003. https://doi.org/10.1007/978-3-642-55753-8_12
- [7] P. Knabner and L. Angermann, Numerical Methods for Elliptic and Parabolic Partial Differential Equations. Springer, New York, 2003. https://doi.org/10.1007/b97419
- [8] F. List and F.A. Radu, A study on iterative methods for solving Richards’ equation, Comput. Geosci. 20 (2016) no. (2), 341–353. https://doi.org/10.1007/s10596-016-9566-3
- [9] I.S. Pop, F.A. Radu and P. Knabner, Mixed finite elements for the Richards’ equation: linearization procedure, J. Comput. Appl. Math. 168 (2004) no. 1, pp. 365–373 https://doi.org/10.1016/j.cam.2003.04.008
- [10] F.A. Radu, K. Kumar, J.M. Nordbotten and I.S. Pop, A robust, mass conservative scheme for two-phase flow in porous media including Hölder continuous nonlinearities, IMA Journal of Numerical Analysis, 38 (2018) no. 2, pp.884–920. urlhttps://doi.org/10.1093/imanum/drx032
- [11] P.J. Roache, Code verification by the method of manufactured solutions, J. Fluids Eng. 124 (2002) no. 1, pp. 4–10. http://dx.doi.org/10.1115/1.1436090
- [12] C.J. Roy, Review of code and solution verification procedures for compu- tational simulation, J. Comput. Phys. 205 (2005), 131–156. https://doi.org/10.1016/j.jcp.2004.10.036
- [13] J.S. Stokke, K. Mitra, E. Storvik, J.W. Both and F.A. Radu, An adaptive solution strategy for Richards’ equation, Comput. Math. Appl. 152 (2023), 155–167. https://doi.org/10.1016/j.camwa.2023.10.020
- [14] J.C. Strikwerda, Finite Difference Schemes and Partial Differential Equations, SIAM, 2004. https://doi.org/10.1137/1.9780898717938
- [15] N. Suciu, Diffusion in Random Fields. Applications to Transport in Groundwater, Birkhäuser, Cham, 2019. https://doi.org/10.1007/978-3-030-15081-5
- [16] N. Suciu, Global Random Walk Solutions for Flow and Transport in Porous Media, in F.J. Vermolen and C. Vuik (eds.), Numerical Mathematics and Advanced Applications ENUMATH 2019, Lecture Notes in Computational Science and Engineering 139, Springer Nature, Switzerland, 2020. https://doi.org/10.1007/978-3-030-55874-1_93
- [17] N. Suciu, D. Illiano, A. Prechtel and F.A. Radu, Global random walk solvers for fully coupled flow and transport in saturated/unsaturated porous media, Adv. Water Resour. 152 (2021), 103935. https://doi.org/10.1016/j.advwatres.2021.103935
- [18] N. Suciu and F.A. Radu, Global random walk solvers for reactive transport and biodegradation processes in heterogeneous porous media, Adv. Water Res., 166 (2022), 104268. https://doi.org/10.1016/j.advwatres.2022.104268
- [19] N. Suciu, F.A. Radu and I.S. Pop, Space-time upscaling of reactive transport in porous media, Adv. Water Resour. 176 (2023), 104443. http://dx.doi.org/10.1016/j.advwatres.2023.104443
- [20] N. Suciu, F.A. Radu, J.S. Stokke, E. Cătinaş and A. Malina, Computational orders of convergence of iterative methods for Richards’ equation, arXiv preprint arXiv:2402.00194 (2024), https://doi.org/10.48550/arXiv.2402.00194
- [21] C. Vamoş, N. Suciu and M Peculea, Numerical modelling of the one-dimensional diffusion by random walkers, Rev. Anal. Numér. Théor. Approx., 26 (1997) no. 1-2, pp. 237–247. https://ictp.acad.ro/jnaat/journal/article/view/1997-vol26-nos1-2-art32/
- [22] C. Vamoş, N. Suciu and H. Vereecken, Generalized random walk algorithm for the numerical modeling of complex diffusion processes, J. Comput. Phys., 186 (2003), pp. 527–544. https://doi.org/10.1016/S0021-9991(03)00073-1