Raffinement local espace-temps et algorithmes de Schwarz (optimiz´es)
Laurence HALPERN
LAGA - Universit´e Paris 13
CANUM. Juin 2006
R´esum´e
1 Motivations
2 L’´equation des ondes 1-D
Probl`eme de transmission et algorithme de Schwarz Le probl`eme coupl´e : stabilit´e
L’algorithme discret : volumes finis Performances num´eriques
3 L’´equation d’advection-diffusion L’algorithme de Schwarz
La m´ethode de Galerkin discontinu Performances num´eriques
4 Conclusion et perspectives
Raffinement de maillage
H2 Bubble – Shock Interaction
5
4 3
4
1 2
Uniform supersonic flow
Euler N2-O2 non-reactive
Coarse mesh
Non-interacting acoustic waves
Euler N2-O2 non-reactive
Coarse mesh
2
Shock- bubble interaction
Navier-Stokes multi- species reactive
Fine mesh
3 Interacting acoustic waves
Euler N2-O2 reactive
Fine mesh
4 Vortex and flame front
Navier-Stokes multi- species reactive
Very fine mesh
Application en combustion
Raffinement de maillage
Application au couplage oc´ean-atmosph`ere
Raffinement de maillage
Application en g´eophysique
Raffinement de maillage
x 295 m
595 m
350 m z
200 m 695 m
Dogger Clay Marl
Limestone
0 25 000 m
repository
Application au stockage souterrain des d´echets
Les probl`emes
1
Raffinement en espace : m´ethodes mixtes, mortar, Galerkin discontinu..
2
Raffinement en temps ?
Les probl`emes
1
Raffinement en espace : m´ethodes mixtes, mortar, Galerkin discontinu..
2
Raffinement en temps ?
Raffinement/jonction
U1 (j,n) U2 (j,n)
x t
Les solutions
Interpolation
!"#$%&'()*+,-./0123
4444444444444444444444
5555555555555555555555
6666666666666666666666
777777777777777777777777777777888888888888888888888888888888 999999999999999999999999999999:::::::::::::::::::::::::::::: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
1 2 3 4
−2
−4
−6
U1 (j,n) U2 (j,n)
2∆t2∆x 2n
n
2n+ 1
∆t
∆x
x t
U
2(0, 2n) = U
1(0, n), U
2(0, 2n + 1) = 1
2 (U
1(0, n) + U
1(0, n + 1))
Les solutions
Interpolation
==> ??@ AB
CD EF GH IJ
KL
MNOPQRSTUVWXYZ[\]^_`ab
cccccccccccccccccccccc
dddddddddddddddddddddd
eeeeeeeeeeeeeeeeeeeeee
ffffffffffffffffffffffffffffffgggggggggggggggggggggggggggggg hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhiiiiiiiiiiiiiiiiiiiiiiiiiiiiii jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
1 2 3 4
−2
−4
−6
U1 (j,n) U2 (j,n)
2∆t2∆x 2n
n
2n+ 1
∆t
∆x
x t
U
2(0, 2n) = U
1(0, n), U
2(0, 2n + 1) = 1
2 (U
1(0, n) + U
1(0, n + 1)) Avantages : Simple, explicite
Inconv´enients : non toujours stable, peu flexible, pr´ecision ?
Les solutions
Autre approche : d´ecomposition de domaines
♣ Approche continue.
♣ Puis discr´etisations ind´ependantes.
Les solutions
Autre approche : d´ecomposition de domaines
♣ Approche continue.
♣ Puis discr´etisations ind´ependantes.
Avantages : simple, stable, flexible, pr´ecise.
inconv´enients : a priori : pas explicite.
Les solutions
Programme
Ecrire un probl`eme coupl´e
Discr´etiser dans chaque sous-domaine
Projeter une grille sur une autre
R´esum´e
1 Motivations
2 L’´equation des ondes 1-D
Probl`eme de transmission et algorithme de Schwarz Le probl`eme coupl´e : stabilit´e
L’algorithme discret : volumes finis Performances num´eriques
3 L’´equation d’advection-diffusion L’algorithme de Schwarz
La m´ethode de Galerkin discontinu Performances num´eriques
4 Conclusion et perspectives
R´esum´e
1 Motivations
2 L’´equation des ondes 1-D
Probl`eme de transmission et algorithme de Schwarz Le probl`eme coupl´e : stabilit´e
L’algorithme discret : volumes finis Performances num´eriques
3 L’´equation d’advection-diffusion L’algorithme de Schwarz
La m´ethode de Galerkin discontinu Performances num´eriques
4 Conclusion et perspectives
Les probl`emes
L’´equation
L u := 1 c 2
∂ 2 u
∂t 2 − ∂ 2 u
∂x 2 = f
Les probl`emes
Raffinement
IIIIII I I I I I I I I I I I I I
PSfrag replacements
tΩ
1Ω
2∆x
1∆x
2c ∆t
∆x . γ ⇒ ∆t 2
∆t 1 ≈ ∆x 2
∆x 1
Les probl`emes
Raffinement
IIIIII I I I I I I I I I I I I I
PSfrag replacements
tΩ
1Ω
2∆x
1∆x
2c ∆t
∆x . γ ⇒ ∆t 2
∆t 1 ≈ ∆x 2
∆x 1
Discontinuit´es
<<<
t
I I I I I I I I I I I I I I I
PSfrag replacements
Ω
1Ω
2∆t
1∆t
2c
1c
2c ∆t
∆x . γ ⇒ ∆t 2
∆t 1 ≈ c 1
c 2
Le probl`eme de transmission
ai ai+1
x Ωi
t
Le probl`eme de transmission
ai ai+1
x Ωi
t
d´efinition
L (u i ) = 0 x ∈ Ω i , t ∈ (0, T )
B − i (u i ) = B − i (u i−1 ) x = a i , t ∈ (0, T )
B + i (u i ) = B + i (u i+1 ) x = a i+1 , t ∈ (0, T ),
Le probl`eme de transmission
ai ai+1
x Ωi
t
d´efinition de l’algorithme de Schwarz
L (u k i ) = 0 x ∈ Ω i , t ∈ (0, T )
B − i (u k i ) = B − i (u k i−1 −1 ) x = a i , t ∈ (0, T )
B i + (u k i ) = B + i (u i+1 k−1 ) x = a i+1 , t ∈ (0, T ).
L’algorithme de Schwarz
Choix optimal
B − i := ∂ x − 1
c ∂ t , B + i := ∂ x + 1
c ∂ t
L (u k i ) = f x ∈ Ω i , t ∈ (0, T )
B − (u k i ) = B − (u k i−1 −1 ) x = a i , t ∈ (0, T )
B + (u k i ) = B + (u i+1 k−1 ) x = a i+1 , t ∈ (0, T ).
L’algorithme de Schwarz
Choix optimal
B − i := ∂ x − 1
c ∂ t , B + i := ∂ x + 1 c ∂ t L (u k i ) = f x ∈ Ω i , t ∈ (0, T ) B − (u k i ) = B − (u k i−1 −1 ) x = a i , t ∈ (0, T ) B + (u k i ) = B + (u i+1 k−1 ) x = a i+1 , t ∈ (0, T ).
convergence
Convergence en 2 it´erations pour T < T 0 = min
1<i<I | a i+1 − a i | /c
↓
Fenˆetres en temps de taille T 0
Estimations d’´energie, stabilit´e
premi`ere estimation
E
Ωi(u
i)(t) + c 4
Z
t0
[(B
+u
i(a
i, s))
2+ (B
−u
i(a
i+1, s))
2] ds
= c
4 Z
t0
[(B
−u
i(a
i, s))
2+ (B
+u
i(a
i+1, s))
2] ds + E
Ωi(u
i)(0).
Estimations d’´energie, stabilit´e
premi`ere estimation
E
Ωi(u
i)(t) + c 4
Z
t0
[(B
+u
i(a
i, s))
2+ (B
−u
i(a
i+1, s))
2] ds
= c
4 Z
t0
[(B
−u
i(a
i, s))
2+ (B
+u
i(a
i+1, s))
2] ds + E
Ωi(u
i)(0).
Conditions de transmission :
B
−u
i(a
i, ·) = B
−u
i−1(a
i, ·), B
+u
i(a
i+1, ·) = B
+u
i+1(a
i+1, ·)
Estimations d’´energie, stabilit´e
premi`ere estimation
E
Ωi(u
i)(t) + c 4
Z
t0
[(B
+u
i(a
i, s))
2+ (B
−u
i(a
i+1, s))
2] ds
= c
4 Z
t0
[(B
−u
i(a
i, s))
2+ (B
+u
i(a
i+1, s))
2] ds + E
Ωi(u
i)(0).
Conditions de transmission :
B
−u
i(a
i, ·) = B
−u
i−1(a
i, ·), B
+u
i(a
i+1, ·) = B
+u
i+1(a
i+1, ·)
substitution et sommation
E
Ωi(u
i)(t) + c 4
Z
t0
[(B
+u
i(a
i,s))
2+ (B
−u
i(a
i+1, s))
2] ds
= c
4 Z
t0
[(B
−u
i−1(a
i,s))
2+ (B
+u
i+1(a
i+1,s))
2] ds + E
Ωi(u
i)(0).
Estimations d’´energie, stabilit´e
substitution et sommation
X
i
E
Ωi(u
i)(t) + c 4
Z
t0
[(B
+u
i(a
i,s))
2+ (B
−u
i(a
i+1, s))
2] ds
= c
4 Z
t0
[(B
−u
i−1(a
i,s))
2+ (B
+u
i+1(a
i+1,s))
2] ds + E
Ωi(u
i)(0).
Estimations d’´energie, stabilit´e
convergence de l’algorithme de Schwarz
X
k
X
i
E
Ωi(u
ik)(t) + c 4
Z
t0
[(B
+u
ki(a
i,s))
2+ (B
−u
ki(a
i+1,s))
2] ds
= c
4 Z
t0
[(B
−u
k−1i−1(a
i,s))
2+ (B
+u
k−1i+1(a
i+1,s))
2] ds
Stabilit´e sur l’interface
B − u i (a i , · ) = B − u i−1 (a i , · ) + g i −
B + u i (a i+1 , · ) = B + u i+1 (a i+1 , · ) + g i +
Stabilit´e sur l’interface
B − u i (a i , · ) = B − u i−1 (a i , · ) + g i − B + u i (a i+1 , · ) = B + u i+1 (a i+1 , · ) + g i +
E
Ωi(u
i)(t) + c 4
Z
t0
[(B
+u
i(a
i, s))
2+ (B
−u
i(a
i+1, s))
2] ds
= c
4 Z
t0
[(B
−u
i(a
i, s))
2+ (B
+u
i(a
i+1, s))
2] ds + E
Ωi(u
i)(0).
Stabilit´e sur l’interface
B − u i (a i , · ) = B − u i−1 (a i , · ) + g i − B + u i (a i+1 , · ) = B + u i+1 (a i+1 , · ) + g i +
E
Ωi(u
i)(t) + c 4
Z
t0
[(B
+u
i(a
i, s))
2+ (B
−u
i(a
i+1, s))
2] ds
= c
4 Z
t0
[(B
−u
i(a
i, s))
2+ (B
+u
i(a
i+1, s))
2] ds + E
Ωi(u
i)(0).
QUE FAIRE ? Ecrire des conditions de transmission homog`enes.
Un rel`evement r´etrograde
g−
i
w−
i−1 g+
i−1 w+
i
ai ai+1
ai−1
t
Un rel`evement r´etrograde
g−
i
w−
i−1 g+
i−1 w+
i
ai ai+1
ai−1
t
Propri´et´es
B
−w
i−1−(a
i, · ) = g
i−, B
+w
i+(a
i, · ) = g
i+−1B
+w
i−−1(a
i, · ) = 0, B
−w
i+(a
i, · ) = 0, E
Ωi−1(w
i−−1)(t) ≤ c
4 k g
i−k
2L2(0,T), E
Ωi(w
i+)(t) ≤ c
4 k g
i+−1k
2L2(0,T)Un rel`evement r´etrograde
g−
i
w−
i−1 g+
i−1 w+
i
ai ai+1
ai−1
t
R´e´ecriture des conditions de transmission
B
−iu
i(a
i, ·) = B
−i(u
i−1+ w
i−−1) (a
i, ·) in (0, T ),
B
+iu
i(a
i+1, · ) = B
+i(u
i+1+ w
i+1+) (a
i+1, · ) in (0, T ).
Un rel`evement r´etrograde, suite
w+ i−1
T
ai
ai−1 ai+1
g+ i−1
g−
i
w−
i−1 w−
i g− g+ i+1
i−1 w+
i
B
−(u
i) (a
i, · ) = B
−(u
i−1+ w
i−−1) (a
i, · )
Un rel`evement r´etrograde, suite
w+ i−1
T
ai
ai−1 ai+1
g+ i−1
g−
i
w−
i−1 w−
i g− g+ i+1
i−1 w+
i
B
−(u
i+w
i−) (a
i, · ) = B
−(u
i−1+ w
i−−1) (a
i, · )
Un rel`evement r´etrograde, suite
w+ i−1
T
ai
ai−1 ai+1
g+ i−1
g−
i
w−
i−1 w−
i g− g+ i+1
i−1 w+
i
B
−(u
i+w
i−+w
i+) (a
i, · ) = B
−(u
i−1+ w
i−−1+w
i+−1) (a
i, · )
Stabilit´e, fin
collecte X
i
E Ω
i(u i + w i + + w i − )(t ) ≤ X
i
E Ω
i(u i + w i + + w i − )(0)
X
i
E Ω
i(u i )(t) ≤ α [ k ∂ x p k 2 L
2(Ω) + k q k 2 L
2(Ω) + X
±
X I i=1
k g i ± k 2 L
2(0,T) ].
Discr´etisation
lmln op qr stumuv wx
yz
{|
}m}~ m
m
m
m
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
0 0
Ωi−1 Ωi Ji
Ji+1+ 1 Ωi+1+ 1
Ji−1+ 1 0
Facile `a mettre en oeuvre avec des conditions aux limites,
Discr´etisation
m m
m m
m
¡m¡
¢m¢
£¤ ¥¦ §¨ ©ª
«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«m«¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬m¬
0 0
Ωi−1 Ωi Ji
Ji+1+ 1 Ωi+1+ 1
Ji−1+ 1 0
Facile `a mettre en oeuvre avec des conditions aux limites,
sch´ema stable,
Discr´etisation
m® ¯° ±² ³´µmµ¶ ·¸
¹º
»¼
½m½¾ ¿m¿
ÀmÀ ÁmÁ
ÂmÂ
ÃÄ ÅÆ ÇÈ ÉÊ
ËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËmËÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌmÌ
0 0
Ωi−1 Ωi Ji
Ji+1+ 1 Ωi+1+ 1
Ji−1+ 1 0
Facile `a mettre en oeuvre avec des conditions aux limites, sch´ema stable,
la pr´ecision globale est conserv´ee.
Discr´etisation
ÍmÍÎ ÏÐ ÑÒ ÓÔÕmÕÖ ×Ø
ÙÚ
ÛÜ
ÝmÝÞ ßmß
àmà ámá
âmâ
ãä åæ çè éê
ëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëmëìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmìmì
0 0
Ωi−1 Ωi Ji
Ji+1+ 1 Ωi+1+ 1
Ji−1+ 1 0
Facile `a mettre en oeuvre avec des conditions aux limites, sch´ema stable,
la pr´ecision globale est conserv´ee.
volumes finis “vertex centered”
Le probl`eme discret
“
1c2
D
t+D
t−− D
x+D
x−”
U
i(j, n) = 0 1 ≤ j ≤ J
i, 1 ≤ n ≤ N
i, B
i−U
i(0, · ) = P
i−1,iB e
i−U
i−1(J
i−1+ 1, · )
B
i+U
i(J
i+ 1, · ) = P
i+1,iB e
i+U
i+1(0, · )
Le probl`eme discret
“
1c2
D
t+D
t−− D
x+D
x−”
U
i(j, n) = 0 1 ≤ j ≤ J
i, 1 ≤ n ≤ N
i, B
i−U
i(0, · ) = P
i−1,iB e
i−U
i−1(J
i−1+ 1, · )
B
i+U
i(J
i+ 1, · ) = P
i+1,iB e
i+U
i+1(0, · )
B
i+U
i= “
∆xi
2c2
D
t+D
t−+ D
x−+
1cD
0t”
U
ien (J
i+ 1,n), B e
i+U
i+1= “
−
∆x2ci+12D
t+D
t−+ D
x++
c1D
t0”
U
i+1en (0, n)
Le probl`eme discret
“
1c2
D
t+D
t−− D
x+D
x−”
U
i(j, n) = 0 1 ≤ j ≤ J
i, 1 ≤ n ≤ N
i, B
i−U
i(0, · ) = P
i−1,iB e
i−U
i−1(J
i−1+ 1, · )
B
i+U
i(J
i+ 1, · ) = P
i+1,iB e
i+U
i+1(0, · )
B
i+U
i= “
∆xi
2c2
D
t+D
t−+ D
x−+
1cD
0t”
U
ien (J
i+ 1,n), B e
i+U
i+1= “
−
∆x2ci+12D
t+D
t−+ D
x++
c1D
t0”
U
i+1en (0, n)
P i,j Projection L 2 de V i sur V j ,
V i fonctions affines par morceaux sur la grille de pas ∆t i .
estimation d’´energie discr`ete
E(U
i)(n) − E(U
i)(n − 1) + c∆t
i2 [( B e
i−1+U
i(0, n))
2+ ( B e
i+1−U
i(J + 1, n))
2]
= c∆t
i2 [(B
i−U
i(0,n))
2+ (B
i+U
i(J + 1, n))
2]
estimation d’´energie discr`ete
E(U
i)(n) − E(U
i)(n − 1) + c∆t
i2 [( B e
i−1+U
i(0, n))
2+ ( B e
i+1−U
i(J + 1, n))
2]
= c∆t
i2 [(B
i−U
i(0,n))
2+ (B
i+U
i(J + 1, n))
2]
B
i−U
i(0, · ) = P
i−1,iB e
i−U
i−1(J
i−1+ 1, · )
B
i+U
i(J
i+ 1, · ) = P
i+1,iB e
i+U
i+1(0, · )
estimation d’´energie discr`ete
E(U
i)(n) − E(U
i)(n − 1) + c∆t
i2 [( B e
i−1+U
i(0, n))
2+ ( B e
i+1−U
i(J + 1, n))
2]
= c∆t
i2 [(B
i−U
i(0,n))
2+ (B
i+U
i(J + 1, n))
2]
B
i−U
i(0, · ) = P
i−1,iB e
i−U
i−1(J
i−1+ 1, · )
B
i+U
i(J
i+ 1, · ) = P
i+1,iB e
i+U
i+1(0, · )
E(U
i)(n) − E(U
i)(n − 1) + c∆t
i2 [(e B
i−1+U
i(0, n))
2+ (e B
i+1−U
i(J + 1, n))
2]
≤ c∆t
i−12 ( B e
i−U
i−1(J
i−1+ 1, ·))
2+ c∆t
i+12 ( B e
i+U
i+1(0, ·))
2Cons´equences
Existence et unicit´e, stabilit´e/conditions initiales et second membre.
Cons´equences
Existence et unicit´e, stabilit´e/conditions initiales et second membre.
convergence du Schwarz Waveform relaxation algorithm discret.
Schwarz Waveform relaxation algorithm discret
“
1c2
D
t+D
−t− D
x+D
x−”
U
ik(j , n) = 0 1 ≤ j ≤ J
i, 1 ≤ n ≤ N
i, B
i−U
ik(0, · ) = P
i−1,iB e
i−U
ik−−11(J
i−1+ 1, · )
B
i+U
ik(J
i+ 1, · ) = P
i+1,iB e
i+U
i+1k−1(0, · )
Stabilit´e du probl`eme coupl´e
B
i−U
i(0, ·) = P
i−1,ie B
i−U
i−1(J
i−1+ 1, ·) + G
i−B
i+U
i(J
i+ 1, ·) = P
i+1,iB e
i+U
i+1(0, ·) + G
i+Stabilit´e du probl`eme coupl´e
B
i−U
i(0, ·) = P
i−1,ie B
i−U
i−1(J
i−1+ 1, ·) + G
i−B
i+U
i(J
i+ 1, ·) = P
i+1,iB e
i+U
i+1(0, ·) + G
i+E(U
i)(n) − E(U
i)(n − 1) + c∆t
i2 [( B e
i−1+U
i(0, n))
2+ ( B e
i+1−U
i(J + 1, n))
2]
= c∆t
i2 [(B
i−U
i(0,n))
2+ (B
i+U
i(J + 1, n))
2]
Stabilit´e du probl`eme coupl´e
B
i−U
i(0, ·) = P
i−1,ie B
i−U
i−1(J
i−1+ 1, ·) + G
i−B
i+U
i(J
i+ 1, ·) = P
i+1,iB e
i+U
i+1(0, ·) + G
i+E(U
i)(n) − E(U
i)(n − 1) + c∆t
i2 [( B e
i−1+U
i(0, n))
2+ ( B e
i+1−U
i(J + 1, n))
2]
= c∆t
i2 [(B
i−U
i(0,n))
2+ (B
i+U
i(J + 1, n))
2]
QUE FAIRE ? Ecrire des conditions de transmission homog`enes.
rel`evement r´etrograde discret
Th´eor`eme
Hyp : γ i < 1 et T < inf i γ i (a i+1 − a i ).
B
i−W
i+(0, ·) − P
i,i−1e B
i−W
i−1−(J
i−1+ 1, ·) − G
i−= R
i,i−1, B
i−1+W
i−1−(J
i−1+ 1, ·) − P
i−1,iB e
i−1+W
i+(0, ·) − G
i−1+= R
i−1,iR i,i−1 ∈ orthogonal de Im P i,i−1 dans V i ,
R i−1,i ∈ orthogonal de Im P i−1,i dans V i−1 .
Pr´ecision du sch´ema
Th´eor`eme
Hyp : γ i < 1 et 2T < inf i γ c
i(a i+1 − a i )
Alors le sch´ema est stable, globalement d’ordre 2 en temps et en espace.
La projection
ta tb
Ωk Ω`
function b=transfer(a,ta,tb) ; j=1 ;
for i=1 :n-1 b(i)=0 ; m=ta(j+1)-tb(i) ; while ta(j+1)<tb(i+1) ; b(i)=b(i)+m*a(j) ; j=j+1 ;
m=ta(j+1)-ta(j) ; end ;
m=m-(ta(j+1)-tb(i+1)) ; b(i)=b(i)+m*a(j) ; end ;
Soit un vecteur ta = [0, t a (1), . . . , T ] arbitraire et a un vecteur
repr´esentant une fonction constante par morceaux sur ta, transfer
calcule les int´egrales de a sur les intervalles donn´es par la grille en temps
d´efinie par le vecteur tb = [0, t b (1), . . . , T ].
Cas simples
0 20 40 60 80 100 120
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
DONNEE INITIALE
PSfrag replacements Ω 1 Ω 2
Donn´ees
c = 1; T = 200.
∆t 1 = 1; ∆x 1 = 1, ∆t 2 = 0.5, ∆x 2 = 0.5.
Comparaison avec d’autres m´ethodes
γ = 1
erreur max ` a gauche erreur max ` a droite erreur du sch´ema 1.6098e-15 1.4988e-15
D.D. 1.8319e-15 0.0089
Interpol. 1.9429e-15 0.0046
Energie 1.9971e-04 0.4949
Comparaison avec d’autres m´ethodes
γ = 1
erreur max ` a gauche erreur max ` a droite erreur du sch´ema 1.6098e-15 1.4988e-15
D.D. 1.8319e-15 0.0089
Interpol. 1.9429e-15 0.0046
Energie 1.9971e-04 0.4949
γ = 0.9
erreur max ` a gauche erreur max ` a droite
sch´ema fin 0.0022 0.0006
sch´ema grossier 0.009 0.003
D.D. 0.0068 0.0064
Interpol. 0.0068 0.0027
Energie 0.0068 0.0437
Ordre de la m´ethode
100 10−3
10−2 10−1 100
error max in the rough grid
dtl
error
dt2 D.D.energy interpolation
10−0.8 10−0.6 10−0.4 10−0.2 100 10−3
10−2 10−1 100
error max in the fine grid
dtr
error
dt2 D.D.energy interpolation
Extension `a des vitesses diff´erentes
Donn´ees
[0 2] divis´e en 2 parties ´egales, T=1 ;c=1 `a gauche, c=1.7 `a droite.On choisit γ = 1 partout, 11 points en espace dans chaque domaine, 11 points en temps `a gauche et 18 `a droite. Puis on divise le pas par 2.
10−3 10−2 10−1
10−4 10−3 10−2 10−1 100
dt
error after 2 iterations with projections
left discretisation error, Linf: dxl=1/(10*2i), dtl=1/(10*2i), dxr=1/(10*2i), dtr=1/(17*2i) error O(dt2)
10−3 10−2 10−1
10−4 10−3 10−2 10−1 100
dt
error after 2 iterations with projections
right discretisation error, Linf: dxl=1/(10*2i), dtl=1/(10*2i), dxr=1/(10*2i), dtr=1/(17*2i) error O(dt2)
Un plus grand contraste de vitesses
Exemple
c 1 = 1 c 2 = 10; ∆x 1 = ∆x 2 = 0, 02; ∆t 1 = 0, 02 ∆t 2 = 0, 002
R´esum´e
1 Motivations
2 L’´equation des ondes 1-D
Probl`eme de transmission et algorithme de Schwarz Le probl`eme coupl´e : stabilit´e
L’algorithme discret : volumes finis Performances num´eriques
3 L’´equation d’advection-diffusion L’algorithme de Schwarz
La m´ethode de Galerkin discontinu Performances num´eriques
4 Conclusion et perspectives
Le probl`eme
L u = ∂u
∂t + ∂
∂x (a(x)u) − ∂
∂x (ν(x ) ∂u
∂x ) = f dans ]a, b[ × ]0, T [ C.L. u(a, ·) = u(b, ·) = 0 , C.I. u(· , 0) = u
0Deux domaines, a(x) = a i , ν (x) = ν i dans Ω i , a i ≥ 0, ν i > 0, i = 1, 2.
Le principe
Algorithme
L u
ik= f dans Ω
i× ]0,T [ (ν
1∂
∂x − a
1+ Λ
1)u
k1(0, · ) = (ν
2∂
∂x − a
2+ Λ
1)u
k2−1(0, · ) (ν
2∂
∂x − a
2+ Λ
2)u
k2(0, · ) = (ν
1∂
∂x − a
1+ Λ
2)u
k−12(0, · ) Λ
1(u) = a
2+ p
22 + q
22
∂
∂t , Λ
2(u) = a
1− p
12 − q
12
∂
∂t
taux de convergence
δ
j(ω) = q
a
2j+ 4ν
jiω, j = 1, 2.
ρ(ω) =
„ δ
1(ω) − p
1− q
1iω δ
1(ω) + a
2− a
1+ p
2+ q
2iω
« „ δ
2(ω) − p
2− q
2iω δ
2(ω) + a
2− a
1+ p
1+ q
1iω
«
min ( max |ρ(ω)|)
Formulation faible (Johnson,Eriksson, Thomee 1985)
Le probl`eme aux limites
u t + au x − νu xx = f (x, t) dans ]a, b[ × [0, T ],
− ν u x + au + α 0 u + β 0 u t = g 0 (t ), en x = a, ν u x − au + α 1 u + β 1 u t = g 1 (t ), en x = b.
Formulation faible
((u t , v)) + ˜ a(u, v ) = `(v ), ∀ v ∈ V = H 1 (]0, 1[) ((u, v)) := (u, v) + β
1u(1, t)v (1, t) + β
0u(0, t)v (0, t)
˜
a(u, v ) := b(u, v) + ν(u
x, v
x) − a(u, v
x) + α
1u(1, t)v (1, t) + α
0u(0, t)v (0, t)
`(v ) := (f , v ) + g
1(t)v (1, t) + g
0(t)v (0, t)
Discr´etisation par Galerkin discontinu
espaces d’´el´ements finis [0, T ] = Q K
k =1 I k , I k = [t k −1 , t k ].
v + k = lim s→0
+v (t k + s), v − k = lim s→0
−v (t k + s), V h s.e.v. de dimension finie de V ,
P q (I k ) = { v : I k −→ V h : v(t) = X q
i=0
v i t i , v i ∈ V h }
formulation U
−0= u
0Pour k = 1, · · · , K, ´etant donn´e U
−k−1, trouver U ≡ U
|Ik∈ P
q(I
k) tel que R
Ik
[(( ˙ U, v )) + ˜ a(U, v )]dt + ((U
+k−1, v
+k−1)) = R
Ik
`(v )dt + ((U
−k−1, v
+k−1)), ∀ v ∈ P
q(I
k)
Couplage avec SWR
Erreur L 2 versus le pas de temps. Cas homog`ene
Donn´ees physiques
Solution exacte u(x, t ) = cos(x)cos(t) sur [0, 2π] × [0, 2π]. ¯ Ω 1 = [0, 2]
et ¯ Ω 2 = [2, 2π]. a 1 = a 2 = 1, ν 1 = ν 2 = 1
les grilles PSfrag replacements
x x x
x
t t t t
0 0
0
maillage 1 0 maillage 2 maillage 3 maillage 4
T T T T
Maillages en temps conformes (maillage 1 et maillage 4) et non conformes (maillage 2 et maillage 3).
Stopping Criterion : the jumps of interface conditions must be smaller than
10
−6Solution au temps T
It´eration 1
0 1 2 3 4 5 6 7
−1.5
−1
−0.5 0 0.5 1 1.5
x
u(x,T)
At time t=T=6.2832, at Schwarz iteration1, with method=ABC1 Converged SWR solution um at SWR iteration 1 up at SWR iteration 1
Solution au temps T
It´eration 2
0 1 2 3 4 5 6 7
−1
−0.5 0 0.5 1 1.5
x
u(x,T)
At time t=T=6.2832, at Schwarz iteration2, with method=ABC1 Converged SWR solution um at SWR iteration 2 up at SWR iteration 2
Solution au temps T
It´eration 3
0 1 2 3 4 5 6 7
−1.5
−1
−0.5 0 0.5 1
x
u(x,T)
At time t=T=6.2832, at Schwarz iteration3, with method=ABC1 Converged SWR solution um at SWR iteration 3 up at SWR iteration 3
Courbes erreur
0 0.5 1 1.5 2 2.5 3 3.5 4
−4.5
−4
−3.5
−3
−2.5
−2
−1.5
−1
−0.5 0
number of refinements log10(L2 Error)
mesh 1 mesh 2 mesh 3 mesh 4 slope 2
erreur L 2 (Ω × (0, T ))
Un cas non homog`ene
donn´ees physiques
(a, b) = (0, 6), coup´e par le milieu. T = 2. u0 = exp( − 3 ∗ (2.5 − x ). 2 ).
A gauche a 1 = 1, ν 1 = 0.05. A droite a 2 = 0.3, ν 2 = 1.
Courbe erreur
0 0.5 1 1.5 2 2.5 3 3.5 4
−4
−3.5
−3
−2.5
−2
−1.5
−1
−0.5
log10(L2 Error)
mesh 1 mesh 2 mesh 3 mesh 4 slope 2
Solution au temps T
It´eration 1
0 1 2 3 4 5 6
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
x
u(x,T)
At time t=T=2, at Schwarz iteration1, with method=ABC1 Converged SWR solution um at SWR iteration 1 up at SWR iteration 1
Solution au temps T
It´eration 2
0 1 2 3 4 5 6
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4
x
u(x,T)
At time t=T=2, at Schwarz iteration2, with method=ABC1 Converged SWR solution um at SWR iteration 2 up at SWR iteration 2
Solution au temps T
It´eration 3
0 1 2 3 4 5 6
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4
x
u(x,T)
At time t=T=2, at Schwarz iteration3, with method=ABC1 Converged SWR solution um at SWR iteration 3 up at SWR iteration 3