CFD (Introduction)
CFD (Introduction)
Dynamics (CFD)
Prof. Dr. Ashraf Ali Omar
Department of Aeronautical Engineering
University of Tripoli
Outline
1. What, why and where of CFD?
2. Modeling
3. Numerical methods
4. Types of CFD codes
5. CFD Educational Interface
6. CFD Process
7. Example of CFD Process
What is CFD?
Aerospace
used?
Aerospace
Automotive
Biomedical
Biomedical
F18 Store Separation
Chemical
Processing
HVAC
Hydraulics
Marine
Oil & Gas
Power Generation
Sports
Automotive
Aerospacee
Automotive
Biomedical
Chemical
Processing
HVAC
Hydraulics
Marine
Oil & Gas
Power Generation
Sports
Hydraulics
HVAC
Streamlines for workstation
ventilation
Sports
Aerospace
Automotive
Biomedical
Chemical Processing
HVAC
Hydraulics
Marine
Oil & Gas
Power Generation
Sports
Oil & Gas
Flow of lubricating
mud over drill bit
Power Generation
Modeling
Modeling is the mathematical physics problem
CFD Process
Geometry
Physics
Mesh
Solve
Reports
PostProcessing
Select
Geometry
Heat Transfer
ON/OFF
Unstructured
(automatic/
manual)
Steady/
Unsteady
Forces Report
Contours
Compressible
ON/OFF
Structured
(automatic/
manual)
Iterations/
Steps
XY Plot
Vectors
Flow
properties
Convergent
Limit
Verification
Streamlines
Viscous
Model
Precisions
(single/
double)
Validation
Boundary
Conditions
Numerical
Scheme
Geometry
Parameters
Domain
Shape and
Size
(lift/drag, shear
stress, etc)
Initial
Conditions
10
Modeling (coordinates)
z
Cartesian
(x,y,z)
Cylindrical
(r,,z)
z Spherical
(r,,)
z
y
x
General orthogonal
Coordinates
11
+ u
+ v
+ w
=
+ 2 + 2 + 2
t
x
y
z
x
y
z
x
2v 2v 2v
v
v
v
v
p
+ u
+ v
+ w
=
+ 2 + 2 + 2
t
x
y
z
y
x2 y 2 z 2
w w w
w
w
w
w
p
+ u
+ v
+ w
= + 2 + 2 + 2
t
x
y
z
z
y
z
x
Local
acceleration
Convection
Viscous terms
( u ) ( v ) ( w )
+
+
+
= 0 Continuity equation
t
x
y
z
p = RT
D 2R
3 DR 2
pv p
R
+
(
)
=
Dt 2
2 Dt
L
Equation of state
Rayleigh Equation
12
(Re)
13
14
Modeling(boundary conditions)
Boundary conditions: No-slip or slip-free on walls,
periodic, inlet (velocity inlet, mass flow rate, constant
pressure, etc.), outlet (constant pressure, velocity
convective, numerical beach, zero-gradient), and nonreflecting (for compressible flows, such as acoustics), etc.
Inlet ,u=c,v=0
r
v=0, dp/dr=0,du/dr=0
Axisymmetric
15
(Re)
etc
16
Turbulent models:
DNS: most accurately solve NS equations, but too expensive
for turbulent flows
Free-surface models:
Surface-tracking method: mesh moving to capture free surface,
limited to small and medium wave slopes
18
Numerical methods
The continuous Initial Boundary Value Problems
19
Discretization methods
Finite difference methods (straightforward to apply,
20
21
(hexahedral) or unstructured
(tetrahedral). Depends upon type of
discretization scheme and application
Scheme
Finite differences: structured
Finite volume or finite element:
structured or unstructured
Application
Thin boundary layers best
resolved with highly-stretched
structured grids
Unstructured grids useful for
complex geometries
Unstructured grids permit
automatic adaptive refinement
based on the pressure gradient,
or regions interested (FLUENT)
structured
unstructured
23
Transform
x
Physical domain
Computational domain
f f f
f
f
=
+
= x
+ x
x x x
24
25
CFDSHIPIOWA
26
Physics
Flow conditions and fluid properties
Mesh
Meshes should be well designed to resolve
important flow features which are dependent upon
flow condition parameters (e.g., Re), such as the
grid refinement inside the wall boundary layer
Mesh can be generated by either commercial codes
(Gridgen, Gambit, etc.) or research code (using
algebraic vs. PDE based, conformal mapping, etc.)
The mesh, together with the boundary conditions
need to be exported from commercial software in a
certain format that can be recognized by the
research CFD code or other commercial CFD
software.
28
Solve
Setup appropriate numerical parameters
Choose appropriate Solvers
Solution procedure (e.g. incompressible flows)
Solve the momentum, pressure Poisson
equations and get flow field quantities, such as
velocity, turbulence intensity, pressure and
integral quantities (lift, drag forces)
29
Reports
Reports saved the time history of the residuals
30
Post-processing
Analysis and visualization
Calculation of derived variables
Vorticity
Wall
shear stress
Calculation of integral parameters: forces,
moments
Visualization (usually with commercial
software)
Simple 2D contours
3D contour isosurface plots
Vector plots and streamlines
(streamlines are the lines whose
tangent direction is the same as the
velocity vectors)
Animations
31
33
processing)
34
35
Multi-element airfoil
Pressure Contours
p
1.83628
1.52079
1.20531
1.16814
1.15177
1.12741
1.10282
1.07674
1.05107
1.04588
1.03677
1.03585
1.03096
1.02615
1.02398
1.02158
1.01737
0.994554
0.963954
0.916544
0.889824
0.846466
0.732082
0.574339
0.416597
0.101112
Multi-element airfoil
Velocity Profile
0.12
0.08
0.1
0.11
0.07
0.09
0.06
0.08
0.25
0.26
0.27
0.28
0.29
1.04
1.05
1.06
1.07
Airship
Pressure Contours
Racing Car
Velocity Profile 1
Racing Car
Velocity Profile 2
Racing Car
Pressure Contours
Concluding Remarks
The increasing popularity and growth of the CFD
over the past decade has been truly remarkable.
The of CFD for the next decade looks bright,
although there will be some rather strong
challenges to meet.
With improvements in CFD techniques and
advances in computer technology, CFD
researches must and will find more effective
ways to applying computational tools in the
design and analysis process.
Concluding Remarks
Computational simulations will begin to
play a more dominant role in the design
cycle.
Acknowledgment
Some parts of this presentation
materials were taken from Prof. Tao
and Fred Stern presentation under title
of Introduction to CFD, University of
Iowa.