Docsity

Hunter P. - Finite Element Method - Boundary Element Method, Notas de estudo de Engenharia Mecânica

Pré-visualização parcial do texto

Baixe Hunter P. - Finite Element Method - Boundary Element Method e outras Notas de estudo em PDF para Engenharia Mecânica, somente na Docsity!

FEM/BEM NOTES

Professor Peter Hunter

[email protected]

Associate Professor Andrew Pullan

[email protected]

Department of Engineering Science

The University of Auckland

New Zealand

February 21, 2001

c Copyright 1997 : Department of Engineering Science

  • 1 Finite Element Basis Functions
    • 1.1 Representing a One-Dimensional Field
    • 1.2 Linear Basis Functions
    • 1.3 Basis Functions as Weighting Functions
    • 1.4 Quadratic Basis Functions
    • 1.5 Two- and Three-Dimensional Elements
    • 1.6 Higher Order Continuity
    • 1.7 Triangular Elements
    • 1.8 Curvilinear Coordinate Systems
    • 1.9 CMISS Examples
  • 2 Steady-State Heat Conduction
    • 2.1 One-Dimensional Steady-State Heat Conduction
      • 2.1.1 Integral equation
      • 2.1.2 Integration by parts
      • 2.1.3 Finite element approximation
      • 2.1.4 Element integrals
      • 2.1.5 Assembly
      • 2.1.6 Boundary conditions
      • 2.1.7 Solution
      • 2.1.8 Fluxes
    • 2.2 An x-Dependent Source Term
    • 2.3 The Galerkin Weight Function Revisited
    • 2.4 Two and Three-Dimensional Steady-State Heat Conduction
    • 2.5 Basis Functions - Element Discretisation
    • 2.6 Integration
    • 2.7 Assemble Global Equations
    • 2.8 Gaussian Quadrature
    • 2.9 CMISS Examples
  • 3 The Boundary Element Method
    • 3.1 Introduction
    • 3.2 The Dirac-Delta Function and Fundamental Solutions
      • 3.2.1 Dirac-Delta function
      • 3.2.2 Fundamental solutions
    • 3.3 The Two-Dimensional Boundary Element Method ii CONTENTS
    • 3.4 Numerical Solution Procedures for the Boundary Integral Equation
    • 3.5 Numerical Evaluation of Coefficient Integrals
    • 3.6 The Three-Dimensional Boundary Element Method
    • 3.7 A Comparison of the FE and BE Methods
    • 3.8 More on Numerical Integration
      • 3.8.1 Logarithmic quadrature and other special schemes
      • 3.8.2 Special solutions
    • 3.9 The Boundary Element Method Applied to other Elliptic PDEs
    • 3.10 Solution of Matrix Equations
    • 3.11 Coupling the FE and BE techniques
    • 3.12 Other BEM techniques
      • 3.12.1 Trefftz method
      • 3.12.2 Regular BEM
    • 3.13 Symmetry
    • 3.14 Axisymmetric Problems
    • 3.15 Infinite Regions
    • 3.16 Appendix: Common Fundamental Solutions
      • 3.16.1 Two-Dimensional equations
      • 3.16.2 Three-Dimensional equations
      • 3.16.3 Axisymmetric problems
    • 3.17 CMISS Examples
  • 4 Linear Elasticity
    • 4.1 Introduction
    • 4.2 Truss Elements
    • 4.3 Beam Elements
    • 4.4 Plane Stress Elements
    • 4.5 Navier’s Equation
    • 4.6 Note on Calculating Nodal Loads
    • 4.7 Three-Dimensional Elasticity
    • 4.8 Integral Equation
    • 4.9 Linear Elasticity with Boundary Elements
    • 4.10 Fundamental Solutions
    • 4.11 Boundary Integral Equation
    • 4.12 Body Forces (and Domain Integrals in General)
    • 4.13 CMISS Examples
  • 5 Transient Heat Conduction
    • 5.1 Introduction
    • 5.2 Finite Differences
      • 5.2.1 Explicit Transient Finite Differences
      • 5.2.2 Von Neumann Stability Analysis
      • 5.2.3 Higher Order Approximations
    • 5.3 The Transient Advection-Diffusion Equation
    • 5.4 Mass lumping CONTENTS iii
    • 5.5 CMISS Examples
  • 6 Modal Analysis
    • 6.1 Introduction
    • 6.2 Free Vibration Modes
    • 6.3 An Analytic Example
    • 6.4 Proportional Damping
    • 6.5 CMISS Examples
  • 7 Domain Integrals in the BEM
    • 7.1 Achieving a Boundary Integral Formulation
    • 7.2 Removing Domain Integrals due to Inhomogeneous Terms
      • 7.2.1 The Galerkin Vector technique
      • 7.2.2 The Monte Carlo method
      • 7.2.3 Complementary Function-Particular Integral method
    • 7.3 Domain Integrals Involving the Dependent Variable
      • 7.3.1 The Perturbation Boundary Element Method
      • 7.3.2 The Multiple Reciprocity Method
      • 7.3.3 The Dual Reciprocity Boundary Element Method
  • 8 The BEM for Parabolic PDES
    • 8.1 Time-Stepping Methods
      • 8.1.1 Coupled Finite Difference - Boundary Element Method
      • 8.1.2 Direct Time-Integration Method
    • 8.2 Laplace Transform Method
    • 8.3 The DR-BEM For Transient Problems
    • 8.4 The MRM for Transient Problems
    • Bibliography

Chapter 1

Finite Element Basis Functions

1.1 Representing a One-Dimensional Field

Consider the problem of finding a mathematical expression u (x) to represent a one-dimensional field e.g., measurements of temperature u against distance x along a bar, as shown in Figure 1.1a.

  • ++ + + + ++ + +

x x

u u

(a)

(b)

++ +

F IGURE 1.1: (a) Temperature distribution u (x) along a bar. The points are the measured temperatures. (b) A least-squares polynomial fit to the data, showing the unacceptable oscillation between data points.

One approach would be to use a polynomial expression u (x) = a + bx + cx^2 + dx^3 + : : : and to estimate the values of the parameters a, b, c and d from a least-squares fit to the data. As the degree of the polynomial is increased the data points are fitted with increasing accuracy and polynomials provide a very convenient form of expression because they can be differentiated and integrated readily. For low degree polynomials this is a satisfactory approach, but if the polynomial order is increased further to improve the accuracy of fit a problem arises: the polynomial can be made to fit the data accurately, but it oscillates unacceptably between the data points, as shown in Figure 1.1b. To circumvent this, while retaining the advantages of low degree polynomials, we divide the bar into three subregions and use low order polynomials over each subregion - called elements. For later generality we also introduce a parameter s which is a measure of distance along the bar. u is plotted as a function of this arclength in Figure 1.2a. Figure 1.2b shows three linear polynomials in s fitted by least-squares separately to the data in each element.

2 F INITE E LEMENT B ASIS F UNCTIONS

++ +

(b)

s

u

s

u

(a)

F IGURE 1.2: (a) Temperature measurements replotted against arclength parameter s. (b) The s domain is divided into three subdomains, elements , and linear polynomials are independently fitted to the data in each subdomain.

1.2 Linear Basis Functions

A new problem has now arisen in Figure 1.2b: the piecewise linear polynomials are not continuous in u across the boundaries between elements. One solution would be to constrain the parameters a, b, c etc. to ensure continuity of u across the element boundaries, but a better solution is to replace the parameters a and b in the first element with parameters u 1 and u 2 , which are the values of u at the two ends of that element. We then define a linear variation between these two values by

u ( ) = (1  ) u 1 +  u 2

where  (0    1) is a normalized measure of distance along the curve. We define

' 1 ( ) = 1  ' 2 ( ) = 

such that

u ( ) = ' 1 ( ) u 1 + ' 2 ( ) u 2

and refer to these expressions as the basis functions associated with the nodal parameters u 1 and u 2. The basis functions ' 1 ( ) and ' 2 ( ) are straight lines varying between 0 and 1 as shown in Figure 1.3. It is convenient always to associate the nodal quantity un with element node n and to map the temperature U defined at global node  onto local node n of element e by using a connectivity matrix  (n; e) i.e.,

un = U( n;e)

where  (n; e) = global node number of local node n of element e. This has the advantage that the

4 F INITE E LEMENT B ASIS F UNCTIONS

the temperature field u is implicitly continuous. Similarly, in the third element u is interpolated by

u ( ) = ' 1 ( ) u 1 + ' 2 ( ) u 2 (1.3)

with u 1 = U 3 and u 2 = U 4 , with the parameter U 3 being shared between the second and third elements. Figure 1.6 shows the temperature field defined by the three interpolations (1.1)–(1.3).

  • (^) + + + + +

node 1

node 2

u

s

+^ node^4

node 3

element 1 element 2 element 3

F IGURE 1.5: Temperature measurements fitted with nodal parameters and linear basis functions. The fitted temperature field is now continuous across element boundaries.

1.3 Basis Functions as Weighting Functions

It is useful to think of the basis functions as weighting functions on the nodal parameters. Thus, in element 1

at  = 0 u (0) = (1 0) u 1 + 0 u 2 = u 1

which is the value of u at the left hand end of the element and has no dependence on u 2

at  =

u

u 1 +

u 2 =

u 1 +

u 2

which depends on u 1 and u 2 , but is weighted more towards u 1 than u 2

at  =

u

u 1 +

u 2 =

u 1 +

u 2

which depends equally on u 1 and u 2

at  =

u

u 1 +

u 2 =

u 1 +

u 2

1.3 B ASIS F UNCTIONS AS W EIGHTING F UNCTIONS 5

which depends on u 1 and u 2 but is weighted more towards u 2 than u 1

at  = 1 u (1) = (1 1) u 1 + 1 u 2 = u 2

which is the value of u at the right hand end of the region and has no dependence on u 1. Moreover, these weighting functions can be considered as global functions, as shown in Fig- ure 1.6, where the weighting function wn associated with global node n is constructed from the basis functions in the elements adjacent to that node.

(a)

w 3

s

s

s

s

w 4

(b)

(c)

(d)

w 1

w 2

F IGURE 1.6: (a) : : : (d) The weighting functions wn associated with the global nodes n = 1 : : : 4 , respectively. Notice the linear fall off in the elements adjacent to a node. Outside the immediately adjacent elements, the weighting functions are defined to be zero.

For example, w 2 weights the global parameter U 2 and the influence of U 2 falls off linearly in the elements on either side of node 2. We now have a continuous piecewise parametric description of the temperature field u ( ) but in order to define u (x) we need to define the relationship between x and  for each element. A convenient way to do this is to define x as an interpolation of the nodal values of x. For example, in element 1

x ( ) = ' 1 ( ) x 1 + ' 2 ( ) x 2 (1.4)

and similarly for the other two elements. The dependence of temperature on x, u (x), is therefore

1.4 Q UADRATIC B ASIS F UNCTIONS 7

1.4 Quadratic Basis Functions

The essential property of the basis functions defined above is that the basis function associated with a particular node takes the value of 1 when evaluated at that node and is zero at every other node in the element (only one other in the case of linear basis functions). This ensures the linear independence of the basis functions. It is also the key to establishing the form of the basis functions for higher order interpolation. For example, a quadratic variation of u over an element requires three nodal parameters u 1 , u 2 and u 3

u ( ) = ' 1 ( ) u 1 + ' 2 ( ) u 2 + ' 3 ( ) u 3 (1.5)

The quadratic basis functions are shown, with their mathematical expressions, in Figure 1.8. Notice that since ' 1 ( ) must be zero at  = 0 : 5 (node 2 ), ' 1 ( ) must have a factor ( 0 :5) and since it is also zero at  = 1 (node 3 ), another factor is ( 1). Finally, since ' 1 ( ) is 1 at  = 0 (node 1 ) we have ' 1 ( ) = 2 ( 0 :5) ( 1). Similarly for the other two basis functions.



 1

1

0

0

' 2 ( )

' 3 (  )

(c) ' 3 (  ) = 2  ( 0 :5)

(b) ' 2 ( ) = 4  ( 1)

0 : 5

1

0 : 5 1

(a) ' 1 ( ) = 2 ( 0 :5) ( 1)

 0

1

1

' 1 ( )

0 : 5

F IGURE 1.8: One-dimensional quadratic basis functions.

1.5 Two- and Three-Dimensional Elements

Two-dimensional bilinear basis functions are constructed from the products of the above one- dimensional linear functions as follows

8 F INITE E LEMENT B ASIS F UNCTIONS

Let

u ( 1 ;  2 ) = ' 1 ( 1 ;  2 ) u 1 + ' 2 ( 1 ;  2 ) u 2 + ' 3 ( 1 ;  2 ) u 3 + ' 4 ( 1 ;  2 ) u 4

where

' 1 ( 1 ;  2 ) = (1  1 ) (1  2 ) ' 2 ( 1 ;  2 ) =  1 (1  2 ) ' 3 ( 1 ;  2 ) = (1  1 )  2 ' 4 ( 1 ;  2 ) =  1  2

Note that ' 1 ( 1 ;  2 ) = ' 1 ( 1 )' 1 ( 2 ) where ' 1 ( 1 ) and ' 1 ( 2 ) are the one-dimensional quadratic basis functions. Similarly, ' 2 ( 1 ;  2 ) = ' 2 ( 1 )' 1 ( 2 ) : : : etc. These four bilinear basis functions are illustrated in Figure 1.9.

node 4

 1

node 3

node 2

node 1

F IGURE 1.9: Two-dimensional bilinear basis functions.

Notice that 'n ( 1 ;  2 ) is 1 at node n and zero at the other three nodes. This ensures that the temperature u ( 1 ;  2 ) receives a contribution from each nodal parameter un weighted by 'n ( 1 ;  2 ) and that when u ( 1 ;  2 ) is evaluated at node n it takes on the value un. As before the geometry of the element is defined in terms of the node positions (xn ; yn ), n =

10 F INITE E LEMENT B ASIS F UNCTIONS

nodes (see Figure 1.11) with basis functions

F IGURE 1.11: An 8 -node trilinear element.

1.6 Higher Order Continuity

All the basis functions mentioned so far are Lagrange^1 basis functions and provide continuity of u across element boundaries but not higher order continuity. Sometimes it is desirable to use basis functions which also preserve continuity of the derivative of u with respect to  across element

boundaries. A convenient way to achieve this is by defining two additional nodal parameters

du d

n

. The basis functions are chosen to ensure that

du d (^)  =

du d

1

= u^01 and

du d (^)  =

du d

2

= u^02

and since un is shared between adjacent elements derivative continuity is ensured. Since the num- ber of element parameters is 4 the basis functions must be cubic in . To derive these cubic

(^1) Joseph-Louis Lagrange (1736-1813).

1.6 H IGHER O RDER C ONTINUITY 11

Hermite^2 basis functions let

u ( ) = a + b + c 2 + d 3 ; du d

= b + 2 c + 3 d 2 ;

and impose the constraints

u (0) = a = u 1 u (1) = a + b + c + d = u 2 du d

(0) = b = u

0 1 du d

(1) = b + 2 c + 3 d = u

0 2

These four equations in the four unknowns a, b, c and d are solved to give

a = u 1 b = u^01

c = 3 u 2 3 u 1 2 u^01 u^02

d = u^01 + u^02 + 2 u 1 2 u 2

Substituting a, b, c and d back into the original cubic then gives

u ( ) = u 1 + u^01  + (3u 2 3 u 1 2 u^01 u^02 )  2 + (u^01 + u^02 + 2 u 1 2 u 2 )  3

or, rearranging,

u ( ) = 01 ( ) u 1 + 11 ( ) u^01 + 02 ( ) u 2 + 12 ( ) u^02 (1.14)

where the four cubic Hermite basis functions are drawn in Figure 1.12. One further step is required to make cubic Hermite basis functions useful in practice. The

derivative

du d

n

defined at node n is dependent upon the element  -coordinate in the two ad-

jacent elements. It is much more useful to define a global node derivative

du ds

n

where s is

arclength and then use

du d

n

du ds

( n;e)

ds d

n

where

ds d

n

is an element scale factor which scales the arclength derivative of global node

(^2) Charles Hermite (1822-1901).

1.6 H IGHER O RDER C ONTINUITY 13

node 3 node 4

node 2

node 1

@ u @  1

1

@ u @  1

3

F IGURE 1.13: Interpolation of nodal derivative @ u @  1

along side 1–3.

The bicubic interpolation of these nodal parameters is given by

u ( 1 ;  2 ) = 01 ( 1 ) 01 ( 2 ) u 1 + 02 ( 1 ) 01 ( 2 ) u 2

  • 01 ( 1 ) 02 ( 2 ) u 3 + 02 ( 1 ) 02 ( 2 ) u 4

  • 11 ( 1 ) 01 ( 2 )

@ u @  1

1

@ u @  1

2

  • 11 ( 1 ) 02 ( 2 )

@ u @  1

3

@ u @  1

4

  • 01 ( 1 ) 11 ( 2 )

@ u @  2

1

@ u @  2

2

  • 01 ( 1 ) 12 ( 2 )

@ u @  2

3

@ u @  2

4

  • 11 ( 1 ) 11 ( 2 )

@ 2 u @  1 @  2

1

@ 2 u @  1 @  2

2

  • 11 ( 1 ) 12 ( 2 )

@ 2 u @  1 @  2

3

@ 2 u @  1 @  2

4

14 F INITE E LEMENT B ASIS F UNCTIONS

where

0

1 (^ )^ =^1 ^3 ^

1

1 (^ )^ =^ ^ (^ ^ 1)

2 0 2 (^ )^ =^ ^

1 2 (^ )^ =^ ^

are the one-dimensional cubic Hermite basis functions (see Figure 1.12). As in the one-dimensional case above, to preserve derivative continuity in physical x-coordinate space as well as in  -coordinate space the global node derivatives need to be specified with respect to physical arclength. There are now two arclengths to consider: s 1 , measuring arclength along the  1 -coordinate, and s 2 , measuring arclength along the  2 -coordinate. Thus

@ u @  1

n

@ u @ s 1

(n;e)

@ s 1 @  1

n

@ u @  2

n

@ u @ s 2

(n;e)

@ s 2 @  2

n

@ 2 u @  1 @  2

n

@ 2 u @ s 1 @ s 2

(n;e)

ds 1 d 1

n

ds 2 d 2

n

where

ds 1 d 1

n

and

ds 2 d 2

n

are element scale factors which scale the arclength derivatives of

global node  to the  -coordinate derivatives of element node n. The bicubic Hermite basis is a powerful shape descriptor for curvilinear surfaces. Figure 1. shows a four element bicubic Hermite surface in 3D space where each node has the following twelve parameters

x;

@ x @ s 1

@ x @ s 2

@ 2 x @ s 1 @ s 2

; y ;

@ y @ s 1

@ y @ s 2

@ 2 y @ s 1 @ s 2

; z ;

@ z @ s 1

@ z @ s 2

and

@ 2 z @ s 1 @ s 2

1.7 Triangular Elements

Triangular elements cannot use the  1 and  2 coordinates defined above for tensor product elements ( i.e., two- and three- dimensional elements whose basis functions are formed as the product of one- dimensional basis functions). The natural coordinates for triangles are based on area ratios and are called Area Coordinates. Consider the ratio of the area formed from the points 2 , 3 and P (x; y ) in Figure 1.15 to the total area of the triangle

L 1 =

Area < P 23 > Area < 123 >

1 x y 1 x 2 y 2 1 x 3 y 3

= = (a 1 + b 1 x + c 1 y ) = (2)