




























































































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!





























































































c Copyright 1997 : Department of Engineering Science
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.
++ +
(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
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
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
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 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
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 =
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
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).
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
Substituting a, b, c and d back into the original cubic then gives
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).
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
@ u @ 1
3
@ u @ 1
4
@ u @ 2
1
@ u @ 2
2
@ u @ 2
3
@ u @ 2
4
@ 2 u @ 1 @ 2
1
@ 2 u @ 1 @ 2
2
@ 2 u @ 1 @ 2
3
@ 2 u @ 1 @ 2
4
where
0
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
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)