a numerical study of a mimetic scheme for unsteady …

7
64 A NUMERICAL STUDY OF A MIMETIC SCHEME FOR UNSTEADY HEAT EQUATION Un Estudio Numérico de un Esquema Mimético para la Ecuación No Estática del Calor 1 2 3 ILIANA A. MANNARINO S. , JUAN M. GUEVARA J. y YAMILET QUINTANA 1,2 Escuela de Matemáticas, Facultad de Ciencias, Universidad Central de Venezuela. Apto. Postal 6228, Carmelitas 1010, Caracas, Venezuela. 3 Departamento de Matemáticas Puras y Aplicadas, Universidad Simón Bolívar. Apto. Postal 89000, Caracas 1080 A, Venezuela. {iliana.mannarino, juan.guevara}@ciens,ucv.ve, [email protected] Fecha de recepción: 08/10/2007, Fecha de Revisión: 19/11/2007, Fecha de Aceptación: 09/05/2008 Abstract A new mimetic scheme for the unsteady heat equation is presented. It combines recently developed mimetic discretizations for gradient and divergence operators in space with a Crank- Nicolson approximation in time. A comparative numerical study against standard finite difference shows that the proposed scheme achieves higher convergence rates, better approximations, and it does not require ghost points in its formulation. Key words: mimetic scheme, finite differences, gradient operator, divergence operator, heat equation. Resumen Se presenta un nuevo esquema mimético para resolver la ecuación no estática del calor. El esquema combina discretizaciones miméticas de los operadores gradiente y divergencia, recientemente desarrolladas, en el espacio con una aproximación tipo Crank-Nicolson en el tiempo. Un estudio numérico comparativo contra el esquema de diferencias finitas tradicionales muestra la superioridad del esquema propuesto obteniéndose órdenes de convergencia superiores, mejores aproximaciones y la ausencia de puntos fantasmas en su formulación. Palabras clave: esquema mimético, diferencias finitas, operador gradiente, operador divergencia, ecuación del calor. FARAUTE Ciens. y Tec., 3(1): 64-70, 2008. ISSN 1698-7418 Depósito Legal PP200402CA1617

Upload: others

Post on 20-Jul-2022

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A NUMERICAL STUDY OF A MIMETIC SCHEME FOR UNSTEADY …

64

A NUMERICAL STUDY OF A MIMETIC SCHEME FOR UNSTEADY HEAT EQUATION

Un Estudio Numérico de un Esquema Mimético para la Ecuación No Estática del Calor

1 2 3ILIANA A. MANNARINO S. , JUAN M. GUEVARA J. y YAMILET QUINTANA1,2Escuela de Matemáticas, Facultad de Ciencias, Universidad Central de Venezuela.

Apto. Postal 6228, Carmelitas 1010, Caracas, Venezuela.3Departamento de Matemáticas Puras y Aplicadas, Universidad Simón Bolívar.

Apto. Postal 89000, Caracas 1080 A, Venezuela.{iliana.mannarino, juan.guevara}@ciens,ucv.ve, [email protected]

Fecha de recepción: 08/10/2007, Fecha de Revisión: 19/11/2007, Fecha de Aceptación: 09/05/2008

Abstract

A new mimetic scheme for the unsteady heat equation is presented. It combines recently developed mimetic discretizations for gradient and divergence operators in space with a Crank- Nicolson approximation in time. A comparative numerical study against standard finite difference shows that the proposed scheme achieves higher convergence rates, better approximations, and it does not require ghost points in its formulation.

Key words: mimetic scheme, finite differences, gradient operator, divergence operator, heat equation.

Resumen

Se presenta un nuevo esquema mimético para resolver la ecuación no estática del calor. El esquema combina discretizaciones miméticas de los operadores gradiente y divergencia, recientemente desarrolladas, en el espacio con una aproximación tipo Crank-Nicolson en el tiempo. Un estudio numérico comparativo contra el esquema de diferencias finitas tradicionales muestra la superioridad del esquema propuesto obteniéndose órdenes de convergencia superiores, mejores aproximaciones y la ausencia de puntos fantasmas en su formulación.

Palabras clave: esquema mimético, diferencias finitas, operador gradiente, operador divergencia, ecuación del calor.

FARAUTE Ciens. y Tec., 3(1): 64-70, 2008.ISSN 1698-7418Depósito Legal PP200402CA1617

Page 2: A NUMERICAL STUDY OF A MIMETIC SCHEME FOR UNSTEADY …

65

Iliana A. Mannarino S., Juan M. Guevara J. y Yamilet Quintana

WGDQB t][][][ +=

1. Introduction conservative schemes presented in (Shashkov, 1996) and standard finite differences based on

Mimetic schemes are a new type of numerical ghost points. An analytic proof of convergence for methods for solving partial differential equations. this scheme was reported in (Guevara et al., They are based on the discretizations of the main 2007). Applications of mimetic discretizations continum differential operators, which are developed in (Castillo et al., 2003) to transient combined to obtain the mimetic schemes for the problems have been only published for one most common equations in mathematical physics. dimensional Navier Stokes equation with A key feature of the mimetic discretizations is that encouraging results (Fagundez et al., 2004). they satisfy discrete versions of the Green-Gauss- Combination of second order mimetic Stokes theorem. This property guaranties the discretization with Crank Nicolson approach in conservative character of the numerical schemes. time has not been reported in the context of Mimetic methods could be considered as a hybrid transient heat equation to the best of our between finite element and finite difference knowledge. Therefore, numerical study and methods with the advantage that their computer mimetic scheme presented in this article are implementation are not harder than standard finite original contributions developed in (Mannarino, differences, while quality of their numerical 2007).approximations are comparable to those obtained by finite element in hard problems. These 3. Basic Mimetic Operators characteristics of mimetic schemes are principal incentives to continue their research and A mimetic scheme should provide matrix improvement. discretizations [G] and [D] for gradient (Ñ)

and divergence (Ñ.) operators respectively. It is In this article a new mimetic scheme for the well known that the Green-Gauss-Stokes theorem

unsteady heat equation is presented. Its content is represented by the relationhas been distributed in the following way. In the next section we give a short bibliographic review. After that the second order mimetic discretization (1)for gradient and divergence operators are described. Next, we present the unsteady heat equation and the new mimetic scheme for its solution in the most general context. As a between the operators Ñ and Ñ. at the continuous continuation the new scheme is adapted to the one level. In the context of the heat equation only dimensional case. Finally, a comparative gradient and divergence discretizations, [G] and numerical study and its conclusion are given. [D], are required. They satisfy a discrete version

of Green-Gauss-Stokes theorem2. Review of previous works

In (Castillo et al., 2003) a systematic (2)approach using uniform one dimensional grid to obtain new higher order mimetic schemes for gradient and divergence operators with the same In this expression brackets represent order of convergence at the boundary and inner generalized inner products with weights Q, W, I, grid points is presented. Its second order version and the matrix associated to the complete operator was used to solve the static heat equation (Freites [B] is defined by the explicit formulaet al., 2004; Castillo et al., 2005) and numerical results showed that they produced better approximated solutions than support operators (3)

[]IWQ

vuBvGuvuD ,][,,][ =+

()ò òòW W¶W

=Ñ+×Ñ vdsnuvdxuvdxur

,

FARAUTE Ciens. y Tec., 3(1). 2008.

Page 3: A NUMERICAL STUDY OF A MIMETIC SCHEME FOR UNSTEADY …

66

=--2/1nn xx 2/h

()aa xfu =

A comparison of equations (1) and (3) On the other hand, entries for mimetic reveals that [B] represents the boundary operator divergence discretization [D] are defined at the in the Green-Gauss-Stokes Theorem. It will play a block centers and they reduce to standard central fundamental role in boundary conditions mimetic differencediscretizations. Mimetic methods have been specially designed for logically rectangular grids, (6)so description of operators [G] and [D] are best defined in one dimensional context. In order to obtain these expressions a one dimensional It is important to notice that equations (4), (5), mimetic or staggered grid has been sketched in and (6) are all second order and they define the Fig. 1. only possible global second order mimetic

discretizations for gradient and divergence operators. These observations are the main contribution of references (Castillo et al., 2003; Castillo et al., 2005).

Fig. 1. 1-d mimetic or staggered grid 4. Mimetic Scheme for Heat Equation

In this figure, a typical left boundary of the In its most general form the heat equations is grid is displayed. Right boundary configuration is represented byeasily obtained by symmetry. Crosses represent nodes and vertical lines are grid blocks edges. (7)Nodes positions are represented by with a as a fraction if they are block centers. Edges positions are given by with a as an integer where u is temperature, K heat transfer diffusivity if they are inner edges. Nodes and edges agree at coefficient, F is known source term. In order to the boundaries and they are represented by x and obtain a solution for heat equations initial and 0

x if the grid has n blocks. For simplicity, it will be boundary conditions are required. The initial n

condition represents the values of temperature, assumed tha x =0, x =1, 0 n

c(x), at a certain time which is usually assumed when a is integer or fraction, andequal to zero. In symbols this takes the form. . Sequence represents

generic functional values at edges or nodes (8) Description of operators [G] and

[D] should be addressed in relation with a There are several options to prescribe mimetic or staggered grid. On the above grid, the

boundary conditions. However, a non trivial and boundary entries for [G] have the formgeneral Robin's boundary condition

(9)(4)

Our scheme applies to any other boundary condition but Robin's conditions produce the best results and this justifies our choice. Moreover, no while at inner edges its entries are just standard time dependent mimetic scheme based in central difference(Castillo & Grone, 2003) have been applied to this type of boundary condition. Combination of (5)equations (7), (8) and (9) is a well posed problem

h

uuuGu

h

uuuGu

nnnn

2/32/1

2/32/100

)3/1(3)3/8()(

)3/1(3)3/8()(

--+-=

-+-=

h

uuGu ii

i2/12/1)( -+-

=

h

uuDu ii

i

-=+

+1

2/1)(

()FuKt

u=Ñ×Ñ-

)()0,( xcxu =

),()( txfn

uux =

¶+ra

x0 x1/2 x1 x3/2 x2

u0 u1/2 u1 u3/2 u2

{}ax

{}ax

hnxx º=-+ /11 aa

=-02/1 xx{}ax

A Numerical Study of a Mimetic Scheme for Unsteady heat Equation

FARAUTE Ciens. y Tec., 3(1). 2008.

Page 4: A NUMERICAL STUDY OF A MIMETIC SCHEME FOR UNSTEADY …

67

and an approximation of its solutions by on the grid nodes at the boundary and zero numerical methods is well motivated. elsewhere. By the superposition principle

equations (8), (9) and (10) can be added to obtain The new mimetic scheme for the heat equation the new mimetic scheme for the heat equation.

is based in Crank Nicolson approach. It is obtained by combinations of an implicit scheme, an explicit scheme, boundary conditions (11)approximation and superposition of all them. The explicit scheme is developed from (7) by changing the continuous spatial operators by the mimetic approximations presented in section 3 In this expressionand the forward difference for the time derivative. In matrix form it takes the form.

(12)(8)

which guaranties the mimetic character of the In this expression [T] is a diagonal matrix discretizations. The linear system in one

whose nonzero entries are (1/dt) and dt is the time dimension for [CN] associated with the staggered step. Similarly [K] is a diagonal matrix whose grid in Fig. 1 is . This means that nonzero entries are approximation of K on the the new scheme contains n linear equations, one mimetic grid edges. Vectors and are for each internal node, and two equations for the approximations to temperature and the source boundary conditions. Explicit expressions for term on the mimetic grid nodes, their upper these equations will be present to give consistence indexes denote the time level. The implicit to this article. Due to symmetric considerations scheme is obtained in a similar fashion, but the only five linear equations need to be listed. The time derivative is backward difference. Its matrix first equation will be associated to node x and it o

formulation is takes the form.

(9)(13)

and its description follows word by word the explicit approximations with straightforward changes in the time levels. Next, the boundary condition approximations are required at time step n+1 and n. This discretization is notice that the three terms in this expression accomplished by combining operators [G] and denotes the effect of the one hand side gradient [B] to approximate normal derivatives in (9). In definition in (4). Second equation is centered in symbols, a mimetic boundary conditions x and it is given by1/2

approximation takes the forms

(10) (14)

In these expression [A] is a diagonal matrix and its nonzero entries are a values along the boundary. Vectors are f approximations

nornU 1+ nF

1or +nnf

)2()2( +́+nn

2

)(

6

1

2

3

3

4

2

6

1

2

3

2

4

2

01

2/32/10

12/3

12/1

10

nnonnn

nnn

ffU

hU

hU

h

Uh

Uh

Uh

++-+÷

ø

öçè

æ+-

=+-÷ø

öçè

æ+

+

+++

a

a

2

)(

3

2

12

112

4

1

3

1

6

1

3

2

12

1

12

4

1

3

4

6

1

2/11

2/1

2/322/12

02

12/32

12/12

1

2

nn

nn

nn

nno

FF

Uhh

Udthh

Uh

Uhh

Udthh

Uh

++

÷ø

öçè

æ++÷

ø

öçè

æ-+-

÷ø

öçè

æ+=÷

ø

öçè

æ+-

÷ø

öçè

æ+++÷

ø

öçè

æ+-

+

+

++

[]( )[][][] nnnn FUGKDUUT =--+2/1)2/1(

[]( )[][][] 112/11)2/1( ++++ =-- nnnn FUGKDUUT

[][][][][][] nnn

nnn

fUGBUA

fUGBUA

=+

=+ +++ 111

[] []

( )nnnn

nn

fFfF

UCNUCN

++++

+-=

++

+

11

1

2

1

[][][][][][][][]2/)( GBAGKDTCN ---º

FARAUTE Ciens. y Tec., 3(1). 2008.

Iliana A. Mannarino S., Juan M. Guevara J. y Yamilet Quintana

Page 5: A NUMERICAL STUDY OF A MIMETIC SCHEME FOR UNSTEADY …

68

There is an analog expression for symmetric problems which are solved with the new scheme, node x . It is worth to mention that these which will be called mimetic from now on, and n-1/2

standard finite difference scheme based on ghost equations are relations between values at three points denoted by (FD). In order to be consistent consecutive nodes with no uniform spaces among with the theoretical development of this article, them. Third equation is not standard because it both test problems will be one dimensional. contains four terms in his expression. It is However, our results hold in a higher dimensional centered in x and its symmetric contra part is 3/2

context (Mannarino, 2007).associated to node x .n-5/2

The first test problem is a non homogeneous heat equation with initial condition and boundary conditions

(15)

Errors in the modulus maximum norm are showed in Fig. 2. In this figure the better Finally, we give the standard Crank Nicolson approximation is represented by the lower line. It equation whose expression is valid for all inner is observed that line with crosses is above the line nodes in the range 3/2<i+1/2<n-3/2 for with circles associated with the mimetic scheme. i=1,2,…,n-3This means that errors between analytical solution and numerical solutions computed by the mimetic scheme are always smaller than the errors obtained from the FD scheme.

(16)

In view of equations (13), (14), (15) and (16) then the matrix structure of [CN] is almost tridiagonal in one dimension and a banded matrix in higher dimensions. This gives evidence that the new scheme is not more computational intensive than standard finite difference.

An analytical study of the new scheme Fig. 2. Errors in first test problem.convergence has been performed in (Mannarino,

2007) by the Lax's equivalence theorem. Table 1 gives the values of these errors for a However, (Mannarino, 2007) does not provide the

set of grid sizes. It can be seen that errors convergence orders developed here.computed with the mimetic scheme are three orders of magnitude smaller than those registered 5. Comparative Numerical Studyby FD scheme

This study presents and analyzes two test

2

)(

2

111

12

1

2

1

4

1

6

1

2

1

11

12

1

2

1

4

1

6

1

2/31

2/32/522/32

2/12012/52

12/32

12/12

10

nnnn

nnn

nnn

FFU

hU

dthh

Uhh

Uh

Uh

Udthh

Uhh

Uh

+++÷

ø

öçè

æ-+-

÷ø

öçè

æ++-=-

÷ø

öçè

æ+++÷

ø

öçè

æ+-

+

+

+++

2

)(

2

111

2

1

2

111

2

1

2/112/1

2/322/122/12

12/32

12/12

12/12

ni

ni

ni

nii

ni

ni

ni

FF

Uh

Udth

Uh

Uh

Udth

Uh

+++

++-

++

++

+-

+

++÷ø

öçè

æ--

=-÷ø

öçè

æ++-

xe txx

ut

--=¶-¶xxu =)0,(

tt ex

uue

x

uu -- =

¶+-=

¶- 2)1()1(,)0()0(

FARAUTE Ciens. y Tec., 3(1). 2008.

A Numerical Study of a Mimetic Scheme for Unsteady heat Equation

Page 6: A NUMERICAL STUDY OF A MIMETIC SCHEME FOR UNSTEADY …

69

)2()41 0/1( 1 0/2 xse ne tx x

ut pp-+-=¶-¶

)2()0,( 1 0/ xse nexu t p-=

Table 1. Errors in infinity norm

Fig. 2 shows that the slope for error curve associated to the mimetic scheme is higher than Fig. 3. Errors in second test problem

the one for FD scheme. A quantification of these slopes is presented in Table 2. It gives evidence This figure shows the same behavior that new mimetic scheme achieves a second order described in the first test problem. However, the convergence rate while standard FD scheme in gap between both curves is smaller in the second only first order. test problem, because the right hand side in the

differential equation in an oscillatory function which produces a more difficult problem. The specific errors obtained for this problem are given in Table 3. It shoes that mimetic scheme errors are one order of magnitude smaller than those obtained by FD.

Table 2. Convergence Orders

The second test problem is defined by

a n o n h o m o g e n e o u s h e a t e q u a t i o n Table 3. Errors in infinity norm

The convergence rates for both schemes are initial conditionreported in Table 4. It gave a second order

a n d b o u n d a r y c o n d i t i o n s g i v e n b yconvergence rate for the mimetic scheme and first order for FD.

Graphical representation of errors computed in the modulus maximum norm is displayed inFig. 3.

.2)1()1(,2)0()0( 1010

tt

ex

uue

x

uu

--

¶+-=

¶- pp

FARAUTE Ciens. y Tec., 3(1). 2008.

Iliana A. Mannarino S., Juan M. Guevara J. y Yamilet Quintana

Page 7: A NUMERICAL STUDY OF A MIMETIC SCHEME FOR UNSTEADY …

70

7. Bibliography

Castillo J.E. & R.D. Grone. (2003). A Matrix Ana lys i s Approach to Higher Order Approximation for Divergence and Gradient Satisfying a Global Conservation Law, SIAM Journal of Matrix Analysis and Applications.

Table 4. Convergence OrdersCastillo J.E. & M. Yasuda.(2005), Linear System Arising for Second Order Mimetic Divergence The explanation for the excellent results and Gradient Operators. Journal of Mathematical presented in these tests problems could be Modeling and Algorithm. attributed to the use of ghost points in standard FD

scheme. Ghost point in FD discretizations Fagundez M., J. Medina., C. Cadenas & G. produces finite difference stencils centered in x 1/2

Larrazabal. (2004). Mimetic Discretizations for and x whose first order approximations at the n-1/2

Computat ional Fluid Dynamics: One-boundaries. Such phenomenon is not reproduced Dimensional Case. Technical report No. 2004-01, in the mimetic scheme because its staggered grid Computer Science Department, Universidad de does not require any ghost point or extension in its Carabobo.formulation.

Freites M., J.M. Guevara., O. Rojas, J.E. Castillo & S. Rojas (2004). A Mimetic Finite Difference Scheme for Solving the Steady State Diffusion A new mimetic scheme for approximation of Equation with Singular Sources, VII International the heat equation has been presented. Explicit Congress of Numerical Methods in Engineering expressions of its equations on a one dimensional and Science, San Cristobal, Venezuela.staggered grid were developed. They show that

linear systems associated to the new scheme are Guevara-Jordan J.M., S. Rojas, M. Freites and banded and very similar to those obtained from J.E. Castillo, (2007). Convergence of a Mimetic standard FD. Extensions of the mimetic scheme to Finite Difference Method for Static Diffusion multidimensional problems on logical Equations, Advances in Difference Equations.rectangular grid can be easily achieved by

Cartesian product of the equations developed in Mannarino I. (2007), Un Método Mimético de one dimensional problem. The comparative Diferencias Finitas para la Ecuación No Estática numerical study showed that the mimetic scheme de Difusión, Tesis de Maestria, Facultad de produces smaller errors and faster convergence Ciencias, Universidad Central de Venezuela. rates than standard FD based on ghost points.

Since new mimetic scheme has solid theoretical foundations, its computer implementation is not

Shashkov M. (1996) Conservative Finite harder than standard FD, and it produces high Differences Methods on General Grids, Symbolic quality approximated solutions, then it seems fair and Numerical Computation Series, CRC Press, to claim that it represents a new alternative for Boca Raton, Florida, USAsolving heat transfer problem in engineering.

25(1): 128-142.

4(1): 67-82.

6. Discussion and Conclusions

Caracas, Venezuela.

FARAUTE Ciens. y Tec., 3(1). 2008.

A Numerical Study of a Mimetic Scheme for Unsteady heat Equation