Computational Aerodynamics: AE 410 / CSE 461
Computational Aerodynamics: AE 410 / CSE 461
Computational Aerodynamics
Instructor: Prof. Marco Panesi
1. 1
AE 410
Lecture 1
1. 2
AE 410
Lecture 1
1. 3
AE 410
Lecture 1
1. 4
AE 410
Lecture 1
Grading
Homework/mini-codes: 20%
Midterm: 30%
Project: 50%
Assignments policy: Assignments MUST be returned in timely manner.
Barring extraordinary circumstances, there are no exceptions.
(i) You may work together in study groups, but you must express
comments/conclusions independently.
(i) Homeworks / Take home assignments: are due by the specified date
and time. Late homework papers will only receive 50% credit until the
start of the next class and 0% credit thereafter.
Honor code It is assumed that the UIUC Student Code will be followed
at all times, including during completion of homework and during
exams.
1. 5
AE 410
Lecture 1
GOAL of CFD:
E
The goal of the Computational Fluid Dynamics (CFD) is to n
numerically solve the governing equation of motion to: g
S
c i
1. Optimize a Design n
i
2. Predict the system performance and response to changes e
e
3. Understand a fluid system in more detail than possible e
n
experimentally. r
c
4. Understand the behavior of the Fluids. i
e
n
g
1. 6
AE 410
Lecture 1
GOAL of COURSE:
1. 7
AE 410
Conservation Laws and Model Equations
We start out by casting our equations in the most general for, the
integral conservation form (useful in understanding Finite Volume):
Z I Z
d ~ · ~n dS =
Q dV + F P dV
dt V (t) S(t) V (t)
1. 8
AE 410
Conservation Laws and Model Equations
@Q ~ ~
+r·F =P
@t
1. 9
AE 410
Example – x-Momentum Equation
1. 10
AE 410
Example – x-Momentum Equation
@ ~ · (⇢u~u) = @p ~
(⇢u) + r + r · ~⌧x
@t @x
1. 11
AE 410
Example – x-Momentum Equation
⇢ = const. ~u = u êx
@p µ = const.
⇡0
@x
2
= µ
3
1. 12
AE 410
Non-Linear Advection Diffusion Equation
Or equivalently
Advection Diffusion
@u @u 4 µ1 @ 2 u
+u =
@t @x 3 ⇢1 @x2
1. 13
AE 410
Linearization of the Advection Diffusion Equation
@u0 @u0 4 µ1 @ 2 u0
+ ū =
@t @x 3 ⇢1 @x2
1. 14
AE 410
Advection and Diffusion Equations
@u0 @u0
+ ū = 0, (µ1 = 0)
@t @x
Movement by ū (hyperbolic equation)
0 2 0
✓ ◆
@u @ u 4 µ1
↵ 2 = 0, ū = 0, ↵ = =0
@t @x 3 ⇢1
Diffusion by alpha (elliptic equation)
It turns out that the physical behavior of system has a very strong
influence on the numerics.
1. 15
AE 410
Model Equations
1. 16
AE 410
Discrete Representation- 1D space-time
T
i
m
e
a b
X
1. 17
AE 410
Discrete representation
Uniform grid (or mesh): Uniform spacing between the grid points.
We will set: ✓ ◆
b a
xi = a + ( x) (i 1) where x=
Nx 1
and
✓ ◆
T
tn = t0 + ( t) (n 1) where t=
Nt 1
The approximate solution u(x,t) evaluated at (xi, tn) will be denoted by:
n
ui
1. 18
AE 410
Numerical Methods for PDEs
@u0 @u0
+ ū = 0, (µ1 = 0)
@t @x
In the numerical methods for PDEs there are two main ways to analyze a
given numerical scheme:
Fully Discrete:
✓ n ◆
un+1
i uni uni+1 ui 1
+ ūi =0
t 2 x
1. 19
AE 410
Numerical Methods for PDEs
Treat ui, the solution of u at xi, as a function of time (do NOT discretize in
time).
In this course we will use the method of lines a lot because it will allows us
to write:
1. 20
AE 410
Method of Lines
1. 21
AE 410
Method of Lines
1. 22
AE 410
What have we learned?
1. Syllabus
1. 23
AE 410
Cancellation
Cancellation: subtraction of nearly equal operands may cause extreme loss of accuracy. When
we subtract two almost equal numbers we set the most significant digits to zero, leaving ourselves
with just the insignificant, and most erroneous, digits. For example, when determining a derivative
of a function the following formula is used:
Intuitively one would want an h very close to zero, however when using floating-point
operations, the smallest number won't give the best approximation of a derivative. As h grows
smaller the difference between f (a + h) and f(a) grows smaller, cancelling out the most significant
and least erroneous digits and making the most erroneous digits more important. As a result the
smallest number of h possible will give a more erroneous approximation of a derivative than a
somewhat larger number. This is perhaps the most common and serious accuracy problem.
1. 24
AE 410