A Brief Intro to CFD

61
8/11/2019 A Brief Intro to CFD http://slidepdf.com/reader/full/a-brief-intro-to-cfd 1/61 Meow

Transcript of A Brief Intro to CFD

Page 1: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 1/61

Meow

Page 2: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 2/61

2

Objectives

Understand what is CFD and why should we study CFD• Understand the importance of a high-quality, good

resolution mesh

•  Apply appropriate boundary conditions to computational

domains

• Understand how to apply CFD to basic engineering

problems and how to determine whether the output is

physically meaningful

• Realize that you need much further study and practice

to use CFD successfully

Page 3: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 3/61

3

Motivation

Modern engineers apply both experimental and CFD analyses, and the two

complement each other. For example, engineers may obtain global properties,such as lift, drag, pressure drop, or power, experimentally, but use CFD to obtain

details about the flow field, such as shear stresses, velocity and pressure profiles,

and flow streamlines.

In addition, experimental data are often used to validate CFD solutions by matching

the computationally and experimentally determined global quantities. 

CFD is then employed to shorten the design cycle through carefully controlled

parametric studies, thereby reducing the required amount of experimental testing.

Page 4: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 4/61

4

Equations of  Motion

Continuity equation

Navier  –Stokes equation

Page 5: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 5/61

5

1.  A computational domain is chosen, and a grid (also called a mesh) is

generated; the domain is divided into many small elements called cells.

2. Boundary conditions are specified on each edge of the computational

domain (2-D flows) or on each face of the domain (3-D flows).

3. The type of fluid (water, air, gasoline, etc.) is specified, along with fluid

properties (temperature, density, viscosity, etc.).

4. Numerical parameters and solution algorithms are selected.

5. Starting values for all flow field variables are specified for each cell.

6. Beginning with the initial guesses, discretized forms of governing equations

are solved iteratively, usually at the center of each cell.

7. Once the solution has converged, flow field variables such as velocity andpressure are plotted and analyzed graphically.

8. Global properties of the flow field, such as pressure drop, and integral

 properties, such as forces (lift and drag) and moments acting on a body, are

calculated from the converged solution

Solution Procedure

Page 6: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 6/61

6

 A quality grid is

essential to a

quality CFD

simulation.

Page 7: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 7/617

Additional Equations of Motion

Page 8: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 8/618

Grid Generation and Grid Independence

Page 9: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 9/619

Page 10: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 10/6110

Page 11: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 11/6111

Page 12: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 12/61

12

Boundary Conditions

 Appropriate boundary conditions

are required in order to obtain an

accurate CFD solution.

Page 13: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 13/61

13

Wall Boundary Conditions

The simplest boundary condition is that of

a wall.

Since fluid cannot pass through a wall, the

normal component of velocity is set to zero

relative to the wall along a face on which

the wall boundary condition is prescribed.

In addition, because of the no-slip

condition, we usually set the tangential

component of velocity at a stationary wall

to zero as well.

Page 14: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 14/61

14

Inflow/Outflow Boundary Conditions

There are several options at the boundaries

through which fluid enters the computational

domain (inflow) or leaves the domain

(outflow).

They are generally categorized as either

velocity-specified conditions or pressurespecified conditions.

 At a velocity inlet, we specify the velocity of

the incoming flow along the inlet face.

If energy and/or turbulence equations are

being solved, the temperature and/orturbulence properties of the incoming flow

need to be specified as well.

Page 15: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 15/61

15

Page 16: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 16/61

16

Miscellaneous Boundary

Conditions

Some boundaries of a computational domain

are neither walls nor inlets or outlets, but

rather enforce some kind of symmetry or

periodicity.

For example, the periodic boundary

condition is useful when the geometry

involves repetition.

Periodic boundary conditions must be

specified as either translational (periodicityapplied to two parallel faces, or rotational

(periodicity applied to two radially oriented

faces).

Page 17: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 17/61

17

Page 18: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 18/61

18

Internal Boundary Conditions

The final classification of boundary

conditions is imposed on faces or edges

that do not define a boundary of the

computational domain, but rather exist

inside the domain.

When an interior  boundary condition is

specified on a face, flow crosses through

the face without any user-forced changes,

 just as it would cross from one interior cell

to another.

This boundary condition is necessary forsituations in which the computational

domain is divided into separate blocks or

zones, and enables communication

between blocks.

Page 19: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 19/61

19

Page 20: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 20/61

20

LAMINAR CFD CALCULATIONS

Computational fluid dynamics does an excellent job at computing

incompressible, steady or unsteady, laminar flow, provided that the

grid is well resolved and the boundary conditions are properlyspecified.

We show several simple examples of laminar flow solutions, paying

particular attention to grid resolution and appropriate application of

boundary conditions.

In all examples in this section, the flows are incompressible and

two-dimensional (or axisymmetric).

Page 21: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 21/61

21

Pipe Flow Entrance

Region at Re = 500

Page 22: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 22/61

22

Page 23: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 23/61

Page 24: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 24/61

24

Flow around a Circular Cylinder

at Re = 150

Page 25: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 25/61

25

Page 26: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 26/61

26

Page 27: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 27/61

27

Page 28: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 28/61

28

Page 29: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 29/61

29

Page 30: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 30/61

30

TURBULENT CFD CALCULATIONSCFD simulations of turbulent flow are much more difficult than those of laminar

flow, even for cases in which the flow field is steady in the mean (statisticiansrefer to this condition as stationary).

The reason is that the finer features of the turbulent flow field are always

unsteady and threedimensional—random, swirling, vortical structures called

turbulent eddies of all orientations arise in a turbulent flow.

Some CFD calculations use a technique called direct numerical simulation (DNS), in which an attempt is made to resolve the unsteady motion of all the

scales of the turbulent flow.

Page 31: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 31/61

31

When using a turbulence model, the steady Navier  –Stokes equation is

replaced by what is called the Reynolds-averaged Navier  –Stokes (RANS)

equation, shown here for steady (stationary), incompressible, turbulent flow,

Specific Reynolds

stress tensor  

Page 32: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 32/61

32

Page 33: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 33/61

33

Flow around a Circular Cylinder

at Re = 10,000

Page 34: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 34/61

34

Flow around a Circular Cylinder at Re = 107

Page 35: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 35/61

35

Design of the

Stator for a Vane-Axial Flow Fan

Page 36: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 36/61

36

Page 37: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 37/61

37

Page 38: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 38/61

38

Page 39: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 39/61

39

Page 40: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 40/61

40

Page 41: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 41/61

41

Page 42: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 42/61

42

Page 43: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 43/61

43

CFD WITH HEAT TRANSFERBy coupling the differential form of the

energy equation with the equations of fluid

motion, we can use a computational fluiddynamics code to calculate properties

associated with heat transfer (e.g.,

temperature distributions or rate of heat

transfer from a solid surface to a fluid).

Since the energy equation is a scalar

equation, only one extra transport

equation (typically for either temperature

or enthalpy) is required, and the

computational expense (CPU time and

RAM requirements) is not increased

significantly.

Heat transfer capability is built into most

commercially available CFD codes, since

many practical problems in engineering

involve both fluid flow and heat transfer.

 As mentioned previously, additional

boundary conditions related to heattransfer need to be s ecified.

Page 44: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 44/61

44

Temperature Rise through a Cross-Flow Heat Exchanger

Page 45: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 45/61

45

Page 46: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 46/61

46

Page 47: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 47/61

47

Cooling of an Array of Integrated Circuit Chips

Page 48: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 48/61

48

Page 49: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 49/61

49

Page 50: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 50/61

50

Page 51: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 51/61

51

COMPRESSIBLE FLOW CFD CALCULATIONS

When the flow is compressible, density is no longer a constant, butbecomes an additional variable in the equation set.

We limit our discussion here to ideal gases.

When we apply the ideal-gas law, we introduce yet another unknown,

namely, temperature T .

Hence, the energy equation must be solved along with the compressible

forms of the equations of conservation of mass and conservation of

momentum.

In addition, fluid properties, such as viscosity and thermal conductivity, are

no longer necessarily treated as constants, since they are functions of

temperature; thus, they appear inside the derivative operators in the

differential equations of Fig. 15 –74.

While the equation set looks ominous, many commercially available CFD

codes are able to handle compressible flow problems, including shock

waves.

Page 52: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 52/61

52

Page 53: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 53/61

53

Compressible Flow through a Converging –Diverging

Nozzle

Page 54: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 54/61

54

Page 55: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 55/61

Page 56: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 56/61

56

Page 57: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 57/61

57

Oblique Shocks over a Wedge

Page 58: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 58/61

58

OPEN CHANNEL FLOW CFD CALCULATIONS

Page 59: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 59/61

59

OPEN-CHANNEL FLOW CFD CALCULATIONS

Flow over a Bump on the Bottom of a Channel

Page 60: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 60/61

60

Flow through a Sluice Gate (Hydraulic Jump)

Page 61: A Brief Intro to CFD

8/11/2019 A Brief Intro to CFD

http://slidepdf.com/reader/full/a-brief-intro-to-cfd 61/61

Summary

INTRODUCTION AND FUNDAMENTALS

Motivation

Equations of Motion

Solution Procedure

 Additional Equations of Motion

Grid Generation and Grid Independence

Boundary Conditions

Practice Makes Perfect

LAMINAR CFD CALCULATIONS

Pipe Flow Entrance Region at Re = 500

Flow around a Circular Cylinder at Re = 150

TURBULENT CFD CALCULATIONS

Flow around a Circular Cylinder at Re = 10,000

Flow around a Circular Cylinder at Re = 107

Design of the Stator for a Vane-Axial Flow Fan

CFD WITH HEAT TRANSFER

Temperature Rise through a Cross-Flow Heat Exchanger

Cooling of an Array of Integrated Circuit Chips COMPRESSIBLE FLOW CFD CALCULATIONS

Compressible Flow through a Converging–Diverging Nozzle

Oblique Shocks over a Wedge

OPEN-CHANNEL FLOW CFD CALCULATIONS

Flow over a Bump on the Bottom of a Channel

Flow through a Sluice Gate (Hydraulic Jump)