#### Abstract

Analysis of the one-dimensional sine-Gordon equation is performed using the improved moving least-square Ritz method (IMLS-Ritz method). The improved moving least-square approximation is employed to approximate the 1D displacement field. A system of discrete equations is obtained by application of the Ritz minimization procedure. The effectiveness and accuracy of the IMLS-Ritz method for the sine-Gordon equation are investigated by numerical examples in this paper.

#### 1. Introduction

It is well known that many physical phenomena in one or higher-dimensional space can be described by a soliton model. Many of these models are based on simple integrable models such as Korteweg-de Vries equation and the nonlinear Schrdinger equation. Solitons have found to model among others shallow-water waves, optical fibres, Josephson-junction oscillators, and so forth. Equations which also lead to solitary waves are the sine-Gordon. The sine-Gordon equation arises in extended rectangular Josephson junctions, which consist of two layers of super conducting materials separated by an isolating barrier. A typical arrangement is a layer of lead and a layer of niobium separated by a layer of niobium oxide. A quantum particle has a nonzero significant probability of being able to penetrate to the other side of a potential barrier that would be impenetrable to the corresponding classical particle. This phenomenon is usually referred to as quantum tunneling [13].

A numerical study for sine-Gordon equation has been proposed including the finite difference schemes [46], the finite element methods [7, 8], the modified Adomian decomposition method [9], the boundary integral equation approach [10], radius basis function (RBF) [11], the meshless local Petrov-Galerkin (MLPG) [12], the discrete singular convolution [13], meshless local boundary integral equation method (LBIE) [14], the dual reciprocity boundary element method (DRBEM) [15], and the mesh-free kp-Ritz method [16].

The meshless method is a new and interesting numerical technique. Important meshless methods have been developed and proposed, such as smooth particle hydrodynamics methods (SPH) [17], radial basis function (RBF) [18], element free Galerkin method (EFG) [19], meshless local Petrov-Galerkin method (MLPG) [20], reproducing kernel particle method (RKPM) [2123], the boundary element free method (BEFM) [2427], the complex variable meshless method [2836], improved element free Galerkin method (IEFG) [3741], and the improved meshless local Petrov-Galerkin method [4246].

The moving least-square (MLS) technique was originally used for data fitting. Nowadays, the MLS technique has been employed as the shape functions of the meshless method or element-free Galerkin (EFG) method [47]. Though EFG method is now a very popular numerical computational method, a disadvantage of the method is that the final algebraic equations system is sometimes ill-conditioned. Sometimes a poor solution will be obtained due to the ill-conditioned system. The improved moving least-square (IMLS) approximation has been proposed [4852] to overcome this disadvantage. In the IMLS, the orthogonal function system with a weight function is chosen to be the basis functions. The algebraic equations system in the IMLS approximation will be no more ill-conditioned.

The Ritz [53] approximation technique is a generalization of the Rayleigh [54] method and it has been widely used in computational mechanics. The element-free kp-Ritz method is firstly developed and implemented for the free vibration analysis of rotating cylindrical panels by Liew et al. [55]. The kp-Ritz method was widely applied and used in many kinds of problems, such as free vibration of two-side simply-supported laminated cylindrical panels [56], nonlinear analysis of laminated composite plates [57], Sine-Gordon equation [16], 3D wave equation [58], and biological population problem [59].

A new numerical method which is named the IMLS-Ritz method for the sine-Gordon equation is presented in this paper. In this paper, the unknown function is approximated by these IMLS approximations; a system of nonlinear discrete equations is obtained by the Ritz minimization procedure, and the boundary conditions are enforced by the penalty method.

#### 2. IMLS-Ritz Formulation for the Sine-Gordon Equation

Consider the following one-dimensional sine-Gordon equation: with initial conditions and boundary conditions where denotes the domain of , denotes the boundaries, and and are wave modes or kinks and velocity, respectively. Parameter is the so-called dissipative term, assumed to be a real number with .

The weighted integral form of (1a) is obtained as follows:

The weak form of (2) is

The energy functional can be written as

In the improved moving least-square approximation [19], define a local approximation by

Equation (6) can be rewritten in the vector form

To find the coefficients , we obtain the extremum of by which results in the equation system

If the functions satisfy the conditions then is called a weighted orthogonal function set with a weight function about points . The weighted orthogonal basis function set can be formed with the Schmidt method [3941], Equation (9) can be rewritten as The coefficients can be directly obtained as follows: that is, where

From (12), the approximation function can be rewritten as where is the shape function and

Taking derivatives of (17), we can obtain the first derivatives of shape function

Imposing boundary conditions by penalty method, the total energy functional for this problem will be obtained:

By (16), we can derive the approximation function Substituting (20) into (19) and applying the Ritz minimization procedure to the energy function , we obtain In the matrix form, the results can be expressed as where

Making time discretization of (22) by the center difference method, we get where

The numerical solution of the one-dimensional sine-Gordon equation will be obtained by solving the above iteration equation.

#### 3. Numerical Examples and Analysis

To verify the efficiency and accuracy of the proposed IMLS-Ritz method for the sine-Gordon equation, two examples are studied and the numerical results are presented. The weight function is chosen to be cubic spline and the bases are chosen to be linear in all examples.

Example 1. Consider the sine-Gordon Equation (1a)–(1d) without nonlinear term over the region with initial conditions with boundary conditions
The exact solution is

The IMLS-Ritz method is applied to solve the above equation with penalty factor and time step length , . In Figure 1, the numerical solution and exact solution are plotted at times 0.1, 0.2, 0.3, and 0.4, respectively. In Figures 2, 3, and 4, the graphs of error function are plotted at times 0.1, 0.2, and 0.3, respectively, where is the exact solution and numerical solution is obtained by using the IMLS-Ritz method. Table 1 shows the comparison of exact solutions and numerical solutions by IMLS-Ritz method and EFG method. From the results of Table 1, we can draw the conclusion that IMLS-Ritz method has higher accuracy than the EFG method. The surfaces of the numerical solution with the IMLS-Ritz method and exact solutions are plotted in Figures 5 and 6.

Example 2. Consider the case in (1a)–(1d) over the rectangular region and initial condition which derives the analytic solution and the boundary conditions can be obtained from (30).

The IMLS-Ritz method is applied to solve the above equation with penalty factor and time step length , . Figure 7 depicts the numerical and exact solution when 1, 5, 10, 20, and 30, respectively. In Figures 8, 9, and 10, the graphs of error function are plotted at times 1, 5, and 10, respectively, where is the exact solution and numerical solution is obtained by using the IMLS-Ritz method. Table 2 shows the comparison of exact solutions and numerical solutions by IMLS-Ritz method and EFG method. From the results of Table 2, it is shown that IMLS-Ritz method has higher accuracy than the EFG method. The surfaces of the numerical solution with the IMLS-Ritz method and exact solution are plotted in Figures 11 and 12.

Example 3. Consider the case in (1a)–(1d) over the rectangular region and initial condition and the boundary conditions can be derived from the following exact solitary wave solution: where and is the velocity of solitary wave.

The IMLS-Ritz method is applied to solve the above equation with penalty factor and time step length , , . Table 3 shows the comparison of exact solutions and numerical solutions by IMLS-Ritz method and EFG method. From the results of Table 3, it is shown that IMLS-Ritz method has higher accuracy than the EFG method. The surfaces of the numerical solution with the IMLS-Ritz method and exact solution are plotted in Figures 13 and 14. In Figure 15, the graph of error function is plotted at time , where is the exact solution and the numerical solution is obtained by using the IMLS-Ritz method.

From these figures, it is shown that numerical results obtained by the IMLS-Ritz method are in good agreement with the exact solutions.

#### 4. Conclusion

This paper presents a numerical method, named the IMLS-Ritz method, for the one-dimensional sine-Gordon equation. The IMLS approximation is employed to approximate the 1D displacement field. A system of discrete equations is obtained through application of the Ritz minimization. In the IMLS approximation, the basis function is chosen as the orthogonal function system with a weight function. The IMLS approximation has greater computational efficiency and precision than the MLS approximation, and it does not lead to an ill-conditioned system of equations. The numerical results show that the technique is accurate and efficient.

#### Conflict of Interests

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

#### Acknowledgments

This work was supported by the National Natural Science Foundation of Ningbo City (Grant nos. 2013A610067, 2102A610023, and 2013A610103), the Natural Science Foundation of Zhejiang Province of China (Grant no. Y6110007), and the National Natural Science of China (Grant no. 41305016).