Docsity

Grid Generation - Computational Fluid Dynamics - Lecture Slides, Slides of Dynamics

Toggle sidebar
bg1
The basic idea behind grid generation is the creation of the transformation
laws between the physical space and the computational space.
These laws are known as the metrics of the transformation.
We have already performed a simple grid generation without realizing it
for the flow over a heated wall when we used the τ, ξ, η coordinates for the
numerical scheme. This was simply a transformation from one rectangular
domain to another rectangular domain.
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21

Partial preview of the text

Download Grid Generation - Computational Fluid Dynamics - Lecture Slides and more Slides Dynamics in PDF only on Docsity!

The basic idea behind grid generation is the creation of the transformation

laws between the physical space and the computational space.

These laws are known as the metrics of the transformation.

We have already performed a simple grid generation without realizing it

for the flow over a heated wall when we used the τ, ξ, η coordinates for the

numerical scheme. This was simply a transformation from one rectangular

domain to another rectangular domain.

Grid Generation (Chapter 5)

Quality of the CFD solution is strongly dependent on the quality of the

grid.

Why is grid generation necessary? Figure 5.1(next slide)can be used to

explain.

Note that the standard finite difference methods require a uniformly

spaced rectangular grid.

If a rectangular grid is used, few grid points fall on the surface.

Flow close to the surface being very important in terms of forces,

heat transfer, etc., a rectangular grid will give poor results in such

regions.

Also uniform grid spacing often does not yield accurate solutions.

Typically, the grid will be closely spaced in boundary layers.

Figure shows a physical flow

domain that surrounds the body

and the corresponding rectangular

flow domain.

Note that if the airfoil is cut and

the surface straightened out, it

would form the ξ-axis.

Similarly, the outer boundary

would become the top boundary

of the computational domain.

The left and right boundaries of

the computational domain would

represent the cut surface.

Note the locations of points a, b,

and c in the two figures.

Note that in the physical space the cells are not rectangular and the grid

is uniformly spaced.

There is a one-to-one correspondence between the physical space and the

computational space. Each point in the computational space represents

a point in the physical space.

The procedure is as follows:

1. Establish the necessary transformation relations between the physical

space and the computational space

2. Transform the governing equations and the boundary conditions into

the computational space.

3. Solve the equations in the computational space using the uniformly

spaced rectangular grid.

4. Perform a reverse transformation to represent the flow properties

in the physical space.

The derivatives appearing in the governing equations must be transformed

using the chain rule of differentiation.

, , , , ,

, ,

y t y t y t y t

x x x x

ξ η

η τ ξ τ

The subscripts are used to emphasize significance of the partial derivatives

and they will not be included in the equations that follow.

x x x

ξ η

ξ η

y y y

, , , , , , ,

x y x y x y x y

t t t t

ξ η η τ ξ τ

.................(5.5)

t t t t

ξ η τ

ξ η τ

    ∂ ∂ ∂ ∂ ∂ ∂ ∂         

= + +

           

∂ ∂ ∂ ∂ ∂ ∂ ∂             

Metrics and Jacobian (5.3)

In CFD the metric terms are not often available as analytical expressions.

Instead they are often represented numerically.

The following inverse transformation is often more convenient to use than

the original transformation

x = x ξ η τ, , ..........................(5.18 ) a

y = y ξ η τ, , .............................(5.18 ) b

t = t τ .............................(5.18 ) c

Let x = x(ξ, η), y = y(ξ, η) and u = u(x, y).

then we can write

u u

du dx dy

x y

u u x u y

ξ x ξ y ξ

u u x u y

η x η y η

Eqs. (5.21) and (5.22) are two equations for the two unknown derivatives.

Similarly we can write the derivative w.r.t y as

1

.............................(5.23 )

u u x u x

b

y J η ξ ξ η

  ∂  ∂  ∂   ∂  ∂ 

= −

      

∂ ∂ ∂ ∂ ∂

     

 

1

.............................(5.24 )

u y y

a

x J ξ η η ξ

        ∂ ∂ ∂ ∂ ∂

= −

       

∂ ∂ ∂ ∂ ∂

       

x x

b

y J η ξ ξ η

and we can define the following

The above equations can be easily extended to three space dimensions

(x, y an z).

The above equations can also be obtained formally as follows

( )

ξ =ξ x y , ........................(5.25 ) a

( )

η =η x y , ........................(5.25 ) b

d dx dy .................................(5.26 ) a

x y

ξ ξ

ξ

d dx dy .................................(5.26 ) b

x y

.......................................(5.27)

d x y dx

d dy

x y

ξ ξ

ξ

η η η

∂ ∂

 

 

∂ ∂    

 

=

   

∂ ∂  

   

 

∂ ∂

 

1

x x

d dx

d y x dy

ξ ξ η

η

ξ η

−

Eq. (5.30) can be solved for dξ, dη

U F G

t x y

Consider the conservation form 2D flow with no source term

1

...............................(5.32)

x x

x y

y y

x y

ξ ξ

ξ η

η η

ξ η

−

∂ ∂ ∂ ∂    

   

∂ ∂ ∂ ∂

   

=

∂ ∂ ∂ ∂    

   

∂ ∂ ∂ ∂

   

............................(5.33)

y x

y x

x y

x x

x y

y y

η η

ξ ξ

ξ ξ

η η

ξ η

ξ η

∂ ∂  

−

 

∂ ∂

 

∂ ∂   ∂ ∂

 

−

 

 

∂ ∂ ∂ ∂

 

  =

∂ ∂ ∂ ∂  

 

∂ ∂ ∂ ∂

 

∂ ∂

∂ ∂

Using results from matrix algebra for inversion of matrices, RHS

can be written as follows

1

..............................(5.36 )

y

a

x J

ξ

η

∂ ∂

=

∂ ∂

1

..............................(5.36 )

y

b

x J

η

ξ

∂ ∂

= −

∂ ∂

1

..............................(5.36 )

x

c

y J

ξ

η

∂ ∂

= −

∂ ∂

1

..............................(5.36 )

x

d

y J

η

ξ

∂ ∂

=

∂ ∂

Comparing corresponding elements of the two matrices on the LHS and

the RHS gives the following relations.

U F G

t x y

Consider the conservation form 2D flow with no source term