fea notes

5
2 Weighted Residual Methods Fundamental equations Consider the problem governed by the differential equation: Γu = ¯ f in D. (83) The above differential equation is solved by using the boundary conditions given as follows: u u on S u (84) t Bu = ¯ t on S t = S\S t . (85) where the boundary S consists of S u and S t . The boundary conditions given in eqs.(84) and (85) are called rigid and natural boundary conditions, or Dirichlet and Neumann boundary conditions, respectively. In most engineering problems, Γ and B are differential operators in the forms of Γ = ∇· Σ and B = n · Σ, where Σ is another differential operator and n is the normal vector on S t . For the Laplace problem, the governing equation is given by 2 u = ¯ f in D, (86) and the Neumann boundary condition on S t is given as t = n ·∇u = ¯ t. Then the differential operators Γ, B and Σ are defined by Γ = 2 , B = n ·∇ and Σ = , respectively. Trial functions Suppose that u is approximated by trial function ˜ u of ˜ u(x)= M J =1 N J (xu J (87) where ˆ u J are coefficients and N J (x) are linearly independent functions called trial bases, test functions or shape functions. Weighted residual Since the trial function ˜ u does not satisfy the governing equation and the boundary condition rigorously, the residuals defined in the following are nonzero R D (x) = −{Γ ˜ u(x)+ ¯ f (x)}6 =0 in D (88) R S (x) = ˜ u ¯ u(x) 6 = 0 on S u , or B ˜ u(x) ¯ t(x) 6=0 on S t . (89) The problem is to find ˜ u to make zero the residuals weighted by the appropriate function w(x) as follows: D w(x) · R D (x)dV + S w(x) · R S (x)dS =0 (90) where w(x) is called the weight function. Eq.(90) is also called a weak form to the original differentiral equation (83), called a strong form, because the solution that satisfies eq.(90) does not always satisfy the original differential equation (83) and the boundary condition (85). Substitution of eq.(87) into eq.(90) yields the following equation: D w I · R D dV + S w I · R S dS = D w I (x) · (ΓN J (xu J ¯ f (x))dV + S u w I (x) · (N J (xu J ¯ u(x))dS + S t w I (x) · (BN J (xu J ¯ t(x))dS = { D w I (x) · ΓN J (x)dV + Su w I (x)N J (x)dS + St w I (x) · BN J (x)dS } | {z } K IJ ˆ u J {∫ D w I (x) · ¯ f (x)dV + S u w I (xu(x)dS + S t w I (x) · ¯ t(x)dS } | {z } f I =0 (91) 13

Upload: deep-sharma

Post on 05-Jan-2016

214 views

Category:

Documents


1 download

DESCRIPTION

weighted residual method

TRANSCRIPT

Page 1: fea notes

2 Weighted Residual Methods

Fundamental equations Consider the problem governed by the differential equation:

Γu = −f in D. (83)

The above differential equation is solved by using the boundary conditions given as follows:

u = u on Su (84)t ≡ Bu = t on St = S\St. (85)

where the boundary S consists of Su and St. The boundary conditions given in eqs.(84) and (85) are calledrigid and natural boundary conditions, or Dirichlet and Neumann boundary conditions, respectively. Inmost engineering problems, Γ and B are differential operators in the forms of Γ = ∇ ·Σ and B = n ·Σ,where Σ is another differential operator and n is the normal vector on St.

For the Laplace problem, the governing equation is given by

∇2u = −f in D, (86)

and the Neumann boundary condition on St is given as t = n · ∇u = t. Then the differential operatorsΓ, B and Σ are defined by Γ = ∇2, B = n · ∇ and Σ = ∇, respectively.

Trial functions Suppose that u is approximated by trial function u of

u(x) =M∑

J=1

NJ(x)uJ (87)

where uJ are coefficients and NJ(x) are linearly independent functions called trial bases, test functionsor shape functions.

Weighted residual Since the trial function u does not satisfy the governing equation and the boundarycondition rigorously, the residuals defined in the following are nonzero

RD(x) = −{Γu(x) + f(x)} 6= 0 in D (88)RS(x) = u − u(x) 6= 0 on Su, or Bu(x) − t(x) 6= 0 on St. (89)

The problem is to find u to make zero the residuals weighted by the appropriate function w(x) asfollows: ∫

D

w(x) · RD(x)dV +∫

S

w(x) · RS(x)dS = 0 (90)

where w(x) is called the weight function. Eq.(90) is also called a weak form to the original differentiralequation (83), called a strong form, because the solution that satisfies eq.(90) does not always satisfy theoriginal differential equation (83) and the boundary condition (85).

Substitution of eq.(87) into eq.(90) yields the following equation:∫D

wI · RDdV +∫

S

wI · RSdS

=∫

D

wI(x) · (−ΓNJ(x)uJ − f(x))dV

+∫

Su

wI(x) · (NJ(x)uJ − u(x))dS +∫

St

wI(x) · (BNJ(x)uJ − t(x))dS

={−

∫D

wI(x) · ΓNJ(x)dV +∫

Su

wI(x)NJ(x)dS +∫

St

wI(x) · BNJ(x)dS

}︸ ︷︷ ︸

KIJ

uJ

−{∫

D

wI(x) · f(x)dV +∫

Su

wI(x)u(x)dS +∫

St

wI(x) · t(x)dS

}︸ ︷︷ ︸

f I

= 0 (91)

13

Page 2: fea notes

orKIJ uJ = f I . (92)

where M independent weight functions wI (I = 1, 2, . . . , M) are chosen. This equation can be solvedfor uJ . As shown in the sequel, there are several residual methods depending on the selection of weightfunctions.

It is not difficult to find trial functions u satisfying the boundary condition u = u on Su. In such acase, no residual exists on Su and the integrals on Su disappear in eq.(91). In the following sections, itis assumed that trial functions u satisfy u = u on Su.

2.1 Point collocation method

In the point collocation method, we select at least the same number of collocation points as the unknownparameters and determine the parameters uJ such that the residual is zero at the selected points.

The collocation method is equivalent to the residual method in which the weight function is chosen as

wI = 1δ(x − xI) (93)

where 1 denotes the unit matrix and δ(x) is the Dirac delta function satisfying the equations∫D

δ(x − xI)R(x)dV = R(xI), for xI ∈ D (94)

or ∫St

δ(x − xI)R(x)dS = R(xI), for xI ∈ St (95)

In this case, the matrix KIJ and the vector f I in eq.(92) can be expressed by

KIJ = −ΓNJ(xI) or BNJ(xI), f I = f(xI) or t(xI) (96)

2.2 Least squares method

In the least squares method, the sum of the squares of the residuals defined by

I =∫

D

R2DdV +

∫St

R2SdS (97)

is minimized.The necessary condition to minimize I is

∂I

∂uI= 0, I = 1, 2, . . . (98)

yielding the system of equations:∫D

RD · ∂RD

∂uIdV +

∫St

RS · ∂RS

∂uIdS = 0 (99)

or [∫D

ΓN I(x) · ΓNJ(x)dV +∫

St

BN I(x) · BNJ(x)dS

]︸ ︷︷ ︸

KIJ

uJ

−[−

∫D

ΓN I(x) · f(x)dV +∫

St

BN I(x) · t(x)dS

]︸ ︷︷ ︸

f I

= 0 (100)

As shown in the above equation, the least squares method is considered as a weighted residual methodwith the weight functions −ΓN I(x) in the domain D and BN I(x) on the boundary St.

14

Page 3: fea notes

2.3 Classical Galerkin method

If only the domain integral in eq.(91) is taken into account and the shape functions N I(x)wI are usedas the weight functions wI , where wI are arbitrary coefficients, then we have

M∑I=1

wI

M∑

J=1

{−

∫D

N I(x)ΓNJ(x)dV

}︸ ︷︷ ︸

KIJ

uJ −{∫

D

N I(x)f(x)dV

}︸ ︷︷ ︸

f I

= 0 (101)

2.4 Galerkin method

In the classical Galerkin method, the boundary condition is not considered. Therefore, the classicalGalerkin method is not convenient for practical use. Here the Galerkin method taking account of theboundary condition is formulated.

Consider the weighted residual as follows:∫D

w(x)(−Γu(x) − f(x))dV +∫

St

w(x)(Bu(x) − t(x))dS = 0. (102)

Here we assume that w is a weighted function satisfying w = 0 on Su and u satisfies the boundarycondition u = u on Su.

Since Γ = ∇ · Σ, the first integral in eq.(102) is written as∫D

w(x)Γu(x)dV =∫

D

w(x)∇ · Σu(x)dV

=∫

St

w(x)n · Σu(x)dS −∫

D

∇w(x) · Σu(x)dV

=∫

St

w(x)Bu(x)dS −∫

D

∇w(x) · Σu(x)dV (103)

where the divergence theorem is used. Note that in the above equation, the integral on Su vanishes dueto w = 0 on Su. Then eq.(102) becomes∫

D

∇w(x) · Σu(x)dV −∫

D

w(x)f(x)dV −∫

St

w(x)t(x)dS = 0. (104)

This equation has the weak form which involves the Neumann boundary condition on St, which can besolved under the Dirichlet boundary condition u = u and the constraint condition w = 0 on Su.

Now it is assumed that the trial function u is expressed by

u(x) =M∑

J=1

NJ(x)uJ + N0(x)u (105)

where NJ(x) and N0(x) are the shape functions equal to zero and one on the boundary Su, respectively.Also the weight function w is selected as

w(x) = N I(x)wI (106)

where N I(x) is the same shape function used in eq.(105). Then the conditions u = u and w = 0 on Su

are satisfied.Substitution of eqs.(105) and (106) into eq.(104) yields

M∑I=1

wI

M∑

J=1

∫D

∇N I(x) · ΣNJ(x)dV︸ ︷︷ ︸KIJ

uJ

−(∫

D

N I(x)f(x)dV −∫

D

∇N I(x) · ΣN0(x)dV u +∫

St

N I(x)t(x)dS

)︸ ︷︷ ︸

fI

= 0. (107)

15

Page 4: fea notes

Example 2.1 Consider the solution u satisfying the equation

d2u

dx2+ f0 = 0 0 ≤ x ≤ l (108)

subjected to the boundary conditions

u = 0 at x = 0, du/dx = f0l at x = l. (109)

The exact solution for the above problem is u(x) = f0x(2l − x/2) and the value at x = l/2, u(l/2),is obtained as u(l/2) = f0l/2(2l − x/4) = f07l2/8.

Now the boundary value problem mentioned above is solved by means of both the classical Galerkinmethod and the Galerkin method assuming that the solution is approximated by u(x) = N1(x)u1,where N1(x) = x(2l − x). Note that the approximated function is slightly different from the exactsolution.

Classical Galerkin method For N1(x) = x(2l − x) and ΓN1(x) = d2N1(x)/dx2 = −2, eq.(101)becomes ∫ l

0

x(2l − x)(−2)dxu1 +∫ l

0

x(2l − x)f0dx = 0 (110)

From eq.(110), we obtained u1 = f0/2. The solution u(x) is obtained by u(x) = f0x(2l−x)/2.At x = l/2, u(l/2) = 3/8f0l

2, which is much different from the exact solution u(l/2) = 7/8f0l2.

Galerkin method From eq.(107), the following equation based on the Galerkin method is formu-lated. ∫ l

0

dN1

dx

dN1

dxdxu1 −

(∫ l

0

N1(x)f0dx + N1(1)f0l

)= 0 (111)

Substitution of N1(x) = x(2l − x) into the above equation yields∫ l

0

2(l − x)2(l − x)dxu1 −

(∫ l

0

(2xl − x2)f0dx + l(2l − l)f0l

)= 0, (112)

from which u1 = 5f0/4. Hence, u(x) = 5f0x(2l − x)/4. Also at x = l/2, u(l/2) = 15/16f0l2.

Thus we can conclude that the Galerkin method with the boundary condition gives a valuecloser to the exact solution than the classical Galerkin method, in which no boundary conditionis considered.

Example 2.2 Solve the governing equation

d2u

dx2+ 1 = 0 0 ≤ x ≤ 1 (113)

by using the Galerkin method with the trial function u(x) =∑2

J=1 NJ(x)uJ , where NJ(x) = xJ .The boundary conditions are given by u(0) = 0 and du/dx(1) = 20.

The Galerkin method yields the following equation for the above mentioned problem:

M∑I=1

wI

M∑

J=1

∫ 1

0

dN I

dx

dNJ

dxdx︸ ︷︷ ︸

KIJ

uJ

−(∫ 1

0

N I(x)fdx −∫ 1

0

dN I

dx

dN0

dxdxu + N I(1)t

)︸ ︷︷ ︸

fI

= 0 (114)

where f = 1, u = 0, t = 20, M = 2, N1(x) = x and N2(x) = x2. The calculation of the matrixKIJ and the vector fI leads to the equations[

1 11 4/3

]{u1

u2

}=

{20 1

220 1

3

}(115)

which can be solved for uJ (J = 1, 2).

16

Page 5: fea notes

Problem 2.1 Consider the governing equation

d2u

dx2− u = 0 0 ≤ x ≤ 1 (116)

subjected to the boundary condition u(0) = 0 and du/dx(1) = 20. Solve the problemby using the Galerkin method with the trial function u(x) =

∑2J=1 NJ(x)uJ , where

NJ(x) = xJ .

Problem 2.2 Derive the weak form based on the Galerkin method for the multi-dimensionalLaplace problem, for which the governing equation is given by

∇ · ∇u = −f in D (117)

and the boundary conditions are as follows.

u = u on Su (118)t ≡ n · ∇u = t on St = S\Su (119)

Problem 2.3 Solve the same problem as Problem 1.9.1 using the weak form.

17