Professional Documents
Culture Documents
CHAPTER 11 NUMERICAL INTEGRATION The explicit form of F (s,t) or G (s,t) are usually not available (or, sometimes, they are very difficult to explicit). For this reason, numerical integration has to be used, which is not a severe penalty. The standard practice is to apply the Gaussian integration, because the procedure employs a small number of integration points to achieve the desired level of accuracy. This is important for efficient element calculations, since at each integration point a matrix product should be evaluated. Other methods are also available, such as the Newton Cotes quadrature. For simplicity, the 1D case will be described first, summarizing some principles. 11.1 ONE-DIMENSIONAL NUMERICAL INTEGRATION To calculate numerically the integral of a function defined over the onedimensional domain [-1, 1], the general expression is
I=
f ( s )ds = H i f ( si )
1
(11.1)
f ( s)
f ( s2 ), H 2
-1
f ( s1 ), H1
0 l = 2
s2
s1
+1
where si are n selected points in the [-1, 1] interval and Hi are numerical coefficients depending on n, called integration weights. Two procedures can be applied:
The Newton - Cotes quadrature, where the si points are selected at equal intervals. For n = 2 it becomes the trapezes rule:
I=
while for n = 3 it becomes the Simpsons one-third rule: I= 1 [ f (1) + 4 f (0) + f (1)] 3
f(s)
f(-1)
f(+1)
a.
-1
+1
f(s)
f(-1)
f(0)
f(+1)
b.
-1
+1
113
The Gaussian quadrature, where the points si and the numerical coefficients Hi are located to aim for the best accuracy. Assuming a polynomial expression for f(s), it is easy to see that for n sampling points, 2n unknowns (Hi and si) should be specified. Hence, a polynomial of (2n - 1) degree can be defined and exactly integrated. A solution for choosing si and Hi can be obtained explicitly in terms of the Legendre polynomials (the process in frequently known as the Gauss Legendre quadrature). For example lets consider an n = 2 sampling points integration. The degree of the polynomial expression will be 2n - 1 = 3. The general polynomial form is
f ( s ) = a0 + a1s + a2 s 2 + a3 s 3 and the definite integral to be calculated
I=
(a
+ a1s + a2 s 2 + a3 s 3 ds
1 1
a ds = a (H s
0 0
1 1
1 1
+ H 2 s 2 ) = 2a 0 + H 2 s2 ) = 0
2 + H 2 s2 )=
1 1
a sds = a (H s
2 2 2
1 1
1 1
a s ds = a (H s
3 3 3
2 1 1
2 a2 3
a s ds = a (H s
3 1 1
3 + H 2 s2 =0
Finally, the sample points position si and the integration weights Hi are determined by solving the algebraic system. For the peculiar case, the solution for the unknowns is:
114
H1 = H 2 = 1
s1 =
1 3
s2 =
1 3
Similar procedures to find the (si, Hi) pairs can be applied for n = 3, 4 ... . The weight coefficients and the abscissas are tabulated. Generally, a onedimensional Gaussian rule with n points integrates exactly polynomials up to 2n 1 order. It is called the degree of the formula. The first one-dimensional Gaussian rules are represented in figure 11.3. The defined integrals have the following approximate values, for: - one integration point - two integration points - three integration points
1 1
1 1
1 1
1 1
f ( s, t ) d s d t = ds f ( s, t )dt
1 1
(11.2)
1 1
1 1
f ( s, t ) d s d t = H i H j f ( si , t j )
i =1 j =1
(11.3)
115
f (s)
f(0)
Approximate area
2f(0)
a.
-1 0 +1
f(s)
f ( s2 )
b.
-1
f ( s1 ) s1 = 0,577... +1
f(s)
s2 = 0,577... 0
f(s3)
-1
f(s1)
0
f(s2)
+1
c.
s2 = 3 5 s1= 0
s2 = 3 5
Fig. 11.3 One dimensional Gaussian integration rules: (a) one integration point; (b) two integration points; (c) three integration points
116
The most evident way to calculate the defined integral is to evaluate firstly the inner term, keeping t constant
I=
f ( s, t )ds = H i f ( si , t ) = (t )
1
(11.4)
(11.5) In the above example it was assumed to have the same number of integrating points on each direction, n = n1 = n2. Obviously, this is not compulsory and sometimes the use of a different number of integration points on each direction could be favorable. The two-dimensional Gaussian product rule with n = n1 = n2 = 2 is illustrated in figure 11.4.
t
s = 0,577...
+1
s = 0,577...
(s2 , t1 )
-1
(s2 , t1 )
t = 0,577...
+1
(s 2 , t 2 )
-1
(s1 , t1 )
t = 0,577...
117
The numerical integration over a cube with the edge length equal to 2, centered in the origin of coordinates system, is carried out using the same rules as for the 1D and the 2D space. Similarly, for an integrant defined over the cubic volume that can be reduced to the canonical form, we have:
1 1 1
1 1 1
f ( s, t , r )dsdtdr = H i H j H k f ( si , t j , rk )
i =1 j =1 k =1
(11.6)
The integration points position and the integration weights are determined by extending the one-dimensional procedures.
11.4 REQUIRED ORDER OF NUMERICAL INTEGRATION
The computing time for numerical integration can be quite significant especially in 3D analyses, where the BTEB matrices are large. Therefore, it is worthwhile to determine: - the minimum integration order required to provide convergence; - the integration order requirement to preserve the same convergence rate that would result by exact integration. For C0 class problems, the first derivatives may be, at limit, constant values (such as the components of internal deformation energy E = T d V ). Consequently, with the aim of accomplishing convergence, integrals such as T B EBdV should evaluate correctly the elements volume. Thus,
det Jdsdtdr
118
n=
m +1 2
(11.7)
Because the Jacobian is variable for distorted elements, the evaluation of m is not an easy task. Therefore, the numerical integration essentially relies on experiment.
119