_computational fluid dynamics (cfd)

14
Computational Fluid Dynamics (CFD) Navier-Stokes Equations Reynolds Number Numerical Analysis of Navier-Stokes Equations SIMPLE and PISO algorithm OpenFoam Project Some results for the Lid-driven cavity flow http://www.phy.syr.edu/courses/PHY600.10Fall/Presentations/jorge.pdf

Upload: suta-vijaya

Post on 01-May-2017

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: _Computational Fluid Dynamics (CFD)

Computational Fluid Dynamics (CFD)

• Navier-Stokes Equations

• Reynolds Number

• Numerical Analysis of Navier-Stokes Equations

• SIMPLE and PISO algorithm

• OpenFoam Project

• Some results for the Lid-driven cavity flow

http://www.phy.syr.edu/courses/PHY600.10Fall/Presentations/jorge.pdf

Page 2: _Computational Fluid Dynamics (CFD)

Navier Stokes Equations

For an Incompressible Newtonian Fluid

0

u

t

ForcesViscous

Forcesessure

Dt

uD

upuut

u 2

Pr

Continuity Equation

viscosity: pressure, : velocity,: density, : pu

Page 3: _Computational Fluid Dynamics (CFD)

In order to make some estimates, let us suppose we have a typical change in

speed given by U over a typical length L.

Forces Inertial 2

L

U

Forces Viscous 2

L

U

Viscosity Kinematic : Number, Reynolds :Re/Forces Viscous

Forces Inertial

LULU

For low Reynolds number we have Stokes (or creeping) flow. This is the typical regime

where cells move.

Reynolds Number

Page 4: _Computational Fluid Dynamics (CFD)

Numerical Analysis of Navier Stokes Equations

The first issue is to select the points in the domain at which the values of the

unknown dependent variables are to be computed.

Collocated Arrangement Staggered Arrangement

Page 5: _Computational Fluid Dynamics (CFD)

Issues solving Navier-Stokes Equations

• Lack of an independent equation for the pressure.

• Presence of non-linear quantities in the convective

term.

• The equations are intricately coupled.

Page 6: _Computational Fluid Dynamics (CFD)

Discretisation Process

Time derivative: It is used the explicit Euler method unless

detailed time history of the flow be required.

t

uu

t

unn

1

Gradient, Divergence and Laplacian: The discretisation typically is

performed using Gauss’ theorem according to the following equations

Gradient f

f

f

sV

SSddV

Divergence f

f

SV

uSuSddVu

Laplacian ff

f

f

SV

SSddV

Page 7: _Computational Fluid Dynamics (CFD)

Algorithm: SIMPLE

JiJIJInbnbJiJi Appuauax

p

y

u

yx

u

xvu

yuu

x,,,1,,

jIJIJInbnbjIjI Appvavay

p

y

v

yx

v

xvv

yuv

x,,1,,,

0 0 ,1,,,1

jIjIJiJi vAvAuAuAv

yu

x

The algorithm is essentially a guess-and-correct procedure for the calculation

of pressure on the staggered grid.

From a guessed we get velocities *p

2

1

,,*

1,**

,*

,

,,*

,1**

,*

,

jIJIJInbnbjIjI

JiJIJInbnbJiJi

Appvava

Appuaua

Page 8: _Computational Fluid Dynamics (CFD)

We define the correction pressure p’ as the difference between the correct pressure

and the guessed pressure. Analogously for the velocities.

' ' ' *** vvvuuuppp

By subtracting Eqs. (1) and (2) we get

jIJIJInbnbjIjI

JiJIJInbnbJiJi

Appvava

Appuaua

,,1,,,

,,,1,,

''''

3 ''''

0' ,' :pointKey nbnbnbnb vaua

Page 9: _Computational Fluid Dynamics (CFD)

The pressure correction equation is susceptible to divergence

Unless some under-relaxation is used. We then have

10 ,'* pp

new ppp

We need some not too small to have appropriate

Computation speed and not too big to assure convergence.

Unfortunately, the optimum value are flow dependent and

must be sough on a case-by-case basis.

p

From (3) we get u and v in terms of p’

We use continuity Eq. to provide a relation for p’

1,1,1,1,,1,1,1,1,, ''''' JIJIJIJIJIJIJIJIJIJI papapapapa

Page 10: _Computational Fluid Dynamics (CFD)

The PISO algorithm

• PISO involves one predictor step and two corrector steps and

may be seen as an extension of SIMPLE, with a further

corrector step to enhance it.

• PISO was developed originally for the non-interative

computation of unsteady compresible flows, but it has been

adapted succesfully on steady state problems.

• Although the method implies a considerable increase in

Computational effort it has been found to be efficient and fast.

Page 11: _Computational Fluid Dynamics (CFD)

OpenFoam Project

OpenFoam is first and foremost a C++ library for the customisation

and extension of numerical solvers for continuum mechanics

problems, including computational fluid dynamics (CFD).

Page 12: _Computational Fluid Dynamics (CFD)

Apart from the standard solvers, one of the distinguishing features of OpenFOAM is

its relative ease in creating custom solver applications. OpenFOAM allows the user to

use syntax that closely resemble the partial differential equations being solved. For

example the equation

puu

t

u

is represented by the code

Next I used the program to study the Lid-driven cavity flow. This is a typical phenomena

to test CFD algorithms.

Page 13: _Computational Fluid Dynamics (CFD)

Pressure

Page 14: _Computational Fluid Dynamics (CFD)

Velocity flow field