• Nie Znaleziono Wyników

Numerical solution of heat diffusion equation using the generalized FDM

N/A
N/A
Protected

Academic year: 2022

Share "Numerical solution of heat diffusion equation using the generalized FDM"

Copied!
9
0
0

Pełen tekst

(1)

NUMERICAL SOLUTION OF HEAT DIFFUSION EQUATION USING THE GENERALIZED FDM

Sylwia Lara-Dziembek1, Edyta Pawlak2

Institute of Mathematics and Computer Science, Czestochowa University of Technology, Poland email: 1 laras@imi.pcz.pl, 2 epawlak@imi.pcz.pl

Abstract. In the paper the numerical solution of boundary-initial problem described by the Fourier equation and adequate conditions is discussed. The algorithm bases on the concept of generalized finite difference method (GFDM). In the first part the mathe- matical formulation of the problem and a short description of GFDM algorithm are pre- sented. In the second part the examples of numerical computations are shown. On the stage of computation the explicit version of GFDM is used.

1. Governing equations

The following linear Fourier equation describing the heat diffusion in 2D do- main oriented in Cartesian co-ordinate system is consider

 

 

∂ + ∂

= ∂

∂ Ω ∂

∈ ( , , )

2

( ,

2

, )

2

( ,

2

, ) :

) ,

( y

t y x T x

t y x a T

t t y x y T

x (1)

where a is a diffusion coefficient ( a = λ c , λ is a thermal conductivity, c is a volumetric specific heat), T, x, y, t denote temperature, spatial co-ordinates and time.

The typical conditions given on the external boundary of a system are the following

[ ]

 

 

= Γ

∂ =

− ∂

= Γ

= Γ

a b b

T t y x T t

y x q y

x

n q t y x t T

y x q y

x

T t y x T y

x

) , , ( )

, , ( : ) , (

) , , ) (

, , ( : ) , (

) , , ( : ) , (

3 2 1

α

λ (2)

where Γ = Γ

1

∪ Γ

2

∪ Γ

3

is the boundary limiting the domain considered, T

b

is

a boundary temperature, q

b

is a boundary heat flux, ∂ Tn is a normal deriva-

tive, α is a heat transfer coefficient, T

a

is an ambient temperature.

(2)

The initial condition

) , ( ) 0 , , ( :

0 T x y T

0

x y

t = = (3)

is also known.

2. Generalized FDM

The geometrical mesh (in the variant of FDM here discussed) is defined in an optional way by the set of points (nodes) located in the interior of domain and its boundary (Fig. 1).

Fig. 1. Discretization

The internal and boundary stars are created by a central node and a certain number of nodes from its neighbourhood. In this place one can introduce the crite- rion determining the successive stars (e.g. constant number of nodes or variable number of nodes located inside a circle of given radius r).

Let us assume that position of the central node P corresponds to point

i

( x ,

i

y

i

) , while the distance between P and node

i

P equals

j

x

j

x

i

= h

j

, y

j

y

i

= k

j

. Developing the function T into Taylor series one obtains

( ) ( ) ( ) ( )

( ) ( ) (

i

)(

i

)

i i

i i

i

i i i

i f

i i f

y y x y x

x T y

y y

T x

x x

T

y y y

x T x x

t T y x T t y x T

 −

 

∂ + ∂

 −

 

∂ + ∂

 −

 

∂ + ∂

+

 −

 

∂ + ∂

 −

 

∂ + ∂

=

2 2 2

2 2 2

2

1 1

! 2

! 2

, , ,

,

(4)

where f – 1 denotes a certain time level.

(3)

The last formula for node P can be written in the form

j

( ) ( )

( ) ( )

j

( )

xy if j j f

yy i j

f xx i

j f y i j f x i f

i f j

k h T k T h

T

k T h T T

T

2 1 2 1

1

1 1 1

1

5 . 0 5

.

0

+ +

+

+ +

+

=

(5)

The best approximation of the local values of the first and second derivatives appearing in equation (5) results from the least squares criterion in the form

( ) ( ) ( )

( ) ( ) ] 1 min

5 . 0

5 . 0

2 2 1

1 1

1 2 1

1 1 1

 =

  + 

+



 

 

 − + + + +

=

=

m j j j f xy i j f yy i n

j

j f xx i j

f y i j f x i f

j f i

k h T k T

h T k

T h T T

T F

ρ

(6)

where

(

j i

) (

2 j i

)

2

j

= xx + yy

ρ (7)

while m is a natural number (e.g. m = 3 ). The expression containing ρ plays a role of tapering function controlling the influence of distance between P and

i

P on

j

the final approximation of derivatives.

The necessary condition of functional F minimum is a nullity of derivatives

( )

1

F T

x if

, …, F ( ) T

xy if1

and then (the upper index f – 1 is here neglected)

( ) ( ) ( ) ( ) ( )

[ ]

( ) ( ) ( ) ( ) ( )

[ ]

( ) ( ) ( ) ( ) ( )

[ ]

( ) ( ) ( ) ( ) ( )

[ ]

( ) ( ) ( ) ( ) ( )

[ 0 . 5 0 . 5 ] 0

2 0 5

. 0 5

. 0

2 0 5

. 0 5

. 0

0 5

. 0 5

. 0

0 5

. 0 5

. 0

1

2 2

2 1

2 2 2

2 1

2 2 2

2 1

2 2

2 1

2 2

2

= +

+ +

+ +

= +

+ +

+ +

= +

+ +

+ +

= +

+ +

+ +

= +

+ +

+ +

=

=

=

=

=

n

j

m j

j j j i j xy i j

yy i j

xx i j

y i j x j i n

j

m j j j i j xy i j

yy i j

xx i j

y i j x j i n

j

m j j j i j xy i j

yy i j

xx i j

y i j x j i n

j

m j

j j i j xy i j

yy i j

xx i j

y i j x j i n

j

m j

j j i j xy i j

yy i j

xx i j

y i j x j i

k k h h T k T h

T k

T h T T T

k k h T k T h

T k

T h T T T

k h h T k T h

T k

T h T T T

k k h T k T h

T k

T h T T T

k h h T k T h

T k

T h T T T

ρ ρ ρ ρ

ρ

(8)

Taking into account the form of functional F the condition (7) is simultaneously

the sufficient one. The system (8) can be written in a matrix form

(4)

( )

( )

( )

( ) ( )

( )

( )

( )

( )

( )

 

 

 

 

 

 

 

 

 

 

 

 

=

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

n

j

i m j

j j j n

j

i m j

j j n

j

i m j

j j n

j

i m j

j j n

j

i m j

j j

xy i yy i xx i y i x i

n

j m j

j j n

j m j

j j n

j m j

j j n

j m j

j j n

j m j

j j

n

j m j

j j n

j m j j n

j m j

j j n

j

m j j n

j

m j

j j

n

j m j

j j n

j m j

j j n

j m j j n

j

m j

j j n

j

m j j

n

j m j

j j n

j m j j n

j m j

j j n

j m j

j n

j m j

j j

n

j m j

j j n

j m j

j j n

j m j j n

j m j

j j n

j m j

j

T k T

h

T h T

T h T

T k T

T h T

T T T T T

k h k

h k

h k

h k

h

k h k

k h k

k h

k h k

h h

k h h

k h k

k h k

k h

k h k

h h

k h h

1 2 1

2 2 1

2 2 1

2 1

2

1 2

2 2

1 2

3

1 2 3

1 2

2

1 2 2

1 2

3

1 2 4

1 2

2 2

1 2 3

1 2

2

1 2 3

1 2

2 2

1 2 4

1 2 2

1 2 3

1 2

2

1 2 3

1 2 2

1 2

2

1 2

1 2 2

1 2

2

1 2 3

1 2 1

2 2

2 2

2 2

4 4

2 2

2 4

4 2

2

2 2

2 2

ρ ρ ρ ρ ρ

ρ ρ

ρ ρ

ρ

ρ ρ

ρ ρ

ρ

ρ ρ

ρ ρ

ρ

ρ ρ

ρ ρ

ρ

ρ ρ

ρ ρ

ρ

(9)

Denoting by G the inverse matrix resulting from the main matrix of system (9) one obtains (the index f – 1 is again ‘restored’)

( ) ( )

( ) ( ) ( )

( )

( )

( )

( )

( )

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

=

 

 

 

 

 

 

 

 

=

=

=

=

=

n

j

f i f m j j

j j n

j

f i f m j j j n

j

f i f m j j j n

j

f i f m j j

j n

j

f i f m j j

j

f xy i

f yy i

f xx i

f y i

f x i

T k T

h

T h T

T h T

T k T

T h T

g g g g g

g g g g g

g g g g g

g g g g g

g g g g g

T T T T T

1

1 1 2

1

1 1 2

2 1

1 1 2

2 1

1 1 2 1

1 1 2

55 54 53 52 51

45 44 43 42 41

35 34 33 32 31

25 24 23 22 21

15 14 13 12 11

1 1 1 1 1

2 2

ρ ρ ρ ρ ρ

(10)

(5)

This system of equations allows to determine the best approximation of the first and second derivatives at point P . A computer program realizing this part of algo-

i

rithm and next creating a system of equations for transition from time t

f1

to time

t is rather complex, but the details of numerical realization are not here dis-

f

cussed.

3. Explicit differential scheme

Let us consider the change of temperature field from time t

f1

to time t .

f

The distance between these two levels will be denoted as ∆ t . According to the rules of explicit approach, the approximation of left hand side of diffusion equation should be written for time t

f1

corresponding to the beginning of time interval ∆ t .

So

( ) ( ) ( )

( ) ( )

( )

=

=

=

=

=

− +

+

− +

− +

+

− +

=

n

j

f i f m j j

j j

n

j

f i f m j j j n

j

f i f m j j j

n

j

f i f m j j

j n

j

f i f m j j

j f

xx i

T k T

g h

T k T

g T h T

g

T k T

g T

h T g T

1

1 1 35 2

1

1 1 2 2 34 1

1 1 2

2 33

1

1 1 32 2

1

1 1 31 2

1

2 2

ρ

ρ ρ

ρ ρ

(11)

and

( ) ( ) ( )

( ) ( )

( )

=

=

=

=

=

− +

+

− +

− +

+

− +

=

n

j

f i f m j j

j j

n

j

f i f m j j j n

j

f i f m j j j

n

j

f i f m j j

j n

j

f i f m j j

j f

yy i

T k T

g h

T k T

g T

h T g

T k T

g T

h T g T

1

1 1 45 2

1

1 1 2 2 44 1

1 1 2 2 43

1

1 1 42 2

1

1 1 41 2

1

2 2

ρ

ρ ρ

ρ ρ

(12)

Substituting the derivative ∂ Tt by the right hand side differential quotient one has

( ) ( )

[

1 1

]

1

= +

f

yy i f

xx i f

i f

i

a T T

t T

T (13)

(6)

or

( ) ( )

[

1 1

]

1

+ ∆ +

=

yy if

f xx i f

i f

i

T a t T T

T (14)

The discussion of stability condition of scheme presented can be found in [1], while the way of boundary conditions modelling in [2].

4. Testing computations

The first example has an analytic solution [3, 4] and it gives a possibility of numerical algorithm verification. The square of dimensions 1× 1 made from mate- rial for which a = 1 is considered. The initial temperature of domain (initial condi- tion) equals T ( x , y , 0 ) = T

0

= 100 , the external surfaces have a constant tempera- ture T

b

= 0 (boundary conditions).

An analytical solution of the problem considered is of the form

[ ]

{ }

1 2

) 1 2 ( ) 1 2 ( exp

1 2

) 1 2 sin(

) 1 2 sin(

) 16 , , (

2 2 2

1 1

2 0

− +

⋅ −

− ⋅

= ∑∑

=

=

j

t j

i

i

y j x i t T

y x T

i j

π

π π

π

(15)

and in the next figures a comparison between above solution and numerical one will be shown.

Fig. 2. Position of nodes

(7)

In Figure 2 the position of internal and boundary nodes is presented. The co-ordi- nate of points have been determined in a random way, but the distance between two adjacent nodes had to fulfill the condition P

i

P

j

> 2 R (R is a certain given radius - c.f. Figure 2).

In Figures 3, 4, 5 the numerical and exact solutions at the points marked in Figure 2 for times 0.025, 0.05, 0.1 are compared.

The next example concerns the comparison of the results obtained with the other numerical solution. The same bar ( a = 1 ) with a square section is considered, the position of nodes is also the same. The boundary conditions are the following:

for x = 0 : q

b

= 0 , for x = 1 : α = 50 , T

a

= 0 (Robin condition), for y = 0 : T

b

= 0 , for 1

:

1 =

= T

b

y , initial condition T ( x , y , 0 ) = 0 .

Fig. 3. Approximate and exact solutions for t = 0.025

Fig. 4. Approximate and exact solutions for t = 0.05

(8)

Fig. 5. Approximate and exact solutions for t = 0.1

So, in Figure 6 the comparison of solutions is presented ( t = 0 . 2 ). The first solution has been obtained using the GFDM (9-points stars), while the second one has been found using the classical variant of FDM. The domain has been covered by the regular mesh containing 2500 nodes ( ∆ t = 0 . 00005 ).

Fig. 6. Comparison of solutions for time t = 0.2

One can see, that the compatibility of results is very good. The visible differences can be noticed only at the right upper corner, in this fragment of domain the drastic change of boundary conditions takes place.

Summing up, the GFDM algorithm seems to be an effective tool for numerical simulation of heat diffusion process.

The paper is connected with realization of Project BS1-105-301/99/S.

(9)

References

[1] Mochnacki B., Pawlak E., Application of Generalized FDM for Numerical Modelling of Non- Steady Heat Transfer, Proceedings of the Third International Conference on Parallel Processing

& Applied Mathematics, Eds. R. Wyrzykowski, B. Mochnacki, H. Piech, J. Szopa, Kazimierz Dolny, Poland 1999, 665-674.

[2] Mochnacki B., Pawlak E., Numerical modelling of non-steady thermal diffusion on the basis of generalized FDM, Proceedings of the Fifth International Conference on Advanced Computa- tional Methods in Heat Transfer, HEAT TRANSFER V, Eds. A.J. Nowak, C.A. Brebbia, R. Bia- łecki, M. Zerroukat, Computational Mechanics Publications, Southampton, UK and Boston, USA 1998.

[3] Kącki E., Równania róŜniczkowe cząstkowe w zagadnieniach fizyki i techniki, WNT, Warszawa 1995.

[4] Sneddon I., Równania róŜniczkowe cząstkowe, PWN, Warszawa 1962.

Cytaty

Powiązane dokumenty

In case that the diffusion mechanism dominates relative to the dissipation/production mechanism in exponential regime all methods except the Galerkin method have an excelent

In the paper the nonlinear diffusion equation is considered, this means the volu- metric specific heat and thermal conductivity are temperature dependent.. To solve the prob- lem by

Presented results shows that discontinuous Galerkin method applied to higher order approximation allows to obtain accurate results even on coarse grids. Appro-

According to the newest opinions the heat conduction proceeding in the bio- logical tissue domain should be described by the hyperbolic equation (Cattaneo-

Wang, The generalized Lyapunov-Schmidt Process in the Bifurcation Theory of Nonliear Operator Eqation, Mathmatics In Practice and Theory 33(5) (2003), 108-114 (in Chinese)..

Let Z, N be the sets of integers and positive integers respectively. .) denote effectively computable absolute constants... In this note we prove the following

Temperature field on the skin surface along the finger under typical thermal condi- tions depends on the blood perfusion rate and meta- bolic heat source and the apparent differences

Next we have to apply appropriate transformations of the (/-plane to arrive at a (p*, M*)~system satisfying the conditions of the lemma... W., Generalized solutions of a system