• 검색 결과가 없습니다.

Governing equations (2D steady‐state N‐S eqs.) (6)Introduction  New problems  Non‐linearities  The convective terms of the momentum equations contain non‐linear quantities

N/A
N/A
Protected

Academic year: 2022

Share "Governing equations (2D steady‐state N‐S eqs.) (6)Introduction  New problems  Non‐linearities  The convective terms of the momentum equations contain non‐linear quantities"

Copied!
38
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

COMPUTATIONAL NUCLEAR  THERMAL HYDRAULICS

Cho, Hyoung Kyu

Department of Nuclear Engineering Seoul National University

Cho, Hyoung Kyu

Department of Nuclear Engineering

Seoul National University

(2)

Contents

 Introduction

 Conservation laws of fluid motion and boundary conditions

 Turbulence and its modeling

 The finite volume method for diffusion problems

 The finite volume method for convection‐diffusion problems

 Solution algorithms for pressure‐velocity coupling in steady flows

 Solution of discretized equations

 The finite volume method for unsteady flows

(3)

CHAPTER 6: SOLUTION ALGORITHMS FOR PRESSURE‐VELOCITY COUPLING IN STEADY FLOWS

3

(4)

Contents

 Introduction

 The staggered grid

 The momentum equations

 The SIMPLE algorithm

 Assembly of a complete method

 The SIMPLER algorithm

 The SIMPLEC algorithm

 The PISO algorithm

 General comments on SIMPLE, SIMPLER, SIMPLEC and PISO

 Worked examples of the SIMPLE algorithm

 Summary

(5)

Introduction

 The convection of a scalar variable φ depends on the magnitude and direction of the  local velocity field.

 How to find flow field?

 In the previous chapter, we assumed that the velocity field was somehow known. 

 In general the velocity field is, however, not known and emerges as part of the overall  solution process along with all other flow variables.

 Governing equations (2D steady‐state N‐S eqs.)

(6)

Introduction

 New problems

 Non‐linearities

The convective terms of the momentum equations contain non‐linear quantities.

All three equations are intricately coupled because every velocity component appears in each  momentum equation and in the continuity equation. 

 The pressure‐velocity linkage

The most complex issue to resolve is the role played by the pressure. It appears in both momentum  equations, but there is evidently no (transport or other) equation for the pressure.

If the flow is incompressible the density is constant and hence by definition not linked to the  pressure. 

In this case coupling between pressure and velocity introduces a constraint in the solution of the  flow field

If the correct pressure field is applied in the momentum equations the resulting velocity field should satisfy  continuity.

 Can be resolved by adopting an iterative solution strategy such as SIMPLE

Patankar and Spalding 

(7)

Introduction

 SIMPLE algorithm

The convective fluxes per unit mass F through cell faces are evaluated from so‐called guessed  velocity components.

 A guessed pressure field is used to solve the momentum equations

 A pressure correction equation, deduced from the continuity equation, is solved to obtain a  pressure correction field, which is in turn used to update the velocity and pressure fields.

 To start the iteration process we use initial guesses for the velocity and pressure fields.

 The process is iterated until convergence of the velocity and pressure fields.

(8)

Contents

 Introduction

 The staggered grid

 The momentum equations

 The SIMPLE algorithm

 Assembly of a complete method

 The SIMPLER algorithm

 The SIMPLEC algorithm

 The PISO algorithm

 General comments on SIMPLE, SIMPLER, SIMPLEC and PISO

 Worked examples of the SIMPLE algorithm

 Summary

If you stagger, you walk very unsteadily, for  example because you are ill or drunk.

(9)

The staggered grid

 Where to store the velocities?

 If the velocities and the pressures are both defined at the nodes of an ordinary CV a  highly non‐uniform pressure field can act like a uniform field in the discretized 

momentum equations.

 Checker board problem

The pressure at the central node (P)

does not appear

 dp/dx, dp/dy

Zero at all the nodal points  even with the oscillations

Zero momentum source 

 This behaviour is obviously  non‐physical.

 Solutions

 Use a staggered grid

 Rhie‐Chow interpolation

Checker board pressure field

(10)

The staggered grid

 Harlow and Welch (1965)

 Scalar variables

Pressure

Stored at   

 Velocities

Stored at    and 

x‐direction: 

y‐direction:  

 Scalar node

(I,J)

 Velocity node

(i,J)

(I,j)

(11)

The staggered grid

 Harlow and Welch (1965)

 Scalar variables

Pressure

Stored at   

 Velocities

Stored at    and 

x‐direction: 

y‐direction:  

 Scalar node

(I,J)

 Velocity node

(i,J)

(I,j)

(12)

The staggered grid

 Harlow and Welch (1965)

 Scalar variables

Pressure

Stored at   

 Velocities

Stored at    and 

x‐direction: 

y‐direction:  

 Scalar node

(I,J)

 Velocity node

(i,J)

(I,j)

(13)

The staggered grid

 In the staggered grid arrangement

 Pressure gradient 

At (i,J) and (I,j)

 Advantages

No checkerboard problem

No interpolation to calculate  velocities at cell faces

(14)

Contents

 Introduction

 The staggered grid

 The momentum equations

 The SIMPLE algorithm

 Assembly of a complete method

 The SIMPLER algorithm

 The SIMPLEC algorithm

 The PISO algorithm

 General comments on SIMPLE, SIMPLER, SIMPLEC and PISO

 Worked examples of the SIMPLE algorithm

 Summary

(15)

The momentum equations

 On staggered grid

Scalar grid: I-1, I, I+1, …. , J-1, J, J+1, ….

Velocity grid: i-1, i, i+1, …. , j-1, j, j+1, ….

 Backward staggered grid

u I

i x x

x

2

 1

yj yJyv

2

 1

(16)

The momentum equations

 Discretized momentum equation

 x‐directional momentum eq. 

     

       

       

s s s n

n n w

w w e

e e

s s s

n n n

w w w

e e e

s s n

n w

w e

e

f

A u F A

u F A

u F A

u F

A u v A

u v A

u u A

u u

A vu A

vu A

uu A

uu

A u u dA

n u u dV

u u

 

       



 

 

 

 

 

 

 



 

 

 

 

 

 

 

J i J I J

I J

i J I J

I

P w e

E e ee

P E

e e

u u

u u

u u

u F

, ,

1 ,

, 1 ,

, 1

2 2

2 1

2 2

2 1 2

1

 

(17)

The momentum equations

 Discretized momentum equation

 x‐directional momentum eq. 

 

 

 

 

 

 

 

 

e I J I J i J I J I J i J

e u u u

F 1, , 1, , 1, ,

2 2

2

1    

 

 

 

 

 

 

 

 

w I J I J i J I J I J i J

w u u u

F , 1, , 1, 2, 1,

2 2

2

1    

       



 

 

 

 

 

 

 

1 , ,

1 , 1

, 1 ,

1 1

, 1

2 2

2 1

2 1

j I J I J

I j

I J I J

I

ne nw

n n

v v

u v

v F

       



 

 

 

 

 

 

 

j I J

I J

I j

I J

I J

I

se sw

s s

v v

u v

v F

, 1 , ,

, 1 1

, 1 ,

1

2 2

2 1

2 1

(18)

The momentum equations

 Discretized momentum equation

 x‐directional momentum eq. 

Dependent on the differencing method

upwind, hybrid, QUICK, TVD

     

       

       

s s s n

n n w

w w e

e e

s s s n

n n w

w w e

e e

w w n

n w

w e

e

f

A u F A

u F A

u F A

u F

A u v A

u v A

u u A

u u

A vu A

vu A

uu A

uu

A u u dA

n u u dV

u u

 

s n

w

e u u u

u

(19)

The momentum equations

 Discretized momentum equation

 x‐directional momentum eq. 

     

s J

i J i

J i J i s n

J i J

i

J i J

i n

w i

i

J i j i w e

i i

J i J i e

s s w

S P

s n

n P N

n

w w

W P

w e

e P E

e

s s n

n w

w e

e

f

x A x

u A u

x x

u u

x A x

u A u

x x

u u

x A u A u

x u u

x A u A u

x u u

dy A A du

dy A du

dx A du

dx du

A u dA

n u dV

u





 





 



 

 



 

 



 

 

 

 

 



 

 

 

 

 



 





 





 





 

 

 

1 , ,

1 , ,

, 1

,

, 1

,

1 , 1 ,

1

, ,

1

 

 

 

 

(20)

The momentum equations

 Discretized momentum equation

 x‐directional momentum eq. 

     

s J

i J i

J i J i s n

J i J

i

J i J

i n

w i

i

J i J i w e

i i

J i J i e

f

x A x

u A u

x x

u u

x A x

u A u

x x

u u

A u dA

n u dV

u





 





 



 

 



 

 

 

1 , ,

1 , ,

, 1

,

, 1

,

1 , 1 ,

1

, ,

1

J I

e,

 

J I w   1,

4

, ,

1 1

, 1 1

,J I J I J I J

I n

  

4

, ,

1 1

, 1 1

,J I J I J I J

I s

  

(21)

The momentum equations

 Discretized momentum equation

 x‐directional momentum eq. 

x V x

p V p

x x

p dV p

x p

J I J

I

J I J

I

J I J

I

w

e

 

 

 



 

, 1 ,

, 1 ,

, 1 ,

V S dV

Suu

(22)

The momentum equations

 Discretized momentum equation

 x‐directional momentum eq. 

s s s n

n n w

w w e

e

eu A F u A F u A F u A

F   

s J

i J i

J i J i s n

J i J

i

J i J

i n w

i i

J i J i w e

i i

J i J i

e A

x x

u A u

x x

u A u

x x

u A u

x x

u u





 





 



 

 



 

1 , ,

1 , ,

, 1

,

, 1

,

1 , 1 ,

1

, ,

1   

x V x

p p

J I J

I

J I J

I

, 1 ,

, 1

, SuV

(23)

The momentum equations

 Discretized momentum equation

 y‐directional momentum eq.

 : include the velocity, non‐linear part, use the previous iteration  values

Iterative solution method is required.

Given a pressure field p, discretized momentum equations of the form can be written for  each u‐ and v‐control volume and then solved to obtain the velocity fields. 

 If the pressure field is correct the resulting velocity field will satisfy continuity. 

 As the pressure field is unknown, we need a method for calculating pressure.

s n w

e F F F

F , , ,

(24)

Contents

 Introduction

 The staggered grid

 The momentum equations

 The SIMPLE algorithm

 Assembly of a complete method

 The SIMPLER algorithm

 The SIMPLEC algorithm

 The PISO algorithm

 General comments on SIMPLE, SIMPLER, SIMPLEC and PISO

 Worked examples of the SIMPLE algorithm

 Summary

(25)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Patankar and Spalding

 Guess‐and‐correct procedure for the calculation of pressure on the staggered grid  arrangement

 Initiation of the SIMPLE calculation

Guess: p*

 Solve the discretized momentum equations

Intermediate velocity

Two systems of equations For u* and v*

Pressure correction, velocity corrections

(26)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

I J I J

i J i J nb

nb J

i J

i

u a u p p A b

a

, ,

  

1,

, ,

,

(27)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 For simplicity, the following two terms are dropped. 

a

nb

u

nb'

a

nb

v

nb'

I J I J

i J J

i J

i

u p p A

a

, ',

'1,

', ,

I J I J

I j j

I j

I

v p p A

a

, ',

', 1

', ,

Omission of these terms Is the main approximation  of SIMPLE

Express u and v using p’

(28)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Solve the momentum equations with guessed pressure and guessed velocities for non‐linear  terms.

 The predicted velocity should satisfy continuity equation.

Express u and v using p’

(29)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Continuity equation on scalar node

Express u and v using p’

Derive the pressure correction eq.

   

       

   

1,

,

  

, 1

,

  0

j I j

I J

i J

i

s n

w e

f

vA vA

uA uA

vA vA

uA uA

A u

(30)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Continuity equation on scalar node

   

  uA

i1,J

  uA

i,J

   vA

I,j1

vA

I,j

  0

(31)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Continuity equation on scalar node

Rearrange

(32)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Continuity equation on scalar node

Cell pressure correction equation

(33)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Continuity equation on scalar node

Collect the cell pressure equations for all cells

System pressure correction equation









































































'

,

' 1 , '

, 1 '

, '

, 1 '

1 ,

1 , ,

1 ,

, 1 1

, I J

J I

J I

J I

J I

J I

J I J

I J

I J

I J

I b

p p p p p

a a

a a

a

(34)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Solve the pressure correction equation

Pressure correction p’ can be obtained. 

Not the final solution. Why?

I J I J

i J J

i J

i

u p p A

a

, ',

'1,

', ,

I J I J

I j j

I j

I

v p p A

a

, ',

', 1

', ,

s n w

e F F F

F , , ,

(35)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Under relaxation

Pressure under‐relaxation factor

u‐ and v‐ velocity under relaxation factors 

A correct choice of under‐relaxation factors α is essential for cost‐effective simulations. 

Too large a value of α may lead to oscillatory or even divergent iterative solutions, and a value  which is too small will cause extremely slow convergence. 

Unfortunately, the optimum values of under‐relaxation factors are flow dependent and must be  sought on a case‐by‐case basis.

1 0p

(36)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Discretize momentum equations from the second iteration

(37)

The SIMPLE algorithm

 Semi‐Implicit Method for Pressure Linked Equations

 Pressure correction equation from the second iteration

(38)

The SIMPLE algorithm

참조

관련 문서

The governing equations are based on the total Kinetic energy of a system and the generalized forces derived by the method of virtual work.. Only generalized

 The rate of change of energy is equal to the sum of the rate of heat addition to and the rate of work done on a fluid particle..  First

 Mass and energy equations cannot be decoupled even for an incompressible flow.  Due to the

- These models do not involve transport equations for turbulence quantities - These models assume that the turbulence is dissipated by viscous action at the point where it

Equations of Motion in Radial & Transverse Components Conservation of Angular Momentum.. Newton’s

 A linear system of equations in n unknowns has a unique solution if the coefficient matrix and the augmented matrix have the same rank n, and infinitely many solution if

The g pressure correction so obtained is used only to correct the velocity field so that it satisfies continuity, i.e., to obtain. The new pressure field is calculated

- Develop linear and angular momentum (moment of momentum) equations - Linear momentum equation: calculate magnitude and direction