AppliedCFD PartIIntroduction
AppliedCFD PartIIntroduction
February 2012
OUTLINE
1.1 General Remarks
1.2 Methods for Solving Fluid Dynamics
Problems
1.3 The Impact of Computational Fluid
Dynamics---Some Other Examples
1 4 CFD Process
1.4
1.5 Introduction to ANSYS FLUENT
1.6 Governing Equations 1
Applied Computational Fluid Dynamics
1.1 General Remarks (1)
Preface
Practice of engineering and science has been
dramaticall altered by
dramatically b the development
de elopment of
Scientific computing
Mathematics of numerical analysis
The Internet
2
Applied Computational Fluid Dynamics
1.1 General Remarks (2)
Fluid Mechanics
Mechanics-1
1
Faces of Fluid Mechanics : some of the greatest minds of
history have tried to solve the mysteries of fluid mechanics
4
Applied Computational Fluid Dynamics
1.1 General Remarks (4)
History of computing
6
Applied Computational Fluid Dynamics
1.1 General Remarks (6)
Motivation for Studying Fluid Mechanics
Fluid Mechanics is omnipresent
p
Aerodynamics
Bioengineering and biological systems
Energy generation
Geology
Hydraulics and Hydrology
Hydrodynamics
M l
Meteorology
Ocean and Coastal Engineering
Water Resources
…numerous other examples…
7
Applied Computational Fluid Dynamics
1.1 General Remarks (7)
Aerodynamics
8
Applied Computational Fluid Dynamics
1.1 General Remarks (8)
Bioengineering
9
Applied Computational Fluid Dynamics
1.1 General Remarks (9)
Energy generation
10
Applied Computational Fluid Dynamics
1.1 General Remarks (10)
Geology
11
Applied Computational Fluid Dynamics
1.1 General Remarks (11)
River Hydraulics
12
Applied Computational Fluid Dynamics
1.1 General Remarks (12)
Hydraulic Structures
13
Applied Computational Fluid Dynamics
1.1 General Remarks (13)
Hydrodynamics
14
Applied Computational Fluid Dynamics
1.1 General Remarks (14)
Meteorology
15
Applied Computational Fluid Dynamics
1.1 General Remarks (15)
Water Resources
16
Applied Computational Fluid Dynamics
1.2 Methods for Solving Fluid Dynamics
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 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 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.
17
Applied Computational Fluid Dynamics
1.2 Methods for Solving Fluid Dynamics
Problems (2)
Traditionally, both experimental and theoretical methods
ha e been used
have sed to de
develop
elop designs for equipment
eq ipment and vehicles
ehicles
involving fluid flow and heat transfer. With the advent of the
digital computer, a third method, the numerical approach,
h become
has b available.
il bl
Over the years, computer speed has increased much more
p y than computer
rapidly p costs. The net effect has been a
phenomenal decrease in the cost of performing a given
calculation.
The 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 extensively
in the future.
18
Applied Computational Fluid Dynamics
1.2 Methods for Solving Fluid Dynamics
Problems (3)
The need for experiments will probably remain for quite some
time in applications involving
in ol ing turbulent
t rb lent flow,
flo where
here it is
presently not economically feasible to utilize computational
models that are free of empiricism for most practical
configurations.
fi ti Thi situation
This it ti is i destined
d ti d tot change
h eventually,
t ll
since it has become clear that turbulent flows can be solved by
direct numerical simulation (DNS) as computer hardware and
algorithms
l i h improve
i in
i the
h future.
f The
Th prospects are also
l bright
bi h
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 design
information. Progress is being made in computational models
for these flows.
19
Applied Computational Fluid Dynamics
1.2 Methods for Solving Fluid Dynamics
Problems (4)
Analytical Fluid Dynamics (AFD)
Mathematical analysis of governing equations,
including exact and approximate solutions.
solutions
Computational Fluid Dynamics (CFD)
Numerical solution of the governing equations
Experimental Fluid Dynamics (EFD)
Observation and data acquisition.
20
Applied Computational Fluid Dynamics
1.2 Methods for Solving Fluid Dynamics Problems (5)
Analytical Fluid Dynamics
How fast do tsunamis travel in the deep ocean?
Incompressible Navier-Stokes equations
For g = 32.2 ft/s2 and h=10000 ft, c=567 ft/s = 387 miles/hr
21
Applied Computational Fluid Dynamics
1.2 Methods for Solving Fluid Dynamics Problems (6)
Computational Fluid Dynamics
In comparison
p to
analytical methods, which
are good for providing
solutions
l i for
f simple
i l
geometries or behavior for
limiting conditions (such
as linearized shallow
waves) CFD
water waves),
provides a tool for solving
pproblems with nonlinear
physics and complex
Animation by Vasily V. Titov, Tsunami geometry.
Inundation Mapping Efforts
Efforts, NOAA/PMEL
22
Applied Computational Fluid Dynamics
1.2 Methods for Solving Fluid Dynamics Problems (7)
Experimental Fluid Dynamics
23
Applied Computational Fluid Dynamics
1.2 Methods for Solving Fluid Dynamics Problems (8)
Comparison of Approaches:
24
Applied Computational Fluid Dynamics
1.2 Methods for Solving Fluid Dynamics Problems (9)
26
Applied Computational Fluid Dynamics
1.3 The Impact of Computational Fluid
Dynamics---Some
Dynamics Some Other Examples (2)
Where is CFD used?
Aerospace
Automotive
Biomedical
Chemical Processing F18 Store Separation
HVAC
Hydraulics
Marine
Oil & Gas
Power Generation
Sports
Automotive Temperature and natural
convection currents in the eye
following
f ll i laser
l heating.
h ti
27
Applied Computational Fluid Dynamics
1.3 The Impact of Computational Fluid
Dynamics---Some
Dynamics Some Other Examples (3)
HVAC Hydraulics
28
Applied Computational Fluid Dynamics
1.3 The Impact of Computational Fluid
Dynamics---Some
Dynamics Some Other Examples (4)
Sports
Where is CFD used?
Aerospace Marine (movie)
Automotive
Biomedical
Chemical Processing
HVAC
Hydraulics
Marine
Oil & Gas
Power Generation
Sports
30
Applied Computational Fluid Dynamics
1.4 CFD Process (2)
Model Equations
32
Applied Computational Fluid Dynamics
1.4 CFD Process (4)
Grid Generation: Structured Grids
33
Applied Computational Fluid Dynamics
1.4 CFD Process (5)
Grid Generation: Structured Overset Grids
Submarine Surface Ship Appendages
34
Applied Computational Fluid Dynamics
1.4 CFD Process (6)
Grid Generation: Unstructured Grids
36
Applied Computational Fluid Dynamics
1.4 CFD Process (8)
Boundary Conditions
Typical
yp conditions
Wall
No-slip (u = v = w = 0)
Sli (tangential
Slip ( i l stress = 0,
0 normall velocity
l i = 0)
With specified suction or blowing
With specified
p temperature
p or heat flux
Inflow
Outflow
Interface Condition, e.g., Air-water free surface
Symmetry and Periodicity
Usually set through the use of a graphical user
interface (GUI) – click & set
37
Applied Computational Fluid Dynamics
1.4 CFD Process (9)
Solve
Run CFD code on computer
2D and small 3D simulations
can be run on desktop
computers
p (e.g.,
( g , FlowLab))
Unsteady 3D simulations still
require large parallel computers
Monitor Residuals
Defined two ways
Change in flow variables
between iterations
Error in discrete algebraic
equation
38
Applied Computational Fluid Dynamics
1.4 CFD Process (10)
Uncertainty Assessment
39
Applied Computational Fluid Dynamics
1.4 CFD Process (11)
Conclusions 1
Conclusions-1
40
Applied Computational Fluid Dynamics
1.4 CFD Process (12)
Conclusions 2
Conclusions-2
41
Applied Computational Fluid Dynamics
1.4 CFD Process (13)
Conclusions 3
Conclusions-3
43
Applied Computational Fluid Dynamics
1.4 CFD Process (15)
Example: FlowLab-2
Templates
p are
Nearly self-guided
Designed to teach specific lessons
Effect of grid resolution
Effect of domain size
Flow physics and sensitivity to parameters, e.g., diffuser angle,
airfoil angle of attack, etc.
GUI for post-processing
post processing is easy to learn
Contours
Streamlines
Vector Plots
44
Applied Computational Fluid Dynamics
1.4 CFD Process (16)
Example: FlowLab-3
45
Applied Computational Fluid Dynamics
1.4 CFD Process (17)
Example: FlowLab-4
Step
p 2:
Read
problem
overview
46
Applied Computational Fluid Dynamics
1.4 CFD Process (18)
Example: FlowLab-5
Step
p 3:
Create
Geometry
47
Applied Computational Fluid Dynamics
1.4 CFD Process (19)
Example: FlowLab-6
Step
p 4:
Create
Mesh
48
Applied Computational Fluid Dynamics
1.4 CFD Process (20)
Example: FlowLab-7
Step
p 5: Solve,,
monitor residuals
49
Applied Computational Fluid Dynamics
1.4 CFD Process (21)
Example: FlowLab-8
Step
p 6: Post-
process
Compute CD
Plot velocity
profile
Other contours
50
Applied Computational Fluid Dynamics
1.5 Introduction to ANSYS FLUENT (1)
1.Geometry: DesignModeler
51
Applied Computational Fluid Dynamics
1.5 Introduction to ANSYS FLUENT (2)
1.Geometry: DesignModeler
52
Applied Computational Fluid Dynamics
1.5 Introduction to ANSYS FLUENT (3)
2.Meshing
53
Applied Computational Fluid Dynamics
1.5 Introduction to ANSYS FLUENT (4)
54
Applied Computational Fluid Dynamics
1.5 Introduction to ANSYS FLUENT (5)
55
Applied Computational Fluid Dynamics
1.5 Introduction to ANSYS FLUENT (6)
56
Applied Computational Fluid Dynamics
1.5 Introduction to ANSYS FLUENT (7)
5.Results
57
Applied Computational Fluid Dynamics
1.6 Governing Equations (1)
■ Integral form of the general transport equation
Appling
A li Gauss’
G ’ divergence
di theorem,
th the
th generall transport
t t equation
ti can be
b
written as follows:
58
Applied Computational Fluid Dynamics
1.6 Governing Equations (2)
The General Differential Equation
The differential equation obeying the generalized conservation
principle can be written by the general differential equation as
∂ (ρφφ) v
+ ∇ • (ρv φ ) = ∇ • (Γ∇φ ) + s − − − −(1)
∂t
φ :dependent variable, such as velocity
p
components (u,v,w),
( , , ), h or T,, k,, ε
concentration, etc.
Γ : diffusion coefficients
s : source term
The four terms of eq.(1)
q ( ) are the unsteadyy term,, the convection term,, the
diffusion term and the source term.
59
Applied Computational Fluid Dynamics
1.6 Governing Equations (3)
C
Conservation
ti form
f off th
the governing
i equations
ti off fl
fluid
id flow
fl
∂ρ v
Mass : + ∇ • (ρv ) = 0
∂t
v
∂ (ρv ) vv v
Mometum : + ∇ • (ρv v ) = −∇p + ∇ • (μ∇v ) + S M
∂t
∂ (ρh ) v
Energy : + ∇ • (ρv h ) = ∇ • (k∇T ) + ST
∂t
∂ (ρc ) v
Species : + ∇ • (ρv c ) = ∇ • (D∇C ) + SC
∂t
60
Applied Computational Fluid Dynamics