Next Article in Journal
Evolutionary Approach for DISCO Profit Maximization by Optimal Planning of Distributed Generators and Energy Storage Systems in Active Distribution Networks
Next Article in Special Issue
General Solutions for MHD Motions of Ordinary and Fractional Maxwell Fluids through Porous Medium When Differential Expressions of Shear Stress Are Prescribed on Boundary
Previous Article in Journal
Calculation of Sommerfeld Integrals in Dipole Radiation Problems
Previous Article in Special Issue
Mathematical Modeling of the Hydrodynamic Instability and Chemical Inhibition of Detonation Waves in a Syngas–Air Mixture
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Numerical Identification of Boundary Conditions for Richards’ Equation

by
Miglena N. Koleva
1,* and
Lubin G. Vulkov
2,*
1
Department of Mathematics, Faculty of Natural Sciences and Education, University of Ruse, 8 Studentska Street, 7017 Ruse, Bulgaria
2
Department of Applied Mathematics and Statistics, Faculty of Natural Sciences and Education, University of Ruse, 8 Studentska Street, 7017 Ruse, Bulgaria
*
Authors to whom correspondence should be addressed.
Mathematics 2024, 12(2), 299; https://doi.org/10.3390/math12020299
Submission received: 29 November 2023 / Revised: 11 January 2024 / Accepted: 15 January 2024 / Published: 17 January 2024
(This article belongs to the Special Issue Applications of Mathematics to Fluid Dynamics)

Abstract

:
A time stepping quasilinearization approach to the mixed (or coupled) form of one and two dimensional Richards’ equations is developed. For numerical solution of the linear ordinary differential equation (ODE) for 1D case and elliptic for 2D case, obtained after this semidiscretization, a finite volume method is used for direct problems arising on each time level. Next, we propose a version of the decomposition method for the numerical solution of the inverse ODE and 2D elliptic boundary problems. Computational results for some soil types and its related parameters reported in the literature are presented.

1. Introduction

Richards’ equation serves as a fundamental model for water movement in non-swelling unsaturated soils, see e.g., [1,2,3,4,5,6,7,8,9]. It exclusively hinges on soil water content as the sole dependent variable. L. Richards [10] derived it in an effort to construct a model of groundwater dynamics that includes actions of gravity and nonlinear capillary effects without having to model the non-wetting phase (air) as an unknown itself. Applications for computer simulations based on this equation include nuclear waste disposal, geochemical, and agricultural, etc.
Due to its nonlinear nature and transition of the type in different parts of the problem domain, this equation is difficult to solve by analytical techniques and closed form solutions can be obtained only in some particular cases [11,12].
In [11], the author investigates a class of analytical solutions to describe moisture flow in unsaturated porous materials. These solutions hinge on an exponential connection between hydraulic conductivity and moisture content with respect to water pressure. Well-posedness of Richards’ equation and an explicit solution for the corresponding steady-state problem are established in [13]. Uniqueness of the solution to a parabolic inverse problem with an unknown boundary condition upon a single internal measurement is established in [14].
Other difficulties in solving Richards’ equation arise from practical initial and boundary conditions, and water constitutive relations that can lead to solutions with low regularity. Additionally, when dry soils experience infiltration, it frequently triggers distinct wetting boundaries characterized by exceptionally steep spatial gradients in soil hydraulic characteristics [15,16,17].
Overcoming all these complexities make Richards’ equation challenging to solve, even numerically. In [18], the authors discuss the numerical behavior of standard approximation methods—finite difference and finite element methods for the unsaturated flow equation in different forms. Recently, variety numerical methods for solving Richards’ equation are developed: adaptive higher-order discontinuous Galerkin method [19], finite volume discretization realized by nested, Newton-type algorithm [20], Padé approximants for simplifying the analytical form of hydraulic parameters and Adomian’s decomposition [3], finite difference method by local balance of mass [21], monotone finite volume method [13], fitted finite volume method on graded spatial mesh [22], modified Picard algorithm with adaptive strategy in time and mass-conservative switching algorithm involving the mass-conservative mixed form and the pressure head-based form in different zones of the flow problem [9], etc.
In [23], an adaptive discontinuous Galerkin method for solving the model that combines Richards’ equation with a surface water balance is constructed to simulate the rate of recharge from rainwater in a zone with roots, an intermediate storage layer with high conductivity, and a lower water table. A numerical model is employed in [24] to simulate both mechanical root reinforcement and hydrological influences, encompassing evapotranspiration with various root configurations and alterations induced by roots in soil water retention and hydraulic conductivity.
Richards’ equation indirectly connects even to honeybee populations through its impact on plant growth (as soybean, rapeseed, sunflower) and the availability of nectar-producing flowers. Proper irrigation and soil moisture management play a role in ensuring a suitable environment for both plants and honeybees [25,26]. The paper [6] studies model verification both for classical and fractional Richardsons’ equations using measurements data for soybean sprinkling irrigation.
Inverse problems have important practical applications, since they involve the determination of initial function or boundary conditions and parameters that are unknown and cannot be measured in a satisfactory way. These problems are challenging to solve because, in general, they are ill-posed [1,7,8,27,28,29,30,31,32,33].
A more intensively studied class of inverse problems for Richards’ equation involves the identification of parameter(s). Necessary conditions for uniqueness of the solutions of parameter identification inverse problems of water flow through multi-dimensional variably saturated porous media are derived in [32]. In [34], an inverse problem is discussed for the determination of the two coefficients within the pressure head formulation of the porous flow equation. The parameter estimation problem for the hydraulic properties (the nonlinear coefficients) of porous media is studied in [28]. The problem is solved numerically by least-squares functional minimization. The authors of [1] solve the numerically parameter determination inverse problem for recovering hydrological parameters in Richards’ equation with given measurements of pressure. They apply optimal control approach, derive time discretization of the corresponding state problem, and solve the generated nonlinear state problem by finite difference scheme and Picard’s iteration procedure. In [29], authors discuss numerically solving two parameter identification inverse problems for Richards’ equation. In the first problem, soil parameters are restored, while in the second problem, hydraulic permeability, longitudinal dispersivity, and adsorption isotherms are determined. Stochastic parameterization and Monte Carlo methods are employed in [2] in order to determine saturated hydraulic conductivity fields. In [35], the Levenberg–Marquardt algorithm is utilized to minimize least-square functional in order to restore two parameters in the constitutive relations of the exponential model of Richards’ equation. Compensated nonlinear root water uptake is developed and soil hydraulic parameters are estimated in [36,37].
A technique for determining the saturation coefficients linked to relative hydraulic conductivity and water content is suggested in [38] on the basis of the simulation outcomes. In [39], the parameters are estimated by fitting the experimental data exclusively to the retention curve. The authors of [5] performed a model calibration in order to simulate water and nitrogen transport for two furrow irrigation technologies. In [40], the authors propose mathematical modeling for the groundwater recharge estimation problem.
In an irrigation setting, an optimal control approach was implemented in [25] for Richards’ equation, focusing on the reduction of water consumption and the enhancement of root water absorption.
There are few results in the literature for identifying boundary conditions in Richards’ problems. In [8], the authors construct an algorithm for recovering boundary conditions at the lower end of the domain from observations at the surface. Simultaneous recovering of multiple boundary heat flux parameters is achieved in [41] by solving nonlinear transient inverse heat conduction problems, applying a modified Levenberg–Marquardt algorithm.
In our previous paper [42], decomposition method is applied in order to determine external boundary conditions in a lime-fractional linear fluid-porous interface problem, defined on disjoint domains.
In this work, we construct and examine a numerical method for solving an inverse problem to identify the left Dirichlet boundary condition and the pressure head in Richards’ initial boundary value problem with additional measurements of the pressure within the domain. The algorithm is based on a quazilinearization approach and on decomposition of the inverse problem solution.
The remaining part of the paper is organized as follows: In the next section, we discuss the basic forms of the famous Richards’ equation. In Section 3, direct and inverse problems are formulated. The main results, numerical solution of 1D and 2D inverse problems, are obtained in Section 4 and Section 5. Computational simulations are presented in Section 6 and the paper is finalized with some conclusions.

2. Mathematical Models

Richards’ equation incorporates a diffusion term into a mass balance equation. The conservation of mass within a small uniform volume of unsaturated soil is represented by the equality
θ t = · q .
The fluid motion is considered as incompressible and the soil structure as robust and unyielding. The Equation (1) correlates the volumetric soil water content θ [ L 3 L 3 ] with the specific flow vector q [ L T 1 ] and t [ T ] is time.
The governing principle that defines the flow of water through an unsaturated porous medium is modeled by
q = K H , H = H x , H y , H z .
It can be seen as an expansion of Darcy’s law that takes unsaturated conditions into account. Here, K = K ( θ ) [ L T 1 ] represents the hydraulic conductivity, and H is the total head, H = z + ψ , where ψ [ L ] is the capillary heights and z [ L ] is geometric altitude.
In the case of flow along the z-direction, where the z-axis is oriented vertically upwards, an extra gravitational factor must be incorporated, leading to the inclusion of a gravitational term
q z = K z ( ψ + z ) z .
In the scientific literature, Richards’ equation is represented in three principal formulations: the mixed form, the pressure ψ -based form, and the water content θ -based form. We discuss these formulations in 1D case. Combining (1) and (3), we obtain the mixed formulation
θ ( ψ ) t = z K ( ψ ) ψ z 1 .
Further, the utilization of the concept of differential water capacity, expressed as the derivative of the soil water retention curve
C ( ψ ) = θ ψ ,
from (4) and (5), we derive the ψ -based formulation of Richards’ equation
C ( ψ ) ψ t = z K ( ψ ) ψ z 1 .
Here, C ( ψ ) [ L 1 ] is the specific fluid capacity.
In the saturated environment, the θ -based formulation of Richards’ equation can be formulated [19,43]. Namely, introducing the diffusion coefficient D [ L 2 T 1 ]
D ( θ ) = K ( θ ) ψ θ ,
we obtain
θ t = z D ( θ ) θ z K ( θ ) .
In the same fashion, the three formulations of 3D Richards’ equation are derived:
-
mixed formulation
θ ( ψ ) t = div K ( ψ ) ψ z ,
-
ψ -based formulation
C ( ψ ) ψ t = div K ( ψ ) ψ z .
-
head or  θ -based formulation
θ t = div D ( θ ) θ K z .
A different type of empirical constitutive relation for the moisture content and hydraulic conductivity are used in the literature. For example, the exponential model or Gardner model [2,8,11,44], given by
θ ( ψ ) = θ s e β ψ or θ ( ψ ) = θ r + ( θ s θ r ) e α ψ , K = K s ( z ) e α ψ ,
where θ s [ L 3 L 3 ] and θ r [ L 3 L 3 ], 0 θ r < θ s are saturation and residual water content, respectively, K s is the saturated hydraulic conductivity, β > 0 and α > 0 [ L 1 ] is soil pore-size distribution parameter.
The most popular constitutive relations are those described in studies conducted by van Genuchten [45]
C ( ψ ) = α n m θ s θ r [ 1 + | α ψ | n ] m + 1 | α ψ | n 1 , ψ 0 , 0 , ψ > 0 .
K ( ψ ) = K s θ ( ψ ) θ r θ s θ r 1 / 2 1 1 θ ( ψ ) θ r θ s θ r 1 / m m 2 , ψ 0 K s , ψ > 0
θ ( ψ ) = θ r + θ s θ r [ 1 + | α ψ | n ] m , ψ 0 , θ s , ψ > 0 .
Here, n > 0 is a pore-size distribution index, m = 1 1 n > and α > 0 are fitting parameters.

3. Direct and Inverse Problems

In this section, we formulate inverse problems for recovering the boundary condition in 1D and 2D problems, described by Richards’ equation in mixed form (4) and (8), respectively.
First, we consider 1D case. The model problem is formulated for mixed form of the Richards’ equation in the spatial domain with height L z [1,8,18]
θ t = z K ( ψ ) ψ z 1 , z ( 0 , L z ) , t ( 0 , T ] , ψ ( 0 , t ) = ψ b ( t ) , t ( 0 , T ] , ψ ( L z , t ) = ψ L ( t ) , or K ( ψ ) ψ z 1 z = L z = q t ( t ) , t ( 0 , T ] , ψ ( z , 0 ) = ψ 0 ( z ) , z Ω ¯ = [ 0 , L z ] ,
where q t ( t ) is the external time-dependent surface flow.
The direct problem is the problem (15) with known parameters, boundary, and initial conditions.
The following assertion presents a brief analysis of the solution of this problem.
Theorem 1. 
Let us assume that the functions θ ( ψ ) and K ( ψ ) are piecewise continuous and there are constants θ 0 > 0 , K 0 > 0 , such that
θ ( ψ ) θ 0 , K ( ψ ) K 0 , ψ R .
Then, the problem (15) has a unique solution ψ L 2 ( ( 0 , T ) , H 1 ( Ω ) ) .
Proof. 
We follow the idea of [13] to apply the results of [46]. To this end, we perform the change
φ ( z , t ) : = ψ ( z , t ) z
and reduce the problem (15) as follows:
( φ + z ) t = z K ( φ + z ) φ z 1 , z Ω = ( 0 , L z ) , t ( 0 , T ] , φ ( 0 , t ) = ψ b ( t ) , t ( 0 , T ] , φ ( L z , t ) = ψ L ( t ) L z , or K ( φ + z ) ψ z 1 z = L z = q t ( t ) , t ( 0 , T ] , φ ( z , 0 ) = ψ 0 ( z ) z , z Ω ¯ = [ 0 , L z ] .
Now, in a usual way, see e.g., [47], we define a weak solution φ L 2 ( ( 0 , T ] , H 1 ( Ω ) ) of the problem (16) as follows
0 T 0 L z θ ( φ + z ) φ 0 ( z ) d w d t d z d t 0 T 0 L z K ( φ + z ) d φ d t d w d t d z d t = 0 ,
for all w L 2 ( [ 0 , T ] , H 0 1 ( Ω ¯ ) ) , such that w L ( [ 0 , T ] × Ω ¯ ) and w ( z , T ) = 0 . Now, the statement of the theorem directly follows from the main result in [46]. □
We study the inverse problem (IP-1D) for identifying the left boundary condition ψ b ( t ) and solution ψ ( z , t ) in (15) under given point measurements.
ψ ( z l * , t ) = ψ * ( t ) for all t ( 0 , T ] and z l * ( 0 , L z ) .
Next, we consider the initial boundary value problem for 2D Richards’ equation in mixed form (8) [2,9,20,28]
θ t = x K x ( ψ ) ψ x + z K z ( ψ ) ψ z 1 , ( x , z ) ( 0 , L x ) × ( 0 , L z ) , t ( 0 , T ] , ψ ( x , 0 , t ) = ψ b ( x , t ) , K ( ψ ) ψ z 1 z = L z = q t ( t ) , t ( 0 , T ] , x ( 0 , L x ] , ψ ( 0 , z , t ) = ψ l ( z , t ) , ψ ( L x , z , t ) = ψ r ( z , t ) , t ( 0 , T ] , z ( 0 , L z ] , ψ ( x , z , 0 ) = ψ 0 ( x , z ) , ( x , z ) [ 0 , L x ] × [ 0 , L z ] ,
The inverse problem (IP-2D) for identifying the function ψ ˜ b ( t ) in the left boundary condition ψ b ( x , t ) = ψ ˜ b ( t ) ψ ˚ b ( x ) and solution ψ ( x , z , t ) in (18) is formulated under given point measurements
ψ ( x s * , z l * , t ) = ψ * ( x s * , z l * , t ) for all t ( 0 , T ] and ( x s * , z l * ) ( 0 , L x ) × ( 0 , L z ) .

4. Numerical Solution of the Inverse Problem—1D Case

In this section, we discuss numerically solving the IP-1D. The numerical approach is constructed in four steps—time semidiscretization, linearization, decomposition, and full discretization.
We introduce uniform temporal mesh with grid nodes t n = n τ , n = 0 , 1 , , N , N τ = T . Applying implicit-explicit time-stepping (Rothe method) to the direct problem (15), we derive the following ODE system for unknown solution ψ n = ψ n ( x ) , n = 1 , 2 , , N
θ ( ψ n + 1 ) θ ( ψ n ) τ = σ L z ( ψ n + 1 ) + ( 1 σ ) L z ( ψ n ) , z ( 0 , L z ) , ψ n + 1 ( 0 ) = ψ b ( t n + 1 ) , z = 0 , ψ n + 1 ( L ) = ψ L ( t n + 1 ) , or K ( ψ n + 1 ) ψ n + 1 z 1 z = L z = q t ( t n + 1 ) , z = L z , ψ ( z , 0 ) = ψ 0 ( z ) , z [ 0 , L z ] ,
where L z ( ψ n ) = z K ( ψ n ) ψ n z 1 and 0 < σ 1 .
For a general quasilinear parabolic equation, the convergence of the Rothe method is studied in [48]. This study is based on the proof of a priori estimates for the corresponding differential-difference nonlinear system (20). Then, using these estimates, the author of [48] proves the existence of a smooth solution of the original differential problem. The next theorem immediately follows from the main result in [48].
Theorem 2. 
For ( x , t ) Ω ¯ × ( 0 , T ] , any ψ, ψ < , the input data of the problem (15) are uniformly bounded, where for the derivatives θ ( ψ ) and K ( ψ ) hold:
0 < θ min θ ( ψ ) θ max , 0 < K min K ( ψ ) K max , ψ R .
The function ψ L ( t ) , q t ( t ) are continuous and ψ 0 ( z ) is continuously differentiable and they all satisfy compatibility conditions. Then, Richards’ parabolic nonlinear problem (15) has a unique smooth solution, which is the limit of the Rothe solution (20) as the time step τ goes to zero.
Further, we apply Belman and Kalaba quazilinearization [4,22,49,50]. Let us denote
ψ ¯ n + 1 = ψ n + 1 z ,
and suppose that ψ 0 n + 1 , ψ ¯ 0 n + 1 are the initial approximations of the corresponding exact values of ψ n + 1 and ψ ¯ n + 1 at the ( n + 1 ) -th time layers.
Then
ψ n + 1 = ψ 0 n + 1 + ( ψ n + 1 ψ 0 n + 1 ) = ψ 0 n + 1 + δ ψ n + 1 , ψ ¯ n + 1 = ψ ¯ 0 n + 1 + δ ψ ¯ n + 1 .
We consider ψ n + 1 and ψ ¯ n + 1 as independent variables and assume that δ ψ n + 1 and δ ψ ¯ n + 1 are small values. Using the notation K ( ψ ) = d K / d ψ , we represent
K ( ψ n + 1 ) ( ψ ¯ n + 1 1 ) = K ( ψ 0 n + 1 ) ψ ¯ n + 1 + K ( ψ 0 n + 1 ) ψ ¯ 0 n + 1 ( ψ n + 1 ψ 0 n + 1 ) K ( ψ 0 n + 1 ) K ( ψ 0 n + 1 ) ( ψ n + 1 ψ 0 n + 1 )
and therefore
L z ( ψ n + 1 ) = z K ( ψ 0 n + 1 ) ψ ¯ n + 1 + K ( ψ 0 n + 1 ) ψ ¯ 0 n + 1 ψ n + 1 K ( ψ 0 n + 1 ) ψ n + 1 z K ( ψ 0 n + 1 ) ψ ¯ 0 n + 1 ψ 0 n + 1 + K ( ψ 0 n + 1 ) K ( ψ 0 n + 1 ) ψ 0 n + 1 .
In the same manner, we treat the the function θ ( ψ n + 1 ) in the evolution term in (20)
θ ( ψ n + 1 ) = θ ( ψ 0 n + 1 ) + θ ( ψ 0 n + 1 ) ( ψ n + 1 ψ 0 n + 1 ) ,
where θ ( ψ ) = d θ / d ψ .
From (24) and (25), substituting in (20), rearranging and taking into account (21), we obtain
θ ( ψ 0 n + 1 ) ψ n + 1 τ σ z K ( ψ 0 n + 1 ) ψ n + 1 z + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) ψ n + 1 = F ( z ) ,
where F ( z ) = F 1 n ( z ) + F 2 n + 1 ( z ) ,
F 1 n ( z ) = θ ( ψ n ) τ + ( 1 σ ) z K ( ψ n ) ψ n z 1 , F 2 n + 1 ( z ) = σ z K ( ψ 0 n + 1 ) + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) ψ 0 n + 1 + θ ( ψ 0 n + 1 ) ψ 0 n + 1 τ θ ( ψ 0 n + 1 ) τ .
The problem is completed by initial and boundary conditions in (20). The flux-type right boundary condition is handled as in (23). At point z = L z , we have
K ( ψ 0 n + 1 ) ψ n + 1 z + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) ψ n + 1 = F b ,
F b = K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) ψ 0 n + 1 + K ( ψ 0 n + 1 ) q t n + 1 .
We proceed with the third step. In order to solve the inverse problem IP-1D, we apply the following decomposition of the solution
ψ n + 1 ( z ) = Ψ 1 n + 1 ( z ) + ψ b n + 1 Ψ 2 n + 1 ( z ) .
Substituting in (26) with the corresponding Dirichlet or flux boundary conditions (27) and initial condition, we obtain two problems for the unknown functions Ψ 1 n + 1 ( z ) and Ψ 2 n + 1 ( z )
θ ( ψ 0 n + 1 ) Ψ 1 n + 1 τ σ z K ( ψ 0 n + 1 ) Ψ 1 n + 1 x + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) Ψ 1 n + 1 = F ( z ) , Ψ 1 n + 1 ( 0 ) = 0 , z = 0 , Ψ 1 n + 1 ( L z ) = ψ L ( t n + 1 ) or K ( ψ 0 n + 1 ) Ψ 1 n + 1 z + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) Ψ 1 n + 1 = F b n + 1 , z = L z , ψ ( z , 0 ) = ψ 0 ( z ) , z [ 0 , L z ] ,
and
θ ( ψ 0 n + 1 ) Ψ 2 n + 1 τ σ z K ( ψ 0 n + 1 ) Ψ 2 n + 1 x + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) Ψ 2 n + 1 = 0 , Ψ 2 n + 1 ( 0 ) = 1 , z = 0 , Ψ 2 n + 1 ( L z ) = 0 , K ( ψ 0 n + 1 ) Ψ 2 n + 1 z + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) Ψ 2 n + 1 = 0 , z = L z .
Finally, we define uniform spatial mesh with grid nodes z i = i h z , i = 0 , 1 , , I , h z = L z / I and denote by v i n the values of the mesh function v at grid node ( z i , t n ) . We use also the notations
v z , i n = v i + 1 n v i n h z , v z ¯ , i n = v x , i 1 n .
For the discretization of (29) and (30), we apply finite volume method. To this aim, we define also the dual mesh
z i + 1 / 2 = z i + h z 2 , i = 1 , 0 , 2 , , I , z 1 / 2 = z 0 , z I + 1 / 2 = z I
and denote by v i + 1 / 2 n the values of the mesh function v at grid node ( z i + 1 / 2 , t n ) .
The full discrete scheme of the direct problem (26) and (27) associated with the corresponding Dirichlet boundary conditions and initial conditions (20) is
θ i ψ i n + 1 τ σ h z K i + 1 / 2 n + 1 ψ z , i n + 1 + ( K ) i + 1 / 2 n + 1 2 ( ψ 0 z , i n + 1 1 ) ψ i n + 1 + ψ i + 1 n + 1 K i 1 / 2 n + 1 ψ z ¯ , i n + 1 + ( K ) i 1 / 2 n + 1 2 ( ψ 0 z ¯ , i n + 1 1 ) ψ i 1 n + 1 + ψ i n + 1 = F i , i = 1 , 2 , , I 1 , ψ i n + 1 = ψ b n + 1 , i = 0 , ψ i n + 1 = ψ L n + 1 , i = L , or θ I ψ I n + 1 τ + 2 σ h z K I 1 / 2 n + 1 ψ z ¯ , i n + 1 + ( K ) I 1 / 2 n + 1 2 ( ψ 0 z ¯ , I n + 1 1 ) ψ I 1 n + 1 + ψ I n + 1 = F I , ψ ( z i , 0 ) = ψ i 0 , i = 0 , 1 , , I ,
where K i n = K ( ψ i n ) , K i + 1 / 2 n = K ( ψ i + 1 / 2 n ) = 1 2 K ( ψ i n ) + K ψ i + 1 n , K i n + 1 = K ( ψ 0 , i n + 1 ) , K i + 1 / 2 n + 1 = K ( ψ 0 , i + 1 / 2 n + 1 ) = 1 2 K ( ψ 0 , i n + 1 ) + K ψ 0 , i + 1 n + 1 and similarly for the functions K ( · ) , θ ( · ) and
F i = F 1 , i n σ h z K i + 1 / 2 n + 1 + ( K ) i + 1 / 2 n + 1 2 ( ψ 0 z , i n + 1 1 ) ψ 0 , i n + 1 + ψ 0 , i + 1 n + 1 K i 1 / 2 n + 1 + ( K ) i 1 / 2 n + 1 2 ( ψ 0 z ¯ , i n + 1 1 ) ψ 0 , i 1 n + 1 + ψ 0 , i n + 1 + ( θ ) i n + 1 ψ i , 0 n + 1 τ θ i n + 1 τ , F 1 , i n = θ ( ψ i n ) τ + 1 σ h z K i + 1 / 2 n ψ z , i n 1 K i 1 / 2 n ψ z ¯ , i n 1 , F I = 2 σ h z q t n + 1 + F 1 , I n + 2 σ h z K I 1 / 2 n + 1 + ( K ) I 1 / 2 n + 1 2 ( ψ 0 z ¯ , I n + 1 1 ) ψ 0 , I 1 n + 1 + ψ 0 , I n + 1 + ( θ ) I n + 1 ψ I , 0 n + 1 τ θ I n + 1 τ , F 1 , I n = θ ( ψ I n ) τ 2 ( 1 σ ) h z q t n + K I 1 / 2 n ψ z ¯ , I n 1 ,
In the same fashion, we derive the full discretizations of (29) and (30)
θ i Ψ 1 , i n + 1 τ σ h z K i + 1 / 2 n + 1 ( Ψ 1 ) z , i n + 1 + ( K ) i + 1 / 2 n + 1 2 ( ψ 0 z , i n + 1 1 ) ( Ψ 1 , i ) n + 1 + Ψ 1 , i + 1 n + 1 K i 1 / 2 n + 1 ( Ψ 1 ) z ¯ , i n + 1 + ( K ) i 1 / 2 n + 1 2 ( ψ 0 z ¯ , i n + 1 1 ) ( Ψ 1 , i 1 ) n + 1 + ( Ψ 1 , i ) n + 1 = F i , i = 1 , 2 , , I 1 , Ψ 1 , i n + 1 = 0 , i = 0 , Ψ 1 , i n + 1 = ψ L n + 1 , i = L z , or θ I Ψ 1 , I n + 1 τ + σ h z ( K ) I 1 / 2 n + 1 2 ( ψ 0 z ¯ , I n + 1 1 ) ( Ψ 1 , I 1 ) n + 1 + ( Ψ 1 , I ) n + 1 + K I 1 / 2 n + 1 ( Ψ 1 ) z ¯ , I n + 1 = F I , ψ ( z i , 0 ) = ψ i 0 , i = 0 , 1 , , I ,
and
θ i Ψ 2 , i n + 1 τ σ h z K i + 1 / 2 n + 1 ( Ψ 2 ) z , i n + 1 + ( K ) i + 1 / 2 n + 1 2 ( ψ 0 z , i n + 1 1 ) ( Ψ 2 , i ) n + 1 + Ψ 2 , i + 1 n + 1 K i 1 / 2 n + 1 ( Ψ 2 ) z ¯ , i n + 1 + ( K ) i 1 / 2 n + 1 2 ( ψ 0 z ¯ , i n + 1 1 ) ( Ψ 2 , i 1 ) n + 1 + ( Ψ 2 , i ) n + 1 = 0 , i = 1 , 2 , , I 1 , Ψ 1 , i n + 1 = 1 , i = 0 , Ψ 2 , i n + 1 = 0 , i = L z , or θ I Ψ 2 , I n + 1 τ + σ h z ( K ) I 1 / 2 n + 1 2 ( ψ 0 z ¯ , I n + 1 1 ) ( Ψ 2 , I 1 ) n + 1 + ( Ψ 2 , I ) n + 1 + K I 1 / 2 n + 1 ( Ψ 2 ) z ¯ , I n + 1 = 0 .
Let denote v = max 0 i I | v i | . In order to solve the problems (31)–(33), we initiate iteration process, replacing ψ 0 n + 1 by the solution ψ 0 ( k ) at old iteration and ψ n + 1 is the solution at new iteration ψ ( k + 1 ) , k = 0 , 1 , . Suppose that the points of measurements are grid nodes. Thus, for the numerical recovering of the solution ψ and left boundary condition, the computations are performed by the following steps
Algorithm IP-1D
1.
Start with initial function ψ 0 , measurements ψ * ( t ) , and set the accuracy ϵ .
2.
Set n = 0 .
3.
Set k = 0 .
4.
Solve the problem (32), ψ 0 ( k ) : = ψ 0 n + 1 , ψ ( k + 1 ) : = ψ n + 1 to find Ψ 1 ( k + 1 ) .
5.
Solve the problem (33), ψ 0 ( k ) : = ψ 0 n + 1 , ψ ( k + 1 ) : = ψ n + 1 to find Ψ 2 ( k + 1 ) .
6.
From (17) and (28), determine
ψ b ( k + 1 ) = ψ * ( t n + 1 ) Ψ 1 ( k + 1 ) ( z * ) Ψ 2 ( k + 1 ) ( z * ) .
7.
From (28), determine
ψ i ( k + 1 ) = Ψ 1 , i ( k + 1 ) + ψ b ( k + 1 ) Ψ 2 , i ( k + 1 ) , i = 1 , , I .
8.
If  ψ ( k + 1 ) ψ ( k ) < ϵ
then ψ b n + 1 = ψ b ( k + 1 ) , ψ n + 1 = ψ ( k + 1 ) , n : = n + 1 ;
    if n < N ,
    then ψ ( 0 ) : = ψ ( k + 1 ) and go to step 3;
    or else, stop the computations.
or else k : = k + 1 and go to step 4.
We use the iterative solution of the direct problem (31) in the numerical tests only to generate measurements and to estimate the accuracy of the inverse method.

5. Numerical Solution of the Inverse Problem—2D Case

In this section we briefly discuss the construction of the numerical method for solving inverse problem IP-2D. We follow the same steps as for the 1D case.
First, we apply weighed semidiscretization in time to obtain the ODE system. Next, we linearize the terms L v ( ψ n + 1 ) = v K ( ψ n + 1 ) ψ n + 1 v .
In this framework, for L z ( ψ n + 1 ) , using the notations (21), (22), we derive (24). In the same manner, we treat the term L x ( ψ n + 1 ) . Involving the notation ψ ¯ ¯ , we obtain
ψ ¯ ¯ n + 1 = ψ n + 1 x , ψ n + 1 = ψ 0 n + 1 + δ ψ n + 1 , ψ ¯ ¯ n + 1 = ψ ¯ ¯ 0 n + 1 + δ ψ ¯ ¯ n + 1 .
Therefore
L x ( ψ n + 1 ) = x K ( ψ 0 n + 1 ) ψ ¯ ¯ n + 1 + K ( ψ 0 n + 1 ) ψ ¯ ¯ 0 n + 1 ψ n + 1 K ( ψ 0 n + 1 ) ψ ¯ ¯ 0 n + 1 ψ 0 n + 1 .
Then, in view of (25), the linearized problem (18) became
θ ( ψ 0 n + 1 ) ψ n + 1 τ σ z K ( ψ 0 n + 1 ) ψ n + 1 z + K ( ψ 0 n + 1 ) ( ψ ¯ ¯ 0 n + 1 1 ) ψ n + 1 σ x K ( ψ 0 n + 1 ) ψ n + 1 x + K ( ψ 0 n + 1 ) ψ ¯ ¯ 0 n + 1 ψ n + 1 = F ( z ) , ψ n + 1 ( x , 0 ) = ψ ˜ b n + 1 ψ ˚ b ( x ) , K ( ψ 0 n + 1 ) ψ n + 1 x + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) ψ n + 1 = F b , z = L z , ψ n + 1 ( 0 , z ) = ψ l n + 1 ( z ) , ψ n + 1 ( L x , z ) = ψ r n + 1 ( z ) , ψ ( x , z , 0 ) = ψ 0 ( x , z ) ,
where F ( z ) = F 1 n ( z ) + F 2 n + 1 ( z ) + F 1 n ( x ) + F 2 n + 1 ( x ) , F 1 n ( z ) , F 2 n ( z ) , F b are defined as before, replacing ψ n ( z ) by ψ n ( x , z ) and
F 1 n ( x ) = ( 1 σ ) x K ( ψ n ) ψ n z , F 2 n + 1 ( x ) = σ x K ( ψ 0 n + 1 ) ψ ¯ ¯ 0 n + 1 ψ 0 n + 1 .
To solve the inverse problem IP-2D, we decompose the solution
ψ n + 1 ( x , z ) = Ψ 1 n + 1 ( x , z ) + ψ b n + 1 Ψ 2 n + 1 ( x , z ) .
Substituting (37) in (36), we derive two problems for the unknown functions Ψ 1 n + 1 ( x , z ) and Ψ 2 n + 1 ( x , z )
θ ( ψ 0 n + 1 ) Ψ 1 n + 1 τ σ z K ( ψ 0 n + 1 ) Ψ 1 n + 1 x + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) Ψ 1 n + 1 σ x K ( ψ 0 n + 1 ) ψ n + 1 x + K ( ψ 0 n + 1 ) ψ ¯ ¯ 0 n + 1 ψ n + 1 = F ( z ) , Ψ 1 n + 1 ( x , 0 ) = 0 , K ( ψ 0 n + 1 ) Ψ 1 n + 1 z + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) Ψ 1 n + 1 = F b n + 1 , z = L z , Ψ 1 ( x , z , 0 ) = ψ 0 ( x , z ) , z [ 0 , L z ] , Ψ 1 n + 1 ( 0 , z ) = ψ l n + 1 ( z ) , Ψ 1 n + 1 ( L x , z ) = ψ r n + 1 ( z )
and
θ ( ψ 0 n + 1 ) Ψ 2 n + 1 τ σ z K ( ψ 0 n + 1 ) Ψ 2 n + 1 x + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) Ψ 2 n + 1 σ x K ( ψ 0 n + 1 ) ψ n + 1 x + K ( ψ 0 n + 1 ) ψ ¯ ¯ 0 n + 1 ψ n + 1 = 0 , Ψ 2 n + 1 ( x , 0 ) = ψ ˚ b ( x ) , K ( ψ 0 n + 1 ) Ψ 2 n + 1 z + K ( ψ 0 n + 1 ) ( ψ ¯ 0 n + 1 1 ) Ψ 2 n + 1 = 0 , z = L z , Ψ 1 n + 1 ( 0 , z ) = 0 , Ψ 1 n + 1 ( L x , z ) = 0 .
Further, we define primal and dual uniform spatial meshes also in x-direction with grid nodes
x i = i h x , j = i = 0 , 1 , , J , h x = L x / J , x j + 1 / 2 = x j + h x 2 , j = 1 , 0 , 2 , , J , x 1 / 2 = x 0 , x J + 1 / 2 = z J .
Denote by v j , i n , v j , i + 1 / 2 n and v j + 1 / 2 , i n the values of the mesh function v at grid node ( x j , z i , t n ) , ( x j , z i + 1 / 2 , t n ) and ( x j + 1 / 2 , z i + , t n ) , respectively. We use also the notations
v z , j , i n = v j , i + 1 n v j , i n h z , v z ¯ , j , i n = v x , j , i 1 n , v x , j , i n = v j + 1 , i n v j , i n h z , v x ¯ , j , i n = v x , j 1 , i n .
For clarity of the exposition, we simplify the notations for the mesh function v
v n : = v j , i n , v j ± p n : = v j ± p , i n , v i ± p n : = v j , i ± p n .
Taking
ψ ( k ) : = ψ 0 n + 1 , ψ ( k + 1 ) : = ψ n + 1 , K ( k ) : = K ( ψ ( k ) ) = K ( ψ 0 n + 1 ) , K n : = K ( ψ n ) ,
the same for K and θ , the full discrete iterative finite volume scheme of the direct problem (36) is
θ ψ ( k + 1 ) τ σ h x L x h ψ ( k + 1 ) , ψ ( k ) σ h z L z h ψ ( k + 1 ) , ψ ( k ) = F i ( k ) + F j ( k ) , j = 1 , 2 , , J 1 , i = 1 , 2 , , I 1 , ψ ( k + 1 ) = ψ ˜ b n + 1 ψ ˚ b , j = 1 , 2 , , J 1 , i = 0 , θ ψ ( k + 1 ) τ + 2 σ h z K i 1 / 2 ( k ) ψ z , i 1 ( k + 1 ) + ( K ) i 1 / 2 ( k ) 2 ( ψ z ¯ , i ( k ) 1 ) ψ i 1 ( k + 1 ) + ψ ( k + 1 ) σ h x L x h ψ ( k + 1 ) , ψ ( k ) = F I ( k ) + F j ( k ) , j = 1 , 2 , , J 1 , i = I , ψ ( k + 1 ) ( 0 , z i ) = ψ l ( k + 1 ) ( z i ) , ψ n + 1 ( L x , z i ) = ψ r n + 1 ( z i ) , i = 1 , 2 , , I , ψ ( x j , z i , 0 ) = ψ 0 , j = 0 , 1 , , J , i = 0 , 1 , , I ,
where F i and F I are defined as before, replacing ψ i ± p by ψ j , i ± p . Then, F i ( k ) and F I ( k ) are obtained applying (40)
L x h ψ ( k + 1 ) , ψ ( k ) = K j + 1 / 2 ( k ) ψ x ( k + 1 ) + ( K ) j + 1 / 2 ( k ) 2 ψ x ( k ) ψ ( k + 1 ) + ψ j + 1 ( k + 1 ) K j 1 / 2 ( k ) ψ x ¯ , j ( k ) + ( K ) j 1 / 2 ( k ) 2 ψ x , j 1 ( k ) ψ j 1 ( k + 1 ) + ψ ( k + 1 ) , L z h ψ ( k + 1 ) , ψ ( k ) = K i + 1 / 2 ( k ) ψ z ( k + 1 ) + ( K ) i + 1 / 2 ( k ) 2 ( ψ z ( k ) 1 ) ψ ( k + 1 ) + ψ i + 1 ( k + 1 ) K i 1 / 2 ( k ) ψ z ¯ , i ( k + 1 ) + ( K ) i 1 / 2 ( k ) 2 ( ψ z , i 1 ( k ) 1 ) ψ i 1 ( k + 1 ) + ψ ( k + 1 ) , F j ( k ) = F 1 , j n σ h x ( K ) j + 1 / 2 ( k ) 2 ψ x ( k ) ψ ( k ) + ψ j + 1 ( k ) ( K ) j 1 / 2 ( k ) 2 ψ x ¯ , j ( k ) ψ j 1 ( k ) + ψ j ( k ) , F 1 , j n = 1 σ h x K j + 1 / 2 n ψ x , j n K j 1 / 2 n ψ x ¯ , j n .
Similarly, we obtain the full discretizations of (38) and (39)
θ Ψ 1 ( k + 1 ) τ σ h x L x h Ψ 1 ( k + 1 ) , ψ ( k ) σ h z L z h Ψ 1 ( k + 1 ) , ψ ( k ) = F i ( k ) + F j ( k ) , j = 1 , 2 , , J 1 , i = 1 , 2 , , I 1 , Ψ 1 ( k + 1 ) = 0 , j = 1 , 2 , , J 1 , i = 0 , θ Ψ 1 ( k + 1 ) τ + 2 σ h z K i 1 / 2 ( k ) Ψ 1 z , i 1 ( k + 1 ) + ( K ) i 1 / 2 ( k ) 2 ( Ψ 1 z ¯ , i ( k ) 1 ) Ψ 1 i 1 ( k + 1 ) + Ψ 1 ( k + 1 ) σ h x L x h Ψ 1 ( k + 1 ) , ψ ( k ) = F I ( k ) + F j ( k ) , j = 1 , 2 , , J 1 , i = I , Ψ 1 ( k + 1 ) ( 0 , z i ) = ψ l ( k + 1 ) ( z i ) , Ψ 1 n + 1 ( L x , z i ) = ψ r n + 1 ( z i ) , i = 1 , 2 , , I , ψ ( x j , z i , 0 ) = ψ 0 , j = 0 , 1 , , J , i = 0 , 1 , , I ,
and
θ Ψ 2 ( k + 1 ) τ σ h x L x h Ψ 2 ( k + 1 ) , ψ ( k ) σ h z L z h Ψ 2 ( k + 1 ) , ψ ( k ) = 0 , j = 1 , 2 , , J 1 , i = 1 , 2 , , I 1 , Ψ 2 ( k + 1 ) = ψ ˚ b , j = 1 , 2 , , J 1 , i = 0 , θ Ψ 2 ( k + 1 ) τ + 2 σ h z K i 1 / 2 ( k ) Ψ 2 z ¯ , i ( k + 1 ) + ( K ) i 1 / 2 ( k ) 2 ( ψ z , i 1 ( k ) 1 ) Ψ 2 i 1 ( k + 1 ) + Ψ 2 ( k + 1 ) σ h x L x h Ψ 2 ( k + 1 ) , ψ ( k ) = 0 , j = 1 , 2 , , J 1 , i = I , Ψ 2 ( k + 1 ) ( 0 , z i ) = 0 , Ψ 2 n + 1 ( L x , z i ) = 0 , i = 1 , 2 , , I .
Algorithm IP-2D
We follow the same steps 1–8 as in Algorithm IP-1D, but the norm is defined by ψ = max 0 j N x max 0 i N z | ψ i , j | and instead of (32) and (33), we compute (42) and (43), respectively. Also, steps 6 and 7 are based on the decomposition (37) and measurements (19), namely
  • ......
6.
From (17) and (28), determine
ψ b ( k + 1 ) = ψ * ( t n + 1 ) Ψ 1 ( k + 1 ) ( x * , z * ) Ψ 2 ( k + 1 ) ( x * , z * ) .
7.
From (28), determine
ψ j , i ( k + 1 ) = Ψ 1 j , i ( k + 1 ) + ψ b ( k + 1 ) Ψ 2 j , i ( k + 1 ) , j = 1 , , J i = 1 , , I .
  • ...

6. Computational Results

In this section, we illustrate the efficiency of the constructed Algorithm IP-1D and Algorithm IP-2D for numerical determination of the left boundary condition ψ b and the solution ψ in problems (15) and (18). The stability is investigated by adding a different level of random noise on the over-specified boundary data.
We set hydraulic parameters for clay loam texture [23,25]
K s = 0.5458 cm / h , θ s = 0.4686 , θ r = 0.1060 , n = 1.3954 , α = β = 0.0104 c m 1 .
All computations are performed for τ = h , σ = 0.5 and ϵ = 1 × 10 6 . To solve the linear systems of algebraic equations generated after full discretization, we apply direct method, using the ’mldivide’ toolbox of MATLAB R2022a for sparse matrices.
Example 1 (1D inverse problem: exact data). 
We verify the order of convergence of the Algorithm IP-1D. The test problem is the inverse problem for (15),  L = 1 , T = 1 .
We take the measurements from the numerical solution of the direct problem (31) at each time layer and at three different space points z * = 0.25 , z * = 0.5 , z * = 0.75 . The averaging number of iterations is denoted by k a v e r .
First, we consider constitutive relations of the exponential model (11). We add residual functions in the right-hand side of the differential equation in (15), choose appropriate function q t ( t ) , initial condition, and Dirichlet boundary conditions, such that ψ e x ( x , t ) = 2 e t / 2 sin ( π x ) to be the exact solution of the modified direct problem (15).
The error and order of convergence are estimated in maximal discrete norm
E = E ( I ) = ψ i n v N ψ e x T , C R = log 2 E ( 2 I ) E ( I ) ,
where ψ i n v N is the solution, obtained by Algorithm IP-1D at final time, and ψ e x T is the exact solution of the direct problem (15) at t = T , computed by (31).
In Table 1 and Table 2 we give errors, order of convergence, and average number of iterations for z * = 0.25 and z * = 0.75 .
We observe that the location of the measurements does not influence the accuracy of the Algorithm IP-1D and the order of convergence is O ( τ 2 + h 2 ) .
Further, all computations are performed for the case of right Neumann boundary condition in (15). In Figure 1, we plot the absolute difference between the numerical solution of the inverse problem ψ i n v N and direct problem ψ d N at final time for I = 80 . In Figure 2, we depict exact and recovered function ψ b . The results show that Algorithm IP-1D recovers numerical solution and left boundary condition of the direct problem exactly. Therefore, considering also the results in Table 1 and Table 2, both numerical solution of the direct and inverse problems are second order accurate in space and time.
Now, we examine constitutive relations of the Genuchten model. We solve original problem (15), (12)–(14) for q t ( t ) = q 0 + δ e ς t with q 0 = 0.1 [cm/h], δ = 0.8 [cm/h] and ς = 0.1 [h 1 ], see [8], z * = 0.5 and initial function
ψ 0 ( z ) = 5 , z > 0.6 , 3 z / 0.3 , z 0.6 .
In Figure 3, we illustrate the numerical solution of the inverse problem and direct problems and absolute error | ψ i n v N ψ d N | at final time for I = 80 . In Figure 4, we depict exact function ψ b = 5 e t and numerically restored by Algorithm IP-1D function ψ b and the absolute difference between these two solutions. Note that for this test example k a v e r = 4 . The computations show that the numerical solution of the direct problem is recovered exactly.
Example 2 (1D inverse problem: noisy data). 
We repeat the same computations as in Example 1, but with perturbed measurements ψ l * ( t n ) , n = 1 , 2 , , N , generated from numerical solution of the direct problem (31), by adding noise
ψ l * ( t n ) = ( ψ d ) l n + 2 ε ( ρ ( t n ) 0.5 ) , z l = z * , 1 l I ,
where ε is the noise level and ρ ( t n ) is a random function, uniformly distributed on the interval [ 0 , 1 ] . For the test examples, we set z * = 0.5 and I = 80 .
We consider exponential model (11) and (15). In Figure 5 and Figure 6, we plot numerical solution of the direct and inverse problems for ε = 0.01 and ε = 0.05 , respectively. Figure 7 illustrates the exact and recovered left boundary for ε = 0.01 and ε = 0.05 . For these test examples, the average number of iterations are k a v e r = 3.080 for ε = 0.01 and k a v e r = 3.850 for ε = 0.05 .
Next, we examine Genuchten model (12)–(14) and (15). In Figure 8 and Figure 9, we depict numerical solution of the direct and inverse problems for ε = 0.01 and ε = 0.05 , respectively. Figure 10 represents the exact and recovered left boundary for ε = 0.01 and ε = 0.05 . In the case of ε = 0.01 , the average number of iterations is k a v e r = 7.125 , while for ε = 0.05 it is k a v e r = 8.338 .
As can be expected, the bigger deviation leads to bigger error. Nevertheless, it is evident that even for perturbed data for both models, the Algorithm IP-1D recovers successfully the numerical solution of the direct problem with optimal accuracy.
Example 3 (2D inverse problem: exact data). 
Consider the problem (8), K = K x = K z , L x = L z = 1 , T = 0.5 . For all computations we take h x = h x = h and measurements at each time layer at space point x * = 0.5 , z * = 0.5 . First, we examine exponential model with constitutive relations (11). As in Example 1, we deal with the corresponding modified problem with exact solution ψ e x = e t / 2 sin ( π x ) cos ( π z ) .
In Table 3, we give errors and orders of convergence, estimated in maximal discrete norm by (44), average number of iterations, and CPU times (in seconds). As for 1D case, we observe second temporal and spatial order convergence and rapid increasing of the computational time as the mesh become finer, since the large matrix inversion requires much more computational time.
In Figure 11, we plot absolute difference between the numerical solution of the inverse problem ψ i n v N , obtained by Algorithm IP-2D and direct problem ψ d N , computed by (41) at final time, and recovered boundary ψ b n and exact boundary ψ b ( t n ) for I = 80 .
Now, we consider Genuchten model (8), (12)–(14) with initial solution ψ 0 ( x , z ) = sin π x cos π z + 0.25 and Dirichlet boundary conditions formed from the function e t / 2 ψ 0 ( x , z ) at the corresponding boundary nodes. The function q t ( t ) is the same as in Example 1.
We compare the recovered solution with the numerical solution of the direct problem. The solution, solved by Algorithm IP-2D, and absolute difference between this solution and numerical solution of the direct problem, are depicted in Figure 12. The average number of iterations is k a v e r = 3.878 .
As in 1D case, we conclude that the order of convergence of the numerical solution of the inverse and direct problems is O ( τ + h x 2 + h z 2 ) . Moreover, the solution obtained by Algorithm IP-2D recovers exactly the numerical solution of the direct problem.
Example 4 (2D inverse problem: noisy data). 
We consider the same Genuchten problem as in Example 3, but for perturbed data generated from numerical solution of the direct problem as in (45) for ε = 0.03 , x * = 0.5 , z * = 0.5 . In Figure 13, we plot numerical solution of the direct problem at final time, computed by (41), and the corresponding recovered solution, obtained by Algorithm IP-2D, for I = 80 . We observe that the recovering is quite satisfactory. The average number of iterations is k a v e r = 3.951 .
The computational simulations, presented in this section to test the developed method, are implemented by MATLAB R2022a on a computer with an Intel® Core TM i5-7500 Processor, DDR4 2133 MHz.

7. Summary and Conclusions

In this paper, we solved numerically inverse boundary condition problems upon internal measurements for 1D and 2D mixed forms of Richards’ equation. First, time discretization is performed and then at each time layer for the resulting elliptic boundary-value problems we apply quazilinearization. For the numerical solution of the inverse problem, the decomposition of the solution is realized. Numerical examples are presented to illustrate the efficiency of the proposed method.
The computational tests for exponential and Genuchten 1D and 2D problems illustrate that for noisy-free measurements the order of convergence of the restored solution is the same as for the numerical solution of the direct problem, namely second order in space and time for Crank–Nicolson time discretization. Moreover, the numerical solution of the inverse problem recovers exactly the numerical solution of the direct problem and unknown boundary.
In the case of perturbed observations, the proposed algorithms recover successfully the solution of the direct problem and unknown Dirichlet boundary with optimal accuracy.
The developed approach is stable and reaches satisfactory and relevant precision in a moderate number of iterations.
Our next aim is to develop other numerical methods for solving inverse boundary conditions and source problems for initial boundary values problems for Richards’ equation.

Author Contributions

Conceptualization, M.N.K. and L.G.V.; methodology, M.N.K. and L.G.V.; investigation, M.N.K. and L.G.V.; resources, M.N.K. and L.G.V.; writing—original draft preparation, M.N.K. and L.G.V.; writing—review and editing, M.N.K. and L.G.V.; validation, M.N.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Bulgarian National Science Fund under the Project KP-06-N 62/3 “Numerical methods for inverse problems in evolutionary differential equations with applications to mathematical finance, heat-mass transfer, honeybee population, and environmental pollution”, 2022.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

The authors would like to give special thanks to the anonymous reviewers whose valuable comments and suggestions have significantly improved the quality of this paper.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Chakib, A.; Johri, M.; Nachaoui, A.; Nachaoui, M. On a numerical approxiamtion of highly non-linear parabolic inverse problem in hydrology. Ann. Univ. Craiova, Math. Comput. Sci. Ser. 2015, 42, 192–201. [Google Scholar]
  2. Dostert, P.; Efendiev, Y.; Mohanty, B. Efficient uncertainty quantification techniques in inverse problems for Richards’ equation using coarse-scale simulation models. Adv. Water Resour. 2009, 32, 329–339. [Google Scholar] [CrossRef]
  3. Furtado, I.C.; Bodmann, B.E.J.; Vilhena, M.T. On the construction of a functional solution method for the infiltration in porous media problems. Phys. A Stat. Mech. Its Appl. 2016, 450, 18–29. [Google Scholar] [CrossRef]
  4. Koleva, M.N.; Vulkov, L.G. Weighted time-semidiscretization quasilinearization method for solving Richards’ equation. Lect. Notes Comput. Sci. 2020, 11958, 123–130. [Google Scholar]
  5. Popova, Z.; Crevoisier, D.; Mailhol, J.; Ruelle, P. Assessment and simulation of water and nitrogen transfer under furrow irrigation: Application of hydrus 2D model to simulate nitrogen transfer. In Proceedings of the ICID 22nd European Regional Conference 2007, Pavia, Italy, 2–7 September 2007. [Google Scholar] [CrossRef]
  6. Romashchenko, M.I.; Bohaienko, V.O.; Matiash, T.V.; Kovalchuk, V.P.; Krucheniuk, A.V. Numerical simulation of irrigation scheduling using fractional Richards equation. Irrig. Sci. 2021, 39, 385–396. [Google Scholar] [CrossRef]
  7. Sun, N.-Z. Inverse Problems in Groundwater Modeling; Springer: Dordrecht, The Netherlands, 1999. [Google Scholar]
  8. Vocciante, M.; Reverberi, A.P.; Dovì, V.G. Approximate solutionof the inverse Richards’ problem. Appl. Math. Model. 2016, 40, 5364–5376. [Google Scholar] [CrossRef]
  9. Zadeh, K.S. A mass-conservative switching algorithm for modeling fluid flow in variably saturated porous media. J. Comput. Phys. 2011, 230, 664–679. [Google Scholar] [CrossRef]
  10. Richards, L.A. Capillary conduction of liquids through porous mediums. Physics 1931, 1, 318–333. [Google Scholar] [CrossRef]
  11. Basha, H.A. Multidimensional linearized nonsteady infiltration with prescribed boundary conditions at the soil surface. Water Resour. Res. 1999, 35, 75–93. [Google Scholar] [CrossRef]
  12. Farthing, M.W.; Ogden, F.L. Numerical solution of Richards’ equation: A review of advances and challenges. Soil Sci. Soc. Am. J. 2017, 81, 1257–1269. [Google Scholar] [CrossRef]
  13. Misiats, O.; Lipnikov, K. Second-order accurate monotone finite volume scheme for Richards’ equation. J. Comput. Phys. 2013, 239, 123–137. [Google Scholar] [CrossRef]
  14. Rundell, W.; Yin, H.-M. A parabolic inverse problem with an unknown boundary condition. J. Differ. Equations 1990, 86, 234–242. [Google Scholar] [CrossRef]
  15. Gray, W.G.; Hassanizadeh, S. Paradoxes and realities in unsaturated flow theory. Water Resour. Res. 1991, 27, 1847–1854. [Google Scholar] [CrossRef]
  16. Miller, C.T.; Dawson, C.N.; Farthing, M.W.; Hou, T.Y.; Huang, J.F.; Kees, C.E.; Kelley, C.T.; Langtangen, H.P. Numerical simulation of water resources problems: Models, methods, and trends. Adv. Water Resour. 2013, 51, 405–437. [Google Scholar] [CrossRef]
  17. Zha, Y.; Yang, J.; Yin, L.; Zhang, Y.; Zeng, W.; Shi, L. A modified Picard iteration scheme for overcoming numerical difficulties of simulating infiltration into dry soil. J. Hydrol. 2017, 551, 56–69. [Google Scholar] [CrossRef]
  18. Celia, M.; Boulout, F.; Zarba, R.L. A general mass-conservativ numerical solution for the unsaturated flow equation. Water Resour. Res. 1990, 26, 1483–1496. [Google Scholar] [CrossRef]
  19. Dolejší, V.; Kurazb, M.; Solin, P. Adaptive higher-order space-time discontinuous Galerkin method for the computer simulation of variably-saturated porous media flows. Appl. Math. Model. 2019, 72, 276–305. [Google Scholar] [CrossRef]
  20. Casulli, V.; Zanolli, P. A nested Newton-type algorithm for finite volume methods solving Richards’ equation in mixed form. SIAM J. Sci. Comput. 2010, 32, 2255–2273. [Google Scholar] [CrossRef]
  21. Fuentes, S.; Trejo-Alonso, J.; Quevedo, A.; Fuentes, C.; Chavez, C. Modeling soil water redistribution under gravity irrigation with the Richards equation. Mathematics 2020, 8, 1581. [Google Scholar] [CrossRef]
  22. Koleva, M.N.; Vulkov, L.G. Fitted finite volume method for unsaturated flow parabolic problems with space degeneration. In Large-Scale Scientific Computing; Lirkov, I., Margenov, S., Eds.; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2022; Volume 13127, pp. 524–532. [Google Scholar]
  23. Dussaillant, A.R.; Wu, C.H.; Potter, K.W. Richards Equation Model of a Rain Garden. J. Hydrol. Eng. 2004, 9, 219–225. [Google Scholar] [CrossRef]
  24. Ni, J.J.; Leung, A.K.; Ng, C.W.W.; Shao, W. Modelling hydro-mechanical reinforcements of plants to slope stability. Comput. Geotech. 2018, 95, 99–109. [Google Scholar] [CrossRef]
  25. Berardi, M.; Difonzo, F.V.; Guglielmi, R. A preliminary model for optimal control of moisture content in unsaturated soils. Comput Geosci. 2023, 27, 1133–1144. [Google Scholar] [CrossRef]
  26. de O. Milfont, M.; Rocha, E.E.M.; Lima, A.O.N.; Freitas, B.M. Higher soybean production using honeybee and wild pollinators, a sustainable alternative to pesticides and autopollination. Environ. Chem. Lett. 2013, 11, 335–341. [Google Scholar] [CrossRef]
  27. Beck, J.V.; Arnold, K.J. Parameter Estimation in Engineering and Science; Wiley: New York, NY, USA, 1977. [Google Scholar]
  28. Bitterlich, S.; Knabner, P. An efficient method for solving an inverce problem for Richards equation. J. Comput. Appl. Math. 2002, 147, 153–173. [Google Scholar] [CrossRef]
  29. Constales, D.; Kačur, J. On the solution of some inverse problems in porous media flow. Acta Math. Univ. Comen. 2001, LXX, 1–13. [Google Scholar]
  30. Lesnic, D. Inverse Problems with Applications in Science and Engineering; CRC Press: Abingdon, UK, 2021; p. 349. [Google Scholar]
  31. Marchuk, G.I.; Agoshkov, P.V.; Shutyaev, I.V. Adjoint Equations and Perturbation Algorithms in Nonlinear Problems; CRC Press: New York, NY, USA, 1996. [Google Scholar]
  32. Mao, D.; Yeh, T.-C.J.; Wan, L.; Hsu, K.-C.; Lee, C.-H.; Wen, J.-C. Necessary conditions for inverse modeling of flow through variably saturated porous media. Adv. Water Resour. 2013, 52, 50–61. [Google Scholar] [CrossRef]
  33. Samarskii, A.A.; Vabishchevich, P.N. Numerical Methods for Solving Inverse Problems in Mathematical Physics; de Gruyter: Berlin, Germany, 2007; p. 438. [Google Scholar]
  34. Duchateau, P. An inverse problem for the hydraulic properties of porous media. SIAM J. Math. Anal. 1997, 28, 611–632. [Google Scholar] [CrossRef]
  35. Koleva, M.N.; Vulkov, L.G. Numerical material identification of subsurface flow in unsaturated soil. AIP Conf. Proc. 2021, 2333, 090005. [Google Scholar]
  36. Sonkar, I.; Kotnoor, H.P.; Sen, S. Estimation of root water uptake and soil hydraulic parameters from root zone soil moisture and deep percolation. Agric. Water Manag. 2019, 222, 38–47. [Google Scholar] [CrossRef]
  37. Sonkar, I.; Sudesan, S.; Suryanarayana Rao Kotnoor, H.P. Compensated non-linear root water uptake model and identification of soil hydraulic and root water uptake parameters. Irrig. Drain. 2022, 71, 157–174. [Google Scholar] [CrossRef]
  38. Chen, S.; Mao, X.; Wang, C. A Modified Green-Ampt model and parameter determination for water infiltration in fine-textured soil with coarse interlayer. Water 2019, 11, 787. [Google Scholar] [CrossRef]
  39. Bouchemella, S.; Ichola, I.A.; Séridi, A. Estimation of the empirical model parameters of unsaturated soils. E3S Web Conf. 2016, 9, 16007. [Google Scholar] [CrossRef]
  40. Nitcheva, O. Hydrology models approach to estimation of the groundwater recharge: Case study in the Bulgarian Danube watershed. Environ. Earth Sci. J. 2018, 77, 464. [Google Scholar] [CrossRef]
  41. Cui, M.; Yang, K.; Xu, X.; Wang, S.; Gao, X. A modified Levenberg-Marquardt algorithm for simultaneous estimation of multi-parameters of boundary heat flux by solving transient nonlinear inverse heat conduction problems. Int. J. Heat Mass Transf. 2016, 97, 908–916. [Google Scholar] [CrossRef]
  42. Koleva, M.N.; Vulkov, L.G. Numerical identification of external boundary conditions for time fractional parabolic equations on disjoint domains. Fractal Fract. 2023, 7, 326. [Google Scholar] [CrossRef]
  43. Ngnepieba, P.; Desmond, S.; Le Dimet, F.-X. The Newton method in problems of variational data assimilation: Application to an infiltration model. Int. J. Pure Appl. Math. 2011, 69, 15–32. [Google Scholar]
  44. Gardner, W.R. Some steady-state solutions of the unsaturated moisture flow equation with application to evaporation from a water table. Soil Sci. 1958, 85, 228–232. [Google Scholar] [CrossRef]
  45. van Genuchten, M. A closed-form equation for predicting the hydraulic conductivity of unsaturated soils. Soil Sci. Soc. Am. J. 1980, 44, 892–898. [Google Scholar] [CrossRef]
  46. Otto, F. L1-contraction and uniquiness for quasilinear elliptic-parabolic equation. J. Differ. Equations 1996, 131, 20–38. [Google Scholar] [CrossRef]
  47. Evans, L.C. Partial Differential Equations, 2nd ed.; AMS: Providence, RI, USA, 2010. [Google Scholar]
  48. Gol’dman, N.L. Boundary value problems for a quasilinear parabolic equation with an unknown coefficient. J. Differ. Equations 2019, 266, 4925–4952. [Google Scholar] [CrossRef]
  49. Bellman, R.; Kalaba, R. Quasilinearization and Nonlinear Boundary-Value Problems; Elsevier Publishing Company: New York, NY, USA, 1965. [Google Scholar]
  50. Koleva, M.N.; Vulkov, L.G. Two-grid quasilinearization approach to ODEs with applications to model problems in physics and mechanics. Comput. Phys. Commun. 2010, 181, 663–670. [Google Scholar] [CrossRef]
Figure 1. Exponential model. Absolute difference between the numerical solution of the inverse problem ψ i n v N and numerical solution of the direct problem ψ d N at final time for I = 80 , z * = 0.25 (left) and z * = 0.75 (right), Example 1.
Figure 1. Exponential model. Absolute difference between the numerical solution of the inverse problem ψ i n v N and numerical solution of the direct problem ψ d N at final time for I = 80 , z * = 0.25 (left) and z * = 0.75 (right), Example 1.
Mathematics 12 00299 g001
Figure 2. Exponential model. Exact and recovered function ψ b for I = 80 , z * = 0.25 (left) and z * = 0.75 (right), Example 1.
Figure 2. Exponential model. Exact and recovered function ψ b for I = 80 , z * = 0.25 (left) and z * = 0.75 (right), Example 1.
Mathematics 12 00299 g002
Figure 3. Genuchten model. Numerical solution of the direct and inverse problems (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 1.
Figure 3. Genuchten model. Numerical solution of the direct and inverse problems (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 1.
Mathematics 12 00299 g003
Figure 4. Genuchten model. Exact and restored left boundary (left) and the corresponding absolute difference (right) for I = 80 , z * = 0.5 , Example 1.
Figure 4. Genuchten model. Exact and restored left boundary (left) and the corresponding absolute difference (right) for I = 80 , z * = 0.5 , Example 1.
Mathematics 12 00299 g004
Figure 5. Exponential model. Numerical solution of the direct and inverse problems, ε = 0.01 (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 2.
Figure 5. Exponential model. Numerical solution of the direct and inverse problems, ε = 0.01 (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 2.
Mathematics 12 00299 g005
Figure 6. Exponential model. Numerical solution of the direct and inverse problems, ε = 0.05 (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 2.
Figure 6. Exponential model. Numerical solution of the direct and inverse problems, ε = 0.05 (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 2.
Mathematics 12 00299 g006
Figure 7. Exponential model. Exact and restored left boundary for ε = 0.01 (left) and ε = 0.05 (right), I = 80 , z * = 0.5 , Example 2.
Figure 7. Exponential model. Exact and restored left boundary for ε = 0.01 (left) and ε = 0.05 (right), I = 80 , z * = 0.5 , Example 2.
Mathematics 12 00299 g007
Figure 8. Genuchten model. Numerical solution of the direct and inverse problems, ε = 0.01 (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 2.
Figure 8. Genuchten model. Numerical solution of the direct and inverse problems, ε = 0.01 (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 2.
Mathematics 12 00299 g008
Figure 9. Genuchten model. Numerical solution of the direct and inverse problems, ε = 0.05 (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 2.
Figure 9. Genuchten model. Numerical solution of the direct and inverse problems, ε = 0.05 (left) and the corresponding absolute difference (right) at final time for I = 80 , z * = 0.5 , Example 2.
Mathematics 12 00299 g009
Figure 10. Genuchten model. Exact and restored left boundary for ε = 0.01 (left) and ε = 0.05 (right), I = 80 , z * = 0.5 , Example 2.
Figure 10. Genuchten model. Exact and restored left boundary for ε = 0.01 (left) and ε = 0.05 (right), I = 80 , z * = 0.5 , Example 2.
Mathematics 12 00299 g010
Figure 11. Exponential model. Absolute difference between recovered solution and numerical solution of the direct problem at final time (left) and recovered boundary and exact boundary (right), I = 80 , x * = 0.5 , z * = 0.5 , Example 3.
Figure 11. Exponential model. Absolute difference between recovered solution and numerical solution of the direct problem at final time (left) and recovered boundary and exact boundary (right), I = 80 , x * = 0.5 , z * = 0.5 , Example 3.
Mathematics 12 00299 g011
Figure 12. Genuchten model. Recovered solution (left) and absolute difference between this solution and numerical solution of the direct problem (right), I = 80 , x * = 0.5 , z * = 0.5 , Example 3.
Figure 12. Genuchten model. Recovered solution (left) and absolute difference between this solution and numerical solution of the direct problem (right), I = 80 , x * = 0.5 , z * = 0.5 , Example 3.
Mathematics 12 00299 g012
Figure 13. Genuchten model. Numerical solution of the direct problem (left) and recovered solution (right) at final time, I = 80 , x * = 0.5 , z * = 0.5 , ε = 0.03 , Example 4.
Figure 13. Genuchten model. Numerical solution of the direct problem (left) and recovered solution (right) at final time, I = 80 , x * = 0.5 , z * = 0.5 , ε = 0.03 , Example 4.
Mathematics 12 00299 g013
Table 1. Errors and order of convergence of the solution of Algorithm IP-1D, exponential problem with Dirichlet right boundary condition, Example 1.
Table 1. Errors and order of convergence of the solution of Algorithm IP-1D, exponential problem with Dirichlet right boundary condition, Example 1.
z * = 0.25 z * = 0.75
I E CR E CR k aver
801.57827 × 10 4 1.57827 × 10 4 2
1603.94728 × 10 5 1.99943.94728 × 10 5 1.99942
3209.86805 × 10 6 2.00009.86805 × 10 6 2.00002
6402.46700 × 10 6 2.00002.46700 × 10 6 2.00002
12806.16751 × 10 7 2.00006.16751 × 10 7 2.00002
Table 2. Errors and order of convergence of the solution of Algorithm IP-1D, exponential problem with Neumann right boundary condition, Example 1.
Table 2. Errors and order of convergence of the solution of Algorithm IP-1D, exponential problem with Neumann right boundary condition, Example 1.
z * = 0.25 z * = 0.75
I E CR E CR k aver
804.40797 × 10 4 4.40797 × 10 4 2
1601.16875 × 10 4 1.91511.16875 × 10 4 1.91512
3203.00400 × 10 5 1.96003.00400 × 10 5 1.96002
6407.61233 × 10 6 1.98057.61233 × 10 6 1.98052
12801.91586 × 10 6 1.99031.91586 × 10 6 1.99032
Table 3. Errors and order of convergence of the solution of the exponential problem, computed by Algorithm IP-2D, Example 3.
Table 3. Errors and order of convergence of the solution of the exponential problem, computed by Algorithm IP-2D, Example 3.
I E CR k aver CPU
201.41242 × 10 3 2.7271.078
405.98987 × 10 4 1.23762.3812.124
801.76721 × 10 4 1.76101.9519.296
1604.42133 × 10 5 1.99891.97549.897
3201.10502 × 10 5 2.00041.987489.527
6402.76211 × 10 6 2.00021.9933866.782
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Koleva, M.N.; Vulkov, L.G. Numerical Identification of Boundary Conditions for Richards’ Equation. Mathematics 2024, 12, 299. https://doi.org/10.3390/math12020299

AMA Style

Koleva MN, Vulkov LG. Numerical Identification of Boundary Conditions for Richards’ Equation. Mathematics. 2024; 12(2):299. https://doi.org/10.3390/math12020299

Chicago/Turabian Style

Koleva, Miglena N., and Lubin G. Vulkov. 2024. "Numerical Identification of Boundary Conditions for Richards’ Equation" Mathematics 12, no. 2: 299. https://doi.org/10.3390/math12020299

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop