11.7 KB · commit a9602da
In Chapters 8 and 9 we discussed finite difference methods for the solution of boundary-value problems defined by ordinary and partial differential equations. We now describe another class of methods for the solution of such problems, known as the finite element methods. A full discussion of these methods is outside the scope of this book—as normally this does not form part of an introductory course on numerical methods. We give here only a brief presentation so as to enable the reader to know that such methods exist. The discussion includes an elementary formulation of the method with simple applications to ordinary differential equations. For details, the reader is referred to the excellent book by Reddy [1985].
The basic idea behind the finite element method is to replace a continuous function by means of piecewise polynomials. Such an approximation, called the piecewise polynomial approximation, will be discussed in Section 11.1.2. The reader is already aware of the importance of polynomial approximations in numerical analysis. These are used in the numerical solution of practical problems where the exact functions are difficult to obtain or cumbersome to use. The idea of piecewise polynomial approximation is also not new to the reader, since the cubic spline already discussed, belongs to this class of polynomials.
In engineering applications, several approximate methods of solution are used and the reader is familiar with a few of them, e.g. the method of least squares, method of collocation, etc. In Section 11.2, we discuss two important methods of approximation, viz., the Rayleigh–Ritz method and the Galerkin
technique. Rayleigh developed the method to solve certain vibration problems and Ritz provided a mathematical basis for it and also applied it to more general problems. Whereas the Rayleigh–Ritz method is based on the existence of a functional (see Section 11.1.1), the Galerkin technique uses the governing equations of the problem and minimizes the error of the approximate solution. The latter does not require a functional. A disadvantage of both these methods is that higher-order polynomials have to be used to obtain reasonable accuracy.
The finite element method, described in the present chapter, is one of the most important numerical applications of the Rayleigh–Ritz and Galerkin methods. Its mathematical software is quite popular and used extensively in the solution of many practical problems of engineering and applied science. In the finite element method, the domain of integration is subdivided into a number of smaller regions called elements and over each of these elements the continuous function is approximated by a suitable piecewise polynomial. To obtain a better approximation one need not use higher-order polynomials but only use a finer subdivision, i.e. increase the number of elements.
In practice, several types of elements are in use, the type used being largely dependent upon the geometrical shape of the region under consideration. In two-dimensional problems, the elements used are triangles, rectangles and quadrilaterals. For three-dimensional problems, tetrahedra, hexahedra and parallelopiped elements are used. Since our attempt in this chapter is only to introduce the finite element method, we restrict its application to the solution of simple one-dimensional problems (see Section 11.4.1).
Examples of typical finite elements are shown in Fig. 11.1.
Figure 11.1 — Typical finite elements.
The concept of a functional is required to understand the Rayleigh–Ritz method, which will be discussed in the next section. This concept arises in the study of variational principles, which occur widely in physical and other problems. Mathematically, a variational principle consists in determining the extreme value of the integral of a typical function, say f(x,y,y′). Here the integrand is a function of the coordinates and their derivatives and the
integration is performed over a region. Consider, for example, the integral defined by I(y)=∫abf(x,y,y′)dx,(11.1) where y(x) satisfies the boundary conditions y(a)=y(b)=0.
The integrand f is integrated over the one-dimensional domain x. I is said to be a functional and is defined as a function which transforms a function y into a real number, the value of the definite integral in Eq. (11.1). From calculus of variations we know that a necessary condition for I(y) to have an extremum is that y(x) must satisfy the Euler–Lagrange differential equation ∂y∂f−dxd(∂y′∂f)=0.(11.2*)
Similarly, for functionals of the form I(y)=∫abf(x,y,y′,y′′)dx(11.3) the Euler–Lagrange equation takes the form ∂y∂f−dxd(∂y′∂f)+dx2d2(∂y′′∂f)=0.(11.4)
The Euler–Lagrange equation (11.2) has several solutions and the one which satisfies the given boundary conditions is selected. Thus, one determines the functional so that it takes on an extremum value from a set of permissible functions. This is the central problem of a variational principle. An important point here is that an extremum may not exist. In other words, a variational principle may exist, but an extremum may not exist. Furthermore, not all differential equations have a variational principle. These difficulties are serious and therefore impose limitations on the application of the variational principle to the solution of engineering problems.
Many problems arising in physics and engineering are modelled by boundary-value problems and initial boundary-value problems. Frequently, these equations are equivalent to the problem of the minimization of a functional which can be interpreted in terms of the total energy of the given system. In any physical situation, therefore, the functional is obtained from a consideration of the total energy explicitly. Mathematically, however, it would be useful to be able to determine the functional from the governing differential equation itself. This is illustrated below with an example.
A quicker way of finding the functional of a boundary value problem is the following (See Reddy [1985]).
Let v(x) be a function satisfying the essential boundary conditions, viz. v(a)=v(b)=0. Multiply the differential equation written in the form −y′′+f(x)=0 by v and integrate with respect to x. We then obtain
0=−∫abvy′′dx+∫abvfdx=[−vy′]ab+∫abv′y′dx+∫abvfdx=∫ab(v′y′+vf)dxFinally, substitute y=v in the above and multiply the bilinear terms by 1/2. We then obtain the required functional I(v)=∫ab[21v′2+vf]dx, which is the same as Eq. (iii) obtained earlier.
By definition, therefore, the integral in (iii) represents the required functional of the problem. In a similar way, functionals of other boundary-value and initial boundary-value problems can be derived.
It is outside the scope of this book to deal extensively with the determination of functionals corresponding to boundary-value problems. We list below some familiar boundary-value problems with their associated functionals and these would be useful in understanding the problems discussed in this chapter.
(i) dx2d2y=f(x),y(a)=y(b)=0(11.5) I(v)=∫abv(2f−v′′)dx.(11.6)
(ii) dx2d2y+ky=x2,0<x<1;y(0)=0,(dxdy)x=1=1(11.7) I(v)=21∫01[(dxdv)2−kv2+2vx2]dx−v(1).(11.8)
(iii) x2y′′+2xy′=f(x),y(a)=y(b)=0(11.9) I(v)=∫abv[2f−dxd(x2y′)]dx.(11.10)
(iv) ∇2u=0,u=0 on the boundary C of R.(11.11) I(v)=∬R21[(∂x∂u)2+(∂y∂u)2]dxdy.(11.12)
(v) ∇2u=−f,u=0 on the boundary C of R.(11.13) I(v)=∬R{21[(∂x∂u)2+(∂y∂u)2]−uf}dxdy.(11.14)
(vi)
EIdx4d4y+kyy=f(x),0<x<l=0=dx2d2y at x=0,l⎭⎬⎫(11.15)I(v)=21∫0l[EI(dx2d2v)2+kv2−2vf]dx.(11.16)
Suppose we wish to approximate a real-valued function f(x) over a finite interval [a,b]. A usual approach is to divide [a,b] into a number of subintervals [xi,xi+1], i=0,1,2,…,n−1, where x0=a and xn=b, and to interpolate linearly between the values of f(x) at the end points of each subinterval. In [xi,xi+1], the linear approximating function is given by li(x)=hi1[(xi+1−x)fi+(x−xi)fi+1],(11.17) where hi=xi+1−xi. From this, we construct the piecewise linear interpolating function over [x0,xn] by the formula P(x)=i=0∑nϕi(x)fi(11.18)
where
ϕ0(x)ϕi(x)ϕn(x)={(x1−x)/h0,0,x0≤x≤x1x1≤x≤xn=⎩⎨⎧(x−xi−1)/hi−1,(xi+1−x)/hi,0,xi−1≤x≤xixi≤x≤xi+1x≥xi+1={0,(x−xn−1)/hn−1,x0≤x≤xn−1xn−1≤x≤xn⎭⎬⎫(11.19)The functions ϕi(x), i=1,2,…,n are called base functions or shape functions. It is easily seen that the base functions ϕi(x) are identically zero except for the range [xi−1,xi+1] with ϕi(xi)=1.
Other types of base functions such as piecewise Hermite polynomials, cubic splines, etc., are also used in the literature but these will not be considered in this book.
*For example, see Sastry [2004]. ↩