CFD For Aerospace Engineers
CFD For Aerospace Engineers
•
AN SYS -
CFX and ICEM
and
practice if
possible
History :
Prandtl in 1925
→ Turbulence model
Experiments
too
Experiments can be achieved with similar condition , but sometimes is too expensive
or
dangerous .
a NO measurement errors ,
cheap ,
hazard free
LES GOOD ONE
¥#
Sometimes XFOIL better
XX
Is or
.
° .
RAMS
be x MODEL h MODEL To
-
-
E
=
ear
Er #
.
SPALAR
÷L
-
All MARAS
MENTER
-
BASIC EQUATIONS AND NUMBERS
PROPERTIES OF FLUIDS
functional
o
He
of shear
forces
↳ function of He derivative ! SOLID NEWTONIAN FLUID
Solids deformation itself function of He sheer force
°
: is a :
I s a I a
It
In He
fluids there
large number
of
is
,
a
very molecules .
-
-
a
too costly to use direct integration of eauatron
-
of motion
molecules
the fluid instead modelled Contini elements
/
a is
as um
,
with feud
element
→ fluid
a
Macroscopic properties : obtained molecules
averaging over
many fluid
T P P
VV
Knudsen Number : ,
, , , M
X free path ten
kn I I Centrum
= mean •
cc
mechanics Ratio between molecule
J
= a
dynamics he length
so
and
> so
of the
transport .
Lagrangian approach :
Eulerian approach
s
Reference frame Observer
moves with
fluid at fixed position
a
element remains a
°
Material Field
description
function of
a
description function of and time
as
fluid space
as
element and time ,
Used to
express temporal change of material
a volume integral as He temporal Change of he
integral of Suarhty fixed V He
and
flux Su of this
a
over a domain over He boundary domain
of Sff If
#
old V = out 0 win ios
of integrals
a
gratify
integral with
over a
fixed a
dynamic boundary
domain V .
Fe = o
Ze DV
fgpcx.tl
= O
CONSERVATION LAWS
SIMPLIFIED
Inviscid flows :
µ=o
→ Euler equations
INCOMPRESSIBLE FLUID :
pressure independent of density .
BARO TROPIC
fluids :
pressure depends only on Ochs Hy
DOTEN IAC
flows
-
:
inviscid and rotation
free
Dimensionless numbers
sina.ee
:c
:
.ae .
REYNOLDS NUMBER :
Navier-Stokes in dimensionless
form
7¥
D. C Kk )
If ¥0 fluid constant density
)
t
t
Op Oy O incompressible with
-
.
=
D. I = O
Re I flow The
flow
cc :
creeping
> > s : turbulent
>
Viscous forces are dominant Inertial forces dominant
equation is
In differential form
Conservation
of energy
work flux heat flux I integral form
Gi =
-
he
I
2 Xi
GRID GENERATION
DISCRETIZATION !
Coefficients :
finite element dis roti ration of basis functions high order .
but slow .
FINITE VOLUME
finite volume ,
Hey do not overlap .
evaluated he
conservation laws at each FV with
fluxes .
determine evolution
of ke cell average .
Gauss theorem
crease !
Conservation law
information transferred
Several approximation methods to calculate
numerically .
boundary boundary
→ → → → →
anti hors
Evaluate flux
conditions
at cell faces : reconstruction or interpolation
Topology .
.
Relations between
neighboring elements keels
TOPOLOGY :
a Subdomains ca be projected
o
Generally not
possible to
project
onto Cartesian domains
Manly rectangles
land
XD
>
a
Many triangles and tetrahedrons
hexahedrons C 3 -
D)
°
Simple data structure and o
Complex data structure and access
direct access
through connectivity matrix
"
Allows
°
for by
"
hand
grid
a
Straightforward application to
-
control .
a
Simple topology and implementation elements .
Local grid
requires
refinement
s
STRUCTURED GRIDS
multi bloch cords
The to
napping from physical space
TYPES OF
mesh a
pipe flow
The grid shoved be as orthogonal as
possible .
Popolo used :
CONFORMAL MAPPING
geometric stretching
°
a
exponential stretching Defined for an entire block , or a 2b plane
>
hyperbolic stretching The complex transformation
Es = Elt )
maps He
complex 2 -
domain C 2- =
Xtiy )
onto He
complex E domain ( 5=5
IN
-
form an
orthogonal grid
Poisson equations .
topology .
Specify requirements and
o
They offer much better
flexibility .
Tetaheorons as be easier fitted to a
geometry than
hexahedrons .
8BggggoG
NUMERICAL DIFFUSION :
Afon
structured
'T
! flow
'
On
grids wont align with
)
>
Mahi cell faces orthogonal
's to glow direction ,
.
lines
flow
°
grid with direction .
Prism Layers :
structured
RESOLUTION Of BOUNDARY LAYERS grids Improves accuracy at boundaries
resolutions
.
Recommended
.
a
CFX includes one based
,
Cee
RANS
Not
>
working for strongly curved walls
at
large pressure gradients and for
non .
equilibrium turbulence
grid block .
rules
necessary
are
.
TURBULENCE
:
To and hairpin
vortices and
eventually to turbulence .
ORIGIN OF TURBULENCE
°
Very small perturbation Re
grow in shear layers if he exceeds a critical value
The Reet
°
if Here is
velocity difference across
-
a
appears
EFFECTS OF TURBULENCE
small
Scale
vortices C inertial subrange ) and dissipated in ( sub I .
) More
high Rc
pronounced differences
.
at
LARGE
SCALES : Vorhees are
induced
by and strongly depend on geometry and boundary conditions of He
flow .
structures , ,
are no
,
SMALLEST
VORTICES
The turbulence of two neighbouring points are correlated this function measures he time
correlation between fluctuating Quantities
"
average distance
"
,
at a n
.
If this correlation is
computed for different the Rover will be He Integral
r .
integral of r
Length scale .
without
Captures all length ad time scales of a turbulent
flow Yu .
ad The directly
assumptions .
Using Nano
stock equations .
COMPUTATIONAL COST
" "
Number Re
"
than
"
of grid points Nc ~
→ 3 Dimensions NP ~ Re
Number of time
Nt Nc low
steps v we can compute small things at
3 Reynolds number
Total Re
.
cost -
s
Nt .
Nc =
USES :
REYNOLDS AVERAGING
↳ integral , average .
fluctuation .
Reynolds averaging is an
orthogonal projection :
Average the
average ,
N S
-
equation .
F. u =
O
O
Ju
accuse
to u 't > > C
Je
> =
I 284£
P .
op >
LFtf
Taps > t
tf OLAP
's
Tcu
=
Ip
=
peps > = 0
test
Reynolds
Can )
Q
fkn tulku 'D >
¥00
s > cu '
> u > tu
.
a
-
+
-
( Ee 00 w
> → - u >
=p cu > cu To adhonal
.
> t Cu > Lu
'
> used as independent
.cuc
t 00 * ,
- ↳
-
⑧
Icu >
>
+08k
-u f- OSPD
¥00548
'DOcana
+ '
.
+
at o
-
=
D .
L a > -
o
RAIS
.
foreal form
Uj
-
j -
component with Ui
'
ther K
apply averaging operator
The order of new unknowns increases during every
step Thus we can not solve it this have to
.
way .
We use empirical approximations TURBULENCE
MODELS
TURBULENCE MODELS
The deviator to he
of uj proportional
'
RS .
cu i > is mean
IGggG••
,
shear rate .
Proportionality factor is
Cody viscosity Vt .
A or dog
turbulence
•
intensity .
einaudi
d , ghncfgeow direction
Strong assumption but confirmed DNS for flows
by with boundary lays .
Furthermore Vt can be .
next
page
EDDY VISCOSITY MODELS I CONTINUED )
Young
:b
:
Teamed transport
| .
ZERO -
EQUATION MODELS -
BOUNDARY LAYER METHOD
Mixing Length -
em : typical length scale of turbulence chose properly .
gradients .
the b l
#
-
characteristic
Turbulence length scales smaller hoards He walls .
→
mixing length
is he dstace
from wall
fm
around
Not use in complex flows
he walls .
kinetic h
energy .
one
half of the trac of ke Re
Thess tensor
- -
ONE EQUATION : MODEL TRANSPORTATION EQUATION
REVIEW :
E model .
em = CD
h Vc =
Cy
Partial
differential equation
E E oral transport
adit , equation
because
of complexity of E .
) Postulate E
with
Obtained flows for h cancel out
and E
in .
REVIEW
•
@
Wilcox Two .
EQUATIOU MODEL h .
w model ,
one of most used
Similar To h -
Pro =
2
dissipation rate
Transport equation for specific
.
Review
S -
A EDDY VISCOSITY TRANSPORT MODELS Spal art .
Directly solve model transport equations for all components of He unknown The tensor .
Approximations of
higher order correlations
and 0181 patron rate tensor .
Pressure
diffusion is rather small , neglected Dgp
Triple correlations in He turbulent transport term are approximated by : hanja lie I Launder .
of double correlation .
wants .
Eiji } Site
Pressure correlation disrate turbulence energy
-
Strain cannot produce or .
{ : Katie
Yeon
to isotropic
He He Re
This ten redistributes turbulence between components of stress tensor .
pg 41 42 I
.
Of RANS
.
O s
0
s
male He
The Oo we
main
question is ,
where
Using a
grid or a
filter Big. solved by simulation ad
Small by modelling .
SMALL SCALES
LARGE SCALES
SIMULATION CLASSIFICATION
FILTERS or GRIDS TO Separate scales :
Spatial filter :
.
captures large energetic scales
.
removes small scales .
D :
filter width = grid width
Convolution integral
"
hence filter Spectral Dutfall
basically
"
average
.
Convolution theorem ,
convolution in real Space I
physical )
corresponds to
.
multiplication in fourier (spectral ) space
Ii =
Go Ui
He sub
grid scales
Ii
"
hi =
Ui
-
Filtering is no
orthogonal projection
Ei t Tic Ui to
LES EQUATIONS
dx 6. Substitute
'
ni
"
Wc assume a homogeneous filter 6. due = h hi =
hi , in Tij
He
And N S ess for day scales
.
scale turbulence on .
>
Observations .
Sub grid
•
scales receive
energy through energy cascade
°
Sobs rid scale models have to He
provide correct
energy drain from He presented scales . If not
,
this can
happen :
SMAGORWSUY MODEL
Turbulence causes momentum
exchange analogously to
He molecular
diffusion
( gas line tics )
30 tropic turbulence
by van -
Driest damping .
SMAGORINSUY MODEL REVIEW
DSM : DYNAMIC SMAGORINSKY MODEL
hypothesis :
the
Most of effect of He SGS stress tensor
large scales .
DSM :
CONTINUED
.
The filtered velocity feed is filtered usain lest
using a
filler SI 2B
)
~
with he same value for He
dii
neooooe.e.agssigt.no?iiomshs
LT .
=
Fits - Ei .
E, →
Leonard stress
If we substitute He values :
Cos C x ,
t ) is filtered by
test filler
If spatial
-
th
.
SCALE SIMILARITY
MODEL
Generalized high -
order scale -
similarity model
model
MIXED MODELS ZANG : combined method with a
dynamic eddy viscosity
one of He best
CURRENT TRENDS
•
tonal coupling : some a ones use RANS and others LES problems at
coupling conditions .
SUMMARY
FINITE VOLUME METHOD
He mean valves .
The
°
Gauss '
theorem applied to transform volume to
is
integrals surface Integrals .
balance He
The numerical evaluation of He flux over FV
resoles
approximation methods .
Solutions y
For each FV !
APPROXIMATIONS :
Quadrature :
surface integral af fluxes is a sun of discrete values at one or Several
points
athe cell surface .
centers
APPROXIMATION OF
SURFACE INTEGRALS
MID -
Fe =
fgehlds = Ie Ae Ae -
fgesos Ie =
fee fseulds = mean value .
ERROR :
"
Yen -
-
Yo I 2¥ lot 3¥ lot .
.
.
.
F- x -
xo
,
! WINE -
-
h .
Yo
-12¥ 7¥40
,
If
-
EEI.to u .
error truncation
-
→
Of )
Midpoint rule
The He he
order
of method determines
"
rate of grid convergence for a
sufficiently smooth solution "
.
actually not so
good for low resolution and large cells .
TRAPEZOIDAL RULE ( )
:
2Nd order
€ogE↳g#②gL€gSfhth order )
To evaluate He
quadrature rules we need to
compute He flux at one or several points at he
cell surface .
NUMERICAL
Truncation error
of UDS
Proportional to width He xp )
grid
-
Upwind approximation :
Taylor series e. isms , on
of y
numerical method
let alone
error
what we wat to compute
EXAMPLE ( CONTINUED )
Substitution
truncation
We neglect He
error
be he truncation
The exact solution will including error .
01
fusion term . ( Numerical
diffusion )
-
expressed as constant .
. If be original
At E DX IV term
equation has diffusion
a
already
Max
accuracy
at at - SHU
CFL =
SEE ,
Hn both summed
diffuse ions are .
The =
¥ The
effective
=
Y¥w
Central scheme
TRUNCATION Error ON CCDS ) differencing
He He cell
approx proportional to Square of size
( Xe -
Xp ) C XE -
DBtggd
DISCRETIZATION OF GRADIENTS
To evaluate the
diffusion terms we have to approximate gradients of 4 at FV surface .
Viscous stress is
approximated with a Cbs method because M 's closely
corresponds to He
diffusion
isotropic character of a :
Joe
(2×-12
XE k
-
XP
DISCRETIZATION OF GRADIENTS ( CONTINUED )
Soooooo
24
( ⇒ = 4E-YP_ Es
e
, g
XE -
Xp
For
uniform grids ,
2nd order method .
The order increases by one .
p e E
• • a
Conclusions
1. Refire cells by splitting them Into equal intervals :
Non He
•
uniform grids car give same
Can solution
accurate grid
-
give more on same .
more
neighbor .
•
Simple for structured grids
AN Sys -
CFX INTERPOLATION
1st order Upwind Differencing Scheme VDS a 2Nd order Central Differencing Scheme CDS
1st -
2nd order blend factor ( VDS a c .
> Ubsz ,
O
Ep Es )
UNSTEADY PROBLEMS
the
⇒
Unsteady problems ,
He future has no influence on past ,
thus they are
parabolic in time .
EXAMPLE conservation
law What the solution
: is
y at tries th = to + St
Integration
ME MARCHING METHODS
fast it to IS At small
The order of a method bees how converses too is sufficiently .
CFL
Styx cos is good enough for time integration
=
errors .
limited
The maximum reasonable time step she At is by flow physics and or numerical stability .
influence domain of He
computational steal .
Signal speed : S =
lol , c compressible St = Stix )
S -
-
I U I incompressible
time
Max step :
Its men his → Appropriate time
step Is often limited by smallest cell in domain .
in are
•
Large physical time step At , using an
implicit method .
Pseudo
part
•
-
time se
Ltda
Discretization with Euler implicit for physical time and Euler explicit with local time step she for pseudo time .
-
-
time time
pseudo physical
AN SYS -
CFX
EXAMPLE : ID Diffusion - advection equation Time : 1st order backward Euler c implicit )
god
order
Space : 2nd central
Offences c uniform grid )
Discrete equation :
As St TED
Index P PDE
:
post where we
approx
Ap ,
Ai : depend on
gnd ,
geometry
and
fluid properties .
Navier Stoles we a
system of nonlinear PDEs
nonlinearity .
N
Implicit time discretization methods applied to linearized version of Sean
-
are a
.
BOUNDARY CONDITIONS
,
what we
do at He boundaries
domain
?
o N .
problems
well
° A
posed problem requires correct
Neumann
Us Periodic boundary condition :
2 . boundary condition :
variable should be
Chose bonding surface such that values of
Impose gradient of variable ( doin ) on
He
boundary He same at two opposite walls .
EXAMPLE : NO SLIP WALL
No slip yield
-
condition plus incompressible continuity equation in relative wall coordinates .
Viscous stress :
Viscous normal :
Viscous tangential : one side
differences approximation .
as source ten .
EXAMPLE : SYMMETRY
SUPERSONIC :
SUPERSONIC :
upstream influence No
-
, c
to be specified
.
.
3x
density momentum and
energy
.
, ,
temperature
'
pressure ,
velocity vector
SUBSONIC I
INCOMPRESSIBLE
.
SUBSONIC I b.
:
variable as Dirichlet c .
usually static
U pressure
independent variables Dirichlet
.
as boundary
*•
Po
,
To
, flow direction .
BEST Practice For BOUNDARY CONDITIONS
> To limit un
physical effects , hey should be located as far away as
possible from region of interest .
o
Interference flow can lead to un physical oscillations and reflections .
The He
choice of boundary conditions significantly affect rate
•
can
convergence .
°
Avoid "
conditions and He
Opening never determine problem
"
over
-
.
COMPRESSIBLE N S EQ INCOMPRESSIBLE N S EQ
-
-
.
Tosefta
DISCRITTATLON PRESSURE
OF THE Poisson
Pressure term
Momentum equation x -
dir
scheme !
RULE & Chow INTERPOLATION
Pressure
oscillations can occur and are not damped by th numerical scheme if we di soothe
pressure
and velocity with CDs on a common grid .
>
Coupling is restored by :
different grids
C
staggered ) for pressure and
velocity .
Tay cored interpolation method for the mass flux through cell surface .
Include th
gradient interpolation rules for velocity finite volume
pressure into be advection across -
cell faces .
.
.
NOT important probably .
EXAMPLE
K¥1
c-
=
UIbe
AI
? Problem :
memory requirements -
I
She of inverse matrix A ,
but A
-2
does not have to be .
GAUSS -
ELIMINATION
Multiply tee
first row of A with
Says , ,
and Subs tract
from second row .
sparse )
matrices
LU ( lower -
upper ) factorization
|%%
!
%
" " " " " " " " " : " " " "
"
independent of hand
Advantage : decomposition is right side
Split A as a
part N that can be inverted easily ad a
part
P for which computing he inverse is difficult
The linear
system is re -
written accordingly Use symple iteration Scheme
off errors :
RESIDUUM : Error .
be complex He
In
"
be solved but it will as as
problem
They related It E
.
are :
= can
,
Change of error :
JACOBI METHOD
Decomposition of A
.
uniform grid
•
CHARACTERISTICS :
Decomposition of A :
•
Diagonal elements into N
INCOMPLETE LU FACTORIZATION
U .
too
that non
only computes elements
are
Iw
-
>
in A .
a dad U are
sparse if A is sparse .
CFX
computational time
Adapt he grid to match He begin ad decrease
.
OBSERVATION : error
IDEA .
.
Interpolate solution back to fire grid .
MULTI GRID METHOD ( CONTINUED )
By
He grid Case ke
projet ing error on a coarser , ware lengths appear smaller be Soho .
is
°
in coarse
•
Information exchange :
.
Method :
It
•
Fine → coarse : = Restriction
•
Coarse →
fine :-. Prolongation
Many ways
for walking through the grid hierarchy .
•
Algebraic Multi grid Coarser in
, is based on coefficient matrix .
The
He original ( fine ) grid
discretization is done only once on
Irregular shapes
VERIFICATION & VALIDATION
Is th code what
°
Simulation good representation of reality ?
doing supposed to do ?
°
is
assumptions
O
Inference of model
Influence of numerical
°
approximations
Physical
°
issue
> Mathematical issues .
Types OF Errors
METHODOLOGY FOR VENFICATON
Requires with
Sources Numerical errors :
2 comparison :
.
analytical solutions
.
semi analytical solutions
.
benchmark Solutions
2. Code comparisons
=
verification activity !
3 that
. Accuracy recs .
is
after more stishtent in
validation activities .
ay change in code
Depends on
grid quality , cell size and time step .
.
Friction coefficient
.
Flow separation
•
Accuracy of discreet ta ton Wall functions switched on if :
An epsilon -
Error ESTIMATION
Beguines
experimental data .
MODELLING ERROR -
THERMODYNAMICS
lukewarm conditions .
o a on
SUMMARY a
Ideal Gas also has a raise
CFD b. c .
are not realistic
Echota
of b. c
influences convergence