methodofweightedresidualsinonedimension_3452

7
The method of weighted residuals: 1 dimension The finite element method originally evolved as a tool for computation of structural analysis problems. However, today it is applied to diverse research areas like machines, waveguides, semiconductor devices, EM radiation, etc. It is a powerful and versatile method. It can effectively handle problems including complex geometries and inhomogeneous media. Its greatest strength is that it is relatively easy to develop a general purpose computer program for solving a wide range of problems. The solution method is first meshed into small domains or elements. We may have one-dimenional, two-dimensional or three-dimensional elements depending on the dimension in which we seek a solution. We then need to derive the governing equation for a single typical element. Let us first discuss methods for doing just that. Method of weighted residuals Let us first look at the method of weighted residuals for ordinary differential equations. Let us, for the moment, limit ourselves to a one-dimensional problem. Let us consider the following sample problem: 0 ) 1 ( , 0 ) 0 ( 1 0 , 2 2 = = < < = u u x x u dx u d

Upload: manikanta-lalkota

Post on 22-Dec-2015

214 views

Category:

Documents


0 download

DESCRIPTION

methodofweightedresiduals

TRANSCRIPT

Page 1: methodofweightedresidualsinonedimension_3452

The method of weighted residuals: 1 dimension

The finite element method originally evolved as a tool for computation of structural analysis problems. However, today it is applied to diverse research areas like machines, waveguides, semiconductor devices, EM radiation, etc. It is a powerful and versatile method. It can effectively handle problems including complex geometries and inhomogeneous media. Its greatest strength is that it is relatively easy to develop a general purpose computer program for solving a wide range of problems.

The solution method is first meshed into small domains or elements. We may have one-dimenional, two-dimensional or three-dimensional elements depending on the dimension in which we seek a solution.

We then need to derive the governing equation for a single typical element. Let us first discuss methods for doing just that.

Method of weighted residuals

Let us first look at the method of weighted residuals for ordinary differential equations. Let us, for the moment, limit ourselves to a one-dimensional problem. Let us consider the following sample problem:

0)1(,0)0(

10,2

2

==

<<−=−

uu

xxudx

ud

Page 2: methodofweightedresidualsinonedimension_3452

1. In this method, the first step is to assume an arbitrary trial function with unknown coefficients. In this case, let us assume a trial function

The trial function is so chosen that it satisfies the boundary conditions, i.e. at x=0 and x=1.

The accuracy of the solution elsewhere in the domain, will, of course, depend on the choice of the trail function. This may be a difficult task, given that the nature of the solution is unknown. In any case, w would like to have a trial function that is simple.

2. Once a trial function is selected, the next step is to obtain the residual by substituting the trial function into the original equation.

With the exact solution, The residual should have been gone to zero. This does not happen with the trial function, since it does not satisfy the equation exactly except at the boundaries.

3. The next step is to determine the unknown constant ‘a’ such that trial function best approximates the exact solution over the entire domain. In the method of weighted residuals, this is done by choosing an appropriate weighting function ‘w’ and then setting the weighted average of the residual over the problem domain to zero.

4. The next step is to decide the weighting function. Various methods of weighted residuals use

different techniques to choose the weight function. In the Least squares method, 𝑤𝑤 = 𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑

.

However, in the Galerkin’s method, . So, for the chose problem above, And so the trial function reduces to This gives values which math reasonably well with the exact solution.

)1(~ xaxu −=

xxaxaxudx

udR +−−−=+−= )1(2~2

2

0})1(2{~~ 1

0

1

02

21

0∫∫∫ =+−−−=

+−== dxxxaxawdxxu

dxudwdxwRI

daudw~

=

)1( xxw −=

)1(2272.0~ xxu −=

Page 3: methodofweightedresidualsinonedimension_3452

Weak Formulation and Piecewise continuity Before applying the method of weighted residuals to Galerkins’ finite element formulation, we need to learn the concept of weak formulation. Continuing with the previous example, it may be noted that we applied the method of weighted residuals to the equation as is, without modifying it in any way. This is called the strong formulations. This then, in this case, required the evaluation of the weighted integral of the second order derivative ( the highest order of derivative in the given equation). i.e. Thus, we automatically impose the constraint that the integral of the highest order of the derivative in the equation must have a non-zero finite value i.e. the trial function in the above equation should be twice differentiable, and it second derivative should not vanish. This requirement can be reduced by attempting to reduce the order of the highest derivative. Applying integration by parts to the above term in the residual, we get As is obvious, the requirement now is only for the first order derivative. This formulation , in which, in integrating the weighted residual over the domain, the highest order of the derivative is reduced by one, is called the weak formulation. For a given trial function, both the strong and weak formulation would normally yield the same accuracy. The choice of the trial function presents a dilemma. Normally, in the absence of a knowledge of the exact solution, it is difficult to predict the nature of the trial function that would give the best approximations. But we have seen earlier, that a polynomial of any order might be well-approximated by a piecewise linear function, provided we the pieces are small and their number large. So therefore, to begin with, let us consider a piecewise linear function in one domain. Further, we choose the trial function as a combination of the above linear functions.

1

02

2~dx

dxudw

0~~~~~ 1

0

1

0

1

02

21

0∫∫∫ =

+

+−−=

+−==

dxudwdxxwuw

dxud

dxdwdxxu

dxudwdxwRI

≤≤−≤≤−

=Φ +++

−−

otherwise0for/)(for/)(

)( 111

1

iiii

iiiii

i xxxhxxxxxhxx

x

2211 )()()(~ axaxxu Φ+Φ=

Page 4: methodofweightedresidualsinonedimension_3452

The constants a1 and a2 are unknown constants that need to be determined.

𝑢𝑢� =

⎩⎪⎪⎨

⎪⎪⎧ 𝑑𝑑1 (3𝑥𝑥), 0 ≤ 𝑥𝑥 ≤

13

𝑑𝑑1(2− 3𝑥𝑥) + 𝑑𝑑2 (3𝑥𝑥 − 1),13≤ 𝑥𝑥 ≤

23

𝑑𝑑2 (3 − 3𝑥𝑥),23≤ 𝑥𝑥 ≤ 1

Using Galerkin’s method as before ( ),

we obtain the weight functions as

𝑤𝑤1 =

⎩⎪⎪⎨

⎪⎪⎧ (3𝑥𝑥), 0 ≤ 𝑥𝑥 ≤

13

(2 − 3𝑥𝑥),13≤ 𝑥𝑥 ≤

23

0,23≤ 𝑥𝑥 ≤ 1

And

𝑤𝑤2 =

⎩⎪⎪⎨

⎪⎪⎧ 0, 0 ≤ 𝑥𝑥 ≤

13

(3𝑥𝑥 − 1),13≤ 𝑥𝑥 ≤

23

(3 − 3𝑥𝑥),23≤ 𝑥𝑥 ≤ 1

Thus, we obtain a particular nature of weight functions.

Galerkin’s method of weighted residuals

Let us now look at the formulation of the Galerkin’s method of weight residuals in a systematic manner. Here, let us express the piecewise continuous functions in terms of the nodal variables, rather than in terms of generalized coefficients ( a1 and a2). Let us consider a typical linear one-dimensional element conained beten two nods. At the nodes ( xi and x i+1), the nodal variables ui and u i+1 are assigned.

daudw~

=

Page 5: methodofweightedresidualsinonedimension_3452

Let us also assume a linear trial function over the element.

Substituting the expressions for the coefficients thus obtained in the original linear trial function, we get

These will be called the shape functions and are identical to the weight functions obtained in the previous section.

Thus we can conclude the following about the nature of the shape functions.

21 cxcu +=

12111

21

)()(

+++ =+==+=

iii

iii

ucxcxuucxcxu

ii

iiii

ii

ii

xxxuxuc

xxuuc

−−

=

−−

=

+

++

+

+

1

112

1

11

iii

i

ii

i

ii

iiii

xxhh

xxxH

hxxxH

uxHuxHu

−=

−=

−=

+=

+

+

+

++

1

1

1

11

)(

)(

)()(

Page 6: methodofweightedresidualsinonedimension_3452

The shape function associated with node i has a unit value at node i and vanishes at other nodes. The variation over the element is linear.

The sum of all shape functions is unity.

Let us consider the following equation and apply the above method to this.

We obtain the residual in weak form, by using integration by parts, and then setting the integration of the weighted residual to zero.

We assume that

Written in matrix form, this is equivalent to:

𝑢𝑢 = [𝐻𝐻𝑖𝑖 𝐻𝐻𝑖𝑖+1] �𝑢𝑢𝑖𝑖𝑢𝑢𝑖𝑖+1

�=[𝐻𝐻][𝑢𝑢]

w=[𝐻𝐻]

In the above equation, we need to evaluate the derivatives of u and w.

Doing so, and putting in the above equation, we have

LHS=[𝐾𝐾𝑒𝑒][𝑢𝑢], where

0)(,1)( == jiii xHxH

1)(1

=∑=

xHn

ii

0)1()0(;0),(2

2

==<<=++ uuLxxfcudxdub

dxuda

LLL

dxduawdxxwfdxcwu

dxdubw

dxdu

dxdwa

000

)(∫∫

−=

++−

11 )()( +++= iiii uxHuxHu

[ ] [ ] [ ] [ ] dxHHHH

cHHHH

bHHHH

ai

i

x

x

e ∫+

+′′

+′′

′′

−=1

212

121

2

121

2

1K

Page 7: methodofweightedresidualsinonedimension_3452

Is the local stiffness matrix.

Further rhs=

is the local force vector.

[ ]

+

−−

+

−−=

2112

61111

21111 i

i

e chbhaK

.1)(if,11

2)(

1

2

1 =

=

= ∫+

xfhdxHH

xf ix

x

ei

i

F