2
 A COMPARATIVE STUDY OF SOME TIME INTEGRATION SCHEMES FOR THE FINITE VOLUME SOLUTION OF HETEROGENUOUS DIFFUSION Fayssal Benkhaldoun , Amadou Maha ma ne , Mohammed Sea  ¨ ıd LAGA, Universit ´ e Paris 13, 99 Av J.B. Clement, 93430 Villetaneuse, France School of Engineering, University of Durham, South Road, Durham DH1 3LE, UK Introduction We present a numerical comparative study for two time stepping schemes applied to the  finite volume discretiza- tion of diffusion equations with heterogeneous diffusion coef cient s. The cell- cente red  nit e vol ume met hod is used to discr etize the gradient opera tor and a mesh adaptation technique is adopted to improve the ef ciency of the considered methods. Objectives To develop accurate and ef cient  finite volume method for solvingheterogeneous diffusion problems. To use adaptive  nite volume to simul ate the  ow transport in porous media. To validate developed methods with numerical soluti- ons obtained using other methods. Finite V olume Discretization Our main concern in the present study is on the  nite volume discretization of the two-dimensional gradient operator ! = " "  x , " "  y T resulting from the weak formulation of the diffusion equations. To this end we discretize the spatial domain  ¯ # = # "# in conforming triangular elements  K i  as  ¯ # = ∪  N i=1 K i , with  N  is the total number of elements. Each triangle represents a control volume and the variables are located at the geometric centers of the cells. To discretize the diffusion operators we adapt the so-called cell-centered  finite volume method based on a Green-Gauss diamond recon- struction. Hence, a co-volume,  D $ , is  first constructed by connecting the barycentres of the elements that share the edge $ and its endpoints as shown in below gure. Then, the discrete gradient operator ! $  is evaluated at an inner edge $ as ! $ u h  =  1 2meas(  D $ ) (u  L u K )meas($)n K ,$ +(u S u  N )meas(s $ )n $ ,  (1) where u h  is the  finite volume discretization of a generic function  u, meas(  D) denotes the area of the element  D,  n K ,$  denotes the unit outward normal to the surface  $,  u K and u  L  are the values of the solution  u h  in the elements  K  and  L, respectively. In (1), u S  and  u  N  are the values of the solution  u h  at the co-volume nodes approximated by a linear interpolation from the values on the cells sharing the same vertex  S  and  N , respectively.  L K xK x L  D$ n $ n K ,$  N S n%1 $ %1 Time stepping schemes For simplicity in the presentation we consider the transient diffusion problem "u "t ! · (K(x)!u) =  f (x,t ),  (x,t ) # ×(0,T ], u(x,t ) = 0 ,  (x,t ) "# ×(0,T ],  (2) u(x,0) = u 0 ,  x #, Explicit scheme: For the time integration of (2) we use the forward Euler method, the fully discrete version of the diffusion equation (2) reads u 0 K  =  1 meas(K ) Z K u 0 (x) d x,  K  ∈ T  , (3) u n+1 K  = u n K  +  &t meas(K )  ' $E K F n K ,$ meas($) + &t f n K ,  K  ∈ T  , where  E K  is the set of all edges of the control volume  K  an d F n K ,$  are the numerical uxes reconstructed as F n K ,$  = K $ ! $ u n h  · n K ,$ . Implicit scheme:  An implicit time stepping scheme for (2) is formulated using the backward Euler scheme as u 0 K  =  1 meas(K ) Z K u 0 (x) d x,  K  ∈ T  , (4) u n+1 K  = u n K  +  &t meas(K )  ' $E K F n+1 K ,$  meas($) + +&t f n+1 K  ,  K  ∈ T  . X       Y 0 0.025 0.05 0.075 0.1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 X       Y 0 0.025 0.05 0.075 0.1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 X      Y 0 0.025 0.05 0.075 0.1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 Sw 0.94 0.88 0.81 0.75 0.69 0.63 0.56 0.50 0.44 0.38 0.31 0.25 0.19 0.13 0.06 X      Y 0 0.025 0.05 0.075 0.1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 Sw 0.94 0.88 0.81 0.75 0.69 0.63 0.56 0.50 0.44 0.38 0.31 0.25 0.19 0.13 0.06 Adaptive meshes at time  t  = 0.022 (left) and t  = 0.048 (right). Saturation contours at time t  = 0.022 (left) and t  = 0.048 (right). Comparison between explicit and implicit schemes on adaptive mesh solving the problem (2) with  K = (1 + (  x) 2 1 10 2 10 2 10 6 . The reaction term  f  is explicitly calculated such that the exact solution is U (  x, y,t ) = sin()  x)sin()  y) 1 e *t  . Explicit scheme Implicit scheme CFL = 1 CFL = 5 CFL = 10 CFL = 50 CFL = 10 0 min &t  8. 91 E- 06 4. 46 E- 05 8 .9 1 E- 05 4. 46 E- 04 8 .9 1E -0 4 Re lati ve er r or 1. 93E- 003 1. 92E- 03 1.89 E- 03 1 .8 8E - 03 1 .8 7E - 03 # ti me st ep s 129 12 88 1 2582 53 7 12 912 45 25 82 10 12 90 80 CPU ti me 8 80 84 . 50 3 964 2. 5 7 25688.67 1 1299 .6 0 11 3 78 . 34 GMRES iter —– 2 3 9 19 # elements 17256 17249 17248 16480 15507 # nodes 8681 8676 8676 8292 7806 Conclusions We have investigated a class of time stepping schemes for solving the transient dif- fusion problems using the  finite volume method. The finite volume method uses the cell-centered for the spatial disctretization of the diffusion operator. The method is formulated for unstructured grids and an adaptive procedure is implemented. We have considered both the forward and backward Euler schemes. A comparison with other  finite volume methods demonstrates the feasibility of the present algorithms to solve diffusion problems with heterogeneous diffusion coef cients. Further Work To apply the finite volume methods for complex  flow transport in porous media.

Poster cfd

Embed Size (px)

DESCRIPTION

cfd gradient scheme

Citation preview

  • A COMPARATIVE STUDY OF SOME TIME INTEGRATION SCHEMES FORTHE FINITE VOLUME SOLUTION OF HETEROGENUOUS DIFFUSION

    Fayssal Benkhaldoun!, Amadou Mahamane!, Mohammed Sead! LAGA, Universite Paris 13, 99 Av J.B. Clement, 93430 Villetaneuse, France

    School of Engineering, University of Durham, South Road, Durham DH1 3LE, UK

    IntroductionWe present a numerical comparative study for two timestepping schemes applied to the finite volume discretiza-tion of diffusion equations with heterogeneous diffusioncoefficients. The cell-centered finite volume methodis used to discretize the gradient operator and a meshadaptation technique is adopted to improve the efficiencyof the considered methods.

    ObjectivesTo develop accurate and efficient finite volume methodfor solvingheterogeneous diffusion problems.

    To use adaptive finite volume to simulate the flowtransport in porous media.

    To validate developed methods with numerical soluti-ons obtained using other methods.

    Finite Volume DiscretizationOur main concern in the present study is on the finite volume discretization of thetwo-dimensional gradient operator !=

    (""x,

    ""y

    )Tresulting from the weak formulation

    of the diffusion equations. To this end we discretize the spatial domain # = # "#in conforming triangular elements Ki as # = Ni=1Ki, with N is the total number ofelements. Each triangle represents a control volume and the variables are located atthe geometric centers of the cells. To discretize the diffusion operators we adapt theso-called cell-centered finite volume method based on a Green-Gauss diamond recon-struction. Hence, a co-volume, D$, is first constructed by connecting the barycentresof the elements that share the edge $ and its endpoints as shown in below figure. Then,the discrete gradient operator !$ is evaluated at an inner edge $ as

    !$uh =1

    2meas(D$)((uLuK)meas($)nK,$+(uSuN)meas(s$)n$

    ), (1)

    where uh is the finite volume discretization of a generic function u, meas(D) denotesthe area of the element D, nK,$ denotes the unit outward normal to the surface $, uKand uL are the values of the solution uh in the elements K and L, respectively. In (1),uS and uN are the values of the solution uh at the co-volume nodes approximated bya linear interpolation from the values on the cells sharing the same vertex S and N,respectively.

    L

    K

    xKxL

    D$

    n$

    nK,$

    N

    Sn%1$

    %1

    Time stepping schemesFor simplicity in the presentation we consider the transient diffusion problem

    "u"t

    ! (K(x)!u) = f (x, t), (x, t) # (0,T ],u(x, t) = 0, (x, t) "# (0,T ], (2)

    u(x,0) = u0, x #,

    Explicit scheme: For the time integration of (2) we use the forward Euler method, thefully discrete version of the diffusion equation (2) reads

    u0K =1

    meas(K)

    Z

    Ku0(x) dx, K T ,

    (3)un+1K = u

    nK +

    &tmeas(K) '$EK

    FnK,$meas($)+&t f nK, K T ,

    where EK is the set of all edges of the control volume K and FnK,$ are the numericalfluxes reconstructed as

    FnK,$ = K$!$unh nK,$.

    Implicit scheme: An implicit time stepping scheme for (2) is formulated using thebackward Euler scheme as

    u0K =1

    meas(K)

    Z

    Ku0(x) dx, K T ,

    (4)un+1K = u

    nK +

    &tmeas(K) '$EK

    Fn+1K,$ meas($)++&t f n+1K , K T .

    X

    Y

    0 0.025 0.05 0.075 0.10

    0.01

    0.02

    0.03

    0.04

    0.05

    0.06

    0.07

    0.08

    0.09

    0.1

    X

    Y

    0 0.025 0.05 0.075 0.10

    0.01

    0.02

    0.03

    0.04

    0.05

    0.06

    0.07

    0.08

    0.09

    0.1

    X

    Y

    0 0.025 0.05 0.075 0.10

    0.01

    0.02

    0.03

    0.04

    0.05

    0.06

    0.07

    0.08

    0.09

    0.1

    Sw0.940.880.810.750.690.630.560.500.440.380.310.250.190.130.06

    X

    Y

    0 0.025 0.05 0.075 0.10

    0.01

    0.02

    0.03

    0.04

    0.05

    0.06

    0.07

    0.08

    0.09

    0.1

    Sw0.940.880.810.750.690.630.560.500.440.380.310.250.190.130.06

    Adaptive meshes at time t = 0.022 (left) and t = 0.048 (right). Saturation contours at time t = 0.022 (left) and t = 0.048 (right).

    Comparison between explicit and implicit schemes on adaptive mesh solving the

    problem (2) with K = (1+(x)2(

    1 102102 106

    ). The reaction term f is explicitly

    calculated such that the exact solution isU(x,y, t) = sin()x)sin()y)(1 e*t

    ).

    Explicit scheme Implicit scheme

    CFL = 1 CFL = 5 CFL = 10 CFL = 50 CFL = 100

    min &t 8.91E-06 4.46E-05 8.91E-05 4.46E-04 8.91E-04Relative error 1.93E-003 1.92E-03 1.89E-03 1.88E-03 1.87E-03# time steps 12912881 2582537 1291245 258210 129080CPU time 88084.50 39642.57 25688.67 11299.60 11378.34GMRES iter 2 3 9 19# elements 17256 17249 17248 16480 15507# nodes 8681 8676 8676 8292 7806

    ConclusionsWe have investigated a class of time stepping schemes for solving the transient dif-fusion problems using the finite volume method. The finite volume method uses thecell-centered for the spatial disctretization of the diffusion operator. The method isformulated for unstructured grids and an adaptive procedure is implemented. Wehave considered both the forward and backward Euler schemes. A comparison withother finite volume methods demonstrates the feasibility of the present algorithmsto solve diffusion problems with heterogeneous diffusion coefficients.

    Further WorkTo apply the finite volume methods for complex flow transport in porous media.