HAL Id: hal-01599005
https://hal.archives-ouvertes.fr/hal-01599005
Preprint submitted on 30 Sep 2017
HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.
Numerical methods for computing an averaged matrix field. Application to the asymptotic analysis of a
parabolic problem with stiff transport terms
Thomas Blanc
To cite this version:
Thomas Blanc. Numerical methods for computing an averaged matrix field. Application to the asymptotic analysis of a parabolic problem with stiff transport terms. 2017. �hal-01599005�
Numerical methods for computing an averaged matrix field.
Application to the asymptotic analysis of a parabolic problem with stiff transport terms.
Thomas Blanc ∗ (July 20, 2017)
Abstract
Parabolic problems with stiff terms are challenging to solve numerically. When the stiff terms become dominant, multiple scale effects occur and the classical numerical methods do not catch the microscopic effects. The aim of this paper is to provide a numerical method to study the behavior of parabolic problems with stiff transport terms based on recent results on the asymptotic analysis for such problems. Precisely, the behavior of the solutions can be described in terms of a composition product between a certain profile and the fast flow associated to the dominant transport operator, where the asymptotic profile solves an effective diffusion equation. A numerical method for determining the effective diffusion matrix is given, the computation of the limit profile is carried out and the error with respect to the solution of the stiff problem is studied.
Keywords: Averaging methods, Semi-Lagrangian schemes, Multiple scales.
AMS classification: 65M25, 65M06.
1 Introduction
In many applications, partial differential equations with multiple scales can occur : transport in strongly magnetized plasmas with or without collisions, heat transfer inside the plasma fusion, heat and mass transport in the chemical framework. Each of these problems makes appear multiple scales in time or space. From the numerical point of view, the study of these problems is highly constraint by the size of the small scale. Indeed, the numerical resolution must be thin enough for catching the effects caused by the small scales. But, in this case, the classical methods have a prohibitive numerical cost and are not adapted for solving this type of problems. In this work we provide a way to study numerically the behavior of a diffusion equation with a stiff convection term. We focus on the following parabolic model
#
Btuε´divypDpyq∇yuεq `1
ε bpyq ¨∇yuε“0, pt, yq PR`ˆRm uεp0, yq “uinpyq, yPRm,
(1.1) where b : Rm Ñ Rm and D : Rm Ñ MmpRq are given fields of vectors and symmetric positive definite matrices, and εą0 is a small parameter close to zero. The fast transport, which is related to the operator b¨∇y, introduce a fast time scale. Actually, this problem
∗Aix Marseille Universit´e, CNRS, Centrale Marseille, Institut de Math´ematiques de Marseille, UMR 7373, Chˆateau Gombert 39 rue F. Joliot Curie, 13453 Marseille FRANCE. E-mail : [email protected]
can be interpreted as a two-scale problem in time, after a convenient Lagrangian change of variable along the fast motion. Multiple-scale problems have been extensively studied by many authors and there exists a lot of approaches for their numerical study. The strongly anisotropic diffusion problems have been analyzed by using asymptotic preserving schemes [16], the kinetic equations [12], the multiple-scale parabolic problems [13], the Schr¨odinger and Klein-Gourdon equations [10] have been adressed by appealing to uniform accurate schemes.
Multiple-scale methods for advection-diffusion equations are proposed in [1]. The strategy we choose in this paper will be not to solve numerically the problem (1.1), but rather an homogenized limit problem not constraint by the small parameterε, and for which standard numerical solvers can be used. Indeed, the theoretical study of multiple scales problems by homogenization techniques has been done in many frameworks such as transport with disparate advection fields [4, 9, 15], transport of charged particles under high magnetic fields [?, 6, 7, 8, 18, 19], elliptic and parabolic models [2, 22] or asymptotic analysis of strongly anisotropic diffusion problems [8]. In the recent paper [3], the asymptotic analysis of the problem (1.1) has been performed through an ergodic theory result. It has been shown that the behavior of the family puεqεą0, when ε goes to zero, can be described, in the L2 sense, with a convergence rate, in terms of the composition product between a profile solution of the homogenized problem and the fast oscillating flow associated to b{ε. Moreover, it is shown that the homogenized problem is still a parabolic problem, whose effective diffusion matrix field is given by an ergodic average of the initial diffusion matrix fieldD, along a group of linear operators. Actually the infinitesimal generator associated to this group is a transport operator which acts on matrix fields. The main goal of this article is to provide a semi-Lagrangian scheme for solving the group, and thus compute the effective diffusion matrix field. The interest of this numerical computation is not restricted to the problem (1.1). Indeed, the average of a matrix field is found in various situations and makes it possible to describe, for example, the effective system associated with a strongly anisotropic diffusion equation, cf.
[8]. We illustrate this approach by observing the error between a reference solution of (1.1) and the solution of the effective diffusion problem for some particular examples.
This paper is organized as follow. In Section 2 we introduce the notations which will be used through this study and we recall the main asymptotic results established in [3]. A scheme based on a semi-Lagrangian method is provided in Section 3 for the computation of the effective diffusion field. Some numerical tests are done as well. In Section 4, we study the error between the solution of the effective problem, with respect to the solution of the stiff problem (1.1). We use a numerical scheme based on splitting methods for providing a reference solution for (1.1). The numerical results confirm the expected theoretical convergence rates.
2 Asymptotic analysis, theoretical results
In this section we introduce some notations and results which will be useful along the paper.
The main points are the definition of the effective diffusion matrix field (2.4), (2.1) and the asymptotic result (2.6). We only indicate the main lines of the arguments leading to these results. For the proof details we refer to [3]. Consider Y :RˆRm Ñ Rm the characteristic flow of the vector field b
dY
ds “bpYps;yqq, ps, yq PRˆRm, Yp0;yq “y, y PRm.
This flow is well defined under the standard smoothness and boundedness assumptions
#bPWloc1,8pRmq,
DCą0 such that|bpyq| ďCp1` |y|q, y PRm.
Under the above hypotheses the flowY is global and smooth,Y PWloc1,8pRˆRmq. We assume that the vector fieldb is divergence free
divyb“0,yPRm
which guarantees that the transformation y PRm ÑYps;yq PRm is measure preserving for anysPR. The asymptotic analysis of (1.1) comes immediately when the operatorsb¨∇y and divypD∇yq are commuting, i.e. rb¨∇y,divypD∇yqs “0. The idea is to perform the change of coordinates z“Yp´t{ε;yq, and therefore to replace the familypuεqεą0 by the new family pvεqεą0 given by
uεpt, yq “vεpt, zq “vεpt, Yp´t{ε;yqq, pt, yq PR`ˆRm.
The point is that, under the above commutation property, the new unknownspvεqεą0 satisfy
"
Btvε´divzpD∇zvεq “0, pt, zq PR`ˆRm vεp0, zq “uinpzq, zPRm.
Thus, vε does not depend on ε and therefore uε is the composition between the profile v “ vε and the flow associated to the vector field b{ε. The matrix fields D which ensure the commutation property are characterized in the following proposition, see [8, 3] for more details.
Proposition 2.1 Consider a divergence free vector field cPWloc1,8pRmq with at most linear growth at infinity and APL1locpRm,MmpRqq a matrix field.
1. The commutator between the advection operatorc¨∇y and the diffusion operatordivypA∇yq is still a diffusion operator, and we have
“c¨∇y,divypA∇yq‰
“divyprc, As∇yq in D1pRmq
where the associated diffusion field is defined by the bracket between the vector field c and the matrix field A
rc, As:“ pc¨∇yqA´ BycA´AtByc in D1pRmq.
2. The following assertions are equivalent (a) We have rc, As “0 in D1pRmq
(b) For any sPR, we have GpsqA“A, where the family of linear operators pGpsqqs, acting on matrix fields, is defined by
pGpsqAqpyq:“ BY´1ps;yqApYps;yqqtBY´1ps;yq, ps, yq PRˆRm. (2.1) Motivated by the case in which the operators commute, we perform the asymptotic analysis not for the family puεqεą0 but rather for the new family of functionspvεqεą0 given by
vεpt, zq “uεpt, Ypt{ε;zqq, pt, zq PR`ˆRm, εą0.
We expect that the familypvεqεą0converges whenεgoes to zero. Actually, when the operators b¨∇y and divypD∇yq are not commuting, the asymptotic behavior of the family puεqεą0, when εgoes to zero, can be described asymptotically in the same way as before, that is as a composition product between a profile v and the flow associated to b{ε. This profile v is the solution of a diffusion equation with a new diffusion matrix field xDy, which appears as
the orthogonal projection of Dover the linear space of matrix fields which are left invariant by the family pGpsqqs in (2.1), with respect to some scalar product, to be precised. The definition ofxDyis given by (2.4). Performing the change of variablez“Y p´t{ε;yqin (1.1), for anyεą0,tPR`,yPRm, and appealing to the chain rule (see [3] for more details) lead to a two time scales diffusion problem
"
Btvε´divzppGpt{εqDq∇zvεq “0, pt, zq PR`ˆRm
vεp0, zq “uεp0, zq “uinpzq, zPRm, εą0 (2.2) where pGpsqqsPR is defined by (2.1). A two-scale approach, based on Hilbert’s method, for- mally leads to the following effective problem
"
Btv´divzpxDy∇zvq “0, pt, zq PR`ˆRm
vp0, zq “uinpzq, zPRm, (2.3)
where the effective diffusion fieldxDyis given by the long time average xDy “ lim
SÑ`8
1 S
żS
0
GpsqDds. (2.4)
Remark 2.1 The computation of such average matrix field does not depend on the initial conditionuin. Thus, a pre-computation of the average matrix field is possible by knowing only D and b.
The existence of the matrix field xDy is provided by the von Neumann ergodic theorem, see [23, 3]. Indeed, the family of linear operators pGpsqqsPR defined by (2.1) is a C0-group of unitary operators in a suitable Hilbert space HQ, see (3.12). The existence of such Hilbert space is not always ensured, thus the average matrix field (2.4) is not always defined in this sense, see Section 3.4 or [3] for more details. The average matrix field (2.4) can be interpreted as a projection on the kernel of the infinitesimal generator L associated to pGpsqqsPR. We have a description for the restriction of L to the compactly supported smooth matrix fields as a transport operator
LpAq “ rb, As “ pb¨∇yqA´ BybA´AtByb, APCc1pRmq. (2.5) This expression of L will be useful for the computation of the group pGpsqqs, see Section 3.
Now, we can describe the behavior of the family puεqεą0 whenε goes to zero. It is shown in [3] that, for any initial condition uin PL2pRmq, the family pvεqεą0 solutions of the equation (2.2) converges strongly inL8locpR`;L2pRmqq, to the unique solution vPL8pR`;L2pRmqqof (2.3). Actually, if we consider T ą0, there is a constant CT ą0 such that, for anyεą0, we have
sup
tPr0,Ts
}vεpt,¨q ´vpt,¨q}L2pRmqďCTε and
sup
tPr0,Ts
}uεpt,¨q ´vpt, Yp´t{ε;¨qq}L2pRmqďCTε. (2.6)
3 Computation of the average matrix field
In this section, we provide a numerical method for the computation of the average matrix field (2.4). IfD : Rm ÑMmpRqis a matrix field, the computation of the average matrix field xDydefined by (2.4) will be provided in two steps. First, we compute numerically the matrix field GpsqD “ pGpsqDqpyq by using the infinitesimal generator L given by (2.5). Secondly,
the computation of the long time average will be done by a quadrature method. The method is presented in Section 3.1 and the numerical scheme associated is performed in Section 3.2.
In Section 3.3, the accuracy of the method is tested for several vector fields b. The cases where the flow associated to the vector fieldbis known provide, thanks to the formula (2.1), reference curves for the one parameter grouppGpsqqsPR. Finally, it seemed interesting to give an example of vector fieldb for which the associated average matrix field is not well defined, we propose such example in Section 3.4.
3.1 Computation of the matrix field GpsqD
Consider S ą0 and DPCc1pRm,MmpRqq a compactly supported smooth matrix field. The matrix field pGpsqDqpyq where sP r0, Ss, y PRm is related to the infinitesimal generatorL of the grouppGpsqqsPR through the following evolution problem
$
’&
’% d
dspGpsqDqpyq “LpGpsqDq pyq, ps, yq P r0, Ss ˆRm Gp0qDpyq “Dpyq, yPRm.
Moreover, the operator Lis a transport operator and its explicit expression is given in terms ofband its partial derivatives with respect toy, see (2.5). Thus, we need to solve the following partial differential equation on the matrix fieldAps, yq:“ pGpsqDqpyq,ps, yq P r0, Ss ˆRm
$
’&
’% d
dsAps, yq “ pb¨∇yqAps, yq ´ BybpyqAps, yq ´Aps, yqtBybpyq, ps, yq P r0, Ss ˆRm
Ap0, yq “Dpyq, yPRm.
(3.1) For the resolution of this equation, we appeal to a semi-Lagrangian scheme, see [17]. Such schemes have several advantages : they are unconditionally stable, with arbitrary order of accuracy and are known to provide less numerical diffusion that the Eulerian schemes, as upwind schemes. To avoid a too prohibitive numerical cost, we are not allowed to choose a small resolution. It is the reason why, we choose a high order of accuracy (four in practice) for the computation of the diffusion matrix field GpsqDforsP r0, Ss. As the long time compu- tation of GpsqDis required, we need that the scheme be not too diffusive. All these remarks have guided us to provide a numerical scheme based on the semi-Lagrangian framework for the resolution of (3.1). We rewrite the equation (3.1) by using the Lagrangian change of coordinates y“Yp´s;zq for ps, zq P r0, Ss ˆRm. By setting Bps, zq:“Aps, Yp´s;zqq, we have
$
’&
’% d
dsBps, zq “ ´BybpYp´s;zqqBps, zq ´Bps, zqtBybpYp´s;zqq, ps, zq P r0, Ss ˆRm
Bp0, zq “Dpzq, yPRm.
(3.2) We solve the ordinary differential equation (3.2) by a Runge-Kutta scheme of order four.
The unknown change Aps0, yq “Bps0, Yps0;yqq, fors0 P r0, Ss, y P Rm, is performed by a semi-Lagrangian scheme. The flow Yps0;yq is computed by a Runge-Kutta solver, and the reconstruction ofBps0, Yps0;yqq, from the values ofBps0,¨qon the grid points, is achieved by Lagrangian interpolation. This last step can be interpreted as the resolution of the following
transport equation
$
’&
’% d
dsCps, yq “ pb¨∇yqCps, yq, ps, yq P r0, Ss ˆRm Cp0, yq “Bps0, yq, yPRm.
(3.3)
Indeed, if we use the method of characteristics method on (3.3), we obtain Cps0, yq “ Bps0, Yps0;yqq “Aps0, yq. The construction of the scheme is detailed in Section 3.2.
3.2 Numerical scheme for the computation of xDy
For simplicity, the scheme is presented in the two dimensional setting m“2, but it extends easily to any dimension m ě 3. Several examples are given for m “4 in Section 3.3. The spatial domain will be a squareC “ r´R, Rs ˆ r´R, Rs, forRą0. ConsiderS ą0,NsPN‹ andIs“ t0, . . . , Nsu. We introduce a regular discretizationpskqkPIsof the intervalr0, Sswith a step ∆s“S{Ns, thussk“k∆sfor anykPIs. Moreover, we definedsk`1{2 “ pk`1{2q∆s for any kP t0, . . . , Ns´1u. ConsiderN PN‹ and I “ t0, . . . , Nu. Assume that pyijqpi,jqPI2
is a regular cartesian discretization of the square C, with i, j P I. The step of the spatial discretization is ∆y “2R{N, and yij “ p´R`i∆y, ´R`j∆yq for any pi, jq PI2.
Resolution of the system (3.2)
For the approximation of Bpsk, yijq, for k P Is and pi, jq P I2, we introduce the matrices Bkij P M2pRq. We solve numerically the system (3.2) at any point yij, i, j P I, with a Runge-Kutta 4 solver. We define the application Fyij : RˆM2pRq Ñ M2pRq, ps, Mq ÞÑ
´BybpYp´s;yijqqM ´MtBybpYp´s;yijqq. The scheme writes Bij0 “
ˆD11pyijq D12pyijq D21pyijq D22pyijq
˙
Bijk`1 “Bijk `∆s
6 pk1,ij`2k2,ij`2k3,ij`k4,ijq (3.4) where
k1,ij “Fyijpsk, Bijkq
k2,ij “Fyij ˆ
sk`1{2, Bijk `∆s 2 k1,ij
˙
k3,ij “Fyij ˆ
sk`1{2, Bijk `∆s 2 k2,ij
˙
k4,ij “Fyij´
sk`1, Bijk `∆sk3,ij
¯ .
At each step of the scheme, the computation of the flow Yps;¨qassociated to the vector field bp¨q needs to be evaluated at times s“ ´sk,s“ ´sk`1{2 and s“ ´sk`1.
Semi-Lagrangian step
We introduce the matrices Akij P M2pRq for the approximation of the matrices Apsk, yijq for k P Is and pi, jq P I2. We know that Apsk, yijq “ Bpsk, Ypsk;yijqq, we first compute the flow Yps;¨q at time s “ sk, at any point yij, pi, jq P I2 by a Runge-Kutta 4 solver.
The approximations Bijk of Bpsk, yijq are used for the reconstruction of Bpsk, Ypsk;yijqq by a Lagrangian interpolation. More exactly, cubic Lagrangian interpolation is performed by
‚
‚
‚
‚
‚
‚
‚
‚
‚
‚
‚
‚
‚
‚
‚
‚
›
Stencil for the interpolation
‚ Evaluation points
› PointYpsk, yijq
Figure 1: Stencil S
using the values of 16 points surrounding Ypsk;yijq. We nameSthe associated stencil, see Figure 1 :
More precisely, the interpolation of the function Bpsk,¨qat the pointYpsk;yijq will be done by a polynomial function Ppy1, y2q “ ÿ
0ďα, βď3
aαβy1αy2β. The computation of the coefficients aαβ, for 0 ď α, β ď 3, is based on the 16 values of Bkij, such that yij P S, by solving the linear system associated to the equations
ÿ
0ďα, βď3
aαβpyijqα1pyijqβ2 “Bkij, yij PS.
This Lagrangian interpolation provides a fourth order space approximation for regular data.
Computation of xDy
The computation of xDy is performed by a numerical integration of s ÞÑ GpsqD on r0, Ss.
Actually, a four points Newton-Cotes quadrature method is used, which is five order accurate in time, for more details on these methods see [14]. Consider ˜Dij, fori, j PI, an element of M2pRqwhich approximatesxDy pyijq. The quadrature method, with the valuesAkij computed in Section 3.2, writes
D˜ij “ 1 S
Ns{4´1
ÿ
k“0
4∆s
4
ÿ
l“0
ωlA4k`lij
where the coefficients of quadrature are given by ω0 “ω4 “ 7
90,ω1 “ω3 “ 16
45 and ω2 “ 2 15. 3.3 Numerical computations and examples
In this section, we test the previous numerical method, for computing the average matrix field. LetxDy pyq be the average matrix field associated toDpyq and ˜Dbe the numerical ap- proximation given by the numerical scheme. The error analysis between these two quantities is localized to a domainS ĂCwhich is left invariant by the flow associated to the vector field b, i.eYps;Sq “S for any sPR. For any matrixAPM2pRq,|A| “?
A:A, we introduce the relative error based on the discreteL2 norm
ErrorL2“ g f f e
ř
pi, jqPS| xDy pyijq ´D˜ij|2 ř
pi, jqPS| xDy pyijq|2 . (3.5)
Ellipsoidal flow
We consider the Hamiltonian vector field bpy1, y2q “ pBy2Hpyq,´By1Hpyqq, for y “ py1, y2q P R2, with
Hpyq “ 1 2y12`1
2y22`1
2y1y2, y“ py1, y2q PR2.
The function H is a coercive prime integral associated to b. We denote by Y the flow associated to the vector field b. The characteristic curves are ellipses of the plane, the flow Yps;yq “Epsqy is 4π{?
3-periodic, and we have Epsq “
¨
˝ cos
´? 3 2 s
¯
`?13sin
´? 3 2 s
¯ ?2
3sin
´? 3 2 s
¯
´?23sin
´? 3 2 s
¯
cos
´? 3 2 s
¯
´?13sin
´? 3 2 s
¯
˛
‚.
Thanks to (2.1), we have xDy “
?3 4π
ż4π{
?3
0
GpsqDds“
?3 4π
ż4π{
?3
0
Ep´sqDpYps;yqqtEp´sqds“
ˆ xDy11 xDy12 xDy21 xDy22
˙
where
xDy11“ 1 2
A
D11r1`cosp? 3¨qs
E
´ 1
?3 A
pD11`D21`D12qsinp? 3¨q
E
`1 6
A
pD11`2pD21`D12q `4D22qr1´cosp? 3¨qs
E
xDy21“ 1 2
A
D21r1`cosp? 3¨qs
E
` 1
?3 A
pD11´D22qsinp? 3¨q
E
´1 6
A
p2D11`D21`4D12`2D22qr1´cosp? 3¨qs
E
xDy12“ 1 2
A
D12r1`cosp? 3¨qs
E
` 1
?3 A
pD11´D22qsinp? 3¨q
E
´1 6
A
p2D11`4D21`D12`2D22qr1´cosp? 3¨qs
E
xDy22“ 1 2
A
D22r1`cosp? 3¨qs
E
` 1
?3 A
pD21`D12`D22qsinp? 3¨q
E
`1 6
A
p4D11`2pD21`D12q `D22qr1´cosp? 3¨qs
E
and for any function h, we denotexDijhp¨qy “
?3 4π
ş4π{
?3
0 DijpYps;yqqhpsq ds, pi, jq P t1,2u2. Finally, ifD11, D21, D12, D22are constant along the flowYps;¨q(i.eD11, D21, D12, D22only depend on the quantityy12`y22`y1y2), the explicit expression of xDyreduces to
xDy “ ˆ 2
3pD11`D22q `13pD21`D12q ´13pD11`D22q `13pD12´2D21q
´13pD11`D22q ` 13pD21´2D12q 23pD11`D22q `13pD21`D12q
˙
. (3.6) We consider the two following matrix fields
D1 “ ˆ3 1
2 1
˙
and D2pyq “
ˆ3`cospκpy12´y22qq cospy21´2y2q sinp2y1´y2q 3`sinpκpy21´y2qq
˙
withκ“25.
10´2 10´1 10´11
10´10 10´9 10´8 10´7 10´6
∆y L2 error
xD1y
L2 error
Slop e3.99
10´2 10´1
10´7 10´6 10´5 10´4 10´3 10´2
∆y L2 error
xD2y
L2 error
Slop e3.97
Figure 2: Left : L2 error for the approximation of xD1y. Right : L2 error for the approxima- tion of xD2y.
The explicit expression of xD2ycan be determined by the above formula and the average of D1 is given by
xD1y “
ˆ11{3 ´7{3
´4{3 11{3
˙ .
We check that the global space-time error committed for the computation ofxDyisOp∆s4q ` Op∆y4q. We choose C “ r´1; 1s2 and ∆s “ ∆y. The Figure 2 shows the relative errors (3.5) committed when using the method presented in Section 3.2. The graphic on the left emphasizes aOp∆y4qerror. In this example only the time error appears due to the resolution of the ordinary differential equation (3.2) by the Runge-Kutta 4 scheme (3.4). Indeed, the matrix field D1 is constant and the Jacobian matrix associated to b is also constant. The solution of (3.2) does not depend on the variable y. In this case, the interpolation step presented in Section 3.2 is exact. The graphic on the right presents the relative error in non constant, but regular, case. The interpolation error is orderOp∆y4qand the global time-space error is Op∆s4q `Op∆y4q.
Non explicit central flow
We consider the Hamiltonian vector field bpy1, y2q “ pBy2Hpyq,´By1Hpyqq, defined for y “ py1, y2q P R2, with H a homogeneous function of degree two, i.e Hpλy1, λy2q “ λ2Hpy1, y2q for any λPR and py1, y2q PR2
Hpy1, y2q “1 2y12`1
2y22`y1y2py12´y22q
y12`y22 , py1, y2q PR2{tp0,0qu, and Hp0,0q “0. (3.7) The functionHisC2onR2{tp0,0quand is a coercive prime integral ofb. We denote byY the flow associated to the vector fieldb. The characteristic curves are closed and the flow Yps;¨q is periodic. A representation of these curves are given by the Figure 3. In polar coordinates, the function H defined byHprcospθq, rsinpθqq “Hpr, θq, forpr, θq PR`ˆ r0,2πr, writes
Hpr, θq “r2 ˆ1
2`gpθq
˙
with gpθq “ 1
4sinp4θq.
Figure 3: Level set of the function (3.7)
The periodTplqassociated with each closed integral curveH “l,lě0 because minR2H“0, is constant Tplq “T. Indeed, we can computeT, see [20], by the following formula
T “ ż2π
0
dθ 1`2gpθq “
ż2π
0
dθ
1`12sinp4θq “ 4π
?3.
The average matrix field associated to a matrix fieldD is given, thanks to (2.1), by xDy “
?3 4π
ż4π{? 3 0
GpsqDds“
ˆ xDy11 xDy12 xDy21 xDy22
˙ .
In this case, we do not have an explicit expression for the flow Y, and thus for the matrix field GpsqD. If the matrix field D is constant, we can obtain some informations on the average matrix field. The Hamiltonian (3.7) is homogeneous of degree two, we deduce that bpλyq “λbpyq, for anyλPRand yPR2. Thus, we have
Yps;λyq “λYps;yq, for anyλPRandps, yq PRˆR2. (3.8) By differentiation of the equality (3.8) with respect to y, we obtain
BYps, λyq “ BYps, yq, for any λ‰0, yPR2.
IfDpλyq “Dpyq, for anyλ‰0 andyPR2, then, the formula (2.1) yields : xDy pλyq “ xDy pyq for any λ‰0 and yPR2. Thus, we expect that the average with respect tob of a constant matrix field is constant along the straight lines passing through the origin of the plane, with a discontinuity at y “ p0,0q. Indeed, the Hamiltonian H is not C2 at the origin, thus the average matrix field xDy is not continuous at the point y “ p0,0q. We test the method of Section 3.2 for the matrix field D “ I2. We choose C “ r´1; 1s ˆ r´1; 1s as a numerical domain. The Figure 4 represents the coefficients of the matrix field xI2y localized to an invariant domain with respect to the flow ofb. Each of these coefficients is constant along the straight lines passing to the origin with a discontinuity aty“ p0,0q. In Figure 5, we observe the order of accuracy of the method with ∆s“∆y. The reference solution is obtained by the average computation method and a spatial resolution N “512. The default of regularity at the origin causes a degradation of the order of convergence. If we compute the error outside a small ball around the origin we find the expected accuracy Op∆s4`∆y4q.
Figure 4: Coefficients of the average matrix field xI2y, from left to right and top to bottom, we have xI2y11,xI2y12,xI2y21 andxI2y22.
10´2 10´1
10´5 10´4 10´3 10´2 10´1
∆y L2 error
xI2y
Away from the origin Near the origin
Slop e3.93
Slope 1.13
Figure 5: L2 error for the approximation ofxI2y
Two dimensional Fokker-Planck equation
In this example, we approximate the effective diffusion matrix field associated to a model which describe the evolution of a density of charged particles under the action of high magnetic field by taking into account the collision effects. We assume that the magnetic field Bε is uniform, defined by Bε“ p0,0, B{εq,B ą0, and that the electric field is given by Ept, xq “ pE1pt, xq, E2pt, xq,0qwithtě0 andx“ px1, x2q PR2. We choose the asymptotic regime with finite Larmor radius that is the typical length in the perpendicular directions (with respect to the magnetic lines) is of the same order as the Larmor radius and the typical length in the parallel direction is much larger. The presence density of a population of charged particles fε satisfies the two dimensional Fokker-Planck equation
Btfε`1
εpv1Bx1`v2Bx2qfε` q
mE¨∇vfε` qB
mεpv2Bv1´v1Bv2qfε“νdivvtΘ∇vfε`vfεu.
(3.9) Here mis the particle mass,q is the particle charge, ν is the collision frequency and Θ is the temperature. The transport operator associated to the stiff part of the equation (3.9) is
bpx, vq ¨∇x,v “v1Bx1 `v2Bx2 `ωcpv2Bv1 ´v1Bv2q, with ωc“ qB
m, px, vq PR4. The flow of bis denoted
px, vq “ px1, x2, v1, v2q PR2ˆR2ÞÑYps;x, vq “ pXps;x, vq, Vps;x, vqq PR2ˆR2,
and can be determined explicitly Xps;x, vq “x`
Kv ωc
´Rp´ωcsq ωc
Kv, Vps;x, vq “Rp´ωcsqv
where Rpθq is the two dimensional rotation R2 of angle θ P R. We want to compute nu- merically the effective diffusion matrix field associated to the diffusion operator divvp∇v¨q “ divx,vpD∇x,v¨qof the equation (3.9), where the diffusion fieldD is defined by
D“
2
ÿ
i“1
evibevi “
ˆ 02ˆ2 02ˆ2 02ˆ2 I2
˙
. (3.10)
For more details on the asymptotic model related to the equation (3.9) see [9]. The Jacobian matrix associated to the flow writes
Bx,vYps;x, vq “
˜
I2 I2´Rp´ωcsq
ωc Rp´π{2q 02ˆ2 Rp´ωcsq
¸
where 0mˆn is the zero matrix with m rows and n columns. The flow Y is 2πω
c-periodic, and a direct computation shows that
xDy px, vq “ lim
SÑ`8
1 S
żS 0
pGpsqDqpx, vqds
“ ωc 2π
ż2π{ωc
0
ByYp´s;Yps;x, vqq
ˆ 02ˆ2 02ˆ2 02ˆ2 I2
˙
tByYp´s;Yps;x, vqqds
“ 1 ω2c
ˆ 2I2 ´ωcRp´π{2q ωcRp´π{2q ωc2I2
˙
. (3.11)
The method performed in Section 3.2 applies in this situation as well, where the long time average is actually replaced by one period average. However, it is interesting to understand, on this periodic example, the behavior of the numerical error when we compute the long time average. This could be useful when the flow associated to bis periodic whereas the period is not available. In the sequel, we consider that ωc“1. In order to provide a theoretical study of the error, we introduce some notations. We introduce the set
HQ “
!
A:R4ÑM4pRqmeasurable : Q1{2AQ1{2 PL2pR4q )
(3.12) whereQ:“ xDy´1,xDyis a positive definite matrix field such thatxDy PKerL. The setHQ is a Hilbert space for the natural scalar product
pA, BqHQ:“
ż
R4
pQ1{2AQ1{2q:pQ1{2BQ1{2qdy“ ż
R4
QA:BQdy, @A, BPHQ,
the associated norm is denoted }A}HQ. It is shown in [3] that the group of linear operators pGpsqqsPRis aC0-group of unitary operators onHQ. The infinitesimal generatorLassociated to pGpsqqsPR is skew-adjoint in HQ and its kernel coincides with tA P HQ Ă L1locpRmq : rb, As “0PD1pRmqu, see [8, 3].
Remark 3.1 Thanks to the Proposition 2.1, the kernel of L can be interpreted as the set of matrix fields A which ensure the commutation property between the operators b¨∇y and divypA∇yq.
Moreover, we have the following decompositionHQ“KerL‘KRangeL. Actually, the uniform boundedness of the flow periods implies the closure of the range of L, see [4]. Thus, for any matrix field APHQ, there existsC PHQ such that
A“ xAy `LpCq. (3.13)
Replacing C by C´ xCy, we can also assume thatxCy “0. Recall thatGpsq xAy “ xAy, for any sPR, and therefore, by the unitarity of the group pGpsqqs inHQ, we have
›
›
›
› 1 S
żS
0
GpsqAds´ xAy
›
›
›
›HQ
“
›
›
›
› 1 S
żS
0
GpsqpLpCqqds
›
›
›
›HQ
“
›
›
›
› 1 S
żS
0
d
dsGpsqCds
›
›
›
›HQ
“
›
›
›
›
GpSqC´C S
›
›
›
›HQ
ď 2}C}HQ S .
Thus, at least in the periodic case, the committed theoretical HQ error onxAyis O`1
S
˘. For the numerical simulations, we have to localize the error to a ball Br“ tpx1, x2, v1, v2q PR4 : x21`x22`v12`v22 ď r2u of radius r ą 0. We introduce the notation }A}HQ,r :“ }1BrA}HQ
for any matrix field A P L8pRm,MmpRqq. Thus, we study numerically the error between the quantities S ÞÑ S1şS
0 GpsqAds and xAy for A “ 1BrD. In this case, the multiplicative constant in front of the term 1{S can be specified if we can compute the matrix field C and Q. We have
Q“ xDy´1 “
ˆ I2 Rp´π{2q
´Rp´π{2q 2I2
˙
(3.14)
100 200 300 400 500 10´3
10´2 10´1 100
Time S L2 error
S ÞÑ }S1
şS
0 GpsqDds´xDy}L2
}xDy}L2
L2 error S ÞÑ 1.6S
100 200 300 400 500
10´3 10´2 10´1 100
Time S HQ,rerror
SÞÑ }S1
şS
0GpsqDds´xDy}HQ,r
}xDy}HQ,r
HQ,r error S ÞÑ S2
Figure 6: Long time evolution of the relative error
For the matrix field Ddefined by (3.10), a straightforward computation leads to the matrix field
C “
ˆ02ˆ2 I2
I2 02ˆ2
˙
(3.15) such that D“ xDy `LpCq and xCy “0. The Figure 6 shows the relative numerical L2 and HQ,rerrors committed for the computation of (3.11) by a long time average of the matrix field (3.10). The time resolution is chosen equal to Ns“103 withS “500. The semi-Lagrangian part of the scheme is realized by a linear interpolation. The volume ofBris denoted mespBrq.
In this case, the expressions (3.11), (3.14) and (3.15) lead to }C}HQ,r “
d ż
Br
QC : CQdxdv“ d
ż
Br
4 dxdv“2a
mespBrq and
} xDy }HQ,r “ dż
Br
QxDy : xDyQdxdv“ dż
Br
4 dxdv“2a
mespBrq.
Thus ›
›
›
1 S
şS
0 GpsqDds´ xDy
›
›
›HQ,r
} xDy }HQ,r ď 2
S, for anyS ą0.
We retrieved the expected error for the relative HQ,r error, cf. Figure 6.
Almost periodic flow
We consider the vector fieldbpyq “ py2,´ω12y1, y4,´ω22y3q, defined fory“ py1, y2, y3, y4q PR4, withω1, ω2PRincommensurable, i.eω1{ω2 RQ. The functionψpyq “ω21y21`y22`ω22y23`y42, withyPR4, is a coercive prime integral associated tob. We denoteYps;yqthe flow associated
to the vector fieldb. We consider a constant matrix fieldDPM4pRq. The flowY is explicit Yps;yq “Rp´s;ω1, ω2qy, ps, yq PRˆR4, with
Rps;ω1, ω2q “
¨
˚
˚
˝
cospsω1q ´ω11 sinpsω1q 0 0
ω1sinpsω1q cospsω1q 0 0
0 0 cospsω2q ´ω1
2 sinpsω2q
0 0 ω2sinpsω2q cospsω2q
˛
‹
‹
‚ .
The incommensurability condition ensures that the flow Yps;¨q is not periodic with respect tos, but almost periodic. For more details on almost periodic functions see [11]. We have
xDy “ lim
SÑ`8
1 S
żS
0
BYp´s;Yps;¨qqDpYps;¨qqtBYp´s;Yps;¨qqds
“ lim
SÑ`8
1 S
żS 0
Rps;ω1, ω2qDpYps;¨qqtRps;ω1, ω2qds
“
¨
˚
˚
˚
˚
˝
1
2D11`2ω12 1
D22 12D12´12D21 0 0
1
2D21´ 12D12 ω221D11`12D22 0 0
0 0 12D33`2ω12
2D44 1
2D34´12D43
0 0 12D43´12D34 ω222D33`12D44
˛
‹
‹
‹
‹
‚ .
For this flowY, the ergodic mean can not be reduced to an average over one period as in the periodic case. We need to compute a long time average. We study the error committed with respect to this long time average, when we use the method in Section 3.2, for the matrix field D defined by
D“
¨
˚
˚
˝
2 ´1 0 ´2
´1 1 2 0
0 2 3 1
1 0 ´1 1
˛
‹
‹
‚ .
In the figure 7, we observe that the error isO`1
S
˘ as in the periodic case. Indeed, the matrix fieldDis constant and the computation of a matrixC which satisfies the equality (3.13) can be provided by solving the linear system LpCq “D´ xDy.
3.4 Shear flow
In this example, we provide a two dimensional vector field such that the associated average matrix field does not exist. Actually, sufficient conditions for the existence of an average matrix field are given in [3]. These conditions are based on the existence of a basis pbiq1ďiď2
of vector fields in involution with the vector field bpyq, i.e when the operators bpyq ¨∇y and bipyq ¨∇y are commuting, for any 1ďiď2. We define the vector field bpyq “ py2,´y1q for y “ py1, y2q P R2. In this case, the flow Y associated to b is given by Yps;yq “ Rp´sqy, for any sPR and y PR2. Moreover, we consider a smooth even function f :RÑR` such that fp0q “ 1, fpxq “ 0 for any x P r1;`8r and strictly decreasing on r0,1s. Finally, we introduce the radial function Tpyq “fp|y|qfor yPR2. We denote by Z the flow associated to the vector field T b. We have Zps;yq “ Rp´sTpyqqy for any s P R and y P R2. The flow Z is a rotating shear flow, indeed the rotating period associated at each characteristic is different. If y is a point of the characteristic Zps;yq, for s P R, the associated period is Tpyq. The functionT is constant along the flowsY andZ. We claim that the average matrix field associated toD“I2, with respect to the vector fieldT bis not well defined, in the sense (2.4), on Bp0,1q{tp0,0qu where Bp0,1q is the unit open ball of R2. Indeed, thanks to the
100 200 300 400 500 10´3
10´2 10´1 100
TimeS
ErrorL2
S ÞÑ }S1
şS
0GpsqDds´xDy}L2
}xDy}L2
ErrorL2 SÞÑ S4
Figure 7: Long time evolution of the relative error
expression of the group (2.1) associated toT b, for anysPRand yPR2, we have
GpsqI2 “ BZ´1ps;yqtBZ´1ps;yq. (3.16) A direct computation shows that, for any sPRand yPR2, we have
BZps;yq “ ´sRpπ{2qZps;yq b∇yTpyq `Rp´sTpyqq.
On the other hand, thanks to the relationBZ´1ps;yq “ BZp´s;Zps;yqqwhich is available for any sPRand yPR2, we obtain
BZ´1ps;yq “sRpπ{2qyb∇yTpZps;yqq `RpsTpyqq. (3.17) Moreover, thanks to the equality ∇yTpyq “ f1p|y|q
|y| y, we can write (3.17) in the following form
BZ´1ps;yq “ sf1p|y|q
|y| Rpπ{2qybZps;yq `RpsTpyqq. (3.18) Finally, we combine (3.16) and (3.18), and a straightforward computation leads to
GpsqI2 “s2f1p|y|q2 pb b bqpyq `s f1p|y|q
¨
˝
´2y1y2
|y|
y21´y22
|y|
y21´y22
|y|
2y1y2
|y|
˛
‚`I2. (3.19) We integrate (3.19) with respect to sover the intervalr0, SswithS ą0, for any yPR2, and we obtain
1 S
żS
0
pGpsqI2qpyqds“ S2
3 f1p|y|q2 pb b bqpyq `S
2 f1p|y|q
¨
˝
´2y1y2
|y|
y21´y22
|y|
y21´y22
|y|
2y1y2
|y|
˛
‚`I2. (3.20) Thus xI2y p0,0q “I2 and xI2y pyq “I2 for anyy PBp0,1qc. But, for yPBp0,1q{tp0,0qu, the expression (3.20) does not have a limit when S Ñ `8. The average matrix field associated toD“I2 with respect toT bis not well defined.
4 Asymptotic behavior of the solutions of a parabolic problem with stiff transport terms
In this section, we study numerically the asymptotic behavior of the familypuεqεą0, solutions of (1.1), when εgoes to 0, in the two dimensional settingm“2. The behavior ofuε can be described, whenεgoes to 0, as a composition product of a profilev, which does not depend of ε, with the flow associated to the vector field´b{ε. Moreover, the profilevsolves the effective diffusion problem (2.3) with the diffusion matrix field xDy (2.4). Thanks to the method in Section 3 for the computation of the effective diffusion field, we solve the system (2.3), and we study the error between a reference solutionuεpt,¨qand vpt, Yp´t{ε;¨qq. The anisotropic diffusion equation, with T ą0 andyPR2,
"
Btv´divypxDy∇yvq “0, pt, yq P r0, Ts ˆR2 vp0, yq “uinpyq, yPR2
is solved by an implicit method in time and finite difference method in space, see [24]. As in Section 3.2, we introduce a time discretization ptkq of r0, Ts, with k P It “ t0, . . . , Ntu and ∆t “ T{Nt. We consider also a spatial discretization pyijq, with a step ∆y, for the square C “ r´R, Rs ˆ r´R, Rs, with R ą 0, and we add the points yi`1{2,j and yi,j`1{2 for any i, j P I “ t0, . . . , N ´1u, for the flux computation. We introduce the notation W“ ´ xDy∇yv. The operator divypWqat the point yij is approximated by
pdivypWqqij «
W1i`1{2,j´W1i´1{2,j
∆y `
W2i,j`1{2´W2i,j´1{2
∆y (4.1)
where
W1i`1{2,j “ ´pxDy11qi`1{2,j Bv By1
ˇ ˇ
ˇi`1{2,j´ pxDy12qi`1{2,j Bv By2
ˇ ˇ ˇi`1{2,j
W2i,j`1{2 “ ´pxDy21qi,j`1{2 Bv By1
ˇ ˇ
ˇi,j`1{2´ pxDy22qi,j`1{2 Bv By2
ˇ ˇ ˇi,j`1{2.
(4.2)
The derivatives are approximated by the following expressions Bv
By1
ˇ ˇ
ˇi`1{2,j« vi`1,j´vi,j
∆y Bv
By2 ˇ ˇ
ˇi,j`1{2« vi,j`1´vi,j
∆y Bv
By2 ˇ ˇ
ˇi`1{2,j« vi`1{2,j`1´vi`1{2,j´1
2∆y “ vi`1,j`1`vi,j`1´vi`1,j´1´vi,j´1 4∆y
Bv By1
ˇ ˇ
ˇi,j`1{2« vi`1,j`1{2´vi´1,j`1{2
2∆y “ vi`1,j`1`vi`1,j´vi´1,j`1´vi´1,j 4∆y
(4.3)
and the diffusion coefficients xDyi`1{2,j,xDyi,j`1{2 by
xDyi`1{2,j “ xDyi`1,j` xDyi,j 2
xDyi,j`1{2 “ xDyi,j`1` xDyi,j
2 .
(4.4)
We are led to the semi-discrete scheme in space, where we denote byvijptqthe approximations of the unknowns vpt, yijqfor any pi, jq PI2
Btvijptq ` W1i`1{2,jptq ´W1i´1{2,jptq
∆y `
W2i,j`1{2ptq ´W2i,j´1{2ptq
∆y “0.