Upload
registroseg
View
224
Download
0
Embed Size (px)
Citation preview
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
1/17
Improvements of generalized finite difference method
and comparison with other meshless method
L. Gavete a,*, M.L. Gavete b, J.J. Benito c
a Escuela Teecnica Superior de Ingenieros de Minas, Universidad Politeecnica, c/Rios Rosas 21, 28003 Madrid, Spainb
Facultad de Farmacia, Universidad Complutense, Avda Complutense s/n, 28040 Madrid, Spainc Escuela Teecnica Superior de Ingenieros Industriales, U.N.E.D., Apdo. Correos 60149, 28080 Madrid, Spain
Received 3 December 2001; received in revised form 29 January 2003; accepted 19 February 2003
Abstract
One of the most universal and effective methods, in wide use today, for approximately solving equations
of mathematical physics is the finite difference (FD) method. An evolution of the FD method has been the
development of the generalized finite difference (GFD) method, which can be applied over general or ir-
regular clouds of points. The main drawback of the GFD method is the possibility of obtaining ill-
conditioned stars of nodes. In this paper a procedure is given that can easily assure the quality of numericalresults by obtaining the residual at each point. The possibility of employing the GFD method over adaptive
clouds of points increasing progressively the number of nodes is explored, giving in this paper a condition
to be accomplished to employ the GFD method with more efficiency. Also, in this paper, the GFD method
is compared with another meshless method the, so-called, element free Galerkin method (EFG). The EFG
method with linear approximation and penalty functions to treat the essential boundary condition is used in
this paper. Both methods are compared for solving Laplace equation.
2003 Elsevier Inc. All rights reserved.
Keywords: Meshless; Generalized finite difference method; Element free Galerkin method; Singularities
1. Introduction
The objective of meshless methods is to eliminate, at least, a part of the structure of elements asin the finite element method (FEM) by constructing the approximation entirely in terms of nodes.
* Corresponding author. Tel.: +34-913-366-466; fax: +34-913-363-230.
E-mail addresses: [email protected] (L. Gavete), [email protected] (J.J. Benito).
0307-904X/$ - see front matter 2003 Elsevier Inc. All rights reserved.doi:10.1016/S0307-904X(03)00091-X
Applied Mathematical Modelling 27 (2003) 831847
www.elsevier.com/locate/apm
http://mail%20to:%[email protected]/http://mail%20to:%[email protected]/7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
2/17
Although meshless methods were originated about twenty years ago, the research effort devoted
to them until recently has been very small. One of the starting points is the smooth particle hy-drodynamics method [1] used for modelling astrophysical phenomena without boundaries such as
exploding stars and dust clouds. Other path in the evolution of meshless methods has been thedevelopment of the generalized finite difference (GFD) method, also called meshless finite dif-ference (FD) method. The GFD method is included in the so named meshless methods (MM).
One of the early contributors to the former were Perrone and Kao [2]. The bases of the GFD werepublished in the early seventies. Jensen [3] was the first to introduce fully arbitrary mesh. He
considered Taylor series expansions interpolated on six-node stars in order to derive the FDformulae approximating derivatives of up to the second order. While he used that approach to thesolution of boundary value problems given in the local formulation, Nay and Utku [4] extended it
to the analysis of problems posed in the variational (energy) form. However, these very earlyGFD formulations were later essentially improved and extended by many other authors, but the
most robust of these methods was developed by Liszka and Orkisz [5,6], using moving leastsquares (MLS) interpolation [7], and the most advanced version was given by Orkisz [8]. Theexplicit FD formulae used in the GFD method, as well as the influence of the main parametersinvolved, was studied by Benito et al. [9].
Other different MM have been proposed. The diffuse element method, developed by Nayroleset al. [10], was a new way for solving partial differential equations. Belytschko et al. [11] developed
an alternative implementation using MLS approximation. They called their approach the elementfree Galerkin (EFG) method. The use of a constrained variational principle with a penalty
function to alleviate the treatment of Dirichlet boundary conditions in (EFG) method has beenproposed [12,13]. Liu et al. [14] have used a different kind of griddles multiple scale methodbased on reproducing kernel and wavelet analysis. O~nnate et al. [15] focused on the application to
fluid flow problems with a standard point collocation technique. Duarte and Oden [16], on the onehand and Babuska and Melenk [17] on the other, have shown how the denominated methodswithout mesh can be based on the partition of the unity. All these methods can be considered as
MM.This paper is organized as follows. Firstly, in Section 2 the GFD method is briefly described.
Secondly, in Section 3 several examples in the presence of singularities are given and the per-
formance of the GFD method is analyzed using fixed or variable radius of influence for theweighting functions. Also in Section 3 the possibility of employing the GFD method over adaptive
clouds of points is explored. Thirdly, the GFD method is compared to the EFG method in Section4. And finally, in Section 5, some conclusions are obtained.
2. Generalized finite difference method
For any sufficiently differentiable function fx;y, in a given domain, the Taylor series ex-pansion around a point Px0;y0 may be expressed in the form
f f0 h of0ox
kof0oy
h2
2
o2f0
ox2 k
2
2
o2f0
oy2 hko
2f0
oxoy oq3 1
where f fx;y, f0 fx0;y0, h x x0, k y y0 and q ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
h2 k2p .
832 L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
3/17
Eq. (1) and all following formulae will be limited to second order approximations and two-
dimensional problems. In any case, the extension to other problems is obvious.We consider norm B
B XNi1
f0
fi hi of0
ox ki of0
oy h2i
o2f0
ox2 k2i
o2f0
oy2 hiki o
2f0
oxoy
!wi
!22
where fi fxi;yi, f0 fx0;y0, hi xi x0, ki yi y0, wi weighting function with compactsupport.
The solution may be obtained by minimizing norm B, writing
oB
ofDfg 0 3
fDfgT
of0
ox ;
of0
oy ;
o2f0
ox2 ;
o2f0
oy2 ;
o2f0
oxoy& ' 4
we come to a set of five equations with five unknowns for each node.
For example, the first equation is as follows
f0XNi1
w2i hi XNi1
fiw2i hi
of0
ox
XNi1
w2i h2i
of0
oy
XNi1
w2i hiki o
2f0
ox2
XNi1
w2ih3i2
o2f0
oy2
XNi1
w2ik2i hi
2 o
2f0
oxoy
XNi1
w2i h2i ki 0 5
this Eq. (5) and all following equations give us the following system of equations
Rw2i h2i Rw
2i hiki Rw
2i
h3i
2Rw2i
k2i
hi
2Rw2i h
2i ki
Rw2i hiki Rw2i k
2i Rw
2i
h2i
ki
2Rw2i
k3i
2Rw2i hik
2i
Rw2ih3
i
2Rw2i
kih2i
2Rw2i
h4i
4Rw2i
h2i
k2i
4Rw2i
h3i
ki
2
Rw2ihik
2i
2Rw2i
k3i
2Rw2i
h2i
k2i
4Rw2i
k4i
4Rw2i
hik3i
2
Rw2i h2i ki Rw
2i hik
2i Rw
2i
h3i
ki
2Rw2i
hik3i
2Rw2i h
2i k
2i
0BBBBBBBBB@
1CCCCCCCCCA
of0ox
of0oy
o2f0ox2
o2f0oy2
o2f0oxoy
8>>>>>>>>>>>>>>>>>:
9>>>>>>>>>=>>>>>>>>>;
f0Rw2i hi Rfiw2i hif0Rw
2
i ki Rfiw2
i ki
f0Rw2i h2i
2 Rfiw2i h
2i
2
f0Rw2i k2i
2 Rfiw2i k
2i
2
f0Rw2i hiki Rfiw2i hiki
0BBBBBBB@1CCCCCCCA
6
This system of linear equations (6) in resumed notation is given by
APDfP bP 7where the AP are matrices of 5 5, and the vector DfP is 5 1.
L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847 833
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
4/17
If we are interested in solving Poissons equation, we can calculate o2f0=ox2, o2f0=oy
2 at each
node according to (6) and then
o
2
f0ox2
o2
f0oy2
gx0;y0 0 8
giving us a linear system of equations for the considered domain.The first step of the solution method is to scatter N nodal points in the computation domain
and along the boundary. So, let us consider FD operator (8) at a node. From the previously
obtained matrix equation (7) and, by virtue of the fact that the matrices of coefficients AP aresymmetrical, it is then possible to use the Cholesky method to solve the same. The aim is to obtainthe decomposition in upper and lower triangular matrices LLT. The coefficients of the matrix L
are denoted by Li;j.On solving the systems (7), the following explicit difference formulae are obtained
DfPk 1Lk; k
f0
XNi1
Mk; ici XNj1
fjXPi1
Mk; idji
k 1; . . . ;P 9
in which P 5, if only second order Taylor series expansion terms are included, and P 9 if alsothird order terms are included and where
Mi;j 11dij 1Li; i
Xi1kj
Li; kMk;j for j < i i and j 1; . . . ;P
Mi;j 1L i; i for j i i and j 1; . . . ;P
Mi;j 0 for j > i i and j 1; . . . ;P
10
with dij the Kronecker delta function, and
ci XNj1
dji
dj1
hjW2; dj2
kjW
2; dj3
h2j
2W2; dj4
k2j
2W2; dj5
hjkjW
2
dj6 h3i
6W2; dj7 k
3i
6W2; dj8 h
2i ki
2W2; dj9 hik
2i
2W2 11
where
W2 whi; ki2 12
On including the explicit expressions for the values of the partial derivatives o2f0=ox2, o2f0=oy
2 in
the initial equation [8], taking for example gx;y 0, the star equation is obtained. This Eq. (13)
834 L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
5/17
is formed at each point, calculating the second order derivatives o2f0=ox2, o2f0=oy
2 by solving Eq.
(6), and including the explicit expressions of these derivatives (given in (9) for k
3, 4, respec-tively) in the Laplace partial differential equation. Then the star equation corresponding to thepoint (x0;y0) is formed, obtaining the linear equation
k0f0 XNi1
kifi 0 13
Then
f0 X
N
i1mifi 14
XNi1
mi 1 15
All points in the control scheme are called a star of nodes. The number and the position ofnodes in each star i (i 1; . . . ;N) are the decisive factors affecting FD formula approximation.The choice of these supporting nodes is constrained as particular patterns lead to degenerated
solutions [18]. As star selection criterium we follow the denominated cross criterium: the areaaround the central nodal point, 0, is divided into four sectors corresponding to quadrants of the
cartesian co-ordinates system originating at the central node (see Fig. 1). Each of its semi axes is
assigned to one of these quadrants. In each sector two or more nodes are selected, the closest tothe origin. If this is not possible, e.g., at the boundary, missing nodes can be supplemented to
provide the total number of nodes necessary in each star.Having calculated the values of fi (i 1; . . . ; n) in the nodes of the domain, we calculate de-
rivatives using formula (6). It is possible to control the precision of GFD solutions by calculatingthe residual at each point of the interior of the domain using (6) and (8). In order to provide therequired and controlled precision of the GFD method, residuals of (8) may be very small and with
smoothed distribution over the entire domain. The existence of ill-conditioned stars of nodes, asshown in the next section, depends on the weighting function wi employed, and on the number ofnodes by quadrant of each star of nodes.
Fig. 1. The four quadrants criterium, using 2 nodes in each quadrant.
L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847 835
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
6/17
3. Numerical results
A global error measure is defined as
Errorf 1jfjmax
ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi1
NN
XNNi1
fei fni 2vuut 16
where f can be f, of=ox, of=oy, the superscripts (e) and (n) refer to the exact and numericalsolutions, respectively, and NN is the total number of interior nodes of the domain considered.
The following two weight functions were tested:
(a) Polynomial weight function (quartic spline):
wid 1 6d
dm 2 8 ddm
3
3d
dm 4 17
when d6 dm, and wi 0 when d> dm; and where
d ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffix xi2 y yi2
q(b) Polynomial weight function (cubic spline):
wid 23 4 d
dm
2 4 ddm
3for d6 1
2dm
43 4 d
dm
4 d
dm
2 4
3d
dm
3
for 12
dm < d6 dm
0 for d> dm
8>:
18
d ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffix xi2 y yi2
q
In both formulae (17) and (18) we use weighting functions with compact support, being rinf themaximum radius of influence used (rinf dm). We shall select rinf, considering fixed radius (sameradius for all the stars of the domain) or variable radius (radius for each of the stars depending on
their nodal distribution).
3.1. L-shaped domain
Firstly, we present an example that shows the performance of the GFD method on a problemwith a corner singularity. We consider the Laplace equation in an L-shaped domain that has a
non-convex corner at the origin satisfying homogeneous Dirichlet boundary conditions at thesides meeting at the origin and non-homogeneous conditions on the other sides, see Fig. 2. Wechoose the boundary conditions so that the exact solution is fr; h r2=3 sin2h=3 in polar co-ordinates (r; h) centered at the origin, which has the typical singularity of a corner problem.
We use the knowledge of the exact solution to evaluate the performance of the GFD method inthe case of irregular clouds of points (Figs. 2 and 3), comparing the effect of using fixed or variable
836 L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
7/17
radius of influence for the weighting functions. As shown in Figs. 2 and 3, the dimensions of bothmodels of the L-shaped domain, A and B, are different. It is possible to use a variable radius ofinfluence using different maximum radius of influence (rinf) for each star of nodes, depending on
the distance from the center of the star to the most far away node included in the star. In thiscase, rinf is adjusted for each point (center of a star of nodes) taking into account onlythe neighboring area covered by the nearest points according to the four quadrants criterium. We
can also multiply the distance to the most far away node point by a parameter. In Table 1 weuse 2.0 as parameter. Results obtained, using formula (16) to calculate the error for the func-tion and the derivatives, are given in Table 1 for both weighting functions quartic and cubic
spline.
Fig. 2. L-shaped domain. Irregular grid A.
Fig. 3. L-shaped domain. Irregular grid B.
L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847 837
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
8/17
As shown in Table 1, where the relationship between errors is given, it is interesting to note thatthe GFD method is very accurate also in the presence of the singular point that is located in theorigin of co-ordinates however, the error increases with the order of the derivatives, so the
minimum error is the corresponding to the function f, and the maximum error is the calculatedfor the second derivatives. The GFD method is accurate even for very irregular clouds of points as
the ones given in Figs. 2 and 3, however ill-conditioned stars can be obtained. For example, thecloud of nodes given in Fig. 3 contained ill-conditioned stars if 9-nodes stars were considered (2nodes by quadrant according to Fig. 1). This problem was easily detected because the residual
medium value (the total residual of all the nodes divided by the number of nodes) was very bigcompared to the usual values obtained, and also because the relation between the maximum andminimum residual values of the nodes was much bigger that the usual values obtained for well-
conditioned problems. Then, by using 13-nodes stars (3 nodes by quadrant according with Fig. 1),the problem became well conditioned. So in Table 1 (Fig. 3), it was necessary to increase the
number of nodes of the stars to obtain well-conditioned stars.It is interesting to note that the existence of ill-conditioned stars of nodes can be influenced also
by the weighting function employed. For example, using other weighting function such as
wid 1d3
19
when d6 dm, and wid 0 when d> dm; and where d ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffix xi2 y yi2
qand dm rinf,
the model of Fig. 2 contained ill-conditioned stars taking 9-nodes stars (two nodes in each
quadrant) and this problem persisted also for 13-nodes stars (three nodes in each quadrant)however, by taking 17-nodes stars (four nodes in each quadrant) the problem disappeared. Alsothe maximum distance (dm rinf), which gives the radius of influence of the weighting function,can affect the clouds of nodes originating ill-conditioned stars. The problem of having ill-con-
Table 1
% Error in the function and the derivatives for L-shaped domain irregular clouds (Figs. 2 and 3)
% Error
in f
% Error
in of=ox
% Error
in of=oy
% Error in
o2
f=ox2
% Error in
o2
f=oy2
Residual
medium valueFig. 2 DFG rinf vari-
able 2.0
9-nodes stars
QS 0.59 3.08 1.82 14.25 14.25 0.33 106
CS 0.56 2.95 1.83 14.16 14.16 0.37 106
DFG rinf
fixed 0.59-nodes stars
QS 0.66 3.37 1.89 14.19 14.19 0.42 106
CS 0.64 3.25 1.85 14.06 14.06 0.32 106
Fig. 3 DFG rinf vari-
able 2.0
13-nodes stars
QS 0.41 1.28 1.97 5.93 5.93 0.10 106
CS 0.41 1.21 1.84 5.76 5.76 0.81 107
DFG rinf
fixed
0.8
13-nodes stars
QS 0.41 1.58 2.51 6.58 6.58 0.78 107
CS 0.41 1.57 2.50 6.57 6.57 0.82 107
GFD method using variable or fixed rinf.
Notes: QS: Quartic spline weighting function, CS: Cubic spline weighting function.
838 L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
9/17
ditioned stars is easily detected by calculating the residual values at each one of the centers of thestars using derivatives calculated by (6). Then, by increasing the number of nodes in each one of
the quadrants the ill conditioning due to the location of the nodes can be avoided. This procedure
assures the quality of numerical results.As shown in Table 1, it is possible to use a variable (different) radius of influence for each star of
nodes. In this case, rinf is adjusted for each point taking into account only the neighboring area
covering the nearest points according to the four quadrants criterium. We have multiplied thedistance to the most far away node point included in each one of the stars by a parameter (inTable 1 we have used 2.0 as parameter value, for both cases corresponding to Figs. 2 and 3). The
use of variable radius of influence is important to employ the GFD method with more efficiency,as it is shown in the next section.
3.2. Clouds of points consecutively more refined
We shall also consider the case of logarithmic solution with a singular point in the origin of co-
ordinates. We consider the Laplace equation in a domain X 0:01; 1:010:01; 1:01 with Di-richlet boundary conditions in the boundary. We choose the boundary conditions so that the
exact solution is fx;y Logx2 y2. We use the knowledge of the exact solution to evaluatethe performance of the method, creating different adaptive clouds increasing the number of points
in the neighborhood of the singular point. The adaptive clouds used are shown in Fig. 4.As shown in Fig. 4, a group of studies has been carried out with models consecutively
more refined. Fig. 4 shows every different used cloud of points. In all the cases quartic spline
weighting functions have been used. The radius of domain of influence, rinf, was computed
as fixed (rinf 0.5) or variable, this last case was computed by rinf adI, with dI chosen tobe the distance to the most distant point of each of the stars using the four quadrants criterium;a was chosen to be 2. Each model has been designated with a code pointing the degree of re-finement (see Fig. 4). Results for the errors calculated according to (16) are given in Table 2 andFig. 5.
As it is shown in Table 2 and Fig. 4, we consider two different sets of cases: regular clouds (81and 289 nodes) and irregular clouds (97, 109 and 118 nodes). Best results for all the cases areobtained with the GFD method, using variable radius (see Fig. 5).
In Fig. 5 the results obtained using quartic spline weighting function are given. By comparingmodels T30908 and T30908r1 we can see how the global error decreases by adding nodes in the
neighborhood of the singular point that is located in the origin of co-ordinates.However, it is interesting to check the effect of creating smooth transition of nodes between the
two zones of different nodal density. Then, models T30908r2 and T30908r3 come up (see Fig. 4),in which some nodes have been added giving us a better global result. The error decreases in thedomain and it is homogenized. With model T30908r3 error drops a little although the results arevery similar (see Fig. 5). A uniform refinement, as in model T31708 leads to better results, (see
Figs. 4 and 5), however, the computational requirements are higher (289 nodes versus 118).As it is shown in Fig. 5, the error for the function and for the gradients decreases using variable
radius of influence to compare the adaptive clouds of nodes. Similar results have been obtained
for other weighting functions as those defined in (18) and (19).
L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847 839
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
10/17
As we can see in this example, using variable radius of influence for each star of nodes appearsas an important condition to employ the GFD method with more efficiency.
Fig. 4. Clouds of points. GFD method.
840 L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
11/17
4. Comparison with other meshless method
In this section we compare the GFD method with another meshless method the EFG method,to solve the Laplace equation. In the EFG Method, around a point x the function fhx is locallyapproximated by
fhx Xmi1
pixaix pTxax 20
where m is the number of terms in the basis, the monomial pix are basis functions, and aix aretheir coefficients, which, as indicated, are functions of the spatial co-ordinates x.
Table 2
% Error in f, of=ox, of=oy for case of logarithmic solution, GFD method using fixed or variable rinf
Quartic spline weighting function GFD method 9-nodes stars
variable radius 2.0
GFD method 9-nodes stars
fixed radius 0.581 Nodes % Error in f 1.17 1.73
% Error in of=ox 2.72 4.52% Error in of=oy 2.72 4.52
97 Nodes % Error in f 0.44 0.82
% Error in of=ox 1.54 3.41% Error in of=oy 1.40 3.32
109 Nodes % Error in f 0.42 0.78
% Error in of=ox 1.26 3.02% Error in of=oy 1.29 3.04
118 Nodes % Error in f 0.40 0.74
% Error in of=ox 1.19 2.84% Error in of=oy 1.22 2.87
289 Nodes % Error in f 0.24 0.45
% Error in of=ox 0.73 1.73% Error in of=oy 0.73 1.73
Fig. 5. % Error in GFD method, for the gradients (quartic spline) versus the number of nodes.
L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847 841
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
12/17
The coefficients aix are obtained by performing a weighted least square fit for the local ap-proximation, which is obtained by minimizing the difference between the local approximation andthe function. This yields the quadratic form
J XnI1
wdIpTxIax fI2 21
where wdI wx xI is a weighting function with compact support.Eq. (21) can be rewritten in the form
J Pa fTWxPa f 22
where
fT f1;f2; . . . ;fn 23
P pTx1
. . .
pTxn
24
35 24
pTxi fp1xi; . . . ;pmxig 25W diagw1x x1; . . . ;wnx xn 26
To find the coefficients a, we obtain the extremum of J by
oJ=oa Axax Hxf 0 27where
A PTWxP 28
H PTWx 29and therefore
a
x
A1
x
H
x
f
30
The dependent variable fh can, then, be expressed as
fhx XnxI1
UIxfI 31
where
UIx pTxA1xHIx 32with HI being the column I of H.
842 L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
13/17
The partial derivatives of the MLS shape functions are obtained as
UI;j
x
pT;jA
1HI
pT A1
HI;j
A;jA1HI
33
thus, Galerkin formulation can be followed to solve partial differential equation problems.
One of the biggest problems in the implementation of meshless methods resides in that the usedapproach is not an interpolation. MLS approximation, in general, lacks the delta functionproperty of the usual FEM shape function, in that
UIxJ dIJ 34
where UI is the Ith shape function evaluated at a nodal point xJ and dIJ is the Kronecker delta. Inthis paper we use a constrained variational principle with a penalty function (see Gavete et al.[12,13]).
The EFG method with linear shape functions and Penalty functions (1015) to enforce essentialboundary conditions, was used. The EFG method was considered using variable radius of in-fluence (rinf). In this case, rinf is adjusted for each point taking into account only the neighboring
area covering the nearest points. We can multiply the distance to the nearest nth point by a pa-rameter (in Table 3 we multiply the distance to the nearest third node by 2). The case of loga-
rithmic solution fx;y Logx2 y2 studied before was analyzed with the EFG method for themodels of Fig. 4. Integration cells used in the EFG method for the models of Fig. 4, are given
in Fig. 6. The results obtained comparing the GFD and EFG methods are given in Table 3 andFig. 7.
Table 3
% Error in f, of=ox, of=oy for logarithmic solution, GFD method versus EFG method using variable rinf
Quartic spline weighting function GFD method 9-nodes stars
variable radius 2.0
EFG method o.i. 4 4
variable radius 2.0
81 Nodes % Error in f 1.17 1.65
% Error in of=ox 2.72 3.38% Error in of=oy 2.72 3.38
97 Nodes % Error in f 0.44 1.01
% Error in of=ox 1.54 2.49% Error in of=oy 1.40 2.49
109 Nodes % Error in f 0.42 0.77
% Error in of=ox 1.26 1.74% Error in of=oy 1.29 1.74
118 Nodes % Error in f 0.40 0.74
% Error in of=ox 1.19 1.68% Error in of=oy 1.22 1.68
289 Nodes % Error in f 0.24 0.37
% Error in of=ox 0.73 1.01% Error in of=oy 0.73 1.01
L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847 843
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
14/17
However, the primary interest of the meshless methods is that they should work on arbitrary
geometries and on irregular clouds of points. Thus, we consider as a second example the case ofLaplace equation with the logarithmic solution fx;y Logx2 y2 on a more complex domainwith an irregular cloud of points. (See Fig. 8). The GFD method with cross criterium and the
Fig. 6. Clouds of points and integration cells.
0 50 100 150 200 250 300 350
Fig. 7. (Error in GFD/error in EFG), for the function and the gradients (quartic spline), versus the number of nodes.
844 L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
15/17
EFG method with linear shape functions and Penalty functions (1015) to enforce essential
boundary conditions, were used. In both methods the radius of influence is variable, rinf is ad-justed for each point taking into account only the neighboring area covering the nearest points.
We have multiplied the distance to the nearest nth point by a parameter (in Table 4 we have used2.0 as parameter value).The numerical integration over this more complex domain is made, for the EFG method,
using triangular and square integration cells, as shown in Fig. 9. In Table 4 we can see theresults obtained for the EFG and GFD methods. In the EFG method we use, as shown inFig. 9, 52 triangles (13 integration points) and 48 cells (4 4 integration order) for numericalintegration.
Similarly to the previous results obtained in Fig. 7, the results shown in Fig. 10 also indicate a
higher accuracy of the GFD method for solving Laplace equation.
Fig. 8. A more complex domain with an irregular cloud of points.
Table 4
% Error in f, of=ox, of=oy for logarithmic solution
Weighting function data GFD/EFG method
Quartic spline Cubic spline
GFD rinf variable 2.0 (9-nodes stars) % Error in f 0.18 0.15
% Error in f=ox 0.94 0.81
% Error in of=oy 0.47 0.40
EFG rinf 2.0 distanceto the nearest third node
% Error in f 0.62 0.54
% Error in f=ox 2.33 2.12% Error in of=oy 2.61 2.25
L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847 845
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
16/17
5. Conclusions
The main drawback of the GFD method is the possibility of obtaining ill-conditioned stars of
nodes. However, we can easily evaluate the quality of numeral results by obtaining the residual at
each point, which must be very small (near zero) and also with a uniform distribution over theentire domain. It is also possible to increase the number of nodes of the stars to obtain correct
residual values over the entire domain. Then, when ill-conditioned stars are detected, the numberof nodes of the stars can be increased in order to obtain very small residual values of the partial
differential equations to be solved at all the nodal points. So, the global ill-conditioned problemdisappears.
Using variable radius of influence for each star of nodes appears as an important condition, inorder to increase the accuracy of the GFD method. The possibility of employing the GFD methodover adaptive clouds of points increasing progressively the number of nodes can be accomplished,
more accurately, by using variable radius of influence. It is also important to note that the quality
0.00 0.20 0.40 0.60 0.80 1.00 1.20
0.00
0.20
0.40
0.60
0.80
1.00
Fig. 9. Triangular and square cells used for numerical integration in EFG.
Fig. 10. (% Error in GFD/EFG methods), for f and the gradients (cubic spline).
846 L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847
7/31/2019 Improvements of Generalizedfinitedifferencemethod and Comparison With Other Meshless Method
17/17
of the GFD operator is sensitive to grid smoothness; thus, very sharp changes of mesh density
should be avoided.The GFD method has been compared with the EFG method. Both methods have been tested
for Laplace equation in the case of different domains with essential boundary conditions andirregular clouds of points. For the tested cases, the GFD method appears to be more accuratecompared to the EFG method with linear approximation.
References
[1] L.B. Lucy, A numerical approach to the testing of the fission hypothesis, Astron. J. 82 (12) (1977) 10131024.
[2] N. Perrone, R. Kao, A general finite difference method for arbitrary meshes, Comput. Struct. 5 (1975) 4558.
[3] P.S. Jensen, Finite difference techniques for variable grids, Comput. Struct. 2 (1972) 1729.
[4] R.A. Nay, S. Utku, An alternative for the finite element method, Variational Meth. Eng. 3 (1973) 6274.
[5] T. Liszka, J. Orkisz, The finite difference method at arbitrary irregular grids and its application in appliedmechanics, Comput. Struct. 11 (1980) 8395.
[6] T. Liszka, An interpolation method for an irregular net of nodes, Int. J. Numer. Meth. Eng. 20 (1984) 15991612.
[7] P. Lancaster, K. Salkauskas, Surfaces generated by moving least squares methods, Math. Comput. 37 (1981) 141
158.
[8] J. Orkisz, Mesless finite difference method. I. Basic approach, in computational mechanics. New trends and
applications, in: S. Idelsohn, E. O~nnate, E. Dvorkin (Eds.), Proceedings of the IACM-Fourth World Congress in
Computational Mechanics, CIMNE, 1998.
[9] J.J. Benito, F. Ure~nna, L. Gavete, Influence of several factors in the generalized finite difference method, Appl.
Math. Modell. 25 (12) (2001) 10391053.
[10] B. Nayroles, G. Touzot, P. Villon, Generalizing the finite element method : diffuse approximation and diffuse
elements, Computat. Mech. 10 (1992) 307318.
[11] T. Belytschko, Y.Y. Lu, L. Gu, Element-free Galerkin methods, Int. J. Numer. Meth. Eng. 37 (1994) 229256.
[12] L. Gavete, J.J. Benito, S. Falcon, A. Ruiz, Implementation of essential boundary conditions in a meshless method,
Commun. Numer. Meth. Eng. 16 (2000) 409421.
[13] L. Gavete, J.J. Benito, S. Falcon, A. Ruiz, Penalty functions in constrained variational principles for element free
Galerkin method, Eur. J. Mech. (a) Solids 19 (2000) 699720.
[14] W.K. Liu, S. Jun, S. Li, J. Adee, T. Belytschko, Reproducing kernel particle methods for structural dynamics, Int.
J. Numer. Meth. Eng. 38 (1995) 16551679.
[15] E. O~nnate, S. Idelsohn, O.C. Zienkiewicz, R.L. Taylor, A finite point method in computational mechanics.
Aplications to convective transport and fluid flow, Int. J. Numer. Meth. Eng. 39 (1996) 38393866.
[16] A. Duarte, J.T. Oden, H-P cloudan h-p meshless method, Numer. Meth. Partial Differen. Equat. 12 (1996) 673
705.
[17] I. Babuska, J.M. Melenk, The partition of unity method, Int. J. Numer. Meth. Eng. 40 (1997) 727758.
[18] M. Syczewski, R. Tribillo, Singularities of sets used in the mesh method, Comput. Struct. 14 (56) (1981) 509511.
L. Gavete et al. / Appl. Math. Modelling 27 (2003) 831847 847