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 -schemes. Their behavior is analyzed with the aid of the computational orders of convergence. This approach allows highlighting the influence of the truncation errors in the numerical schemes on the convergence of the iterations. Further, by using manufactured exact solutions, error-based orders of convergence of the iterative schemes are assessed and the convergence of the numerical solutions is demonstrated numerically through grid-convergence tests.
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, -scheme or their combinations. While Newton’s method is second order (under usual circumstances) but only locally convergent, which means that it converges only if the initial choice is not too far from the solution, the -scheme is a robust method unconditionally first order convergent, the robustness of the Picard method being somewhere in between [8]. A significant improvement of the convergence can be achieved by starting with -scheme iterations and, once an appropriate initial solution is found, switching to the faster and higher order convergent Newton’s method [13].
The -scheme can be thought as a quasi-Newton method, with derivative of the water content with respect of the pressure head replaced by a positive constant . This makes it robust and independent of the initial choice, at the price of being only first order convergent. Given its simplicity, the -scheme is particularly suitable in solving intricate and fully coupled nonlinear problems. Most of the implementations of the -scheme are implicit linearizations based on finite element [9, 8, 13] or finite volume [10, 5] discretizations. Explicit -schemes based on finite difference (FD) and random walk methods, introduced in [17], have been successfully used to solve coupled problems of flow and biodegradation in partially saturated soils and saturated heterogeneous aquifers [18]. The reason of using explicit -schemes is that numerical solutions of the flow equations are obtained on the same regular grid on which reactive transport is solved with random walk algorithms free of numerical diffusion [17].
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 -scheme through computational and error-based orders of convergence on three numerical examples: solutions of Richards’ equation, fully coupled flow and surfactant transport, and coupled flow and transport with van Genuchten-Mualem parametrization.
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 is the pressure head, with being the height against the gravitational direction, is the water content, is the water flux (also called Darcy velocity), stands for the hydraulic conductivity of the porous medium, is the concentration, is the diffusion/dispersion coefficient, and is the reaction term. The system (1)-(2) is closed via constitutive relationships defining the dependencies and .
Equations (1)-(2) are fully coupled through the terms and . Richards’ equation (1) is parabolic-elliptic degenerate, with variable if and if . Since the system is strongly nonlinear, through the functional dependencies and , linearization methods have to be used to compute numerical solutions.
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 is replaced by , where is the solution of (2) and the coupled scheme consists of alternating flow and transport steps. from the transport equation (2),
(3) |
To obtain an iterative method for solving Richard’s equation, we denote by the approximate solution after iterations and add to the l.h.s. a stabilization term , where is a constant which has the dimension of an inverse length. Whenever the iterative method converges, this stabilization term vanishes and the limit is the solution of the nonlinear scheme (2.1). Defining the dimensionless numbers , one obtains
(4) |
In practice, we run successive iterations until a threshold condition is fulfilled, e.g., , where denotes the solution vector of components , , is the norm, and and are the absolute and relative tolerances (see e.g., [8]). The relation (2.1) is an explicit -scheme that allows the computation of the approximate solution recursively and avoids the need to solve systems of linear equations, as in implicit finite element [8] or finite volume [10] -schemes. Consequently, the explicit scheme (2.1) vas found to be one order of magnitude faster than the implicit finite volume -scheme when solving typical problems for partially saturated flows [17].
To transform the FD scheme (2.1) into a random walk scheme we represent the solution by particles distributed over the lattice sites, , where is a unit length that will be disregarded in the following. This results in the following relation summing contributions from neighboring sites to the number of particles at the site and time step ,
(5) |
where and is the floor function.
In order for (5) to be a random walk scheme, the coefficients multiplying numbers of particles at lattice sites , , and should be normalized probabilities. This implies the following restriction . A sufficient condition for that is
(6) |
The first three terms in r.h.s. of (5) represent groups of particles jumping on the site form the right and from the left, and the ratio of the initial number of particles at the site which do not undergo jumps,
(7) |
(8) |
The numbers of random walkers are binomially distributed random variables. Unlike in classical random walk approaches, consisting of generating random walk trajectories and counting particles at lattice sites, we directly evaluate the binomial variables and construct a global random walk (GRW) [22]. Since there are different probabilities for the right/left jumps, one obtains a biased global random walk (BGRW) [15]. The resulting BGRW algorithm moves the particles from a given lattice site according to the rule
(9) |
where
(10) |
The random variable representing the number of right jumps in (9) is binomially distributed, with parameters , , and , where . The number of left jumps is the difference between the total number of jumps and the number of right jumps . Since the computation of the exact binomial distribution could be computationally prohibitive for very large , one uses its approximation via a “reduced-fluctuations algorithm” similar to that proposed for the unbiased GRW algorithm in [22] as follows:
algorithm 1.
Reduced fluctuations algorithm
(i) initialize a real variable ;
(ii) compute with the relations (10);
(iii) split into at every lattice site;
(iv) approximate by ;
(v) sum up the remainders into the variable over all the sites;
(vi) allocate one particle to the first lattice site where ;
(vii) save and repeat the sequence (ii)-(vi) at every .
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 of all the terms defined by (7). Therefore, the floor function in (8) is no longer necessary and the source term becomes . Dividing (8) by , using (7), and taking the average, one retrieves the FD -scheme (2.1) for the unknown . A condition of kind ensures the stability of the forward-time central-space scheme for the heat equation with constant coefficient and is assumed (without carrying out the stability analysis) to hold in case of variable coefficients as well [14]. In the present context, the condition (6) guaranties that particles cannot be created or destroyed otherwise than through boundary conditions or in the presence of an internal source/sink, that is, it ensures the stability of the BGRW -scheme (5). Since the FD -scheme (2.1) is the ensemble average of the BGRW scheme, its stability is also ensured by the constraint (6).
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 and .
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, , with space-variable hydraulic conductivity and a given source term , after setting and disregarding the time index in (2.1) one obtains a transient scheme to solve the equation for the hydraulic head ,
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 [2], a more efficient strategy to solve coupled problems for saturated porous media is the coupling between an implicit FD flow scheme [2] and a GRW transport solver, see https://github.com/PMFlow/Coupled_FDM_GRW.
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 is the solution of the coupled flow solver. Further, we denote by the approximate solution after iterations, add to the l.h.s. of (2.2) a stabilization factor , where is now a dimensionless constant, and define the dimensionless parameters
(12) |
Representing the concentration by the distribution of particles on the lattice, , and using the parameters (12), the stabilized version of the scheme (2.2) becomes an explicit -scheme,
(13) |
where .
With the constrains
(14) |
which ensure the normalization of the jump probabilities, the explicit -scheme (13) for reactive transport is defined as a BGRW algorithm. The gathering and the spreading of groups of particles at/from a lattice point are described by relations similar to (8) and (9). The binomial random variables are defined by
(15) |
Remark 3.
The biased jump probabilities in (15) simulate the advective displacement by moving larger numbers of particles in the positive flow direction. With an unbiased GRW, the advection is simulated by moving groups of particles over lattice sites, i.e., , where [17, 18]. This procedure is faster but yields overshooting errors when there are important changes in velocity over a time step. The BGRW algorithm which allows only first-neighbor jumps is accurate but can be much slower than the unbiased GRW when a fine discretization is required to describe the spatial variability of the solution. Moreover, the second constraint (14) and the definitions of the parameters (12) imply an upper bound for the local Péclet number, .
The binomial random variables defined by (15) are generated with the Algorithm 1. The Matlab implementation of the advection-diffusion steps of the transport solver is presented in 3 below.
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 -scheme for reactive transport also leads to an equivalent FD scheme. However, we do not pursue this approach which gives up the particle indivisibility. The numerical schemes developed in [17, 18] aim at providing a “microscopic” kinematic description of the reactive transport with piecewise-analytic time functions associated to each particle. Using a space-time averaging over this microscopic description we are then able to construct a macroscopic description through almost everywhere continuous fields that can be used to model experimental measurements or to achieve a spatio-temporal upscaling [19].
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 of the solutions of (2.1) and (2.1) and of the difference of the solutions of (13) and (2.2) at fixed position and time .
Let and be the stabilization constants flow the flow and transport schemes, respectively. After denoting by the r.h.s. of (2.1) and subtracting (2.1) from (2.1), we have
(16) |
Similarly, with and denoting the advection and diffusion operators in the r.h.s. of (2.2), converting the numbers of particles to concentrations, , and subtracting (2.2) from (13) we have
(17) |
Let denote one of the factors of and in (18) and (19). Assuming for all factors the condition , where , one obtains
(20) |
(21) |
Adding the inequalities (18) and (19) and using (2.3) and (2.3) one gets
(22) |
With being the squared error norm of the solution vector , the inequality (22) implies
(23) |
and thus a contractive property of the coupled -schemes. Further, (23) can be used to show that is a convergent Cauchy sequence (see e.g. [7, Sect. 8.1]) and its limit is unique, because is a complete metric space.
For given , the time step is constrained by the stability conditions of the flow and transport schemes. With the positive constant defined as , the stability condition (6) for the flow scheme becomes . Further, from , we determine the corresponding time step by
(24) |
Similarly, with , the stability condition (14) becomes , , and the time step is given by
(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 in (2.3) and (2.3), the convergence conditions explicitly depend on the parameters and and become more robust, with only one term (coming from the advection term of (2)) depending on discretization through . By relating the parameters and to the physical parameters of the problem, the conditions (2.3) and (2.3) also provide a general frame for an adaptive -scheme.
We note that, even though the conditions (2.3) and (2.3) show that the coupled -schemes should converge, they are of limited use in practice: actually they only can be verified if the solution of the problem is known. Therefore, in the following we investigate the convergence by using sequences of iterates and the definitions of the computational and error-based orders of convergence.
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 and , and a one way coupled flow and transport problem with the realistic van Genuchten-Mualem parametrization of and . The last two problems are solved by the coupled FD-flow and BGRW-transport schemes presented in Section 2.1 and Section 2.2.
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 is characterized by the behavior of the successive errors . The sequence converges with the (classical) -order if
(28) |
which implies the (weaker) order222This is usually denoted by (from logarithm) to distinguish from other types of orders. Since only definition (29) will be used in the following, we disregard the subscript . (see [4]),
(29) |
While Eq. (29) is a common way to identify the -order of convergence, Eq. (28) can subsequently be used to check whether a classical convergence order exists.
If the limit is not known, the errors are replaced by the corrections and (28)-(29) define “computational orders of convergence”, denoted by a prime, and . If , computational and error-based orders of convergence are equivalent, denoting this by using curly braces, and they are related by
However, when , the above equivalences do not hold in general [4] and the existence of the error-based orders has to be checked on a case by case basis.
Results from the theory of convergent sequences in [3] cannot be directly extrapolated to flow and transport iterative schemes for porous media, where the convergence is investigated in function spaces with norms that often depend on the particular problem formulation (e.g., [8, 10, 13]). Therefore we rely on the sequences of positive real numbers provided by iterative methods, e.g., and . If the method converges, which in a restricted sense means that the successive corrections become arbitrarily small (e.g., [10]), the corrections form sequences converging to zero that can be analyzed with the definitions of the error-based orders of convergence (28) and (29) [20]. Further, based on numerical evaluations of the or orders of convergence of the sequences we may assume the or convergence of the solution of the coupled problem.
Remark 5.
Let be the iteration count for which (28) written for the sequence of successive corrections defines a constant quotient within a given absolute tolerance . Then, from (28), we have
(30) | |||||
Using (30) we also have, for any , ,
(31) |
According to (5), , hence is a convergent Cauchy sequence and has a unique limit in the complete space . The convergence of the iterates of the -scheme implies the cancelation of the stabilization terms, e.g., , so that the limit of the sequence coincides with the solution of the nonlinear scheme (compare (2.1) and (2.1)). Thus, the -linear convergence of the -scheme is equivalent to the convergence of the successive approximations to the unique solution of the nonlinear scheme.
Remark 6.
From a theoretical perspective the -linear convergence of the -scheme assumes the convergence of the -scheme to the exact solution. However, the numerical solution is only an approximation of the exact solution depending on the fineness of the discretization. It follows that a limit quotient in (28), which defines the -linear convergence, cannot be practically reached in numerical simulations which, necessarily use finite discretizations. For instance, the errors with respect to the exact solution of the second order accurate schemes used in the examples below are of the order . As the errors in (28) reach this threshold, they cannot be decreased by further iterations. One obtains thus estimations of the quotient , corresponding to the sublinear convergence of the iterations [3]. The approach to the exact solution is instead quantified by the decay of the errors with respect to the discretization. The common approach [12, 2, 17, 20] is to assess estimated orders of convergence (EOC) by the slope of the decay of the errors in the logarithmic scale after successively halving the discretization parameter ,
(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 is the normalized water content, and denote the constant water content respectively the constant hydraulic conductivity in the saturated regions (), and is the residual water content.
We solve a typical problem modeling the experimental study of the flow in variably saturated soil columns, formulated in the domain . The boundary conditions are specified by a constant pressure at the bottom of the soil column and a constant water flux on the top. Together, these constant conditions determine the initial pressure distribution as solution of the steady-state flow problem. For , the pressure is kept constant at the bottom of the column and on the top the water flux is increased linearly from to until and is kept constant for . The texture of an homogeneous soil, representative for a column filled with sand, is parameterized with , , , . The water fluxes on the top boundary are given by and . To capture the transition from unsaturated to saturated regime, the pressure at the bottom boundary is fixed at . For the parameters specified above, we consider meters as length units and seconds as time units. The simulations are conducted up to (about 2.78 hours) and the intermediate time is taken as .
We use a regular lattice with . The BGRW computations are initialized by multiplying the initial condition by the total number of particles . Since the hydraulic conductivity varies in time according to (34), the time step is determined according to (24) for the maximum of at every time iteration and by specifying a maximum of the parameters . The parameter of the regularization term in the -scheme is set to for the computation of the initial condition (solution of the stationary problem, i.e. for in (1)) and to for the solution of the non-stationary problem. In both cases, the convergence criterion is verified by choosing and a fixed absolute tolerance .
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 between and at the final time (Fig. 2). The errors of the BGRW solution with respect to the FD solution shown in Fig. 2 decrease as and approach the machine precision for . The norm of the difference of the two solution vectors with components decreases at a rate of and reaches a plateau at about (see Table 1). Since the FD solution is the ensemble average of the BGRW solution (see Remark 1), this behavior also illustrates the self-averaging property of the GRW algorithms [22].
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 be the sequence of iterates of the BGRW -scheme and . By the triangle inequality we have . Hence, the order of convergence of the BGRW solution to the FD solution is an upper limit for corrections. Fig. 4 and Fig. 4 show the decrease of the correction norms for and , respectively. In the first case the corrections reach a plateau of about , consistent with the upper bound . In the second case, the corrections show a plateau at the machine precision, which, as indicated by Fig. 2, is the same as the plateau for the FD scheme.
Remark 7.
The convergence behavior illustrated above can be explained with the reduced fluctuations Algorithm 1. The sum of fractional parts can be used to evaluate the truncation errors of the algorithm. At a given lattice site , with a mean . The sum over the lattice sites is thus . The total numbers of particles on the lattice is . With these, the truncation error can be evaluated as , which is independent of the discretization333This can be easily verified by doubling the number of lattice sites and taking the appropriate parameter in the Matlab code. (i.e., the number of lattice sites ). For verification purposes, we remove all the floor functions in the 1, add the truncation sequence
rest=nn+rest; nn=floor(rest); rest=rest-nn;
at the end, and perform the computation with . The relative error of the solution obtained in this way with respect to the solution of the original 1, evaluated with the norm, is of about . At the middle of the time interval we evaluate and obtain the truncation error , which corresponds to the average value of the plateau shown by the corrections in this case. Since the original 1 contains three truncation sequences, we take and obtain the truncation error . This error is almost the same as the plateau of the correction from Fig. 4. The plateau arises when the correction norms reach the threshold given by the truncation errors and cannot be further decreased by the iterative method. We note that this threshold is also close to the relative errors of the BGRW solution with respect to the FD solution at the final time shown in Fig. 2 and Table 1. Thus, the accuracy of the BGRW -scheme is limited by the truncation errors produced by the reduced fluctuations Algorithm 1.
The plateau of the order also arises if one adds to the three terms depending on the parameter in the FD 2 a noisy term , where is a random variable drawn from the standard normal distribution. The results (not shown here) are similar to those from Fig. 4 and Fig. 6. One expects therefore that the accuracy of the random walk methods based on random number generators is limited as well by truncation errors.
Fig. 6 and Fig. 6 show that the length of the sequence of corrections for not affected by oscillations is too short to allow the estimation of the order of convergence with (29) and the evaluation of the quotient according to (28). For , the sequence not affected by oscillations is three times longer and the behavior of the estimate and of the quotient suggest the -linear convergence (see Fig. 8 and Fig. 8). This is, according to Remark 5, a numerical argument for the convergence of the iterates to the unique solution which solves the nonlinear scheme (2.1).
In the absence of an exact solution for this example, we investigate the existence of the “error-based” order on sequences of errors with respect to the FD solution taken as a reference. We compute BGRW solutions for and form the sequence . The errors presented in Fig. 10 maintain a linear trend in semi-logarithmic representation over 130 iterations and allow the evaluation, according to (28), of a subunit quotient in the same interval, shown in Fig. 10. We can therefore assume that the solution of the BGRW scheme converges with the linear -order to the reference FD solution.
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 and the diffusion coefficient in Eq. (2) is set to (in arbitrary units). The manufactured solutions verify Eqs. (1) ans (2) with supplementary source terms [11, 2, 17, 18]. These source terms, generated by inserting the manufactured solutions into the equations, are calculated analytically with the Matlab symbolic toolbox.
We first solve the problem in the domain , on a regular lattice with , with the coupled FD scheme (2.1) and BGRW transport scheme (13). The time step is determined according to (26) with , , and . The corrections are evaluated in the norm with the absolute tolerance and the convergence is assessed with the condition .
The results obtained for particles used in the transport scheme presented in Figs. 12 and 12 show that the truncation errors generated by the transport 3 yield a plateau of the concentration corrections and also, due to the coupling, a plateau higher than the machine precision of about of the pressure corrections. The oscillations arising when the corrections reach the plateau do not allow reliable estimations of the order of convergence and of the trend of the quotient , for both pressure (Figs. 14 and 14) and concentration (Figs. 16 and 16). Increasing the number of particles in the transport scheme to lowers the plateau to the machine precision for both pressure and concentration corrections (Figs. 18 and 18), renders more reliable the estimates of the order of convergence (Figs. 20 and 22), and indicates limits , consistent with the linear convergence (Figs. 20 and 22). According to Remark 5, this result is an indication of the convergence to the solution of the nonlinear schemes (2.1) and (2.2).
Tests (not presented here) with a similar two dimensional problem [17, Sec. 5.2.1] also show the plateau of the pressure corrections produced by the coupling of flow and transport for particles in the transport code and a plateau at the machine precision for particles.
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 . To do that, we fix the number of particles in the transport code to , which, as seen above, ensures that the truncation errors do not affect the convergence of the corrections, and perform iterations of the linearization schemes (2.1) and (13) until the corrections fall below the threshold . The solutions for successive are further used to evaluate the EOC by the rate of logarithmic decay of the deviations from the manufactured solutions measured with the discrete norm . The results presented in Table 2 indicate the second order convergence of the solution .
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, , and a larger tolerance we form sequences of discrete norms of errors and corrections for pressure (Figs. 24 and 24) and concentration (Figs. 26 and 26). We note that as the convergence criterion for errors is fulfilled, the corrections are four to five orders of convergence smaller. Estimations (not shown here) of the order of convergence with (29) were found to be consistent with the definition of the linear convergence, for both errors and the corresponding corrections. The quotient computed with (28) from the sequences of successive errors approaches the unity, indicating the sublinear convergence of the linearization schemes for both flow and transport (Figs. 28 and 30). We have thus an illustration of the observation made in Remark 6 that -linear convergence cannot be obtained in numerical simulations. For the corresponding corrections, indicates the -linear convergence (Figs. 28 and 30), which, according to Remark 5, indicates the convergence of the iterative schemes to the solutions of the coupled nonlinear schemes (2.1) and (2.2).
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., independent of , with an experimentally based parameterization model. The relationships defining the water content and the hydraulic conductivity are given by the van Genuchten-Mualem model
(35) |
(36) |
where is the normalized water content defined in the same way as for the exponential model (33)-(34), , , are model parameters depending on the soil type, and is the constant hydraulic conductivity in the saturated regime. In this example, we consider the parameters of a silt loam used in previously published studies [8, 17, 18], , , , , .
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 . The source terms generated by the manufactured solutions are calculated as in Section 3.2 above with the Matlab symbolic toolbox.
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 , with and . The convergence is assessed with discrete norms of pressure and concentration errors with respect to the manufactured solutions for the tolerance . Preliminary tests with increasing numbers of particles show that the transport scheme (13) fails to converge if . To completely eliminate the effect to the truncation errors, the computations are carried out with particles.
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 order of convergence . The quotient computed with (28) approaches the unity for the errors of both the pressure and the concentration (Figs. 32 and 34) indicating the sublinear convergence. For the corresponding corrections (Figs. 32 and 34) , hence the linear convergence of both iterative schemes may be assumed. These results illustrate again the observations made in Remarks 5 and 6.
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 towards the exact manufactured 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 -schemes for nonlinear and degenerate problems of coupled flow and transport processes in porous media. The convergence issue is two-fold. First it is the convergence of the iterative method which solves the nonlinearity of the problem and provides a solution of the nonlinear numerical scheme, for instance the -scheme for Richards’ equation (2.1) which approximates the solution of the nonlinear scheme (2.1). The second aspect is the convergence of the numerical solution to the exact solution of the problem, provided that there exists a unique solution.
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 -linear convergence. According to Remark 5, the -linear convergence indicates the uniqueness of the iterative solutions and their convergence to the solutions of the nonlinear schemes. The sequences of errors with respect to exact manufactured solutions of the coupled problem presented in Section 3.2 and Section 3.3 are only sublinearly convergent and illustrate the impossibility of achieving the -liner convergence via numerical simulations, pointed out in Remark 6. However, with the FD solution as reference, we have shown that the random walk BGRW -scheme for Richards’ equation could be -linear convergent (Fig. 10). Using grid convergence tests and manufactured solutions we get strong numerical evidence of second order convergence () of the -schemes for coupled flow and transport problems (Table 2 and Table 3).
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, , and may hinder the evaluation of the convergence orders if is not large enough. In modeling reactive transport, where the amount of molecules is of the order of Avogadro’s number, the plateau reaches the machine precision. However, the truncation-limited precision becomes significant in applications for small systems of particles (e.g., [21]), for instance in modeling the isotopic separation of heavy water where the number of deuterium isotopes can be of the order or even smaller.
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