Documente Academic
Documente Profesional
Documente Cultură
CHAPTER 3
DISCRETE APPROXIMATIONS
e = L – P.
Enlarging the number of sides the error decreases. The real length of the
circle is reached for n → ∞.
25
Chapter 3 Discrete Approximations___________________________________________
1
ln
8 2
α
d 7 3
α = 2π/n
ln = d sin
6 4
5
Fig. 3.1 Approximation of circle’s length by an n-sided polygon
is small enough for the desired purpose. To define the approximate function
ua(x) the following steps should be followed:
The function u(x, a1, a2, …, an) is usually chosen so that the integral or
differential operations should be easily applied, leading to polynomial
expression or to a solution of a differential equation.
Because the approximate function ua(x) is usually linear regarding to ai, the
general form may be
26
______________________Basics of the Finite Element Method Applied in Civil Engineering
a1
a
2
or u a ( x) = [P1 ( x) P2 ( x) ... Pn ( x)] . = P ⋅ a
.
a n
ua(x1) = u(x1) = u1
ua(x2) = u(x2) = u2
……………
ua(xn) = u(xn) = un
0 when i ≠ j
• because ua(xi) = ui the interpolation functions Ni =
1 when i = j
27
Chapter 3 Discrete Approximations___________________________________________
u(x = 0) = ua(x = 0) = a1 = 10
u(x = 1) = ua(x = 1) = a1 + a2 + a3 = 12
The physical parameter’s value in a certain point, x = 0.75 for instance, will
be
28
______________________Basics of the Finite Element Method Applied in Civil Engineering
d 2 u ( x)
= f ( x) for 0 ≤ x ≤ 1
dx 2
d 2u
= − a1π 2 sin(0.75π ) − 4a 2π 2 sin(1.5π ) = g ( x 2) = 0.25
dx 2 x2
5 1 3 1
This leads to a1 = ; a2 = and the final expression of the
4 2π
2
32 π 2
approximate function
5 1 3 1
u ( x ) ≈ u a ( x) = − 2
sin(πx) − sin(2πx)
4 2π 32 π 2
23 1
u a ( x = 0.25) = − = −0.0728
32 π 2
29
Chapter 3 Discrete Approximations___________________________________________
4 (x − x j )
N i ( x) = ∏
j =1 ( xi − x j )
j ≠i
x 1 1.5 2 3 4 5 6 7
77 1 1 1
N1 1 0 − − 0 0
192 3 4 6
N1
x1 x2 x3 x4 x
1.0 2.0 5.0 7.0
u u(x)
u1 u2 u4
ua uai(x)
u3
e(x)
x1 x2 x3 x4 x
Fig. 3.2 Graphs of polynomial N1, exact function u(x), approximate function ua(x)
and error distribution along the domain D ∈ [x1, x4]
30
______________________Basics of the Finite Element Method Applied in Civil Engineering
The exact function u(x), the approximate function ua(x) as well as the error
e(x) are represented in figure (3.2).
31
Chapter 3 Discrete Approximations___________________________________________
u
u2 u4
ua u1 u(x)
ua 2(x
)
3 (x )
1 x) u3 ua
ua ( uai(x)
1 x1 2 x2 3 x3 4 x4 x
D1 D2 D3
Fig. 3.3 Graphs of exact and approximate functions along the domain D
x − x2
where N1 = N1(x1) = 1 N1(x2) = 0
x1 − x2
x − x1
N2 = N2(x1) = 0 N2(x2) = 1
x2 − x1
x − x3 x − x2
where N1 = ; N2 = etc.
x2 − x3 x3 − x2
32
______________________Basics of the Finite Element Method Applied in Civil Engineering
x − x4 x − x3
where N1 = ; N2 = etc.
x3 − x4 x4 − x3
The approximate functions uae(x) and the shape functions Ni(x) are different
on each element De. The sum of functions ua1(x), ua2(x), ua3(x) gives the
approximate function on the complete domain D.
u a1( x ) u2
u1
x
x1 x2 x3 x4
Remarks
u ( x) ≈ u ( x, a1 , a 2 , a3 , a 4 ) = a1 + a 2 x + a3 x 2 + a 4 x 3
according to the known values of the exact function u(x); the same
steps should be followed as in Example 1, this time looking for four
ai parameters. Notice that the same approximation problem can be
solved by using either simple linear functions on discrete domains
(i.e. a larger number of functions) or a single polynomial function of
higher order on the whole domain.
33