computational fluid dynamics cfd · 2015. 4. 1. · computational fluid dynamics cfd 1. something...

49
Computational Fluid Dynamics CFD 1

Upload: others

Post on 07-Sep-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Computational Fluid Dynamics

CFD

1

Page 2: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We
Page 3: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Something to discuss:

Why do we need CFD?

Are there alternative ways?

Page 4: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Two views on CFD

”We computer advocates don’t

think wind tunnels will become

useless. They will always be

great places to store computer

printout in” D.R Chapman,

1991

”CFD is like a dog walking on its hind

legs; it’s doing it badly, but it’s

amazing that it can do it at all” Anon

Page 5: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We
Page 6: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

ExamplesDiesel engine simulation

- Scania D12 mod. optical engine

- 2500bar injection pressure

- 6bar IMPEg (20% load)

- N-heptane fuel

- 45°, 90° and 135° inter-jet angle

- 2.18 Swirl ratio

- 15.1:1 Compression ratio

Model assumptions:

- Primary atomization not modeled

- Particle size distribution

- Constant wall temperature

- Top-hat rail-pressure profile

- Valve motions not included

Page 7: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

ExamplesDiesel engine simulation

Page 8: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Sample Results

Page 9: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Instantaneous axial velocity field

Traces from blades

Wake downstream

the tower

Page 10: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

H

Staggered configuration

Page 11: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

DY=0 D

DY=0.36 D

DY=0.71 D

DY=1.43 D

Staggered configuration

Mean velocity Rms of fluctuation

Page 12: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Relation to Hemodynamics

• Blood flow rate (Re)

• Wall shear-stresses- Magnitude

- Spatial- and temporal-fluctuations

– Basically local in character

– Intermediate arteries i.e. Re-dependent

– Near bifurcations

Page 13: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Velocity Field

Page 14: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

WSS-Magnitude

Page 15: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Closed building

•4 wind directions

•60 m/s

•k-e RNG

•770000 cells

•0.5 m node distance close to

surface

•Domain size 1000X1000X500

m

Page 16: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Closed building

Path lines

0 deg. 90 deg.45 deg.

Page 17: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Open building

•2 blade configurations

•4 m/s

•k-e RNG

•800000 cells

•0.5 m node distance close to

surface

•Domain size 1000X1000X500 m

Page 18: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Open building

Case 1 Case 2

Page 19: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Axial Compressor

Aeroelastic simulation of compressorblades using ANSYS 12

Page 20: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Axial Compressor

Mean Mach number

Page 21: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Axial Compressor

Aeroelastic simulation of compressorblades using ANSYS 12

Page 22: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Axial Compressor

Deformation of the blade tip

Page 23: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

0i

i

x

u

i

j

ij

j

i

jij

jiiF

xx

u

xx

p

x

uu

t

u

1

Models for

turbulence,

combustion etc.

Geometry

Mathematical

description Results

For example speed, pressure, temperature Numerical

methods

Page 24: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Governing equations

and boundary

conditions

Discretisation,

choice of grid

System of

algebraic

equations

Equation

system solver

Approximate

solution

Mathematical

description of

physical ”reality”

FV, FD, FE?

All these steps introduces errors!

How can we guarantee that the approximate

solution is close to the exact one and close to

”reality”

Page 25: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Governing equations

The governing equations will depend on what assumptions can

be made regarding the flow. For example is it incompressible or

compressible?

The flow situation will determine the character of the system of

equations. This will in turn influence the choice of numerical

method.

Page 26: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Discretisation and grid

Questions:

•How complex is the geometry?

•What accuracy is required? Grid quality?

•What about stability?

•Grid refinement?

Page 27: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Examples

Prismatic airfoil

Page 28: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

ExamplesPrismatic airfoil

Inviscid flow

Grid refinement

Coarse grid Refinement 1 Refinement 2

Coarse: Cdp=0.0500

R1: Cdp=0.0518

R2: Cdp=0.0530

Page 29: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

ExamplesPrismatic airfoil

Inviscid vs viscous

Inviscid

Cdp=0.0500

Viscous

Cdp=0.0500

Cd,tot=0.0539

Page 30: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

ExamplesPrismatic airfoil

Wall refinement

coarserefined

Coarse: Cdp=0.0500, Cd,tot=0.0539

Refined:Cdp=0.0531, Cd,tot=0.0569

Page 31: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

ExamplesPrismatic airfoil

Wall refinement

Converged: Cdp=0.0500, Cd,tot=0.0539

Non-converged:Cdp=0.0495, Cd,tot=0.0533

Residual 10-8 Residual 10-3

Page 32: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

System of equation solver

Questions:

•Speed of the computation?

•What accuracy is required?

•What about stability?

Page 33: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Approximate solution

Questions:

•Is the solution physically reasonable? Conservation?

•How to determine the accuracy of the solution?

Simulation Measurement

Page 34: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Governing

equations

Page 35: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Governing equationsDifferentialrelationer

System of equations:

VfVppVVTkqDt

De

pfDt

VD

0

V

t

Mass

Momentum

Energy

Page 36: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Governing equations

System of equations:

ii

i

i

i

ijj

iii

i fux

pu

x

u

x

Tk

xt

q

x

Eu

t

E

j

ij

j

i

j

jii

xx

pf

x

uu

t

u

0

i

i

x

u

t

Mass

Momentum

Energy

Page 37: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Governing equations

ii

i

i

i

ijj

iii

i fux

pu

x

u

x

Tk

xt

q

x

Eu

t

E

j

ij

j

i

j

ij

i

xx

pf

x

uu

t

u

0

i

i

i

ix

u

xu

t

Mass

Momentum

Energy

Non-conserved forms

Page 38: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Governing equations

Conserved form

ii

i

i

i

ijj

iii

i fux

pu

x

u

x

Tk

xt

q

x

Eu

t

E

j

ij

j

i

j

jii

xx

pf

x

uu

t

u

0

i

i

x

u

t

Mass

Momentum

Energy

Page 39: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Governing equationsConserved form

i

j

iji Jx

F

t

U

Mass

Momentum

Energy

Jx

F

t

U

i

i

Jx

F

t

U

j

j

E

uU i

jkk

j

jj

ijijji

i

ux

TkpuEu

puu

u

F

t

qfu

fJ

kk

i

0

Page 40: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of

PDEs

Page 41: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of PDEs

A comment on characteristic curves

Characteristic curves are curves along which signals

are propagated.

Example, an initial value problem.

)()0,(

0

0 xuxu

x

uc

t

u

By using the chain rule one

can find:

cdt

du

dt

dxby defined lines along 0

or,

ctxu on constant

The ”constancy of u” is the

signal carried along the

characteristic curves

Solution: )(, 0 ctxutxu

x

t

Charateristic curves

Page 42: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of PDEs

22222

11111

fy

vd

x

vc

y

ub

x

ua

fy

vd

x

vc

y

ub

x

ua

P

dx

dy

Differentials:

dyy

vdx

x

vdv

dyy

udx

x

udu

Page 43: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of PDEs

dv

du

f

f

y

vx

v

y

ux

u

dydx

dydx

dcba

dcba

A

2

1

2222

1111

00

00

dydx

dydx

dcbf

dcbf

B

00

00

2222

1111

A

B

x

u

Characteristic curves correspond to 0A

21221122112212

1221 dxdbdbdxdycbcbdadadycacaA

Page 44: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of PDEs

21221122112212

1221 dxdbdbdxdycbcbdadadycacaA

0122112211221

2

1221

dbdb

dx

dycbcbdada

dx

dycaca

0

2

c

dx

dyb

dx

dya

a

acbb

dx

dy

2

42

Three situations:

04

04

04

2

2

2

acb

acb

acb Hyperbolic, two real characteristics

Parabolic, one real characteristic

Elliptic, no real characteristic

Page 45: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of PDEs

Example: 2D inviscid steady flow of a compressible gas under small perturbations.

0''

0''

1 2

v

v

y

u

y

v

x

uMa

'

'

vv

uUu

0 ;1 ;1 ;0

1 ;0 ;1

2222

1112

1

dcba

dcbMaa

Characteristic equation:

01221121221

2

1221

cba

dbdbdx

dycbdada

dx

dycaca

Page 46: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of PDEs

Characteristic equation:

01221121221

2

1221

cba

dbdbdx

dycbdada

dx

dycaca

1

0

1 2

c

b

Maa 011

22

dx

dyMa

12

14

1

12

2

2

Ma

Ma

Madx

dyCompare:

a

acbb

dx

dy

2

42

hyperbolic 1

elliptic 1

2

2

Ma

Ma

Page 47: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of PDEs

Hyperbolic

PDomain of

dependence Region of influence

Charateristic lines

y

xExamples: Inviscid supersonic flow, unsteady inviscid flow

Page 48: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of PDEs

Parabolic

PDomain of

dependence Region of influence

y

x

Known boundary conditions

Known boundary conditions

Examples: Steady boundary layer flow, unsteady heat conduction

Page 49: Computational Fluid Dynamics CFD · 2015. 4. 1. · Computational Fluid Dynamics CFD 1. Something to discuss: Why do we need CFD? Are there alternative ways? Two views on CFD ”We

Classification of PDEs

Elliptic

P

y

x

Every point influences all

other points

Examples: Steady subsonic inviscid flow, incompressible inviscid flow