EngAn3 CFD 2013 14 Lect - 5
EngAn3 CFD 2013 14 Lect - 5
Lecture 5
2
Dr Edmondo Minisci EngAn3-CFD
Now a must during design processes and forecasting within a wide range of
industries
Aerospace industry:
Automotive industry:
Meteorology:
3
Dr Edmondo Minisci EngAn3-CFD
4
Dr Edmondo Minisci EngAn3-CFD
Except for few strongly simplified models, the equations for distributed
properties
are partial differential equations (PDEs), often nonlinear, which are solved
analytically (exact solutions, which are only possible for a very limited
class of problems, typically formulated in an artificial, idealized way.)
or
5
Dr Edmondo Minisci EngAn3-CFD
6
Dr Edmondo Minisci EngAn3-CFD
In general, all fluid flow and heat transfer processes evolve with time, but
depending on their behaviour it is advisable to consider two different
groups:
- time-independent and
- time-evolving.
7
Dr Edmondo Minisci EngAn3-CFD
8 8
Dr Edmondo Minisci EngAn3-CFD
Discretisation [4]
we also discretise the fluid dynamic equations (PDEs) and transform them
into linear algebraic equations
9
,
Dr Edmondo Minisci CFD – EngAn3
,
A Taylor series expansion, which gives the value of a function f at position x+Dx
located close to position x , reads:
Af i 3 Bf i 2 Cf i 1 Df i
Dx 2
where the following notations have been used :
Af i 3 Bf i 2 Cf i 1 Df i
f ' ' xi O??
Dx 2
Af i 3 Bf i 2 Cf i 1 Df i
f ' ' xi O??
Dx 2
Af i 3 Bf i 2 Cf i 1 Df i
f ' ' xi O??
Dx 2
27 / 6 A 8 / 6 B 1 / 6C f ''' ( xi )
81 / 24 A 16 / 24 B 1 / 24C f '''' ( xi ) ...
Af i 3 Bf i 2 Cf i 1 Df i
f ' ' xi O??
Dx 2
27 / 6 A 8 / 6 B 1 / 6C Dxf ''' ( xi )
81 / 24 A 16 / 24 B 1 / 24C Dx 2 f '''' ( xi ) ...
A B C D 0 A 1
3 A 2 B C 0 B4
9 / 2 A 4 / 2 B 1 / 2C 1 C 5
27 / 6 A 8 / 6 B 1 / 6C 0
D2
Af i 3 Bf i 2 Cf i 1 Df i
Dx 2
f ' ' xi O Dx
?? 2
Second
0 order
Af i 3 Bf i 2 Cf i 1 Df i A B C D
f ( xi )
Dx 2 Dx 2 0
3 A 2 B C f ' ( x )
1
A 1 Dx
i
Cv is the specific
heat at constant
volume
16
Dr Edmondo Minisci EngAn3-CFD
The time dependent heat Discretised equation using forward difference in time
conduction equation
Tin 1 Tin n n n
Ti 1 2Ti Ti 1
T 2T
t x 2 Dt Dx 2
n
Ti Tin 1 n n n
Ti 1 2Ti Ti 1
Dt Dx 2
Discretised equation using backward difference in time
18
Dr Edmondo Minisci EngAn3-CFD
Dt
Ti n 1
Ti
n
Dx 2
T n
i 1 2Ti
n
T n
i 1
time
t n 1
Explicit Scheme
xi 1 xi xi 1
19
Dr Edmondo Minisci EngAn3-CFD
Tin
Dt
Dx 2
T n
i 1 2Ti
n
T n
i 1 Ti
n 1
time
t n 1
xi 1 xi xi 1
20
Dr Edmondo Minisci EngAn3-CFD
21
Dr Edmondo Minisci EngAn3-CFD
numerical solutions are approximate solutions as errors arise from each part
of the process.
1- Modeling errors: difference between actual solution and the exact solution
of the mathematical mode
22
Dr Edmondo Minisci EngAn3-CFD
which is written as
Ti 1 Ti 1 1
T ' ( x) Dx 2T ' ' ' ( x) ... T ' ( x) ( Dx 2 )
2Dx 3!
T
we conclude that this finite difference is a second order approximation to ( x)
x
Ti 1 Ti 1 1
T ' ( x) Dx 2T ' ' ' ( x) ... ( Dx 2 )
2Dx 3!
Tin 1 Tin
with an associated difference equation Tin1 2Tin Tin1
Dt Dx 2
Din 1 Din
If D denotes the exact solution of the Din1 2 Din Din1
finite difference equation then we have
Dt Dx 2
in 1 in in1 2 in in1
Dt Dx 2
So the iteration error evolves in time following the same numerical scheme
Stable numerical scheme is one in which the error does not increase as we
progress from time step n to step n+1
in 1
1
i n
26
Dr Edmondo Minisci EngAn3-CFD
oscillations
27