Professional Documents
Culture Documents
IntroComputationalAero Webinar Revised
IntroComputationalAero Webinar Revised
to Computational
Aerodynamics
Dr. James G. Coder
Assistant Professor
Department of Mechanical, Aerospace and Biomedical Engineering
University of Tennessee
Poll Question #1
• How often do you use computational fluid dynamics (CFD) as part of
your work responsibilities?
a) Frequently (i.e. weekly)
b) Infrequently (i.e. monthly)
c) Rarely (i.e. yearly)
d) Have not used CFD recently
e) Never used CFD
LES
RANS
Inviscid + IBL
Pure Inviscid
∂ ρ ∂ ρu j
+ =0
∂t ∂x j
Change in mass at a point in space Net flux of mass away from the point
∂ ρ ui ∂ ρ ui u j ∂P ∂ ⎡ ⎛ ∂ui ∂ui ⎞ 2 ∂u k ⎤
+ =− + ⎢µ ⎜ + ⎟ − µ δ ij ⎥
∂t ∂x j ∂xi ∂x j ⎢⎣ ⎝ ∂x j ∂xi ⎠ 3 ∂xk ⎥⎦
Total fluid acceleration Net force due to Net force due to viscous
pressure gradient shear stresses
∂ ρ e0 ∂ ρu j h0 ∂ ⎛ ∂T ⎞ ∂
∂t
+
∂x j
= ⎜ κ ⎟ +
∂x j ⎝ ∂x j ⎠ ∂x j
uiτ ij ( )
Total change in total Diffusive heat Work due to
energy + work due to transfer viscous stresses
pressure gradient
P = ρ RT
Ideal gas law
Commonly used for flight in the lower atmosphere
Re > 25 x 106
Re ≈ 40 x 106 Re ≈ 6 x 106
Feb. 1, 2018 Introduction to Computational Aerodynamics 11
Solving the Navier-Stokes Equations
• Observation: External aerodynamic flows typically have high Reynolds
numbers
• Viscous effects contained in thin layer near surface (“boundary layer”), can be
neglected elsewhere
• Caveat: Massive flow separation
• Irrotational (∇x u = 0)
• Sources of vorticity: viscosity, heat addition, curved shockwaves
• Permits the existence of a scalar velocity potential (u = ∇ɸ)
∂ ρ ui ∂ ρ ui u j ∂P
+ =−
∂t ∂x j ∂xi
∂ ρ e0 ∂ ρu j h0
+ =0
∂t ∂x j
• Advantages: Only neglects viscosity, reduced expense
• Disadvantages: Does not reduce the number of PDEs
Feb. 1, 2018 Introduction to Computational Aerodynamics 14
Simplified Forms
• Full Potential Equation: Inviscid, irrotational, compressible
⎛ u2 ⎞ ⎛ v 2
⎞ ⎛ w ⎞
2
2
⎜⎝ 1− a 2 ⎟⎠ φ xx + ⎜⎝ 1− a 2 ⎟⎠ φ yy + ⎜⎝ 1− a 2 ⎟⎠ φzz − a 2 ⎡⎣uvφ xy + vwφ yz + wuφzx ⎤⎦ = 0
γ −1 2 2
a =a −
2
2
2
0( u + v + w 2
)
• Advantages: Reduces solution to that of a single scalar field
• Disadvantages: Implicitly assumes no shockwaves; however, “two-field”
approaches may be used to correct for this
∂ui ∂ui u j 1 ∂P ∂ 2 ui
+ =− +ν
∂t ∂x j ρ ∂xi ∂x j 2
• Advantages: Reduces the number of equations to be solved
• Disadvantages: Limits of incompressibility can be exceeded even in low-speed
flight
!
u = ∇φ
1
P = P0 − ρ u + v + w
2
2 2 2
( )
• Advantages: Poisson equation is linear, solutions may be superposed, surface
singularity methods reduce computational expense
• Disadvantages: Global influence of solution elements
τ =⎜ ⎟
⎝ε⎠
• DNS of full-scale aircraft remains computational prohibitive for the
foreseeable future
j-1
Feb. 1, 2018 Introduction to Computational Aerodynamics 26
Discretizing the Equations
• Finite-Difference Methods (FD)
∂φ
=
1
∂ξ 2Δξ
(φi+1 − φi−1 ) + O Δξ 2( ) 2nd-order Accurate Central Difference
∂φ 1
=
∂ξ Δξ
(φi − φi−1 ) + O ( Δξ ) 1st-order Accurate Backward Difference
∂φ
=
1
∂ξ 2Δξ
( 3φi − 4φi−1 + φi−2 ) + O Δξ 2 ( ) 2nd-order Accurate Backward Difference
2
Solution Weight Basis Function
1
Domain can be either piecewise C0 or discontinuous
3 between elements
(
⎛ ∂q ∂ Fi c − Fi v ⎞ ) Equations are solved in weak form
∫∫∫
Ωk
wm ⎜
⎝ ∂t
+
∂xi
− S ⎟ dV = 0
⎠ Integration by parts necessary
before discretization
Weighting Flow equations
function
• Galerkin methods: Weights wm are in the same space as the solution basis functions
2nd-order-accurate
fourth derivative
Effective 2nd-order accuracy is maintained
Feb. 1, 2018 Introduction to Computational Aerodynamics 33
Solution Stabilization
• Upwinding is another method for stabilizing the numerics by biasing
the differencing stencil towards the direction from which
“information” arrives
∂u ∂u
+a =0 1-D Wave Equation
∂t ∂x
⎧ ui − ui−1
⎪ a>0 Waves propagate from left to right
∂u ⎪ Δx
≈⎨
∂x ⎪ ui+1 − ui
a<0 Waves propagate from right to left
⎪⎩ Δx
Feb. 1, 2018 Introduction to Computational Aerodynamics 34
Riemann Problem
• The Riemann problem is the model initial value problem for solving
the Euler (and, by extension, the Navier-Stokes equations)
• Solution fields are piecewise constant connected by discontinuities between
cells
Information passes between cells along left-
and right-running characteristics as determined
Left State Right State by the eigenvalues
qL qR
λ = [U + c,U − c,U,U,U ]
UL UR Subsonic flow: 4 from upstream, 1 from
downstream
Cell interface Supersonic flow: 5 from upstream
Feb. 1, 2018 Introduction to Computational Aerodynamics 35
Riemann Problem
• The challenge then is to define a single flux at the cell interface that
represents an appropriate combination of the left-running and right-
running characteristics
• Exact Riemann solvers are possible, but they are non-linear and require
iterative procedures to evaluate the fluxes
Second-order upwind: κ = -1
Third-order upwind: κ = 1/3
i-1 i i+1 i+2
ɸ is the flux (or slope) limiter to
prevent spurious oscillations
Feb. 1, 2018 Introduction to Computational Aerodynamics 38
MUSCL Schemes
• Flux Limiters prevent overshoots and undershoots in high-resolution
solution reconstructions
• Necessary near shocks
Flux is limited based on
Sharp gradient ratio of successive
leads to gradients
undershoot
“Symmetric” limiters
ensure that the
reconstruction remains
consistent (i.e. linear)
Âi+1/2 ( qR − qL ) = FR − FL
U-c U U+c
t
Flux and state at interface found by
qL * qR *
integration and averaging
(
⎛ ∂q ∂ Fjc − Fjv ⎞ )
∫∫∫
Ωk
wm ⎜
⎝ ∂t
+
∂x j
− S ⎟ dV = 0
⎠
⎡ ∂N ∂Fjc ⎤
wm = N + ⎢ ⎥ [τ ]
⎣ ∂x j ∂q ⎦
• With correct choice of 𝝉, method is consistent with Riemann solvers
3rd-order 5th-order
Example: ∂q
1st-order forward Euler
time discretization ∂t
+ R(q) = 0 → q = q − ΔtR q
n+1 n n
( )
• Advantages: Computationally inexpensive to evaluate residual; higher-order
accuracy easy to achieve (e.g. fourth-order Runge-Kutta)
Example: ∂q
1 -order backward Euler
st
time discretization ∂t
+ R(q) = 0 → q n+1
( )= q
+ ΔtR q n+1 n
∂R n+1
( )
R q n+1
=R q +
∂q
( )
q −q n
n
( )
⎡ ∂R ⎤ n+1
(
⎢ I + Δt ∂q ⎥ q − q = −ΔtR q
n n
) ( )
⎣ ⎦
(1st-order backward Euler)
Feb. 1, 2018 Introduction to Computational Aerodynamics 47
Time Integration
• Two perspectives on implicit schemes
• 2. Newton’s Method
R *n+1
=q n+1
− q + ΔtR q
n
( )= 0
n+1 Unsteady Residual
(1st-order backward Euler)
∂R *n+1,k
= I + Δt
∂R q ( n+1,k
) Newton-Raphson subiterations
∂q n+1,k
∂q n+1,k
(Identical to linearization
∂R *n+1,k
∂q n+1,k
q (
n+1,k+1
− q n+1,k
= −R )
*,n+1,k method if qn+1,1 = qn and one
iteration performed)
( )
S
Holst et al.
AIAA Paper 2018-0027
⎡⎛ ∂ui ∂ui ⎞ 2 ∂u k ⎤
− ρ ui ′ u j ′ = µt ⎢ ⎜ + ⎟ − δ ij ⎥
⎢⎣⎝ ∂x j ∂xi ⎠ 3 ∂xk ⎥⎦
Dν
! ⎡ c ⎤ ⎛ ν
! ⎞
2
1 ⎡ ∂ ⎛ ∂ν! ⎞ ∂ν! ∂ν! ⎤
= cb1S!ν! (1− ft 2 ) − ⎢ cw1 fw − 2 ft 2 ⎥ ⎜ ⎟ + ⎢
b1
⎜ (ν + ν! ) ⎟ + cb2 ⎥
Dt ⎣ κ ⎦ ⎝ d ⎠ σ ⎢⎣ ∂x j ⎝ ∂x j ⎠ ∂x j ∂x j ⎥⎦
∂ ρω ∂ ρu jω ∂ ⎡ ∂ω ⎤ ρσ ω 2 ∂k ∂ω
∂t
+
∂x j
= ρα S − ρβω +
2 2
⎢
∂xk ⎣
( µ + σ ω µt ) ⎥
∂xk ⎦
+ 2 (1− F1 )
ω ∂xk ∂xk
• Detached Eddy Simulation (DES) and its variants trades the RANS length
scale with a grid-based, LES-like length scale
• Special care must go into grid generation to ensure that the grid can
support the resolved turbulent content