Docsity

Galerkin Finite Element Method: Solving Boundary Value Problems, Study notes of Mathematics

Partial preview of the text

Download Galerkin Finite Element Method: Solving Boundary Value Problems and more Study notes Mathematics in PDF only on Docsity!

For boundary value problem:Find

u

such that

2 u

f in Ω u

g D on

D and ∂u ∂n

g N on

N

The weak form is:Find

u

∈ H

1 E

such that

Ω

u

v

Ω vf

∂ Ω N vg N for all v

∈ H

1 E 0

H

1 E

u

∈ H

1

u

g D on

D

H

1 E 0

v

∈ H

1

v = 0 on

D

To illustrate: 1-dimension problem:Find

u

such that −

u ′′

f

in

a, b

u

a

α, u ′

b

β

which has weak form (see exercises)Find

u

u

a, b

R

u, u ′

L

2

a, b

, u

a

α

such that

b a u ′ v ′

βv

b

b a vf

for all

v

v

a, b

R

v, v ′

L

2

a, b

, v

a

Define

S

0

⊂ H

1 E 0

v

a, b

R

v, v ′

L

2

a, b

, v

a

by choosing a basis

φ 1 , φ 2 ,... , φ n

for

S

0

and choose also a function

φ 0

which satisfies

φ 0

a

and seek

u h

αφ 0

x

n ∑ j = u j φ j

x

∈ H

1 E

such that

b a u ′ h v ′

βv

b

b a vf

for all

v

S

0

Now

b a

αφ ′ 0

x

n ∑ j = u j φ ′ j

x

φ ′ i

x )d x = βφ i

b

b a φ i

x

f

x )d x, for i

,... , n

is the system of linear equations

A

u = f

where

A

a i,j

, a i,j

b a φ ′ i

x

φ ′ j

x )d x, u = (u 1

u 2

u n

T

and

f = (f 1

f 2

f n

T

with

f i

βφ i

b

b a φ i

x

f

x )d x

b a αφ ′ 0

x

φ ′ i

x )d x

If

A

R

n × n

is invertible, then solution of the linear system

gives

u = (u 1

u 2

u n

T

and hence the Galerkin

approximate solution

u h

αφ 0

x

n ∑ j = u j φ j

x

In this case

S

0

span

φ 1 , φ 2 ,... , φ n

is the vector space

of continuous piecewise linear functions on the givenpartition which are zero at the end point

a

In fact it is clear that if

v

x

n ∑ j = v j φ j

x

then

v

x k ) = v k

with this basis because

φ j

x k

j

k 0

j

k

A consequence of this property of this particular basis isthat the matrix

A

a i,j

, a i,j

b a φ ′ i

x

φ ′ j

x )d x,

has as many zero entries as possible: in fact

b a φ ′ i φ ′ j

unless

j

i

or

j

i

or

j

i

, ie. the matrix

A

is

tridiagonal

Any alternative basis for

S

0

would generally yield a matrix

A

with more non-zero entries, though the Galerkin solution

would be the same.