Vous êtes sur la page 1sur 15

Université de Thiès

UFR SI

Méthode des Différences finies

Support de cours
Hamed FALL
hamed.fall@univ-thies.sn

1
Plan
Chapitre 1 : Introduction
Chapitre 2 : Méthode des Différences finies
Chapitre 3 : Résolution d’une EDP parabolique
Chapitre 4 : Résolution d’une EDP hyperbolique

2
Chapitre 4 : Résolution d’une EDP hyperbolique

4.1 : Méthode Explicite

u u
Equation dite de convection c 0
t x

u uij 1  uij
( xi , t j ) 
Schéma avancé en temps t t

u uij  uij1
( xi , t j ) 
Schéma retardé en x x
espace

3
Chapitre 4 : Résolution d’une EDP hyperbolique

4.1 : Méthode Explicite

u u uij 1  uij uij  uij1


c 0 c 0
t x t x

t j t
soit ui j 1 j
 ui  c
x
(ui  uij1 )  0 et r c
x

finalement uij 1  uij  r (uij  uij1 )  0

uij 1  (1  r )uij  ruij1

4
Chapitre 4 : Résolution d’une EDP hyperbolique

4.1 : Méthode Implicite

u u
Equation dite de convection c 0
t x

u uij 1  uij
( xi , t j ) 
Schéma avancé en temps t t

u uij 1  uij11
( xi , t j 1 ) 
Schéma retardé en x x
espace

5
Chapitre 4 : Résolution d’une EDP hyperbolique

4.2 : Méthode Implicite

u u uij 1  uij uij 1  uij11


c 0 c 0
t x t x
t j 1 t
soit uij 1  uij  c (ui  uij11 )  0 et r c
x x

finalement uij 1  uij  r (uij 1  uij11 )  0

uij  uij 1  r (uij 1  uij11 )


j j 1
u  ru
uij 1 (1  r )  uij  ruij11 uij 1  i i 1

(1  r )
6
Chapitre 4 : Résolution d’une EDP hyperbolique

4.3 : Méthode de Crank-


Nicolson
u u
Equation dite de convection c 0
t x

u uij 1  uij
( xi , t j ) 
Schéma avancé en temps t t

u uij 1  uij11
Schéma retardé en ( xi , t j 1 ) 
x x
espace
u uij  uij1
Schéma retardé en ( xi , t j ) 
x x
espace
7
Chapitre 4 : Résolution d’une EDP hyperbolique

4.3 : Méthode de Crank-


Nicolson
u u uij 1  uij uij 1  uij11 uij  uij1
c 0  c(  )0
t x t x x

t j 1 t
uij 1  uij  c (ui  uij11  uij  uij1 )  0
soit x et r c
x

finalement uij 1  uij  r (uij 1  uij11  uij  uij1 )  0

(1  r )uij 1  ruij11  (1  r )uij  ruij1


j j j 1
(1  r )u  ru  ru
uij 1  i i 1 i 1

(1  r )
8
Chapitre 4 : Résolution d’une EDP hyperbolique

4.4 : Application

{
𝜕𝑢 𝜕𝑢
+0.5 = 0 𝑠𝑢𝑟 ( 𝑥 ,𝑡 ) ∈ [ 0,10 ] ×[ 0,10 ]

𝑓 (𝑥 )={¿1.5,2 .5¿¿−10𝑥+37𝑠𝑖∈¿2.5,3 .5¿¿2𝑠𝑖𝑛𝑜𝑛¿


𝜕𝑡 𝜕𝑥
𝑢 ( 𝑥 , 0) = 𝑓 ( 𝑥 )
𝑢 ( 0 , 𝑡 ) =2
𝑢 ( 10 ,𝑡 )= 2

uij 1  (1  r )uij  ruij1


Méthode explicite
j 1 uij  ruij11
Méthode ui 
(1  r )
implicite
j j j 1
(1  r ) u  ru  ru
Méthode Crank- uij 1  i i 1
(1  r )
i 1

Nicolson
9
Chapitre 4 : Résolution d’une EDP hyperbolique

4.4 : Application
t  0.5
j 1 j j
Méthode explicite ui  (1  r )ui  ru i 1 x  0.5

=0 1 2 9 10

0.5 1.5 9.5

à on utilise les conditions initiales pour obtenir les i=0…n


noeud 0 u00  f (0, 0)  2 ...
noeud 1 u10  f (0.5, 0)  2 noeud 6 u60  f (3, 0)  10*3  37  7
... ...
noeud 4 0
u  f (2, 0) 10*2  13  7 noeud n un0  2
4

10
Chapitre 4 : Résolution d’une EDP hyperbolique

4.4 : Application
Méthode explicite uij 1  (1  r )uij  ruij1

à
noeud 0 u10  2
noeud 1 u11  (1  r )u10  ru00
noeud 2 u12  (1  r )u20  ru10
noeud 3 u31  (1  r )u30  ru20
...
noeud n  1 u1n 1  (1  r )un01  run0 2
noeud n u1n  2
11
Chapitre 4 : Résolution d’une EDP hyperbolique

4.4 : Application
Méthode explicite uij 1  (1  r )uij  ruij1

à
noeud 0 u02  2
noeud 1 u12  (1  r )u11  ru01
noeud 2 u22  (1  r )u12  ru11
noeud 3 u32  (1  r )u31  ru12
...
noeud n  1 un21  (1  r )un21  run2 2
noeud n un2  2

12
Chapitre 4 : Résolution d’une EDP hyperbolique

4.4 : Application
t  0.5
Méthode explicite
14 x  0.5

12

10

8
0
0,5
6 1

0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10

13
Chapitre 4 : Résolution d’une EDP hyperbolique

4.4 : Application t  0.5


x  0.5
Méthode explicite
0
0,5
1
1,5
12 2
2,5
10 3
3,5
8 4
4,5
u 6
5
5,5
10 6
4 9 6,5
8 7
2 7 7,5
6 8
5
0 8,5
4
0 0.5 1
1.5 2 2.5 3 ti 9
3 3.5 4 2 9,5
4.5 5 5.5 10
6 6.5 7 1
7.5 8 8.5 0
xi 9 9.5 10

14
Chapitre 4 : Résolution d’une EDP hyperbolique

4.4 : Application t  0.5


x  0.5
Comparaison
à t6
7

Explicite
4 Implicite
Crank-Nicolson
U

0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

15

Vous aimerez peut-être aussi