Outils Math
Outils Math
Outils Math
pour l’ingénieur
2021
Table des matières
Partie 1 : problème 1 ……………………………………………………………………………………………p3
1. Justification de l’existence
2. Solution numérique
3. La convergence de la solution approchée vers la solution exacte
4. Cas a=0 et b=0
5. avantages et inconvénients du schéma 3
Conclusion ……………………………………………..……………………………………………………………p8
2
Problème 1
{
'
( β ( x ) u )'−γ ( x ) u ( x ) =f ( x ) 0< x<1 ,
u(0)=u 0 et α u(1)+b u '(1)=c ,
1. Justification de l’existence
g ( x i +h )−g ( x i−h )
g’( x i ¿ =
2h
On pose : g( x i ¿ = β (x i) u '
h
Pour g( x i+ ), on approche u’ par un schéma avant à deux points :
2
( ) ( )( ) ( )
h h h h
h u x i + + −u xi − +
g xi + = h 2 2 2 2
2 β x i+
2 h
( h2 )=β ( x + 12 )
u ( xi +1 )−u ( x i )
Alors : g xi + i
h
h
Pour g ( x i− ), on approche u’ par un schéma arrière à deux points :
2
( h
) (
h h h h
u x i− + −u x i− − ( ) ( )
g x i− =
2 β x i−
h
2
2 2
h ) 2 2
Alors : (
g x i−
h
2 ) (
= β x i−
1 u ( x i )−u ( x i−1 )
2 ) h
3
β 1 (ui+1−u i)− β 1 (ui−u i−1)
' '
( β ( x i ) ui ) =¿g’( x i ¿ = i+
2
i−
2
h2
2. Solution numérique
dom := 0, 1/39, 2/39, 1/13, 4/39, 5/39, 2/13, 7/39, 8/39, 3/13, 10/39, 11/39, 4/13, 1/3, 14/39, 5/13,
16/39, 17/39, 6/13, 19/39, 20/39, 7/13, 22/39, 23/39, 8/13, 25/39, 2/3, 9/13, 28/39, 29/39, 10/13,
31/39, 32/39, 11/13, 34/39, 35/39, 12/13, 37/39, 38/39, 1
4
Tableau de convergence
N Erreur
40 0.0002769750
140 0.000041118875
180 0.000028186691
200 0.0000240775
Avantage :
Inconvénients :
u ( ⃗x , t )=0 ( ⃗x ,t ) ϵ ∂ Ωx ¿ 0 ,T ¿ ¿
u ( ⃗x , 0 ) =u0 ( ⃗x ) ⃗x ϵ Ω
2. Schéma explicite
∂u un+1 n
i , j −ui , j
( ⃗x , t )=
∂t ∆t
t 2 0 0 0 n n n
∂ u ( ⃗x , s ) u −2 u +u u −2 u + u
∫ ∂ x 2 ds= 2t ( i−1 , j h2i , j i+1 , j + i−1 , j h2i , j i+1 , j )
0
( )
t n n n
∂2 u ( ⃗x , s ) t ui−1 , j−2 ui , j +ui+1 , j
∫ ∂ x2 ds=
2 h
2
0
Et
t 2 0 0 0 n n n
∂ u ( ⃗x , s ) u −2 u +u u −2 u + u
∫ ∂ y 2 ds= 2t ( i , j−1 h2i , j i , j+1 + i , j−1 h2i , j i , j+1 )
0
t 2 n n n
∂ u ( ⃗x , s ) u −2 u +u
∫ ∂ y 2 ds= 2t ( i , j−1 h2i , j i , j+1 )
0
un+1
(
n
i , j −u i , j un −2 uni , j+ uni+1 , j u ni , j−1−2uni , j +uni , j+1 uni , j−uni−1 , j uni , j−uin, j−1 n
n n n n
t u i−1, j −2ui , j +ui +1 , j u i , j −1
− i−1 , j − +b x +b y + c U i, j − +
∆t h2 h2 2h 2h 2 h2
(
uni ,+1j =∆ t × f ni, j +U ni , j 1−
4∆t
h2
∆t ∆t 2t∆t
h
∆t
h )
∆t t ∆t
( ∆t t∆t
h 2h
∆t
)
−b x −b y − 2 + c +U ni−1 , j 2 +b x + 2 +U ni+1 , j 2 + 2 +U ni , j−1 2 +b y
2h 2h 2h 2h h
∆
2 ( ) (
Ainsi le schéma explicite du problème s’écrit sous forme : 𝑈 𝑛+1 = 𝐴𝑈 𝑛 + 𝐹 n
7
Conclusion
la méthode des différences finies est une technique courante de recherche de solutions approchées
d'équations aux dérivées partielles qui consiste à résoudre un système de relations (schéma numérique) liant
les valeurs des fonctions inconnues en certains points suffisamment proches les uns des autres.
Grace à ce projet nous avons pu résoudre numériquement l’équation problème 1suivant les étapes de
la méthode des différences finies puis visualiser la solution obtenue.