Professional Documents
Culture Documents
TP Scilab N◦ 3
The finite element method (I)
Note. In a chemical context, the differential equation is supposed to represent the concentration
of a chemical species transported by a fluid at a velocity λ, the parameter ε representing then the
diffusivity of this species. The ratio λ/ε measures the importance of the convective phenomena with
respect to the diffusive ones. For large values of this ratio, the numerical reslution of this problem
becomes critical. The function f , that generally depends on u, is introduced to take into account
the creation and the deletion of the chemical species.
1. Variational formulation.
Show that if u ∈ H02 (Ω) is solution of the problem (1) it is also a solution of the following
variational problem :
Find u ∈ H01 (Ω) such that
Z Z Z
0 0 0
ε u (x)v (x) dx − λ u(x)v (x) dx = f (x)v(x) dx ∀v ∈ H01 (Ω) . (2)
Ω Ω Ω
1
(i) We consider the shape functions {ϕj }1≤j≤N such that :
1
ϕj ∈ Vh,0 and ϕj (xi ) = δi,j , ∀i ∈ {1, . . . , N } .
1
Show that these functions {ϕj }1≤j≤N form a basis of Vh,0 .
1
(ii) We want to find an approximation uh ∈ Vh,0 of the unknown function u, solution of the
following variational problem :
1
Find uh ∈ Vh,0 such that
Z Z Z
0 0 0 1
ε uh (x)vh (x) dx − λ uh (x)vh (x) dx = f (x)vh (x) dx ∀vh ∈ Vh,0 , (3)
Ω Ω Ω
(iii) Compute the approximate solution uh of problem (3) for the values
ε = 0.01 λ = 1 f = 1 ,
4. A stabilization method.
We consider a modified version of problem (1) where the viscous terms have been reinforced :
− ε + |λ| h u00 (x) + λu0 (x) = f (x)
2 (4)
u(0) = u(1) = 0
2
(i) Compute the solution uh of the problem (3) for the parameter values :
ε = 0.01 , λ = 1, f =1
n = 20 , ε = 0.01 , λ = 1.
(i) Compute the solution uh for different values of the parameter a ∈ N∗ . Please comment.
(ii) Same question for the values a = 1/2, a = 3/2 with n = 60.