• Tidak ada hasil yang ditemukan

In reality, most of the physical processes are described by partial differential equations

N/A
N/A
Protected

Academic year: 2023

Membagikan "In reality, most of the physical processes are described by partial differential equations"

Copied!
8
0
0

Teks penuh

(1)

UDC 532;517.4;519.6

*Issakhov A., Alpar S., Zhazylbekov N.

Faculty of Mechanics and Mathematics,

al-Farabi Kazakh National University, Almaty, Kazakhstan

*e-mail: [email protected]

Numerical modeling of elliptic equations on unstructured and hybrid grids

Abstract. In reality, most of the physical processes are described by partial differential equations. At the same time, many application problems require numerical simulations in areas with complex geometry.

Description of computational areas with complex geometric shape is best performed on unstructured and hybrid grids. An important advantage of unstructured or hybrid grid is simplicity of generation. For this purpose a large preference was given for methods that can be applied on unstructured and hybrid grids.

This method is a finite volume method. One of the advantages of this discretization method is performing of local and global conservation laws, and this is very important in solving many applied problems. In the present work the variety of grids with their advantages and disadvantages are described, also the final volume method and choice of the shape of final volume are considered, discretization of the two and three dimensional Poisson equation by finite volume method is made on the unstructured and hybrid grid, formulas of finding areas, volumes and normal are described and displayed. The aim of this work is the further application of the finite volume method, and obtaining approximation of the Poisson equation in two-dimensional and three-dimensional cases on unstructured and hybrid grid. Finally, numerical results for unstructured and hybrid grids, as well as the data that obtained are compared with the analytical results, which shows good agreement. The numerical values are illustrated in the work in the form of plots.

Key words: two and three dimensional Poisson equation, unstructured mesh, hybrid mesh, finite volume method, Jacobi method.

Introduction

When we solve the fluid dynamics applications tasks one of the main problems is the computational domain. Various types of computational grids are used to describe the computational domain. Two main classes can be identified among the types of computational grids:

1. Structured mesh (regular grid).

2. Unstructured mesh (irregular grid).

Structured mesh, that shown in the Figure 1, are widely used in the field of computational fluid dynamics. When you create a regular grid, the grid nodes are an ordered structure, that have clearly defined grid direction. The main advantage of using a structured mesh is to maintain the canonical structure of the neighbors to mesh nodes. In the case of two-dimensional computational grid, cells are rectangles, and in three-dimensional case – hexagons. This type of mesh has two forms: grids with fixed (constant) step and meshes with a variable step, and the step may be constant for one

of the axes and variable on other. Regular mesh allows you to use different discretization methods, in particular the finite difference method and finite volume method.Usually when you create regular grids in complex geometric areas, you need to use the coordinate transformation to build a uniform computational grid, as well as you have to write its mathematical model in curvilinear coordinates.

The main feature of unstructured grids, that shown in Figure 2, is a chaotic arrangement of mesh points in the computational domain, and as a consequence there are no areas of the grids’

directions and it is impossible to arrange mesh nodes. In the three dimensional case the grid cells are used by polyhedrons and in the two dimensional case polygons with any shape. Generally, in the two dimensional case we use triangles, in the three dimensional case - tetrahedrons. The use of more complex geometric shapes is irrational in the process of meshing. Irregular mesh allows you to use different discretization methods, such as finite volume method and finite element method.

(2)

Figure 1 – Structured mesh Figure 2 – Unstructured mesh

Figure 3 – Hybrid mesh There are many ways of triangulation of

calculation domain through the given points, but with any methods of triangulation we get the same number of triangles. Triangulation of the computational domain is produced according to certain criteria. One of the criterions of triangulation sounds like that – triangles, which are obtained, should be more like equilateral triangles, in other word the angles must not be too sharp. Another criterion of triangulation is triangles, that we created, shouldn’t be much different in size from the neighboring triangles (mesh uniformity criterion).

The main disadvantage is the lack of data about irregular mesh structure, which leads to high costs of computing resources (computational memory).

The positive features of unstructured grids are:

а) the application of this computational grids to a

b) minimum time in the construction of unstructured mesh as opposed to regular grids for complex geometries;

c) implementation of thickening mesh in certain areas of computational mesh by natural way.

The combination of structured and unstructured grids forms a so-called hybrid mesh (Figure 3), which allows you to take advantage from certain nets and reduce the disadvantages of a particular type of nets. Hybrid mesh often used for solving applied problems of fluid mechanics and gas mechanics.

Mathematical model

For the two variants of problems numerical solutions are compared with analytical solutions. To

(3)

hybrid meshes we used Poisson equation, which has an analytical solution. In this paper we consider two problems. In the first problem we considered a two- dimensional Poisson equation, which was solved on unstructured grids. In the second problem we considered a three-dimensional Poisson equation, which was solved on unstructured and hybrid computing meshes.

The first problem (two-dimensional equation):

2 2

2 2

2 3

2 3 0

2 3 0.25

2 3 0.5

2 3 0

3 2sin( 2 ) 16

sin( 2 ) sin( 2 ) sin( 2 ) 2cos( 2 ) 3

x y

x y x

x y x

x y y

x y y

u u u

x y

x y e

u x y e

u x y e

u x y e

u x y e

y

   

 

   

  

  

  

   

This equation has an analytic solution of this type:

y

e x

y x

usin( 2 ) 2 3

The second problem (three-dimensional equation):

2 2 2

2 2 2

0

0.25

0

0.5

0

0.5

10

4cos(3 2 ) 12 10

cos(3 2 ) 1

cos(3 2 ) 1

cos(3 2 ) 1

cos(3 2 ) 1

cos(3 2 ) 1

2sin(3 2 )

x z

x z x

x z x

x z y

x z y

x z z

z

u u u u

x y z

x y z e

u x y z e

u x y z e

u x y z e

u x y z e

u x y z e

u x y z e

z

    

  

     

    

    

    

    

    

    

x z

This equation has an analytic solution of this type:

1 )

2 3

cos(   

( )

x y z e

xz

u

Approximation of the equations

Poisson's equation was approximated by using the control volume method and it was solved numerically by Jacobi method. For the application of the approximation by method of control volume we used Gauss's theorem with further replacement of the surface integral to a finite sum, that has the form:

S V

dA n k dV

k  

0

) (

Since the number of faces is limited, we can replace the surface integral sum with:

  

f f f f f

Sk

ndA k

n A S,0V0

The next task is to express

   

f

n

f through

the values of the center of the cell. For this we consider the operator Nabla.



 

 

 

 

k

j z i y x

 

The above Nabla operator can be written by another basis vectors. That is for the unit normal vector, two unit tangent and to the normal vector that perpendicular to the plane.



 

 



 

2

1 2 1

t t t t nn

 

Similarly, for the new base:

  

 n

n

  

 t1

t1

  

 t2

t2

   

The two-dimensional case on the unstructured grid (Figure 4).

  

 nf

nf

 

 tf

tf

  

(4)

Lets consider the vector l , that connects the two centers of the neighboring cells. Then lets perform scalar multiplication of vector l with Nabla operator.

 

fl

  

fnf

 

f

 

ftf

tfl For approximation of

   

f

l

to the cell centers, lets expand it in a Taylor series,and with the non-trivial action we get:

   

 

1 0 f f f

f f

f f

f f f

t t l n

J t t l

  

  

    

  

   

 

     Letsconsiderseparately Jf.

 

f f f

b f a

f b f a

f

l t t

J t t

 



 

 

 

Figure 4 – Two adjacent cells of unstructured mesh Eventually the approximation of the two- dimensional case can be written like following formula:

   



 





 

 

f f

f f f

f f

b a f

f f

f f

f t l A S V

k t A

n

k 1 0,0 0

 

And for the three-dimensional case lets go back to the main final volume equation.

  

f kf

f nf Af S,0V0

We take Nabla operator for normal and for his two orthogonal tangent vectors.

  

 n

n

  

 t1

t1

  

 t2

t2

   

Consider a gradient, that is shown below.

   

   

f f

f f

f f f

l n n l

n n l

 

 

       

 

     

As well as the two-dimensional case

 

f

l

1

0 and  nl

 

   

1 0

1 0

f f

f f f T

n

n n l J

  

  

  

    

     

 

  

where JT – tangential flow. Let us consider now a triangular face (Figure 6), in which we try to extract JT.

Figure 5 – Two neighboring tetrahedron

(5)

Figure 6 - The face of a tetrahedron

 

3

1

1

e e e e

f f n L

A

Substitute it in tangential flow equation:

 

3

1

3

1

1

1

T f e e e f

f e

f e f e e

f e

J n n L n l

A

n n n L l

A

  

 

    

 

  

 

 

   

     

Let us use the properties of the mixed multiplication of vectors:

b c

d

   

d b c d c b

Consequently:

   

3

1

3 1

1

1

T f f e f e f e e

f e

e e e f e

J n n n n n n L l

A

n L l A

 

   

       

 

 

 

 

 

 

One of the problems when we calculate JT is the normal

 

ne to the side of faces of the finite volume element.

e e f

n   t n

Substitutenein JT, weget:

 

 

3

1

1

e e e e f

f

T

L t n l

J A

When we multiply the length of the side Le to the unit vector te that will become equal to the vector

Te, which describes the whole side faces.

e e

e

L t

T

Then we use properties of the mixed multiplication of vectors and apply it for the above mentioned equation.

 

 

3

1

1

e e e f

f

T T n l

J A

Returning to the expression

 

 fnf lets substitute, that we found in JT:

 

T

n l

n A f

e e e

f f

f  

 

 

 

3

1 0

1 1 

 

   

   

,0 0

1

0 1 T n l A S V

k A f

f

n

e e e f f

f f f

f nb f

f e

 









    

 

During non-trivial transformations we obtain our final approximation of the Helmholtz equation for two-dimensional and three-dimensional case. The problem is solved iteratively by using the Jacobi method.

Final form of discrete Jacobi method by using unstructured mesh for two-dimensional Poisson

equation will look like this equation:

 

, ( ) , ( ) , ( )

, , ,

, , ,

1

, ,

2 3

, ,

3

2 sin( 2 ) 16 3

n n n

i nb f i a f i b f

i f i f i f

f i f i f i f

n i

i f i

f i f

x y

i

i f i

f i f

u u u

t l A

u t

A V

x y e V

A V

     

     

     

 

 

 

 

 

 

(6)

Final d unstructure equation w

1 f

in

u



discrete form ed mesh fo will look like

, ( )

, ,

1

4cos(3

i nb fn

i f i f i

u

A

x







m of Jacobi for two-dim e this:

3 , , , , , 1

, ,

, ,

10

2 ) 12 10

i f e i f en i f e

i f f i f i

x z

i f i

f i f

u t

A V

y z e

A V



 



Figure

Figure 8

method by mensional Po

, , ,

10

i f i f i f

i

n l A

V

 

   

e 7 – A two-d The maximu

8 – Three-dim using oisson

f



 

PoLx usipo Fig(0.

bonu grithe are0.5 fornu

imensional gr um error is equ

ensional mesh

Results of In the firs oisson equatio x = 0.25 and

ing triangles ints 1471, n gure 7, comp .25, 0.5), b

undary cond umerical erro

id at the giv e three-dime ea is used wi 5, which is r the unstruc umber of cell

rid with numer ual to 0.0654(0

h with the num

numerical c st problem

on physical a d Ly = 0.5, w s. The numb number of c putational gr because in dition is us ors we had to ven point. Fo ensional Po ith the sizes approximate ctured mesh.

s 23084. (Fig

rical solution.

0.7%).

merical solutio

calculations for the two area is used which is app ber of physic cells 2764.

rid is stresse this area th ed and to m o stress the c or the second oisson equat Lx = 0.25, L ed by using . Number of gure 8).

.

on.

o-dimensiona with the size proximated b cal computin As shown i d at the poin he Neuman minimize th computationa d problem fo tion physica Ly = 0.5, Lz g tetrahedron f nodes 4687

es al by ng in nt nn he

or al al = ns 7,

(7)

To redu meshes th three-dime second p Puassson region is d structured

Conclu During of numeric dimension finite volu made. An performed equation u

uce the num he hybrid m ensional pro problem ar equation). F divided into

meshes,

usion g implementa

cal solution o nal Poisson e

ume method nd also an d for the using a hybrid

merical errors mesh was us

oblem the c re used (

For this pu two blocks:

which w

Figure T

ation of this of two-dime equations, tes d on unstruc analysis o three-dime d mesh.

s for unstruc sed. For a h conditions o (three-dimen urpose comp

: unstructure will consist

e 9 - The hybr The maximum

work on the nsional and st computatio ctured grids of solutions ensional Po

ctured hybrid of the

sional puting ed and

t of tetpo alobo figme

rid mesh with m error is equa

e basis three- ons of

were s was

oisson resun thahy mu datcom

trahedrons, h ints 1812, n ong Z axis

undary cond gures show eshes on obje

the numerica l to 0.0114(0.

When we sults of thre nstructured a at the numer ybrid mesh,

uch less.

As a result ta that obtai mputational

hexagons an number of c to the fac dition is defin

benefits of ects with var

al solution.

4%).

compared t ee-dimension and hybrid m rical error is

and also co of our inves ined, it can grid has

nd pyramids cells 4380.

ce, where t ned (fig.9). T

unstructured rious shapes.

the results nal Poisson meshes, it m reduced whe omputing re stigation, acc

be said tha the advan

s. Number o Grid stresse the Neuman The followin d and hybri

of numerica equation fo may be note en we use th esources use cording to th at the regula ntage in th ed of nn ng id

or al ed he ed he ar he

(8)

accuracy of the solution, but by adapting unstructured computational mesh to complex geometry wa can create hybrid mesh, which will compensate the pros and cons of structured and unstructured grids..

In the paper it is shown that by using unstructured mesh numerical error equal 0.9%, and using a hybrid grid numerical error does not exceed 0.4%. From this we can conclude that it is necessary to use a structured grid in the area where it is possible and necessary to use unstructured grid where we can not use a structured grid.

References

1. Mazumder S. -Numerical methods for partial differential equation: Finite Difference and Finite Volume Methods. – Academic Press, 2015.

– 484 p.

2. Versteeg H.K. Malalasek Introduction to computational fluid dynamics The finite volume method. – Pearson, 2007. – 520p.

3. F.Moukalled L.Mangani M.Darwish - The finite volume method in computational fluid dynamics. – Springer, 2015. –791p.

4. Fletcher K. Vychislitel'nye metody v dinamike zhidkostej. – Moscow: Mir, 1991. –Vol.2. – 552 p.

5. Chung T.J. Computational fluid dynamics. – Cambridge University Press, 2002. –1012 p.

6. Anderson D., Tannehil Dzh., Fletcher R. - Vychislitel'naja gidromehanika i teploobmen.

Moskva, Mir, 1990. –Vol. 2. – 392 p.

7. Issakhov A., Mathematical modeling of the discharged heat water effect on the aquatic environment from thermal power plant //

International Journal of Nonlinear Science and Numerical Simulation, – 2015. – Vol.16, No 5. – P. 229–238, doi:10.1515/ijnsns-2015-0047.

8. Issakhov A., Mathematical modeling of the discharged heat water effect on the aquatic environment from thermal power plant under various operational capacities // Applied Mathematical Modelling. – 2016. – Vol. 40, No 2.

– P. 1082–1096

9. Issakhov A. Large eddy simulation of turbulent mixing by using 3D decomposition method // J. Phys.: Conf. Ser. – 2011. –Vol.318, No 4. –P. 1282-1288.

10. Ferziger J.H., M. Peric - Computational Methods for Fluid Dynamics. – Springer, 2013. – 440 p.

11. Firsov D.K. Metod kontrol'nogo ob'ema na nestrukturirovannoj setke v vychislitel'noj matematike. – Tomsk, 2007. – 72 p.

Referensi

Dokumen terkait

The research was designed to contrib- ute to the ongoing development of culturally secure approaches in the tertiary education sector which seek to: i promote community and family

The equation model obtained based on the results of the research that has been done is as follows: [YC]i=17.2237 - 0.0212 [YD]i Based on the equation model obtained from the