This paper presents tests and applications related to the Method of the Fundamental Solutions (MFS) for nonhomogeneous diffusion equations. The dual reciprocity method was applied to approximate the particular solution and different MSF were applied to solve the homogeneous equation. The computational accuracy for three different versions submitted to diverse geometries, initial, boundary and nonhomogeneous conditions is compared. The first version is the MFS, based on the fundamental solutions to the modified Helmholtz operator; the second and third versions are based on transient fundamental solutions proposed directly for the diffusion governing equation. This paper evaluates particularities for all methods proposed as the solution advances in time until steadystate solutions are reached. The developed computer codes are applied to several examples with the intention of demonstrating the methods’ effectiveness and applicability.
Keywords: Method of fundamental solutions, meshless methods, diffusion equations, transient diffusion
The transient conduction problem, governed by the diffusion equations, appears in many areas of science and technology and simulates phenomena such as heat transfer, pollutants concentration, fluid flow, molecular movements, among others. These problems have been extensively treated in literature but, although analytical solutions can be found for some cases, when complex geometries and/or boundary conditions are prescribed, it is necessary to use numerical methods.
Generating a mesh for complicated geometries is timeconsuming, requires great memory storage and takes a significant computational effort for classical methods, especially those based on a domain discretization. To overcome such problems, in the last decades there has been a significant increase in the use of meshless numerical methods for solving partial differential equations.
As for the classical methods, the meshless methods can be divided in two main categories: first, the domaintype methods such as the smoothed particle dynamics method (SPH) [1], the finite point method (FPM) [2], the element free Galerkin method (EFG) [3], the meshless local PetrovGalerkin method (MLPG) [4], etc.; second, the boundarytype methods, as the boundary particle method (BPM) [5] and the method of fundamental solutions (MFS) [6], among others.
Due to the simplified formulation and implementation process, MSF has been largely used for different types of problems. The general concept of MFS is to approximate the solution by a linear combination of the fundamental solutions generated by source points that satisfies the governing equation in the interior domain, leaving only the boundary conditions to be satisfied. Unlike the boundary element method (BEM) in MFS, the solution in the interior domain does not require any additional integral equation. If a fundamental solution exists for the given governing equation, then the method of fundamental solutions can be utilized to obtain numerical solutions of the variable at a definite number of points in the domain [7].
The main issue in MFS is the source positioning in order obtain reasonable responses. The source points can be placed outside the problem domain, avoiding singularities over the space coordinates, and the solution can be approximated over time by Laplace transform [8,9,10] or by finite difference scheme [11], an interesting approach since MFS is wellposed problem in spatial domain. Otherwise, the source points can be placed at different time levels [7], and, by using transient fundamental solutions, they will not generate singularities in time and spatial domains, however generating an illposed problem.
For homogeneous diffusion equations, in Golberg et al. [12] for nonzero initial conditions, rectangular shaped domain and Dirichlet’s boundary conditions prescribed, the Laplace transform method and the finite difference method were studied. For both cases it leads to a nonhomogeneous Helmholtz equation. Particular solutions, for different types of problems, are generally found by the dual reciprocity method (DRM), introduced by [13,14], that transform the domain integral into a boundarytype linear combination of radial basis functions (RBFs), and Golberg et al. [15] proposed particular solutions for Helmholtztype operators. For a similar geometry, in Young et al. [7] transient fundamental solutions were applied for homogeneous Dirichlet’s boundary conditions with more complex initial conditions.
In Cao et al. [16], DRMMFS based on the modified Helmholtz operator and DRMTrefftz were applied for homogeneous diffusion equation with mixed boundary conditions and constant initial conditions, Chantasiriwan [17] compared MFS based on transient fundamental solutions with MFS based on the modified Helmholtz operator for a square with different types of boundary conditions.
To solve a linear diffusion equation with timeindependent source terms, Young et al. [18] applied timedependent fundamental solutions with DRM for a rectangular domain with different internal sources equations and in Wang and Qin [6] it was used MFS with the method of particular solutions (MPS) and with the eigenfunction expansion method (EEM) to solve several geometries.
In this article, MFSDRM based on the modified Helmholtz operator with different types of RBFs is applied for different types of geometries, as well as for a set of different internal source terms and boundary conditions. Numerical solutions based on MFSDRM with timedependent fundamental solutions, that is, not using any integration techniques or requiring any kind of special geometric position for the source points, are obtained for comparison purposes. Nevertheless, in Young et al. [18] it was proposed a time moving collocation of source points, and in this paper a different approach for the sources is applied. All the described methods will be compared with each other and with the analytical solution in order to evaluate their accuracy and applicability.
This paper is organized as follows: governing equations and boundary conditions are described in Section 2; different formulations for the Method of Fundamental Solutions applied to the diffusion problem is in Section 3; numerical examples and their evaluations are in Section 4; and Section 5 consists of conclusions drawn based on the present study.
The transient diffusion equation in a domain and a boundary is given by:

(1) 
in which represents the spatial coordinates, is time, the thermal diffusivity, is the potential under analysis, is a spatial internal source function and is the Laplacian operator of partial derivatives. The initial condition of the problem is represented by:

(2) 
Two boundary conditions can be prescribed. Dirichlet or necessary condition for the potential :

(3) 
and Neumann or nature condition for the potential flow:

(4) 
where and are the boundary parts, where the Dirichlet and Neumann conditions respectively are prescribed, is the normal related to the boundary and , , are prescribed functions.
Based on the superposition principle of the linear systems, the solution of a nonhomogeneous diffusion problem with timeindependent source terms can be represented as:

(5) 
where is the homogeneous solution and is the particular solution. Depending on the time marching scheme, the particular solution should satisfy:
For the Laplacian operator

(6a) 
For the modified Helmholtz operator

(6b) 
and the homogeneous solution satisfy:

(7) 
In this paper, the particular solution is obtained by DRM with different radial basis functions (RBFs) and the homogeneous solutions are obtained by different MFS formulations.
In order to obtain the particular solution with DRM, the term from the righthand side of equation (6) is approximated by a RBF:

(8) 
where is the number of collocation points, are the interpolation coefficients and are functions based on the radial distance between collocation points with reference in . Depending on the method, the collocation points will be placed only in the domain [16] or both the domain and boundary [18,19].
After applying Eq. (8) at collocation points, the interpolation coefficients are calculated. The particular solution is expressed:

(9) 
where is the approximate particular solutions in terms of RBF . In order to obtain these solutions the following equations should be satisfied:

(10a) 

(10b) 
The typical approach is that is selected first, and then using Eq. (10) the corresponding particular solutions are determined. For Eq. (10a) the particular solution in obtained by inverting the Laplace operator, only by repeated integration. For Eq. (10b), the particular solutions for the modified Helmholtz operator is not easy to obtain directly [20]. In this paper the RBF used was the thin plate splines (TPS) [1,2022]:

(11) 
and with solving the following linear system:

(12) 
all unknown coefficients can be calculated, the corresponding for the Laplacian operator:

(13) 
and for the modified Helmholtz operator:

(14a)  

(14b) 
where is Euler’s constant and is the modified Bessel function of the second kind order zero.
The next step is to calculate the homogenous solution with the modified conditions presented in Eq. (7). Here we consider two timemarching typical methods: the finite difference method and transient fundamental solutions, and also, for this last one, it is proposed a different approach considering the time collocation for the source points.
Using the finite difference method in Eq. (1) to approximate and with respect to time variable within the interval :

(15) 
where is time step size and defining an implicit time marching method.
Substituting and rearranging terms of Eq. (16) in Eq. (1) and in conditions Eqs. (3)(4) it yields to the modified Helmholtz equation:

(16) 

(17) 
Reducing Eq. (16) for a singlestep formula:

(18) 
where and . It is worth noticing that the term is well defined and depends on the solution obtained from the previous time and the nonhomogenous condition, which is timeindependent and is calculated by DRM proposed in Section 3.1. The initial condition should be applied in order to start the procedure.
By using MFS for every time step, the homogenous solution is approximated by:

(19) 
where are unknown coefficients, are the source points placed only in the boundary outside the problem domain, and are the fundamental solutions proposed for the modified Helmholtz operator:

(20) 
where and are the modified Bessel function of the second kind order zero and one, respectively.
By properly placing the source points (Figure 1) in order to avoid singularities, a well posed linear system with dimension is formed:

(21) 
where is the matrix containing the fundamental solution (Eq. (20)) on an th field point generated by a th source and are the prescribed boundary conditions (Eq. (7)).
By computing , the field points inside the domain can be obtained by Eq. (19). It is noteworthy that, for this method, sources and field points are at the same time level but in different geometrical positions, and it is well known that the source positioning outside the domain affects accuracy and stability. Typically, the response accuracy increase as the distance between the virtual and physical boundaries increase, but there is no definitive approach to this problem. In this article the sources geometrical position will be briefly evaluated.
Figure 1. Source positions for MSF based on modified Helmholtz operator 
Applying the same concept described by Eq. (19), the general solution for Eq. (1) is now described as:

(22) 
it is known is the number of initial sources (existing only in the domain), is the number of sources in the boundary and are the coefficients to be determined that represent the sources intensity. Inside the time step, , is the impulse application time at the source point and is the field time, which are computed at intermediated levels for domain points and boundary points.
The fundamental solutions now are Green functions, which describe the potential field generated by a unit source applied to time and point :

(23) 
where is the field point coordinate, is the source point coordinate, , is the model dimension, is the radius measured between the source point and the field point in question, and is the projection of the radius projection over the normalboundary.
In order to determine the sources intensities, the linear system must be solved:

(24) 
where is a matrix with dimension ( containing the fundamental solutions, and is the vector containing the initial conditions and prescribed boundary conditions (Eq. (7)).
When using fundamental solutions that are already transient, source and field points are at same geometrical positions but at different time levels even though inside the same time step. As the matrix is illconditioned, the difference between the time to which the source is applied in comparison with the time the field is calculated generates significant effect on the final response and will be investigated in this article.
The uniqueness of the matrix was approached through the technical use of Tikhonov’s Method:

(25) 
where is a regularization parameter whose values generally vary between and and is the identity matrix.
Through Eq. (24) it is noted that both the matrix size and the vector size depend on the number of field points and source points chosen at each time step. However, it should be known that each time step is divided into intermediate steps where, firstly, the coefficients are determined by the points which the initial conditions are prescribed and then by the points where the boundary conditions are known.
In relation to the temporal coordinate of these sources, two forms of distribution would be tested: fixed source points (MFS1) and time moving source points (MFS2).
In this paper, the scheme MFS1 is referred for fixed time source applications. On this proposal, even though the field points are obtained in a time box that advances through , the sources impulses are applied on the problem beginning, always at a same time level for domain sources and at another level for boundary sources. In order to avoid singularities, intermediate time levels are proposed as: the for domain sources, and for boundary sources, while field points will be placed at in interior domain and at the boundary. Figure 2 shows source placement during time steps.
Figure 2. MSF1 evolutionary process 
As the diffusion problem is an evolutionary problem, the impulse generated by maintaining the sources fixed at the beginning of the problem will be weakened as time progresses. Analogue to the geometrical distance, approximation increases accuracy as time evolves.
The matrix exists when sources are applied before field nodes are calculated. For this approach, will be fully completed, once domain source points generate fundamental solutions at domain and boundary field points, as well as, after the first time step, boundary source points also create responses on domain and boundary field points. After computing and solving the linear system as in Eq. (24), the numerical response can be obtained using Eq. (22).
The scheme here referred as MSF2 makes use of [20,21] timemoving sources proposal. During the diffusion process, the field and source points are inside a time box that advances through , both field and sources are at different time levels on every time step. The time levels proposed are: the for domain sources, and for boundary sources while field points will be placed at in interior domain and at the boundary as showed in Figure 3.
Figure 3. MSF2 evolutionary process 
Nevertheless, the matrix will assume a different approach. Once boundary sources are applied after domain field points, it can only influence boundary field points. Inside a time step, the coefficient that translates the distance between sources and field will now have an important role on the response accuracy. As in MSF1 the linear system Eq. (24) will be solved, and the potential Eq. (22) can be calculated at every time step until either the terminal time or the steady state solution is achieved.
In order to explore the methodologies potential and compare them with each other and with analytical solutions, three numerical examples were tested. As a way to evaluate the factors that influence the accuracy, several time increments, geometries, time coefficients and source positions were analyzed. Three types of internal sources were considered: constant, polynomial and senoidal for all proposed methods.
Consider a unit circular disk, with the following conditions:
The analytical solution is given by:
where and are the Bessel functions first kind zero and one order, respectively. The parameters are the positive roots of and in this paper was used the first 100 roots.
In order to explore all methodologies nuances, three points in different geometrical positions (0,0), (0.4,0) and (0.8,0) were studied. In order to study the influence of source positions for the modified Helmholtz operator, different distances between virtual and physical boundary were proposed in Figure 4, and for MSF1 and MSF2 three different coefficient were analyzed.
Figure 4. Physical and virtual boundary for example 1 
Figure 5 depicts the absolute error histograms for the modified Helmholtz operator for all the distances shown in Figure 4. As expected, it can be observed for all analyzed nodes that error and virtual boundary have an inverse relation, meaning that, until a distance is achieved, the error decrease as the distance increase. The method accuracy is also slightly better for nodes geometrically positioned closer to the physical boundary.
(a) 
(b) 
(c) 
Figure 5. Time history of absolute error for example 1. Nodes coordinates are: (a) , . (b) , . (c) 
Figure 6 shows the absolute error histograms for MSF1 and MSF2 contemplating different time distances between sources and field nodes. In this example, for both methods, error decreases as the distance increases for all nodes. This relation shall not be generalized for different problems. Different parameters should be tested for every problem. Joined with the time increment size, it affects directly. It is worth mentioning that, for all nodes, MSF1 is less sensitive to the time distance between source and field and presented better performance when compared to MSF2.
(a) 
(b) 
(c) 
Figure 6. Time history of absolute error for MSF1 and MSF2 for example 1. Nodes coordinates are: (a) , . (b) , . (c) 
Figure 7 shows the time evolution history at (0,0), (0.4,0) and (0.8,0) for MSF1, MSF2 and MFS based on the modified Helmholtz operator, as well as the exact solution. For a circular domain, constant initial, boundary and nonhomogeneous conditions, accuracy decreases between the following methods: MSF based on the modified Helmholtz operator, MSF1 and MSF2. Although, in general, the results show good agreement with the analytical solution in different time stages.
Figure 7. Example 1 numerical results compared with analytical response 
Let a square plate of dimension , with 256 nodes, , be submitted to the conditions:
The analytical solution is given by:
In this example, for MSF1 and MSF2, the coefficient , and, for the modified Helmholtz operator, virtual sources are 0.5 from the physical boundary. In order to explore the methodologies, two different types of RBF were considered, referenced as RBF1 the TPS described on Section 3.1 and RBF2 the following functions [23]:
and for Laplacian operator 
and for modified Helmholtz operator 
Figure 8 depicts the absolute error at nodes with distinct geometric positions for all methods proposed with RBF1 and RBF2. For all nodes, at initial stages, MSF1 and MSF2 presented better results. Moreover, between the radial basis functions, RBF1 showed greater accuracy. For senoidal and exponential initial and boundary conditions, polynomial nonhomogeneous condition, MFS2RBF1 revealed less error the closer the node is to the physical boundary, and MSF1 and MSF based on the modified Helmholtz operator revealed to be better the closer the node is to center domain.
(a) 
(b) 
(c) 
Figure 8. Time history of absolute error for example 2. Nodes coordinates are: (a) . (b) . (c) 
Figure 9 presents the results obtained by the three tested methods and the analytical solution for a line of nodes at on initial stage and final stage. For initial stages MFS based on modified Helmholtz operator present less accuracy than MFS1 and MFS2, while at final times all methods present good precision. Figure 10 shows potential at all nodes at .
(a)  (b) 
Figure 9. Example 2 numerical results compared with analytical response. (a) Initial stage. (b) Final stage 
Figure 10. Example 2 potential for all nodes 
Consider a Lshaped irregular meshless MFS nodes, with the following conditions:
The analytical solution is given by:
In this example, two nodes –point A (1.03,0.56) and point B (0.35,1.36) depicted in Figure 11– and different time increments were tested to verify its influence on the final response.
Figure 11. Meshless MFS nodes for example 3 
Figure 12 depicts absolute errors at nodes A and B, for different time steps in all methods. When compared, MSF1 and MSF based on the modified Helmholtz operator present better responses as time step decreases, and MSF2, a method that is known for its ill posed matrix, presents better results for a bigger time step. All methods showed to be sensitive concerning the field node geometrical position.
(a)  (b) 
(c)  (d) 
Figure 12. Time history of absolute error for example 3. (a) MSF1 and MSF2 for point A. (b) MSF1 and MSF2 for point B. (c) Helmholtz for point A. (d) Helmholtz for point B 
Figure 13 presents the results obtained by the three tested methods and the analytical solution at nodes A and B. For initial stages MFS1 presents less accuracy than the other methods. However, at final times MFS2 is worst. In general, for a senoidal nonhomogeneous condition and trigonometrical initial and boundary conditions, all methods present reasonable results.
(a)  (b) 
Figure 13. Example 3 numerical results compared with analytical response. (a) Node A. (b) Node B 
Transient nonhomogeneous diffusion problems with different MFS methods and several types of initial, boundary and timeindependent source functions were solved. The DRM technique was used to solve the nonhomogeneous equation, and different RBFs were analyzed. For the homogeneous solution, circular, squared and hard shaped meshes were tested, as well as different time increments and source positioning. It was described MFS based on the modified Helmholtz operator, MFS based on transient fundamental solutions, and it was proposed a variation of this last method.
The numerical procedures presented were validated by comparing results between methods and also with analytical solutions. The main issue for all methods is the sources positioning. For MFS modified Helmholtz operator, sources are geometrically positioned at a virtual boundary, and for MFS modified transient fundamental solutions, sources are time positioned at intermediate stages. In the proposed method sources are fixed in time, and its intensities, translated at coefficients, are calculated for every time step.
Regarding the geometrical source position, the Helmholtzbased method showed to be sensitive until a certain distance between virtual and physical boundary is achieved, pattern that repeats for all mesh types. The socalled MSF1 showed to be less sensitive then MSF2 to temporal source positioning, although shape complexity interfered with the accuracy in both methods. Concerning time increments, MSF2 presented great discrepancies in accuracy between the times studied, mainly due to the disturbances generated when solving an illconditioned system, and for MFS1 and Helmholtz method, smaller time increments increase accuracy. The developed methods have a formulation that proved to be efficient in solving the various potential problems. Despite their limitations, it was realized that the methods present a controllable level of precision, versatility, computational gain and easy implementation.
The authors thankfully acknowledge the support of Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq). This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior  Brasil (CAPES)  Finance Code 001.
[1] Gingold R.A., Monaghan J.J. Smoothed particle hydrodynamics: theory and application to nonspherical stars. Monthly notices of the royal astronomical society, 181(3):375389, 1977.
[2] Oñate E., Idelsohn S., Zienkiewicz O.C., Taylor R.L. A finite point method in computational mechanics. Applications to convective transport and fluid flow. International Journal for Numerical Methods in Engineering, 39(22):38393866, 1996.
[3] Belytschko T., Lu Y.Y., Gu L. Element‐free Galerkin methods. International Journal for Numerical Methods in Engineering, 37(2):229256, 1994.
[4] Atluri S.N., Zhu T. A new meshless local PetrovGalerkin (MLPG) approach in computational mechanics. Computational Mechanics, 22(2):117127, 1998.
[5] Chen W. Meshfree boundary particle method applied to Helmholtz problems. Engineering Analysis with Boundary Elements, 26(7):577581, 2002.
[6] Wang H., Qin Q.H. Methods of fundamental solutions in solid mechanics. Elsevier, 2019.
[7] Young D.L., Tsai C.C., Murugesan K., Fan C.M., Chen C.W. Timedependent fundamental solutions for homogeneous diffusion problems. Engineering Analysis with Boundary Elements, 28(12):14631473, 2004.
[8] Zhu S.P. Solving transient diffusion problems: timedependent fundamental solution approaches versus LTDRM approaches. Engineering Analysis with Boundary Elements, 21(1):8790, 1998.
[9] Zhu S.P., Liu H.W., Lu X.P. A combination of LTDRM and ATPS in solving diffusion problems. Engineering Analysis with Boundary Elements, 21(3):285289, 1998.
[10] Sutradhar A., Paulino G.H., Gray L.J. Transient heat conduction in homogeneous and nonhomogeneous materials by the Laplace transform Galerkin boundary element method. Engineering Analysis with Boundary Elements, 26(2):119132, 2002.
[11] Bulgakov V., Šarler B., Kuhn G. Iterative solution of systems of equations in the dual reciprocity boundary element method for the diffusion equation. International Journal for Numerical Methods in Engineering, 43(4):713732, 1998.
[12] Golberg M.A., Chen C.S., Muleshkov A.S. The method of fundamental solutions for timedependent problems. WIT Transactions on Modelling and Simulation, 23, 1970.
[13] Nardini D., Brebbia C.A. A new approach to free vibration analysis using boundary elements. Applied Mathematical Modelling, 7(3):157162, 1983.
[14] Partridge P.W., Brebbia C.A. Dual reciprocity boundary element method. Springer Science & Business Media, 2012.
[15] Golberg M.A., Chen C.S., Rashed Y.F. The annihilator method for computing particular solutions to partial differential equations. Engineering Analysis with Boundary Elements, 23(3):275279, 1999.
[16] Cao L., Qin Q.H., Zhao N. Application of DRMTrefftz and DRMMFS to transient heat conduction analysis. Recent Patents on Space Technology, 2:4150, 2010.
[17] Chantasiriwan S. Methods of fundamental solutions for time‐dependent heat conduction problems. International Journal for Numerical Methods in Engineering, 66(1):147165, 2006.
[18] Young D.L., Tsai C.C., Fan C.M. Direct approach to solve nonhomogeneous diffusion problems using fundamental solutions and dual reciprocity methods. Journal of the Chinese Institute of Engineers, 27(4):597609, 2004.
[19] Young D.L., Chen C.W., Fan C.M., Tsai C.C. The method of fundamental solutions with eigenfunction expansion method for nonhomogeneous diffusion equation. Numerical Methods for Partial Differential Equations: An International Journal, 22(5):11731196, 2006.
[20] Golberg M.A., Chen C.S. The theory of radial basis functions applied to the BEM for inhomogeneous partial differential equations. Boundary Elements Communications, 5(2):5761, 1994.
[21] Chen C.S., Rashed Y.F. Evaluation of thin plate spline based particular solutions for Helmholtztype operators for the DRM. Mechanics Research Communications, 25(2):195201, 1998.
[22] Golberg M.A., Chen C.S. The method of fundamental solutions for potential, Helmholtz and diffusion problems. Boundary Integral Methods: Numerical and Mathematical Aspects, 1:103176, 1998.
[23] Balakrishnan K., Sureshkumar R., Ramachandran P. A. An operator splittingradial basis function method for the solution of transient nonlinear Poisson problems. Computers & Mathematics with Applications, 43(35):289304, 2002.
Published on 09/07/20
Accepted on 27/06/20
Submitted on 21/01/20
Volume 36, Issue 3, 2020
DOI: 10.23967/j.rimni.2020.07.003
Licence: CC BYNCSA license
Are you one of the authors of this document?