61
Applied Computational Fluid Dynamics Applied Computational Fluid Dynamics Part I: Introduction and Governing Equations Instructor: Dr. Yang-Cheng Shih Department of Energy and Refrigerating Air-Conditioning Engineering National Taipei University of Technology National Taipei University of Technology February 2012 Applied Computational Fluid Dynamics

Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

Embed Size (px)

Citation preview

Page 1: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

Applied Computational Fluid DynamicsApplied Computational Fluid Dynamics

Part I: Introduction and Governing Equations

Instructor: Dr. Yang-Cheng ShihDepartment of Energy and Refrigerating Air-Conditioning Engineering

National Taipei University of TechnologyNational Taipei University of Technology

February 2012

Applied Computational Fluid Dynamics

Page 2: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

Chapter 1 Introduction

OUTLINEOUTLINE1.1 General Remarks1.2 Methods for Solving Fluid Dynamics

ProblemsProblems 1.3 The Impact of Computational Fluid

Dynamics---Some Other Examples1 4 CFD Process1.4 CFD Process1.5 Introduction to ANSYS FLUENT

Applied Computational Fluid Dynamics1.6 Governing Equations 1

Page 3: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (1)PrefacePreface

Practice of engineering and science has been dramaticall altered b the de elopment ofdramatically altered by the development of

Scientific computingMathematics of numerical analysisMathematics of numerical analysisThe Internet

Computational Fluid Dynamics is based upon the logic of applied mathematicslogic of applied mathematics

provides tools to unlock previously unsolved problemsis used in nearly all fields of science and engineeringis used in nearly all fields of science and engineering

Aerodynamics, acoustics, bio-systems, cosmology, geology, heat transfer, hydrodynamics, river hydraulics, etc…

Applied Computational Fluid Dynamics2

Page 4: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (2)Fluid Mechanics 1Fluid Mechanics-1

Faces of Fluid Mechanics : some of the greatest minds of history have tried to solve the mysteries of fluid mechanics

Archimedes Da Vinci Newton Leibniz Euler

Applied Computational Fluid Dynamics

Bernoulli Navier Stokes Reynolds Prandtl3

Page 5: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (3)Fluid Mechanics 2

From mid-1800’s to 1960’s, research in fluid mechanics

Fluid Mechanics-2

focused uponAnalytical methods

Exact solution to Navier-Stokes equations (~80 known for simpleExact solution to Navier Stokes equations ( 80 known for simple problems, e.g., laminar pipe flow)Approximate methods, e.g., Ideal flow, Boundary layer theory

Experimental methodsExperimental methodsScale models: wind tunnels, water tunnels, towing-tanks, flumes,...Measurement techniques: pitot probes; hot-wire probes; anemometers; laser-doppler velocimetry; particle-image velocimetrylaser doppler velocimetry; particle image velocimetryMost man-made systems (e.g., airplane) engineered using build-and-test iteration.

1950’s present : rise of computational fluid dynamics (CFD)1950 s – present : rise of computational fluid dynamics (CFD)

Applied Computational Fluid Dynamics4

Page 6: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (4)History of computingHistory of computing

Mastodons of computing, 1945-1960Early computer engineers thought that only a few dozen computers requiredEarly computer engineers thought that only a few dozen computers required worldwideApplications: cryptography (code breaking), fluid dynamics, artillery firing tables, atomic weaponstables, atomic weaponsENIAC, or Electronic Numerical Integrator Analyzor and Computer, was developed by the Ballistics Research Laboratory in Maryland and was built at the University of Pennsylvania's Moore School of Electrical Engineering and

Applied Computational Fluid Dynamics

completed in November 19455

Page 7: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (5)High performance computingHigh-performance computing

Top 500 computers in the world compiled: www.top500.orgComputers located at major centers connected to researchers via InternetComputers located at major centers connected to researchers via Internet

Applied Computational Fluid Dynamics6

Page 8: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (6)Motivation for Studying Fluid MechanicsMotivation for Studying Fluid Mechanics

Fluid Mechanics is omnipresentpAerodynamicsBioengineering and biological systemsEnergy generationGeologyHydraulics and HydrologyHydrodynamicsM lMeteorologyOcean and Coastal EngineeringWater ResourcesWater Resources…numerous other examples…

Applied Computational Fluid Dynamics7

Page 9: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (7)AerodynamicsAerodynamics

Applied Computational Fluid Dynamics8

Page 10: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (8)BioengineeringBioengineering

Applied Computational Fluid Dynamics9

Page 11: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (9)Energy generationEnergy generation

Applied Computational Fluid Dynamics10

Page 12: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (10)GeologyGeology

Applied Computational Fluid Dynamics11

Page 13: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (11)River HydraulicsRiver Hydraulics

Applied Computational Fluid Dynamics12

Page 14: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (12)Hydraulic StructuresHydraulic Structures

Applied Computational Fluid Dynamics13

Page 15: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (13)HydrodynamicsHydrodynamics

Applied Computational Fluid Dynamics14

Page 16: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (14)MeteorologyMeteorology

Applied Computational Fluid Dynamics15

Page 17: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.1 General Remarks (15)Water ResourcesWater Resources

Applied Computational Fluid Dynamics16

Page 18: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.2 Methods for Solving Fluid Dynamics Problems (1)Problems (1)

Over the past half century, we have witnessed the rise to importance of a new methodology for attacking the complex problems in fluid mechanics and heat transfer. The new methodology has become known as Computational Fluidmethodology has become known as Computational Fluid Dynamics (CFD).In this approach, the equations that govern a process of interest are solved numerically. The evolution of numerical methods, especially finite-difference methods for solving ordinary and partial differential equations, started approximately with thepartial differential equations, started approximately with the beginning of the twentieth century.The explosion in computational activity did not begin until general availability of high-speed digital computers, occurred in 1960s.

Applied Computational Fluid Dynamics17

Page 19: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.2 Methods for Solving Fluid Dynamics Problems (2)Problems (2)

Traditionally, both experimental and theoretical methods ha e been sed to de elop designs for eq ipment and ehicleshave been used to develop designs for equipment and vehicles involving fluid flow and heat transfer. With the advent of the digital computer, a third method, the numerical approach, h b il blhas become available.Over the years, computer speed has increased much more rapidly than computer costs. The net effect has been a p y pphenomenal decrease in the cost of performing a given calculation.The suggestion here is not that computational methods willThe suggestion here is not that computational methods will soon completely replace experimental testing as a means to gather information for design purpose. Rather, it is believed that computer methods will be used even more extensivelythat computer methods will be used even more extensively in the future.

Applied Computational Fluid Dynamics18

Page 20: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.2 Methods for Solving Fluid Dynamics Problems (3)Problems (3)

The need for experiments will probably remain for quite some time in applications in ol ing t rb lent flo here it istime in applications involving turbulent flow, where it is presently not economically feasible to utilize computational models that are free of empiricism for most practical

fi ti Thi it ti i d ti d t h t llconfigurations. This situation is destined to change eventually, since it has become clear that turbulent flows can be solved by direct numerical simulation (DNS) as computer hardware and l i h i i h f Th l b i halgorithms improve in the future. The prospects are also bright

for the increased use of large-eddy simulations (LES), where modeling is required for only the smallest scales.In applications involving multiphase flows, boiling, or condensation, especially in complex geometries, the experimental method remains the primary source of designexperimental method remains the primary source of design information. Progress is being made in computational models for these flows.

Applied Computational Fluid Dynamics19

Page 21: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.2 Methods for Solving Fluid Dynamics Problems (4)Problems (4)

Analytical Fluid Dynamics (AFD)Analytical Fluid Dynamics (AFD)Mathematical analysis of governing equations, including exact and approximate solutionsincluding exact and approximate solutions. Computational Fluid Dynamics (CFD)Numerical solution of the governing equationsExperimental Fluid Dynamics (EFD)Experimental Fluid Dynamics (EFD)Observation and data acquisition.

Applied Computational Fluid Dynamics20

Page 22: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.2 Methods for Solving Fluid Dynamics Problems (5)Analytical Fluid DynamicsAnalytical Fluid Dynamics

How fast do tsunamis travel in the deep ocean?Incompressible Navier-Stokes equations

Linearized wave equation for inviscid, irrotational flow

Shallow-water approximation, l/h >> 1

For g = 32.2 ft/s2 and h=10000 ft, c=567 ft/s = 387 miles/hr

Applied Computational Fluid Dynamics21

Page 23: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.2 Methods for Solving Fluid Dynamics Problems (6)Computational Fluid DynamicsComputational Fluid Dynamics

In comparison to panalytical methods, which are good for providing

l i f i lsolutions for simple geometries or behavior for limiting conditions (suchlimiting conditions (such as linearized shallow water waves) CFDwater waves), CFD provides a tool for solving problems with nonlinear pphysics and complex geometry.Animation by Vasily V. Titov, Tsunami

Inundation Mapping Efforts NOAA/PMEL

Applied Computational Fluid Dynamics

Inundation Mapping Efforts, NOAA/PMEL

22

Page 24: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.2 Methods for Solving Fluid Dynamics Problems (7)Experimental Fluid DynamicsExperimental Fluid Dynamics

Oregon State University Wave Research LaboratoryModel-scale experimental facilities

Tsunami Wave BasinL W FlLarge Wave Flume

Dimensional analysis is very important inis very important in designing a model experiment which representsexperiment which represents physics of actual problem

Applied Computational Fluid Dynamics23

Page 25: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.2 Methods for Solving Fluid Dynamics Problems (8)

Comparison of Approaches:Comparison of Approaches:

Applied Computational Fluid Dynamics24

Page 26: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.2 Methods for Solving Fluid Dynamics Problems (9)

Why use CFD?Why use CFD?Analysis and Design

1 Simulation based design instead of “build & test”1. Simulation-based design instead of “build & test”More cost effective and more rapid than EFDCFD provides high-fidelity database for diagnosing flow fieldp g y g g

2. Simulation of physical fluid phenomena that are difficult for experiments

F ll l i l i ( hi d i l )Full scale simulations (e.g., ships and airplanes)Environmental effects (wind, weather, etc.)Hazards (e.g., explosions, radiation, pollution)( g , p , , p )Physics (e.g., planetary boundary layer, stellar evolution)

Knowledge and exploration of flow physics

Applied Computational Fluid Dynamics

g p p y25

Page 27: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.3 The Impact of Computational Fluid Dynamics---Some Other Examples (1)Dynamics Some Other Examples (1)

Historically, the early development of CFD in the 1960s and 1970s was driven by the needs of the aerospace community.y p yHowever, modern CFD cuts across all disciplines where the flow of a fluid is important.

Applied Computational Fluid Dynamics26

Page 28: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.3 The Impact of Computational Fluid Dynamics---Some Other Examples (2)Dynamics Some Other Examples (2)

Where is CFD used?AerospaceAutomotiveBiomedicalBiomedicalChemical ProcessingHVAC

F18 Store Separation

HVACHydraulicsMarineOil & GasPower GenerationSportsSports

Automotive Temperature and natural convection currents in the eye f ll i l h ti

Applied Computational Fluid Dynamics

following laser heating.

27

Page 29: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.3 The Impact of Computational Fluid Dynamics---Some Other Examples (3)Dynamics Some Other Examples (3)

Where is CFD used?Where is CFD used?AerospaceeAutomotive

Chemical Processing

BiomedicalChemical ProcessingHVACHVACHydraulicsMarineMarineOil & GasPower GenerationSports

HVAC

Applied Computational Fluid Dynamics

HVAC Hydraulics

28

Page 30: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.3 The Impact of Computational Fluid Dynamics---Some Other Examples (4)Dynamics Some Other Examples (4)

Where is CFD used?Sports

Where is CFD used?AerospaceAutomotive

Marine (movie)

BiomedicalChemical ProcessingHVACHVACHydraulicsMarineMarineOil & GasPower GenerationSports

Applied Computational Fluid Dynamics

Oil & Gas Power Generation

29

Page 31: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (1)

Outline of CFD ProcessModel EquationsDiscretizationGrid GenerationBoundary ConditionsSolvePost-ProcessingU i AUncertainty Assessment

ConclusionsExample: FLOWLAB

Applied Computational Fluid Dynamics30

Page 32: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (2)Model EquationsModel Equations

Most commercial CFD codes solve the continuity, y,Navier-Stokes, and energy equations

Coupled, non-linear, partial differential equationsFor example, incompressible form

=∂∂

+∂∂

+∂∂ 0

zw

yv

xu

⎟⎟⎠

⎞⎜⎜⎝

⎛∂∂

+∂∂

+∂∂

+∂∂

−=∂∂

+∂∂

+∂∂

+∂∂

∂∂∂

2

2

2

2

2

21zu

yu

xu

xp

zuw

yuv

xuu

tu

zyx

ρμ

ρ

⎟⎟⎠

⎞⎜⎜⎝

⎛∂∂

+∂∂

+∂∂

+∂∂

−=∂∂

+∂∂

+∂∂

+∂∂

⎟⎠

⎜⎝ ∂∂∂∂∂∂∂∂

2

2

2

2

2

21zv

yv

xv

yp

zvw

yvv

xvu

tv

zyxxzyxt

ρμ

ρρρ

ρρ

⎟⎟⎠

⎞⎜⎜⎝

⎛∂∂

+∂∂

+∂∂

+∂∂

−=∂∂

+∂∂

+∂∂

+∂∂

⎟⎠

⎜⎝ ∂∂∂∂∂∂∂∂

2

2

2

2

2

21zw

yw

xw

zp

zww

ywv

xwu

tw

zyxyzyxt

ρμ

ρ

ρρ

Applied Computational Fluid Dynamics

⎟⎠

⎜⎝ ∂∂∂∂∂∂∂∂ zyxzzyxt ρρ

31

Page 33: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (3)Discretization

Grid GenerationGrid Generation

Flow field must be treated as a discrete set of points p(or volumes) where the governing equations are solved.Many types of grid generation: type is usually related to capability of flow solverto capability of flow solver.

Structured gridsUnstructured gridsUnstructured gridsHybrid grids: some portions of flow field are structured (viscous regions) and others are unstructured(viscous regions) and others are unstructuredOverset (Chimera) grids

Applied Computational Fluid Dynamics32

Page 34: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (4)Grid Generation: Structured GridsGrid Generation: Structured Grids

Applied Computational Fluid Dynamics33

Page 35: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (5)Grid Generation: Structured Overset GridsGrid Generation: Structured Overset Grids

Submarine Surface Ship Appendages

Moving Control Surfaces Artificial Heart Chamber

Applied Computational Fluid Dynamics34

Page 36: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (6)Grid Generation: Unstructured GridsGrid Generation: Unstructured Grids

Branches in Human Lung Structured-Unstructured Nozzle Grid

Applied Computational Fluid Dynamics

Branches in Human Lung Structured-Unstructured Nozzle Grid

35

Page 37: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (7)Discretization: Algebraic equationsDiscretization: Algebraic equations

To solve NSE, we must convert governing PDE’s to algebraic equationsFi i diff h d (FDM)Finite difference methods (FDM)

Each term in NSE approximated using Taylor series, e.g.,

( )1i iU U U O x+∂ −= + Δ( )

( )( )

221 1

22

2i i i

O xx xU U U U O xx x

+ −

= + Δ∂ Δ∂ − +

= + Δ∂ Δ

Finite volume methods (FVM)Use CV form of NSE equations on each grid cell ! Most popular approach,

( )x x∂ Δ

especially for commercial codes

Finite element methods (FEM)S l PDE’ b l i i f i b i i i iSolve PDE’s by replacing continuous functions by piecewise approximations defined on polygons, which are referred to as elements. Similar to FDM.

Applied Computational Fluid Dynamics36

Page 38: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (8)Boundary ConditionsBoundary Conditions

Typical conditionsypWall

No-slip (u = v = w = 0)Sli ( i l 0 l l i 0)Slip (tangential stress = 0, normal velocity = 0)With specified suction or blowingWith specified temperature or heat fluxp p

InflowOutflowInterface Condition, e.g., Air-water free surfaceSymmetry and Periodicity

Usually set through the use of a graphical user interface (GUI) – click & set

Applied Computational Fluid Dynamics37

Page 39: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (9)SolveSolve

Run CFD code on computer2D and small 3D simulations can be run on desktop computers (e.g., FlowLab)p ( g , )Unsteady 3D simulations still require large parallel computers

Monitor ResidualsDefined two ways

Change in flow variablesChange in flow variables between iterationsError in discrete algebraic equationequation

Applied Computational Fluid Dynamics38

Page 40: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (10)Uncertainty AssessmentUncertainty Assessment

Process of estimating errors due to numerics and gmodeling

Numerical errors Iterative non-convergence: monitor residualsSpatial errors: grid studies and Richardson extrapolationTemporal errors: time-step studies and Richardson extrapolation

Modeling errors (Turbulence modeling, multi-phase h i l f i t t fphysics, closure of viscous stress tensor for non-

Newtonian fluids)Only way to assess is through comparison with benchmark dataOnly way to assess is through comparison with benchmark data which includes EFD uncertainty assessment.

Applied Computational Fluid Dynamics39

Page 41: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (11)Conclusions-1Conclusions 1

Capabilities of Current TechnologyComplex real-world problems solved using Scientific ComputingCommercial software available for certain problems

i l i b d d i (i l i b d) i b i li dSimulation-based design (i.e., logic-based) is being realized.Ability to study problems that are either expensive, too small, too large, or too dangerous to study in laboratoryg , g y y

Very small : nano- and micro-fluidicsVery large : cosmology (study of the origin, current state, and future of our Universe)of our Universe)Expensive : engineering prototypes (ships, aircraft)Dangerous : explosions, response to weapons of mass destruction

Applied Computational Fluid Dynamics40

Page 42: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (12)Conclusions-2Conclusions 2

Limitations of Current Technology gyFor fluid mechanics, many problems not adequately described by Navier-Stokes equations or are beyond current generation computers.

TurbulenceMulti-phase physics: solid-gas (pollution, soot), liquid-gas (bubbles, cavitation); solid-liquid (sediment transport)Combustion and chemical reactionsNon-Newtonian fluids (blood; polymers)

Similar modeling challenges in other branches of engineering and the sciences

Applied Computational Fluid Dynamics41

Page 43: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (13)Conclusions-3Conclusions 3

Because of limitations, need for experimental , presearch is greatHowever focus has changedHowever, focus has changed

From Research based solely upon experimental observationsResearch based solely upon experimental observationsBuild and test (although this is still done)

ToHigh-fidelity measurements in support of validation and building new computational models.

Currently, the best approach to solving engineering problems often uses simulation and experimentation

Applied Computational Fluid Dynamics42

Page 44: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (14)Example: FlowLab-1Example: FlowLab-1

FlowLabEducational software that uses the power of flow visualization through CFD to teach basic fluid mechanics

i i l i th i i lprinciples in the engineering classroom. Runs Fluent's general purpose CFD code, FLUENT, and pre-processor, GAMBIT, in the background, with a user-pre processor, GAMBIT, in the background, with a userfriendly, student-specific graphical user interface (GUI) on its front end. Based on ready-to-use exercises, FlowLab eliminates the long learning curve associated with general fluid flow modeling packages, making it easy to deploy as part of themodeling packages, making it easy to deploy as part of the undergraduate or masters-level curriculum.

Templates for Problems 15-26 – 15-88 in Cengel and Cimbala.

Applied Computational Fluid Dynamics43

Page 45: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (15)Example: FlowLab-2Example: FlowLab-2

Templates arepNearly self-guidedDesigned to teach specific lessonsDesigned to teach specific lessons

Effect of grid resolutionEffect of domain sizeFlow physics and sensitivity to parameters, e.g., diffuser angle, airfoil angle of attack, etc.

GUI for post processing is easy to learnGUI for post-processing is easy to learnContoursStreamlinesStreamlinesVector Plots

Applied Computational Fluid Dynamics44

Page 46: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (16)Example: FlowLab-3Example: FlowLab-3

Step 1: Select template from startup menuStep 1: Select template from startup menu

Applied Computational Fluid Dynamics45

Page 47: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (17)Example: FlowLab-4Example: FlowLab-4

Step 2: pRead problemproblem overview

Applied Computational Fluid Dynamics46

Page 48: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (18)Example: FlowLab-5Example: FlowLab-5

Step 3:pCreate GeometryGeometry

Applied Computational Fluid Dynamics47

Page 49: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (19)Example: FlowLab-6Example: FlowLab-6

Step 4: pCreate MeshMesh

Applied Computational Fluid Dynamics48

Page 50: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (20)Example: FlowLab-7Example: FlowLab-7

Step 5: Solve, p ,monitor residuals

Applied Computational Fluid Dynamics49

Page 51: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.4 CFD Process (21)Example: FlowLab-8Example: FlowLab-8

Step 6: Post-pprocessCompute CCompute CD

Plot velocity profileOther contoursOther contours

Applied Computational Fluid Dynamics50

Page 52: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.5 Introduction to ANSYS FLUENT (1)

1.Geometry: DesignModeler

Applied Computational Fluid Dynamics51

Page 53: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.5 Introduction to ANSYS FLUENT (2)

1.Geometry: DesignModeler1.Geometry: DesignModeler

Applied Computational Fluid Dynamics52

Page 54: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.5 Introduction to ANSYS FLUENT (3)

2.Meshing2.Meshing

Applied Computational Fluid Dynamics53

Page 55: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.5 Introduction to ANSYS FLUENT (4)

3.FLUENT Solver: Setupp

Applied Computational Fluid Dynamics54

Page 56: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.5 Introduction to ANSYS FLUENT (5)

3.FLUENT Solver: Setup3.FLUENT Solver: Setup

Applied Computational Fluid Dynamics55

Page 57: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.5 Introduction to ANSYS FLUENT (6)

4.FLUENT Solver: Solution4.FLUENT Solver: Solution

Applied Computational Fluid Dynamics56

Page 58: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.5 Introduction to ANSYS FLUENT (7)

5.Results5.Results

Applied Computational Fluid Dynamics57

Page 59: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.6 Governing Equations (1)■ Integral form of the general transport equation

Gauss’ divergence theorem:

A li G ’ di th th l t t ti bAppling Gauss’ divergence theorem, the general transport equation can be written as follows:

Applied Computational Fluid Dynamics58

Page 60: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.6 Governing Equations (2)The General Differential EquationThe differential equation obeying the generalized conservationThe differential equation obeying the generalized conservation principle can be written by the general differential equation as

( )∂ φ( ) ( ) ( ) )1(−−−−+∇Γ•∇=•∇+∂

∂ svt

φφρρφ v

:dependent variable, such as velocitycomponents (u,v,w), h or T, k, ε

φp ( , , ), , ,

concentration, etc.Γ : diffusion coefficientss : source term

The four terms of eq.(1) are the unsteady term, the convection term, the

Applied Computational Fluid Dynamics

q ( ) y , ,diffusion term and the source term.

59

Page 61: Applied Computational Fluid Dynamics - ntut.edu.t · Applied Computational Fluid Dynamics ... the numerical approach, ... models that are free of empiricism for most practical

1.6 Governing Equations (3)

C ti f f th i ti f fl id flConservation form of the governing equations of fluid flow

( )

( )

vt

Mass

=•∇+∂∂

v

vρρ 0:

( ) ( ) ( )

( )M

h

SvpvvtvMometum

+∇•∇+−∇=•∇+∂

∂ vvv

ρ

μρρ:

( ) ( ) ( )

( ) ( ) ( )

T

c

STkhvthEnergy

+∇•∇=•∇+∂

∂ v

ρ

ρρ:

( ) ( ) ( ) CSCDcvtcSpecies +∇•∇=•∇+

∂∂ vρρ:

Applied Computational Fluid Dynamics60