Abstract

Meshless method of line is a powerful device to solve time-dependent partial differential equations. In integrating step, choosing a suitable set of points, such as adaptive nodes in spatial domain, can be useful, although in some cases this can cause ill-conditioning. In this paper, to produce smooth adaptive points in each step of the method, two constraints are enforced in Equidistribution algorithm. These constraints lead to two different meshes known as quasi-uniform and locally bounded meshes. These avoid the ill-conditioning in applying radial basis functions. Moreover, to generate more smooth adaptive meshes another modification is investigated, such as using modified arc-length monitor function in Equidistribution algorithm. Influence of them in growing the accuracy is investigated by some numerical examples. The results of consideration of two constraints are compared with each other and also with uniform meshes.

1. Introduction

Meshless methods have gained much attention in the last decade. They are well known for their simplicity and ability in reconstructing multivariate functions from scattered data. Moreover, meshless methods using radial basis functions (RBFs) are powerful methods to solve partial differential equations (PDEs). The initial development in applying RBFs for numerical solution of PDEs is due to the pioneering work of Kansa [1, 2]. He used some collocation nodes to collocate the RBFs. Meshless methods using RBFs have several advantages comparing to finite difference method (FDM) finite element method (FEM) and other mesh based methods [3]. One of these advantages is that they do not require a mesh or element. These methods need only some scattered nodes. It means that the nodes can be chosen, freely. Due to this useful property, an important geometric problem arises: how to choose the nodes to improve the accuracy? This problem causes too many researches about distribution of nodes in meshless methods. Several researchers have considered this problem [48]. One of the effective methods to choose an efficient set of central nodes, known as adaptive nodes, is Equidistribution method [9, 10]. In this method, the objective is to find a partition of the interval, such that a given weight function takes a given constant value over each subinterval. These adaptive central nodes can be used in meshless methods, such as meshless method of line (MMOL). The method of line (MOL) is a well-known numerical method to solve PDEs [11, 12]. In the meshless method of line, the RBFs are used to approximate the solution in MOL. This method is very reliable for using adaptive nodes [13, 14]. In each step of this method, some central nodes, in spatial domain, are required. Adaptive central nodes can be a good selection to use in this method. But, due to ill-conditioning of the problem in some cases, when the nodes are near to each other, in many practical cases, it is necessary for the chosen nodes to have certain smoothness properties. This leads to some constraints.

In this study, two reliable constraints are presented, and the influence of them in applying the MMOL with adaptive nodes is investigated. The first constraint, known as quasi-uniform mesh, has been applied in some researches as well [13]. The aim of this study is to show application of another constraint, known as locally bounded mesh, and to discuss impact of it and some modification on meshes on increasing the accuracy. This paper is organized as follows. In Section 2, radial basis functions interpolation is introduced. In Section 3, an Equidistribution algorithm is presented and two constraints are imposed to obtain central nodes. In Section 4, adaptive nodes are applied in MMOL to solve some time-dependent PDEs.

2. Radial Basis Functions to Approximate a Function

Radial basis functions are real valued basis functions which depend on the distance between two points. The commonly used RBFs are multiquadric (MQ), Gaussian, Thin-Plate Spline (TPS), and compactly supported RBFs (CS-RBFs). The MQ radial basis function provides the most accurate approximation, in most applications of RBFs [15]. MQ is defined as , where is called shape parameter. In this paper, MQ is used in numerical examples. To approximate a given scattered data at nodes , RBF interpolation is given by combination of RBFs; that is,where and denote the Euclidean norm. is an RBF and s are the coefficients that will be determined. By collocating the interpolation conditions (, ), the system of equations is obtained as the following matrix form:where and .

The accuracy of the approximate function depends on various factors. Some of the most important ones are as follows: how the RBFs are chosen, nodes distribution, and selecting the shape parameter. Finding the optimal shape parameter is an open problem, although concentrated researches have been made to determine some appropriate shape parameter for a given problem [16, 17]. In this paper, we focus on distributing the nodes to obtain more accurate approximations. In next section, an Equidistribution method is introduced to select adaptive central nodes.

3. An Adaptive Method to Central Nodes

Based on the mesh-free property of RBF meshless methods, one can select a set of nodes freely, such as uniform or random scheme. But in the case that the solution is relatively more oscillatory or even shocks appear, some adaptive schemes can be applied [48]. Equidistribution algorithm is a reliable approach to construct adaptive central nodes. Equidistribution is the process of distributing the nodes in an interval such that a determined weight function is equally distributed over the chosen mesh.

3.1. Equidistribution

Definition 1 (Equidistribution). Let be a nonnegative piecewise continuous function () and a constant such that is an integer. The meshis called equidistributing (e.d.) on with respect to and , ifThe function is called “monitor,” which depends on the underlying function . To find more details about the monitors refer to [18, 19]. In this paper the arc-length monitor () is applied. To enforce at least a few nodes in the flat part of the interval, a parameter can be inserted in the arc-length monitor, that is, the modified arc-length . In numerical examples the influence of this parameter is illustrated.
For a given monitor function and the constant , the Equidistribution to produce an e.d. mesh in is done in three steps.

Step 1. Approximate .

Step 2. Determine the smallest integer such that and define .

Step 3. Find the mesh by inverse interpolation. The points are given by .

Figure 1 shows the e.d. nodes based on with . It shows that central nodes are concentrated at the region with steepest gradient. The concentration makes the nodes in the region near to each other. With smaller minimum distance between centrals, the MQ shape parameter must be adjusted, so that the condition number of the associated linear system remains reasonable. This adjustment is not always applicable. Thus some constraint on the distribution of central nodes can be imposed. The two most common constraints and an algorithm to construct these constraint adaptive nodes are introduced in the following section.

3.2. Equidistribution with Constraints

The two most important and common constraints are quasi-uniform and locally bounded. Equidistributing a function subject to the first constraint has been introduced in Pereyra and Sewell’s work in 1974 [9]. The second constraint that is more important is introduced by Kautsky and Nichols at 1980 [10].

3.2.1. Quasi-Uniform Mesh

The mesh is called quasi-uniform with respect to the constant if where

Definition 2 (sub-Equidistribution). According to Definition 1, the mesh is called subequidistributing (s.e.d.) on with respect to and if, for ,Now the problem is as follows: given a function and constants and , find a mesh which is(1)s.e.d. on with respect to and ,(2)quasi-uniform with respect to .The following theorem solves the problem.

Theorem 3. If is an e.d. mesh on with respect to and , wherewith and (and is equal to the smallest integer such that ), then is a s.e.d. on with respect to and and is satisfied in (6). For proof and more details about implementation refer to [9].

3.2.2. Locally Bounded Mesh

The mesh is locally bounded with respect to constant , if where ,

The Equidistribution problem is as follows: given a function , constants and , find a mesh which is(1)s.e.d. on with respect to and ,(2)locally bounded with respect to .The following theorem solves the problem.

Theorem 4. Let , , andwhere . If is an e.d. mesh on with respect to and some , then is s.e.d. on with respect to and , and for one has , .

For proof and more details about implementation, interested reader is referred to [10].

3.2.3. Numerical Algorithm

Based on Theorems 3 and 4, it is now possible to build a mesh which is s.e.d. and is quasi-uniform or locally bounded. In practical application the function , which is to be approximated, is generally given in discrete form; that is, we have the monitor function at some points on the mesh (). Based on Theorems 3 and 4, to find a s.e.d. mesh with respect to and , which is quasi-uniform or locally bounded with respect to , we require three main steps.

Step 1. Pad the monitor function to produce the padded function using (8) and (11), respectively, for the quasi-uniform and locally bounded (with for locally bounded).

Step 2. Determine the smallest number of nodes , such that .

Step 3. Equidistribute with respect to to find the new mesh .

It is noted that as , the mesh is constraint with respect to a constant , so that the number of points in the mesh may be greater than required to satisfy the constraints. In practice, the number of points is constant, and the e.d. process is performed with respect to . For deeper insight, the interested reader is referred to [9, 10].

Figure 1 shows the nodes produced with quasi-uniform and locally bounded constraints. It illustrates that the constrained meshes have more smoothness properties, than those produced without any constraint. Moreover, by modifying the value of and , one can gain some arbitrary properties in the mesh. With smaller value of , the mesh becomes near to uniform mesh so that with the two constraint meshes are same to uniform.

4. Applying Adaptive Nodes in Meshless Method of Line

4.1. Meshless Method of Line (MMOL)

Meshless method of line (MMOL) is a numerical method to approximate the solution of time-dependent PDEs. In MMOL, in each time step, the solution is approximated by radial basis functions.

Consider the following equation:with the boundary and initial conditionsBy time discretizing, the RBF approximation for the solution in step is given by where and . Suppose that the spatial domain is discretized by nodes (), such that ,. By collocating (13) with the center nodes we haveThese equations, in the matrix notation, are given bywhere and . From (15) and (17), can be written as the following: where .

Generally, for an arbitrary time , we haveSubstituting (19) into (13), the following ordinary differential equation will be obtained:To write (20) in the matrix form, letThus (20) can be written as follows:Equation (22) is a system of ordinary differential equations with the following initial and boundary conditions:This ODE can be solved by an ODE solver such as Runge-Kutta method. By applying fourth-order Runge-Kutta method (RK4) to (22), the following scheme will be obtained:where is the time step. This scheme yields to the solution at each step of time.

4.2. Adaptive Nodes in MMOL

In this section adaptive meshless method of line is applied to time-dependent partial differential equation with initial conditions. In first step, adaptive nodes are produced in the spatial domain based on initial condition. Assume that () is an approximate solution at time at distinct nodes (). Then, MMOL is applied on these central nodes to obtain approximations () at time . Next, a new set of adaptive nodes is obtained based on the properties of as a function. Finally, () are obtained by interpolation of the values . Application of adaptive central nodes in MMOL has been studied in some literatures [13, 14]. In producing the adaptive central nodes in each step one can apply each of the constraints. In this study, we investigate the impact of two introduced constraints and the parameters and to control the position of the central nodes. To compare the accuracy of the approximate solution, two well-known PDEs, Burgers equation and KdV equation, are investigated. Throughout the numerical examples, we use MQ-RBF.

Example 5. Consider Burger equationon the interval . The exact solution is where , , and . The initial condition and boundary conditions and are determined using exact solution. By choosing the equation is solved by using uniform nodes, quasi-uniform, and locally bounded adaptive nodes. In Figure 2 the approximate solutions and the central nodes are shown. The values of parameters , and shape parameter , the -norms, and -norms of the approximate solutions are presented in Table 1. Note that the impact of different values of and make some freedom to avoid the ill-conditioning. The values of these parameters which depend on the number of nodes and their distribution form are shown in Table 1.

Example 6. Consider KdV equation:with and . The initial condition isThe exact solution is
The computational domain is . The boundary conditions and are specified by exact solution. In this example, the gradient of the initial condition is not noticeable with respect to the length of the region . Thus the role of the parameters and to control the concentrate of the nodes in appropriate region is very important. Solution and absolute error of the approximate solutions for different mesh nodes are plotted in Figure 3. The results of implementation are summarized in Table 2.

5. Results and Conclusions

In this paper, application of adaptive nodes, in MMOL, to time-dependent PDEs is investigated. An Equidistribution algorithm was introduced to produce adaptive central nodes. To avoid ill-conditioning in the RBF approximation, two constraints were imposed to adaptive nodes. To illustrate the effect of constraints, the method was applied to two well-known time-dependent PDEs.

In Example 5, the results shown in Figure 2 confirm that, for , the approximate solution by the locally bounded nodes has a good accuracy while two others cannot make a reliable approximate solution with the same number of nodes; they need more number of nodes. For , the quasi-uniform nodes work as well as locally bounded nodes but the uniform nodes do not have good accuracy yet (Figure 3). For , all of three approaches are in a good accuracy. Thus, the results illustrate that the approximate solution based on the locally bounded nodes has more accuracy than two others, although the quasi-uniform nodes make more accurate approximate solution from uniform nodes. Based on the results of Table 1, the -norm of the approximate solution for with uniform nodes seems acceptable but the figures show that this approximate solution is not accurate, whereas two other meshes make more accurate approximations. Additively, the results reveal that the locally bounded mesh has more accurate approximation solution with smaller number of nodes. For , it is illustrated that the results of three meshes are same, because with a large number of nodes, to avoid the ill-conditioning, the value of must be small, and this leads the constraint meshes to a uniform mesh. Consequently, the results become same or close together.

In Example 6, Figure 4 shows that for uniform nodes the approximate solution is not accurate, and to obtain more accurate solution, at least 150 uniform nodes are needed, whereas for quasi-uniform nodes and locally bounded nodes, one can obtain a good accuracy. The results of this example illustrate that the quasi-uniform mesh makes more accurate results from uniform mesh. Also by using the locally bounded mesh, the results have the best accuracy than the others. It comes from the smoothness properties of the produced mesh in locally bounded based on initial condition and the solution function. Analysis of the results in Table 2 illustrates that, in this example by applying locally bounded mesh with , the error of approximate solution is more accurate than the error of approximate solution obtained by uniform mesh and quasi-uniform mesh with . The obtained results by uniform mesh with are comparable with the one obtained by locally bounded with . Thus the results reveal that locally bounded mesh produces more accurate solution in comparison with quasi-uniform mesh, and both of them are better than uniform mesh. It is noted that two parameters and have very important role in the smoothness of the meshes and so in the accuracy of the results.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of the paper.