Top Banner
Le c t u r e 2 - Fl o w Fi e l d s Applied Computational Fluid Dynamics Instructor: André Bakker
86
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 02-post

Lec ture 2 - Flow Fields

Applied Computational Fluid Dynamics

Instructor: André Bakker

http://www.bakker.org© André Bakker (2002-2006)© Fluent Inc. (2002)

1

Page 2: 02-post

Im po r t a n t v a r i a b l e s

2

• Pressure and fluid velocities are always calculated in conjunction.Pressure can be used to calculate forces on objects, e.g. for the prediction of drag of a car. Fluid velocities can be visualized to show flow structures.

• From the flow field we can derive other variables such as shear and vorticity. Shear stresses may relate to erosion of solid surfaces. Deformation of fluid elements is important in mixing processes. Vorticity describes the rotation of fluid elements.

• In turbulent flows, turbulent kinetic energy and dissipation rate are important for such processes as heat transfer and mass transferin boundary layers.

• For non-isothermal flows, the temperature field is important. This may govern evaporation, combustion, and other processes.

• In some processes, radiation is important.

Page 3: 02-post

P o s t - p r o c es s i n g

3

• Results are usually reviewed in one of two ways. Graphically or alphanumerically.

• Graphically:– Vector plots.– Contours.– Iso-surfaces.– Flowlines.– Animation.

• Alphanumerics:– Integral values.– Drag, lift, torque calculations.– Averages, standard deviations.– Minima, maxima.– Compare with experimental data.

Page 4: 02-post

A fl o w fi e ld e x a m p l e : t h e f oo t ba ll

4

• Regulation size american football.

• Perfect throw. Ball is thrown from right to left.

• Flow field relative to the ball is from left to right.

• Shown here are filled contours of velocity magnitude.

Page 5: 02-post

F oo t ba ll an im a ti o n

• Time dependent calculation. Images were saved at every time step.

• Transparency for the football surface was set to 50% so that the leather strips are also visible when in the back. This helps showing the motion of the ball.

5

Page 6: 02-post

F oo t ba ll an im a ti o n

• Velocity vectors.

• Watch the flow separation behind the leather strips.

6

Page 7: 02-post

-5.30e+01

4.86e+01

4.42e+01 ..3.98e+01

3.54e+01

3.10e+01

2.66e+01

2.22e+01

1.78e+01

1.34e+01

9.03e+00

4.63e+00

.... ::"2.31e-01 - .....

Regulation Size American Football - 300 RPM- Mach 0.052- Per1ect ThrowVelocity Vectors Colored By Velocity Magnitude (mph)

Page 8: 02-post

Vecto5.30e+01

4.86e+01

4.42e+01

3.98e+01

3.54e+01

3.10e+01

2.66e+01

2.22e+01

1.78e+01

1.34e+01

4.63e+00

2.31e-01

Regulation Size American Football - 300 RPM- Mach 0.052- Per1ect ThrowVelocity Vectors Colored By Velocity Magnitude (mph)

Page 9: 02-post

Fl u id m o ti o n

9

• In a fluid flow field, each fluid element undergoes three differenteffects:– 1. Translation.

– 2. Deformation.

– 3. Rotation.

Translation and deformation

Page 10: 02-post

M e t hod s to s ho w t r an s l a t i o n

10

• Translation can be shown by means of:– Velocity vectors.

– Flowlines:• Streamlines.

• Pathlines.

• Streaklines.

• Timelines.

• Oilflow lines.

Page 11: 02-post

Flow around a cylinder- grid

Grid

Page 12: 02-post

Grid

Page 13: 02-post

1.32e+00

1.15e+00

9.88e-01

8.24e-01

6.59e-01

4.95e-01

3.30e-01

1.65e-01

8.25e-04

Re = 1Velocity Vectors Colored By Velocity Magnitude (m/s)

Page 14: 02-post

Re = 1Contours of Velocity Magnitude (m/s)

1.65e+00

Flow around a cylinder- velocity magnitude1.37e+00

1.24e+00

1.10e+00

9.61e-01

8.24e-01

6.86e-01

5.49e-01

4.12e-01

2.75e-01

1.37e-01

Page 15: 02-post

Re = 1Contours of Absolute Pressure (pascal)

0

1.072e+05

Flow around a cylinder- pressure field1.056e+05

1.049e+05

1.041e+05

1.034e+05

1.026e+05

1.018e+05

1.011e+05

1.003e+05

9.954e+04

9.878e+04

9.802e+04

Page 16: 02-post

16

Pr ess ure• Pressure can be used to calculate forces (e.g. drag, lift, or torque)

on objects by integrating the pressure over the surface of the object.

• Pressure consists of three components:– Hydrostatic pressure gh.

– Dynamic pressure v2/2.

– Static pressure ps. This can be further split into an operating pressure (e.g. atmospheric pressure) and a gauge pressure.

• When static pressure is reported it is usually the gauge pressure only.

• Total pressure is the static pressure plus the dynamic pressure.

Page 17: 02-post

17

Str eamlines

• Streamlines are curves that are everywhere tangent to the velocity vector U.

• The animation shows streamlines for a steady state 3-D flow.• For 3-D flow fields, instead of streamlines one usually visualizes

streaklines or pathlines, which for steady flow are the same.• For 2-D flow fields, a stream function Ψ can be defined:

u ; vy x

• In 2-D, lines of constant stream function are streamlines. Calculating the stream function and isolines is a moreefficient way to calculate streamlines than by integrating particle tracks.

Page 18: 02-post

Re = 1Contours of Stream Function (kg/s)

0

5.000e+03

Stream function -filled contours4.167e+03

3.750e+03

3.333e+03

2.917e+03

2.500e+03

2.083e+03

1.667e+03

1.250e+03

8.333e+02

4.167e+02

0.000e+00

Page 19: 02-post

Re = 1Contours of Stream Function (kg/s)

5.000e+03

Lines of constant stream function4.000e+03

3.500e+03

3.000e+03

2.500e+03

2.000e+03

1.500e+03

1.000e+03

5.000e+02

0.000e+00

Page 20: 02-post

P a t h li ne s

20

• A pathline is the trajectory followed by an individual particle.

• The pathline depends on the location where the particle was injected in the flow field and, in unsteady flows, also on the time when it was injected.

• In unsteady flows pathlines may be difficult to follow and not easy to create experimentally.

• For a known flowfield, an initial location of the particle is specified.The trajectory can then be calculated by integrating the advection equation:

dX(t )dt

U(X, t )

with inital condition X(0) X0

Page 21: 02-post

P a t h li ne s

21

• Example: pathlines in a static mixer.

Page 22: 02-post

Pathlines around a cylinder

22

Re = 1Gnd

Page 23: 02-post

Alt e r na ti v e pa r t i c le pa th d i s p l a y

23

• Animation of flow following spheres.

• Can show motion but path followed may be unclear.

Page 24: 02-post

St r ea k li ne s

• This is the flowline formed by a series of particles released continuously in the flow.

• Experimentally, this can also be done by continuous dye injections.

• In steady flows, streaklines and pathlines coincide.

• In unsteady flows, they may be very different.The lines formed by the continuous injection of the green dye are

streaklines.

The trajectories followed by individual particles are pathlines.

24

Page 25: 02-post

P a t h li ne s an d s t r ea k li ne s - un s te ad y fl o w

• The animation shows a simple model of an unsteady flow coming from a smokestack.

• First, there is no wind and the smoke goes straight up.• Next there is a strong wind coming from the right.• The yellow circles show the trajectory of a single particle released at

time 0. The pathline is straight up with a sharp angle to left.• The grayish smoke shows what happens to a continuous stream. first it

goes straight up, but thenthe whole, vertical plume of smoke moves to the left.

• So, although for steady flows. pathlines and streaklines are the same, they are not for unsteady flows.

25

Page 26: 02-post

Tim e li ne s

• A timeline is the flow line that arises when we place a marker along a curve at some initial time and inquire into the shape of this curve at a later time.

• They are sometimes called material lines.

• Like streaklines they involve the simultaneous positions of many particles but unlike streaklines the particles of a timeline do not emanate from a single point, but are initially distributed along a curve.

• They are relatively easy to produce experimentally, by placing lines of dyes in the flow field at time zero.

• In fluid mixing studies the deformation of material lines is studied in great detail.

26

Page 27: 02-post

O ilfl o w l i ne s

• Oilflow lines are pathlines that are constrained to a surface. An example would be the lines traced by droplets of water on a carwindshield.

M ix i ng v ess e l 27

Page 28: 02-post

S h ip hu ll s u r f a c e fl o w v i s u a li z a ti o n

28

Stern Bow

Experimental oil visualization (Van et al., 1998)

Numerical flow visualization

Page 29: 02-post

D e f o r m a ti o n - d e r i v a ti v e s

29

• An instantaneous flow field is defined by velocities u(x,y,z), v(x,y,z), and w(x,y,z).

• The derivatives are du/dx, du/dy, etc.

/ x u u / x u / y u / z

u / y v v / x v / y v / z / z w

w / x w / y w / z

• The tensor u is the gradient of the velocity vector.

• Each of the terms by itself is a gradient, e.g. du/dy is the gradient of the u-velocity component in the y-direction. These may also be called shear rates.

Page 30: 02-post

D e c o m p o s iti o n

30

2 2x

• For the analysis of incompressible flows, it is common todecompose the gradient in the velocity vector as follows:

U i S S 1 U iU j

1 U i

U j

ij ij

j

ij x j xi

ij x j xi

• Sij is the symmetric rate-of-strain (deformation) tensor.

• Ij is the antisymmetric rate-of-rotation tensor.

• The vorticity and the rate of rotation are related by:

i ijk jk1

ij 2 ijk k ijk is the alternating symbol

Page 31: 02-post

D e f o r m a ti o n t enso r

xS u (

2 2 x

31

• The velocity gradients can be used to construct the deformationrate tensor S:

1 u u 1 u)T Sij i j j i

u 1 u v 1 u

w

x 2 y x 2 z x 1 u v

S v 1 v

w

2 y x y 2 z y

1 u w 1 v w w 2 z x 2 z y z

• This symmetric tensor is also called the rate of strain tensor.

• Instead of the symbol S, the symbols D and E are sometimes used.

Page 32: 02-post

D e f o r m a ti o n ill u s t r a ti o n

32

• In an incompressible flow field, a fluid parcel may become distorted, but it retains its original volume.

• The divergence of the velocity field is zero: div u = 0. This is the continuity equation.

• De deformation is governed by the rate of strain tensor.

Page 33: 02-post

St r a in r a te

33

• The deformation rate tensor appears in the momentum conservation equations.

• It is common to report the strain rate S(1/s), which is based on the Euclidian norm of the deformation tensor:

S 2Sij Sij

• The strain rate may also be called the shear rate.

• The strain rate may be used for various other calculations:– For non-Newtonian fluids, the viscosity depends on the strain rate.

– In emulsions, droplet size may depend on the strain rate.

– The strain rate may affect particle formation and agglomeration in pharmaceutical applications.

Page 34: 02-post

3.980e+00

Filled contours of strain rate3.316e+00

2.985e+00

2.653e+00

2.322e+00

1.990e+00

1.658e+00

1.327e+00

9.950e-01

6.634e-01

3.318e-01

1.736e-04

Re = 1Contours of Strain Rate (1/s)

Page 35: 02-post

3.980e+00

Fille3.316e+00

2.985e+00

2.653e+00

2.322e+00

1.990e+00

1.658e+00

1.327e+00

9.950e-01

6.634e-01

-zoomed in

3.318e-01

1.736e-04

Re = 1Contours of Strain Rate (1/s)

Page 36: 02-post

V o r ti c ity

• As discussed, the motion of each fluid element can be described as the sum of a translation, rotation, and deformation.

• The animation shows a translation and a rotation.

• Vorticity is a measure of the degree of local rotation in the fluid.This is a vector. Unit is 1/s.

• For a 2-D flow this vector is always normal to the flow field plane.

• For 2-D flows, vorticity is then usually reported as the scalar:

v u

x y

• For 2-D flows, a positive vorticity

indicates a counterclockwise rotation

and a negative vorticity a clockwise

rotation.

Page 37: 02-post

V o r ti c ity - 3 - D

u , ,

Three dimensional velocity vector : u (u, v, w)

Definition of vorticity: ω w v u y z z

w v u x x y

Relationship between vorticity and angular velocity

of a fluid element : ω u 2 Ω

Vorticity magnitude is calculated using the norm : (1/ s) ω 2 2 2x y z

Page 38: 02-post

3.965e+00

Filled contours of vorticit2.586e+00

1.897e+00

1.207e+00

5.173e-01

-1.724e-01

-8.620e-01

-1.552e+00

-2.241e+00

-2.931e+00

-3.621e+00

-4.310e+00

Re = 1Contours of Vorticity

Page 39: 02-post

V o r t e x li ne s an d he li c ity

39

• Iso-surfaces of vorticity can be used to show vortices in the flow field.

• Vortex lines are lines that are everywhere parallel to the vorticity vector.

• Vortex cores are lines that are both streamlines and vortexlines.

• The helicity H is the dot product of the vorticity and velocityvectors: H ω U

• It provides insight into how the vorticity vector and the velocity vector are aligned. The angle between the vorticity vector and thevelocity vector (which is 0º or 180º in a vortex core) is given by:

cos 1 (H /(| ω || U |))

• Algorithms exist that use helicity to automatically find vortex cores. In practice this only works on very fine grids with deeply converged solutions.

Page 40: 02-post

lsosurfaces of vorticity magnitude

40

Iso-surface of vorticity magnitude colored by velocity magnitude.

Page 41: 02-post

lsosurfaces of vorticity magnitude

41

Iso-surface of vorticity magnitude colored by velocity magnitude.

Page 42: 02-post

C o m pa r i s o n be t w ee n s t r a in an d v o r t i c ity

42

• Both strain and vorticity contain velocity gradients.

• The difference between the two will be shown based on three different flow fields:– A planar shear field: both the strain rate and the vorticity magnitude

are non-zero.

– A solid body rotation: the strain rate is 0(!) and the vorticity reflects the rotation speed.

– Shear field and solid body rotation combined.

Page 43: 02-post

I 1

I 1

I 1

I 1

I I

l 1l 11 1l 1l 1l 1l 1l 1l 1l 1

1 11 11 11 11 11 11 11 11 11 1

<

o '<

< <C: Om I:o·lg-( D

0

...... 1\) (.o) m ""- (X) <0 ...... ...... )>......

o o m oo o m oI'< t

c!a .-.II o o........ ...... ................ ...... . ................. oo

_oo

c=w · • L ! l Lm:::j L

l f.-< l J 1 1 1 11 l

1 1 1 11 1 1 1- I X I 1 [ j 1 1

'i: I I 1 [ j 1 1 1 l 1 1 1 1l I 1 [ j 1 1 1 l 1 1 1 1

j l I 1 [ j 1 1 1 l 1 1 1 • 1[ I I 1 [ j 1 1 1 1 1 1 1 q. 1i I I 1 [ j 1 1 1 l 1 1 1 1 1

l I 1 [ j 1 1 1 l 1 1 1 1 1=r I

(D.....a.(D I

-:::::!.

l J 1 1 1 1 1l J 1 1 1 1 1

<. I

(D(/)

l!»<D0 I

l J 1 1 1 1 1l J 1 1 1 1 1I I 1 1 1 1 1

1 1 1 1 11 1 1 1 11 1 1 1 11 1 1 1 1

Page 44: 02-post

1 11 I I

Page 45: 02-post

44

Solid body rotation

Page 46: 02-post

r '(:'! ':: i\ ra s + translational velocity u y - • ft /' /

vorticity-magnitud =o;/s ,tvr:a lmoc-ltryat Me-a1gn1i/tsu;ddev(/dmx/s1) ,· du/dy 2; other

derivatives are o

Page 47: 02-post

46

1

Flux r epor ts and s ur fac e integr als

• Integral value: ∫ dAn

∑ i | Ai |i 1

• Area weighted average:1

∫ dAn

∑ i | Ai |A A i 1

r r n r r• Mass flow rate: ∫ (V .n) dA

∑ i i (Vi .n) Ai

i 1

Page 48: 02-post

Q uan tit a ti v e v a li da ti o n - m o v i n g l o c o m o t i v e

47

• Turbulent simulation (using RNG and 170,000 tetrahedral cells) is used to predict the near-body pressure field.

Page 49: 02-post

Fl o w ove r a m o v i n g l oco m o ti v e

48

• Pressure contours show the disturbance of the passing train in the near field region.

• The figure on the left shows the pressure field over the locomotive.• Predictions of pressure coefficient alongside the train agree reasonably

well with experimental data.

Page 50: 02-post

Q uan tit a ti v e v a li da ti o n - N A C A a i r f o il

49

• The surrounding fluid exerts pressure forces and viscous forceson the airfoil:

p < 0w

U U

p > 0

• The components of the resultant force acting on the object immersed in the fluid are the drag force and the lift force. The drag force D acts in the direction of the motion of the fluid relativeto the object. The lift force L acts normal to the flow direction.

L CL.A. 1

U 22

D CD .A. 1

U 22

Lift Drag

• Lift and drag are obtained by integrating the pressure field and viscous forces over the surface of the airfoil.

Page 51: 02-post

50

Q uan tit a ti v e v a li da ti o n - N A C A a i r f o il

• Transonic, compressible flow over the NACA 0012 airfoil is modeled using FLUENT.– Free stream mach number = 0.7.

– 1.49o angle of attack.

• The realizable k- turbulence model with 2-layer zonal model for near-wall treatment is used.

• Pressure contours.

Stagnation point

Page 52: 02-post

T r a n s o n ic fl o w o v e r N A C A a i r f o il

vc

51

• The pressure coefficient is calculated as follows:

p p0p 1 2

2 0

• Here p0 is the far-field pressure and v0 the free stream velocity.

• Pressure coefficient for upper (top) and lower airfoil surfaces shows very good agreement with data.

• Drag coefficient:– FLUENT: 0.0084

– Coakley1: 0.0079

1Thomas J. Coakley, “Numerical simulation of viscous transonic airfoil flows”, AIAA-87-0416, 1987.

Page 53: 02-post

T r a n s o n ic fl o w o v e r N A C A a i r f o il

52

• Mach number contours exhibit transonic flow, with maximum (red) of 1.08.

• Turbulence kinetic energycontours show generation primarily in boundary layer.

• Overall CFD can be very useful in validating lift and drag for airfoils.

Page 54: 02-post

S u mm a r y

53

• CFD simulations result in data that describes a flow field.

• Proper analysis and interpretation of this flow field data is required in order to be able to solve the original engineering problem.

• The amount of data generated by a CFD simulation can be enormous. Analysis and interpretation are not trivial tasks and the time it takes to do this properly is often underestimated.