Академический Документы
Профессиональный Документы
Культура Документы
Discrtisation
par diffrences finies
du laplacien
aot 2007
@Eric Lunville
Diffrences finies
u : R R fonction C 3
h2
u(x + h) = u(x) + hu (x) + u (x) + O(h3 )
2
h2
u(x + h) u(x)
+ O(h)
h
u(x) u(x h)
u (x) =
+ O(h)
h
u (x) =
u(x + h) u(x h)
u (x) =
+ O(h2 )
2h
ordre 2, centr
1
u(x+h)u(x)
h
u(x+h)u(x)
h
u (x)
u (x)
x
x+h
x+h
u(x + h) u(x) h
u (x) =
+ u (x ) x [x, x + h]
h
2
bonne approximation si h petit et sup u () petit
[x,x+h]
Eq. de Laplace 1D
si u est C 4
2
2u(x)
u(x
+
h)
u(x
h)
h
(4)
u
u (x) =
+
(x + h) ]1, 1[
2
h
12
Rmq :
(4)
= f et
x[0,1]
Discrtisation de lquation
decoupage de lintervalle [0, 1]
1
N+1
xi = ih
xN +1 = 1
x0 = 0
pour i = 1, N
schema `
a 3 points (ui1 , ui , ui+1 )
Forme matricielle
1
h2
1
h2
...
1
h2
...
1
h2
1
h2
(2u1 u2 ) = f1
i=1
(2u2 u1 u3 ) = f2
i=2
(2uN 1 uN uN 2 ) = fN 1
i=N 1
(2uN uN 1 ) = fN =
i=N
AU = F
1
A= 2
h
1
2
..
..
.
..
..
..
2
1
1
2
tridiagonale symtrique
elimination de
u0 et uN +1
u1
u2
..
.
U =
uN 1
uN
f1
f2
..
.
F =
fN 1
fN
Proprit fondamentale
A est une matrice tridiagonale symetrique denie positive (donc inversible)
dms :
2
h AV , V
=h
i=1
vi A V
= v1 (2v1 v2 ) +
i
i=N
i=2
2
v12 + vN
+
i=N1
(vi vi1 )2 0
i=2
A V , V = 0 v1 = vN = 0 et vi vi1 = 0 vi = 0 i = 1, N
elements propres de A
Wk =
ik
sin
N + 1 i=1,N
k
k = 2 1 cos
N +1
>0
k = 1, N
(2 sin ikh sin(i + 1)kh sin(i 1)kh = 2 sin ikh (1 cos kh))
Wk
base orthogonale.
k=1,N
Estimation derreur
erreur ei = ui u(xi )
Theor`eme : si f C 2 alors
h2
sup |f (x)|
E = sup |ei |
96 x[O,1]
i=1,N
dms : voir polycopie
convergence ponctuelle `
a lordre 2
Remarque : si f C 0 alors u C 2 et on peut seulement montrer que :
lim E
h0
=0
u = f
u=0
dans
sur
u=0
u = f
Approximation a
` lordre 2 du laplacien
u(x) =
u=0
u=0
u=0
Gnralisation en dimension 2
(u C 4 ())
yj = jh
Mij
1
(4uij ui+1,j ui1,j ui,j+1 ui,j1 ) = fij 1 i, j n
2
h
uij = 0
i = 0 ou i = n + 1 ou j = 0 ou j = n + 1
fij = f (xi , yj )
i, j + 1
schema `
a 5 points
i 1, j
i, j
i, j 1
i + 1, j
9
Forme matricielle
u1j
Uj = ... Fj =
unj
U1
.
U = .. F =
Un
f1j
.. vecteurs de dimension n
.
fnj
F1
.. vecteurs de dimension n2
.
Fn
2
1
A= 2
h
I
B
..
.
..
..
..
..
B
I
I
B
AU = F
B =
1
4
..
..
..
..
..
4
1
1
4
tridiagonale symetrique
10
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
h2 A =
4
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
Proprietes de lapproximation
A est une matrice symetrique denie positive (donc inversible)
dms :
h2 A V , V
= V1 + Vn +
Vj Vj+1 2
j=1,n1
2
+h
(BVj , Vj )
j=1,n
Si u C 4 () on a lestimation derreur :
sup |uij u(xi , yj )| C0 h2
i,j
dms complexe
moins bonne convergence si u est moins regulier
12
Extensions
autre schema
u(x)
j+1
4u(x, y)
1
u(x + h, y + h) u(x + h, y h)
=
2
2h
u(x h, y + h) u(x h, y h)
+O(h2 )
schema `
a 5 points en croix
j
j1
i1 i i+1
j+2
schema `
a 5 points en 1D
j+1
j
i2 i1 i i+1 i+2
j1
j2
Idem en dimension 3
schema `
a 9 points en 2D
13
en 1D
equation i = 1 :
equation i = n :
u (x) = f (x)
u(0) = g0 u(1) = g1
x ]0, 1[
2u2 u2 u0
2u2 u2
g0
= f1
= f1 + 2
2
2
h
h
h
2un un1 un+1
2un un1
g1
= fn
= f1 + 2
h2
h2
h
g0
1 .
A U = F + 2 ..
h
g1
meme principe en dimension superieure
14
condition de Neumann
en 1D
schema dordre 2
pour i = 1, N
manque 2 equations
approximation dordre 1 :
u(h) u(0)
+ O(h) u1 = u0
0 = u (0) =
h
u(1) u(1 h)
0 = u (1) =
+ O(h) uN +1 = uN
h
approximation dordre 2 (en utilisant l
equation)
u(h) = u(0) + hu (0) + 12 h2 u (0) + O(h3 )
= u(0) + hu (0) + 12 h2 (u(0) f (0)) + O(h3 )
u1 = u0 + 12 h2 (u0 f0 )
uN = uN+1 + 12 h2 (uN +1 fN +1 )
15
en dimension 2
n = y
n normale sortante
n u = u, n
n = x
1
n = y
condition de Neumann en y = 0
u(h, y)
3
1 2 2
= u(0, y) + hx u(0,
y)
+
h
u(0,
y)
+
O(h
)
x
2
2
2
3
= u(0, y) + 12 h u f y u(0, y) + O(h )
(x u(0, y) = 0)
(en utilisant leq.)
1
2
Conclusions
mthode des diffrences finies simple mettre en uvre (dvp Taylor)
donne des systmes linaires sym. def. pos. creux sur les pbs elliptiques
convergence quadratique si les solutions sont rgulires
permet de traiter la plupart des conditions limites
mais limite des gomtries rectangulaires !
17