Modeling Transient Flows in Heterogeneous Layered Porous Media Using the Space–Time Trefftz Method

In this study, we developed a novel boundary-type meshless approach for dealing with two-dimensional transient flows in heterogeneous layered porous media. The novelty of the proposed method is that we derived the Trefftz space–time basis function for the two-dimensional diffusion equation in layered porous media in the space–time domain. The continuity conditions at the interface of the subdomains were satisfied in terms of the domain decomposition method. Numerical solutions were approximated based on the superposition principle utilizing the space–time basis functions of the governing equation. Using the space–time collocation scheme, the numerical solutions of the problem were solved with boundary and initial data assigned on the space–time boundaries, which combined spatial and temporal discretizations in the space–time manifold. Accordingly, the transient flows through the heterogeneous layered porous media in the space–time domain could be solved without using a time-marching scheme. Numerical examples and a convergence analysis were carried out to validate the accuracy and the stability of the method. The results illustrate that an excellent agreement with the analytical solution was obtained. Additionally, the proposed method was relatively simple because we only needed to deal with the boundary data, even for the problems in the heterogeneous layered porous media. Finally, when compared with the conventional time-marching scheme, highly accurate solutions were obtained and the error accumulation from the time-marching scheme was avoided.

A variety of mesh-generated techniques, such as the boundary element method [13], finite element method [14,15], finite volume method [16,17], and finite difference method [18,19], have been proposed to analyze heterogeneous layered porous media. In contrast with conventional mesh-generated techniques, meshfree approaches have attracted much attention in recent years because of their characteristics of simplicity, meshfree, and the capability to deal with engineering problems with complex geometry [20][21][22][23][24][25][26]. Of the wide variety of meshfree approaches, the Trefftz method is one of the widespread boundary-type meshless methods for dealing with steady-state Laplace-type problems, where computed results are approximated as a series of basis functions, completely satisfying the governing Laplace-type equations [27][28][29].
A comprehensive comparison of the collocation Trefftz method was proposed by Li et al. [30]. It has been concluded that the collocation Trefftz method is the simplest algorithm and provides the most accurate approximations with an optimal numerical stability.
As the system of linear equations obtained from the collocation Trefftz method is ill-posed, the application of the collocation Trefftz method is less widespread [31]. Prior studies have demonstrated that applications of the collocation Trefftz method may be limited to linear and stationary problems. Recently, a study on modeling the subsurface flow problems with transient moving boundaries utilizing the Trefftz method was developed [12]. Moreover, the space-time collocation Trefftz method was developed to deal with the transient groundwater inverse problems [24]. However, the engineering applications of the Trefftz method with complete Trefftz functions for dealing with transient fluid flow through heterogeneous porous media have been less studied, which is what initiated this research. The pore network model and the self-organized percolation (SOP) model may perform well compared with computational fluid dynamics modeling and the lattice Boltzmann method [32,33]. In contrast with other numerical methods, we developed a meshless method using the Trefftz space-time basis function. The proposed method is rooted in the Trefftz method, which is more like the semi-analytical method. Consequently, the proposed method is advantageous for dealing with problems with complex geometry because of its characteristics of simplicity and being meshfree. The proposed method may also be used to integrate regional-scale hydrological models [34].
In this study, a novel meshless approach for modeling transient flows in heterogeneous layered porous media is developed. In contrast to the conventional meshless method, the proposed approach is categorized into the boundary-type meshless method, such that the collocation points are placed only on the boundaries of the domain. Furthermore, we developed a boundary-type meshless method combining the conventional Trefftz method with the space-time collocation scheme. The proposed method is advantageous for dealing with engineering problems with a complex geometry because of its characteristics of simplicity and being meshfree. Based on the superposition principle, numerical approximations were approximated using the space-time basis functions of the governing equation. The numerical approximations of the problem were solved with boundary and initial data assigned on the space-time boundaries, which combined spatial and temporal discretizations in the space-time domain. Accordingly, the transient flows through the heterogeneous layered porous media in the space-time domain are solved without adopting the time-marching technique. The remainder of this research is organized as follows: the methodology is introduced in Section 2. In Section 3, a convergence analysis is carried out to investigate the accuracy and the stability of the proposed method. Several numerical examples are presented in Section 4. Finally, specific discussion of this research is provided in Section 5.

Governomg Equations
The two-dimensional diffusion equation used to describe transient flows is expressed as follows: where h is the total head, r is the radius, t is the time, θ is the polar angle, S s is the volumetric specific storage, k is the hydraulic conductivity, and Ω t is the space-time domain. For modeling transient flows in a porous media, the initial and boundary conditions are required, as follows: where H 0 is the initial total head, H D is the Dirichlet boundary data, and H N is the Neumann boundary data.

The Space-Time Trefftz Method
The space-time Trefftz method utilizing Trefftz functions originates from the Trefftz method [12,21,24]. For a simply connected domain, one usually locates the source point in the space-time domain; the number of source points is only one for the proposed space-time Trefftz method. The approximation of Equation (1) can be expressed as follows: where A pq is a unknown coefficient, T pq (r, θ, t) is the basis functions [24], and m and s denote the order of the basis functions. Considering the positive basis functions, we have the following: T pq (r, θ, t) = r q cos(qθ), r q sin(qθ), e −p 2 Dt J 0 pr),e −p 2 Dt J q (pr) cos(qθ), e −p 2 Dt J q (pr) sin(qθ) , where D is the hydraulic diffusivity expressed as D = k/S S , J 0 is the Bessel function of the first kind, and J q is the Bessel function of the first kind of the q order. Considering transient flows in heterogeneous layered porous media, we may write the following: where g ranges from 1 to m; D 1 is the hydraulic diffusivity of first subdomain; and i denotes the ith subdomain, which means that the proposed method is applicable to transient flows in porous media including many layers. Inserting Equation (7) into Equation (6) obtains the following: Applying the Dirichlet boundary condition obtains the following: where A 1 , A 2q , · · · , A 6gq denote arbitrary constants that have to be evaluated,r is the dimensionless radius described asr = r/R 0 , R 0 is the characteristic length, andt is the dimensionless time written ast = tD 1 /R 2 0 . Applying the Neumann boundary condition obtains the following: where n is the outward normal direction. The notation in Equation (10) is listed in Table 1.

The Continuity Conditions of the Interface
To model transient flows in heterogeneous layered porous media, the domain decomposition method (DDM) was utilized [35]. The continuity of the head and the flux conservation at the interface between two layered porous media were considered. T 2 q R 0 r q−1 cos(qθ) cos θ +r q−1 sin(qθ) sin θ n x + r q−1 cos(qθ) sin θ −r q−1 sin(qθ) cos θ n y T 3 q R 0 r q−1 sin(qθ) cos θ −r q−1 cos(qθ) sin θ n x + r q−1 sin(qθ) sin θ +r q−1 cos(qθ) cos θ n y An irregular domain, which was split into two subdomains, Ω 1 and Ω 2 , as displayed in Figure 1a, was considered. To model transient flows in heterogeneous layered porous media, the irregular domain was divided into several sub-boundaries. The sub-boundaries at the interface must satisfy the following boundary conditions: where Γ 12 and Γ 22 are sub-boundaries at the interface shown in Figure 1a. Applying the boundary data on boundary points, the following simultaneous linear equations are obtained as follows: 1r 1 cos(θ 1 )r 1 2 cos(2θ 1 ) · · · J q ( D 1 D i gr 1 ) sin(qθ 1 )e −g 2t 1 1r 2 cos(θ 2 )r 2 2 cos(2θ 2 ) · · · J q ( D 1 where A Ω 1 and A Ω 2 are the A w matrix depicted in Equation (13) for Ω 1 and Ω 2 , respectively.  By solving Equation (12), we can obtain two sets of unknown coefficients, c Ω 1 and c Ω 2 , for subdomains Ω 1 and Ω 2 , respectively. The computed head at the inner points can then be computed by Equation (5), utilizing A Ω 1 and B Ω 1 for Ω 1 , and A Ω 2 and B Ω 2 for Ω 2 . In this study, the commercial program MATLAB backslash operator was utilized to solve Equation (12). The schematic diagram for modeling the transient flows in the heterogeneous layered porous media is displayed in Figure 2.
The continuity conditions at the interface of the subdomains are satisfied in terms of the DDM, such that the proposed method is capable of dealing with transient flows in heterogeneous layered porous media. Numerical solutions are approximated based on the superposition theorem using the space-time basis functions of the governing equation. Using the space-time collocation scheme, the numerical solutions of the problem are solved with boundary and initial data assigned on the space-time boundaries, as shown in Figure 1b. The spatial and temporal discretizations are then combined in the space-time domain. Accordingly, the transient flows through the heterogeneous layered porous media in the space-time domain can be solved without using the time-marching scheme.

Convergence Analysis of Transient Flows in Heterogeneous Layered Porous Media
In this section, convergence analysis of the transient flows in heterogeneous layered porous media is carried out. To illustrate the accuracy of the approximations, the error measures are defined as is the approximate solution, RMSE denotes the root mean square error, MAE denotes the maximum absolute error, and I N is the number of scattered inner points. Here, the scattered inner points were uniformly distributed in the space-time domain.
Transient flows in two-layered porous media satisfy the diffusion equation depicted in Equation (1) in two dimensions over an irregular domain. The geometry for this problem is The initial data for subdomains 1  and 2  are imposed as follows:

End
Step 2 -Apply the subdomain initial and boundary conditions using Equations (13), (14) and (15) Step 3 -Solve the heterogeneous layered porous media problems using Equations (12) and (9) Step 4 -Compute the absolute error of the computed results Step 1 -Collocate the source and boundary points

Convergence Analysis of Transient Flows in Heterogeneous Layered Porous Media
In this section, convergence analysis of the transient flows in heterogeneous layered porous media is carried out. To illustrate the accuracy of the approximations, the error measures are defined as where is the approximate solution, RMSE denotes the root mean square error, MAE denotes the maximum absolute error, and N I is the number of scattered inner points. Here, the scattered inner points were uniformly distributed in the space-time domain. Transient flows in two-layered porous media satisfy the diffusion equation depicted in Equation (1) in two dimensions over an irregular domain. The geometry for this problem is The initial data for subdomains Ω 1 and Ω 2 are imposed as follows: where h 1 (r, θ, t = 0) and h 2 (r, θ, t = 0) are the initial data for subdomains Ω 1 and Ω 2 , respectively. D 1 and D 2 are the hydraulic diffusivity in layer 1 and 2, respectively. The boundary conditions for subdomain Ω 1 and Ω 2 are prescribed based on the following functions: The exact solution is the function as follows: where D i is the hydraulic diffusivity of the ith subdomain. The hydraulic diffusivity and hydraulic conductivity in two subdomains were set to be D 1 = 1 m 2 h −1 and D 2 = 0.25 m 2 h −1 , and k 1 = 2 m 1 h −1 and k 2 = 1 m 1 h −1 . The final elapsed time is 1 h. The boundary points are collocated on the boundary, as illustrated in Figure 1b. For simulating transient flows in two-layered porous media, DDM is utilized [35]. The domain boundary can be divided into several subdomains. The Dirichlet boundary conditions are based on Equations (21) and (22). The subboundaries at the interface, including Γ 12 and Γ 22 , must satisfy the continuity of flows and the flux conservation based on Equation (11). Figure 3a shows the error versus the order of the basis functions. It appears that approximations with a high accuracy are acquired then the order is superior to 14. Additionally, promising results may be obtained when the order of the basis function ranges from 14 to 26. It seems that the optimal order may depend on the nature of the problems. The relationship between the absoluter error and the number of boundary points is displayed in Figure 3b. The results obtained illustrate that approximations with a high accuracy are achieved when the number of boundary points is greater than 1800. From the results of this convergence analysis, the number of the boundary points and the order of the basis functions were determined to be 2000 and 15, respectively.
are the initial data for subdomains 1  and 2  , respectively. 1 D and 2 D are the hydraulic diffusivity in layer 1 and 2, respectively. The boundary conditions for subdomain 1  and 2  are prescribed based on the following functions: The exact solution is the function as follows: where i D is the hydraulic diffusivity of the i th subdomain. The hydraulic diffusivity and hydraulic conductivity in two subdomains were set to be . The final elapsed time is 1 h. The boundary points are collocated on the boundary, as illustrated in Figure 1b. For simulating transient flows in two-layered porous media, DDM is utilized [35]. The domain boundary can be divided into several subdomains.
The Dirichlet boundary conditions are based on Equations (21) and (22). The subboundaries at the interface, including 12  and 22  , must satisfy the continuity of flows and the flux conservation based on Equation (11). Figure 3a shows the error versus the order of the basis functions. It appears that approximations with a high accuracy are acquired then the order is superior to 14. Additionally, promising results may be obtained when the order of the basis function ranges from 14 to 26. It seems that the optimal order may depend on the nature of the problems. The relationship between the absoluter error and the number of boundary points is displayed in Figure 3b. The results obtained illustrate that approximations with a high accuracy are achieved when the number of boundary points is greater than 1800. From the results of this convergence analysis, the number of the boundary points and the order of the basis functions were determined to be 2000 and 15, respectively. (a)

Transient Flows in Two-Layered Porous Media
Transient flows in two-layered porous media satisfy the diffusion equation depicted in Equation (1) in two dimensions over an irregular domain. The geometry for this problem, as shown in Figure 4a, is The initial data for subdomains 1  and 2  are imposed as follows.
The boundary conditions for subdomains 1  and 2  are prescribed based on the following functions.
The exact solution is the following function:

Transient Flows in Two-Layered Porous Media
Transient flows in two-layered porous media satisfy the diffusion equation depicted in Equation (1) in two dimensions over an irregular domain. The geometry for this problem, as shown in Figure 4a, is Appl. Sci. 2021, 11, x FOR PEER REVIEW 10 of 24 In this example, the hydraulic diffusivity and hydraulic conductivity in the two subdomains were set to be  Figure 4b. For simulating transient flows in two-layered porous media, DDM is utilized [35]. The domain boundary can then be split into two subdomains. The Dirichlet boundary conditions are prescribed based on Equations (27) and (28). Based on Equation (11), the sub-boundaries at the interface, including 12  and 22  , must satisfy the continuity of flows and the flux conservation.
To compare the accuracy of our method with the analytical solution, the profiles of the results at different times are selected, as presented in Figure 5. Figure 5 shows that the computed results adopting our approach are completely consistent with the analytical solution.
To examine the accuracy of our method, the absolute error of the approximate solutions with the exact solution is evaluated. Figure 6 displays the absolute error at different simulation times. From Figure 6, the MAE is in the order of 10 −10 , which indicates that our approach may acquire results with a high accuracy.
(a)   The initial data for subdomains Ω 1 and Ω 2 are imposed as follows.
The boundary conditions for subdomains Ω 1 and Ω 2 are prescribed based on the following functions. h 1 (r, θ, t) = e 2D 1 t sin h(r sin θ)r cos θ, (r, θ, t) ∈ ∂Ω 1 (27) h 2 (r, θ, t) = e 2D 1 t sin h( D 1 D 2 r sin θ)r cos θ, (r, θ, t) ∈ ∂Ω 2 The exact solution is the following function: In this example, the hydraulic diffusivity and hydraulic conductivity in the two subdomains were set to be D 1 = 1 9 m 2 h −1 and D 2 = 1 m 2 h −1 , and k 1 = 2 m 1 h −1 and k 2 = 6 m 1 h −1 . The final elapsed time is 1 h. The order of the basis functions is 17. There are 2026 boundary points for this domain. This example involves two-dimensional space and one-dimensional time. The space-time domain is therefore transformed into a threedimensional object domain, as shown in Figure 4b. The boundary points are placed on the boundary, as illustrated in Figure 4b. For simulating transient flows in two-layered porous media, DDM is utilized [35]. The domain boundary can then be split into two subdomains. The Dirichlet boundary conditions are prescribed based on Equations (27) and (28). Based on Equation (11), the sub-boundaries at the interface, including Γ 12 and Γ 22 , must satisfy the continuity of flows and the flux conservation.
To compare the accuracy of our method with the analytical solution, the profiles of the results at different times are selected, as presented in Figure 5. Figure 5 shows that the computed results adopting our approach are completely consistent with the analytical solution.
(b)  To examine the accuracy of our method, the absolute error of the approximate solutions with the exact solution is evaluated. Figure 6 displays the absolute error at different simulation times. From Figure 6, the MAE is in the order of 10 −10 , which indicates that our approach may acquire results with a high accuracy.
To show the accuracy of the computed result from the proposed method and that from conventional mesh-generated techniques, we conducted a comparison example where transient flows in two-layered porous media satisfy the diffusion equation depicted in Equation (1) in two dimensions over a rectangular domain. The length and the width of the space domain are 4 m. The initial data for subdomains Ω 1 and Ω 2 are imposed as Equations (25) and (26). The boundary conditions for subdomains Ω 1 and Ω 2 are prescribed based on Equations (27) and (28). The exact solution for solving this example is as Equation (29).  To show the accuracy of the computed result from the proposed method and that from conventional mesh-generated techniques, we conducted a comparison example where transient flows in two-layered porous media satisfy the diffusion equation depicted in Equation (1) in two dimensions over a rectangular domain. The length and the width of the space domain are 4 m. The initial data for subdomains 1  and 2  are imposed as Equations (25) and (26). The boundary conditions for subdomains 1  and 2  are prescribed based on Equations (27) and (28). The exact solution for solving this example is as Equation (29).
In this example, the hydraulic diffusivity and hydraulic conductivity in the two subdomains were set to be This example was solved using both the finite difference method (FDM) and the proposed method. For the FDM analysis, the spatial and temporal discretizations for the problem must be considered separately. The central difference approximation was adopted for the spatial discretization, and the implicit scheme was adopted for time discretization. For FDM, we considered each length of Δx along the x axis, each length of Δy along the y axis, and each length of Δt along the t axis to be 0.1 m, 0.1 m, and 0.001 h, respectively. We then compared the approximations of our method with those of the This example was solved using both the finite difference method (FDM) and the proposed method. For the FDM analysis, the spatial and temporal discretizations for the problem must be considered separately. The central difference approximation was adopted for the spatial discretization, and the implicit scheme was adopted for time discretization. For FDM, we considered each length of ∆x along the x axis, each length of ∆y along the y axis, and each length of ∆t along the t axis to be 0.1 m, 0.1 m, and 0.001 h, respectively. We then compared the approximations of our method with those of the FDM. Figure 7 presents the absolute error versus the simulation time. From Figure 7, the magnitude of the absolute error increases with the simulation time in the FDM. However, our approach may avoid error propagation. The results demonstrate that highly accurate numerical solutions can be obtained using our approach. Moreover, the accuracy of the error is of the order of 10 −7 to 10 −8 .

Transient Flows in Two-Layered Porous Media
Transient flows in two-layered porous media satisfy the diffusion equation depicted in Equation (1) in two dimensions over a rectangular domain, as depicted in Figure 8a. Two cases with different combinations of composite porous media are considered. The geometry for case I, as shown in Figure 8a, is The hydraulic diffusivity and hydraulic conductivity in the two subdomains were set to be . The initial condition is The boundary conditions are where a h is the total head for case I. The geometry for case II, as shown in Figure 8b, is

Transient Flows in Two-Layered Porous Media
Transient flows in two-layered porous media satisfy the diffusion equation depicted in Equation (1) in two dimensions over a rectangular domain, as depicted in Figure 8a. Two cases with different combinations of composite porous media are considered. The geometry for case I, as shown in Figure 8a, is  The hydraulic diffusivity and hydraulic conductivity in the two subdomains were set to be D 1 = 100 m 2 h −1 and D 2 = 10 m 2 h −1 , and k 1 = 100 mh −1 and k 2 = 10 mh −1 . The initial condition is h a (x, y, t = 0) = 10 m.
The boundary conditions are h a (−5, y, t) = 10 m, h a (5, y, t) = 4 m, where h a is the total head for case I. The geometry for case II, as shown in Figure 8b, is The hydraulic diffusivity and hydraulic conductivity in the two subdomains are set to be D 1 = 10 m 2 h −1 and D 2 = 100 m 2 h −1 , and k 1 = 10 mh −1 and k 2 = 100 mh −1 . The initial condition is The boundary conditions are where h b is the total head for case II. As this example may not have an exact solution to investigate the accuracy, we compare the approximations at the final time with the steady-state solution. The steady-state solutions for this two-layered porous media are prescribed based on the following equations: In case I and case II, the final time is 3 h. The order of the basis functions is 15. There exists 7200 boundary points for domain, as illustrated in Figure 9. For modeling transient flows in two-layered porous media, the DDM was utilized [35]. The domain boundary can then be divided into several subdomains. The Dirichlet boundary conditions are prescribed. Based on Equation (11), the sub-boundaries at the interface, including Γ 12 and Γ 22 , must satisfy the continuity of flows and the flux conservation.
The profiles of total head at the final time were selected to express the approximations, as shown in Figure 10. The approximations at the final time from our approach were further compared with the steady-state solution. It is found that the approximations utilizing our approach may agree well with the steady-state solutions. The absolute difference at the final time is depicted in Figure 11. The absolute difference for case I and case II is in the order of 10 −6 and 10 −4 , as given in Figure 11. Results demonstrate that our approach may obtain reasonable results for modeling transient flows in two-layered porous media.

Transient Flows in Four-Layered Porous Media
The last example is modeling of transient flows in four-layered porous media, as depicted in Figure 12. The diffusion equation depicted in Equation (1) in two dimensions over a rectangular domain is considered. The geometry for this example is defined as

Transient Flows in Four-Layered Porous Media
The last example is modeling of transient flows in four-layered porous media, as depicted in Figure 12. The diffusion equation depicted in Equation (1) in two dimensions over a rectangular domain is considered. The geometry for this example is defined as  The hydraulic diffusivity and hydraulic conductivity in the two subdomains are set to be D 1 = 4 m 2 h −1 , D 2 = 3 m 2 h −1 , D 3 = 1.5 m 2 h −1 , and D 4 = 1 m 2 h −1 , and k 1 = 4 mh −1 , k 2 = 3 mh −1 , k 3 = 1.5 mh −1 , and k 4 = 1 mh −1 . The initial condition is h(x, y, t = 0) = 5 m.
The boundary condition is As this example may not have exact solutions to investigate the accuracy, we compare the approximations at different simulation times with the numerical solutions using the FDM. In this example, the final elapsed time is 3 h. The order of the basis functions needs to be 20. There are 6400 boundary points that exist for each domain, as illustrated in Figure 13. For simulating transient flows in four-layered porous media, DDM is utilized [35]. The domain boundary can then be divided into several subdomains. The Dirichlet boundary conditions are prescribed. At the interface, the sub-boundaries, including Γ 12 , Γ 22 , Γ 13 , Γ 41 , Γ 23 , Γ 31 , Γ 32 , and Γ 42 , must satisfy the continuity of flows and the flux conservation based on the following equations:    The approximations at different simulation times from our approach are further compared with those of FDM. To apply FDM, discretization in the spatial and temporal domains must be considered. For the spatial discretization, the domain is divided into sections, and second derivatives of the diffusion equation for each grid point are approximated using central difference formulas. For the time discretization, the implicit scheme is adopted. For FDM, we consider each length of ∆x along the x axis, each length of ∆y along the y axis, and each length of ∆t along the t axis to be 0.225 m, 0.225 m, and 0.01 h, respectively. Then, we compare the approximations of our method with those of FDM.
The profiles of the total head at different simulation times are selected to express the approximations, as shown in Figure 14. From Figure 14, it is found that the approximations utilizing our approach may be consistent with the FDM results. The results illustrate that our approach may obtain reasonable results for modeling transient flows in four-layered porous media.

Discussion
This study is rooted in the Trefftz method and demonstrates a promising numerical solution for dealing with two-dimensional transient flows in heterogeneous layered porous media. The comparison of the proposed method with previous studies depicts the following advantages.
Various mesh-based numerical approaches have been utilized for dealing with the transient and heterogeneous groundwater flow equation. In contrast to conventional mesh-generated techniques, we developed the meshless method using the Trefftz spacetime basis function. The proposed method is advantageous for dealing with engineering problems with a complex geometry because of the characteristics of simplicity and being meshfree.
Contrary to the conventional meshless method, the proposed method is categorized into the boundary-type meshless method, such that the collocation points are only placed on the boundaries of the domain. Furthermore, the proposed method combines the conventional Trefftz method with the space-time collocation scheme, such that no inner points are required in the analysis and all collocation points needed to place the space-time boundaries are presented for the modeling of the two-dimensional transient flows in the heterogeneous layered porous media. As a result, both the initial and boundary data are regarded as boundary conditions on the space-time boundary, which is especially advantageous for an irregular domain shape.
Using the space-time collocation, the initial value problem for simulating transient flows in heterogeneous layered porous media is considered to be a problem of the inverse boundary value, where the time marching for the initial value problem can be avoided. Accordingly, the proposed method is advantageous for dealing with inverse problems as well.
On the other hand, the limitations of the proposed method may be raised, as we need to derive the Trefftz space-time basis function for the two-dimensional diffusion equation in layered porous media in the space-time domain, in which the Trefftz basis functions are obtained from the general solutions using the separation of variables. The solutions of the governing equation are then approximated numerically based on the superposition principle utilizing the space-time basis functions of the governing equation. Consequently, the proposed method is limited to the linear governing equation with accessible general solutions.

Conclusions
A novel meshless method for dealing with two-dimensional transient flows in heterogeneous layered porous media is presented in this article. The following key findings are given.
To deal with transient flows in heterogeneous layered porous media, the continuity conditions at the interface of the subdomains are satisfied in terms of the domain decomposition method. Numerical solutions are approximated based on the superposition principle adopting the space-time basis functions of the diffusion equation. Utilizing the space-time collocation scheme, numerical approximations are solved with boundary and initial data assigned on the space-time boundaries, which combine spatial and temporal discretizations in the space-time domain. The transient flows through heterogeneous layered porous media in the space-time domain may therefore be solved without using the time-marching scheme, which is the novelty of this study.
The results obtained show that an excellent agreement with the exact solution can be acquired. Additionally, the proposed approach may be relatively simple, because we only have to deal with the boundary data even with problems in heterogeneous layered porous media. Finally, compared with the conventional time-marching scheme, highly accurate solutions can be obtained and the error accumulation from the time-marching scheme can be avoided.